.modal-body .fv-row {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}
.alham .stepper-item {
    margin-bottom: 30px;
}

[data-rich-text] .ql-editor {
    min-height: 220px;
    max-height: 500px;
    overflow-y: auto;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-font-sans-serif: 'Nunito', Tahoma, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --app-input-bg: #f1f4f8;
    --app-input-border: #bcc7d5;
    --app-input-hover: #8c9db2;
    --app-input-focus-bg: #ffffff;
}

/* Use the system typeface consistently across application pages. */
html,
body,
button,
input,
select,
textarea {
    font-family: 'Nunito', Tahoma, Arial, sans-serif;
}

.system-main-logo {
    display: block;
    margin-right: auto;
    margin-left: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

[data-bs-theme="dark"] {
    --app-input-bg: #252b38;
    --app-input-border: #526078;
    --app-input-hover: #7b8da8;
    --app-input-focus-bg: #1e2430;
}

.form-control.form-control-solid,
.form-select.form-select-solid {
    background-color: var(--app-input-bg);
    border: 1px solid var(--app-input-border);
}

.form-control.form-control-solid:hover:not(:disabled),
.form-select.form-select-solid:hover:not(:disabled) {
    border-color: var(--app-input-hover);
}

.form-control.form-control-solid:focus,
.form-select.form-select-solid:focus {
    background-color: var(--app-input-focus-bg);
    border-color: #009ef7;
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.15);
}

.form-control.form-control-solid:disabled,
.form-select.form-select-solid:disabled {
    opacity: 0.65;
}

[data-rich-text] .ql-toolbar.ql-snow,
[data-rich-text] .ql-container.ql-snow {
    border-color: var(--app-input-border);
}

[data-rich-text] .ql-toolbar.ql-snow {
    background-color: var(--app-input-bg);
}

[data-rich-text]:focus-within .ql-container.ql-snow {
    border-color: #009ef7;
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.15);
}

@media (min-width: 992px) {
    .representative-biography-column,
    .representative-biography-column > .mb-6,
    .representative-biography-column > .mb-6 > div:first-of-type,
    .representative-biography-column [data-rich-text] {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .representative-biography-column > .mb-6,
    .representative-biography-column > .mb-6 > div:first-of-type,
    .representative-biography-column [data-rich-text] {
        flex: 1;
    }

    .representative-biography-column .ql-container {
        flex: 1;
        min-height: 220px;
        height: auto;
    }

    .representative-biography-column .ql-editor {
        position: absolute;
        inset: 0;
        max-height: none;
    }
}

/* Shared styling for text links, including linked registry names. */
a[href]:not(.btn):not(.menu-link):not(.nav-link):not(.page-link) {
    color: #006dcc !important;
    text-underline-offset: 3px;
}

a[href]:not(.btn):not(.menu-link):not(.nav-link):not(.page-link):hover,
a[href]:not(.btn):not(.menu-link):not(.nav-link):not(.page-link):focus-visible {
    color: #004f99 !important;
    text-decoration: underline;
}

[data-bs-theme="dark"] a[href]:not(.btn):not(.menu-link):not(.nav-link):not(.page-link) {
    color: #6bb6ff !important;
}

[data-bs-theme="dark"] a[href]:not(.btn):not(.menu-link):not(.nav-link):not(.page-link):hover,
[data-bs-theme="dark"] a[href]:not(.btn):not(.menu-link):not(.nav-link):not(.page-link):focus-visible {
    color: #a3d2ff !important;
}

.meeting-detail .meeting-overview {
    border-top: 3px solid var(--bs-primary);
}
.required-attendance-page {
    background: var(--bs-gray-100);
}
.required-attendance-page .modal-dialog {
    max-width: 560px;
}
.required-attendance-page .modal-content {
    border: 0;
    border-top: 4px solid var(--bs-primary);
    border-radius: 16px;
}
.required-attendance-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.required-attendance-option {
    position: relative;
    padding: 20px;
    border: 1px dashed var(--bs-gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.required-attendance-option input[type="radio"] {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
}
.required-attendance-option:hover,
.required-attendance-option:has(input:checked) {
    background: var(--bs-primary-light);
    border-color: var(--bs-primary);
    border-style: solid;
}
.required-attendance-option:has(input:checked) {
    color: var(--bs-primary);
}
.required-attendance-option:has(input:focus-visible) {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}
@media (max-width: 359.98px) {
    .required-attendance-options { grid-template-columns: minmax(0, 1fr); }
}
.attendance-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed var(--bs-gray-300);
    background: var(--bs-gray-100);
}
.attendance-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#50cd89 0 var(--attendance-percent), #f1416c var(--attendance-percent) 100%);
}
.attendance-chart-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bs-body-bg);
}
.meeting-detail .active-agenda-card {
    border-top: 3px solid #198754;
    border-bottom: 3px solid #198754;
}
.active-agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: center;
    gap: 32px;
}
.active-agenda-info {
    min-width: 0;
    overflow-wrap: anywhere;
}
.active-agenda-controls {
    border-left: 1px solid rgba(25, 135, 84, 0.25);
    padding-left: 24px;
}
.active-agenda-clock {
    background: rgba(255, 255, 255, 0.55);
}
.active-agenda-time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}
.active-agenda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.active-agenda-actions .btn-group {
    flex: 1 0 170px;
}
.active-agenda-actions .btn {
    white-space: nowrap;
}
.active-agenda-actions .btn-icon {
    flex: 0 0 36px;
}
[data-bs-theme="dark"] .active-agenda-clock {
    background: rgba(0, 0, 0, 0.15);
}
@media (max-width: 991.98px) {
    .active-agenda-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .active-agenda-controls {
        border-left: 0;
        border-top: 1px solid rgba(25, 135, 84, 0.25);
        padding-left: 0;
        padding-top: 20px;
    }
}
.meeting-detail .meeting-heading {
    flex: 1 1 520px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.meeting-detail .meeting-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}
.meeting-detail .meeting-facts > div {
    background: var(--bs-gray-100);
    overflow-wrap: anywhere;
}
.meeting-detail .meeting-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
}
.meeting-detail .meeting-navigation .nav-link {
    white-space: nowrap;
    padding: 16px 12px;
    color: var(--bs-gray-600);
}
.meeting-detail .meeting-navigation .nav-link.active,
.meeting-detail .meeting-navigation .nav-link:hover {
    color: var(--bs-primary);
}

.poll-results-chart {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.poll-results-key {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.meeting-overview-actions { width: 300px; max-width: 100%; flex-shrink: 0; }
.meeting-zoom-card { padding: 16px; border: 1px solid var(--bs-primary); border-radius: 10px; background: var(--bs-body-bg, #fff); }
@media (max-width: 575px) { .meeting-overview-actions { width: 100%; } }
