/* Department sites — Hospital & Police (flat gov style) */

.dn-site--dept-hospital,
.dn-site--dept-police {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    background: #1e222d;
}

.dn-site--dept-hospital .dn-chrome--dept-hospital,
.dn-site--dept-police .dn-chrome--dept-police {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    height: 32px;
    background: #252932;
    border-bottom: 1px solid #363a45;
    border-radius: 0;
}

.dn-site--dept-hospital .dn-lock { background: #26a69a; }
.dn-site--dept-police .dn-lock { background: #2962ff; }

.dn-site--dept-hospital .dn-lock,
.dn-site--dept-police .dn-lock {
    width: 28px;
    height: 18px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
}

.dn-site--dept-hospital .dn-site-title,
.dn-site--dept-police .dn-site-title {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #d1d4dc;
}

.dn-site--dept-hospital .dn-site-url,
.dn-site--dept-police .dn-site-url {
    font-family: Consolas, monospace;
    font-size: 10px;
    color: #787b86;
}

.dn-site--dept-hospital .dn-status-pulse--dept-hospital {
    font-size: 9px;
    font-weight: 600;
    color: #26a69a;
    text-shadow: none;
    animation: none;
}

.dn-site--dept-police .dn-status-pulse--dept-police {
    font-size: 9px;
    font-weight: 600;
    color: #2962ff;
    text-shadow: none;
    animation: none;
}

.dn-site--dept-hospital .dn-body,
.dn-site--dept-police .dn-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    background: #1e222d;
    border: none;
    overflow: hidden;
}

.dn-foot--dept {
    padding: 5px 12px;
    background: #252932;
    border-top: 1px solid #363a45;
    font-size: 10px;
}

.dn-foot--dept .dn-foot-meta { color: #5d606b; }
.dn-foot--dept .dn-foot-link { color: #787b86; text-decoration: none; cursor: pointer; }
.dn-foot--dept .dn-foot-link:hover { color: #d1d4dc; }

#win-browser.dept-browser-mode .browser-body.dept-browser-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.dept-app {
    --dept-bg: #1e222d;
    --dept-bg2: #252932;
    --dept-bg3: #2a2e39;
    --dept-border: #363a45;
    --dept-text: #d1d4dc;
    --dept-muted: #787b86;
    --dept-accent: #2962ff;

    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    color: var(--dept-text);
    background: var(--dept-bg);
}

.dept-app--hospital { --dept-accent: #26a69a; }
.dept-app--police { --dept-accent: #1188ff; }

.dept-header {
    padding: 16px 18px;
    background: var(--dept-bg2);
    border-bottom: 1px solid var(--dept-border);
}

.dept-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.dept-brand h1 { margin: 0; font-size: 24px; font-weight: 600; }
.dept-brand p { margin: 6px 0 0; font-size: 14px; color: var(--dept-muted); max-width: 520px; line-height: 1.45; }

.dept-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dept-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--dept-border);
    background: var(--dept-bg3);
    color: var(--dept-muted);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
}

.dept-btn:hover { border-color: var(--dept-accent); color: var(--dept-text); }
.dept-btn-primary { background: var(--dept-accent); border-color: var(--dept-accent); color: #fff; }

.dept-tabs {
    display: flex;
    gap: 4px;
    padding: 0 18px;
    background: var(--dept-bg2);
    border-bottom: 1px solid var(--dept-border);
    overflow-x: auto;
}

.dept-tab {
    padding: 10px 14px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--dept-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.dept-tab:hover { color: var(--dept-text); }
.dept-tab.active {
    color: var(--dept-accent);
    border-bottom-color: var(--dept-accent);
}

.dept-main {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 24px;
}

.dept-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.dept-stat {
    padding: 12px;
    background: var(--dept-bg2);
    border: 1px solid var(--dept-border);
    border-radius: 2px;
    text-align: center;
}

.dept-stat-val {
    font-size: 22px;
    font-weight: 700;
    font-family: Consolas, monospace;
    color: var(--dept-accent);
}

.dept-stat-lbl { font-size: 12px; color: var(--dept-muted); margin-top: 4px; }

.dept-panel {
    background: var(--dept-bg2);
    border: 1px solid var(--dept-border);
    border-radius: 2px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.dept-panel h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.dept-panel h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dept-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dept-panel p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dept-muted);
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.dept-card {
    padding: 14px;
    background: var(--dept-bg);
    border: 1px solid var(--dept-border);
    border-left: 3px solid var(--dept-accent);
    border-radius: 2px;
}

.dept-card-icon { font-size: 24px; margin-bottom: 8px; }
.dept-card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.dept-card-desc { font-size: 13px; color: var(--dept-muted); line-height: 1.45; }

.dept-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--dept-muted);
    line-height: 1.65;
}

.dept-staff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dept-border);
}

.dept-staff-row:last-child { border-bottom: none; }

.dept-staff-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--dept-bg);
    border: 1px solid var(--dept-border);
    border-radius: 2px;
    flex-shrink: 0;
}

.dept-staff-info strong { display: block; font-size: 15px; }
.dept-staff-info span { font-size: 13px; color: var(--dept-muted); }

.dept-precinct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.dept-precinct {
    padding: 12px;
    background: var(--dept-bg);
    border: 1px solid var(--dept-border);
    border-radius: 2px;
}

.dept-precinct-num {
    font-family: Consolas, monospace;
    font-size: 12px;
    color: var(--dept-accent);
    font-weight: 700;
}

.dept-precinct-name { font-size: 15px; font-weight: 600; margin: 4px 0; }
.dept-precinct-meta { font-size: 12px; color: var(--dept-muted); }

.dept-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept-steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 12px 12px 48px;
    margin-bottom: 8px;
    background: var(--dept-bg);
    border: 1px solid var(--dept-border);
    border-radius: 2px;
    font-size: 14px;
    color: var(--dept-muted);
    line-height: 1.5;
}

.dept-steps li::before {
    content: counter(step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dept-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
}

.dept-steps li b { color: var(--dept-text); }

.dept-notice {
    padding: 12px 14px;
    background: rgba(41, 98, 255, 0.08);
    border: 1px solid rgba(41, 98, 255, 0.25);
    border-left: 3px solid var(--dept-accent);
    border-radius: 2px;
    font-size: 14px;
    color: var(--dept-muted);
    line-height: 1.5;
}

.dept-tab-panel { display: none; }
.dept-tab-panel.active { display: block; }

@media (max-width: 640px) {
    .dept-header-top { flex-direction: column; }
}
