:root {
    --bg-main: #f5f7fa;
    --card: #ffffff;
    --text: #12263a;
    --muted: #54728f;
    --primary: #d63324;
    --primary-2: #f08f1a;
    --border: #d8e1ea;
    --ok-bg: #e7f7ef;
    --ok-text: #1c7d46;
    --warn-bg: #fff3e8;
    --warn-text: #9b4f07;
}

* {
    text-decoration: none;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at 0% 0%, #ffd6d6 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, #ffe9c5 0%, transparent 45%),
        linear-gradient(140deg, #f5f7fa 0%, #edf3f8 100%);
}

.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px 42px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 6px;
}

.brand h1 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.3px;
}

.brand p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(15, 38, 64, 0.08);
}

.hero {
    padding: 30px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.hero h2 {
    margin: 4px 0 10px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.hero-photo {
    border-radius: 14px;
    overflow: hidden;
    min-height: 220px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn,
button {
    display: inline-block;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(95deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 22px rgba(214, 51, 36, 0.28);
}

.btn-soft {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 22px;
}

.form-title {
    margin: 0 0 4px;
}

.form-subtitle {
    margin: 0 0 16px;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ffd9b7;
    border-color: #f2ad6a;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.notice {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.notice-ok {
    background: var(--ok-bg);
    color: var(--ok-text);
}

.notice-warn {
    background: var(--warn-bg);
    color: var(--warn-text);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f9fbfd;
}

.small {
    color: var(--muted);
    font-size: 0.88rem;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .page-wrap {
        padding: 20px 14px 36px;
    }
}

.login-page {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(24, 116, 221, 0.76), rgba(24, 116, 221, 0.76)),
        url("../images/Kantor_Bupati_Karimun.jpg") center/cover no-repeat;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    width: min(92vw, 580px);
    background: #f2f4f8;
    border-radius: 26px;
    padding: 30px 40px 26px;
    box-shadow: 0 18px 40px rgba(8, 30, 62, 0.25);
    text-align: center;
    animation: fadeUp 0.5s ease;
}

.auth-logo {
    width: 94px;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.auth-card h1 {
    margin: 8px 0 6px;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.auth-card p {
    margin-top: 0;
    color: #556b84;
}

.auth-form {
    margin-top: 20px;
    text-align: left;
}

.auth-form .field {
    margin-bottom: 14px;
}

.auth-form input {
    background: #dce4f2;
    border-color: #cad5ea;
    font-size: 1.1rem;
}

.auth-btn {
    width: 100%;
    margin-top: 8px;
    font-size: 1.1rem;
    padding: 13px;
}

.auth-footnote {
    margin: 16px 0 6px;
    color: #5b6776;
}

.auth-back {
    color: #1d67df;
    text-decoration: none;
    font-weight: 700;
}

.content-auth {
    padding: 0;
}

.login-scene {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(14, 57, 104, 0.72), rgba(25, 109, 191, 0.68)),
        radial-gradient(circle at 92% 12%, rgba(255, 196, 92, 0.35), transparent 30%),
        url("bg.jpg") center/cover no-repeat;
}

.login-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 32, 58, 0.1), rgba(5, 21, 40, 0.46));
    pointer-events: none;
}

.login-card-wrap {
    width: min(94vw, 620px);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    background: rgba(247, 251, 255, 0.95);
    border: 1px solid rgba(198, 218, 242, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    padding: 30px 34px 24px;
    box-shadow: 0 24px 50px rgba(8, 33, 61, 0.34);
    text-align: center;
    animation: fadeUp 0.5s ease;
}

.auth-brand .eyebrow {
    color: #2c6095;
    font-weight: 600;
}

.auth-card h1 {
    margin: 8px 0 6px;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    color: #164677;
    letter-spacing: 0.02em;
}

.auth-card p {
    margin-top: 0;
    color: #436485;
}

.auth-form label > span {
    color: #235483;
    font-weight: 500;
}

.auth-form input {
    background: #ffffff;
    border-color: #b9d2ec;
    font-size: 1.04rem;
    border-radius: 11px;
}

.auth-form input:focus {
    outline: 2px solid #c8e0fb;
    border-color: #78ace0;
}

.button-block {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .auth-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .login-scene {
        padding: 14px;
    }
}

.register-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.72)),
        linear-gradient(130deg, #ffd65e 0%, #ffbe3d 52%, #f9b11d 100%);
}

.register-page .main-header.navbar {
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 193, 62, 0.45);
    backdrop-filter: blur(4px);
}

.register-page .content-wrapper {
    background: transparent;
}

/* ===== NOTA DINAS APP LAYOUT ===== */
.shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    min-height: 100vh;
    padding: 24px 18px;
    color: #fff;
    background: linear-gradient(180deg, #274766 0%, #1f3852 55%, #1a2f45 100%);
    position: sticky;
    top: 0;
}

.sidebar-brand {
    padding: 6px 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 10px;
}

.sidebar h1 {
    margin: 6px 0;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.menu {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.menu a,
.menu-logout-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    color: #dce9f8;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 12px;
    padding: 11px 13px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, transform 0.18s ease;
}

.menu a:hover,
.menu-logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.menu a.is-active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.36), rgba(56, 189, 248, 0.3));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 18px rgba(4, 41, 82, 0.34);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f3f4f6;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
}

.nav-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.content {
    flex: 1;
    padding: 20px;
    font-weight: 400;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-slate { background: #e5e7eb; color: #374151; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-violet { background: #ede9fe; color: #6d28d9; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }

/* ===== ADMINLTE-STYLE DASHBOARD BLOCKS ===== */
.nd-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border: 1px solid #dde5f0;
}

.nd-blue-dashboard {
    padding: 12px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #d9ebff 0%, #eef5ff 52%, #f5f9ff 100%);
    border: 1px solid #bfd8fa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nd-page {
    padding: 12px;
    border-radius: 18px;
}

.nd-page-blue {
    background:
        linear-gradient(180deg, #d9ebff 0%, #eef5ff 52%, #f5f9ff 100%);
    border: 1px solid #bfd8fa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nd-page-blue .nd-dashboard-head {
    background: linear-gradient(135deg, #0d6fd8 0%, #2f95ee 100%);
    border-color: #2f8ee2;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(19, 89, 163, 0.3);
}

.nd-page-blue .nd-dashboard-head p {
    color: rgba(255, 255, 255, 0.88);
}

.nd-page-blue .button-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    color: #0d4f9f;
    background: rgba(255, 255, 255, 0.96);
}

.nd-page-blue .button-secondary:hover {
    background: #ffffff;
}

.nd-blue-dashboard .nd-dashboard-head {
    background: linear-gradient(135deg, #0d6fd8 0%, #2f95ee 100%);
    border-color: #2f8ee2;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(19, 89, 163, 0.3);
}

.nd-blue-dashboard .nd-dashboard-head p {
    color: rgba(255, 255, 255, 0.88);
}

.nd-blue-dashboard .button-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    color: #0d4f9f;
    background: rgba(255, 255, 255, 0.96);
}

.nd-blue-dashboard .button-secondary:hover {
    background: #ffffff;
}

.nd-dashboard-head h2 {
    margin: 0;
    font-size: 1.7rem;
}

.nd-dashboard-head p {
    margin: 6px 0 0;
    color: #6b7280;
}

.nd-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nd-small-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.nd-small-box {
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(22, 52, 92, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nd-box-inner {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nd-box-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    flex: 0 0 auto;
}

.nd-box-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nd-box-metric {
    flex: 1;
    text-align: right;
}

.nd-small-box h3 {
    margin: 0;
    font-size: 2.15rem;
}

.nd-small-box p {
    margin: 8px 0 0;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nd-box-link {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.18);
}

.nd-box-slate { background: linear-gradient(135deg, #8f43bb, #6f2897); }
.nd-box-amber { background: linear-gradient(135deg, #d8cf3f, #afb227); }
.nd-box-blue { background: linear-gradient(135deg, #3ea7e2, #2089cb); }
.nd-box-violet { background: linear-gradient(135deg, #5278e0, #335bc8); }
.nd-box-green { background: linear-gradient(135deg, #63b66f, #40924e); }
.nd-box-red { background: linear-gradient(135deg, #d07b4a, #ba5f2d); }

.nd-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dde5f0;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.nd-blue-dashboard .nd-card {
    border-color: #c6ddf8;
    box-shadow: 0 10px 24px rgba(20, 71, 128, 0.12);
}

.nd-page-blue .nd-card,
.nd-page-blue .panel {
    border-color: #c6ddf8;
    box-shadow: 0 10px 24px rgba(20, 71, 128, 0.12);
}

.nd-blue-dashboard .nd-card-head {
    background: linear-gradient(180deg, #f3f8ff 0%, #e8f2ff 100%);
    border-bottom-color: #d2e3f7;
}

.nd-page-blue .nd-card-head,
.nd-page-blue .panel-head {
    background: linear-gradient(180deg, #f3f8ff 0%, #e8f2ff 100%);
    border-bottom-color: #d2e3f7;
}

.nd-blue-dashboard thead th {
    background: #eef5ff;
    color: #1d4b7f;
    border-bottom-color: #d5e5f8;
}

.nd-page-blue thead th {
    background: #eef5ff;
    color: #1d4b7f;
    border-bottom-color: #d5e5f8;
}

/* ===== REPORT PAGE TYPOGRAPHY (LIGHTER) ===== */
.nd-reports-page {
    font-weight: 400;
}

.nd-reports-page .nd-dashboard-head h2,
.nd-reports-page .nd-card-head h3 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nd-reports-page .nd-dashboard-head p,
.nd-reports-page p,
.nd-reports-page td,
.nd-reports-page label,
.nd-reports-page span,
.nd-reports-page .small,
.nd-reports-page .muted {
    font-weight: 400;
}

.nd-reports-page th {
    font-weight: 500;
}

.nd-reports-page strong,
.nd-reports-page .stacked-cell strong {
    font-weight: 500;
}

.nd-reports-page .button {
    font-weight: 500;
}

.nd-card-outline {
    border-top: 4px solid #3b82f6;
}

.nd-card-head {
    padding: 12px 14px;
    border-bottom: 1px solid #e5eaf2;
}

.nd-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.dashboard-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-action-button {
    padding: 7px 12px;
    min-width: 82px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-action-button + .dashboard-action-button {
    margin-left: 8px;
}

/* ===== FORM/PANEL COMPONENTS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2077d8, #165db2);
    box-shadow: 0 8px 18px rgba(21, 86, 163, 0.24);
}

.button-secondary {
    color: #1d4f88;
    background: #f4f9ff;
    border-color: #bfd7f2;
}

.button-accent {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.24);
}

.button-success {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
}

.button-violet {
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.22);
}

.button-secondary:hover {
    background: #eaf4ff;
}

.button-ghost {
    color: #1d4f88;
    background: #edf5ff;
    border-color: #c6daf2;
}

.button-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #d55a4a, #b64132);
    box-shadow: 0 8px 16px rgba(166, 58, 44, 0.2);
}

.panel {
    background: #ffffff;
    border: 1px solid #d9e7f5;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(16, 54, 96, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.narrow-panel {
    max-width: 980px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f6fbff 0%, #eff6ff 100%);
    border-bottom: 1px solid #dbe9f7;
}

.panel-head h2,
.panel-head h3 {
    margin: 0;
    color: #184576;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form-grid label {
    display: grid;
    gap: 6px;
}

.form-grid label > span {
    font-weight: 500;
    color: #27537f;
    font-size: 0.92rem;
}

.form-grid .full-span {
    grid-column: 1 / -1;
}

.participant-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.participant-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.subhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.subhead h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1c4e82;
}

.detail-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 16px 12px;
    color: #3a5f85;
    font-size: 0.92rem;
}

.credential-box {
    border: 1px solid #d8e7f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
    padding: 12px 14px;
    color: #2f597f;
}

.credential-box strong {
    color: #1d4e84;
    font-weight: 600;
}

.credential-box p {
    margin: 6px 0 0;
}

.table-link {
    color: #1f6fcb;
    font-weight: 500;
    margin-right: 10px;
}

.table-link:hover {
    color: #0f4d95;
    text-decoration: underline;
}

.eyebrow {
    margin: 0 0 6px;
    color: #5c84ac;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compact-gap {
    margin-top: 12px;
}

.inline-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.action-bar {
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.timeline {
    padding: 0 16px 16px;
    display: grid;
    gap: 10px;
}

.timeline-item {
    border: 1px solid #dce9f7;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f9fcff;
}

.timeline-item strong {
    display: block;
    color: #184a7d;
    font-weight: 600;
}

.timeline-item span {
    display: block;
    color: #5a7391;
    font-size: 0.88rem;
    margin-top: 2px;
}

.timeline-item p {
    margin: 6px 0 0;
    color: #3d5f83;
}

/* ===== NOTE FORM LIGHT TYPO ===== */
.nd-note-form-page {
    font-weight: 400;
}

.nd-note-form-page .panel {
    border-radius: 16px;
    border-color: #c8dcf2;
}

.nd-note-form-page .panel-head {
    padding: 16px 18px;
}

.nd-note-form-page .form-grid {
    gap: 10px 16px;
    padding: 18px;
}

.nd-note-form-page .eyebrow,
.nd-note-form-page .credential-box,
.nd-note-form-page p,
.nd-note-form-page td,
.nd-note-form-page label,
.nd-note-form-page span,
.nd-note-form-page .small,
.nd-note-form-page .muted {
    font-weight: 400;
}

.nd-note-form-page h2,
.nd-note-form-page h3,
.nd-note-form-page strong,
.nd-note-form-page .button,
.nd-note-form-page .badge {
    font-weight: 500;
}

.nd-note-form-page .panel-head h2 {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nd-note-form-page .panel-head h3 {
    font-size: 1.05rem;
    font-weight: 500;
}

.nd-note-form-page .form-grid label > span {
    color: #255481;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.nd-note-form-page input,
.nd-note-form-page select,
.nd-note-form-page textarea {
    font-size: 0.96rem;
    line-height: 1.35;
    padding: 10px 12px;
    border-radius: 9px;
    font-weight: 400;
    border-color: #c6d9ed;
    background: #ffffff;
}

.nd-note-form-page textarea {
    min-height: 84px;
}

.nd-note-form-page .participant-row {
    gap: 10px;
}

.nd-note-form-page .button {
    font-size: 0.92rem;
    font-weight: 500;
}

.nd-note-form-page .credential-box {
    border-color: #cfe1f4;
    background: linear-gradient(180deg, #fafdff 0%, #f2f8ff 100%);
}

.nd-note-form-page .note-form-disclosure {
    margin: 12px 16px 16px;
    border: 1px solid #d5e5f6;
    border-radius: 12px;
    background: #f7fbff;
}

.nd-note-form-page .note-form-summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2077d8, #165db2);
    box-shadow: 0 8px 18px rgba(21, 86, 163, 0.24);
}

.nd-note-form-page .note-form-summary::-webkit-details-marker {
    display: none;
}

.nd-note-form-page .note-form-summary::before {
    content: "+";
    display: inline-block;
    width: 18px;
    color: #ffffff;
    font-weight: 700;
}

.nd-note-form-page .note-form-disclosure[open] .note-form-summary::before {
    content: "-";
}

.nd-note-form-page .note-form-disclosure[open] .note-form-summary {
    border-bottom: 1px solid #d5e5f6;
}

.nd-note-form-page .note-form-summary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.nd-note-form-page .note-form-disclosure[open] .note-form-summary {
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.nd-note-form-page .note-form-disclosure .form-grid {
    padding: 14px;
}

/* ===== HEALTH CHECK ===== */
.health-grid .nd-small-box {
    min-height: 122px;
}

.health-grid .nd-box-icon {
    min-width: 48px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.stacked-cell {
    display: grid;
    gap: 4px;
}

.stacked-cell strong {
    color: #184a7d;
    font-weight: 600;
}

.nd-note-form-page input:focus,
.nd-note-form-page select:focus,
.nd-note-form-page textarea:focus {
    outline: 2px solid #cde3fb;
    border-color: #7fb0e4;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .participant-row {
        grid-template-columns: 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .shell {
        flex-direction: column;
    }

    .sidebar {
        width: auto;
        min-height: auto;
        position: static;
    }
}

.register-page .content .container-fluid {
    max-width: 1680px;
    margin: 0 auto;
}

.register-page .card {
    border: 1px solid rgba(255, 198, 72, 0.45);
    box-shadow: 0 16px 30px rgba(158, 106, 0, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.register-page .card-header {
    background: rgba(255, 249, 230, 0.85);
}
