:root {
    --brand: #1f6f78;
    --brand-dark: #15515a;
    --accent: #f97316;
    --soft-bg: #f7fafc;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
[v-cloak] { display: none; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--soft-bg);
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}
.app-frame {
    min-height: 100vh;
    display: flex;
}
.app-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sidebar {
    position: sticky;
    top: 0;
    width: 274px;
    height: 100vh;
    flex: 0 0 274px;
    background: white;
    border-right: 1px solid #e2e8f0;
    box-shadow: 8px 0 20px rgba(15, 23, 42, .05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px 22px;
    overflow-y: auto;
}
.sidebar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidebar-logo {
    display: block;
    width: min(220px, 100%);
    max-height: 72px;
    height: auto;
    object-fit: contain;
}
.sidebar-kicker {
    color: #64748b;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 4px;
}
.sidebar-nav {
    display: grid;
    gap: 6px;
}
.sidebar-group {
    display: grid;
    gap: 4px;
}
.sidebar-group-toggle {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}
.sidebar-group-toggle:hover {
    background: #f1f5f9;
    color: var(--brand-dark);
}
.sidebar-group.active .sidebar-group-toggle {
    color: var(--brand-dark);
}
.sidebar-group-caret {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
}
.sidebar-group-links {
    display: grid;
    gap: 4px;
    padding-left: 8px;
    border-left: 2px solid #e2e8f0;
    margin-left: 10px;
}
.sidebar-nav a {
    color: #334155;
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 12px;
    text-decoration: none;
}
.sidebar-nav a:hover {
    background: #f1f5f9;
    color: var(--brand-dark);
}
.sidebar-nav a.active {
    background: rgba(31, 111, 120, .12);
    color: var(--brand-dark);
}
.topbar {
    min-height: 64px;
    background: white;
    color: #172033;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 10px 28px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.topbar-title {
    color: #64748b;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    text-align: center;
}
.topbar-announcement {
    color: var(--brand-dark);
    display: inline-block;
    max-width: min(720px, 100%);
    overflow-wrap: anywhere;
    text-decoration: none;
    vertical-align: middle;
    white-space: normal;
}
.topbar-announcement:hover {
    color: var(--accent);
    text-decoration: underline;
}
.topbar-announcement.muted {
    color: #94a3b8;
    font-weight: 700;
}
.brand-block {
    flex: 0 0 255px;
}
.brand-logo-link {
    display: flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
}
.brand-logo {
    display: block;
    width: min(255px, 58vw);
    height: auto;
    max-height: 80px;
    object-fit: contain;
}
.brand-title {
    display: block;
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .2px;
}
.brand-subtitle { font-size: .82rem; opacity: .88; margin-top: 2px; }
.main-nav { display: flex; gap: 18px; flex: 1; }
.main-nav a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    opacity: 1;
}
.main-nav a:hover { color: var(--brand-dark); text-decoration: underline; }
.nav-placeholder {
    color: #64748b;
    font-weight: 600;
    opacity: 1;
}
.account-nav { display: flex; align-items: center; gap: 10px; }
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}
.mobile-menu-toggle:hover {
    background: #eef2f7;
    border-color: #94a3b8;
}
.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #172033;
}
.sidebar-backdrop {
    display: none;
}
.user-email { font-size: .85rem; opacity: .9; }
.account-nav .dropdown-menu { min-width: 190px; }
.account-nav .dropdown-item { font-weight: 500; }
.account-nav .btn-light {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #172033;
}
.account-nav .btn-light:hover {
    background: #eef2f7;
    border-color: #94a3b8;
}
.page-shell {
    width: 100%;
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 20px;
    flex: 1 0 auto;
}
.page-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; }
.page-title-row h1 { margin: 0; font-size: 1.8rem; font-weight: 800; }
.page-title-row p { margin: 4px 0 0; color: #64748b; }
.card { border: 0; border-radius: 18px; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.btn-primary, .btn-success { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover, .btn-success:hover { background: #ea580c; border-color: #ea580c; }
.stat-card { padding: 22px; border-radius: 18px; background: white; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.stat-card .label { color: #64748b; font-weight: 700; font-size: .9rem; }
.stat-card .value { font-size: 2rem; font-weight: 900; margin-top: 4px; }
.form-card { max-width: 780px; }
.table td, .table th { vertical-align: middle; }
.search-input { max-width: 360px; }
.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.status-filter { max-width: 220px; }
.schedule-toolbar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 14px;
}
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 12px;
}
.schedule-day {
    min-height: 280px;
    background: white;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.schedule-day-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.schedule-day-header span { color: #64748b; font-weight: 700; }
.shift-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    background: #fbfdff;
}
.shift-time { font-weight: 800; color: var(--brand-dark); }
.empty-slot, .empty-state {
    color: #64748b;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}
.month-weekdays div {
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 10px;
}
.month-day {
    min-height: 210px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.month-day.outside-month {
    background: #f8fafc;
}
.month-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, .16), 0 12px 28px rgba(15, 23, 42, .06);
}
.month-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.month-day-header a:first-child {
    color: #172033;
    font-weight: 900;
    text-decoration: none;
}
.month-day.outside-month .month-day-header a:first-child {
    color: #94a3b8;
}
.month-summary {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.month-shift-list {
    display: grid;
    gap: 8px;
}
.month-shift {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    background: #fbfdff;
    font-size: .86rem;
}
.compact-stat {
    box-shadow: none;
    border: 1px solid #e2e8f0;
}
.recommendation-list {
    display: grid;
    gap: 14px;
}
.recommendation-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fbfdff;
}
.recommendation-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.score-box {
    min-width: 76px;
    text-align: right;
    color: var(--brand-dark);
}
.score-box span {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}
.score-box small {
    color: #64748b;
    font-weight: 700;
}
.score-meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}
.score-meter div {
    height: 100%;
    background: var(--accent);
}
.recommendation-explanation {
    color: #334155;
    margin-bottom: 12px;
}
.report-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.report-link {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    color: #172033;
    text-decoration: none;
    background: #fbfdff;
}
.report-link:hover {
    border-color: var(--accent);
    color: #172033;
}
.report-link strong {
    display: block;
    margin-bottom: 6px;
}
.report-link span {
    color: #64748b;
}
.role-card {
    height: 100%;
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.role-card h5 {
    margin: 0;
    font-weight: 800;
}
.role-permissions {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #334155;
}
.role-permissions li { margin-bottom: 6px; }
.account-detail {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.account-detail:last-child { border-bottom: 0; }
.account-detail span { color: black; font-weight: 700; }
.account-detail strong { text-align: right; }
.announcement-compose {
    display: flex;
    gap: 10px;
}
.announcement-compose .form-control {
    min-width: 0;
}
.announcement-message {
    max-width: 520px;
    white-space: normal;
}
.notification-list {
    display: grid;
    gap: 12px;
}
.notification-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #fbfdff;
}
.notification-item.unread {
    border-color: rgba(249, 115, 22, .45);
    background: #fff7ed;
}
.notification-main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.notification-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.notification-item p {
    margin: 0 0 8px;
    color: #334155;
}
.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: .84rem;
    font-weight: 700;
}
.notification-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.notification-detail-header h2 {
    font-size: 1.45rem;
    font-weight: 900;
    margin: 10px 0 0;
}
.notification-detail-message {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}
.notification-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: .88rem;
    font-weight: 700;
}
.compliance-alert-list {
    display: grid;
    gap: 12px;
}
.compliance-alert {
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    border-radius: 12px;
    background: #fbfdff;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.compliance-alert.high {
    border-left-color: #dc2626;
    background: #fef2f2;
}
.compliance-alert.medium {
    border-left-color: #f97316;
    background: #fff7ed;
}
.compliance-alert.low {
    border-left-color: #16a34a;
}
.compliance-alert p {
    color: #334155;
    margin: 0;
}
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: .75rem;
    font-weight: 900;
}
.site-footer {
    flex-shrink: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, .04);
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 24px;
}
.footer-logo-link {
    display: flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
}
.footer-logo {
    display: block;
    width: min(210px, 55vw);
    max-height: 52px;
    height: auto;
    object-fit: contain;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.footer-links a {
    color: #334155;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}
.footer-meta {
    color: #64748b;
    display: grid;
    gap: 4px;
    font-size: .84rem;
    font-weight: 700;
    text-align: right;
}
.identity-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.identity-panel {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.identity-copy {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
}
.identity-copy h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 8px 0 10px;
}
.identity-copy p {
    color: rgba(255, 255, 255, .86);
    max-width: 520px;
}
.brand-kicker {
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    opacity: .86;
}
.identity-panel h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 18px;
}
.password-row {
    display: flex;
    gap: 8px;
}
.password-row .form-control { min-width: 0; }
.identity-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}
.reset-link-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #fbfdff;
}
.identity-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.demo-login {
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, .12);
    color: white;
    text-align: left;
}
.demo-login:hover { background: rgba(255, 255, 255, .18); }
.demo-login strong,
.demo-login span {
    display: block;
}
.demo-login span {
    font-size: .85rem;
    opacity: .82;
}
.identity-checklist {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}
.identity-checklist span {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .1);
}
.password-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.password-hint span {
    border-radius: 999px;
    padding: 5px 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}
.password-hint span.met {
    background: #dcfce7;
    color: #166534;
}
@media (max-width: 850px) {
    .app-frame { display: block; }
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1040;
        width: min(330px, 86vw);
        height: 100vh;
        border-right: 0;
        border-left: 1px solid #e2e8f0;
        box-shadow: -12px 0 28px rgba(15, 23, 42, .16);
        transform: translateX(105%);
        transition: transform .2s ease;
    }
    body.mobile-menu-open .sidebar { transform: translateX(0); }
    .sidebar-nav {
        display: grid;
    }
    .topbar {
        align-items: flex-start;
        gap: 12px;
        padding: 10px 14px;
    }
    .topbar-title {
        order: 1;
        text-align: center;
        line-height: 1.35;
        padding-top: 4px;
    }
    .topbar-announcement {
        max-width: 100%;
        white-space: normal;
    }
    .topbar-actions {
        order: 2;
        margin-left: auto;
    }
    .mobile-menu-toggle { display: flex; }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15, 23, 42, .35);
    }
    body.mobile-menu-open .sidebar-backdrop { display: block; }
    body.mobile-menu-open { overflow: hidden; }
    .announcement-compose { flex-direction: column; }
    .footer-inner {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .footer-meta { text-align: left; }
    .filter-row { align-items: stretch; flex-direction: column; }
    .status-filter, .search-input { max-width: none; }
    .recommendation-main { flex-direction: column; }
    .notification-main { flex-direction: column; }
    .compliance-alert { flex-direction: column; }
    .score-box { text-align: left; }
    .report-links { grid-template-columns: 1fr; }
    .identity-shell { grid-template-columns: 1fr; }
    .identity-demo-grid { grid-template-columns: 1fr; }
    .password-row { flex-direction: column; }
    .schedule-toolbar { justify-content: flex-start; flex-wrap: wrap; }
    .schedule-grid { grid-template-columns: 1fr; }
    .month-weekdays { display: none; }
    .month-grid { grid-template-columns: 1fr; }
    .month-day { min-height: 0; }
}
