.admin-body{background:#f4f7fa;color:#102a43}.admin-main{max-width:1180px;margin:0 auto;padding:42px 24px 70px}.admin-intro{margin-bottom:26px}.admin-intro h1{font-size:clamp(2.3rem,5vw,4rem);margin:8px 0}.admin-intro p:not(.eyebrow){color:#526578;max-width:700px}.admin-panel{background:#fff;border:1px solid #dce5ed;border-radius:16px;padding:24px;margin:20px 0;box-shadow:0 8px 30px #102a4308}.admin-panel h2,.admin-panel h3{margin:0 0 14px}.admin-form{display:flex;flex-direction:column;gap:9px}.admin-form label{font-weight:650;font-size:.92rem}.admin-form input,.admin-form select,.admin-form textarea{width:100%;border:1px solid #cbd7e2;border-radius:9px;padding:12px;font:inherit;background:white;color:#102a43;margin-bottom:7px}.admin-actions,.admin-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.admin-actions{justify-content:flex-start}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.table-scroll{overflow:auto}.admin-panel table{width:100%;border-collapse:collapse;min-width:680px}.admin-panel th,.admin-panel td{text-align:left;padding:12px;border-bottom:1px solid #e7edf2;font-size:.9rem;vertical-align:top}.admin-panel th{background:#f7f9fb}.admin-panel td small{display:block;color:#66788a;margin-top:4px}.admin-main [hidden]{display:none!important}.admin-body .form-note{color:#607286;font-size:.9rem;line-height:1.5}@media(max-width:800px){.admin-grid{grid-template-columns:1fr}.admin-main{padding:28px 16px 48px}.admin-panel{padding:18px}.admin-two{grid-template-columns:1fr;gap:0}}
html[data-theme="dark"] .admin-body{background:#0c1722;color:#e7eef5}html[data-theme="dark"] .admin-intro h1,html[data-theme="dark"] .admin-panel h2,html[data-theme="dark"] .admin-panel h3{color:#f1f6fb}html[data-theme="dark"] .admin-panel{background:#142433;border-color:#304455}html[data-theme="dark"] .admin-body .form-note{color:#b4c3d0}

.auth-card{max-width:620px}.auth-links{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:.92rem}.auth-links a{color:#1677ff;font-weight:700;text-decoration:underline;text-underline-offset:3px}.auth-card .admin-form button{align-self:flex-start;margin-top:6px}.auth-card .admin-form button:disabled{opacity:.65;cursor:wait}html[data-theme="dark"] .auth-links a{color:#76b6ff}

.auth-popup{width:min(92vw,440px);border:1px solid #dce5ed;border-radius:20px;padding:30px;color:#102a43;background:#fff;box-shadow:0 24px 80px #061a2d40;text-align:center}.auth-popup::backdrop{background:#071727b8;backdrop-filter:blur(3px)}.auth-popup h2{margin:12px 0;font-size:1.6rem}.auth-popup p{color:#526578;line-height:1.65;margin:0 0 22px}.auth-popup .button{min-width:130px}.auth-popup-icon{margin:auto;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#e8f3ff;color:#1677ff;font-size:1.7rem}html[data-theme="dark"] .auth-popup{background:#142433;color:#f1f6fb;border-color:#304455}html[data-theme="dark"] .auth-popup p{color:#b4c3d0}

.ai-composer{border:1px solid #cfe0f1;background:#f5faff;border-radius:12px;padding:16px;margin:6px 0 10px}.ai-composer h4{margin:0 0 7px}.ai-composer .form-note{margin:0 0 12px}.ai-compose-action{display:flex;align-items:end}.ai-compose-action .button{width:100%;white-space:normal;min-height:44px}.ai-compose-action .button:disabled{opacity:.65;cursor:wait}html[data-theme="dark"] .ai-composer{background:#102536;border-color:#35536a}html[data-theme="dark"] .ai-composer h4{color:#f1f6fb}

/* Customer invoice payment instructions */
.payment-instructions{margin-top:1rem;padding:1rem;border:1px solid var(--border,#d6e0e8);border-radius:12px;background:var(--surface,#f7fafc);overflow-wrap:anywhere}
.payment-instructions code{display:block;padding:.7rem;margin:.5rem 0;border-radius:8px;background:var(--surface-strong,#e8eef4);font-size:.95rem;overflow-wrap:anywhere;word-break:break-word}
.customer-payment-form{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border,#d6e0e8)}
.customer-payment-form button{align-self:flex-start}

.payment-preview:empty{display:none}.payment-preview:not(:empty){margin-top:.75rem;padding:.85rem;border:1px solid var(--border,#d6e0e8);border-radius:10px;background:var(--surface,#f7fafc);overflow-wrap:anywhere}.payment-preview code{display:block;padding:.65rem;margin:.45rem 0;border-radius:8px;background:var(--surface-strong,#e8eef4);font-size:.95rem;overflow-wrap:anywhere;word-break:break-word}
