* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; font-size: 13px; background: #f0f2f5; color: #1a1a2e; }
a { color: #16214d; }
.topbar { background: #16214d; color: white; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar h1 { font-size: 16px; }
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-logo { height: 30px; background: #fff; padding: 4px 8px; border-radius: 5px; display: block; }
.login-logo { display: block; height: 46px; margin: 0 auto 16px; }
.topbar-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-nav a { color: #cfd6ee; font-size: 12px; text-decoration: none; }
.topbar-nav a:hover { color: white; text-decoration: underline; }
.topbar a.logout { color: #cfd6ee; font-size: 12px; text-decoration: none; }
.topbar .who { color: #8f9bc4; font-size: 11px; }
.container { max-width: 1080px; margin: 0 auto; padding: 22px; }
.public-wrap { max-width: 820px; margin: 0 auto; padding: 22px; }
.public-head { text-align: center; margin-bottom: 18px; }
.public-head img { height: 40px; margin-bottom: 8px; }
.card { background: white; border: 1px solid #dde1e7; border-radius: 6px; margin-bottom: 18px; }
.card-head { padding: 12px 16px; border-bottom: 1px solid #eee; font-weight: bold; background: #f7f9fb; border-radius: 6px 6px 0 0; display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 720px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { background: #16214d; color: white; padding: 8px 10px; text-align: left; }
td { padding: 7px 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
tr:hover td { background: #f8faff; }
.btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: bold; text-decoration: none; }
.btn-primary { background: #16214d; color: white; }
.btn-primary:hover { background: #0f1836; }
.btn-secondary { background: white; border: 1px solid #16214d; color: #16214d; }
.btn-danger { background: #b3261e; color: white; }
.btn-success { background: #157347; color: white; }
.btn-sm { padding: 5px 12px; font-size: 11.5px; }
input, select, textarea { padding: 7px 9px; border: 1px solid #ccd2dc; border-radius: 4px; font-size: 13px; width: 100%; font-family: inherit; }
input[readonly] { background: #f2f4f7; color: #555; }
label { display: block; font-weight: bold; margin: 10px 0 4px; font-size: 12px; color: #16214d; }
.form-row { margin-bottom: 10px; }
.row-grid { display: grid; gap: 10px 14px; align-items: end; }
.row-grid-2 { grid-template-columns: repeat(2, 1fr); }
.row-grid-3 { grid-template-columns: repeat(3, 1fr); }
.row-grid-4 { grid-template-columns: repeat(4, 1fr); }
.row-grid > .form-row { display: flex; flex-direction: column; margin-bottom: 0; }
.row-grid > .form-row > label { margin-top: 0; flex: 0 0 auto; }
.row-grid > .form-row > input,
.row-grid > .form-row > select,
.row-grid > .form-row > textarea { margin-top: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: bold; white-space: nowrap; }
.badge-SUBMITTED { background: #cfe2ff; color: #084298; }
.badge-MGR_APPROVED { background: #fff3cd; color: #856404; }
.badge-FIN_APPROVED { background: #d8c7f5; color: #4b2e83; }
.badge-PROCURED { background: #c9e6d5; color: #0f5132; }
.badge-EXPORTED { background: #16214d; color: white; }
.badge-REJECTED { background: #f8d7da; color: #842029; }
.error { background: #fdecea; color: #b3261e; padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 12.5px; }
.notice { background: #e7f1ff; color: #084298; padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 12.5px; }
.success { background: #d1e7dd; color: #0f5132; padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 12.5px; }
.warn-banner { background: #fff3cd; color: #856404; padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 12.5px; font-weight: bold; }
.hint { color: #888; font-size: 11.5px; margin-top: 4px; }
.repeat-row { position: relative; border: 1px solid #eee; border-radius: 6px; padding: 10px; margin-bottom: 8px; background: #fafbfc; }
.repeat-remove { background: none; border: none; color: #b3261e; font-size: 11.5px; cursor: pointer; padding: 4px 0 0; font-weight: bold; }
.repeat-remove:hover { text-decoration: underline; }
.add-row-btn { margin-top: 2px; }
.login-wrap { max-width: 340px; margin: 80px auto; }
.center { text-align: center; }
.muted { color: #888; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; font-size: 12.5px; }
.kv dt { font-weight: bold; color: #16214d; }
.kv dd { color: #333; }
.timeline { list-style: none; font-size: 12px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.timeline .t { color: #999; font-size: 11px; }
.tot { font-weight: bold; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 6px 6px 0 0; background: #e4e8ef; color: #16214d; text-decoration: none; font-size: 12px; font-weight: bold; }
.tabs a.active { background: #16214d; color: white; }
