:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #17242d; background: #f3f5f4; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
main { max-width: 1480px; margin: auto; padding: 32px; }
.login-card { width: min(440px, 100%); margin: 8vh auto; padding: 38px; background: white; border-radius: 20px; box-shadow: 0 18px 60px #1536261c; }
.login-card img { width: 220px; max-width: 100%; }
.eyebrow { margin: 22px 0 4px; color: #47745f; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); }
.muted, .message { color: #68766f; }
form { display: grid; gap: 18px; margin: 28px 0 20px; }
label { display: grid; gap: 7px; font-weight: 700; }
input { width: 100%; padding: 12px 14px; border: 1px solid #ccd5d0; border-radius: 10px; font: inherit; background: white; }
button { padding: 12px 16px; border: 0; border-radius: 10px; background: #245e47; color: white; font: inherit; font-weight: 750; cursor: pointer; }
button:hover { background: #194b38; }
.secondary, .tab { background: white; color: #29483a; border: 1px solid #cad6d0; }
header, .account, nav { display: flex; align-items: center; gap: 12px; }
header { justify-content: space-between; margin-bottom: 26px; }
header .eyebrow { margin-top: 0; }
.metrics { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.metric { padding: 20px; border-radius: 14px; background: white; box-shadow: 0 4px 20px #1536260c; }
.metric strong { display: block; font-size: 30px; }
.metric span { color: #63726a; font-size: 13px; }
nav { overflow-x: auto; }
.map-card { padding: 20px; margin-bottom: 28px; border-radius: 14px; background: white; box-shadow: 0 4px 20px #1536260c; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading .eyebrow { margin: 0 0 3px; }
.section-heading h2 { margin: 0; }
#admin-map { height: 380px; border-radius: 12px; background: #e9eeeb; }
.tab.active { background: #245e47; color: white; border-color: #245e47; }
.toolbar { margin: 14px 0; }
.toolbar input { max-width: 430px; }
.panel { display: none; overflow: hidden; background: white; border-radius: 14px; box-shadow: 0 4px 20px #1536260c; }
.panel.active { display: block; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid #e6ebe8; text-align: left; vertical-align: top; }
th { color: #5c6d64; background: #f8faf9; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e8f1ed; color: #245e47; font-size: 12px; font-weight: 750; }
.badge.warn { background: #fff1ce; color: #795200; }
.cell-title, .cell-detail, .cell-subject, .technical-id { display: block; }
.cell-title { margin-bottom: 3px; font-weight: 750; color: #17242d; }
.cell-detail { color: #68766f; font-size: 12px; line-height: 1.45; }
.cell-subject { margin-top: 8px; color: #29483a; font-weight: 700; }
.technical-id { max-width: 220px; margin-top: 8px; overflow: hidden; color: #8a9690; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reservation-table td { min-width: 145px; }
.reservation-table td:nth-child(2), .reservation-table td:nth-child(3) { min-width: 220px; }
.reservation-table .badge { white-space: nowrap; }
.badge.status-requested, .badge.status-reserved { background: #fff1ce; color: #795200; }
.badge.status-rejected, .badge.status-cancelled, .badge.status-terminated { background: #f8e6e4; color: #8c322d; }
.badge.status-booked, .badge.status-active { background: #e0f1e8; color: #1f694d; }
.activity-table td:first-child { width: 180px; white-space: nowrap; }
.activity-table td:nth-child(2) { min-width: 250px; }
.activity-table td:nth-child(3), .activity-table td:nth-child(4) { min-width: 210px; }
.smtp-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 22px 24px 0; }
.smtp-heading .eyebrow { margin: 0 0 3px; }
.smtp-heading h2 { margin: 0; }
.smtp-config { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 20px 24px; }
.smtp-config article { min-width: 0; padding: 14px; border: 1px solid #e1e8e4; border-radius: 10px; background: #f8faf9; }
.smtp-config span, .smtp-config strong { display: block; }
.smtp-config span { margin-bottom: 5px; color: #68766f; font-size: 12px; }
.smtp-config strong { overflow-wrap: anywhere; }
.smtp-notice { margin: 0; padding: 0 24px 20px; color: #68766f; font-size: 13px; }
.smtp-events { overflow-x: auto; border-top: 1px solid #e6ebe8; }
.smtp-events td:first-child { min-width: 185px; }
.smtp-events td:nth-child(2) { min-width: 190px; }
.smtp-detail { max-width: 520px; overflow-wrap: anywhere; }
.badge.smtp-status-success { background: #e0f1e8; color: #1f694d; }
.badge.smtp-status-failed { background: #f8e6e4; color: #8c322d; }
.badge.smtp-status-pending { background: #e7eef7; color: #2b527c; }
.badge.smtp-status-skipped { background: #f1f2f1; color: #56615c; }
.invoice-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 300px; }
.invoice-controls input { width: 120px; padding: 8px 10px; }
.invoice-controls select { padding: 8px 10px; border: 1px solid #ccd5d0; border-radius: 9px; background: white; }
.invoice-controls button { padding: 8px 11px; }
.contract-button { padding: 7px 10px; }
.empty { padding: 34px; color: #6b7771; text-align: center; }
.error { color: #a22c28; }
@media (max-width: 900px) { main { padding: 18px; } header { align-items: flex-start; flex-direction: column; } .account { flex-wrap: wrap; } .metrics { grid-template-columns: repeat(2, 1fr); } #admin-map { height: 300px; } .panel { overflow-x: auto; } }
