body { margin: 0; display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; font-family: "Segoe UI", Arial, sans-serif; background: #eef3f7; color: #17202a; }
nav { background: #17263a; color: white; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
nav strong { margin-bottom: 10px; font-size: 18px; }
button { border: 0; border-radius: 6px; padding: 10px 12px; background: #1f6feb; color: white; font-weight: 700; cursor: pointer; }
.nav-caption { color: #9fb4cb; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.department-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
nav button { min-height: 38px; background: #203750; color: #d8e6f3; text-align: center; border: 1px solid rgba(255,255,255,.08); }
nav button.active, nav button:hover { background: #2f6ea5; color: white; border-color: rgba(255,255,255,.22); }
nav label { margin-top: 12px; color: #aabbd0; font-size: 12px; font-weight: 700; text-transform: uppercase; }
select { width: 100%; border: 1px solid #3f5875; border-radius: 6px; padding: 10px 12px; background: #f6f9fb; color: #17202a; font-weight: 700; }
header { background: white; border-bottom: 1px solid #d8e0e7; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
h1 { margin: 0; font-size: 24px; }
p { color: #607080; }
#content { padding: 22px; display: grid; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; }
.card { background: white; border: 1px solid #d8e0e7; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(10,20,30,.05); }
.panel { display: grid; gap: 10px; }
.panel h2 { margin: 0; font-size: 16px; }
.label { color: #607080; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.metric { font-size: 28px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #d8e0e7; }
th, td { padding: 10px 12px; border-bottom: 1px solid #d8e0e7; text-align: left; vertical-align: top; }
th { background: #f6f9fb; font-size: 12px; text-transform: uppercase; }
.interactive-table tbody tr { cursor: pointer; }
.interactive-table tbody tr:hover, .interactive-table tbody tr:focus, .interactive-table tbody tr.selected { background: #e8f1fb; outline: 2px solid #2f6ea5; outline-offset: -2px; }
.detail-panel { gap: 14px; }
.detail-heading { align-items: center; background: white; border: 1px solid #d8e0e7; border-radius: 8px; display: flex; justify-content: space-between; padding: 16px; }
.detail-heading h2, .detail-heading p { margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 14px; }
.detail-list { display: grid; gap: 10px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; border-bottom: 1px solid #edf1f5; padding-bottom: 8px; }
.detail-list dt { color: #607080; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.detail-list dd { margin: 0; font-weight: 650; }
.status { border-radius: 999px; padding: 4px 8px; background: #e6f4ea; color: #188038; font-weight: 700; }
.settings-form { background: white; border: 1px solid #d8e0e7; display: grid; gap: 14px; padding: 16px; }
.settings-form label { color: #334155; display: grid; gap: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.settings-form input, .settings-form select, .settings-form textarea { border: 1px solid #b9c7d5; border-radius: 6px; box-sizing: border-box; color: #17202a; padding: 10px; width: 100%; }
.settings-form textarea { font: 12px/1.45 Consolas, "Courier New", monospace; min-height: 150px; resize: vertical; }
.compact-settings-form { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
.compact-settings-form .settings-actions { grid-column: 1 / -1; }
.settings-actions { align-items: center; display: flex; gap: 12px; flex-wrap: wrap; }
.form-message { color: #607080; font-weight: 700; }
@media (max-width: 900px) { body { grid-template-columns: 1fr; } nav { display: grid; grid-template-columns: 1fr; } .department-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); } nav strong, .nav-caption, nav label, nav select { grid-column: 1 / -1; } .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } .detail-heading { align-items: flex-start; flex-direction: column; gap: 10px; } .detail-list div { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .department-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid { grid-template-columns: 1fr; } header { align-items: flex-start; flex-direction: column; gap: 12px; } }
