:root {
    --bg: #090909;
    --panel: #111113;
    --panel-soft: #18181d;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f1ee;
    --muted: #b7aeb0;
    --accent: #7e2637;
    --accent-strong: #a7384f;
    --cream: #efe5db;
    --success: #4caf7c;
    --danger: #da5f68;
    --warning: #f0b75c;
    --shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --content-max: 1260px;
}

:root[data-theme="light"] {
    --bg: #f5efe9;
    --panel: #fffaf7;
    --panel-soft: #f0e3da;
    --border: rgba(104, 47, 59, 0.14);
    --text: #23161a;
    --muted: #745f66;
    --accent: #8c2f43;
    --accent-strong: #ba4b67;
    --cream: #ffffff;
    --success: #2f8f63;
    --danger: #c34f5e;
    --warning: #bb7b18;
    --shadow: 0 18px 34px rgba(64, 26, 35, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.45;
    background:
        radial-gradient(circle at top left, rgba(126, 38, 55, 0.2), transparent 24%),
        radial-gradient(circle at top right, rgba(239, 229, 219, 0.05), transparent 18%),
        linear-gradient(135deg, #080809, #0c0c0f 56%, #140d10);
    color: var(--text);
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(186, 75, 103, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(140, 47, 67, 0.08), transparent 18%),
        linear-gradient(135deg, #fbf6f1, #f3ece6 56%, #ece0d7);
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

img {
    max-width: 100%;
    display: block;
}

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

.sidebar {
    width: 264px;
    padding: 22px 18px;
    background:
        linear-gradient(180deg, rgba(19, 19, 22, 0.98), rgba(11, 11, 13, 0.98)),
        linear-gradient(135deg, rgba(126, 38, 55, 0.08), transparent 45%);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

:root[data-theme="light"] .sidebar {
    background:
        linear-gradient(180deg, rgba(255, 249, 245, 0.98), rgba(244, 235, 228, 0.98)),
        linear-gradient(135deg, rgba(140, 47, 67, 0.05), transparent 45%);
}

.sidebar-backdrop {
    display: none;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(126, 38, 55, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .brand {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(186, 75, 103, 0.08));
    border-color: rgba(140, 47, 67, 0.1);
}

.brand-logo-wrap {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(126, 38, 55, 0.22), rgba(239, 229, 219, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--cream);
}

.brand-copy small,
.eyebrow,
.muted {
    color: var(--muted);
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: grid;
    gap: 14px;
}

.nav-group {
    display: grid;
    gap: 8px;
}

.nav-group-title {
    padding: 0 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(239, 229, 219, 0.52);
}

.nav-group-links {
    display: grid;
    gap: 6px;
}

.nav-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    transition: 0.2s ease;
    font-size: 0.95rem;
    margin-left: 4px;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--cream);
    background: linear-gradient(135deg, rgba(126, 38, 55, 0.72), rgba(167, 56, 79, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .nav-group-title {
    color: rgba(70, 33, 41, 0.55);
}

.app-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

.app-content > * {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.topbar h1,
.login-card h2 {
    margin: 4px 0 0;
}

.topbar h1 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    background: var(--panel-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

.grid.columns-2 {
    grid-template-columns: 2fr 1fr;
}

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

.card {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(24, 24, 29, 0.95), rgba(17, 17, 19, 0.98)),
        linear-gradient(135deg, rgba(126, 38, 55, 0.06), transparent 55%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

:root[data-theme="light"] .card {
    background:
        linear-gradient(180deg, rgba(255, 250, 247, 0.96), rgba(252, 246, 241, 0.98)),
        linear-gradient(135deg, rgba(186, 75, 103, 0.04), transparent 55%);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 122px;
}

.stat-card strong {
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    color: var(--cream);
}

.stat-card small {
    color: var(--muted);
}

.chart-bars {
    display: grid;
    gap: 12px;
}

.chart-row {
    display: grid;
    gap: 8px;
}

.chart-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.chart-value {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: inherit;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}

th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
}

.toolbar,
.filters,
.form-grid,
.inline-actions {
    display: grid;
    gap: 14px;
}

.toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 18px;
}

.filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.filters-finance-dashboard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.filters-submit {
    align-self: end;
}

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

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.sale-items {
    display: grid;
    gap: 14px;
}

.sale-item-card {
    padding: 18px;
}

.sale-item-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

label {
    display: grid;
    gap: 7px;
    font-size: 0.92rem;
    min-width: 0;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #131318;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
    background: #fffdfb;
    border-color: rgba(104, 47, 59, 0.14);
}

select {
    padding-right: 34px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(167, 56, 79, 0.85);
    box-shadow: 0 0 0 3px rgba(167, 56, 79, 0.14);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.92rem;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff7f8;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.btn-secondary {
    color: var(--text);
    background: var(--panel-soft);
    border: 1px solid var(--border);
}

.btn-danger {
    color: #fff;
    background: rgba(218, 95, 104, 0.15);
    border: 1px solid rgba(218, 95, 104, 0.3);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.theme-toggle {
    min-width: 118px;
}

.alert {
    padding: 13px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(76, 175, 124, 0.14);
    border: 1px solid rgba(76, 175, 124, 0.35);
}

.alert-error {
    background: rgba(167, 56, 79, 0.16);
    border: 1px solid rgba(167, 56, 79, 0.4);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
}

.badge.gold {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.badge.success {
    background: rgba(76, 175, 124, 0.16);
}

.badge.warning {
    background: rgba(240, 183, 92, 0.16);
}

.badge.danger {
    background: rgba(218, 95, 104, 0.16);
}

.split-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.schedule-board {
    display: grid;
    gap: 14px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 16px;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    min-width: 700px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.calendar-weekdays span {
    padding: 8px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-day {
    min-height: 124px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    align-content: start;
    gap: 8px;
    transition: 0.18s ease;
}

.calendar-day strong {
    color: var(--cream);
}

.calendar-day:hover,
.calendar-day.is-selected {
    border-color: rgba(167, 56, 79, 0.45);
    background: linear-gradient(135deg, rgba(126, 38, 55, 0.22), rgba(255, 255, 255, 0.02));
}

:root[data-theme="light"] .calendar-day,
:root[data-theme="light"] .schedule-item,
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .login-badges span,
:root[data-theme="light"] .login-hint {
    background: rgba(255, 255, 255, 0.72);
}

.calendar-day.is-outside {
    opacity: 0.45;
}

.calendar-count,
.calendar-subcount,
.calendar-empty {
    font-size: 0.78rem;
    color: var(--muted);
}

.calendar-subcount {
    color: var(--cream);
}

.week-timeline-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.week-timeline {
    display: grid;
    grid-template-columns: 86px repeat(7, minmax(150px, 1fr));
    min-width: 1180px;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.week-timeline-corner,
.week-timeline-dayhead,
.week-timeline-time,
.week-timeline-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.week-timeline-corner,
.week-timeline-dayhead {
    background: rgba(255, 255, 255, 0.03);
}

.week-timeline-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.week-timeline-dayhead {
    display: grid;
    gap: 4px;
    align-content: center;
    min-height: 76px;
    padding: 12px 14px;
}

.week-timeline-dayhead strong {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.week-timeline-dayhead span,
.week-timeline-dayhead small {
    color: var(--muted);
}

.week-timeline-dayhead.is-today {
    background: linear-gradient(135deg, rgba(126, 38, 55, 0.3), rgba(255, 255, 255, 0.04));
}

.week-timeline-time {
    min-height: 84px;
    padding: 10px 12px;
    text-align: right;
    font-size: 0.78rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.week-timeline-cell {
    position: relative;
    min-height: 84px;
    padding: 8px;
    display: flex;
    align-items: stretch;
    transition: background 0.18s ease;
}

.week-timeline-cell.is-empty:hover {
    background: rgba(126, 38, 55, 0.12);
}

.week-timeline-add {
    opacity: 0;
    align-self: flex-start;
    font-size: 0.76rem;
    color: var(--muted);
    transition: opacity 0.18s ease;
}

.week-timeline-cell.is-empty:hover .week-timeline-add {
    opacity: 1;
}

.week-event-card {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(240, 183, 92, 0.16);
    border: 1px solid rgba(240, 183, 92, 0.22);
}

.week-event-card strong {
    font-size: 0.9rem;
}

.week-event-card small {
    color: var(--muted);
}

.week-timeline-cell.status-concluido .week-event-card {
    background: rgba(76, 175, 124, 0.16);
    border-color: rgba(76, 175, 124, 0.28);
}

.week-timeline-cell.status-cancelado .week-event-card {
    background: rgba(218, 95, 104, 0.14);
    border-color: rgba(218, 95, 104, 0.26);
}

.week-direct-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.week-direct-column {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.week-direct-column h3 {
    margin: 0;
    font-size: 0.92rem;
}

.week-direct-column h3 span,
.week-direct-item span {
    color: var(--muted);
}

.week-direct-item {
    display: grid;
    gap: 2px;
}

.stack {
    display: grid;
    gap: 12px;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-layout {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 18px;
}

.login-highlight,
.login-card {
    min-height: 560px;
}

.login-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(167, 56, 79, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(239, 229, 219, 0.03), rgba(126, 38, 55, 0.1)),
        linear-gradient(180deg, #141417, #0d0d10);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.login-highlight::after {
    content: "";
    position: absolute;
    inset: auto -8% -26% auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 56, 79, 0.22), transparent 60%);
    pointer-events: none;
}

.hero-brand {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

.hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38));
}

.hero-brand .eyebrow {
    margin-bottom: 8px;
}

.login-highlight h1 {
    margin: 0;
    font-size: clamp(2.2rem, 3.2vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 12ch;
    color: var(--cream);
    text-wrap: balance;
}

.login-highlight p:not(.eyebrow) {
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.login-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.login-badges span,
.login-hint {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.form-card {
    display: grid;
    gap: 14px;
}

.login-card {
    align-content: center;
    padding: 30px;
}

.login-card-actions {
    display: flex;
    justify-content: flex-end;
}

.login-card h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    color: var(--cream);
}

.status-low-stock {
    color: var(--warning);
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions .btn,
.actions a,
td .badge {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .grid.cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.cards-3,
    .filters,
    .filters-finance-dashboard,
    .filters-schedule,
    .form-grid,
    .form-grid.form-grid-3 {
        grid-template-columns: 1fr;
    }

    .grid.columns-2 {
        grid-template-columns: 1fr;
    }

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

    .login-layout {
        width: min(920px, 100%);
        grid-template-columns: 1fr;
    }

    .login-highlight,
    .login-card {
        min-height: auto;
    }

    .login-highlight h1 {
        max-width: 14ch;
    }
}

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

@media (max-width: 880px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 20;
        transition: transform 0.25s ease;
        transform: translateX(-100%);
        width: min(86vw, 280px);
        height: 100vh;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 19;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        border: 0;
        padding: 0;
    }

    .sidebar-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .topbar > div:first-of-type {
        min-width: 0;
        flex: 1 1 200px;
    }

    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }

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

    .app-content {
        padding: 16px;
    }

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

    .hero-brand {
        grid-template-columns: 78px 1fr;
        gap: 16px;
    }

    .hero-logo {
        width: 78px;
        height: 78px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
    }

    .toolbar,
    .split-header {
        align-items: stretch;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .week-direct-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar > .btn,
    .toolbar > a.btn,
    .filters-submit .btn {
        width: 100%;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 640px;
    }
}

@media (max-width: 560px) {
    html {
        font-size: 14px;
    }

    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }

    .card {
        padding: 16px;
    }

    .app-content {
        padding: 12px;
    }

    .topbar {
        gap: 10px;
    }

    .topbar h1 {
        font-size: 1.55rem;
    }

    label {
        gap: 6px;
        font-size: 0.88rem;
    }

    input,
    select,
    textarea {
        min-height: 42px;
        padding: 10px 11px;
        font-size: 0.95rem;
    }

    select {
        padding-right: 28px;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .table-wrapper {
        margin-inline: -4px;
        padding-inline: 4px 10px;
    }

    table {
        min-width: 680px;
    }

    .login-body {
        padding: 12px;
    }

    .login-highlight {
        display: none;
    }

    .login-card {
        min-height: auto;
        padding: 20px 16px;
    }

    .login-card h2 {
        font-size: 1.3rem;
    }

    .calendar-scroll {
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 4px;
        min-width: 620px;
    }

    .calendar-weekdays span {
        font-size: 0.72rem;
        padding: 6px 4px;
    }

    .calendar-day {
        min-height: 88px;
        min-width: 84px;
        padding: 8px 7px;
        gap: 6px;
    }

    .calendar-count,
    .calendar-subcount,
    .calendar-empty {
        font-size: 0.72rem;
    }

    .week-timeline-scroll {
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .week-timeline {
        min-width: 980px;
    }

    .week-timeline-corner,
    .week-timeline-dayhead {
        min-height: 68px;
    }

    .week-timeline-time,
    .week-timeline-cell {
        min-height: 74px;
    }

    .week-direct-board {
        grid-template-columns: 1fr;
    }

    .sale-item-actions {
        justify-content: stretch;
    }

    .sale-item-actions .btn {
        width: 100%;
    }

    .form-grid,
    .form-grid.form-grid-3,
    .schedule-direct-grid,
    .filters,
    .filters-finance-dashboard,
    .filters-schedule {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .split-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-item {
        padding: 12px;
    }

    .brand {
        padding: 8px;
    }

    .brand-logo-wrap {
        width: 58px;
        height: 58px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }
}
