/* ============================================
   PACE PTA Papua Barat - Shared Green / Gold Design System
   ============================================ */

:root {
    color-scheme: only light;
    --primary: #15803D;
    --primary-rgb: 21, 128, 61;
    --primary-dark: #166534;
    --primary-light: var(--brand-ink);
    --secondary: #183328;
    --secondary-rgb: 24, 51, 40;
    --gold: #D6A526;
    --gold-rgb: 214, 165, 38;
    --yellow: var(--gold);
    --yellow-rgb: var(--gold-rgb);
    --orange: var(--primary);
    --orange-rgb: var(--primary-rgb);
    --brand-ink: #166534;
    --orange-ink: var(--brand-ink);
    --on-primary: #FFFFFF;
    --rose: var(--secondary);
    --rose-rgb: var(--secondary-rgb);
    --success-rgb: 4, 120, 87;
    --accent: var(--orange-ink);
    --success: #047857;
    --danger: #dc2626;
    --warning: #a15c07;
    --info: var(--secondary);
    --page-bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-muted: #F7F7F7;
    --surface-strong: #EAEAEA;
    --surface-brand: #F0F7F0;
    --surface-orange: var(--surface-brand);
    --surface-guide: #FCF7E8;
    --border-guide: #E7D6A4;
    --shadow-public-panel: 0 12px 36px rgba(28, 28, 28, .055), 0 2px 5px rgba(28, 28, 28, .025);
    --shadow-public-rail: 0 10px 30px rgba(28, 28, 28, .07);
    /* Compatibility aliases for existing page components. */
    --dark: var(--surface);
    --dark-2: var(--surface-muted);
    --dark-3: var(--surface-strong);
    --text: #183328;
    --text-main: var(--text);
    --text-muted: #626262;
    --glass-bg: var(--surface);
    --glass-border: #E6E6E6;
    --glass-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    --sidebar-width: 252px;
    --topbar-height: 76px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --scroll-thumb: #BDBDBD;
    --scroll-track: var(--surface-muted);
    --scroll-hover: #858585;
    --scroll-active: var(--text-muted);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--page-bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: clip;
    line-height: 1.6;
    font-size: 14px;
}

#particles-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.3;
}

/* ---- Scrollbar ---- */
* { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
html { scrollbar-gutter: stable; scroll-padding-top: 100px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
::-webkit-scrollbar-thumb:active { background: var(--scroll-active); }
@media (forced-colors: active) { * { scrollbar-color: auto; } }
h1,h2,h3,h4 { color:var(--secondary); font-family: var(--font-display); line-height: 1.35; letter-spacing: -0.025em; }
button,a { -webkit-tap-highlight-color: transparent; }
a,button { touch-action: manipulation; }
[hidden] { display: none !important; /* Native hidden must beat grid/flex component display. */ }

/* ---- Sidebar ---- */
.sidebar {
    position: fixed; left: 0; top: 0; width: var(--sidebar-width); height: 100vh;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column; z-index: 100;
    transition: var(--transition);
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.025);
}

.sidebar-header {
    padding: 24px 22px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white; box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.12);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4); }
    50% { box-shadow: 0 4px 25px rgba(var(--primary-rgb), 0.7); }
}

.logo-text .logo-name { display:block; font-size: 20px; font-weight: 800; color: var(--secondary); }
.logo-text span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }

.sidebar-nav { flex: 1; padding: 20px 14px; overflow-y: auto; }

.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    border-radius: var(--radius); color: var(--text-muted);
    text-decoration: none; margin-bottom: 4px; position: relative;
    transition: var(--transition);
}

.nav-item:hover { color: var(--text); background: rgba(var(--primary-rgb), 0.06); }

.nav-item.active {
    color: var(--text); background: var(--yellow);
    border: 1px solid transparent;
    font-weight: 600;
}

.nav-item.active .nav-icon { color: var(--text); }

.nav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 16px; }
.nav-item.active .nav-icon { background: rgba(255,255,255,.08); }

.nav-badge {
    margin-left: auto; background: var(--danger); color: white;
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 10px; animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.nav-indicator { position: absolute; right: 0; width: 3px; height: 20px; background: var(--primary); border-radius: 3px; display: none; }
.nav-item.active .nav-indicator { display: block; }

.sidebar-footer { padding: 15px; border-top: 1px solid var(--glass-border); }

.user-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.user-avatar {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; position: relative;
}

.online-dot {
    position: absolute; bottom: -2px; right: -2px; width: 12px; height: 12px;
    background: var(--success); border-radius: 50%; border: 2px solid var(--dark);
    animation: pulse 2s infinite;
}

.user-info h4 { font-size: 13px; font-weight: 600; }
.user-info span { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

.logout-btn {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 10px 16px; border-radius: var(--radius);
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    color: var(--danger); cursor: pointer; font-size: 13px;
    transition: var(--transition);
}
.logout-btn:hover { background: rgba(239,68,68,0.2); transform: translateY(-1px); }

/* ---- Main Content ---- */
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; position: relative; z-index: 1; }

/* ---- Topbar ---- */
.topbar {
    min-height: var(--topbar-height); padding: 16px 32px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 15px; }

.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb .active { color: var(--text); font-weight: 500; }
.breadcrumb i { font-size: 10px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.search-box {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: var(--dark-2); border-radius: 10px; border: 1px solid var(--glass-border);
    transition: var(--transition); min-width: 280px;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.search-box i { color: var(--text-muted); font-size: 14px; }
.search-box input { background: none; border: none; color: var(--text); outline: none; font-size: 13px; width: 100%; }
.search-box input::placeholder { color: var(--text-muted); }

.voice-search-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 4px; border-radius: 50%; transition: var(--transition);
}
.voice-search-btn:hover { color: var(--primary); }
.voice-search-btn.recording { color: var(--danger); animation: pulse 1s infinite; }

.topbar-actions { display: flex; gap: 8px; }

.action-btn {
    width: 40px; height: 40px; border-radius: 10px; background: var(--dark-2);
    border: 1px solid var(--glass-border); color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    position: relative; transition: var(--transition);
}
.action-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

.action-badge {
    position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
    background: var(--danger); color: white; font-size: 10px; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---- Page Content ---- */
.page-content { padding: 32px; max-width: 1480px; margin: 0 auto; }

/* ---- Alerts ---- */
.alert {
    padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-close { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; }

/* ---- Cards ---- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 24px; transition: var(--transition);
    box-shadow: 0 3px 16px rgba(15, 23, 42, 0.035);
}
.glass-card:hover { border-color: var(--glass-border); }

/* ---- Stat Cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card {
    --card-color: var(--secondary);
    --card-rgb: var(--secondary-rgb);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 22px; position: relative; overflow: hidden; transition: var(--transition);
}
.stat-card:hover { border-color: var(--glass-border); }
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--card-accent,var(--card-color));
}

.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}

.stat-card .stat-value { font-family: var(--font-display); font-size: 30px; line-height: 1.15; font-weight: 800; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); }

.stat-card.secondary { --card-color: var(--orange-ink); --card-rgb: var(--orange-rgb); --card-accent:var(--orange); }
.stat-card.green { --card-color: var(--secondary); --card-rgb: var(--secondary-rgb); }
.stat-card.orange { --card-color: var(--orange-ink); --card-rgb: var(--orange-rgb); --card-accent:var(--orange); }
.stat-card .stat-icon { background: rgba(var(--card-rgb), 0.12); color: var(--card-color); }

/* ---- Grid Layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border-radius: var(--radius); font-size: 14px; font-weight: 500;
    cursor: pointer; border: none; transition: var(--transition); text-decoration: none;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { filter: brightness(0.94); }

.btn-primary { background: var(--primary); color: var(--on-primary); font-weight: 650; box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.12); }
.btn-primary:hover { filter:none; background:var(--primary-dark); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.18); }
.btn-primary:active { filter:none; background:var(--primary); box-shadow:0 1px 3px rgba(var(--primary-rgb),.14); }
.btn-primary:disabled:hover { background:var(--primary); filter:none; }
.btn-secondary { background: var(--dark-2); color: var(--text); border: 1px solid var(--glass-border); }
.btn-outline-light { background: var(--surface); color: var(--secondary); border: 1px solid var(--glass-border); }
.btn-success { background: linear-gradient(135deg, var(--success), #065f46); color: white; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: white; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---- Form ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }

.form-control {
    width: 100%; padding: 10px 16px; background: var(--surface);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    color: var(--text); font-size: 14px; font-family: var(--font-body);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none; cursor: pointer; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23696178' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select.form-control option { background: var(--surface); color: var(--text); }
input, textarea, select, button { font-family: inherit; }
input[type="checkbox"] { accent-color: var(--primary); }
.form-control:disabled, .form-control[readonly] { background-color: var(--surface-muted); color: var(--text-muted); opacity: 1; }
.btn:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
textarea.form-control { resize: none; min-height: 120px; max-height: 340px; overflow-y: auto; }

/* ---- Tables ---- */
.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 1px solid var(--glass-border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--glass-border); font-size: 14px; }
.data-table tr:hover td { background: rgba(var(--primary-rgb), 0.05); }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--accent); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(var(--secondary-rgb), 0.15); color: var(--secondary); }
.badge-primary { background: rgba(var(--primary-rgb), 0.15); color: var(--primary-light); }

/* ---- Section Headers ---- */
.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.section-header h2 { font-size: 19px; font-weight: 700; }
.section-header h3 { font-size: 16px; font-weight: 600; }

/* ---- Chat Styles ---- */
.chat-container { display: flex; height: calc(100vh - var(--topbar-height) - 50px); gap: 20px; }

.chat-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; }
.chat-main { flex: 1; display: flex; flex-direction: column; }

.chat-list { flex: 1; overflow-y: auto; }

.chat-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius); cursor: pointer; transition: var(--transition);
    text-decoration: none; color: var(--text); margin-bottom: 4px;
}
.chat-item:hover, .chat-item.active { background: rgba(var(--primary-rgb), 0.1); }

.chat-item-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; position: relative; flex-shrink: 0;
}

.chat-item-info { flex: 1; min-width: 0; }
.chat-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.chat-item-info p { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-meta { text-align: right; }
.chat-item-meta .time { font-size: 11px; color: var(--text-muted); }
.chat-item-meta .unread { background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 4px; margin-left: auto; }

/* Messages */
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.message-bubble {
    max-width: 70%; padding: 12px 16px; border-radius: 16px;
    font-size: 14px; line-height: 1.5; position: relative;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.message-bubble.sent { background: var(--secondary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--dark-2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-time { font-size: 10px; opacity: 0.7; margin-top: 4px; }

.chat-input-area {
    padding: 16px; border-top: 1px solid var(--glass-border);
    display: flex; align-items: center; gap: 10px;
}
.chat-input-area input {
    flex: 1; padding: 12px 16px; background: var(--dark-2);
    border: 1px solid var(--glass-border); border-radius: 12px;
    color: var(--text); font-size: 14px; outline: none;
    transition: var(--transition);
}
.chat-input-area input:focus { border-color: var(--primary); }

.chat-input-btn {
    width: 44px; height: 44px; border-radius: 12px; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); font-size: 16px;
}
.chat-input-btn.send { background: var(--primary); color: var(--on-primary); }
.chat-input-btn.send:hover { transform: scale(1.05); }
.chat-input-btn.voice { background: var(--dark-2); color: var(--text-muted); border: 1px solid var(--glass-border); }
.chat-input-btn.voice:hover { color: var(--danger); border-color: var(--danger); }
.chat-input-btn.voice.recording { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); animation: pulse 1s infinite; }

/* ---- Meeting Cards ---- */
.meeting-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 20px; transition: var(--transition);
}
.meeting-card:hover { border-color: var(--glass-border); }

/* ---- Call Center ---- */
.call-container { display: grid; grid-template-columns: 1fr 350px; gap: 20px; min-height: calc(100vh - var(--topbar-height) - 50px); }

.dial-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 0 auto; }

.dial-btn {
    width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--glass-border);
    background: var(--dark-2); color: var(--text); font-size: 22px; font-weight: 600;
    cursor: pointer; transition: var(--transition); display: flex; flex-direction: column;
    align-items: center; justify-content: center; margin: 0 auto;
}
.dial-btn:hover { background: rgba(var(--primary-rgb), 0.15); border-color: var(--primary); transform: scale(1.1); }
.dial-btn span { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; }
.dial-btn.call { background: linear-gradient(135deg, var(--success), #065f46); border: none; color: white; }
.dial-btn.call:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.4); }
.dial-btn.end { background: linear-gradient(135deg, var(--danger), #dc2626); border: none; color: white; }

.dial-display {
    text-align: center; padding: 20px; font-size: 28px; font-weight: 300;
    letter-spacing: 3px; color: var(--text); min-height: 60px;
}

.contact-list { max-height: 400px; overflow-y: auto; }

.contact-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.contact-item:hover { background: rgba(var(--primary-rgb), 0.1); }

/* ---- Call Overlay ---- */
.call-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
    z-index: 9999; display: none; flex-direction: column;
    align-items: center; justify-content: center;
}
.call-overlay.active { display: flex; }

.call-avatar-lg {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; font-weight: 700; color: white; margin-bottom: 20px;
    animation: ring 1.5s ease-in-out infinite;
}
@keyframes ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    50% { box-shadow: 0 0 0 30px rgba(var(--primary-rgb), 0); }
}

.call-actions { display: flex; gap: 20px; margin-top: 40px; }

.call-action-btn {
    width: 60px; height: 60px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; cursor: pointer; transition: var(--transition);
}
.call-action-btn:hover { transform: scale(1.1); }
.call-action-btn.mute { background: var(--surface-strong); color: var(--text); }
.call-action-btn.end-call { background: var(--danger); color: white; }
.call-action-btn.speaker { background: var(--surface-strong); color: var(--text); }

/* ---- Voice Indicator ---- */
.voice-indicator {
    display: none; align-items: center; gap: 12px; padding: 12px 20px;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius); margin-bottom: 10px;
}
.voice-indicator.active { display: flex; }

.voice-waves { display: flex; align-items: center; gap: 3px; height: 24px; }
.voice-waves .wave {
    width: 3px; background: var(--danger); border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}
.voice-waves .wave:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-waves .wave:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-waves .wave:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-waves .wave:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-waves .wave:nth-child(5) { height: 8px; animation-delay: 0.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.2); } }

/* ---- Service Cards ---- */
.service-card {
    --card-color: var(--secondary);
    --card-rgb: var(--secondary-rgb);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 24px; text-align: left; transition: var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--glass-shadow); border-color: rgba(var(--card-rgb), 0.4); }
.service-card[data-category="persidangan"] { --card-color: var(--orange-ink); --card-rgb: var(--orange-rgb); }
.service-card[data-category="kepaniteraan"] { --card-color: var(--secondary); --card-rgb: var(--secondary-rgb); }
.service-card[data-category="informasi"] { --card-color: var(--orange-ink); --card-rgb: var(--orange-rgb); }
.service-card[data-category="pengaduan"] { --card-color: var(--rose); --card-rgb: var(--rose-rgb); }
.service-card .badge-primary { background: rgba(var(--card-rgb), 0.1); color: var(--card-color); }
.service-card .service-icon { background: rgba(var(--card-rgb), 0.1); color: var(--card-color); }

.service-icon {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary-light);
}
.service-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---- Auth Pages ---- */
.auth-container {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 20px; position: relative; z-index: 1;
}

.auth-card {
    width: 100%; max-width: 420px; background: var(--glass-bg);
    backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 40px; animation: fadeInUp 0.6s ease;
    box-shadow: var(--glass-shadow);
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header .auth-logo {
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; margin: 0 auto 16px;
}
.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-header p { font-size: 14px; color: var(--text-muted); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary-light); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state > i { font-size: 36px; color: #909090; margin-bottom: 20px; }
.empty-state h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ---- Modal ---- */
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.22); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal-backdrop.active { display: flex; }
.modal-content { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 28px; width: calc(100% - 32px); max-width: 520px; max-height: calc(100dvh - 48px); overflow-y: auto; animation: fadeInUp 0.3s ease; box-shadow: var(--glass-shadow); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3, .modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-close { width: 40px; height: 40px; border-radius: 10px; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }

/* ---- Typing Indicator ---- */
.typing-indicator { display: none; padding: 10px 16px; align-self: flex-start; }
.typing-indicator.active { display: flex; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .call-container { grid-template-columns: 1fr; }
    .chat-container { flex-direction: column; height: auto; }
    .chat-sidebar { width: 100%; max-height: 300px; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .search-box { min-width: auto; display: none; }
    .topbar { padding: 0 15px; }
    .page-content { padding: 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- PTSP workspace refinements ---- */
.skip-link { position:fixed; top:-80px; left:16px; background:var(--surface); color:var(--secondary); padding:12px 20px; z-index:10001; border:2px solid var(--primary); border-radius:12px; }
.skip-link:focus { top:12px; }
.nav-group-label,.eyebrow { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:1.5px; line-height:1.5; }
.nav-group-label { padding:0 12px; margin-bottom:12px; }
.nav-group-channel { margin-top:28px; }
.sidebar-footer { padding:20px; }
.user-info { min-width:0; }
.user-info h4 { font-size:12px; overflow-wrap:anywhere; }
.logo-text .logo-name { font-family:var(--font-display); font-size:23px; letter-spacing:-1px; }
.logo-text span { letter-spacing:3px; font-size:9px; }
.sidebar-scrim { position:fixed; inset:0; background:rgba(15,23,42,.3); z-index:90; border:0; cursor:pointer; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.page-heading h1 { font-size:clamp(25px,2.6vw,34px); font-weight:800; margin-top:7px; }
.page-description { color:var(--text-muted); font-size:14px; line-height:1.7; margin-top:10px; max-width:660px; }
.page-heading-aside { color:var(--text-muted); font-size:12px; text-align:right; flex-shrink:0; }
.topbar-left,.breadcrumb { min-width:0; }
.topbar { gap:12px; }
.topbar-right { flex-shrink:0; }
.breadcrumb .active { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.breadcrumb-item:first-child { white-space:nowrap; }
.satker-ribbon { display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--glass-border); padding:17px 20px; border-radius:var(--radius); margin-bottom:24px; }
.satker-ribbon-icon { display:grid; place-items:center; width:42px; height:42px; flex-shrink:0; border-radius:10px; background:rgba(var(--primary-rgb),.07); color:var(--primary); font-size:18px; }
.satker-ribbon strong { display:block; font-size:14px; margin-top:3px; overflow-wrap:anywhere; }
.satker-ribbon-label { margin-left:auto; font-size:11px; padding:5px 10px; background:var(--surface-muted); border-radius:6px; white-space:nowrap; color:var(--text-muted); }
.stat-card { display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:12px; }
.stat-card .stat-icon { grid-column:2; grid-row:1/3; margin:0; width:44px; height:44px; }
.stat-card .stat-value { grid-column:1; grid-row:1; }
.stat-card .stat-label { grid-column:1; grid-row:2; }
.section-header .eyebrow { margin-bottom:5px; }
.section-index { color:var(--text-muted); }
.dashboard-workspace { grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr); align-items:stretch; }
.dashboard-workspace > .glass-card { min-width:0; }
.channel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.channel-card { --channel-color:var(--secondary); --channel-rgb:var(--secondary-rgb); position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:13px; padding:18px; text-decoration:none; color:var(--text); border:1px solid var(--glass-border); border-radius:14px; background:var(--surface); transition:var(--transition); }
.channel-card:hover { border-color:rgba(var(--channel-rgb),.4); background:rgba(var(--channel-rgb),.025); box-shadow:0 3px 12px rgba(15,23,42,.035); }
.channel-green { --channel-color:var(--secondary); --channel-rgb:var(--secondary-rgb); }
.channel-blue { --channel-color:var(--orange-ink); --channel-rgb:var(--orange-rgb); }
.channel-orange { --channel-color:var(--orange-ink); --channel-rgb:var(--orange-rgb); }
.channel-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:rgba(var(--channel-rgb),.09); color:var(--channel-color); font-size:18px; }
.channel-card strong { font-size:13px; font-weight:650; }
.channel-card small { display:block; font-size:11px; color:var(--text-muted); margin-top:3px; }
.channel-arrow { position:absolute; top:18px; right:16px; color:var(--text-muted); font-size:10px; }
.dashboard-workspace .empty-state { padding:42px 16px; }
.dashboard-workspace .empty-state h3 { font-size:15px; margin-top:8px; }
.dashboard-workspace .empty-state p { font-size:12px; }
.service-card .service-icon { margin:0 0 18px; width:48px; height:48px; font-size:21px; border-radius:12px; }
.service-card h3,.service-card h2 { font-size:15px; font-weight:700; margin-bottom:10px; }
.service-detail-link { margin-top:18px; font-size:12px; font-weight:600; color:var(--card-color); text-decoration:none; }
.service-detail-link i { margin-left:8px; }
.service-detail-link:hover { text-decoration:underline; }
.catalog-toolbar { display:flex; gap:16px; align-items:center; margin:28px 0 20px; }
.catalog-search { display:flex; align-items:center; gap:12px; flex:1; background:var(--surface); border:1px solid var(--glass-border); border-radius:12px; padding:8px 16px; color:var(--text-muted); min-width:0; }
.catalog-search:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(var(--primary-rgb),.08); }
.catalog-search input { width:100%; min-width:0; border:0; outline:0; font-size:14px; color:var(--text); background:transparent; height:34px; }
.category-filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.filter-pill { min-height:38px; border:1px solid var(--glass-border); background:var(--surface); border-radius:9px; color:var(--text-muted); padding:8px 14px; font-size:12px; cursor:pointer; transition:var(--transition); }
.filter-pill:hover { color:var(--secondary); border-color:var(--primary); }
.filter-pill[aria-pressed=true] { color:var(--secondary); background:rgba(var(--primary-rgb),.07); border-color:rgba(var(--primary-rgb),.3); font-weight:600; }
.catalog-caption { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:16px; color:var(--text-muted); font-size:12px; }
.catalog-caption span i { margin-right:5px; }
.catalog-grid { gap:20px; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); }
.service-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.service-card .badge { font-size:10px; }
.catalog-grid .service-card p { margin-bottom:20px; }
.service-action { margin-top:auto; padding-top:20px; border-top:1px solid var(--glass-border); }
.service-action .btn { width:100%; justify-content:space-between; background:var(--surface); font-size:12px; color:var(--card-color); }
.service-action .btn:hover { background:rgba(var(--card-rgb),.06); border-color:rgba(var(--card-rgb),.3); }
.search-clear { background:transparent; border:0; color:var(--text-muted); font-size:22px; width:30px; height:32px; cursor:pointer; flex-shrink:0; border-radius:6px; }
.search-clear:hover { background:var(--surface-muted); color:var(--text); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance:none; }
.form-label { font-weight:600; color:var(--text); font-size:12px; }
.form-control { min-height:44px; }
.form-control[aria-invalid=true] { border-color:var(--danger); }
.field-error { color:var(--danger); font-size:12px; line-height:1.5; margin:6px 0 0; }
.password-field { position:relative; }
.password-field input { padding-right:82px; }
.password-toggle { position:absolute; right:7px; top:6px; height:32px; padding:0 9px; background:var(--surface-muted); border:0; border-radius:7px; color:var(--text-muted); font-size:11px; cursor:pointer; }
.password-toggle:hover { color:var(--secondary); }
form[aria-busy=true] button[data-ui-disabled] { opacity:.65; }
.has-modal { overflow:hidden; }
.ui-status { position:fixed; z-index:11000; right:24px; bottom:24px; display:flex; align-items:center; gap:20px; padding:16px 20px; border:1px solid var(--glass-border); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:var(--glass-shadow); max-width:min(440px,calc(100vw - 32px)); font-size:13px; }
.ui-status button { border:0; border-radius:6px; background:var(--surface-muted); color:var(--text); width:32px; height:32px; cursor:pointer; flex-shrink:0; }
.consultation-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.chat-main { min-width:0; }
.chat-input-area input { min-width:0; }
.chat-input-btn { flex-shrink:0; }
.message-bubble { overflow-wrap:anywhere; }
.auth-card { animation:none; }
.auth-brand { display:none; }
.auth-brand-link { display:inline-flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:18px; font-weight:800; color:var(--secondary); text-decoration:none; }
.auth-channel-list { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.auth-channel-list span { display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid var(--glass-border); border-radius:10px; font-size:11px; background:var(--surface); color:var(--secondary); }
.auth-channel-list span:nth-child(2) { color:var(--orange-ink); }
.auth-channel-list span:nth-child(3) { color:var(--secondary); }
.auth-home-link { display:inline-block; margin-top:14px; font-size:12px; color:var(--text-muted); }
.auth-header .eyebrow { margin-bottom:12px; font-size:10px; }
.drawer-open { overflow:hidden; }
.public-landing .sidebar,.public-landing .topbar,.public-access .sidebar,.public-access .topbar { display:none; }
.public-landing .main-content,.public-access .main-content { margin-left:0; }
.public-landing .page-content { padding:0 32px; max-width:1340px; }
.public-access .page-content { padding:0; max-width:none; }
.public-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:28px 20px; }
.public-brand { display:flex; align-items:center; gap:12px; color:var(--text); text-decoration:none; font-family:var(--font-display); font-size:20px; font-weight:800; line-height:1.3; }
.public-brand strong { color:var(--secondary); }
.public-brand small { display:block; color:var(--text-muted); font-size:10px; font-weight:500; margin-top:5px; }
.hero-title span { color:var(--secondary); }
.hero-badge-dot { width:7px; height:7px; border-radius:50%; background:var(--primary); }
.hero-footnote { font-size:11px; color:var(--text-muted); margin-top:24px; }
.hero-footnote i { margin-right:7px; }
.service-desk { position:relative; padding:32px; border:1px solid var(--glass-border); background:var(--surface); border-radius:24px; width:380px; flex-shrink:0; box-shadow:0 18px 44px rgba(15,23,42,.045); }
.service-desk::before { content:''; height:5px; position:absolute; top:0; left:28px; right:28px; border-radius:0 0 6px 6px; background:linear-gradient(to right,var(--primary) 0 40%,var(--secondary) 40% 100%); }
.desk-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.desk-mark { color:var(--primary); font-size:24px; }
.service-desk h2 { font-size:30px; letter-spacing:-1px; }
.desk-channels { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 28px; }
.desk-channels span { display:inline-flex; gap:6px; align-items:center; padding:6px 8px; color:var(--secondary); background:rgba(var(--secondary-rgb),.07); font-size:10px; border-radius:6px; }
.desk-channels span:nth-child(2) { color:var(--orange-ink); background:rgba(var(--orange-rgb),.08); }
.desk-channels span:nth-child(3) { color:var(--secondary); background:rgba(var(--secondary-rgb),.07); }
.desk-steps { list-style:none; display:flex; flex-direction:column; gap:22px; padding-top:24px; border-top:1px solid var(--glass-border); }
.desk-steps li { display:flex; align-items:flex-start; gap:14px; }
.desk-steps li > span { width:24px; height:24px; border-radius:50%; border:1px solid var(--glass-border); display:grid; place-items:center; font-size:10px; color:var(--text-muted); flex-shrink:0; }
.desk-steps strong { display:block; font-size:12px; }
.desk-steps small { display:block; color:var(--text-muted); font-size:10px; margin-top:3px; }
.public-landing .feature-card p { margin-top:12px; font-size:14px; line-height:1.7; }
@media(max-width:1080px) { .public-landing .hero-section { gap:32px; } .service-desk { width:330px; padding:26px; } }
@media(max-width:860px) { .public-landing .hero-section { flex-direction:column; align-items:flex-start; min-height:auto; padding:40px 20px 64px; } .public-landing .hero-content { max-width:100%; } .service-desk { width:100%; } .service-desk h2 br { display:none; } .desk-steps { gap:18px; } }
@media(max-width:540px) { .public-landing .page-content { padding:0 18px; } .public-nav { padding:22px 0; } .public-nav .btn { font-size:11px; padding:8px 10px; } .public-brand { font-size:16px; gap:8px; } .public-brand .logo-icon { width:34px; height:34px; font-size:14px; } .public-brand small { display:none; } .public-landing .hero-section { padding:30px 0 54px; } .public-landing .hero-badge { font-size:10px; padding:8px 10px; } .public-landing .hero-title { font-size:34px; letter-spacing:-1.3px; } .public-landing .hero-subtitle { font-size:14px; } .public-landing .hero-actions { flex-direction:column; } .public-landing .hero-actions .btn { width:100%; font-size:13px; } .public-landing .section-shell { padding:0; } .public-landing .features-grid,.public-landing .info-grid { grid-template-columns:minmax(0,1fr); } }
.btn { min-height:42px; justify-content:center; }
.btn-sm { min-height:34px; }
.data-table th { text-transform:none; letter-spacing:0; font-size:12px; background:var(--surface-muted); }
.data-table td { font-size:13px; }
/* Legacy animate.css classes remain in older templates; routine product content stays visible. */
.animate__animated { animation:none !important; }
@media(min-width:1100px) {
    .auth-container.auth-split { max-width:1150px; margin:0 auto; gap:100px; }
    .auth-brand { display:block; flex:1; max-width:490px; }
    .auth-brand h1 { font-size:44px; line-height:1.2; letter-spacing:-1.6px; margin:24px 0; }
    .auth-brand p { color:var(--text-muted); line-height:1.8; }
    .auth-brand .channel-grid { margin-top:32px; }
}
@media(max-width:1180px) { .dashboard-workspace { grid-template-columns:minmax(0,1fr); } .page-heading { align-items:flex-start; } .page-heading-aside { max-width:180px; flex-shrink:1; } }
@media(max-width:768px) {
    .page-content { padding:24px 18px; }
    .topbar { min-height:64px; height:auto; padding:12px 18px; }
    .page-heading { flex-direction:column; gap:10px; }
    .page-heading-aside { text-align:left; max-width:none; }
    .satker-ribbon { padding:14px; gap:10px; }
    .satker-ribbon-label { display:none; }
    .satker-ribbon strong { font-size:12px; }
    .stat-card { padding:18px 14px; }
    .stat-card .stat-value { font-size:26px; }
    .stat-card .stat-icon { width:34px; height:34px; font-size:16px; }
    .stat-card .stat-label { font-size:11px; }
    .stats-grid { gap:12px; }
    .glass-card { padding:20px; }
    .catalog-toolbar { flex-wrap:wrap; }
    .catalog-toolbar > .btn { width:100%; }
    .catalog-search { flex-basis:100%; }
    .catalog-caption span { display:none; }
    .channel-card { padding:14px; }
    .section-header > div { min-width:0; max-width:100%; flex-wrap:wrap; }
    .section-header form { flex-wrap:wrap; max-width:100%; }
    .section-header select { min-width:0 !important; /* Legacy inline desktop minimum cannot overflow the phone toolbar. */ width:100%; }
    .notif-dropdown { max-width:calc(100vw - 36px); }
}
@media(max-width:480px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .grid-4.catalog-grid { grid-template-columns:minmax(0,1fr); } .stat-card { column-gap:4px; } .channel-grid { grid-template-columns:minmax(0,1fr); } .channel-card { flex-direction:row; align-items:center; } .channel-arrow { top:22px; right:14px; } .channel-card > span:nth-child(2) { padding-right:20px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; /* Honor the OS preference across legacy animation classes. */ scroll-behavior:auto !important; } }

/* Approved reference E: white / forest green / muted gold / green-black. */
.satker-ribbon { background:var(--surface-brand); border-color:var(--glass-border); color:var(--text); }
.satker-ribbon .eyebrow { color:var(--text-muted); }
.satker-ribbon-icon { background:var(--primary); color:var(--on-primary); }
.satker-ribbon-label { color:var(--brand-ink); background:var(--surface); }
.nav-item.active .nav-indicator { background:var(--text); }
.auth-header .auth-logo { background:var(--secondary); }
:focus-visible { outline-color:var(--secondary); }

/* PTSP operations: the shared shell and the four user-supplied brand colours. */
.nav-item.active .nav-badge { background: var(--text); color: white; }
.sidebar-nav { min-height: 0; overflow-y: auto; }
.operations-card { padding: 24px; min-width: 0; }
.operations-space { margin-bottom: 24px; }
.operations-errors ul { margin: 8px 0 0 20px; }
.operations-section-title { font-size: 18px; font-weight: 750; margin-bottom: 16px; }
.operations-section-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.operations-section-head .operations-section-title { margin-bottom: 6px; }
.operations-filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 24px; }
.operations-filters .form-group { margin: 0; min-width: 150px; }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-muted); }
.filter-grow { flex: 1; }
.operations-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--glass-border); border-radius: var(--radius); }
.operations-table { width: 100%; border-collapse: collapse; }
.operations-table th { text-align: left; color: var(--text); font-size: 12px; font-weight: 650; letter-spacing: 0; text-transform: none; background: var(--surface-muted); }
.operations-table th, .operations-table td { padding: 15px 16px; vertical-align: top; }
.operations-table td { font-size: 13px; overflow-wrap: anywhere; }
.operations-table tr:last-child td { border-bottom: 0; }
.cell-detail { display: block; color: var(--text-muted); font-size: 12px; margin-top: 4px; line-height: 1.55; }
.badge-neutral { background: var(--surface-strong); color: var(--text); }
.operations-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 12px; padding-top: 18px; }
.operations-pagination nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.operations-pagination [aria-disabled=true] { opacity: .45; pointer-events: none; }
.operations-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: start; gap: 24px; }
.operations-aside { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.operations-aside .operations-section-title { margin: 0; }
.operations-aside .page-description { margin: 0; font-size: 14px; }
.operations-aside-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(var(--yellow-rgb), .24); font-size: 21px; }
.operations-check { display: flex; gap: 12px; align-items: start; border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.operations-check input[type=checkbox], .hours-day input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--secondary); }
.operations-check label { cursor: pointer; font-size: 14px; font-weight: 650; }
.operations-check p, .field-hint { color: var(--text-muted); font-size: 12px; line-height: 1.65; margin-top: 6px; }
.field-optional { font-weight: 400; color: var(--text-muted); }
.operations-activity { padding: 0; list-style: none; }
.operations-activity li { padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.operations-activity li:last-child { border-bottom: 0; }
.operations-activity span, .operations-activity time { display: block; color: var(--text-muted); font-size: 12px; }
.operations-unit-band { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: rgba(var(--yellow-rgb), .10); margin-bottom: 22px; }
.operations-unit-band > div:nth-child(2) { flex: 1; min-width: 0; }
.operations-unit-band strong { display: block; font-size: 16px; line-height: 1.55; }
.operations-unit-band span { font-size: 12px; }
.operations-unit-filter { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.operations-unit-filter label { font-size: 12px; white-space: nowrap; }
.operations-unit-filter select { min-width: 0; max-width: 280px; }
.hours-table { min-width: 730px; }
.hours-table td { padding: 10px 12px; }
.hours-table input[type=time] { min-width: 120px; padding: 10px; }
.hours-day { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.hours-day label { cursor: pointer; }
.operations-hours-footer { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-top: 22px; }
.operations-hours-footer .form-group { max-width: 580px; margin: 0; }
.operations-hours-footer input { max-width: 220px; }
.operations-holiday-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 24px; }
.operations-holiday-form .form-group { margin: 0; }
.operations-empty-small { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 8px; color: var(--text-muted); }
.operations-empty-small i { color: var(--orange-ink); font-size: 22px; }
.operations-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.operations-stat { padding: 22px 18px; display: flex; gap: 14px; align-items: start; }
.operations-stat-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(var(--yellow-rgb), .16); color: var(--primary); font-size: 21px; }
.operations-stat-orange { background: rgba(var(--primary-rgb), .12); }
.operations-stat h2 { font-size: 13px; font-weight: 650; }
.operations-stat strong { font-size: 32px; font-weight: 800; line-height: 1.5; font-variant-numeric: tabular-nums; }
.operations-stat p { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.operations-queue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; gap: 20px; }
.operations-queue-main { padding: 18px; }
.operations-tabs { display: flex; align-items: stretch; gap: 4px; padding: 4px; background: var(--surface-muted); border: 1px solid var(--glass-border); border-radius: 9px; width: fit-content; max-width: 100%; margin-bottom: 20px; }
.operations-tabs a { display: flex; align-items: center; text-align: center; justify-content: center; color: var(--text); text-decoration: none; min-height: 42px; font-size: 12px; padding: 9px 12px; border-radius: 6px; }
.operations-tabs a:hover { background: var(--surface-strong); }
.operations-tabs a.active { background: var(--yellow); color: var(--text); font-weight: 700; }
.queue-operations-table { min-width: 630px; table-layout: auto; }
.queue-operations-table td { max-width: 200px; }
.queue-operations-table th, .queue-operations-table td { padding: 13px 11px; }
.queue-number { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.operations-row-actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 78px; }
.operations-row-actions .btn { white-space: nowrap; }
.operations-queue-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 24px; min-height: 300px; }
.operations-empty-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(var(--yellow-rgb), .15); color: var(--primary); display: grid; place-items: center; font-size: 32px; margin-bottom: 18px; }
.operations-queue-empty h2 { font-size: 18px; margin-bottom: 8px; }
.operations-queue-empty p { color: var(--text-muted); font-size: 13px; max-width: 380px; }
.operations-aside-heading { display: flex; gap: 12px; align-items: center; }
.operations-aside-heading h2 { font-size: 16px; }
.operations-hours-summary { background: rgba(var(--yellow-rgb), .10); border-radius: 9px; padding: 16px; }
.operations-hours-summary > i { color: var(--orange-ink); display: block; font-size: 22px; margin-bottom: 10px; }
.operations-hours-summary strong { font-size: 14px; display: block; }
.operations-hours-summary p { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.operations-refresh { text-align: right; max-width: 280px; }
.operations-refresh p { font-size: 11px; color: var(--text-muted); margin-top: 7px; }
.operations-refresh .operations-update-error { color: var(--orange-ink); }
.operations-history-filter { display: flex; gap: 12px; align-items: end; margin-bottom: 18px; flex-wrap: wrap; }
.operations-manage-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.availability-feedback { margin: -6px 0 22px; }
.availability-feedback .btn { margin-top: 10px; }
.notif-feedback { padding: 14px; border-bottom: 1px solid var(--glass-border); font-size: 12px; color: var(--text-muted); }
.notif-feedback .btn { margin-top: 10px; }
@media (max-width: 1200px) {
    .operations-stat { gap: 10px; padding: 18px 14px; }
    .operations-stat-icon { width: 38px; height: 38px; font-size: 18px; }
    .operations-unit-band { flex-wrap: wrap; }
    .operations-unit-filter { flex-basis: 100%; }
    .operations-unit-filter select { max-width: none; }
    .operations-queue-layout { grid-template-columns: minmax(0, 1fr); }
    .queue-hours-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
    .queue-hours-aside > .field-hint { grid-column: 1 / -1; }
}
@media (max-width: 1050px) {
    .operations-form-layout { grid-template-columns: minmax(0, 1fr); }
    .operations-holiday-form { align-items: stretch; }
}
@media (max-width: 700px) {
    .operations-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .operations-stat { flex-direction: column; gap: 10px; }
    .operations-card { padding: 18px; }
    .operations-queue-main { padding: 12px; }
    .operations-unit-band { padding: 16px; gap: 12px; }
    .operations-unit-band strong { font-size: 14px; }
    .operations-unit-filter { flex-wrap: wrap; }
    .operations-unit-filter label { flex-basis: 100%; }
    .operations-unit-filter select { flex: 1; width: 0; }
    .operations-refresh { text-align: left; max-width: 100%; }
    .queue-hours-aside { display: flex; align-items: stretch; }
    .queue-is-empty { min-width: 0; }
    .queue-is-empty thead { display: none; }
    .operations-tabs { width: 100%; }
    .operations-tabs a { flex: 1; padding: 8px; }
    .operations-hours-footer { align-items: stretch; flex-direction: column; }
    .operations-holiday-form > *, .operations-filters > * { flex: 1 1 100%; }
    .operations-pagination nav { justify-content: space-between; width: 100%; gap: 8px; }
    .operations-pagination nav span { font-size: 11px; }
}

.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; }
