:root {
    --shell-bg: #eef3f7;
    --panel-bg: #ffffff;
    --sidebar-start: #0d2c4a;
    --sidebar-end: #071b2d;
    --sidebar-line: rgba(255, 255, 255, 0.08);
    --sidebar-text: rgba(255, 255, 255, 0.88);
    --sidebar-text-muted: rgba(255, 255, 255, 0.62);
    --accent: #f28b30;
    --accent-strong: #173f66;
    --sidebar-width: clamp(248px, 18vw, 286px);
    --sidebar-collapsed-width: 86px;
    --shadow-soft: 0 10px 30px rgba(17, 33, 61, 0.08);
    --shadow-card: 0 4px 18px rgba(17, 33, 61, 0.08);
}

.sale-create-form {
    --sale-blue: #2563eb;
    --sale-blue-dark: #174ebd;
    --sale-ink: #152747;
    --sale-muted: #667795;
    --sale-line: #dbe4f1;
    display: grid;
    gap: 18px;
}

.sale-create-form > .col-12 {
    width: auto;
    padding: 0;
}

.sale-card,
.sale-closing-card {
    border: 1px solid #edf1f7 !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 58, 102, 0.07) !important;
}

.sale-card > .card-body,
.sale-closing-card > .card-body {
    padding: 24px !important;
}

.sale-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff !important;
    background: var(--sale-blue) !important;
    font-size: 1rem !important;
    font-weight: 700;
}

.sale-card h2 {
    color: var(--sale-ink);
    font-size: 1.15rem;
    font-weight: 750;
}

.sale-card .d-flex.align-items-start p,
.sale-card #aviso_cliente_produtos {
    color: var(--sale-muted) !important;
}

.sale-client-card .form-label,
.sale-products-card .form-label {
    color: var(--sale-ink);
    font-size: 0.88rem;
    font-weight: 650;
}

.sale-create-form .form-control,
.sale-create-form .form-select {
    min-height: 48px;
    border-color: var(--sale-line);
    border-radius: 10px;
    color: var(--sale-ink);
    box-shadow: none;
}

.sale-create-form .form-control:focus,
.sale-create-form .form-select:focus {
    border-color: #8fb4f4;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.sale-product-entry {
    position: relative;
    border: 1px solid #dce6f7 !important;
    border-radius: 12px !important;
    background: #f5f8fe !important;
}

.sale-product-entry .card-body {
    padding: 16px !important;
}

.sale-product-grid > div {
    min-width: 0;
}

.sale-product-search-field {
    position: relative;
}

.sale-product-search-field::before {
    content: "\F52A";
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 39px;
    color: #627a9d;
    font-family: "bootstrap-icons";
    font-size: 1.05rem;
    pointer-events: none;
}

.sale-product-grid label[for="item_unitario"],
.sale-product-grid label[for="item_preco"] {
    font-size: 0;
}

.sale-product-grid label[for="item_unitario"]::after,
.sale-product-grid label[for="item_preco"]::after {
    content: "Preço";
    font-size: 0.88rem;
}

.sale-product-search-field #item_produto_busca {
    padding-left: 42px;
}

.sale-product-help {
    display: block;
    margin-top: 7px;
    color: #7185a5;
    font-size: 0.74rem;
    line-height: 1.35;
}

.sale-product-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    right: 12px;
    left: 12px;
    overflow: hidden;
    border: 1px solid var(--sale-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(31, 58, 102, 0.14);
}

.sale-product-suggestions .list-group-item {
    padding: 11px 13px;
    border-color: #edf1f7;
}

.sale-add-product-button,
.sale-close-button {
    color: #fff;
    background: linear-gradient(135deg, var(--sale-blue), var(--sale-blue-dark));
    border: 0;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.sale-add-product-button {
    min-height: 48px;
}

.sale-add-product-button:hover,
.sale-close-button:hover {
    color: #fff;
    background: #174ebd;
}

.sale-items-table-wrap {
    overflow: hidden;
    border: 1px solid #e3eaf4;
    border-radius: 12px;
}

.sale-items-table {
    min-width: 760px;
}

.sale-items-table thead th {
    padding: 13px 16px;
    color: var(--sale-ink);
    background: #fbfcfe;
    border-bottom: 1px solid #e3eaf4;
    font-size: 0.78rem;
    font-weight: 750;
}

.sale-items-table tbody td,
.sale-items-table tfoot th {
    padding: 13px 16px;
    border-color: #e3eaf4;
}

.sale-items-table tfoot th {
    color: var(--sale-ink);
    background: #fff;
}

.sale-items-table tfoot th#total_itens_venda {
    color: var(--sale-blue);
    font-size: 1rem;
}

.sale-product-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.sale-product-thumb {
    display: grid;
    place-items: center;
    flex: 0 0 82px;
    width: 82px;
    height: 46px;
    overflow: hidden;
    border-radius: 7px;
    background: #eef2f7;
}

.sale-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-product-placeholder {
    color: #8294ae;
    font-size: 1.4rem;
}

.sale-product-row-name {
    color: var(--sale-ink);
    font-weight: 650;
}

.sale-closing-card > .card-body > .d-flex {
    min-height: 70px;
}

.sale-closing-card > .card-body > .d-flex::before {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin-right: 6px;
    border: 1px solid #d9e5ff;
    border-radius: 14px;
    color: var(--sale-blue);
    background: #f1f5ff;
    content: "\F4CA";
    font-family: "bootstrap-icons";
    font-size: 1.55rem;
}

.sale-closing-eyebrow {
    margin-bottom: 4px;
    color: #7487a5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sale-closing-card h2 {
    margin-bottom: 3px;
    color: var(--sale-ink);
    font-size: 1.1rem;
}

.sale-closing-card p {
    margin: 0;
    color: var(--sale-muted);
    font-size: 0.86rem;
}

.sale-close-button {
    min-height: 52px;
    padding: 0 25px;
    border-radius: 10px;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .sale-card > .card-body,
    .sale-closing-card > .card-body {
        padding: 18px !important;
    }

    .sale-product-grid > .col-md-5,
    .sale-product-grid > .col-md-2,
    .sale-product-grid > .col-md-1 {
        width: 100%;
    }

    .sale-closing-card > .card-body > .d-flex {
        align-items: flex-start !important;
    }

    .sale-create-form .sale-close-button {
        width: 100%;
    }

    .sale-closing-card > .card-body > .d-flex::before {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, var(--shell-bg) 100%);
    color: #1e293b;
    overflow: hidden;
}

.app-shell {
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-start), var(--sidebar-end));
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.sidebar-overlay {
    display: none;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--sidebar-line);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    position: relative;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.brand-icon::before,
.brand-icon::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 28px;
    height: 24px;
    border: 5px solid var(--accent);
    border-radius: 999px;
}

.brand-icon::before {
    left: 0;
}

.brand-icon::after {
    right: 0;
}

.brand-mark {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.brand-text span {
    color: var(--accent);
}

.brand-subtext {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.sidebar-collapse {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.sidebar-nav {
    padding: 18px 14px 18px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 10px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.42);
}

.nav-group-label {
    margin: 14px 10px 8px;
    color: var(--sidebar-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 4px 0;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav .nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: inherit;
}

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

.sidebar-nav .nav-link.active {
    box-shadow: inset 4px 0 0 var(--accent);
}

.nav-submenu {
    margin: 4px 0;
}

.nav-submenu-links {
    display: grid;
    gap: 4px;
    margin: 4px 0 6px 34px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-sublink {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-sublink:hover,
.nav-sublink.active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 20px;
    border-top: 1px solid var(--sidebar-line);
    flex-shrink: 0;
}

.user-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
}

.user-role {
    font-size: 12px;
    color: var(--sidebar-text-muted);
}

.app-main {
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    padding: clamp(18px, 2vw, 28px);
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    width: min(100%, 1680px);
    margin-inline: auto;
}

.page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #10213a;
}

.page-subtitle {
    margin-top: 6px;
    font-size: 16px;
    color: #677489;
}

.btn-logout {
    background: #fff;
    border-color: #d5dce6;
    color: #1f2b3a;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.btn-logout:hover {
    background: #f8fafc;
    color: #10213a;
}

.btn-install-app {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.btn-install-app-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(14, 171, 74, 0.26);
}

.install-app-modal {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(16, 33, 58, 0.18);
}

.install-app-modal .modal-header,
.install-app-modal .modal-body {
    padding-left: 24px;
    padding-right: 24px;
}

.install-app-eyebrow {
    color: #f26f21;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.install-app-list {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.install-app-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #334155;
    line-height: 1.55;
}

.install-app-list i {
    color: #f26f21;
    font-size: 1.1rem;
    margin-top: 2px;
}

.app-content {
    min-height: calc(100vh - 120px);
    width: min(100%, 1680px);
    margin-inline: auto;
}

.sidebar-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(16, 33, 58, 0.12);
    border-radius: 12px;
    background: #fff;
    color: #173f66;
    box-shadow: 0 6px 16px rgba(17, 33, 61, 0.08);
    flex: 0 0 auto;
}

.sidebar-mobile-toggle i {
    font-size: 1.35rem;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-group-label,
body.sidebar-collapsed .sidebar-nav .nav-link span,
body.sidebar-collapsed .user-meta,
body.sidebar-collapsed .brand-subtext,
body.sidebar-collapsed .nav-submenu-links {
    display: none;
}

body.sidebar-collapsed .sidebar-top,
body.sidebar-collapsed .sidebar-bottom {
    justify-content: center;
}

body.sidebar-collapsed .brand-wrap {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-nav {
    padding-inline: 10px;
}

body.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding-inline: 10px;
}

body.sidebar-collapsed .sidebar-nav .nav-link i {
    width: auto;
}

body.sidebar-collapsed .nav-submenu {
    display: none;
}

.card {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.dashboard-stat-card .card-body {
    padding: 14px 16px;
}

.dashboard-stat-label {
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-stat-value {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
    font-weight: 800;
    color: #10213a;
}

.dashboard-stat-value-money {
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
}

.dashboard-session-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-session-meta {
    display: grid;
    gap: 4px;
    font-size: 0.92rem;
    color: #334155;
}

.dashboard-showcase {
    display: grid;
    gap: 22px;
    padding-bottom: 20px;
    color: #07183a;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    gap: 16px;
}

.dash-card {
    background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e6edf7;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.dash-kpi-card {
    min-height: 120px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dash-icon,
.dash-icon-small,
.dash-avatar,
.dash-product-thumb {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.dash-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.55rem;
}

.dash-icon-small {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.dash-icon-green {
    background: #dcfce7;
    color: #0f9f55;
}

.dash-icon-blue {
    background: #dbeafe;
    color: #0d6efd;
}

.dash-icon-orange {
    background: #fff3cd;
    color: #f59f00;
}

.dash-icon-purple {
    background: #f0e7ff;
    color: #8538ff;
}

.dash-icon-cyan {
    background: #e0f7ff;
    color: #0891b2;
}

.dash-icon-red {
    background: #ffe4ea;
    color: #ff245a;
}

.dash-kpi-label {
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b1f49;
}

.dash-kpi-value {
    display: block;
    margin-bottom: 14px;
    font-size: clamp(1.15rem, 1.5vw, 1.55rem);
    line-height: 1;
    color: #07183a;
}

.dash-kpi-trend,
.dash-goal-caption {
    font-size: 0.78rem;
    color: #405475;
}

.dash-kpi-trend i {
    color: #07183a;
}

.dash-mini-progress {
    height: 8px;
    margin: 10px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffe1e9;
}

.dash-mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ff245a;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr 1.05fr;
    gap: 16px;
}

.dash-main-grid > .dash-card {
    padding: 18px;
}

.dash-card-title {
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 800;
    color: #06183a;
}

.dash-sales-card {
    grid-column: span 1;
}

.dash-sales-content {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 18px;
}

.dash-chart-wrap {
    min-height: 250px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 14px;
    position: relative;
}

.dash-chart-lines {
    position: absolute;
    inset: 18px 0 42px;
    background: repeating-linear-gradient(to bottom, #e8eef8 0, #e8eef8 1px, transparent 1px, transparent 44px);
    pointer-events: none;
}

.dash-bar-chart {
    min-height: 210px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    align-items: end;
    position: relative;
    z-index: 1;
}

.dash-bar-item {
    height: 100%;
    display: grid;
    align-items: end;
    gap: 8px;
    text-align: center;
    font-size: 0.78rem;
    color: #31456b;
}

.dash-bar {
    width: 22px;
    margin-inline: auto;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #2f80ff 0%, #0d6efd 100%);
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.2);
}

.dash-chart-legend {
    display: flex;
    gap: 18px;
    font-size: 0.78rem;
    color: #31456b;
}

.dash-legend-solid,
.dash-legend-dashed {
    display: inline-block;
    width: 16px;
    height: 5px;
    margin-right: 7px;
    vertical-align: middle;
    border-radius: 999px;
    background: #0d6efd;
}

.dash-legend-dashed {
    height: 0;
    border-top: 2px dashed #0d6efd;
    background: transparent;
}

.dash-products {
    border-left: 1px solid #e8eef8;
    padding-left: 18px;
}

.dash-products h3 {
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 800;
}

.dash-product-row,
.dash-agenda-row,
.dash-alert-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-product-row {
    margin-bottom: 12px;
}

.dash-product-thumb {
    width: 48px;
    height: 40px;
    border-radius: 10px;
    background: #f3f7fb;
    color: #07183a;
    font-size: 1.55rem;
}

.dash-product-row strong,
.dash-agenda-row strong,
.dash-alert-row strong {
    display: block;
    font-size: 0.82rem;
    color: #07183a;
}

.dash-product-row small,
.dash-agenda-row small,
.dash-alert-row small,
.dash-simple-list small {
    display: block;
    font-size: 0.74rem;
    color: #44597a;
}

.dash-outline-btn {
    min-height: 36px;
    margin-top: 12px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd8ec;
    border-radius: 9px;
    color: #0052cc;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    background: #fff;
}

.schedule-link-panel {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(16, 33, 58, 0.08);
    border-radius: 12px;
    background: #fff;
}

.schedule-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #f26f21;
    background: rgba(242, 111, 33, 0.1);
    font-size: 1.4rem;
}

.schedule-link-content h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.schedule-link-content p {
    margin-bottom: 12px;
    color: #5e6d80;
}

.schedule-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
}

.schedule-link-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.schedule-stat {
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(16, 33, 58, 0.08);
    border-radius: 12px;
    background: #f8fbff;
}

.schedule-stat span,
.schedule-list-item span {
    display: block;
    color: #64748b;
    font-size: 0.92rem;
}

.schedule-stat strong {
    display: block;
    margin-top: 8px;
    color: #10213a;
    font-size: 1.3rem;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(16, 33, 58, 0.08);
}

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

.schedule-list-item strong {
    color: #10213a;
}

.schedule-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.schedule-detail-box {
    padding: 16px 18px;
    border: 1px solid rgba(16, 33, 58, 0.08);
    border-radius: 12px;
    background: #f8fbff;
}

.schedule-detail-box.is-compact {
    padding: 11px 14px;
}

.schedule-detail-box span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.schedule-detail-box strong {
    display: block;
    color: #10213a;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
}

.schedule-detail-box.is-compact strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.schedule-detail-subline {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.25;
    word-break: break-word;
}

.schedule-more-details {
    border: 1px solid rgba(16, 33, 58, 0.08);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
}

.schedule-more-details > summary {
    cursor: pointer;
    font-weight: 700;
    color: #10213a;
}

.schedule-more-details[open] > summary {
    margin-bottom: 8px;
}

.schedule-summary-grid .schedule-detail-box {
    height: 100%;
}

.schedule-admin {
    display: grid;
    gap: 34px;
}

.schedule-dashboard-toggle {
    display: flex;
    justify-content: flex-end;
}

.schedule-dashboard-toggle .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 999px;
    padding-inline: 16px;
    font-weight: 700;
}

.schedule-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(340px, 0.85fr);
    gap: 20px;
    align-items: stretch;
}

.schedule-dashboard-grid[hidden] {
    display: none !important;
}

.schedule-admin-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
    padding: 28px;
}

.schedule-admin-card-main {
    min-height: 392px;
}

.schedule-admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.schedule-admin-section-heading {
    margin-bottom: 20px;
}

.schedule-admin-section-heading h2 {
    margin: 14px 0 6px;
    color: #10213a;
    font-size: 1.12rem;
    font-weight: 800;
}

.schedule-admin-section-heading p,
.schedule-admin-muted,
.schedule-admin-link p {
    color: #5e6d80;
    font-size: 0.96rem;
    line-height: 1.55;
}

.schedule-admin-eyebrow {
    display: inline-flex;
    color: #e65c12;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-admin-badge,
.schedule-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.schedule-admin-badge {
    padding: 9px 14px;
}

.schedule-admin-badge.is-open,
.schedule-status.is-requested {
    color: #0f7b3a;
    background: #dff7e8;
}

.schedule-admin-badge.is-closed {
    color: #b42318;
    background: #fee4e2;
}

.schedule-status.is-canceled {
    color: #667085;
    background: #eef2f7;
}

.agenda-switch-field {
    display: flex;
    align-items: center;
}

.agenda-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.agenda-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
}

.agenda-switch-track {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #d92d20;
    box-shadow: inset 0 0 0 1px rgba(127, 29, 29, 0.14);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.agenda-switch-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
    content: "";
    transition: transform 0.2s ease;
}

.agenda-switch-input:checked + .agenda-switch .agenda-switch-track {
    background: #16a34a;
    box-shadow: inset 0 0 0 1px rgba(20, 83, 45, 0.14);
}

.agenda-switch-input:checked + .agenda-switch .agenda-switch-track::after {
    transform: translateX(24px);
}

.agenda-switch-input:focus-visible + .agenda-switch .agenda-switch-track {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
}

.agenda-switch-copy {
    display: grid;
    gap: 2px;
}

.agenda-switch-state {
    font-size: 0.96rem;
    line-height: 1.2;
}

.agenda-switch-state-open {
    display: none;
    color: #15803d;
}

.agenda-switch-state-closed {
    color: #b42318;
}

.agenda-switch-input:checked + .agenda-switch .agenda-switch-state-open {
    display: block;
}

.agenda-switch-input:checked + .agenda-switch .agenda-switch-state-closed {
    display: none;
}

.agenda-switch-copy small {
    color: #667085;
    font-size: 0.78rem;
}

.schedule-admin-link {
    margin-top: 26px;
}

.schedule-admin-link h2 {
    margin-bottom: 8px;
    color: #0e1f3b;
    font-size: 1.18rem;
    font-weight: 800;
}

.schedule-admin-link .form-control {
    min-height: 42px;
    border-color: #d7e0ec;
    color: #1f2937;
}

.schedule-admin-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.schedule-admin-link-actions .btn,
.schedule-card-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 6px;
    font-weight: 700;
}

.schedule-admin-link-actions .btn-dark,
.schedule-admin-form .btn-dark {
    background: #082445;
    border-color: #082445;
    box-shadow: 0 10px 22px rgba(8, 36, 69, 0.2);
}

.schedule-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 36px 0 24px;
}

.schedule-admin-stats span {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 0.9rem;
}

.schedule-admin-stats strong {
    color: #0f172a;
    font-size: 0.96rem;
}

.schedule-admin-alert {
    border-radius: 8px;
    padding: 16px 18px;
    color: #0d6630;
    font-size: 0.92rem;
    line-height: 1.55;
}

.schedule-admin-alert.is-open {
    background: linear-gradient(135deg, #dff7e9 0%, #d6f0e4 100%);
}

.schedule-admin-alert.is-closed {
    color: #b42318;
    background: #fee4e2;
}

.schedule-admin-form {
    display: grid;
    gap: 18px;
}

.schedule-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.schedule-admin-form .form-label,
.schedule-featured-record strong,
.schedule-appointment-card h3 {
    color: #0f172a;
    font-weight: 800;
}

.schedule-admin-form .form-control,
.schedule-admin-form .form-select {
    min-height: 42px;
    border-color: #d7e0ec;
}

.schedule-featured-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    align-items: start;
    margin-top: 36px;
    margin-bottom: 28px;
}

.schedule-featured-record span:not(.schedule-status) {
    display: block;
    margin-top: 5px;
    color: #111827;
    font-size: 0.9rem;
}

.schedule-featured-date {
    text-align: right;
}

.schedule-featured-record .schedule-status {
    grid-column: 2;
    justify-self: end;
}

.schedule-status {
    padding: 7px 10px;
}

.schedule-status.is-confirmed {
    color: #1f5fbf;
    background: #dceafe;
}

.schedule-status.is-attending {
    color: #8a4b00;
    background: #ffe8bf;
}

.schedule-status.is-done {
    color: #155724;
    background: #d4edda;
}

.schedule-status.is-preferential {
    color: #9a5a00;
    background: #ffe9c7;
}

.schedule-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.schedule-card-actions form {
    margin: 0;
}

.schedule-card-actions form .btn,
.schedule-card-actions > .btn {
    flex: 1 1 132px;
    min-width: 132px;
    width: auto;
}

.schedule-board {
    display: grid;
    gap: 24px;
    align-items: start;
}

.schedule-board-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 20px;
    align-items: start;
}

.schedule-filter-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(190px, 0.9fr) minmax(170px, 0.75fr) auto;
    gap: 14px;
    align-items: end;
    width: 100%;
    max-width: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.schedule-filter-card .form-label {
    color: #0f172a;
    font-weight: 700;
}

.schedule-filter-card .form-control {
    min-height: 42px;
    border-color: #d7e0ec;
}

.schedule-filter-actions {
    display: flex;
    gap: 10px;
}

.schedule-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 6px;
    font-weight: 700;
}

.schedule-filter-actions .btn-dark {
    background: #082445;
    border-color: #082445;
}

.schedule-summary-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.schedule-summary-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #1f4faa;
}

.schedule-summary-card-head i {
    font-size: 1.15rem;
}

.schedule-summary-card-head h3 {
    margin: 0;
    color: #1f4faa;
    font-size: 0.98rem;
    font-weight: 800;
}

.schedule-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.schedule-summary-tile {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 18px 10px 16px;
    text-align: center;
    background: #fff;
}

.schedule-summary-tile span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 700;
}

.schedule-summary-tile strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 800;
}

.schedule-summary-tile small {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
}

.schedule-summary-tile.is-total {
    border-color: #bfd5ff;
}

.schedule-summary-tile.is-total span,
.schedule-summary-tile.is-total strong {
    color: #1f5fbf;
}

.schedule-summary-tile.is-today {
    border-color: #cfe9d8;
}

.schedule-summary-tile.is-today span,
.schedule-summary-tile.is-today strong {
    color: #1b7f46;
}

.schedule-summary-tile.is-pending {
    border-color: #ffd8a8;
}

.schedule-summary-tile.is-pending span,
.schedule-summary-tile.is-pending strong {
    color: #e66a12;
}

.schedule-board-heading h2 {
    margin-bottom: 6px;
    color: #10213a;
    font-size: 1.45rem;
    font-weight: 800;
}

.schedule-board-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.schedule-board-heading p {
    margin-bottom: 0;
    color: #64748b;
}

.schedule-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: none;
}

.schedule-appointment-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    padding: 20px 20px 18px;
    border-top: 3px solid #d8e4f3;
}

.schedule-appointment-card:has(.schedule-appointment-icon.is-confirmed) {
    border-top-color: #98c1ff;
}

.schedule-appointment-card:has(.schedule-appointment-icon.is-attending) {
    border-top-color: #ffc66b;
}

.schedule-appointment-card:has(.schedule-appointment-icon.is-done) {
    border-top-color: #8fd3a9;
}

.schedule-appointment-card:has(.schedule-appointment-icon.is-canceled) {
    border-top-color: #d0d7e2;
}

.schedule-appointment-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.schedule-appointment-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #138a43;
    background: #dff7e8;
    font-size: 1.12rem;
}

.schedule-appointment-icon.is-confirmed {
    color: #1f5fbf;
    background: #dceafe;
}

.schedule-appointment-icon.is-attending,
.schedule-appointment-icon.is-done {
    color: #8a4b00;
    background: #ffe8bf;
}

.schedule-appointment-icon.is-canceled {
    color: #667085;
    background: #eef2f7;
}

.schedule-appointment-card h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    text-transform: uppercase;
}

.schedule-appointment-card p {
    margin: 0;
    color: #314157;
    font-size: 0.9rem;
}

.schedule-appointment-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.schedule-appointment-top .schedule-status {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 6px 10px;
}

.schedule-appointment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #0f172a;
}

.schedule-appointment-meta > span:not(.schedule-status) {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0f172a;
}

.schedule-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.call-panel-body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(39, 117, 206, 0.34), transparent 28%),
        linear-gradient(135deg, #0a2e57 0%, #0a2b53 38%, #082142 100%);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
}

.call-panel-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.call-panel-page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 160px minmax(0, 1fr) 134px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.call-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 42px 24px;
    background: linear-gradient(180deg, rgba(6, 34, 69, 0.96) 0%, rgba(8, 39, 76, 0.94) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.call-panel-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

.call-panel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.call-panel-controls .btn {
    min-height: 42px;
    border-radius: 999px;
    padding-inline: 16px;
    font-weight: 700;
}

.call-panel-controls .btn.is-muted {
    opacity: 0.72;
}

.call-panel-logo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3.3rem;
}

.call-panel-title {
    font-size: clamp(2.2rem, 3vw, 3.1rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.call-panel-subtitle {
    margin-top: 8px;
    font-size: clamp(1.45rem, 1.9vw, 2.15rem);
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.96);
}

.call-panel-clock {
    text-align: right;
}

.call-panel-clock strong {
    display: block;
    font-size: clamp(3rem, 4.4vw, 4.6rem);
    line-height: 0.9;
    font-weight: 800;
}

.call-panel-clock span {
    display: block;
    margin-top: 12px;
    font-size: clamp(1.3rem, 1.7vw, 1.9rem);
    font-weight: 700;
}

.call-panel-main {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.call-panel-current {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 136px;
    background:
        radial-gradient(circle at 30% 30%, rgba(59, 145, 255, 0.2), transparent 30%),
        linear-gradient(135deg, #114b8f 0%, #0a3567 45%, #0a2b53 100%);
}

.call-panel-current-inner {
    padding: 34px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.call-panel-section-label {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.call-panel-code {
    margin-top: 18px;
    font-size: clamp(7rem, 13vw, 12rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.call-panel-divider {
    width: min(72%, 520px);
    height: 4px;
    margin: 20px auto 28px;
    border-radius: 999px;
    background: rgba(101, 193, 255, 0.72);
}

.call-panel-patient-label,
.call-panel-room-label {
    color: #66b6ff;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.call-panel-patient-name {
    margin-top: 10px;
    font-size: clamp(2.8rem, 4.4vw, 5rem);
    line-height: 1.05;
    font-weight: 800;
}

.call-panel-patient-name-main {
    margin-top: 22px;
    font-size: clamp(4rem, 6vw, 7rem);
}

.call-panel-room-label {
    margin-top: 24px;
}

.call-panel-room-number {
    margin-top: 2px;
    font-size: clamp(4rem, 6.2vw, 6.8rem);
    line-height: 0.95;
    font-weight: 800;
}

.call-panel-code-secondary {
    margin-top: 12px;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
}

.call-panel-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 42px;
    background: linear-gradient(90deg, #2f7bd1 0%, #2166b9 100%);
}

.call-panel-banner i {
    font-size: 4rem;
    line-height: 1;
}

.call-panel-banner strong {
    display: block;
    font-size: clamp(2rem, 2.4vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
}

.call-panel-banner span {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.3rem, 1.7vw, 1.85rem);
}

.call-panel-history {
    min-height: 0;
    padding: 32px 52px;
    background: linear-gradient(180deg, #f7f6f4 0%, #fefefe 100%);
    color: #08111d;
}

.call-panel-history h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 2.5vw, 3rem);
    font-weight: 800;
    color: #143d75;
}

.call-panel-history-list {
    margin-top: 26px;
    display: grid;
    gap: 0;
}

.call-panel-history-item,
.call-panel-history-empty {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 144px;
    align-items: center;
    gap: 20px;
    min-height: 124px;
    border-top: 2px solid rgba(20, 61, 117, 0.12);
}

.call-panel-history-code {
    font-size: clamp(2.5rem, 3.6vw, 4rem);
    line-height: 1;
    font-weight: 800;
}

.call-panel-history-name {
    font-size: clamp(1.75rem, 2vw, 2.45rem);
    line-height: 1.1;
    font-weight: 700;
}

.call-panel-history-room {
    text-align: right;
}

.call-panel-history-room strong {
    display: block;
    font-size: clamp(1.4rem, 1.7vw, 2rem);
    line-height: 1.1;
    font-weight: 700;
}

.call-panel-history-room span {
    display: block;
    margin-top: 10px;
    color: #1d66bd;
    font-size: clamp(1.4rem, 1.8vw, 2.1rem);
    font-weight: 700;
}

.call-panel-history-empty {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    color: #526174;
    font-size: 1.3rem;
}

.call-panel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 32px;
    background: linear-gradient(180deg, #09274f 0%, #081f41 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: clamp(2rem, 2.6vw, 3.05rem);
    font-weight: 700;
}

.call-panel-footer i {
    font-size: clamp(2.8rem, 3.2vw, 3.6rem);
}

@media (max-width: 1500px) {
    .schedule-dashboard-grid {
        grid-template-columns: minmax(380px, 1.15fr) minmax(320px, 0.85fr);
    }

    .schedule-admin-card {
        padding: 24px;
    }
}

@media (max-width: 1100px) {
    .schedule-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .call-panel-page {
        grid-template-rows: auto auto auto;
    }

    .call-panel-main {
        grid-template-columns: 1fr;
    }

    .call-panel-history {
        padding-inline: 28px;
    }
}

@media (max-width: 980px) {
    .schedule-filter-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .schedule-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1600px) {
    .schedule-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1320px) and (max-width: 1599.98px) {
    .schedule-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .schedule-dashboard-grid,
    .schedule-board-top,
    .schedule-cards-grid {
        grid-template-columns: 1fr;
    }

    .schedule-admin-card,
    .schedule-appointment-card {
        padding: 20px;
    }

    .schedule-admin-card-main {
        min-height: 0;
    }

    .schedule-admin-stats,
    .schedule-admin-form-grid,
    .schedule-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .schedule-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .schedule-summary-grid {
        grid-template-columns: 1fr;
    }

    .schedule-featured-record {
        grid-template-columns: 1fr;
    }

    .schedule-featured-date,
    .schedule-featured-record .schedule-status {
        justify-self: start;
        text-align: left;
        grid-column: auto;
    }

    .schedule-board-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-board-heading .btn {
        width: 100%;
    }

    .call-panel-header {
        padding: 22px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .call-panel-controls {
        width: 100%;
    }

    .call-panel-controls .btn {
        width: 100%;
    }

    .call-panel-clock {
        text-align: left;
    }

    .call-panel-current-inner,
    .call-panel-banner,
    .call-panel-history,
    .call-panel-footer {
        padding-inline: 24px;
    }

    .call-panel-history-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 0;
    }

    .call-panel-history-room {
        text-align: left;
    }

    .call-panel-footer {
        justify-content: flex-start;
        font-size: 1.55rem;
    }
}

@media (max-width: 520px) {
    .schedule-admin {
        gap: 24px;
    }

    .schedule-admin-card-head {
        flex-direction: column;
    }

    .schedule-admin-link-actions .btn {
        width: 100%;
    }

    .schedule-appointment-top {
        align-items: flex-start;
    }

    .call-panel-logo {
        width: 78px;
        height: 78px;
        font-size: 2.5rem;
    }

    .call-panel-brand {
        gap: 16px;
    }

    .call-panel-current {
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .call-panel-banner {
        gap: 16px;
        padding-block: 18px;
    }

    .call-panel-banner i {
        font-size: 3rem;
    }
}

.dash-outline-btn:hover {
    color: #003a99;
    border-color: #9db5dc;
    background: #f7fbff;
}

.dash-status-list,
.dash-agenda-list,
.dash-alert-list,
.dash-finance-list,
.dash-simple-list {
    display: grid;
    gap: 10px;
}

.dash-status-row {
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 800;
}

.dash-status-row span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dash-status-row i {
    font-size: 1.35rem;
}

.dash-status-yellow {
    background: #fff8e8;
    border: 1px solid #ffe3a3;
    color: #b77900;
}

.dash-status-blue {
    background: #f0f6ff;
    border: 1px solid #d1e3ff;
    color: #0052cc;
}

.dash-status-green {
    background: #effaf4;
    border: 1px solid #cbeedb;
    color: #15803d;
}

.dash-status-red {
    background: #fff1f2;
    border: 1px solid #ffd1d9;
    color: #e11d48;
}

.dash-agenda-row {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #e0e8f4;
    border-radius: 9px;
    background: #fbfdff;
}

.dash-agenda-row time {
    min-width: 50px;
    color: #0052cc;
    font-weight: 800;
}

.dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0d6efd;
}

.dash-simple-list > div {
    min-height: 44px;
    display: grid;
    grid-template-columns: 34px 34px 1fr;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #e8eef8;
}

.dash-simple-list > div:last-child {
    border-bottom: 0;
}

.dash-simple-list strong {
    color: #07183a;
}

.dash-activity-list {
    display: grid;
    gap: 10px;
}

.dash-activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid #e0e8f4;
    border-radius: 12px;
    background: #fbfdff;
}

.dash-activity-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-activity-body strong {
    line-height: 1.2;
    font-size: 0.97rem;
}

.dash-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.78rem;
    color: #5d6b86;
}

.dash-activity-meta span {
    white-space: nowrap;
}

.dash-activity-reason {
    color: #24324b;
    line-height: 1.3;
}

.dash-activity-list .dash-icon-small {
    margin-top: 2px;
}

.dash-alert-row {
    min-height: 50px;
    padding: 9px 12px;
    border: 1px solid #ffe3a3;
    border-radius: 9px;
    background: #fffaf0;
}

.dash-alert-row:nth-child(3n) {
    border-color: #ffd1d9;
    background: #fff1f2;
}

.dash-alert-row i {
    color: #f59f00;
    font-size: 1.25rem;
}

.dash-finance-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef8;
    font-size: 0.86rem;
    color: #07183a;
}

.dash-sparkline {
    width: 100%;
    height: 68px;
    margin-top: 6px;
}

.dash-goal-card {
    display: flex;
    flex-direction: column;
}

.dash-goal-center {
    flex: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
}

.dash-goal-center > span {
    font-weight: 800;
}

.dash-ring {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#0d6efd var(--angle), #edf2f8 0);
    position: relative;
}

.dash-ring::before {
    content: "";
    position: absolute;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: #fff;
}

.dash-ring strong {
    position: relative;
    font-size: 1.65rem;
    color: #07183a;
}

.dash-goal-center p {
    margin: 0;
    font-size: 0.85rem;
    color: #405475;
}

.dash-actions-card {
    padding: 18px;
}

.dash-action-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
}

.dash-action-btn {
    min-height: 76px;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    color: #07183a;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    background: #fff;
}

.dash-action-btn i {
    font-size: 1.8rem;
}

.dash-action-btn:hover {
    transform: translateY(-1px);
    border-color: #b7c8e2;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.dash-empty {
    margin: 0;
    padding: 14px 0;
    color: #64748b;
    font-size: 0.84rem;
}

.dash-text-green {
    color: #0f9f55 !important;
}

.dash-text-blue {
    color: #0d6efd !important;
}

.dash-text-orange {
    color: #f59f00 !important;
}

.dash-text-purple {
    color: #8538ff !important;
}

.dash-text-red {
    color: #ff245a !important;
}

.dash-text-cyan {
    color: #0891b2 !important;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    padding: 18px 20px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    border-bottom-color: #edf1f5;
}

.table-hover tbody tr:hover {
    background-color: rgba(23, 63, 102, 0.03);
}

.btn-dark {
    background: linear-gradient(180deg, #173f66, #0f3050);
    border-color: #173f66;
    box-shadow: 0 6px 16px rgba(23, 63, 102, 0.18);
}

.btn-dark:hover {
    background: linear-gradient(180deg, #1d4a79, #113454);
    border-color: #173f66;
}

.btn-outline-dark {
    border-color: #d5dce6;
    color: #1f2b3a;
}

.btn-outline-dark:hover {
    background: #173f66;
    border-color: #173f66;
}

.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success {
    border-radius: 10px;
}

.alert {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d8e0ea;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #6f8db0;
    box-shadow: 0 0 0 0.2rem rgba(23, 63, 102, 0.08);
}

.badge,
.table .btn {
    border-radius: 10px;
}

.dashboard-scroll-area {
    max-height: 360px;
    overflow: auto;
}

.dashboard-scroll-area-lg {
    max-height: 420px;
}

.flow-page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.flow-page-breadcrumb {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.92rem;
}

.flow-page-breadcrumb span {
    color: #94a3b8;
    margin: 0 6px;
}

.flow-page-description {
    color: #64748b;
    margin: 6px 0 0;
}

.flow-filter-card .card-body,
.flow-chart-card .card-body,
.flow-summary-card .card-body,
.flow-table-card .card-body {
    padding: 20px;
}

.flow-stat-card {
    height: 100%;
}

.flow-stat-card .card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.flow-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.flow-stat-icon.is-green {
    background: linear-gradient(180deg, #34c759, #23a047);
}

.flow-stat-icon.is-red {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.flow-stat-icon.is-blue {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.flow-stat-icon.is-slate {
    background: linear-gradient(180deg, #64748b, #475569);
}

.flow-stat-label {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.flow-stat-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #10213a;
}

.flow-stat-value.is-green {
    color: #16a34a;
}

.flow-stat-value.is-red {
    color: #dc2626;
}

.flow-stat-value.is-blue {
    color: #2563eb;
}

.flow-stat-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 4px;
}

.flow-summary-legend {
    display: grid;
    gap: 12px;
}

.flow-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.95rem;
}

.flow-summary-line strong {
    font-size: 1.6rem;
    color: #10213a;
}

.flow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.flow-dot.is-green {
    background: #22c55e;
}

.flow-dot.is-red {
    background: #ef4444;
}

.flow-movement-type {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: lowercase;
}

.flow-movement-type.is-entry {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.flow-movement-type.is-exit {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.flow-money.is-entry {
    color: #16a34a;
    font-weight: 700;
}

.flow-money.is-exit {
    color: #dc2626;
    font-weight: 700;
}

.landing-body {
    font-family: 'Manrope', sans-serif;
    color: #10213a;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 153, 0.55), transparent 28%),
        radial-gradient(circle at top right, rgba(138, 205, 255, 0.38), transparent 32%),
        linear-gradient(180deg, #fff9f0 0%, #f4f7fb 42%, #ffffff 100%);
    overflow: auto;
}

.landing-shell {
    min-height: 100vh;
}

.landing-section {
    padding: 36px 0;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 28px;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0 26px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #10213a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.landing-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 22%, transparent 23%),
        linear-gradient(135deg, #ff9e45 0 50%, #1f5a92 50% 100%);
    box-shadow: 0 10px 28px rgba(16, 33, 58, 0.16);
}

.landing-nav-actions,
.landing-hero-actions,
.landing-cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-cta-panel .landing-eyebrow {
    margin-bottom: 12px;
}

.landing-nav-btn,
.landing-secondary-btn,
.landing-secondary-btn-dark,
.landing-cta-btn {
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
}

.landing-nav-btn {
    border-color: rgba(255, 255, 255, 0.55);
    color: #10213a;
    background: rgba(255, 255, 255, 0.58);
}

.landing-nav-btn:hover {
    background: #fff;
    color: #10213a;
}

.landing-cta-btn {
    background: linear-gradient(135deg, #ff9e45 0%, #f26f21 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 14px 30px rgba(242, 111, 33, 0.28);
}

.landing-cta-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #ffab5d 0%, #e9651c 100%);
}

.landing-cta-lg {
    padding-inline: 24px;
}

.landing-secondary-btn,
.landing-secondary-btn-dark {
    background: #fff;
    border: 1px solid rgba(16, 33, 58, 0.12);
    color: #10213a;
}

.landing-secondary-btn:hover,
.landing-secondary-btn-dark:hover {
    background: #f8fbff;
    color: #10213a;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #d1641f;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-title,
.landing-section-heading h2,
.landing-highlight-title,
.landing-cta-panel h2 {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.03em;
    color: #0e223f;
}

.landing-title {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.96;
    margin-bottom: 18px;
}

.landing-copy,
.landing-section-heading p,
.landing-cta-panel p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #526174;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.landing-metric-card,
.landing-feature-card,
.landing-contact-card,
.landing-cta-panel {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(16, 33, 58, 0.08);
    box-shadow: 0 18px 42px rgba(16, 33, 58, 0.08);
    backdrop-filter: blur(10px);
}

.landing-metric-card {
    border-radius: 24px;
    padding: 18px 18px 16px;
}

.landing-metric-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.landing-metric-card span {
    color: #5e6d80;
    font-size: 0.94rem;
}

.landing-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

.landing-showcase-main,
.landing-showcase-side img,
.landing-photo-stack img {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(16, 33, 58, 0.18);
}

.landing-showcase-main img,
.landing-showcase-side img,
.landing-photo-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-showcase-main {
    min-height: 520px;
}

.landing-showcase-side {
    display: grid;
    gap: 18px;
    grid-template-rows: 1fr 1fr;
}

.landing-floating-card {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(11, 26, 48, 0.74);
    color: #fff;
    backdrop-filter: blur(8px);
}

.landing-floating-card span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-floating-card strong {
    font-size: 1.05rem;
}

.landing-section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.landing-section-heading h2,
.landing-highlight-title,
.landing-cta-panel h2 {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    margin-bottom: 14px;
}

.landing-feature-card,
.landing-contact-card {
    height: 100%;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-feature-card:hover,
.landing-contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 111, 33, 0.26);
    box-shadow: 0 22px 42px rgba(16, 33, 58, 0.12);
}

.landing-feature-card i,
.landing-contact-card i {
    font-size: 1.8rem;
    color: #f26f21;
}

.landing-feature-card h3,
.landing-contact-card strong {
    margin: 16px 0 10px;
    font-size: 1.18rem;
    font-weight: 800;
}

.landing-feature-card p,
.landing-contact-card span {
    margin: 0;
    color: #5e6d80;
    line-height: 1.65;
}

.landing-contact-card span {
    word-break: break-word;
}

.landing-highlight-band {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 241, 226, 0.9) 100%);
}

.landing-photo-stack {
    position: relative;
    min-height: 520px;
}

.landing-photo-large {
    width: min(100%, 500px);
    height: 100%;
}

.landing-photo-small {
    position: absolute;
    right: 0;
    bottom: -16px;
    width: min(46%, 240px);
    height: 220px;
    border: 8px solid rgba(255, 255, 255, 0.9);
}

.landing-checklist {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.landing-checklist div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #36465b;
    line-height: 1.7;
}

.landing-checklist i {
    color: #1da35e;
    font-size: 1.1rem;
    margin-top: 2px;
}

.landing-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 32px;
    padding: 30px;
}

.landing-form-panel {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(16, 33, 58, 0.08);
    box-shadow: 0 18px 42px rgba(16, 33, 58, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 28px;
}

.landing-form-panel .form-control,
.landing-form-panel .form-select {
    min-height: 48px;
    background: rgba(255, 255, 255, 0.95);
}

.landing-trial-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #516274;
}

.landing-trial-note i {
    color: #f26f21;
    font-size: 1.1rem;
}

.landing-modal-content {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 60px rgba(16, 33, 58, 0.18);
}

.landing-modal-content .modal-header,
.landing-modal-content .modal-body {
    padding-left: 28px;
    padding-right: 28px;
}

.landing-modal-content .form-control {
    min-height: 48px;
}

.schedule-public-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.schedule-public-top {
    max-width: 1060px;
    margin: 0 auto 30px;
    text-align: left;
}

.schedule-public-title {
    font-size: 40px;
    line-height: 1.06;
    letter-spacing: 0;
    color: #10213a;
    max-width: 680px;
    margin-bottom: 14px;
    font-weight: 800;
}

.schedule-public-copy {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.62;
    color: #516072;
}

.schedule-public-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.schedule-public-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(16, 33, 58, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: #10213a;
}

.schedule-public-badge i {
    font-size: 14px;
}

.schedule-public-badge.is-open {
    background: #dcf8e7;
    color: #107a38;
    border-color: #c7f0d8;
}

.schedule-public-badge.is-closed {
    background: rgba(111, 121, 138, 0.12);
    color: #546173;
}

.schedule-public-badge.is-info {
    background: #e8f1ff;
    color: #194578;
    border-color: #dceafd;
}

.schedule-public-form-card {
    border-radius: 18px;
    max-width: 1060px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(16, 33, 58, 0.1) !important;
}

.schedule-public-form-shell {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.schedule-public-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.schedule-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e9651c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.schedule-form-eyebrow i {
    font-size: 20px;
}

.schedule-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

.schedule-availability::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.schedule-availability.is-open {
    color: #158143;
    background: #e2f8eb;
}

.schedule-availability.is-closed {
    color: #64748b;
    background: #eef2f7;
}

.schedule-public-form-card .form-label {
    font-weight: 600;
    color: #22324f;
    margin-bottom: 8px;
}

.schedule-input-group {
    min-height: 48px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.schedule-input-group .input-group-text {
    background: #fff;
    border-color: #d8e2f2;
    color: #6c7f99;
    padding-inline: 14px;
}

.schedule-input-group .form-control,
.schedule-input-group .form-select {
    min-height: 48px;
    border-color: #d8e2f2;
    box-shadow: none;
    color: #20314f;
}

.schedule-input-group .form-control::placeholder {
    color: #8a9ab0;
}

.schedule-input-group .form-control:focus,
.schedule-input-group .form-select:focus {
    border-color: #8bb4ef;
    box-shadow: 0 0 0 0.2rem rgba(80, 132, 223, 0.12);
}

.schedule-public-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f3f7ff;
    color: #4772ad;
    flex: 1 1 auto;
    min-height: 54px;
}

.schedule-public-note i {
    color: #4c7edb;
    font-size: 1.05rem;
}

.schedule-public-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    min-height: 54px;
    min-width: 188px;
    padding-inline: 22px;
    border-radius: 8px;
}

.schedule-public-submit i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .landing-modal-content .modal-header,
    .landing-modal-content .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .schedule-public-section {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .schedule-public-title {
        max-width: 100%;
        font-size: 30px;
        margin-bottom: 10px;
    }

    .schedule-public-copy {
        font-size: 0.98rem;
    }

    .schedule-public-form-card .card-body {
        padding: 20px;
    }

    .schedule-public-form-shell {
        padding: 0;
    }

    .schedule-public-form-header {
        flex-direction: column;
    }

    .schedule-public-badges {
        gap: 8px;
    }

    .schedule-public-top {
        margin-bottom: 18px !important;
    }

    .schedule-public-note,
    .schedule-public-submit {
        width: 100%;
        justify-content: center;
    }

    .schedule-public-submit {
        padding-inline: 18px;
    }
}

.landing-contact-section {
    padding-bottom: 88px;
}

.landing-contact-card.is-whatsapp i,
.landing-whatsapp-float {
    color: #fff;
    background: linear-gradient(135deg, #23d366 0%, #0eab4a 100%);
}

.landing-contact-card.is-whatsapp {
    border-color: rgba(35, 211, 102, 0.18);
}

.landing-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(14, 171, 74, 0.34);
    z-index: 40;
}

.landing-whatsapp-float i {
    font-size: 1.9rem;
}

@media (min-width: 1600px) {
    .app-main {
        padding: 28px 34px 40px;
    }

    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 1366px), (max-height: 780px) {
    :root {
        --sidebar-width: 232px;
        --sidebar-collapsed-width: 74px;
    }

    .app-main {
        padding: 16px 18px 22px;
    }

    .app-header {
        margin-bottom: 16px;
        gap: 14px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        margin-top: 3px;
        font-size: 14px;
    }

    .sidebar-top {
        padding: 16px 15px 14px;
    }

    .brand-icon {
        width: 46px;
        height: 27px;
    }

    .brand-icon::before,
    .brand-icon::after {
        width: 25px;
        height: 21px;
        border-width: 4px;
    }

    .brand-text {
        font-size: 19px;
    }

    .brand-subtext {
        font-size: 11px;
    }

    .sidebar-nav {
        padding: 12px 10px 12px;
    }

    .nav-group-label {
        margin: 10px 8px 6px;
        font-size: 11px;
    }

    .sidebar-nav .nav-link {
        gap: 10px;
        padding: 9px 11px;
    }

    .nav-sublink {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .sidebar-bottom {
        padding: 12px 14px;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 1200px) {
    .dash-kpi-grid,
    .dash-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-sales-card {
        grid-column: 1 / -1;
    }

    .table thead th,
    .table tbody td {
        padding: 14px 16px;
    }

    .page-title {
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    body {
        overflow: auto;
    }

    .dash-main-grid {
        grid-template-columns: 1fr;
    }

    .dash-sales-content {
        grid-template-columns: 1fr;
    }

    .dash-products {
        border-left: 0;
        border-top: 1px solid #e8eef8;
        padding-left: 0;
        padding-top: 16px;
    }

    .landing-showcase,
    .landing-cta-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-showcase-main {
        min-height: 420px;
    }

    .landing-photo-stack {
        min-height: 420px;
    }

    .app-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        flex-direction: column;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 28;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(7, 17, 29, 0.56);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        z-index: 30;
        transform: translateX(-102%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .app-main {
        height: auto;
        overflow: visible;
        padding: 18px 16px 22px;
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .dashboard-session-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px 12px 16px;
    }

    .nav-group-label {
        width: 100%;
        margin: 8px 4px 2px;
    }

    .sidebar-nav .nav-link {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
    }

    .nav-submenu {
        flex: 0 0 auto;
        width: 100%;
    }

    .nav-submenu-links {
        margin-left: 16px;
    }

    .sidebar-bottom {
        padding: 14px 16px 16px;
    }

    .sidebar-collapse {
        display: none;
    }

    .sidebar-mobile-toggle {
        display: inline-flex;
        align-self: flex-start;
    }

    .page-title {
        font-size: 24px;
    }

    .flow-page-hero {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .dash-kpi-grid,
    .dash-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-kpi-card {
        min-height: 108px;
        padding: 15px;
    }

    .dash-main-grid > .dash-card,
    .dash-actions-card {
        padding: 15px;
    }

    .dash-bar-chart {
        gap: 8px;
    }

    .landing-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-title {
        font-size: 2.5rem;
    }

    .landing-copy {
        font-size: 1rem;
    }

    .landing-metrics {
        grid-template-columns: 1fr;
    }

    .landing-showcase {
        grid-template-columns: 1fr;
    }

    .landing-showcase-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .landing-photo-stack {
        min-height: auto;
    }

    .landing-photo-large {
        width: 100%;
        height: 380px;
    }

    .landing-photo-small {
        position: static;
        width: 100%;
        height: 220px;
        margin-top: 18px;
    }

    .landing-cta-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .landing-form-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .app-main {
        padding: 14px;
    }

    .page-title {
        font-size: 23px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .btn-logout {
        width: 100%;
    }

    .table thead th,
    .table tbody td {
        padding: 12px 12px;
        font-size: 13px;
    }

    .card {
        border-radius: 12px;
    }

    .schedule-link-panel {
        grid-template-columns: 1fr;
    }

    .schedule-link-box {
        grid-template-columns: 1fr;
    }

    .schedule-list-item {
        flex-direction: column;
    }

    .schedule-list-item .text-end {
        text-align: left !important;
    }

    .schedule-list-actions {
        justify-content: flex-start;
    }

    .flow-stat-value {
        font-size: 1.55rem;
    }

    .flow-summary-line strong {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .dash-kpi-grid,
    .dash-action-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpi-card {
        align-items: center;
    }

    .dash-card-title {
        margin-bottom: 14px;
    }

    .dash-chart-wrap {
        min-height: 210px;
    }

    .dash-bar-chart {
        min-height: 170px;
    }

    .dash-status-row,
    .dash-agenda-row {
        padding-inline: 10px;
    }

    .dash-simple-list > div {
        grid-template-columns: 34px 30px 1fr;
        gap: 10px;
    }

    .landing-section {
        padding: 28px 0;
    }

    .landing-showcase-main {
        min-height: 360px;
    }

    .landing-showcase-side {
        grid-template-columns: 1fr;
    }

    .landing-feature-card,
    .landing-contact-card {
        padding: 20px;
        border-radius: 20px;
    }

    .landing-whatsapp-float {
        width: 56px;
        height: 56px;
        right: 14px;
        bottom: 14px;
    }

    .sidebar-top {
        padding: 16px 14px 14px;
    }

    .brand-text {
        font-size: 19px;
    }

    .sidebar-bottom {
        padding: 14px;
    }

    .sidebar-nav .nav-link {
        flex: 0 0 auto;
        width: 100%;
        padding: 10px 12px;
    }

    .app-header {
        margin-bottom: 18px;
    }

    .page-title {
        font-size: 21px;
    }

    .dashboard-stat-card .card-body {
        padding: 12px 13px;
    }

    .dashboard-stat-value {
        font-size: 1.35rem;
    }

    .dashboard-stat-value-money {
        font-size: 1.1rem;
    }
}
