:root {
    --mt-ink: #17312c;
    --mt-muted: #6d817a;
    --mt-green: #087f62;
    --mt-green-dark: #06644e;
    --mt-mint: #e6f5ed;
    --mt-border: #e4ebe8;
    --mt-surface: #ffffff;
    --mt-canvas: #f4f7f5;
    --mt-shadow: 0 12px 34px rgba(24, 59, 48, 0.055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--mt-ink);
    background: var(--mt-canvas);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Manrope', 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -.025em; }
a { color: var(--mt-green); }
a:hover { color: var(--mt-green-dark); }
:focus-visible { outline: 3px solid #91d9b5; outline-offset: 2px; }
::selection { background: #b9ebd1; color: #143b2d; }

#app > .container-fluid:not(.login-page) { padding: 0; }
#app > .container-fluid:not(.login-page) > .row { margin: 0; min-height: 100vh; }
#app > .container-fluid:not(.login-page) > .row > .col-md-3 { padding: 0; background: #102a25; }
#app > .container-fluid:not(.login-page) > .row > .col-md-9 { padding: 0; min-width: 0; }

/* Navigation */
.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: max(100vh, 620px);
    overflow: visible;
    z-index: 30;
    color: #e5f5ec;
    background:
        radial-gradient(circle at 10% 4%, rgba(69, 198, 139, .18), transparent 36%),
        linear-gradient(165deg, #13352c 0%, #102a25 56%, #0c201d 100%);
    scrollbar-width: thin;
    scrollbar-color: #3a6051 transparent;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 28px 22px 27px; }
.sidebar-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    color: #0d533d;
    background: linear-gradient(145deg, #d2f7dc, #67d7a2);
    box-shadow: 0 7px 16px rgba(0, 0, 0, .14);
    font-size: 19px;
}
.sidebar-brand-name { display: block; color: #fff; font: 800 17px/1.1 'Manrope', sans-serif; letter-spacing: -.04em; }
.sidebar-brand-subtitle { display: block; margin-top: 5px; color: #95b9a8; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sidebar-section-label { padding: 13px 27px 8px; color: #739b89; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar .nav { padding: 0 10px 18px; }
.sidebar .nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 2px;
    margin: 3px 0;
    padding: 10px 13px;
    border-radius: 10px;
    color: #b9d2c6;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar .nav-link i:first-child { width: 18px; color: #79aa92; text-align: center; font-size: 14px; }
.sidebar .nav-link:hover { color: #fff; background: rgba(226, 255, 237, .085); transform: translateX(2px); }
.sidebar .nav-link:hover i:first-child { color: #a7e9c0; }
.sidebar .nav-link.active { color: #eaffef; background: rgba(82, 190, 132, .19); box-shadow: inset 3px 0 #76e2a5; }
.sidebar .nav-link.active i:first-child { color: #8aebb3; }
.sidebar-flyout { position: relative; }
.sidebar-flyout-toggle { width: 100%; border: 0; text-align: left; background: transparent; }
.sidebar-flyout-arrow { margin-left: auto; font-size: 10px; opacity: .7; transition: transform .18s ease; }
.sidebar-flyout.is-open .sidebar-flyout-arrow { transform: rotate(180deg); }
.sidebar-flyout-panel {
    position: absolute;
    z-index: 50;
    top: auto;
    bottom: -12px;
    left: calc(100% + 12px);
    width: 255px;
    padding: 10px;
    border: 1px solid #dfe9e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 48, 38, .18);
}
.sidebar-flyout-panel::before { position: absolute; bottom: 27px; left: -7px; width: 13px; height: 13px; content: ''; transform: rotate(45deg); border-left: 1px solid #dfe9e4; border-bottom: 1px solid #dfe9e4; background: #fff; }
.sidebar-flyout-panel.abre-baixo { top: -12px; bottom: auto; }
.sidebar-flyout-panel.abre-baixo::before { top: 27px; bottom: auto; }
.sidebar-flyout-heading { position: relative; padding: 8px 10px 10px; border-bottom: 1px solid #edf2ef; }
.sidebar-flyout-heading span, .sidebar-flyout-heading small { display: block; }
.sidebar-flyout-heading span { color: var(--mt-ink); font: 800 13px 'Manrope', sans-serif; }
.sidebar-flyout-heading small { margin-top: 2px; color: var(--mt-muted); font-size: 9px; }
.sidebar .sidebar-flyout-panel .nav-link { min-height: 37px; margin: 3px 0; padding: 8px 10px; color: #577168; font-size: 11px; }
.sidebar .sidebar-flyout-panel .nav-link i:first-child { color: #699685; font-size: 12px; }
.sidebar .sidebar-flyout-panel .nav-link:hover { color: var(--mt-green-dark); background: #f0f7f3; transform: none; }
.sidebar .sidebar-flyout-panel .nav-link.active { color: var(--mt-green-dark); background: #e6f5ed; box-shadow: inset 3px 0 #48b982; }
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 17px 19px;
    padding: 12px;
    border: 1px solid rgba(186, 233, 203, .11);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
}
.sidebar-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 11px; color: #c5f4d2; background: rgba(112, 221, 149, .2); font-weight: 800; }
.sidebar-profile > span:last-child { min-width: 0; }
.sidebar-profile-name { overflow: hidden; color: #f4fff7; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-role { color: #8eb19f; font-size: 10px; }

/* Shared page frame */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--mt-border);
    box-shadow: none;
    backdrop-filter: blur(14px);
}
.navbar > .container-fluid { max-width: 1640px; padding: 0 clamp(20px, 3vw, 40px); }
.navbar h5 { margin: 0; color: var(--mt-ink); font-size: 15px; font-weight: 800; }
.navbar .navbar-nav { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.navbar .navbar-text { color: var(--mt-muted); font-size: 12px; font-weight: 600; }
.navbar .navbar-text i { color: var(--mt-green); font-size: 18px; vertical-align: -2px; }
.navbar form { margin: 0; }
.navbar .btn-outline-danger { width: 35px; height: 35px; padding: 0; border: 1px solid #eadfdf; border-radius: 10px; color: #a65e60; background: #fff; }
.navbar .btn-outline-danger:hover { color: #fff; border-color: #bb5b61; background: #bb5b61; }
.main-content { max-width: 1640px; min-height: calc(100vh - 72px); margin: 0 auto; padding: clamp(22px, 2.8vw, 40px) !important; background: transparent; }
.main-content > .d-flex:first-child > h2,
.main-content > .d-flex:first-child > div > h2 { color: var(--mt-ink); font-size: clamp(23px, 2vw, 30px); font-weight: 800; }
.main-content > .d-flex:first-child > div > p { color: var(--mt-muted) !important; font-size: 13px; }

/* Cards and information */
.card {
    border: 1px solid var(--mt-border);
    border-radius: 17px;
    background: var(--mt-surface);
    box-shadow: var(--mt-shadow);
}
.card-header { padding: 19px 23px; border-bottom: 1px solid var(--mt-border); border-radius: 17px 17px 0 0 !important; background: #fff; }
.card-header h6 { margin: 0; color: var(--mt-ink); font-size: 14px; font-weight: 800; }
.card-body { padding: 23px; }
.card-body > h6 { color: var(--mt-ink); }
.card.bg-warning, .card.bg-success, .card.bg-danger, .card.bg-info { border-width: 1px; box-shadow: var(--mt-shadow); }
.card.bg-warning.text-white { color: #845723 !important; background: #fff6e9 !important; border-color: #f1e1c9; }
.card.bg-success.text-white { color: #176a4f !important; background: #e9f8ef !important; border-color: #d3eddd; }
.card.bg-danger.text-white { color: #a3474b !important; background: #fff0ef !important; border-color: #f5d9d7; }
.card.bg-info.text-white { color: #28647a !important; background: #eaf5fa !important; border-color: #d7eaf2; }
.card.bg-warning h3, .card.bg-success h3, .card.bg-danger h3, .card.bg-info h3 { font-size: 29px; font-weight: 800; }
.alert { border-radius: 12px; border-width: 1px; font-size: 13px; }

/* Inputs and actions */
.form-label { margin-bottom: 7px; color: #425b52; font-size: 12px; font-weight: 700; }
.form-control, .form-select, .input-group-text {
    min-height: 41px;
    border-color: #dbe5e0;
    border-radius: 10px;
    background-color: #fff;
    color: var(--mt-ink);
    font-size: 13px;
}
.form-control::placeholder { color: #a0aea7; }
.form-control:focus, .form-select:focus { border-color: #67c69a; box-shadow: 0 0 0 4px rgba(68, 183, 119, .13); }
.input-group .input-group-text { color: #77988a; background: #f6f9f7; border-radius: 10px 0 0 10px; }
.input-group .input-group-text + .form-control { border-radius: 0 10px 10px 0; }
.form-check-input:checked { border-color: var(--mt-green); background-color: var(--mt-green); }
.form-text { color: var(--mt-muted); font-size: 11px; }
.btn { border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: .005em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(80, 180, 120, .2); }
.btn-primary { border-color: var(--mt-green); background: var(--mt-green); box-shadow: 0 4px 11px rgba(8, 127, 98, .16); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--mt-green-dark); background: var(--mt-green-dark); box-shadow: 0 7px 16px rgba(8, 127, 98, .2); }
.btn-outline-primary { color: var(--mt-green); border-color: #aedac3; }
.btn-outline-primary:hover, .btn-outline-primary:focus { border-color: var(--mt-green); background: var(--mt-green); }
.btn-outline-success { color: var(--mt-green); border-color: #aedac3; }
.btn-outline-success:hover { border-color: var(--mt-green); background: var(--mt-green); }
.btn-secondary { border-color: #e3ebe7; color: #496359; background: #eef2ef; }
.btn-secondary:hover { border-color: #d3e2d9; color: #314e41; background: #dfeae3; }
.btn-outline-secondary { border-color: #d6e1da; color: #587369; }
.btn-outline-secondary:hover { border-color: #557769; background: #557769; }
.btn-sm { padding: 6px 10px; border-radius: 8px; }
.badge { padding: .46em .72em; border-radius: 7px; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.badge.bg-success { background: #e3f5e9 !important; color: #18704e !important; }
.badge.bg-warning { background: #fff1d2 !important; color: #8a631e !important; }
.badge.bg-danger { background: #ffe7e7 !important; color: #a3424b !important; }
.badge.bg-info { background: #e0f2fa !important; color: #316b85 !important; }
.badge.bg-secondary { background: #eef2f0 !important; color: #5b7168 !important; }

/* Tables */
.table-responsive { overflow-x: auto; border-radius: 0 0 16px 16px; }
.table { margin-bottom: 0; color: var(--mt-ink); font-size: 12px; vertical-align: middle; }
.table thead th, .table thead.table-dark th, .table thead.bg-light th {
    padding: 13px 14px;
    border-bottom: 1px solid #e2eae5;
    background: #f7f9f8 !important;
    color: #667f74 !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table tbody td { padding: 14px; border-bottom-color: #eaf0ec; color: #344c43; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover td { background: #f8fbf9; }
.table .d-flex.gap-1 { flex-wrap: nowrap; }
.table .btn-sm { white-space: nowrap; }
.table-bordered td, .table-bordered th { border-color: var(--mt-border); }
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-thumb { border-radius: 10px; background: #cbdcd1; }
.obligation-actions, .obligation-complete-form { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.obligation-file-input { width: 210px; min-height: 36px; padding: 5px 7px; font-size: 11px; line-height: 24px; }
.obligation-file-input::file-selector-button { margin: -5px 9px -5px -7px; padding: 5px 9px; border: 0; border-right: 1px solid #dbe5e0; border-radius: 9px 0 0 9px; color: #426456; background: #f0f6f2; font-size: 11px; font-weight: 700; cursor: pointer; }
.obligation-action-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border-radius: 9px; }

/* Occupational care */
.exam-result-block { margin-bottom: 18px; padding: 18px; border: 1px solid var(--mt-border); border-radius: 13px; background: #fbfdfc; }
.exam-result-block:last-child { margin-bottom: 0; }
.clinical-timeline { position: relative; padding-left: 28px; }
.clinical-timeline::before { position: absolute; top: 8px; bottom: 8px; left: 8px; width: 2px; content: ''; background: #dce9e1; }
.clinical-timeline article { position: relative; margin-bottom: 20px; }
.clinical-timeline-marker { position: absolute; top: 20px; left: -26px; width: 14px; height: 14px; border: 3px solid #dff2e7; border-radius: 50%; background: var(--mt-green); }
.aso-toolbar { display: flex; justify-content: center; gap: 10px; max-width: 900px; margin: 24px auto; }
.aso-document { max-width: 900px; min-height: 1100px; margin: 24px auto; padding: 48px; border: 1px solid #dce5e0; background: #fff; color: #263b33; box-shadow: var(--mt-shadow); }
.aso-document header, .aso-document footer, .aso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.aso-document header { align-items: start; padding-bottom: 24px; border-bottom: 3px solid var(--mt-green); }
.aso-document h1 { margin: 0; color: var(--mt-green); font-size: 38px; }
.aso-document h2 { margin-bottom: 14px; font-size: 14px; text-transform: uppercase; }
.aso-document section { padding: 22px 0; border-bottom: 1px solid #e4ebe7; }
.aso-document p { margin: 0; }
.aso-document p small { display: block; color: #71847c; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.aso-document table { width: 100%; font-size: 12px; }
.aso-document th, .aso-document td { padding: 9px; border-bottom: 1px solid #e7ece9; text-align: left; }
.aso-conclusion { text-align: center; }
.aso-conclusion span, .aso-conclusion strong { display: block; }
.aso-conclusion strong { margin: 8px 0; color: var(--mt-green); font-size: 30px; }
.aso-cancelled { margin: 20px 0 0; padding: 18px; border: 2px solid #bb4a50; color: #9a343a; text-align: center; font-weight: 800; }
.aso-document footer { padding-top: 70px; }
.signature-line { padding-top: 8px; border-top: 1px solid #64776f; text-align: center; font-size: 11px; }
@media print { body { background: #fff !important; } .aso-toolbar, .btn { display: none !important; } .aso-document { min-height: 0; margin: 0; padding: 20px; border: 0; box-shadow: none; } }

/* Exam schedule */
.agenda-date-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 17px; color: var(--mt-muted); font-size: 12px; }
.agenda-date-heading > div { display: flex; align-items: center; gap: 12px; }
.agenda-date-heading strong, .agenda-date-heading small { display: block; }
.agenda-date-heading strong { color: var(--mt-ink); font-size: 14px; }
.agenda-date-day { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--mt-green); font: 800 20px 'Manrope', sans-serif; }
.agenda-table td { min-width: 95px; }
.agenda-table td:nth-child(2) { min-width: 190px; }
.agenda-table td:nth-child(4) { min-width: 170px; }
.agenda-table td strong, .agenda-table td small { display: block; }
.agenda-table td small { margin-top: 3px; color: var(--mt-muted); font-size: 10px; }
.agenda-time { display: block; color: var(--mt-green-dark); font: 800 16px 'Manrope', sans-serif; }
.exam-chip-list { display: flex; flex-wrap: wrap; gap: 4px; }
.exam-chip-list span { padding: 4px 7px; border-radius: 6px; color: #3d6656; background: #edf6f1; font-size: 10px; font-weight: 700; }
.appointment-status { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 8px; color: #536860; background: #edf1ef; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-agendado { color: #346d8a; background: #e7f3f9; }
.status-confirmado, .status-concluido { color: #18704e; background: #e3f5e9; }
.status-em-atendimento { color: #865f1b; background: #fff1d2; }
.status-cancelado, .status-nao-compareceu { color: #a3424b; background: #ffe7e7; }
.exam-selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exam-option { display: flex; gap: 12px; min-height: 76px; padding: 14px; border: 1px solid var(--mt-border); border-radius: 12px; background: #fbfdfc; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.exam-option:has(input:checked) { border-color: #72c99d; background: #eef9f2; box-shadow: inset 0 0 0 1px #72c99d; }
.exam-option input { align-self: flex-start; flex: 0 0 16px; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--mt-green); }
.exam-option strong, .exam-option small, .exam-option em { display: block; }
.exam-option strong { color: var(--mt-ink); font-size: 12px; }
.exam-option small { margin-top: 3px; color: var(--mt-muted); font-size: 10px; }
.exam-option em { margin-top: 7px; color: #856b38; font-size: 10px; font-style: normal; }

/* Operational calendar */
.calendar-week-row { height: 148px; }
.calendar-event-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; color: #557066; background: #edf2ef; font-size: 9px; font-weight: 800; }
.calendar-event { display: flex; align-items: center; gap: 5px; width: 100%; margin-bottom: 5px; padding: 5px 6px; overflow: hidden; border-radius: 6px; font-size: 9px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; }
.calendar-event i { flex: 0 0 auto; font-size: 9px; }
.calendar-event-exam { color: #265f7b; background: #e4f2f8; }
.calendar-event-exam:hover { color: #174a64; background: #d5eaf3; }
.calendar-exam-status-confirmado, .calendar-exam-status-em-atendimento { color: #805d20; background: #fff0cf; }
.calendar-exam-status-confirmado:hover, .calendar-exam-status-em-atendimento:hover { color: #694a16; background: #f9e4b8; }
.calendar-exam-status-concluido { color: #176749; background: #dff4e6; }
.calendar-exam-status-concluido:hover { color: #10543b; background: #ceecd9; }
.calendar-exam-status-cancelado, .calendar-exam-status-nao-compareceu { color: #9d4148; background: #ffe4e4; text-decoration: line-through; opacity: .78; }
.calendar-exam-status-cancelado:hover, .calendar-exam-status-nao-compareceu:hover { color: #85343a; background: #f9d4d5; }
.calendar-event-obligation.status-pendente { color: #815c20; background: #fff0cf; }
.calendar-event-obligation.status-vencida { color: #9d4148; background: #ffe4e4; }
.calendar-event-obligation.status-concluida { color: #1e6d50; background: #def3e5; }
.calendar-more-links { display: flex; flex-direction: column; gap: 2px; }
.calendar-more-links a { font-size: 9px; font-weight: 700; text-decoration: none; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px 26px; color: var(--mt-muted); font-size: 11px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-legend-dot { width: 9px; height: 9px; border-radius: 3px; }
.legend-exam-scheduled { background: #65a9c8; }
.legend-exam-progress { background: #d5a44d; }
.legend-exam-done { background: #50aa7f; }
.legend-exam-canceled { background: #d56f76; }
.legend-pending { background: #e1ad53; }
.legend-overdue { background: #d56f76; }
.legend-done { background: #5ab287; }

/* Dashboard */
.dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 184px;
    margin-bottom: 28px;
    padding: 32px 37px;
    overflow: hidden;
    border-radius: 21px;
    color: #effff5;
    background: linear-gradient(113deg, #123e32 0%, #167853 63%, #2a9d68 100%);
    box-shadow: 0 20px 38px rgba(15, 88, 58, .18);
}
.dashboard-hero::before, .dashboard-hero::after { position: absolute; content: ''; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; pointer-events: none; }
.dashboard-hero::before { width: 340px; height: 340px; right: -45px; top: -175px; }
.dashboard-hero::after { width: 220px; height: 220px; right: 87px; bottom: -162px; }
.dashboard-hero-copy { position: relative; z-index: 1; }
.dashboard-eyebrow { display: inline-block; margin-bottom: 12px; color: #9fe9ba; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-hero h1 { max-width: 620px; margin: 0 0 8px; color: #fff; font-size: clamp(25px, 2.5vw, 37px); font-weight: 800; line-height: 1.2; }
.dashboard-hero p { max-width: 620px; margin: 0; color: #c4ebd2; font-size: 13px; }
.dashboard-date { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 11px 15px; border: 1px solid rgba(255, 255, 255, .21); border-radius: 12px; color: #e4ffec; background: rgba(255, 255, 255, .11); font-size: 11px; font-weight: 700; white-space: nowrap; }
.dashboard-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1px 0 17px; }
.dashboard-section-title h2 { margin: 0; color: var(--mt-ink); font-size: 17px; font-weight: 800; }
.dashboard-section-title span { color: var(--mt-muted); font-size: 11px; }
.dashboard-card-link { display: block; height: 100%; overflow: hidden; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.dashboard-card-link:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(19, 65, 44, .12); }
.dashboard-card-link:focus-visible { outline: 3px solid #72d9a2; outline-offset: 3px; }
.dashboard-page .stat-card, .dashboard-page .stat-card-success, .dashboard-page .stat-card-warning, .dashboard-page .stat-card-info { min-height: 169px; }
.dashboard-page .stat-card { border-color: #176b50; background: linear-gradient(140deg, #0e7354, #14996b); color: #fff !important; }
.dashboard-page .stat-card-success, .dashboard-page .stat-card-warning, .dashboard-page .stat-card-info { color: var(--mt-ink) !important; background: #fff; }
.dashboard-page .stat-card-success { border-top: 3px solid #28b68c; }
.dashboard-page .stat-card-warning { border-top: 3px solid #e1a954; }
.dashboard-page .stat-card-info { border-top: 3px solid #74acd1; }
.dashboard-page .stat-card .card-body, .dashboard-page .stat-card-success .card-body, .dashboard-page .stat-card-warning .card-body, .dashboard-page .stat-card-info .card-body { padding: 24px; }
.dashboard-page .stat-card .card-title, .dashboard-page .stat-card-success .card-title, .dashboard-page .stat-card-warning .card-title, .dashboard-page .stat-card-info .card-title { color: inherit; opacity: .75; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.dashboard-page .stat-card h2, .dashboard-page .stat-card-success h2, .dashboard-page .stat-card-warning h2, .dashboard-page .stat-card-info h2 { margin: 7px 0 5px !important; color: inherit; font-size: 30px; font-weight: 800; }
.dashboard-page .stat-card small, .dashboard-page .stat-card-success small, .dashboard-page .stat-card-warning small, .dashboard-page .stat-card-info small { color: inherit; opacity: .72; font-size: 11px; }
.stat-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 13px; background: rgba(18, 154, 101, .1); color: #158c65; }
.stat-icon i { font-size: 18px !important; opacity: 1 !important; }
.stat-card .stat-icon { color: #e7fff0; background: rgba(255, 255, 255, .16); }
.stat-card-warning .stat-icon { color: #b78028; background: #fff2dc; }
.stat-card-info .stat-icon { color: #457eaa; background: #eaf4fb; }
.dashboard-page .status-card { min-height: 111px; }
.dashboard-page .status-card .card-body { padding: 19px 21px; }
.dashboard-page .status-card h5 { margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.dashboard-page .status-card h3 { margin: 0; font-size: 26px; }
.dashboard-page .status-card i { font-size: 24px !important; opacity: .55; }
.dashboard-page .quick-actions-card .card-body { padding: 22px; }
.dashboard-page .quick-actions-card .btn { display: flex; align-items: center; justify-content: flex-start; gap: 13px; min-height: 73px; padding: 14px 18px !important; border: 1px solid var(--mt-border); color: var(--mt-ink); background: #fafcfb; text-align: left; font-size: 12px; }
.dashboard-page .quick-actions-card .btn:hover { border-color: #a6d9ba; color: var(--mt-green); background: #f1faf4; }
.dashboard-page .quick-actions-card .btn i { display: inline-grid !important; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; margin: 0 !important; border-radius: 10px; color: #238966; background: #e6f5ec; font-size: 17px !important; }
.dashboard-page canvas { max-width: 100%; }

/* Login */
.login-page { min-height: 100vh; padding: 0; background: #f7faf8; }
.login-page > .row { min-height: 100vh; margin: 0; }
.login-showcase { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 4.5vw, 70px); overflow: hidden; background: radial-gradient(circle at 82% 26%, rgba(150, 231, 174, .21), transparent 34%), linear-gradient(152deg, #103c30, #0e6748 64%, #168a5d); color: #fff; }
.login-showcase::before, .login-showcase::after { position: absolute; content: ''; border: 1px solid rgba(220, 255, 230, .17); border-radius: 50%; pointer-events: none; }
.login-showcase::before { width: 580px; height: 580px; right: -300px; top: 22%; }
.login-showcase::after { width: 380px; height: 380px; right: -120px; top: 38%; }
.login-logo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 800 19px 'Manrope', sans-serif; letter-spacing: -.04em; }
.login-logo-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: #10573f; background: #b6efc8; box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.login-showcase-content { position: relative; z-index: 1; max-width: 600px; margin: auto 0; padding: 35px 0; }
.login-kicker { display: inline-flex; padding: 9px 13px; border: 1px solid rgba(233, 255, 236, .25); border-radius: 100px; color: #b5ebca; background: rgba(255, 255, 255, .07); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.login-showcase h1 { margin: 24px 0 19px; color: #fff; font-size: clamp(36px, 4.6vw, 66px); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; }
.login-showcase p { max-width: 485px; margin: 0; color: #c8ebd7; font-size: 15px; line-height: 1.7; }
.login-pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.login-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(227, 255, 235, .17); border-radius: 9px; color: #e2faea; background: rgba(255, 255, 255, .08); font-size: 11px; font-weight: 700; }
.login-pill i { color: #a4efc0; }
.login-showcase-footer { position: relative; z-index: 1; color: #a8d6b8; font-size: 11px; }
.login-form-panel { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 24px; }
.login-form-wrap { width: min(100%, 418px); }
.login-form-wrap .login-form-kicker { margin-bottom: 12px; color: var(--mt-green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-form-wrap h2 { margin-bottom: 11px; color: var(--mt-ink); font-size: clamp(28px, 3vw, 34px); font-weight: 800; }
.login-form-wrap .login-form-intro { margin-bottom: 31px; color: var(--mt-muted); font-size: 13px; line-height: 1.6; }
.login-form-wrap .form-label { margin-bottom: 9px; font-size: 12px; }
.login-form-wrap .input-group-text, .login-form-wrap .form-control { min-height: 52px; }
.login-form-wrap .input-group-text { min-width: 52px; justify-content: center; font-size: 15px; }
.login-form-wrap .form-control { font-size: 14px; }
.login-form-wrap .btn-primary { min-height: 51px; margin-top: 3px; border-radius: 11px; font-size: 13px; }
.login-form-wrap .alert { margin-bottom: 24px; }
.login-form-note { margin: 26px 0 0; color: #9baca3; font-size: 11px; text-align: center; }

@media (max-width: 1199.98px) {
    .sidebar-brand { padding-left: 17px; padding-right: 12px; }
    .sidebar-brand-name { font-size: 15px; }
    .sidebar .nav-link { font-size: 12px; }
    .dashboard-hero { padding: 29px; }
}
@media (max-width: 991.98px) {
    #app > .container-fluid:not(.login-page) > .row > .col-md-3 { background: transparent; }
    .sidebar { position: static; height: auto; min-height: 0; overflow: visible; }
    .sidebar-brand { padding: 17px 21px 12px; }
    .sidebar .nav { display: flex; flex-direction: row; flex-wrap: wrap; padding: 0 14px 14px; }
    .sidebar .nav-link { min-height: 35px; padding: 8px 11px; }
    .sidebar .nav-item { display: contents; }
    .sidebar .sidebar-flyout { display: block; flex-basis: 100%; }
    .sidebar-flyout-panel { position: static; width: 100%; margin-top: 5px; border: 1px solid rgba(186, 233, 203, .11); background: rgba(255, 255, 255, .05); box-shadow: none; }
    .sidebar-flyout-panel::before, .sidebar-flyout-heading { display: none; }
    .sidebar .sidebar-flyout-panel .nav-link { color: #b9d2c6; }
    .sidebar .sidebar-flyout-panel .nav-link:hover { color: #fff; background: rgba(226, 255, 237, .085); }
    .sidebar .sidebar-flyout-panel .nav-link.active { color: #eaffef; background: rgba(82, 190, 132, .19); }
    .sidebar-section-label, .sidebar-profile { display: none; }
    .navbar { position: static; }
    .main-content { min-height: 0; }
    .login-showcase { min-height: 340px; }
    .login-form-panel { min-height: 560px; }
}
@media (max-width: 767.98px) {
    .navbar { min-height: 60px; }
    .navbar > .container-fluid { padding: 0 17px; }
    .navbar .navbar-text { display: none; }
    .main-content { padding: 20px 16px 35px !important; }
    .card-header, .card-body { padding: 17px; }
    .dashboard-hero { display: block; min-height: 0; padding: 27px 24px; }
    .dashboard-date { margin-top: 22px; }
    .dashboard-page .status-card { margin-bottom: 13px; }
    .dashboard-page .quick-actions-card .btn { min-height: 62px; }
    .login-showcase { min-height: 320px; padding: 28px 25px; }
    .login-showcase h1 { font-size: 34px; }
    .login-showcase p { font-size: 13px; }
    .login-showcase-footer { display: none; }
    .login-form-panel { min-height: 0; padding: 49px 24px 70px; }
    .exam-selection-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
