/* Calm indigo, warm white and clear visual hierarchy. Presentation only. */
:root {
    --ink: #293449;
    --muted: #59677d;
    --green: #4b5fab;
    --green-dark: #34467f;
    --canvas: #f5f6fa;
    --line: #e0e5ee;
    --bs-primary: #4b5fab;
    --bs-primary-rgb: 75, 95, 171;
    --bs-body-color: #293449;
    --bs-body-font-size: 1rem;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    background: var(--canvas);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
    color: #293449;
    line-height: 1.3;
}
h1 {
    font-size: clamp(27px, 2.2vw, 34px);
    letter-spacing: -0.8px;
    font-weight: 750;
}
h2 {
    font-size: 21px;
    font-weight: 700;
}
h3 {
    font-size: 18px;
}
small,
.small {
    font-size: 14px;
    line-height: 1.6;
}
.text-muted {
    color: var(--muted) !important;
}
a {
    text-underline-offset: 4px;
}
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #a67a35;
    outline-offset: 3px;
}

/* Persistent navigation, with a clear selected destination. */
.sidebar {
    inset: 0 auto 0 0;
    width: 256px;
    padding: 30px 16px 20px;
    border: 0;
    border-right: 1px solid #e1e6ef;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #34415a;
}
.brand {
    gap: 12px;
    padding-inline: 10px;
    color: #293955;
    font-size: 24px;
    letter-spacing: -0.7px;
}
.brand:hover {
    color: #34467f;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: #4b5fab;
    color: #fff;
    box-shadow: 0 5px 12px #4b5fab17;
}
.brand-sub {
    font-size: 10px;
    color: #65718b;
    letter-spacing: 3px;
    margin-top: 4px;
}
.nav-caption {
    margin: 35px 14px 13px;
    font-size: 10px;
    letter-spacing: 1.7px;
    color: #738098;
    font-weight: 650;
}
.sidebar > nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 3px 2px;
    scrollbar-width: thin;
    scrollbar-color: #c5cee0 transparent;
}
.side-link {
    min-height: 49px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #57657b;
    font-size: 15px;
    font-weight: 550;
    padding: 12px 13px;
    margin-bottom: 5px;
    gap: 12px;
}
.side-link .ui-icon {
    width: 21px;
    height: 21px;
    color: #78859d;
}
.side-link:hover {
    color: #445894;
    background: #f6f7fc;
}
.side-link.selected {
    color: #3e5194;
    background: #edf0fa;
    border-color: #e3e8f7;
    box-shadow: inset 3px 0 #687abc;
    font-weight: 700;
}
.side-link.selected .ui-icon {
    color: #5066ac;
}
.sidebar-bottom {
    margin-top: 12px;
    padding-top: 12px;
    flex-shrink: 0;
}
.sidebar-note {
    background: #f7f8fc;
    border: 1px solid #e5e9f2;
    padding: 17px;
    border-radius: 14px;
}
.sidebar-note > svg {
    color: #7b8abb;
}
.sidebar-note strong {
    color: #4a5876;
    font-size: 13px;
}
.sidebar-note p {
    color: #66748a;
    font-size: 12px;
    margin-bottom: 0;
}
.app-shell {
    margin-left: 256px;
}
.topbar {
    background: #fdfefe;
    border-bottom: 1px solid #e5e9f1;
    min-height: 84px;
    height: auto;
    padding: 17px 36px;
    gap: 18px;
}
.breadcrumb-label {
    font-size: 12px;
    color: #6b7a90;
}
.breadcrumb-label span {
    color: #9ba8b9;
}
.topbar strong {
    font-size: 16px;
    color: #2d405e;
}
.admin-account {
    gap: 10px;
}
.avatar,
.mini-avatar {
    background: #edf0fa;
    color: #4b5fab;
    font-weight: 700;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}
.admin-account strong {
    font-size: 14px;
}
.admin-account small {
    color: #66768c;
    font-size: 12px;
}
.profile-menu > summary {
    min-height: 48px;
    border-radius: 13px;
    padding: 5px 9px;
}
.profile-menu > summary:hover,
.profile-menu[open] > summary {
    background: #f0f3fa;
}
.profile-dropdown {
    border-color: #d8e1ee;
    min-width: 195px;
    padding: 8px;
    box-shadow: 0 12px 35px #2439591a;
}
.profile-logout {
    min-height: 48px;
    font-size: 15px;
}
.main-content {
    max-width: 1640px;
    padding: 30px 36px 44px;
    margin-inline: auto;
}
.page-heading {
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
}
.page-heading p {
    font-size: 15px;
    line-height: 1.7;
    color: #59677d;
    margin-bottom: 0;
}
.eyebrow {
    color: #536ba0;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.app-footer {
    color: #687991;
    font-size: 12px;
    padding: 18px 34px 26px;
}

/* Dashboard: welcome banner, compact summary, calendar and agenda. */
.dashboard-hero {
    border-radius: 21px;
    background: linear-gradient(105deg, #eaf0f7, #f1f4fb 70%, #f6f0e6);
    border: 1px solid #e1e7f0;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}
.dashboard-hero h1 {
    color: #2d3b57;
    font-size: clamp(27px, 2.4vw, 35px);
    margin-bottom: 10px;
}
.dashboard-hero p {
    color: #596d85;
    max-width: 620px;
}
.dashboard-hero .eyebrow {
    color: #6277a7;
}
.dashboard-hero > .btn-primary {
    background: #4b5fab;
    border-color: #4b5fab;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 5px 12px #4b5fab14;
}
.dashboard-hero > .btn-primary:hover {
    background: #3d4f92;
    border-color: #3d4f92;
    color: #fff;
}
.stat-grid {
    gap: 14px;
    margin-bottom: 26px;
}
.stat-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 13px;
    row-gap: 16px;
    align-items: center;
    min-height: 144px;
    padding: 20px;
    border: 1px solid #e1e6f0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 4px 12px #27375b03;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e3f1e9;
    color: #2f7559;
}
.stat-icon.blue {
    background: #e8effd;
    color: #4065bd;
}
.stat-icon.amber {
    background: #fff2d9;
    color: #9d6e22;
}
.stat-icon.purple {
    background: #efe9fa;
    color: #7957a7;
}
.stat-label {
    margin: 0;
    font-size: 13px;
    color: #5c6a82;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0;
}
.stat-card > strong {
    position: static;
    grid-column: 1 / -1;
    font-size: 34px;
    line-height: 1;
    color: #344364;
    letter-spacing: -0.8px;
}
.dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
}
.panel,
.card {
    border: 1px solid #e0e6ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px #293c6304;
}
.panel-heading {
    padding: 22px 24px;
    border-color: #e7ecf3;
    gap: 14px;
}
.panel-heading h2 {
    font-size: 20px;
}
.panel-heading p {
    color: #65768b;
    font-size: 14px;
}
.legend {
    font-size: 12px;
    gap: 14px;
    color: #586c86;
}
.dot {
    background: #42866b;
}
.dot.sermon {
    background: #9673c2;
}
.calendar-toolbar {
    padding: 18px 24px;
    gap: 14px;
}
.calendar-toolbar h3 {
    font-size: 20px;
    color: #293e60;
}
.calendar-weekdays,
.calendar-grid {
    margin-inline: 18px;
}
.calendar-weekdays {
    background: #eef2f9;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
    color: #546988;
    padding-block: 12px;
}
.calendar-day {
    min-height: 108px;
    padding: 8px;
    border-color: #e3e9f2;
    background: #fff;
}
.calendar-day:hover {
    background: #f7f8fc;
}
.calendar-day.outside {
    background: #f7f9fc;
    color: #64738b;
}
.calendar-day.chosen {
    background: #edf2ff;
    outline-color: #5673c6;
}
.day-number {
    width: 29px;
    height: 29px;
    font-size: 14px;
    color: #405471;
}
.today .day-number {
    background: #4b5fab;
    color: #fff;
    border-radius: 9px;
}
.calendar-event {
    border-radius: 6px;
    padding: 5px;
}
.sabbath.calendar-event,
.sabbath.service-badge {
    background: #e4f2e9;
    color: #27654b;
}
.sermon.calendar-event,
.sermon.service-badge {
    background: #f0e9f8;
    color: #705094;
}
.event-name,
.event-count {
    font-size: 11px;
    line-height: 1.4;
}
.calendar-footnote {
    padding: 15px 22px 20px;
    font-size: 13px;
    color: #66788e;
}
.selected-panel .panel-heading {
    background: #f5f7fc;
    border-radius: 18px 18px 0 0;
    border-top: 3px solid #8d9bc8;
}
.selected-panel .eyebrow {
    color: #6378a1;
}
.small-icon {
    color: #5b73a4;
    background: #e8eef9;
    border-radius: 12px;
}
.service-badge {
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 10px;
}
.status-text {
    font-size: 12px;
}
.agenda-item {
    padding-block: 20px;
    border-bottom-color: #e8edf5;
}
.agenda-person strong {
    font-size: 15px;
}
.agenda-person small {
    color: #62748d;
    font-size: 13px;
}
.mini-avatar {
    border-radius: 10px;
}
.text-link {
    font-size: 14px;
    font-weight: 650;
    color: #345da9;
}
.reminder-card {
    border: 1px solid #eadfc9;
    border-radius: 17px;
    background: #fcf8f0;
    color: #75613c;
}
.reminder-card .stat-icon {
    background: #fae8c1;
    color: #97702d;
}
.reminder-card h3 {
    color: #76582d;
    font-size: 17px;
}
.reminder-card p,
.reminder-card a {
    color: #82643b;
    font-size: 14px;
}
.upcoming-grid {
    gap: 16px;
    padding: 22px;
}
.upcoming-card {
    padding: 20px;
    border: 1px solid #dee6f1;
    border-radius: 15px;
    background: #fafbfe;
    gap: 15px;
}
.upcoming-card:hover {
    border-color: #a7b8dd;
    background: #f5f8fd;
    box-shadow: 0 5px 16px #2c47780a;
}
.date-tile {
    background: #e8eefb;
    color: #3a5aaa;
    border-radius: 13px;
    width: 58px;
    min-width: 58px;
    min-height: 66px;
    font-size: 24px;
}
.date-tile small {
    font-size: 12px;
}
.upcoming-card p {
    font-size: 15px;
    color: #344b6b;
}
.upcoming-card small {
    font-size: 13px;
    color: #62748c;
}

/* Shared forms, lists and actions. */
.btn {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    border-radius: 11px;
    box-shadow: none;
}
.btn-sm {
    min-height: 42px;
    padding: 8px 13px;
    font-size: 14px;
    border-radius: 9px;
}
.btn-primary {
    background: #4b5fab;
    border-color: #4b5fab;
    color: #fff;
    --bs-btn-bg: #4b5fab;
    --bs-btn-border-color: #4b5fab;
    --bs-btn-active-bg: #3d4f92;
    --bs-btn-active-border-color: #3d4f92;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #3d4f92;
    border-color: #3d4f92;
    color: #fff;
    box-shadow: 0 4px 12px #4b5fab1a;
}
.btn-primary:disabled {
    background: #61779e;
    border-color: #61779e;
    color: #fff;
    opacity: 1;
}
.btn-light {
    color: #465b7a;
    background: #f0f3f9;
    border: 1px solid #d8e1ee;
}
.btn-light:hover {
    background: #e6edf8;
    border-color: #bdcce3;
    color: #304c79;
}
.btn-outline-primary {
    color: #4b5fab;
    border-color: #b6c7e8;
    background: #fff;
}
.btn-outline-primary:hover {
    color: #fff;
    background: #4b5fab;
    border-color: #4b5fab;
}
.btn-outline-danger {
    color: #a13e4a;
    border-color: #e1bfc6;
    background: #fff;
}
.btn-outline-danger:hover {
    background: #a13e4a;
    border-color: #a13e4a;
    color: #fff;
}
.icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid #d6dfed;
    border-radius: 10px;
    background: #fff;
    color: #48658f;
}
.icon-button:hover {
    background: #eaf0fb;
    color: #4b5fab;
}
.form-label {
    font-size: 15px;
    font-weight: 650;
    color: #344b6a;
    margin-bottom: 9px;
}
.form-control,
.form-select {
    min-height: 52px;
    padding: 12px 15px;
    font-size: 16px;
    color: #354661;
    background-color: #fafbfe;
    border: 1px solid #cbd3e1;
    border-radius: 11px;
}
.form-control::placeholder {
    color: #67758c;
    opacity: 1;
}
.form-control:focus,
.form-select:focus {
    color: #243c62;
    border-color: #6684cd;
    box-shadow: 0 0 0 3px #4b5fab14;
    background-color: #fff;
}
textarea.form-control {
    min-height: 120px;
    line-height: 1.7;
}
.form-control:disabled,
.form-select:disabled {
    color: #63758e;
    background: #edf1f7;
    opacity: 1;
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: #4b5fab;
}
.form-check-input {
    width: 20px;
    height: 20px;
    border-color: #8c9fbc;
}
.form-check-input:checked {
    background-color: #4b5fab;
    border-color: #4b5fab;
}
.form-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
    max-width: none;
}
.form-panel {
    padding: 28px;
}
.step-heading {
    gap: 15px;
    margin-bottom: 24px;
}
.step-heading > span {
    width: 38px;
    height: 38px;
    background: #e8eefc;
    color: #4b5fab;
    font-size: 16px;
    border-radius: 12px;
}
.step-heading h2 {
    font-size: 20px;
}
.step-heading p {
    font-size: 14px;
    color: #60748f;
}
.service-choice {
    min-height: 74px;
    border: 1px solid #cdd9eb;
    border-radius: 13px;
    font-size: 16px;
    color: #4c6284;
    background: #fafcff;
    padding: 19px;
}
.service-option input:checked + .service-choice {
    color: #264a9b;
    border-color: #6d7fbd;
    background: #eef1fb;
    box-shadow: inset 0 0 0 1px #6d7fbd;
}
.service-option input:focus-visible + .service-choice {
    outline: 3px solid #a67a35;
    outline-offset: 3px;
}
.assignment {
    background: #f8f9fc;
    border: 1px solid #e0e6f0;
    padding: 22px;
    border-radius: 15px;
    border-left: 3px solid #9ba9cd;
}
.assignment .form-label {
    font-size: 14px;
}
.form-guide {
    background: #f8faff;
    border: 1px solid #d8e3f4;
    border-radius: 18px;
    border-top: 4px solid #7691c4;
}
.form-guide p,
.form-guide li,
.guide-line {
    font-size: 14px;
    color: #5c7190;
    line-height: 1.75;
}
.guide-line svg {
    width: 18px;
    height: 18px;
    color: #6481af;
}
.form-actions {
    max-width: none;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #e0e6f0;
    border-radius: 14px;
    margin-top: 22px;
    gap: 12px;
}
.info-cell {
    background: #f3f6fb;
    border: 1px solid #e0e7f2;
    border-radius: 12px;
    padding: 20px;
}
.info-cell dt {
    font-size: 13px;
    color: #637895;
}
.info-cell dd {
    font-size: 16px;
    color: #304a71;
    overflow-wrap: anywhere;
}
.offset-choice span {
    padding: 18px 12px;
    font-size: 14px;
    border-color: #ccd8eb;
    color: #5c7292;
    border-radius: 13px;
}
.offset-choice strong {
    font-size: 24px;
    color: #3b5d9e;
}
.offset-choice input:checked + span {
    background: #eef1fb;
    border-color: #6586cc;
    box-shadow: inset 0 0 0 1px #6586cc;
}
.offset-choice input:focus-visible + span {
    outline: 3px solid #a67a35;
    outline-offset: 3px;
}
.settings-switch p {
    font-size: 14px;
}
.role-row {
    padding-block: 19px;
    border-color: #e2e9f3;
}
.filter-bar {
    background: #fff;
    border-radius: 16px;
    gap: 16px;
    padding: 22px;
    align-items: end;
}
.filter-bar .form-label {
    font-size: 13px;
}
.table {
    color: #3f5474;
    font-size: 15px;
}
.table > :not(caption) > * > * {
    border-color: #e5ebf4;
    padding: 17px 21px;
    vertical-align: middle;
}
.table thead th {
    background: #f5f7fb;
    color: #586a87;
    font-size: 12px;
    letter-spacing: 0.4px;
    font-weight: 700;
    padding-block: 16px;
}
.table td {
    font-size: 15px;
}
.table strong {
    color: #2d4569;
    font-size: 15px;
}
.table tbody tr:hover > td {
    background: #f6f9ff;
}
.table-responsive {
    border-radius: 15px;
}
.table-actions {
    gap: 8px;
}
.cell-sub,
.assignment-summary small {
    color: #637795;
    font-size: 13px;
}
.assignment-summary strong {
    font-size: 14px;
}
.status-badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #edf1f8;
    color: #5a6f91;
}
.status-badge.active,
.status-badge.accepted {
    background: #e6f3eb;
    color: #2d6c4a;
}
.status-badge.cancelled,
.status-badge.failed {
    background: #fbe9ed;
    color: #a13d51;
}
.status-badge.unknown,
.status-badge.retry,
.status-badge.pending {
    background: #fff2da;
    color: #8d642b;
}
.count-badge {
    background: #e9effb;
    color: #4a69a5;
    font-size: 12px;
}
.pagination {
    --bs-pagination-font-size: 15px;
    --bs-pagination-padding-y: 10px;
    --bs-pagination-padding-x: 14px;
    --bs-pagination-active-bg: #4b5fab;
    --bs-pagination-active-border-color: #4b5fab;
}
.pagination-footer nav p {
    font-size: 14px !important;
    color: #657791;
}
.log-details {
    font-size: 13px;
    color: #647993;
}
.empty-state {
    color: #60738e;
    padding: 42px 24px;
}
.empty-state h3 {
    color: #3d587e;
    font-size: 19px;
}
.empty-state p {
    font-size: 15px;
    max-width: 390px;
}
.empty-icon {
    background: #eaf0fb;
    color: #6b84b3;
    width: 60px;
    height: 60px;
    border-radius: 18px;
}
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
}
.alert-success {
    color: #2e6249;
    background: #edf8f0;
    border-color: #c3dfcb;
}
.alert-warning {
    color: #7b5929;
    background: #fff7e8;
    border-color: #e9d7b7;
}
.alert-danger {
    color: #943b4b;
    background: #fff0f1;
    border-color: #e6c4cc;
}
.alert-info {
    color: #3c5d8a;
    background: #eef4ff;
    border-color: #c9d8f0;
}
details > summary {
    min-height: 44px;
    padding-block: 8px;
    cursor: pointer;
}
.password-field > .password-toggle {
    width: 44px;
    height: 44px;
    color: #58719c;
}
.password-field > .form-control {
    padding-right: 56px;
}

/* Sign-in: one composed card, rather than two floating sections. */
.auth-body {
    background: radial-gradient(ellipse at 0 0, #e7ecf7, transparent 60%), #f4f5f9;
}
.auth-header {
    max-width: 1220px;
    margin-inline: auto;
    padding: 27px 32px;
}
.auth-header .brand {
    color: #233c63;
}
.auth-header .brand-mark {
    background: #4b5fab;
    color: #fff;
}
.auth-header .brand-sub {
    color: #6b7b96;
}
.auth-main {
    max-width: 1160px;
    margin: 15px auto 40px;
    padding: 0 30px;
}
.auth-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 27px;
    overflow: hidden;
    box-shadow: 0 22px 65px #3444670c;
}
.auth-story {
    padding: 48px 42px;
    background: linear-gradient(150deg, #edf1f9, #f7f8fc);
    border-right: 1px solid #e5eaf3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 510px;
}
.auth-story .eyebrow {
    color: #6c7fb2;
}
.auth-story h1 {
    color: #303f60;
    font-size: clamp(32px, 3vw, 45px);
    max-width: none;
    line-height: 1.3;
    margin-bottom: 20px;
}
.auth-story > p:last-child {
    color: #61738d;
    font-size: 16px;
    line-height: 1.9;
    max-width: 400px;
}
.auth-illustration {
    width: 76px;
    height: 76px;
    border-radius: 23px;
    background: #e0e6f6;
    color: #687bb4;
    border: 1px solid #d6def2;
    margin-bottom: 34px;
    box-shadow: 0 7px 16px #4b5fab08;
}
.auth-illustration svg {
    width: 35px;
    height: 35px;
}
.login-card {
    border: 0;
    border-radius: 0;
    padding: 48px 40px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-card h2 {
    color: #253e63;
    font-size: 28px;
    letter-spacing: -0.7px;
}
.login-card > p {
    color: #61748d;
    font-size: 15px;
}
.login-card .eyebrow {
    color: #667ead;
}
.login-card .btn-primary {
    min-height: 54px;
    font-size: 16px;
}

/* Search overlays and editor controls; the bulletin print canvas is unchanged. */
.search-select > .search-select-trigger {
    min-height: 52px;
    font-size: 16px;
}
.search-select-popup {
    padding: 12px;
    border-color: #c1cfe5;
    border-radius: 13px;
    box-shadow: 0 16px 38px #253d6324;
}
.search-select-popup .search-select-query {
    min-height: 48px;
    height: 48px;
    font-size: 16px;
}
.search-select-option {
    min-height: 44px;
    font-size: 16px;
    line-height: 1.5;
    color: #3a5276;
    padding: 11px 12px;
    border-radius: 7px;
}
.search-select-option:hover,
.search-select-option.active {
    background: #f0f4fc;
}
.search-select-option[aria-selected="true"] {
    background: #ebeffa;
    color: #465a9b;
}
.search-select-status {
    font-size: 13px;
    color: #647997;
}
.bt-toolbar {
    gap: 12px;
    border-color: #cfdcee;
}
.bt-toolbar label {
    font-size: 14px;
    color: #4b6389;
}
.bt-page-button[aria-pressed="true"],
#bt-format button[aria-pressed="true"] {
    color: #465a9b;
    background: #e9eefb;
    border-color: #a5bae6;
}
#bt-status {
    font-size: 14px;
    color: #5d7494;
}
#bt-viewport {
    border: 1px solid #d3ddec;
    border-radius: 15px;
    background: #e3eaf4;
}
#bt-format {
    border-left: 4px solid #6888c2;
}
#bt-format legend {
    font-size: 16px;
}
#bt-size,
#bt-color {
    min-height: 44px;
    border: 1px solid #bccbe2;
    border-radius: 8px;
    padding: 7px;
}

@media (max-width: 1280px) and (min-width: 992px) {
    .sidebar {
        width: 232px;
        padding-inline: 10px;
    }
    .app-shell {
        margin-left: 232px;
    }
    .side-link {
        font-size: 13px;
        padding-inline: 10px;
        gap: 10px;
    }
    .main-content {
        padding: 26px 24px;
    }
    .topbar {
        padding-inline: 24px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 18px;
    }
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .stat-card {
        min-height: 115px;
    }
    .stat-card > strong {
        grid-column: 2;
        grid-row: 2;
        font-size: 29px;
    }
    .stat-icon {
        grid-row: 1 / 3;
    }
    .form-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991px) {
    .sidebar {
        inset: 0 auto 0 0;
        border-radius: 0 18px 18px 0;
        width: 264px;
        transform: translateX(-110%);
    }
    .sidebar-open .sidebar {
        transform: translateX(0);
    }
    .app-shell {
        margin-left: 0;
    }
    .topbar {
        padding: 16px 22px;
        min-height: 80px;
    }
    .main-content {
        padding: 26px 22px 34px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-aside {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 20px;
    }
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .form-layout {
        grid-template-columns: 1fr;
    }
    .auth-story {
        padding: 36px 30px;
    }
    .login-card {
        padding: 36px 30px;
    }
}
@media (max-width: 767px) {
    .main-content {
        padding: 22px 16px 30px;
    }
    .page-heading {
        align-items: start;
        flex-wrap: wrap;
        gap: 16px;
    }
    .page-heading > .btn {
        font-size: 14px;
        padding: 11px 15px;
    }
    .page-heading p {
        font-size: 14px;
    }
    .dashboard-hero {
        padding: 26px 24px;
        border-radius: 19px;
    }
    .dashboard-hero > .btn {
        width: 100%;
        justify-content: center;
    }
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }
    .stat-card {
        padding: 16px;
        min-height: 132px;
        gap: 10px;
    }
    .stat-label {
        font-size: 12px;
    }
    .stat-card > strong {
        font-size: 29px;
    }
    .dashboard-aside {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .dashboard-aside > * {
        width: 100%;
    }
    .panel-heading {
        padding: 20px;
    }
    .calendar-toolbar {
        padding: 18px;
        flex-wrap: wrap;
    }
    .calendar-weekdays,
    .calendar-grid {
        margin-inline: 10px;
    }
    .calendar-day {
        min-height: 100px;
        padding: 5px;
    }
    .calendar-event {
        padding: 4px;
    }
    .event-name,
    .event-count {
        font-size: 10px;
    }
    .form-panel {
        padding: 22px;
    }
    .assignment {
        padding: 18px;
    }
    .service-choice {
        font-size: 15px;
        padding: 16px 12px;
    }
    .step-heading h2 {
        font-size: 19px;
    }
    .step-heading p {
        font-size: 14px;
    }
    .filter-bar {
        padding: 18px;
        gap: 14px;
    }
    .filter-bar > div {
        min-width: 145px;
    }
    .filter-bar > .btn {
        flex: 1;
    }
    .table > :not(caption) > * > * {
        padding: 16px;
    }
    .upcoming-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .auth-header {
        padding: 22px;
    }
    .auth-main {
        padding: 0 16px;
        max-width: 540px;
        margin-top: 0;
    }
    .auth-layout {
        grid-template-columns: 1fr;
        border-radius: 23px;
    }
    .auth-story {
        border-right: 0;
        border-bottom: 1px solid #e5e9f3;
        display: block;
        min-height: 0;
        padding: 26px;
    }
    .auth-story h1 {
        font-size: 27px;
        margin-bottom: 13px;
    }
    .auth-story > p:last-child {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 0;
    }
    .auth-illustration {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 18px;
    }
    .auth-illustration svg {
        width: 26px;
        height: 26px;
    }
    .login-card {
        padding: 28px 26px;
    }
    .login-card h2 {
        font-size: 25px;
    }
    .app-footer {
        padding: 18px 16px;
        font-size: 12px;
    }
}
@media (max-width: 430px) {
    .topbar {
        padding: 14px 16px;
    }
    .topbar strong {
        font-size: 14px;
    }
    .breadcrumb-label {
        font-size: 11px;
    }
    .stat-card {
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 16px;
        min-height: 155px;
    }
    .stat-icon {
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }
    .stat-label {
        max-width: none;
        font-size: 12px;
    }
    .stat-card > strong {
        margin-top: auto;
        font-size: 29px;
    }
    .service-options {
        flex-wrap: wrap;
        gap: 10px;
    }
    .service-option {
        min-width: 160px;
    }
    .offset-options {
        grid-template-columns: 1fr;
    }
    .calendar-day {
        min-height: 110px;
        padding-inline: 3px;
    }
    .calendar-event .event-name {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 10px;
    }
    .calendar-toolbar h3 {
        font-size: 18px;
    }
    .table-actions {
        flex-wrap: wrap;
    }
    .form-actions {
        padding: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
