.admin-page { background: #f3f8f4; }
.admin-page::before { display: none; }
.admin-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100% - 1240px) / 2)); background: white; border-bottom: 1px solid #dce7df; box-shadow: 0 4px 20px rgba(0, 0, 0, .04); }
.admin-header-actions { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.text-button { padding: 0; color: var(--blue); border: 0; background: none; font-weight: 700; }
.admin-main { width: min(1240px, calc(100% - 40px)); margin: 44px auto 72px; }
.signin-card { width: min(460px, 100%); margin: 9vh auto; padding: 48px; border: 1px solid #dce7df; border-radius: 18px; background: white; box-shadow: var(--shadow); text-align: center; }
.signin-card h1 { margin-top: 12px; font-size: 34px; }
.signin-card p { color: var(--muted); line-height: 1.6; }
.signin-card small { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; }
.admin-badge { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.google-button { width: 100%; margin-top: 14px; color: var(--gray); border: 1px solid #cfd9df; background: white; box-shadow: 0 5px 14px rgba(20,20,20,.06); }
.google-g { color: #4285f4; font: 800 20px Arial; }
.dashboard-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.dashboard-title h1 { margin: 5px 0 4px; font-size: 38px; }
.dashboard-title p { margin: 0; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metrics article { min-height: 142px; padding: 23px; border: 1px solid #dce7df; border-radius: 13px; background: white; }
.metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.metrics strong { display: block; margin: 9px 0 4px; color: var(--gray); font: 800 32px "Montserrat"; }
.metrics small { color: #859099; font-size: 11px; }
.admin-card { margin-top: 18px; padding: 27px; border: 1px solid #dce7df; border-radius: 13px; background: white; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.card-heading h2 { margin: 0 0 5px; color: var(--gray); font: 700 18px "Montserrat"; }
.card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
code { padding: 2px 5px; color: var(--cfn-dark-green); border-radius: 4px; background: var(--cfn-light-green-dim); }
.status-pill { padding: 6px 10px; color: var(--muted); border-radius: 999px; background: #eef2f4; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.deadline-row { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: end; gap: 12px; margin-top: 20px; }
.deadline-field { margin: 0; }
.deadline-row .button { min-height: 50px; }
.deadline-card .form-message { margin: 14px 0 0; color: var(--success); background: #edf8f3; border: 1px solid #c5eadc; }
.deadline-card .form-message.error-message { color: var(--danger); background: #fff0ee; border-color: #ffd1cc; }
.upload-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 20px; }
.file-picker { min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px dashed #aec1cd; border-radius: 9px; cursor: pointer; }
.file-picker input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.file-picker > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.file-picker small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-card .form-message { margin: 14px 0 0; color: var(--success); background: #edf8f3; border: 1px solid #c5eadc; }
.import-card .form-message.error-message { color: var(--danger); background: #fff0ee; border-color: #ffd1cc; }
.import-card .form-message.has-rejections { color: #754c07; background: #fff8e8; border-color: #f1d18b; }
.import-card .form-message strong { display: block; }
.import-card .form-message p { margin: 7px 0; }
.import-card .form-message ul { max-height: 230px; margin: 8px 0 0; padding-left: 22px; overflow-y: auto; }
.import-card .form-message li { margin: 5px 0; }
.response-heading { align-items: center; }
.customer-heading { align-items: center; }
.table-actions { display: flex; gap: 9px; }
.search-field input { min-height: 44px; width: 220px; }
.table-actions .button { min-height: 44px; white-space: nowrap; }
.loading-row, .empty-state { padding: 55px; color: var(--muted); text-align: center; font-size: 13px; }
.empty-state { display: grid; gap: 5px; }
.empty-state strong { color: var(--gray); font: 700 16px "Montserrat"; }
.table-wrap { margin: 23px -27px -27px; overflow-x: auto; border-top: 1px solid #e2e9ed; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 13px 16px; color: var(--muted); background: #f6f8f9; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
td { padding: 15px 16px; color: var(--gray); border-top: 1px solid #e9eef1; vertical-align: middle; }
tbody tr:hover { background: #fbfdfe; }
.credit-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.credit-pill.pending { color: #8a5b08; background: #fff4da; }
.credit-pill.applied { color: var(--success); background: #e4f6ee; }
.status-button { color: var(--blue); border: 0; background: none; font-size: 11px; font-weight: 800; white-space: nowrap; }
.danger-button { color: var(--danger); }
.customer-list-card .form-message { margin: 14px 0 0; color: var(--success); background: #edf8f3; border: 1px solid #c5eadc; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } .response-heading, .customer-heading { align-items: start; flex-direction: column; } .deadline-row { grid-template-columns: 1fr 1fr; } .deadline-field { grid-column: 1 / -1; } }
@media (max-width: 620px) { .admin-header { padding-inline: 20px; } .admin-header-actions span { display: none; } .admin-main { width: min(100% - 24px, 1240px); margin-top: 28px; } .signin-card { padding: 34px 24px; } .dashboard-title { align-items: start; } .dashboard-title h1 { font-size: 30px; } .metrics { grid-template-columns: 1fr 1fr; gap: 9px; } .metrics article { min-height: 124px; padding: 17px; } .metrics strong { font-size: 27px; } .admin-card { padding: 20px; } .upload-row, .deadline-row { grid-template-columns: 1fr; } .deadline-field { grid-column: auto; } .table-actions { width: 100%; } .search-field { flex: 1; } .search-field input { width: 100%; } .table-wrap { margin-inline: -20px; margin-bottom: -20px; } }
