:root {
    --navy-blue: #0B2E59;
    --gold: #D4AF37;
    --gold-soft: #f5eac5;
    --danger: #c62828;
    --ink: #333333;
    --link-blue: #0056b3;
}

body {
    background: #f6fafd;
    color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-blue);
}

/* Top navbar */
.navbar {
    border-bottom: 1px solid #e0e0e0;
}

.navbar .nav-link {
    color: var(--ink);
    font-size: 12px;
    padding: 5px 4px;
}

.navbar .nav-link:hover {
    color: var(--link-blue);
}

.navbar .nav-link.active-link {
    color: var(--navy-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
}

.navbar .nav-link.disabled {
    color: #b0b0b0;
}

/* Sidebar transition */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--navy-blue);
    color: #fff;
    overflow: hidden;
    overflow-x: hidden;
    scrollbar-width: none;
    transition: width 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}

.dash-header-card {
    background: #fff;
    border-left: 4px solid var(--navy-blue);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
}

.sidebar.collapsed .sidebar-section-label {
    font-size: 0;
    height: 1px;
    margin: 10px 14px;
    padding: 0;
    background: rgba(255, 255, 255, .12);
}

/* ---- Sidebar icon size ---- */
.sidebar .nav-link .nav-icon-box {
    width: 28px;
    height: 23px;
}

.sidebar .nav-link .nav-icon-box i {
    font-size: 15px;
}

/* Same size when the sidebar is collapsed */
.sidebar.collapsed .nav-link .nav-icon-box i {
    font-size: 15px;
}

.sidebar-tip {
    position: fixed;
    transform: translateY(-50%);
    background: var(--navy-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 3000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    pointer-events: none;
}

.sidebar.collapsed {
    width: 65px;
    overflow-x: hidden;
}

/* Turn the section headings into thin dividers when collapsed */
.sidebar.collapsed .sidebar-section-label {
    font-size: 0;
    height: 1px;
    margin: 10px 14px;
    padding: 0;
    background: rgba(255, 255, 255, .12);
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-sub,
.sidebar.collapsed .nav-link-text {
    display: none;
}

.sidebar.collapsed .sidebar-brand-block {
    padding: 12px 6px;
}

.sidebar.collapsed .sidebar-seal-wrap {
    width: 38px;
    height: 38px;
}

.sidebar.collapsed .nav-link {
    padding: 12px 0;
    justify-content: center;
    display: flex;
}

.sidebar.collapsed .nav-link i {
    margin: 0;
    font-size: 14px;
}

/* Tooltip on hover when collapsed */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link:hover::after {
    content: attr(title);
    position: absolute;
    left: 70px;
    top: 50%;
    background: var(--navy-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   Sidebar redesign (nav pills + bottom user/logout footer)
   ========================================================== */

.sidebar-nav {
    flex: 1;
    overflow-y: hidden;
    padding-left: 8px;
    padding-right: 10px;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #2255aa, #16386b);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-link-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-icon-box {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: inherit;
}

.sidebar .nav-link.active .nav-icon-box {
    background: rgba(255, 255, 255, 0.18);
}

.nav-badge {
    margin-left: auto;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-blue);
    font-size: 10px;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, 0.35);
    margin: 9px 12px 6px;
}

.sidebar.collapsed .sidebar-section-label {
    display: none;
}

/* ===== Guided face registration ===== */
.fr-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 1px 3px rgba(15, 30, 60, .08);
}

.fr-screen {
    text-align: center;
}

.fr-screen[hidden] {
    display: none !important;
}

.fr-intro-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.fr-intro-icon.ok {
    background: #dcfce7;
    color: #15803d;
}

.fr-tips {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    display: inline-block;
    text-align: left;
}

.fr-tips li {
    margin: 8px 0;
    font-size: 14px;
    color: #334155;
}

.fr-tips i {
    color: #1d4ed8;
    margin-right: 8px;
}

.fr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.fr-dots span {
    width: 34px;
    height: 5px;
    border-radius: 3px;
    background: #dbe3ee;
    transition: background .25s;
}

.fr-dots span.active {
    background: #93b4f5;
}

.fr-dots span.done {
    background: #16a34a;
}

.fr-stage {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 3/4;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1220;
}

.fr-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

.fr-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fr-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 3;
}

.fr-ring {
    fill: none;
    stroke: #22c55e;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .15s linear;
}

.fr-arrow {
    position: absolute;
    color: #fff;
    font-size: 34px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    animation: frNudge 1s ease-in-out infinite;
}

.fr-arrow[hidden] {
    display: none;
}

.fr-arrow.left {
    left: 10px;
    top: 42%;
    --dx: -8px;
    --dy: 0;
}

.fr-arrow.right {
    right: 10px;
    top: 42%;
    --dx: 8px;
    --dy: 0;
}

.fr-arrow.up {
    top: 8px;
    left: calc(50% - 17px);
    --dx: 0;
    --dy: -8px;
}

.fr-arrow.down {
    bottom: 8px;
    left: calc(50% - 17px);
    --dx: 0;
    --dy: 8px;
}

@keyframes frNudge {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(var(--dx), var(--dy));
    }
}

.fr-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.fr-flash.on {
    animation: frFlash .35s ease-out;
}

@keyframes frFlash {
    0% {
        opacity: .85;
    }

    100% {
        opacity: 0;
    }
}

.fr-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1220;
    color: #cbd5e1;
    font-size: 14px;
}

.fr-loading[hidden] {
    display: none;
}

.fr-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fr-thumbs img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #16a34a;
    transform: scaleX(-1);
}

/* ---------- Sidebar footer (user + logout) ---------- */
.sidebar-footer {
    margin-top: auto;
    padding: 3px 3px 3px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    position: relative;
}

.sidebar-user-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: left;
}

.sidebar-user-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-blue);
    font-weight: 700;
    font-size: 13px;
    display: grid;
    place-items: center;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-caret {
    flex: 0 0 auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-user-menu {
    min-width: 220px;
}

.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Collapsed: icons must fit inside the narrow width */
.sidebar.collapsed .nav-link,
.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 44px;
}

/* Collapsed sidebar: hide text, center avatar */
.sidebar.collapsed .sidebar-user-btn {
    justify-content: center;
    padding: 8px 0;
}

.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-user-caret {
    display: none;
}

/* Navy sidebar */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar-brand-block {
    text-align: center;
    padding: 11px 11px 11px;
    border-bottom: 1.5px solid var(--gold);
}

.sidebar-brand-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sidebar-seal-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    margin: 0;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-align: left;
}

.sidebar-seal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.sidebar-title .accent {
    color: var(--gold);
}

.sidebar-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin: 2px 0 0;
}

.sidebar .nav-link.disabled {
    opacity: 0.3;
}

.content-card {
    background: #fff;
    border-radius: 4px;
    padding: 24px 30px 240px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin: 0;
    align-self: flex-start;
    height: fit-content;
}

.setup-chevron {
    transition: transform 0.2s ease;
}

button[aria-expanded="true"] .setup-chevron {
    transform: rotate(180deg);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 10px;
    padding-top: 0;           
    overflow-y: auto;
}

.role-pill {
    background: white;
    color: black;
    font-weight: 600;
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 999px;
}

.badge-present {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-absent {
    background: #fdecea;
    color: #c62828;
}

.sub-status-inside {
    color: #2e7d32;
}

.sub-status-out {
    color: #b8860b;
}

/* Sidebar: vertical scroll only, no scrollbars visible */
.sidebar {
    overflow-x: hidden;
    overflow-y: auto;
}
.sidebar,
.sidebar * {
    scrollbar-width: none;
}
.sidebar::-webkit-scrollbar,
.sidebar *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Two-tone topbar: sits at the top of the content area and always follows the sidebar */
.topbar-wrapper {
    background-color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    left: auto !important;    /* ignore the inline "left" the sidebar/menu script writes */
    right: auto !important;
    margin: 0 -10px 14px;     /* cancel .main-content's 10px side padding so it spans the full width */
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* When sidebar collapsed — topbar adjusts */
.sidebar.collapsed~.main-content .topbar-wrapper,
body:has(.sidebar.collapsed) .topbar-wrapper {
    left: 65px;
}

.sidebar.collapsed .sidebar-brand-block {
    padding: 16px 6px;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-sub {
    display: none;
}

.sidebar.collapsed .sidebar-seal-wrap {
    width: 38px;
    height: 38px;
    margin: 0 auto;
}

.topbar-brand {
    background: var(--navy-blue);
    color: #fff;
    padding: 14px 26px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
}

.brand-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.brand-sub {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

.topbar-links {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.topbar-nav a, .topbar-nav span {
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
}

.topbar-nav a:hover {
    color: var(--navy-blue);
}

.topbar-nav a.active-link {
    font-weight: 700;
    color: var(--navy-blue);
    border-bottom: 2px solid var(--gold);
}

.topbar-nav span.disabled {
    color: #b0b0b0;
    cursor: not-allowed;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-user .role-text {
    font-size: 12px;
    font-weight: 600;
    color: #8a6a1f;
    background: var(--gold-soft);
    padding: 3px 10px;
    border-radius: 3px;
}

.topbar-user a {
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
}

.topbar-user a:hover {
    color: var(--danger);
}

@media (max-width: 820px) {
    .topbar-wrap {
        flex-direction: column;
    }

    .topbar-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 26px;
    }

    .topbar-user {
        padding-top: 8px;
    }
}

.sticky-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    margin: -24px -30px 16px -20px;
    padding: 24px 30px 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy-blue);
    border: 1px solid var(--navy-blue);
}

.btn-outline-navy:hover {
    background: var(--navy-blue);
    color: #fff;
}

.welcome-banner-v2 {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0.20) 100%),
        url('../images/manila_city_hall_welcome_banner_bg.jpg');
    background-position: center 65%;
    border-radius: 16px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(11, 46, 89, 0.06);
}

.stat-card-v2 {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 46, 89, 0.10);
}

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.icon-badge.icon-blue {
    background: #E8EEF7;
    color: var(--navy-blue);
}

.icon-badge.icon-green {
    background: #E7F5EC;
    color: #2e7d32;
}

.icon-badge.icon-rose {
    background: #FCE9E9;
    color: #c62828;
}

.icon-badge.icon-gold {
    background: #FBF1DC;
    color: #8a6a1f;
}

.stat-card-v2 .num {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-blue);
}

.stat-card-v2 .stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* ==========================================================
   Add/Edit Agenda Item modal
   Paste at the bottom of assets/css/style.css
   Everything is scoped to #agendaModal so other pages/modals
   are not affected.
   ========================================================== */

#agendaModal {
    --ag-navy-900: #0f1b33;
    --ag-navy-700: #1b2a4e;
    --ag-navy-500: #2b3f6e;
    --ag-muted: #6b7a99;
    --ag-faint: #9aa6bf;
    --ag-line: #dfe5ef;
}

/* Backdrop tint (Bootstrap still owns creating/destroying this element) */
body.agenda-open .modal-backdrop.show {
    background: rgba(219, 228, 241, .55);
    opacity: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1040;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .15s linear;
}

body.agenda-open::before {
    opacity: 1;
}

/* ---------- Card ---------- */
#agendaModal .agenda-dialog {
    max-width: 540px;
}

#agendaModal .agenda-card {
    position: relative;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px -20px rgba(15, 27, 51, .35),
        0 8px 24px -8px rgba(15, 27, 51, .15);
}

#agendaModal .agenda-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ag-navy-900), var(--ag-navy-500));
}

#agendaModal .agenda-body {
    padding: 30px 30px 10px;
}

/* ---------- Header ---------- */
#agendaModal .entry-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2f8;
    color: var(--ag-navy-700);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#agendaModal .agenda-title {
    margin: 14px 0 6px;
    font-size: 28px;
    font-weight: 600;
    color: var(--ag-navy-900);
    letter-spacing: -.01em;
}

#agendaModal .agenda-sub {
    max-width: 320px;
    margin: 0 0 22px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ag-muted);
}

#agendaModal .agenda-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ag-line);
    border-radius: 50%;
    background: #f3f6fa;
    color: var(--ag-muted);
    font-size: 13px;
    transition: background .15s, color .15s;
}

#agendaModal .agenda-close:hover {
    background: #e6ecf5;
    color: var(--ag-navy-900);
}

/* ---------- Fields ---------- */
#agendaModal .ag-field {
    margin-bottom: 18px;
}

#agendaModal .ag-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ag-navy-700);
}

#agendaModal .ag-label .req {
    color: var(--ag-navy-900);
}

#agendaModal .ag-input-wrap {
    position: relative;
}

#agendaModal .ag-input-wrap>i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ag-faint);
    font-size: 15px;
    pointer-events: none;
}

#agendaModal .ag-input-wrap.is-textarea>i {
    top: 17px;
    transform: none;
}

#agendaModal .ag-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--ag-line);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: var(--ag-navy-900);
    transition: border-color .15s, box-shadow .15s;
}

#agendaModal textarea.ag-input {
    height: auto;
    min-height: 112px;
    padding: 14px 14px 14px 40px;
    resize: vertical;
    line-height: 1.5;
}

#agendaModal .ag-input::placeholder {
    color: var(--ag-faint);
}

#agendaModal .ag-input:focus {
    outline: 0;
    border-color: var(--ag-navy-500);
    box-shadow: 0 0 0 4px rgba(43, 63, 110, .12);
}

/* Reference No. + "Added just now" side by side */
#agendaModal .ag-ref-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#agendaModal .ag-ref-row .ag-field-ref {
    flex: 1 1 auto;
}

#agendaModal .ag-added-chip {
    flex: 0 0 auto;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 12px;
    background: #f3f6fa;
    font-size: 12px;
    color: var(--ag-muted);
}

#agendaModal .ag-added-chip strong {
    color: var(--ag-navy-700);
    font-weight: 600;
}

/* ---------- Footer ---------- */
#agendaModal .agenda-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 30px;
    margin-top: 12px;
    background: #f5f7fb;
    border: 0;
}

#agendaModal .ag-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--ag-muted);
}

#agendaModal .ag-hint kbd {
    padding: 3px 7px;
    border: 1px solid var(--ag-line);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    color: var(--ag-navy-700);
    box-shadow: 0 1px 0 rgba(15, 27, 51, .06);
}

#agendaModal .ag-btn-cancel {
    padding: 10px 20px;
    border: 1px solid var(--ag-line);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ag-navy-700);
}

#agendaModal .ag-btn-cancel:hover {
    background: #f3f6fa;
}

#agendaModal .ag-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ag-navy-500), var(--ag-navy-900));
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(15, 27, 51, .55);
    transition: transform .12s, box-shadow .12s;
}

#agendaModal .ag-btn-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(15, 27, 51, .6);
}

#agendaModal .ag-btn-save:disabled {
    opacity: .7;
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
    #agendaModal .agenda-body {
        padding: 26px 20px 6px;
    }

    #agendaModal .agenda-footer {
        padding: 14px 20px;
    }

    #agendaModal .ag-hint {
        display: none;
    }

    #agendaModal .ag-ref-row {
        flex-direction: column;
        align-items: stretch;
    }

    #agendaModal .ag-added-chip {
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #agendaModal .ag-btn-save, #agendaModal .ag-input {
        transition: none;
    }
}

#sessionModal,
#recipientsModal {
    --ss-navy-900: #0f1b33;
    --ss-navy-700: #1b2a4e;
    --ss-navy-500: #2b3f6e;
    --ss-muted: #6b7a99;
    --ss-faint: #9aa6bf;
    --ss-line: #dfe5ef;
    --ss-tile: #f3f5f9;
    --ss-canvas: #e9edf3;
}

/* Backdrop tint (Bootstrap still owns creating/destroying this element) */
body.session-open .modal-backdrop.show {
    background: rgba(219, 228, 241, .55);
    opacity: 1;
}

body.session-open::before {
    opacity: 1;
}

/* ---------- Card ---------- */
#sessionModal .session-dialog {
    max-width: 940px;
}

#sessionModal .session-card,
#recipientsModal .session-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px -20px rgba(15, 27, 51, .35),
        0 8px 24px -8px rgba(15, 27, 51, .15);
}

/* ---------- Header ---------- */
#sessionModal .ss-head,
#recipientsModal .ss-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 64px 18px 28px;
    background: #fff;
}

#sessionModal .ss-head-icon,
#recipientsModal .ss-head-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ss-navy-700);
    color: #fff;
    font-size: 16px;
}

#sessionModal .ss-title,
#recipientsModal .ss-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-navy-900);
}

#sessionModal .ss-sub,
#recipientsModal .ss-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ss-muted);
}

#sessionModal .ss-close,
#recipientsModal .ss-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ss-line);
    border-radius: 50%;
    background: #f3f6fa;
    color: var(--ss-muted);
    font-size: 13px;
    transition: background .15s, color .15s;
}

#sessionModal .ss-close:hover,
#recipientsModal .ss-close:hover {
    background: #e6ecf5;
    color: var(--ss-navy-900);
}

/* ---------- Body ---------- */
#sessionModal .ss-body,
#recipientsModal .ss-body {
    padding: 20px 28px 24px;
    background: var(--ss-canvas);
    max-height: calc(100vh - 13rem);
    overflow-y: auto;
}

#sessionModal .ss-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sessionModal .ss-tile {
    padding: 14px 16px 16px;
    border-radius: 14px;
    background: var(--ss-tile);
    box-shadow: 0 1px 2px rgba(15, 27, 51, .05);
}

#sessionModal .ss-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ss-navy-700);
}

#sessionModal .ss-required {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #e5384f;
}

#sessionModal .ss-help {
    margin: -4px 0 8px;
    font-size: 11px;
    color: var(--ss-muted);
}

/* ---------- Inputs ---------- */
#sessionModal .ss-input-wrap {
    position: relative;
}

#sessionModal .ss-input-wrap>i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ss-faint);
    font-size: 15px;
    pointer-events: none;
}

#sessionModal .ss-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: var(--ss-navy-900);
    transition: border-color .15s, box-shadow .15s;
}

#sessionModal .ss-input::placeholder {
    color: var(--ss-faint);
}

#sessionModal .ss-input:focus {
    outline: 0;
    border-color: var(--ss-navy-500);
    box-shadow: 0 0 0 4px rgba(43, 63, 110, .12);
}

#sessionModal select.ss-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%239aa6bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* ---------- Checklists (agenda + councilors) ---------- */
#sessionModal .ss-checklist,
#recipientsModal .ss-checklist {
    max-height: 160px;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid var(--ss-line);
    border-radius: 12px;
    background: #fff;
    margin-top: 10px;
}

#sessionModal .ss-checklist .form-check-input:checked,
#recipientsModal .ss-checklist .form-check-input:checked {
    background-color: var(--ss-navy-700);
    border-color: var(--ss-navy-700);
}

.ss-committee-group {
    margin-bottom: 10px;
}

.ss-committee-group:last-child {
    margin-bottom: 0;
}

.ss-committee-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ss-navy-700, #1b2a4e);
    margin: 6px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ss-line, #dfe5ef);
}

#sessionModal .ss-empty {
    padding: 8px 0 4px;
    text-align: center;
}

#sessionModal .ss-empty-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef2f8;
    color: var(--ss-faint);
    font-size: 15px;
}

#sessionModal .ss-empty p {
    margin: 0 0 6px;
    font-size: 11.5px;
    color: var(--ss-muted);
}

#sessionModal .ss-empty a {
    font-size: 11px;
    font-weight: 600;
    color: var(--ss-navy-700);
    text-decoration: none;
}

#sessionModal .ss-empty a:hover {
    text-decoration: underline;
}

/* ---------- Recipients (dark panel) ---------- */
#sessionModal .ss-recipients {
    padding: 16px 18px 12px;
    border: 2px solid #2f4f8f;
    border-radius: 14px;
    background: var(--ss-navy-900);
    color: #fff;
}

#sessionModal .ss-rec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

#sessionModal .ss-rec-sub {
    margin: 4px 0 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
}

#sessionModal .ss-radio,
#recipientsModal .ss-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ss-navy-900);
    cursor: pointer;
}

#sessionModal .ss-radio input,
#recipientsModal .ss-radio input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 2px solid var(--ss-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

#sessionModal .ss-radio input:checked,
#recipientsModal .ss-radio input:checked {
    border-color: var(--ss-navy-700);
    background: radial-gradient(circle, var(--ss-navy-900) 0 34%, #fff 40%);
}

#sessionModal .ss-radio input:focus-visible,
#recipientsModal .ss-radio input:focus-visible {
    outline: 2px solid #9db4e6;
    outline-offset: 2px;
}

#sessionModal .ss-recipients .ss-checklist {
    margin: 6px 0 4px;
    max-height: 150px;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

#sessionModal .ss-recipients .text-muted {
    color: rgba(255, 255, 255, .65) !important;
}

#sessionModal .ss-recipients .text-danger {
    color: #ff8a95 !important;
}

/* ---------- Footer ---------- */
#sessionModal .ss-footer,
#recipientsModal .ss-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px;
    background: #fff;
}

#sessionModal .ss-btn-cancel,
#recipientsModal .ss-btn-cancel {
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ss-navy-700);
}

#sessionModal .ss-btn-cancel:hover,
#recipientsModal .ss-btn-cancel:hover {
    background: #f3f6fa;
}

#sessionModal .ss-btn-save,
#recipientsModal .ss-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ss-navy-500), var(--ss-navy-900));
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(15, 27, 51, .55);
    transition: transform .12s, box-shadow .12s;
}

#sessionModal .ss-btn-save:hover:not(:disabled),
#recipientsModal .ss-btn-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(15, 27, 51, .6);
}

#sessionModal .ss-btn-save:disabled,
#recipientsModal .ss-btn-save:disabled {
    opacity: .7;
}

/* ---------- Small screens ---------- */
@media (max-width: 575px) {
    #sessionModal .ss-head {
        padding: 20px 60px 16px 20px;
    }

    #sessionModal .ss-body {
        padding: 16px 16px 20px;
    }

    #sessionModal .ss-footer {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sessionModal .ss-btn-save, #sessionModal .ss-input {
        transition: none;
    }
}

#sessionModal .ss-radio input,
#recipientsModal .ss-radio input {
    border-color: #9aa6bf;
    /* visible on the grey background */
}

#recipientsModal .ss-radio:hover span {
    color: var(--ss-navy-500);
}

/* Paste at the END of assets/css/style.css */

/* Radio labels inside the dark Session Recipients card */
#sessionModal .ss-recipients .ss-radio {
    color: #fff;
    padding: 5px 0;
}

#sessionModal .ss-recipients .ss-radio input {
    border-color: rgba(255, 255, 255, .55);
}

/* The councilor list that expands inside the card (kept compact, scrolls) */
#sessionModal .ss-recipients .ss-checklist {
    max-height: 210px;
    margin: 8px 0 0;
    animation: ssExpand .18s ease-out;
}

#sessionModal .ss-recipients .ss-committee-label {
    color: #9db4e6;
    border-bottom-color: rgba(255, 255, 255, .18);
}

#sessionModal .ss-recipients a {
    color: #9db4e6;
    text-decoration: none;
}

#sessionModal .ss-recipients a:hover {
    text-decoration: underline;
}

@keyframes ssExpand {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Buttons */
.btn-navy {
    background: var(--navy-blue);
    color: #fff;
    border: none;
}

.btn-navy:hover {
    background: var(--navy-blue);
    color: #fff;
}

/* Login card */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.login-card {
    max-width: 380px;
    width: 100%;
    border: 1px solid #e0e0e0;
    box-shadow: none !important;
}

.table {
    table-layout: fixed;
    width: 100%;
}

.table td .fw-medium,
.table td .small.text-muted {
    max-width: 320px;
    word-break: break-word;
    white-space: normal;
}

/* Status badges */
.badge-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

.badge-scheduled {
    background: #dce6f0;
    color: var(--navy-blue);
    font-weight: 500;
}

.badge-pending {
    background: var(--gold-soft);
    color: #8a6a1f;
    font-weight: 500;
}

.badge-cancelled {
    background: #f6d9d9;
    color: var(--danger);
    font-weight: 500;
}

.badge-ongoing {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 500;
}

.badge-completed {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

.badge-adjourned {
    background: #ede7f6;
    color: #5e35b1;
    font-weight: 500;
}

#finalContentCard.fullscreen-edit {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #e8e8e8;
    overflow-y: auto;
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
    flex: none;
}

#finalContentCard.fullscreen-edit #finalContent {
    max-width: 816px;
    min-height: 1056px;
    margin: 0 auto;
    background: #fff;
    padding: 1in;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    border: none;
}

#finalContentCard.fullscreen-edit .d-flex.justify-content-between {
    max-width: 816px;
    margin: 0 auto 12px;
}

/* Dashboard stat cards */
.stat-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    background: #fff;
}

.stat-card .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-blue);
}

/* Table */
.table thead {
    background: #f7f7f7;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 600;
}

.wo-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- Header ---------- */
.wo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.wo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
}

.wo-subtitle {
    font-size: 12.5px;
    color: #6b7280;
}

.wo-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wo-datetime {
    font-size: 12px;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 999px;
    padding: 6px 12px;
}

.wo-refresh-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e6ebf3;
    background: #fff;
    color: var(--navy-blue);
    display: grid;
    place-items: center;
    transition: background .15s, transform .15s;
}

.wo-refresh-btn:hover {
    background: #eef2f8;
    transform: rotate(45deg);
}

/* ---------- Shared row / label helpers ---------- */
.wo-row {
    display: grid;
    gap: 16px;
}

.wo-row-top {
    grid-template-columns: 1.7fr 1fr;
}

.wo-row-bottom {
    grid-template-columns: 1fr 1fr;
}

.wo-section-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--navy-blue);
    margin-bottom: 14px;
}

.wo-link {
    font-size: 12.5px;
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.wo-link:hover {
    text-decoration: underline;
}

/* ---------- Today's session card ---------- */
.wo-session-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
    border-left: 4px solid var(--gold);
}

.wo-session-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.wo-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: #8a6a1f;
    background: var(--gold-soft);
    padding: 4px 10px;
    border-radius: 999px;
}

.wo-countdown {
    text-align: right;
}

.wo-countdown-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.1;
}

.wo-countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa6bf;
}

.wo-session-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 6px 0 2px;
}

.wo-session-meta {
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 16px;
}

.wo-agenda-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wo-agenda-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #333;
}

.wo-agenda-num {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef2f8;
    color: var(--navy-blue);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.wo-session-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.wo-quorum-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.wo-quorum-pill.is-met {
    background: #e8f5e9;
    color: #2e7d32;
}

.wo-quorum-pill.is-pending {
    background: #fdecea;
    color: #c62828;
}

.wo-empty-session {
    text-align: center;
    padding: 40px 10px;
    color: #9aa6bf;
}

.wo-empty-session i {
    font-size: 26px;
    display: block;
    margin-bottom: 8px;
}

/* ---------- Command Center ---------- */
.wo-command-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
    display: flex;
    flex-direction: column;
}

.wo-cmd-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--navy-blue);
    background: #f7f9fc;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}

.wo-cmd-btn:hover {
    background: #eef2f8;
    color: var(--navy-blue);
}

.wo-cmd-btn:last-child {
    margin-bottom: 0;
}

.wo-cmd-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--navy-blue);
    flex-shrink: 0;
}

.wo-cmd-primary {
    background: var(--navy-blue);
    color: #fff;
}

.wo-cmd-primary:hover {
    background: var(--navy-blue);
    color: #fff;
    opacity: .92;
}

.wo-cmd-primary .wo-cmd-icon {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.wo-cmd-title {
    display: block;
}

.wo-cmd-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, .7);
}

.wo-cmd-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    color: #8a6a1f;
    background: var(--gold-soft);
    padding: 3px 9px;
    border-radius: 999px;
}

/* ---------- Stat cards ---------- */
.wo-stat-row {
    grid-template-columns: repeat(4, 1fr);
}

.wo-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
}

.wo-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.1;
}

.wo-stat-label {
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 4px;
}

.wo-mini-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: #c62828;
    background: #fdecea;
    padding: 3px 9px;
    border-radius: 999px;
}

.wo-progress {
    margin-top: 10px;
    height: 5px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
}

.wo-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 999px;
}

/* ---------- Recent Documents / System Activity panels ---------- */
.wo-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
}

.wo-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.wo-empty-text {
    color: #9aa6bf;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

.wo-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wo-doc-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wo-doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eef2f8;
    color: var(--navy-blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.wo-doc-info {
    flex: 1;
    min-width: 0;
}

.wo-doc-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wo-doc-meta {
    font-size: 11.5px;
    color: #9aa6bf;
    margin: 0;
}

.wo-doc-status {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.wo-doc-status-draft {
    background: var(--gold-soft);
    color: #8a6a1f;
}

.wo-doc-status-final,
.wo-doc-status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.wo-activity-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wo-activity-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wo-activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--navy-blue);
    margin-top: 6px;
    flex-shrink: 0;
}

.wo-activity-text {
    font-size: 13px;
    color: #333;
    margin: 0;
}

.wo-activity-time {
    font-size: 11.5px;
    color: #9aa6bf;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {

    .wo-row-top,
    .wo-row-bottom {
        grid-template-columns: 1fr;
    }

    .wo-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .wo-stat-row {
        grid-template-columns: 1fr;
    }
}

.wo-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wo-stat-card,
.wo-panel,
.wo-session-card,
.wo-command-card {
    box-shadow: 0 4px 14px rgba(11, 46, 89, 0.15);
    border: 1px solid #eef2f8;
}

/* ==========================================================
   Agenda Preparation page redesign
   ========================================================== */
.ap-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ap-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ap-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
}

.ap-subtitle {
    font-size: 12.5px;
    color: #6b7280;
}

.ap-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6ebf3;
}

.ap-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ap-stat-dot.orange {
    background: #e8a33d;
}

.ap-stat-dot.green {
    background: #2e7d32;
}

.ap-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
    padding: 20px 24px;
}

.ap-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.ap-tabs {
    display: flex;
    gap: 4px;
    background: #f3f5f9;
    border-radius: 10px;
    padding: 4px;
}

.ap-tab {
    border: 0;
    background: transparent;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 8px;
}

.ap-tab.active {
    background: #fff;
    color: var(--navy-blue);
    box-shadow: 0 1px 2px rgba(11, 46, 89, .08);
}

.ap-search-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.ap-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa6bf;
    font-size: 13px;
}

.ap-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    font-size: 13px;
}

.ap-search-input:focus {
    outline: 0;
    border-color: var(--navy-blue);
}

.ap-filter-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ap-filter-btn:hover {
    background: #f3f5f9;
}

.ap-add-btn {
    background: var(--navy-blue);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ap-add-btn:hover {
    opacity: .92;
    color: #fff;
}

.ap-table thead th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9aa6bf;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.ap-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f5f6f8;
    vertical-align: top;
}

.ap-table tr:last-child td {
    border-bottom: 0;
}

.ap-row-num {
    color: #9aa6bf;
    font-size: 13px;
}

.ap-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #26324a;
    margin: 0;
}

.ap-item-desc {
    font-size: 12px;
    color: #9aa6bf;
    margin: 3px 0 0;
}

.ap-ref-chip {
    background: #f3f5f9;
    color: #6b7280;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.ap-status {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ap-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ap-status-ready {
    background: #e8f5e9;
    color: #2e7d32;
}

.ap-status-ready::before {
    background: #2e7d32;
}

.ap-status-pending {
    background: var(--gold-soft);
    color: #8a6a1f;
}

.ap-status-pending::before {
    background: #c9971f;
}

.ap-status-draft {
    background: #eef0f3;
    color: #6b7280;
}

.ap-status-draft::before {
    background: #9aa6bf;
}

.ap-status-archived {
    background: #f6d9d9;
    color: var(--danger);
}

.ap-status-archived::before {
    background: var(--danger);
}

.ap-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #e6ebf3;
    background: #fff;
    color: #6b7280;
    display: inline-grid;
    place-items: center;
    margin-left: 4px;
}

.ap-action-btn:hover {
    background: #f3f5f9;
    color: var(--navy-blue);
}

.ap-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #6b7280;
}

.ap-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ap-page-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid #e6ebf3;
    background: #fff;
    color: #6b7280;
    font-size: 12.5px;
    display: inline-grid;
    place-items: center;
}

.ap-page-btn.active {
    background: var(--navy-blue);
    color: #fff;
    border-color: var(--navy-blue);
}

.ap-page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.ap-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ap-empty-state i {
    font-size: 34px;
    color: #dfe5ef;
    margin-bottom: 6px;
}

.ap-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

.ap-empty-sub {
    font-size: 12.5px;
    color: #9aa6bf;
    margin: 0;
}

/* ==========================================================
   Session Scheduling page redesign
   ========================================================== */
.ss-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ss-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ss-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
}

.ss-subtitle {
    font-size: 12.5px;
    color: #6b7280;
}

.ss-new-btn {
    background: var(--navy-blue);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.ss-new-btn:hover {
    opacity: .92;
    color: #fff;
}

.ss-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
    padding: 20px 24px;
}

.ss-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.ss-search-wrap {
    position: relative;
    flex: 1;
    max-width: 340px;
}

.ss-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa6bf;
    font-size: 13px;
}

.ss-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    font-size: 13px;
}

.ss-search-input:focus {
    outline: 0;
    border-color: var(--navy-blue);
}

.ss-tool-btn {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ss-tool-btn:hover {
    background: #f3f5f9;
}

.ss-table thead th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9aa6bf;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.ss-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f5f6f8;
    vertical-align: top;
}

.ss-table tr:last-child td {
    border-bottom: 0;
}

.ss-date {
    font-size: 13.5px;
    font-weight: 600;
    color: #26324a;
    margin: 0;
}

.ss-time {
    font-size: 11.5px;
    color: #9aa6bf;
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ss-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #26324a;
    margin: 0;
}

.ss-item-ref {
    font-size: 11.5px;
    color: #9aa6bf;
    margin: 2px 0 0;
    font-family: monospace;
}

.ss-venue {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss-venue i {
    color: #9aa6bf;
    font-size: 13px;
}

.ss-type-pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef0f3;
    color: #6b7280;
    display: inline-block;
}

.ss-type-pill.type-special {
    background: #f2e9fb;
    color: #7b3fc4;
}

.ss-status-pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ss-status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ss-status-scheduled {
    background: #e3f2fd;
    color: #1565c0;
}

.ss-status-scheduled::before {
    background: #1565c0;
}

.ss-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.ss-status-completed::before {
    background: #2e7d32;
}

.ss-status-in-progress,
.ss-status-ongoing {
    background: var(--gold-soft);
    color: #8a6a1f;
}

.ss-status-in-progress::before,
.ss-status-ongoing::before {
    background: #c9971f;
}

.ss-status-draft,
.ss-status-pending {
    background: #eef0f3;
    color: #6b7280;
}

.ss-status-draft::before,
.ss-status-pending::before {
    background: #9aa6bf;
}

.ss-status-cancelled {
    background: #f6d9d9;
    color: var(--danger);
}

.ss-status-cancelled::before {
    background: var(--danger);
}

.ss-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #e6ebf3;
    background: #fff;
    color: #6b7280;
    display: inline-grid;
    place-items: center;
    margin-left: 4px;
}

.ss-action-btn:hover {
    background: #f3f5f9;
    color: var(--navy-blue);
}

.ss-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #6b7280;
}

.ss-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ss-page-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid #e6ebf3;
    background: #fff;
    color: #6b7280;
    font-size: 12.5px;
    display: inline-grid;
    place-items: center;
}

.ss-page-btn.active {
    background: var(--navy-blue);
    color: #fff;
    border-color: var(--navy-blue);
}

.ss-page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.ss-page-ellipsis {
    padding: 0 4px;
    color: #9aa6bf;
    font-size: 12.5px;
}

/* ==========================================================
   Reports page
   ========================================================== */
.rp-page {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rp-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
}

.rp-subtitle {
    font-size: 12.5px;
    color: #6b7280;
}

.rp-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
}

.rp-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rp-filter-field label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa6bf;
}

.rp-filter-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    font-size: 13px;
}

.rp-filter-apply {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--navy-blue);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rp-filter-apply:hover {
    opacity: .92;
}

.rp-export-btn {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rp-export-btn:hover {
    background: #f3f5f9;
}

.rp-tabs {
    display: flex;
    gap: 4px;
    background: #eef0f3;
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
    flex-wrap: wrap;
}

.rp-tab {
    border: 0;
    background: transparent;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.rp-tab.active {
    background: #fff;
    color: var(--navy-blue);
    box-shadow: 0 1px 2px rgba(11, 46, 89, .08);
}

.rp-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rp-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rp-stat-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rp-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
}

.rp-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.1;
}

.rp-num-green {
    color: #2e7d32;
}

.rp-num-blue {
    color: #1565c0;
}

.rp-num-red {
    color: var(--danger);
}

.rp-num-gold {
    color: #8a6a1f;
}

.rp-stat-label {
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 4px;
}

.rp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, .06);
    padding: 20px 24px;
}

.rp-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 14px;
}

.rp-table thead th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9aa6bf;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.rp-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f5f6f8;
    font-size: 13px;
    vertical-align: middle;
}

.rp-table tr:last-child td {
    border-bottom: 0;
}

.rp-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef0f3;
    color: #6b7280;
    display: inline-block;
}

.rp-status-completed,
.rp-status-finalized {
    background: #e8f5e9;
    color: #2e7d32;
}

.rp-status-scheduled {
    background: #e3f2fd;
    color: #1565c0;
}

.rp-status-cancelled {
    background: #f6d9d9;
    color: var(--danger);
}

.rp-status-adjourned {
    background: #ede7f6;
    color: #5e35b1;
}

.rp-status-pending,
.rp-status-for-review {
    background: var(--gold-soft);
    color: #8a6a1f;
}

.rp-rate-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-rate-row span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy-blue);
    min-width: 36px;
}

.rp-rate-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
}

.rp-rate-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 999px;
}

.rp-setup-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--gold-soft);
    border: 1px solid #e8d9a8;
}

.rp-setup-note i {
    font-size: 18px;
    color: #8a6a1f;
    flex-shrink: 0;
    margin-top: 2px;
}

.rp-setup-note p {
    color: #6b5a2a;
}

/* ==========================================================
   Unified module page header (used across all modules)
   ========================================================== */
.mod-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.mod-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9aa6bf;
    margin: 0 0 4px;
}

.mod-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
}

.mod-subtitle {
    font-size: 12.5px;
    color: #6b7280;
}

/* ==========================================================
   Unified module page layout (used across all modules)
   ========================================================== */
.mod-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mod-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2px;
}

.mod-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8c9ba5;
    margin: 0 0 4px;
}

.mod-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.25;
}

.mod-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.mod-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 6px rgba(11, 46, 89, 0.04);
    padding: 22px 26px;
}

/* Session Selection Toolbar across modules */
.mod-selector-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 6px rgba(11, 46, 89, 0.04);
    padding: 16px 20px;
}

.mod-selector-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mod-select-wrap, .mod-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.mod-select-wrap i, .mod-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.mod-select {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    color: #1e293b;
    background-color: #f8fafc;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mod-select:focus {
    border-color: var(--navy-blue);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 46, 89, 0.1);
}

.mod-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.mod-search-input:focus {
    border-color: var(--navy-blue);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 46, 89, 0.1);
}

/* Empty State Component */
.mod-empty-state {
    text-align: center;
    padding: 56px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.mod-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--navy-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
}

.mod-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.mod-empty-sub {
    font-size: 13px;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto;
}

/* Quorum & Attendance specifics */
.aq-quorum-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    border-left: 5px solid #94a3b8;
    box-shadow: 0 2px 6px rgba(11, 46, 89, 0.04);
    padding: 22px 26px;
    transition: border-color 0.25s ease;
}

.aq-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    min-width: 130px;
}

.aq-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.1;
}

.aq-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-top: 3px;
}

/* Real-Time Session Tracking specifics */
.st-live-card {
    background: linear-gradient(145deg, #0b2e59 0%, #082142 100%);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(11, 46, 89, 0.16);
    color: #ffffff;
    padding: 26px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.st-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.st-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.st-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.35;
}

.st-timers-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.st-timer-box {
    display: flex;
    flex-direction: column;
}

.st-timer-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.st-timer-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 22px;
    font-weight: 700;
    color: #ffd166;
    letter-spacing: .02em;
}

.st-timer-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Live pulse dot and tracking styles */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 1.5s infinite;
}

.pulse-dot.idle {
    background: #94a3b8;
    box-shadow: none;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        opacity: 0.9;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.agenda-track-row {
    transition: all 0.2s ease;
    border-radius: 10px !important;
}

.agenda-track-row.is-current {
    border-left: 5px solid #d4af37 !important;
    background: #fdfaf2 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.12) !important;
}

/* Agenda Timeline item in Tracking */
.st-agenda-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.st-agenda-item.is-current {
    border-left: 5px solid #d4af37 !important;
    background: #fdfcf7 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

/* Minutes Editor page specifics */
.min-split-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.min-source-pane {
    flex: 1;
    min-width: 320px;
}

.min-editor-pane {
    flex: 2;
    min-width: 480px;
}

.min-paper-editor {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 26px 30px;
    min-height: 480px;
    max-height: 680px;
    overflow-y: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
}

.min-paper-editor:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(11, 46, 89, 0.08);
}

/* Fullscreen mode for editor */
.fullscreen-edit {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    padding: 30px 40px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

.fullscreen-edit #finalContent {
    max-height: calc(100vh - 120px) !important;
    min-height: calc(100vh - 120px) !important;
}

/* Proceedings page specifics */
.pr-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 6px rgba(11, 46, 89, 0.04);
    overflow: hidden;
}

.pr-item-row {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: background-color 0.15s ease;
}

.pr-item-row:hover {
    background-color: #f8fafc;
}

.pr-item-row:last-child {
    border-bottom: none;
}

.steps-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(11, 46, 89, .06);
}

.steps-card .step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    min-width: 0;
}

.steps-card .step+.step {
    border-left: 1px solid #E4E1D8;
}

.steps-card .step-num {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0B2E59;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-card .step-title {
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
}

.steps-card .step-sub {
    font-size: 12px;
    color: #5B6472;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 800px) {
    .steps-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-card .step:nth-child(3) {
        border-left: 0;
    }
}

#minutesContent>* {
    margin-bottom: 12px;
}

.minutes-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.minutes-card-title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #5B6472;
    white-space: nowrap;
}

.minutes-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.minutes-actions .btn {
    white-space: nowrap;
    border-radius: 8px;
    font-size: 13px;
}

.minutes-actions .btn-navy {
    background: #0B2E59;
    color: #fff;
    border: 0;
}

.minutes-actions .btn-navy:hover {
    background: #071F3D;
    color: #fff;
}

/* so the Export dropdown isn't clipped by the card */
#finalContentCard {
    overflow: visible;
}

/* ==========================================================
   Session Archive & Records page specifics
   ========================================================== */
.sa-dossier-header {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 6px rgba(11, 46, 89, 0.04);
    padding: 24px 28px;
}

.sa-nav-tabs {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 5px;
    flex-wrap: wrap;
    border: none;
}

.sa-nav-tabs .nav-link {
    border: 0;
    background: transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sa-nav-tabs .nav-link:hover {
    color: var(--navy-blue);
    background: rgba(255, 255, 255, 0.6);
}

.sa-nav-tabs .nav-link.active {
    background: #ffffff;
    color: var(--navy-blue);
    box-shadow: 0 1px 3px rgba(11, 46, 89, 0.08);
}

.sa-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.sa-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.sa-meta-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.sa-meta-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-blue);
}

.sa-tree-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 6px rgba(11, 46, 89, 0.04);
    padding: 24px 28px;
}

@media print {
    .sidebar, .topbar-wrapper, .ss-tool-btn, .ss-new-btn, .sa-nav-tabs, .mod-selector-card, .btn, #btnBack {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 30px;
        page-break-inside: avoid;
    }

    body {
        background: #fff !important;
    }
}

#recipientsModal {
    z-index: 1053;
}

#confirmAllModal {
    z-index: 1056;
}

/* ==========================================================
   Confirmation Modal (reusable — delete, warnings, etc.)
   ========================================================== */
.confirm-modal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(15, 27, 51, .35),
        0 8px 24px -8px rgba(15, 27, 51, .15);
}

.confirm-modal .confirm-body {
    padding: 32px 28px 24px;
    text-align: center;
}

.confirm-modal .confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 24px;
}

.confirm-modal .confirm-icon.is-danger {
    background: #fdecea;
    color: #e5384f;
}

.confirm-modal .confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f1b33;
    margin: 0 0 6px;
}

.confirm-modal .confirm-sub {
    font-size: 12.5px;
    color: #6b7a99;
    margin: 0;
}

.confirm-modal .confirm-footer {
    display: flex;
    gap: 10px;
    padding: 0 28px 28px;
}

.confirm-modal .confirm-btn {
    flex: 1;
    height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .12s, box-shadow .12s, background .15s;
}

.confirm-modal .confirm-btn i {
    font-size: 14px;
    flex-shrink: 0;
}

.confirm-modal .confirm-btn-cancel {
    background: #f3f6fa;
    color: #1b2a4e;
}

.confirm-modal .confirm-btn-cancel:hover {
    background: #e6ecf5;
}

.confirm-modal .confirm-btn-danger {
    background: linear-gradient(135deg, #e5384f, #a3182a);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(229, 56, 79, .45);
}

.confirm-modal .confirm-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(229, 56, 79, .55);
}

/* ─── Append to assets/css/style.css ─── */

/* Info boxes inside the dark live card */
.st-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.st-info-box {
    background: rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    min-width: 0;
}

.st-info-box .lbl {
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .75;
}

.st-info-box .val {
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.st-info-box .sub {
    font-size: 12px;
    opacity: .9;
    margin-top: 2px;
}

/* Activity selector */
.activity-btn {
    border: 1px solid #d5dcec;
    background: #fff;
    color: var(--navy-blue, #0f2a5c);
    font-weight: 600;
}

.activity-btn:hover:not(:disabled) {
    background: #eef3fc;
}

.activity-btn.active {
    background: var(--navy-blue, #0f2a5c);
    border-color: var(--navy-blue, #0f2a5c);
    color: #fff;
}

.activity-btn:disabled {
    opacity: .5;
}

/* Agenda rows */
.agenda-track-row.is-current {
    border-color: #0d6efd !important;
    background: #f0f6ff;
}

.agenda-track-row.is-done {
    opacity: .75;
}

/* Speaker queue */
.speaker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e6ebf5;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.speaker-item.is-speaking {
    border-color: #198754;
    background: #f0faf4;
    font-weight: 600;
}

/* Events timeline */
.event-list {
    max-height: 360px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f7;
    font-size: 14px;
}

.event-item:last-child {
    border-bottom: 0;
}

.event-time {
    min-width: 68px;
    color: #6b7a99;
    font-variant-numeric: tabular-nums;
}

/* ─── Append to assets/css/style.css ─── */

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f7;
}

.tl-item:last-child {
    border-bottom: 0;
}

.tl-time {
    min-width: 72px;
    padding-top: 3px;
    font-size: 13px;
    color: #6b7a99;
    font-variant-numeric: tabular-nums;
}

.tl-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3fc;
    color: #0d6efd;
    font-size: 13px;
}

/* automatic entries are quieter than formally recorded ones */
.tl-item.is-auto .tl-icon {
    background: #f3f4f7;
    color: #8a94a8;
}

.tl-item.is-auto .tl-body {
    color: #5c6a86;
}

.tl-body {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tl-detail {
    font-size: 13px;
    color: #5c6a86;
    margin-top: 2px;
}

@media print {

    .sidebar,
    .topbar,
    .mod-selector-card,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mod-card {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

.al-feed {
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    overflow: hidden;
}

.al-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f6;
}

.al-item:last-child {
    border-bottom: none;
}

.al-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.al-dot-blue {
    background: #1e63d6;
}

.al-dot-green {
    background: #2e7d32;
}

.al-dot-red {
    background: #c62828;
}

.al-main {
    flex: 1;
    min-width: 0;
}

.al-title {
    font-weight: 600;
    font-size: .9rem;
    color: #0d2b52;
}

.al-sub {
    font-size: .78rem;
    color: #6b7a90;
}

.al-time {
    font-size: .78rem;
    color: #6b7a90;
    white-space: nowrap;
}

/* ---------- Links under OTP / forgot / reset forms ---------- */
.view-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.view-links a {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--link-blue, #0056b3);
    text-decoration: none;
}

.view-links a:hover {
    text-decoration: underline;
}

.view-links a.disabled {
    color: #A7ACB5;
    pointer-events: none;
    text-decoration: none;
}

.view-links .sep {
    color: var(--border);
    font-size: 12px;
}

/* ---------- Code input + password hint ---------- */
.otp-input {
    letter-spacing: .3em;
    font-weight: 600;
}

.otp-input::placeholder {
    letter-spacing: .3em;
    font-weight: 400;
}

.hint {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

/* ---------- Toast notifications ---------- */
.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    /* above Bootstrap modals */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
}

.app-toast {
    --tc: #0B2E59;
    --tc-soft: #E8EEF7;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid var(--tc);
    box-shadow: 0 10px 30px rgba(11, 46, 89, .18), 0 2px 6px rgba(11, 46, 89, .08);
    overflow: hidden;
    animation: toast-in .25s ease;
}

.app-toast.is-leaving {
    animation: toast-out .2s ease forwards;
}

.app-toast.is-success {
    --tc: #198754;
    --tc-soft: #E6F4EA;
}

.app-toast.is-danger {
    --tc: #DC3545;
    --tc-soft: #FDECEE;
}

.app-toast.is-warning {
    --tc: #B7791F;
    --tc-soft: #FFF6E0;
}

.app-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tc-soft);
    color: var(--tc);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-toast-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0B2E59;
}

.app-toast-msg {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: #5B6472;
}

.app-toast-close {
    margin-left: auto;
    background: none;
    border: 0;
    padding: 2px;
    color: #A7ACB5;
    cursor: pointer;
    font-size: 11px;
}

.app-toast-close:hover {
    color: #5B6472;
}

.app-toast-bar {
    display: none;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

@keyframes toast-bar {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

