:root {
    --brand: #165b34;
    --brand-dark: #0b3a20;
    --brand-light: #e9f5ee;
    --accent: #c4d52a;
    --ink: #17221b;
    --muted: #68746d;
    --line: #e3e9e5;
    --canvas: #f4f7f5;
    --sidebar: #146b3a;
    --orange: #c45b20;
    --shadow: 0 16px 40px rgba(23, 34, 27, .07);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
html.show-app-launch body { overflow: hidden; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 85% 4%, rgba(196, 213, 42, .1), transparent 24rem),
        var(--canvas);
    color: var(--ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: inherit; }
.app-launch-screen { display: none; }
html.show-app-launch .app-launch-screen {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    padding: 2rem;
    color: #164e2c;
    background: #fff;
    text-align: center;
}
.app-launch-screen img { width: min(48vw, 230px); height: auto; }
.app-launch-screen strong { margin-top: .65rem; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .08em; }
.app-launch-screen span { max-width: 28rem; color: #4f6257; font-size: clamp(.9rem, 3.8vw, 1.12rem); font-weight: 650; }
.btn { --bs-btn-border-radius: .65rem; font-weight: 650; }
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    box-shadow: 0 8px 20px rgba(22, 91, 52, .18);
}
.form-control, .form-select {
    min-height: 44px;
    border-color: #d7dfda;
    border-radius: .65rem;
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .22rem rgba(22, 91, 52, .12);
}
.form-label { margin-bottom: .42rem; color: #344239; font-size: .82rem; font-weight: 700; }
.eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: var(--brand);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    position: fixed;
    z-index: 1045;
    inset: 0 auto 0 0;
    display: flex;
    width: 270px !important;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0%, rgba(196, 213, 42, .18), transparent 18rem),
        linear-gradient(180deg, #187a43 0%, var(--sidebar) 48%, #0e4f2b 100%);
    border: 0 !important;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 96px;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand img { object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,.18)); }
.sidebar-brand strong { display: block; font-size: 1.05rem; letter-spacing: .04em; }
.sidebar-brand span { display: block; margin-top: .15rem; color: rgba(255,255,255,.58); font-size: .76rem; }
.sidebar-notifications { position: relative; padding: .8rem .9rem 0; }
.sidebar-notification-button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .75rem;
    padding: .7rem .78rem;
    color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    text-align: left;
    transition: .18s ease;
}
.sidebar-notification-button:hover, .sidebar-notification-button:focus-visible, .sidebar-notification-button[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); }
.sidebar-notification-button > span:nth-child(2) { min-width: 0; }
.sidebar-notification-button strong, .sidebar-notification-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-notification-button strong { font-size: .8rem; }
.sidebar-notification-button small { margin-top: .15rem; color: rgba(255,255,255,.5); font-size: .64rem; }
.notification-bell-wrap { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; background: rgba(255,255,255,.1); border-radius: .65rem; }
.notification-bell-icon { color: var(--accent); font-size: 1rem; transform-origin: 50% 0; }
.notification-badge { position: absolute; top: -7px; right: -8px; display: grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center; color: #fff; background: #e23c4b; border: 2px solid var(--sidebar); border-radius: 999px; font-size: .56rem; font-weight: 850; line-height: 1; }
.notification-chevron { color: rgba(255,255,255,.38); font-size: .72rem; transition: transform .18s ease; }
.sidebar-notification-button[aria-expanded="true"] .notification-chevron { transform: rotate(90deg); }
.sidebar-notification-button.has-reminders .notification-bell-icon { animation: notification-ring .7s ease-in-out 2; }
.notification-menu {
    width: min(360px, calc(100vw - 1.8rem));
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .9rem;
    box-shadow: 0 22px 60px rgba(7, 25, 18, .24);
}
.notification-menu-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.notification-menu-header .eyebrow { margin-bottom: .2rem; font-size: .58rem; }
.notification-menu-header strong { display: block; color: var(--ink); font-size: .9rem; }
.notification-menu-actions { display: flex; align-items: center; gap: .4rem; }
.notification-window { flex: 0 0 auto; padding: .3rem .48rem; color: var(--brand-dark); background: var(--brand-light); border-radius: 999px; font-size: .58rem; font-weight: 800; }
.notification-clear-button { padding: .28rem .45rem; color: #b4232f; background: #fff; border: 1px solid #efc8cd; border-radius: 999px; font-size: .58rem; font-weight: 800; }
.notification-clear-button:hover, .notification-clear-button:focus-visible { color: #8f1822; background: #fce8ea; border-color: #e5aab1; }
.notification-clear-button:disabled { opacity: .58; }
.notification-list { max-height: 330px; overflow-y: auto; }
.notification-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .72rem; padding: .82rem 1rem; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .16s ease; }
.notification-item:hover, .notification-item:focus-visible { color: var(--ink); background: var(--brand-light); }
.notification-item-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--brand); background: var(--brand-light); border-radius: .65rem; }
.notification-item-danger .notification-item-icon { color: #b4232f; background: #fce8ea; }
.notification-item-danger .notification-item-copy span { color: #b4232f; }
.notification-item-copy { min-width: 0; }
.notification-item-copy strong, .notification-item-copy span, .notification-item-copy small { display: block; }
.notification-item-copy strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-copy span { margin-top: .18rem; color: var(--brand); font-size: .63rem; font-weight: 750; }
.notification-item-copy small { display: -webkit-box; margin-top: .24rem; overflow: hidden; color: var(--muted); font-size: .64rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-empty { display: grid; min-height: 135px; place-items: center; align-content: center; gap: .35rem; padding: 1.2rem; color: var(--muted); font-size: .72rem; text-align: center; }
.notification-empty i { color: var(--brand); font-size: 1.3rem; }
.notification-empty strong { color: var(--ink); font-size: .8rem; }
.notification-calendar-link { display: block; padding: .78rem 1rem; color: var(--brand); background: #fbfcfb; font-size: .72rem; font-weight: 800; text-align: center; text-decoration: none; }
.notification-calendar-link:hover, .notification-calendar-link:focus-visible { color: var(--brand-dark); background: var(--brand-light); }
@keyframes notification-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 50% { transform: rotate(-16deg); } 75% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .sidebar-notification-button.has-reminders .notification-bell-icon { animation: none; } }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1.25rem .9rem; }
.sidebar-label {
    margin: .1rem .8rem .7rem;
    color: rgba(255,255,255,.4);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .28rem;
    padding: .82rem .9rem;
    color: rgba(255,255,255,.7);
    border: 1px solid transparent;
    border-radius: .75rem;
    font-size: .87rem;
    font-weight: 650;
    text-decoration: none;
    transition: .2s ease;
}
.sidebar-link i { width: 1.2rem; color: rgba(196, 213, 42, .72); font-size: 1rem; text-align: center; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar-link.active { color: #fff; background: rgba(196, 213, 42, .14); border-color: rgba(196, 213, 42, .18); }
.sidebar-link.active i { color: var(--accent); }
.sidebar-user { padding: .9rem; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-user-button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .65rem;
    padding: .7rem;
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 0;
    border-radius: .75rem;
    text-align: left;
}
.avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--brand-dark);
    background: var(--accent);
    border-radius: 50%;
    font-weight: 850;
}
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: .82rem; }
.user-copy small { color: rgba(255,255,255,.52); font-size: .68rem; }

.app-main { width: calc(100% - 270px); min-height: 100vh; margin-left: 270px; padding: 2rem 2.2rem 3rem; }
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 0 1.6rem;
}
.page-header h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 820; letter-spacing: -.035em; }
.page-header p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.menu-toggle { flex: 0 0 auto; }
.mobile-topbar { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }

.content-card {
    margin-bottom: 1.4rem;
    padding: 1.35rem;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(215, 223, 218, .82);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-heading h2, .section-title h2 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.welcome-panel {
    position: relative;
    display: flex;
    min-height: 125px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.5rem;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(11,58,32,.96), rgba(22,91,52,.86)),
        url("bg-plantation.png") center / cover;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(11,58,32,.2);
}
.welcome-panel::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -110px; border: 35px solid rgba(196,213,42,.18); border-radius: 50%; }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel .eyebrow { color: var(--accent); }
.welcome-panel h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 820; }
.welcome-panel p { margin: .5rem 0 0; color: rgba(255,255,255,.67); }
.welcome-date { display: flex; align-items: center; gap: .65rem; min-width: 178px; padding: .8rem 1rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: .75rem; backdrop-filter: blur(8px); text-align: left; transition: .2s ease; }
.welcome-date:hover, .welcome-date:focus-visible { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(196,213,42,.6); transform: translateY(-2px); }
.welcome-date i { color: var(--accent); font-size: 1.35rem; }
.welcome-date span, .welcome-date strong { display: block; font-size: .72rem; }
.welcome-date strong { margin-top: .15rem; color: #fff; font-size: .85rem; }
.welcome-date small { display: block; margin-top: .18rem; color: rgba(255,255,255,.65); font-size: .6rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.dashboard-metric-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.metric-grid.compact { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.metric-card {
    position: relative;
    min-height: 122px;
    padding: .9rem 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .95rem;
    box-shadow: 0 10px 28px rgba(23,34,27,.045);
}
.metric-card-link { color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.metric-card-link:hover, .metric-card-link:focus-visible { color: inherit; border-color: rgba(22,91,52,.28); box-shadow: 0 16px 34px rgba(23,34,27,.1); transform: translateY(-3px); }
.metric-card-link::before { content: "\F138"; position: absolute; right: 1rem; top: 1rem; color: currentColor; font-family: "bootstrap-icons"; font-size: .85rem; opacity: .55; }
.metric-card::after { content: ""; position: absolute; width: 72px; height: 72px; right: -20px; bottom: -22px; background: currentColor; border-radius: 50%; opacity: .08; }
.metric-icon { display: grid; width: 34px; height: 34px; margin-bottom: .65rem; place-items: center; background: currentColor; border-radius: .65rem; }
.metric-icon i { color: #fff; font-size: 1rem; }
.metric-card > span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.metric-card > strong { display: block; color: var(--ink); font-size: 1.45rem; line-height: 1.1; }
.metric-card > small { display: block; margin-top: .4rem; color: var(--muted); font-size: .7rem; }
.metric-orange { color: #c45b20; }.metric-blue { color: #2773a9; }.metric-green { color: #21834c; }.metric-purple { color: #7250a6; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); align-items: start; gap: 1.25rem; }
.chart-card { min-height: 0; }
.chart-summary { display: block; margin-top: .28rem; color: var(--muted); font-size: .68rem; font-weight: 600; }
.bar-chart { display: flex; height: 155px; align-items: flex-end; gap: clamp(.3rem, 1.3vw, .8rem); padding: .65rem .5rem .2rem; border-bottom: 1px solid var(--line); }
.bar-item { display: flex; height: 100%; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: .4rem; }
.bar-fill { width: min(24px, 75%); min-height: 3px; background: linear-gradient(180deg, var(--accent), var(--brand)); border-radius: .4rem .4rem 0 0; transition: height .5s ease; }
.bar-value { color: var(--muted); font-size: .6rem; }.bar-label { color: var(--muted); font-size: .62rem; }
.activity-list { display: grid; gap: .2rem; }
.dashboard-activity-card .activity-list { max-height: 250px; overflow-y: auto; padding-right: .35rem; }
.calendar-modal-content { overflow: hidden; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 1.25rem; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.calendar-toolbar h3, .calendar-agenda h3, .calendar-event-form h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.mini-calendar-weekdays, .mini-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.mini-calendar-weekdays { margin-bottom: .35rem; }
.mini-calendar-weekdays span { padding: .25rem; color: var(--muted); font-size: .62rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-day { position: relative; min-height: 72px; padding: .5rem; background: #f8faf8; border: 1px solid var(--line); border-radius: .7rem; text-align: left; transition: .18s ease; user-select: none; }
.calendar-day:not(.outside):hover { background: var(--brand-light); border-color: rgba(22,91,52,.25); }
.calendar-day.outside { opacity: .34; }
.calendar-day.today { color: var(--brand-dark); background: #f2f8dc; border-color: rgba(196,213,42,.8); }
.calendar-day.range-selected { color: var(--brand-dark); background: #dff1e6; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.calendar-day-number { display: block; font-size: .72rem; font-weight: 800; }
.calendar-day-dots { display: flex; flex-wrap: wrap; gap: .22rem; margin-top: .55rem; }
.calendar-day-dot { width: 7px; height: 7px; border-radius: 50%; }
.calendar-day-dot.reminder { background: #d18118; }.calendar-day-dot.meeting { background: #2773a9; }.calendar-day-dot.news { background: #7250a6; }
.calendar-agenda { padding: 1rem; background: #f7faf8; border: 1px solid var(--line); border-radius: .9rem; }
.calendar-event-list { display: grid; max-height: 360px; gap: .55rem; overflow-y: auto; }
.calendar-event { padding: .75rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: .65rem; }
.calendar-event[data-type="Meeting"] { border-left-color: #2773a9; }.calendar-event[data-type="News"] { border-left-color: #7250a6; }.calendar-event[data-type="Reminder"] { border-left-color: #d18118; }
.calendar-event-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.calendar-event strong { display: block; color: var(--ink); font-size: .78rem; }
.calendar-event p { margin: .3rem 0 0; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.calendar-event-meta { display: flex; gap: .35rem; align-items: center; margin-top: .38rem; color: var(--muted); font-size: .62rem; }
.calendar-event-form { margin-top: 1.25rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 12px 28px rgba(23,34,27,.07); }
.calendar-range-help { margin: -.35rem 0 .9rem; color: var(--muted); font-size: .7rem; }
.activity-item { display: grid; grid-template-columns: 9px minmax(0,1fr); gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; margin-top: .32rem; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 4px var(--brand-light); }
.activity-item p { margin: 0; color: #354138; font-size: .78rem; line-height: 1.45; }
.activity-item small { color: #8a958e; font-size: .66rem; }

.filter-bar { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.filter-bar > .form-select { max-width: 190px; }
.directory-card { padding: 1.35rem; }
.mpoa-directory-filters { margin-bottom: .85rem; }
.mpoa-directory-filters .search-box { max-width: 520px; }
.directory-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .15rem .75rem; color: var(--muted); font-size: .68rem; }
.directory-summary > span:first-child { color: var(--brand-dark); font-weight: 700; }
.directory-table-wrap { max-height: 64vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.search-box { position: relative; min-width: 220px; max-width: 450px; flex: 1; }
.search-box i { position: absolute; z-index: 1; left: .9rem; top: 50%; color: #879189; transform: translateY(-50%); }
.search-box .form-control { padding-left: 2.45rem; }
.table-meta, .pagination-wrap { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .7rem; }
.table-meta { padding: 0 .15rem .8rem; }
.pagination-wrap { padding-top: 1rem; }
.table-tall { max-height: 64vh; }
.data-table { min-width: 820px; margin-bottom: 0; font-size: .76rem; }
.data-table thead { position: sticky; z-index: 2; top: 0; }
.data-table th {
    padding: .8rem .72rem;
    color: #526057;
    background: #f7f9f8;
    border-bottom: 1px solid #dfe5e1;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.data-table td { padding: .82rem .72rem; color: #3b473f; border-color: #edf1ee; vertical-align: middle; }
.data-table tbody tr:hover td { background: #fbfdfb; }
.company-cell { min-width: 210px; color: var(--brand-dark); font-weight: 750; }
.company-directory-link { color: var(--brand-dark); font-weight: 800; text-decoration: none; }
.company-directory-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: .2rem; }
.entity-state-row td {
    position: sticky;
    z-index: 1;
    top: 40px;
    padding: .62rem .72rem;
    color: var(--brand-dark);
    background: #eef7f1;
    border-color: #dceae1;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.data-table tbody .entity-state-row:hover td { background: #eef7f1; }
.action-buttons { display: flex; gap: .3rem; white-space: nowrap; }
.badge-soft { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .48rem; border-radius: 999px; font-size: .65rem; font-weight: 750; }
.badge-soft-success { color: #17663a; background: #e9f7ef; }.badge-soft-danger { color: #a33535; background: #fcecec; }.badge-soft-warning { color: #8e5b12; background: #fff4dc; }.badge-soft-neutral { color: #56625b; background: #eef2ef; }
.loading-block { height: 38px; margin-bottom: .6rem; background: linear-gradient(90deg, #f1f4f2, #e7ece9, #f1f4f2); background-size: 200% 100%; border-radius: .55rem; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.form-section { position: relative; padding: 1.6rem; }
.section-number { position: absolute; right: 1.25rem; top: 1.1rem; color: #e5ebe7; font-size: 2.25rem; font-weight: 900; }
.section-title { margin-bottom: 1.2rem; padding-right: 3rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; padding: .4rem 0 1rem; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; padding: .85rem; background: #f8faf9; border: 1px solid var(--line); border-radius: .75rem; }
.coverage-multi-select { width: 100%; }
.coverage-dropdown-button { display: flex; align-items: center; color: var(--ink); background-color: #fff; text-align: left; }
.coverage-dropdown-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-dropdown-button.is-invalid { border-color: var(--bs-danger); }
.coverage-dropdown-button.is-invalid:focus { box-shadow: 0 0 0 .22rem rgba(220,53,69,.15); }
.coverage-dropdown-menu { z-index: 1080; width: 100%; min-width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 18px 42px rgba(23,34,27,.16); }
.coverage-dropdown-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .72rem .85rem; border-bottom: 1px solid var(--line); }
.coverage-dropdown-head strong { color: var(--ink); font-size: .76rem; }
.coverage-dropdown-head .btn-link { padding: .15rem .25rem; color: var(--brand); font-size: .68rem; text-decoration: none; }
.coverage-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 250px; gap: .25rem; padding: .55rem; overflow-y: auto; }
.coverage-option-row { display: flex; min-width: 0; align-items: center; gap: .55rem; padding: .55rem .62rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; font-size: .74rem; transition: .15s ease; }
.coverage-option-row:hover { background: var(--brand-light); }
.coverage-option-row:has(.coverage-option:checked) { color: var(--brand-dark); background: var(--brand-light); border-color: rgba(22,91,52,.16); font-weight: 750; }
.coverage-option-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-option { flex: 0 0 auto; margin: 0; }

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    border-radius: 1rem;
}
.profile-hero h2 { margin: 0; font-size: 1.5rem; }.profile-hero p { margin: .4rem 0 0; color: rgba(255,255,255,.68); }
.pb-age-summary { min-width: 180px; padding: 1rem 1.2rem; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: .85rem; backdrop-filter: blur(4px); }
.pb-age-summary span, .pb-age-summary small { display: block; color: rgba(255,255,255,.72); }
.pb-age-summary span { font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pb-age-summary strong { display: block; margin: .15rem 0; color: #fff; font-size: 2rem; line-height: 1; }
.pb-age-summary small { font-size: .68rem; }
.pb-age-summary.pb-age-warning { background: rgba(199,132,10,.48); border-color: rgba(255,211,123,.72); }
.pb-age-summary.pb-age-critical { background: rgba(174,35,48,.66); border-color: rgba(255,170,178,.75); }
.pb-remarks { line-height: 1.55; white-space: normal; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.detail-item { padding: .9rem; background: #f8faf9; border: 1px solid var(--line); border-radius: .7rem; }
.detail-item span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .64rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.detail-item strong { display: block; overflow-wrap: anywhere; font-size: .82rem; }
.detail-item-wide { grid-column: span 2; }
.profile-subheading { margin: 0 0 .75rem; color: var(--brand-dark); font-size: .82rem; font-weight: 850; }
.form-section-heading { margin-bottom: .9rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.form-section-heading h3 { margin: .15rem 0 0; font-size: 1rem; }
.manager-status-panel { display: grid; gap: .55rem; padding: .9rem 1rem; background: #f3f8f5; border: 1px solid #dce9e0; border-radius: .75rem; }
.manager-status-panel small { color: var(--muted); line-height: 1.5; }
.data-table tbody .contact-current-row td { background: #f1f8f3; }
.data-table tbody .contact-current-row:hover td { background: #eaf5ed; }
.state-chip-list { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 180px; }
.state-chip-list span { padding: .24rem .42rem; color: var(--brand-dark); background: #eaf5ed; border-radius: 999px; font-size: .62rem; font-weight: 750; white-space: nowrap; }
.entity-block { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.entity-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .8rem; }
.entity-head h3 { margin: 0; font-size: .95rem; }

.report-cover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.7rem;
    color: #fff;
    background: linear-gradient(115deg, var(--brand-dark), #1e7242);
    border-radius: 1rem;
}
.report-cover img { float: left; margin-right: 1rem; }.report-cover span { color: var(--accent); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.report-cover h2 { margin: .2rem 0; font-size: 1.45rem; }.report-cover p { margin: 0; color: rgba(255,255,255,.62); font-size: .75rem; }
.report-stamp { display: grid; width: 86px; height: 86px; place-items: center; border: 2px solid rgba(196,213,42,.5); border-radius: 50%; transform: rotate(-8deg); }
.upload-zone { display: grid; min-height: 150px; margin-bottom: 1rem; place-items: center; align-content: center; gap: .25rem; color: var(--muted); background: #f8faf9; border: 2px dashed #cdd8d1; border-radius: .85rem; cursor: pointer; }
.upload-zone.drag-over { color: var(--brand); background: var(--brand-light); border-color: var(--brand); }.upload-zone i { color: var(--brand); font-size: 1.8rem; }.upload-zone strong { color: var(--ink); }.upload-zone span { font-size: .72rem; }
.file-item { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.file-item:last-child { border-bottom: 0; }.file-icon { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: #b34b4b; border-radius: .6rem; font-size: .68rem; font-weight: 850; }.file-copy { min-width: 0; flex: 1; }.file-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }.file-copy small { color: var(--muted); font-size: .68rem; }

.lampiran-intro { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; padding: 1.5rem; color: #fff; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); border-radius: 1rem; }.lampiran-intro h2 { margin: 0; }.lampiran-intro p { margin: .45rem 0 0; color: rgba(255,255,255,.65); }.lampiran-intro .eyebrow { color: var(--accent); }.lampiran-intro > i { color: rgba(196,213,42,.45); font-size: 4rem; }
.lampiran-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.lampiran-card { position: relative; min-height: 230px; padding: 1.3rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); text-decoration: none; transition: .22s ease; }
.lampiran-card:hover { border-color: rgba(22,91,52,.35); box-shadow: 0 20px 46px rgba(23,34,27,.11); transform: translateY(-3px); }.lampiran-card > i { display: block; margin: 1.5rem 0 1rem; color: var(--brand); font-size: 1.8rem; }.lampiran-card h2 { font-size: 1rem; font-weight: 800; }.lampiran-card p { color: var(--muted); font-size: .75rem; line-height: 1.5; }.lampiran-card > span:last-child { color: var(--brand); font-size: .72rem; font-weight: 800; }.lampiran-code { position: absolute; right: 1rem; top: .8rem; color: rgba(22,91,52,.1); font-size: 3.3rem; font-weight: 900; }
.lampiran-count { display: block; margin: .85rem 0 .35rem; color: var(--brand); font-size: .82rem; font-weight: 800; }

.empty-state { display: grid; min-height: 65vh; place-items: center; align-content: center; gap: .7rem; text-align: center; }.empty-state > i { color: var(--brand); font-size: 3rem; }.empty-state h1 { margin: 0; font-size: 1.5rem; }.empty-state p { color: var(--muted); }

.login-page { position: fixed; inset: 0; display: grid; place-items: center; overflow: auto; padding: 1rem; background: url("bg-plantation.png") center / cover; }
.login-overlay { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(5,31,17,.94), rgba(7,26,15,.75)); backdrop-filter: blur(2px); }
.login-card { position: relative; z-index: 1; width: min(460px, 100%); overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.26); border-radius: 1.2rem; box-shadow: 0 35px 90px rgba(0,0,0,.42); }
.login-brand { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.6rem; color: #fff; background: linear-gradient(110deg, var(--brand-dark), var(--brand)); border-bottom: 4px solid var(--accent); }
.login-brand img { object-fit: contain; }.login-brand span, .login-brand strong { display: block; }.login-brand span { color: rgba(255,255,255,.6); font-size: .67rem; }.login-brand strong { margin-top: .2rem; font-size: 1rem; }
.login-body { padding: 2rem; }.login-body h1 { margin: 0 0 .45rem; font-size: 2rem; font-weight: 850; letter-spacing: -.04em; }.login-body > p { margin-bottom: 1.5rem; color: var(--muted); font-size: .84rem; }
.branch-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-bottom: 1.3rem; padding: .3rem; background: #eef2ef; border-radius: .75rem; }.branch-switch .btn { border: 0; }.branch-switch .btn-check:checked + .btn { color: var(--brand-dark); background: #fff; box-shadow: 0 5px 14px rgba(23,34,27,.09); }
.login-body .input-group-text { color: var(--brand); background: #f7f9f8; border-color: #d7dfda; }.password-toggle { border-color: #d7dfda; }

/* MPOASSSB uses a dedicated navy identity; MPOA retains the green default above. */
body[data-branch="MPOASSSB"] {
    --brand: #173f6b;
    --brand-dark: #0b2340;
    --brand-light: #eaf1f8;
    --accent: #79a7d2;
    --ink: #142335;
    --muted: #657487;
    --line: #dce5ef;
    --canvas: #f3f6fa;
    --sidebar: #0d2b4d;
    --orange: #2e6798;
    --shadow: 0 16px 40px rgba(11, 35, 64, .08);
    --bs-link-color: #173f6b;
    --bs-link-hover-color: #0b2340;
    background:
        radial-gradient(circle at 85% 4%, rgba(72, 123, 171, .12), transparent 24rem),
        var(--canvas);
}
body[data-branch="MPOASSSB"] .btn-brand { box-shadow: 0 8px 20px rgba(11, 35, 64, .2); }
body[data-branch="MPOASSSB"] .form-control,
body[data-branch="MPOASSSB"] .form-select { border-color: #cedae7; }
body[data-branch="MPOASSSB"] .form-control:focus,
body[data-branch="MPOASSSB"] .form-select:focus { box-shadow: 0 0 0 .22rem rgba(23, 63, 107, .14); }
body[data-branch="MPOASSSB"] .form-label { color: #2d4055; }
body[data-branch="MPOASSSB"] .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
body[data-branch="MPOASSSB"] .btn-outline-success {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}
body[data-branch="MPOASSSB"] .app-sidebar {
    background:
        radial-gradient(circle at 15% 0%, rgba(121, 167, 210, .22), transparent 18rem),
        linear-gradient(180deg, #143f6b 0%, var(--sidebar) 48%, #071a30 100%);
}
body[data-branch="MPOASSSB"] .sidebar-link i { color: rgba(151, 191, 226, .82); }
body[data-branch="MPOASSSB"] .sidebar-link.active {
    background: rgba(121, 167, 210, .2);
    border-color: rgba(151, 191, 226, .28);
}
body[data-branch="MPOASSSB"] .sidebar-link.active i { color: #b7d3ec; }
body[data-branch="MPOASSSB"] .avatar { color: #071a30; background: #9bc0e1; }
body[data-branch="MPOASSSB"] .welcome-panel {
    background:
        linear-gradient(110deg, rgba(7, 26, 48, .97), rgba(20, 63, 107, .9)),
        url("bg-plantation.png") center 45% / cover;
    box-shadow: 0 18px 45px rgba(11, 35, 64, .22);
}
body[data-branch="MPOASSSB"] .welcome-panel::after { border-color: rgba(121, 167, 210, .2); }
body[data-branch="MPOASSSB"] .welcome-date:hover,
body[data-branch="MPOASSSB"] .welcome-date:focus-visible { border-color: rgba(151, 191, 226, .72); }
body[data-branch="MPOASSSB"] .metric-card-link:hover,
body[data-branch="MPOASSSB"] .metric-card-link:focus-visible { border-color: rgba(23, 63, 107, .3); box-shadow: 0 16px 34px rgba(11, 35, 64, .11); }
body[data-branch="MPOASSSB"] .metric-orange { color: #386f9f; }
body[data-branch="MPOASSSB"] .metric-blue { color: #245887; }
body[data-branch="MPOASSSB"] .metric-green { color: #1b4a77; }
body[data-branch="MPOASSSB"] .metric-purple { color: #527fab; }
body[data-branch="MPOASSSB"] .calendar-day { background: #f7f9fc; }
body[data-branch="MPOASSSB"] .calendar-day:not(.outside):hover { border-color: rgba(23, 63, 107, .28); }
body[data-branch="MPOASSSB"] .calendar-day.today { color: var(--brand-dark); background: #e2edf7; border-color: #7fa9ce; }
body[data-branch="MPOASSSB"] .calendar-day.range-selected { color: var(--brand-dark); background: #d9e8f5; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
body[data-branch="MPOASSSB"] .calendar-day-dot.reminder { background: #477ead; }
body[data-branch="MPOASSSB"] .calendar-day-dot.meeting { background: #173f6b; }
body[data-branch="MPOASSSB"] .calendar-day-dot.news { background: #769fc3; }
body[data-branch="MPOASSSB"] .calendar-agenda { background: #f5f8fb; }
body[data-branch="MPOASSSB"] .calendar-event[data-type="Meeting"] { border-left-color: #173f6b; }
body[data-branch="MPOASSSB"] .calendar-event[data-type="News"] { border-left-color: #769fc3; }
body[data-branch="MPOASSSB"] .calendar-event[data-type="Reminder"] { border-left-color: #477ead; }
body[data-branch="MPOASSSB"] .activity-item p { color: #304154; }
body[data-branch="MPOASSSB"] .data-table th { color: #44566a; background: #f4f7fa; border-bottom-color: #d8e2ec; }
body[data-branch="MPOASSSB"] .data-table td { color: #34465a; border-color: #e8eef4; }
body[data-branch="MPOASSSB"] .data-table tbody tr:hover td { background: #f8fafc; }
body[data-branch="MPOASSSB"] .entity-state-row td,
body[data-branch="MPOASSSB"] .data-table tbody .entity-state-row:hover td { background: #e8f0f8; border-color: #d5e1ed; }
body[data-branch="MPOASSSB"] .badge-soft-success { color: #173f6b; background: #e5eef7; }
body[data-branch="MPOASSSB"] .manager-status-panel { background: #edf3f9; border-color: #d6e2ee; }
body[data-branch="MPOASSSB"] .data-table tbody .contact-current-row td { background: #edf3f9; }
body[data-branch="MPOASSSB"] .data-table tbody .contact-current-row:hover td { background: #e4eef7; }
body[data-branch="MPOASSSB"] .state-chip-list span { color: var(--brand-dark); background: #e4eef7; }
body[data-branch="MPOASSSB"] .detail-item,
body[data-branch="MPOASSSB"] .access-grid { background: #f7f9fc; }
body[data-branch="MPOASSSB"] .report-cover { background: linear-gradient(115deg, var(--brand-dark), #1c527f); }
body[data-branch="MPOASSSB"] .report-stamp { border-color: rgba(151, 191, 226, .58); }
body[data-branch="MPOASSSB"] .lampiran-card:hover { border-color: rgba(23, 63, 107, .36); box-shadow: 0 20px 46px rgba(11, 35, 64, .12); }
body[data-branch="MPOASSSB"] .lampiran-code { color: rgba(23, 63, 107, .1); }
body[data-branch="MPOASSSB"] .page-item.active .page-link { color: #fff; background-color: var(--brand); border-color: var(--brand); }
body[data-branch="MPOASSSB"] .page-link { color: var(--brand); }
body[data-branch="MPOASSSB"] .coverage-option-row:has(.coverage-option:checked) { border-color: rgba(23,63,107,.2); }
.data-table tbody .pb-age-warning-row td { background: #fffdf5; }
.data-table tbody .pb-age-warning-row td:first-child { box-shadow: inset 4px 0 #e5a11a; }
.data-table tbody .pb-age-critical-row td { background: #fff7f7; }
.data-table tbody .pb-age-critical-row td:first-child { box-shadow: inset 4px 0 #dc3545; }
.data-table tbody .pb-age-warning-row:hover td { background: #fff8e8 !important; }
.data-table tbody .pb-age-critical-row:hover td { background: #ffeded !important; }

.registration-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}
.registration-mode-button {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 76px;
    padding: .9rem 1rem;
    color: var(--text);
    text-align: left;
    background: rgba(255,255,255,.8);
    border: 1px solid var(--line);
    border-radius: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.registration-mode-button > i { color: var(--brand); font-size: 1.45rem; }
.registration-mode-button span { display: flex; flex-direction: column; font-weight: 700; }
.registration-mode-button small { margin-top: .18rem; color: var(--muted); font-size: .73rem; font-weight: 500; }
.registration-mode-button:hover { border-color: rgba(18,95,55,.3); }
.registration-mode-button.active { background: #f2f8f4; border-color: var(--brand); box-shadow: 0 10px 28px rgba(18,95,55,.09); }
.form-divider { margin: 1.7rem 0; color: var(--line); opacity: 1; }
.section-title > p { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.csv-import-layout { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.csv-requirements-panel, .csv-upload-card, .csv-preview { padding: 1.1rem; background: #f8faf9; border: 1px solid var(--line); border-radius: .85rem; }
.csv-requirements-panel { min-width: 0; }
.csv-requirements { color: var(--muted); font-size: .76rem; }
.csv-requirements-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .75rem; }
.csv-requirements-heading small { color: var(--muted); }
.csv-requirements p { margin-bottom: .75rem; }
.csv-requirements .table-responsive { max-height: 420px; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.csv-requirements table { min-width: 0; font-size: .72rem; }
.csv-requirements th { position: sticky; top: 0; z-index: 1; background: #f1f6f3; }
.csv-requirements td { vertical-align: top; }
.csv-requirements td small { display: block; margin-top: .18rem; color: var(--muted); }
.csv-requirements code { color: var(--brand-dark); font-size: .72rem; }
.csv-upload-panel { min-width: 0; }
.csv-upload-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .9rem 1rem; align-items: center; background: #fff; border-style: dashed; }
.csv-upload-card > i { grid-row: 1 / span 2; color: var(--brand); font-size: 2.25rem; }
.csv-upload-card h3, .csv-preview h3 { margin: 0; font-size: 1rem; }
.csv-upload-card p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.csv-upload-card .form-control { grid-column: 2; }
.csv-preview { margin-top: 1rem; background: #fff; }
.csv-preview .data-table { min-width: 640px; }

@media (max-width: 991.98px) {
    .csv-import-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1199px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .lampiran-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
    .app-main { width: 100%; margin-left: 0; padding: 1.2rem; }
    .app-sidebar { position: fixed; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .registration-mode-tabs { grid-template-columns: 1fr; }
    .page-header { align-items: flex-start; flex-wrap: wrap; }
    .page-header > div:nth-child(2), .page-header > div:first-child:not(.d-flex) { flex: 1; }
    .filter-bar { align-items: stretch; flex-wrap: wrap; }
    .filter-bar > .search-box, .filter-bar > .form-select { min-width: 100%; max-width: none; }
    .metric-grid, .metric-grid.compact, .lampiran-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 135px; }
    .pb-profile-hero { align-items: stretch; flex-direction: column; }
    .pb-age-summary { width: 100%; }
    .detail-grid, .access-grid, .coverage-options { grid-template-columns: 1fr; }
    .detail-item-wide { grid-column: auto; }
    .directory-summary { align-items: flex-start; flex-direction: column; gap: .25rem; }
    .report-stamp, .lampiran-intro > i { display: none; }
    .welcome-panel { align-items: flex-start; flex-direction: column; }
    .welcome-date { width: 100%; min-width: 0; }
    .calendar-day { min-height: 56px; padding: .35rem; }
    .welcome-panel, .report-cover { padding: 1.3rem; }
    .content-card { padding: 1rem; }
    .form-section { padding: 1.2rem; }
}
@media (max-width: 575.98px) {
    .app-main { padding: .75rem .7rem 2rem; }
    .page-header { gap: .75rem; margin-bottom: 1rem; }
    .page-header h1 { font-size: 1.65rem; }
    .page-header p { font-size: .76rem; }
    .page-header > .btn:not(.menu-toggle), .page-header > .d-flex { width: 100%; }
    .page-header > .d-flex .btn { flex: 1; }
    .content-card { padding: .85rem; border-radius: .8rem; }
    .filter-bar { gap: .55rem; }
    .filter-bar > .btn { width: 100%; }
    .table-responsive { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    .data-table { min-width: 720px; font-size: .7rem; }
    .data-table th, .data-table td { padding: .68rem .55rem; }
    .action-buttons { flex-wrap: nowrap; }
    .modal-dialog { margin: .45rem; }
    .modal-dialog-scrollable { height: calc(100% - .9rem); }
    .modal-content { border-radius: .85rem; }
    .notification-menu { width: calc(100vw - 1rem); }
    .calendar-day { min-height: 48px; border-radius: .5rem; }
    .calendar-day-dots { margin-top: .35rem; }
    .calendar-day-dot { width: 6px; height: 6px; }
    .file-item { align-items: flex-start; flex-wrap: wrap; }
    .file-copy { min-width: calc(100% - 60px); }
}
@media print {
    body { background: #fff !important; }
    .app-sidebar, .page-header, .filter-bar, .form-actions, .btn, .upload-zone, #appToastContainer { display: none !important; }
    .app-main { width: 100%; margin: 0; padding: 0; }
    .content-card, .report-cover { box-shadow: none; break-inside: avoid; }
    .table-responsive { overflow: visible !important; }
    .data-table { min-width: 100%; font-size: 8pt; }
}
