*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

input,
textarea {
    font: inherit
}

img,
svg {
    display: block;
    max-width: 100%
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --navy: #081221;
    --bg: #f5f7fb;
    --surface: #fff;
    --border: #e3e9f2;
    --text: #0f172a;
    --muted: #64748b;
    --green: #16a34a;
    --red: #dc2626;
    --orange: #ea580c;
    --purple: #7c3aed;
    --shadow: 0 12px 35px rgba(15, 23, 42, .06)
}

html {
    scroll-behavior: smooth
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif
}

button,
a,
select {
    font: inherit
}

.app {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: flex;
    width: 260px;
    flex-direction: column;
    padding: 20px 15px;
    background: var(--navy);
    color: #fff
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 20px
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .28)
}

.brand strong {
    display: block;
    font-size: 19px
}

.brand span {
    display: block;
    margin-top: 3px;
    color: #60a5fa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px
}

.company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04)
}

.company-avatar,
.profile-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800
}

.company-avatar {
    width: 36px;
    height: 36px
}

.company-info {
    min-width: 0
}

.company-info strong,
.company-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.company-info strong {
    font-size: 12px
}

.company-info span {
    margin-top: 3px;
    color: #7890ae;
    font-size: 9px
}

.menu {
    flex: 1;
    overflow: auto;
    padding-right: 3px;
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
    scrollbar-width: thin
}

.menu::-webkit-scrollbar {
    width: 5px
}

.menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(148, 163, 184, .28)
}

.menu-title {
    margin: 17px 0 7px;
    padding: 0 12px;
    color: #526985;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px
}

.menu-item {
    display: grid !important;
    width: 100%;
    min-height: 43px;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin-bottom: 3px;
    padding: 11px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9db0c9 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: .18s ease
}

.menu-item:hover,
.menu-item:focus-visible {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
    outline: 0
}

.menu-item.active {
    background: linear-gradient(135deg, #2563eb, #2f6fec);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .22)
}

.menu-icon {
    display: grid;
    width: 22px;
    place-items: center
}

.sidebar-bottom {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08)
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #7890ae;
    font-size: 10px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12)
}

.system-status.offline {
    color: #fca5a5
}

.system-status.offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .12)
}

.logout {
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #a8b7cb;
    font-weight: 700;
    text-align: left;
    cursor: pointer
}

.logout:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff
}

.main {
    min-height: 100vh;
    margin-left: 260px
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(20px, 3vw, 38px);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px)
}

.header-left,
.header-right,
.profile {
    display: flex;
    align-items: center
}

.header-left {
    gap: 12px
}

.header-left h1 {
    font-size: 20px
}

.header-left p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px
}

.header-right {
    gap: 10px
}

.profile {
    gap: 9px
}

.profile-avatar {
    width: 38px;
    height: 38px
}

.profile strong,
.profile span {
    display: block
}

.profile strong {
    font-size: 12px
}

.profile span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px
}

.icon-button,
.mobile-menu {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 18px;
    cursor: pointer;
    transition: .18s
}

.icon-button:hover,
.mobile-menu:hover {
    border-color: #bfd2f5;
    background: #eff6ff;
    color: var(--primary);
    transform: translateY(-1px)
}

.mobile-menu {
    display: none
}

.content {
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: 32px clamp(20px, 3vw, 38px) 24px
}

.welcome-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.7px
}

.welcome-row h2 {
    margin-top: 6px;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.7px
}

.welcome-row p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px
}

.primary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    transition: .18s
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .28)
}

kbd {
    padding: 3px 6px;
    border: 1px solid #d6dfec;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 9px;
    font-weight: 800
}

.primary-button kbd {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .15);
    color: #fff
}

.sync-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -8px 0 18px;
    padding: 11px 14px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px
}

.sync-note span {
    color: #f97316
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: .2s
}

.stat-card:before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--primary);
    content: ""
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .09)
}

.stat-card.orders:before {
    background: var(--green)
}

.stat-card.stock:before {
    background: var(--orange)
}

.stat-card.customers:before {
    background: var(--purple)
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.stat-icon {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    place-items: center;
    border-radius: 11px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900
}

.orders .stat-icon {
    background: #ecfdf3;
    color: var(--green)
}

.stock .stat-icon {
    background: #fff7ed;
    color: var(--orange)
}

.customers .stat-icon {
    background: #f5f3ff;
    color: var(--purple)
}

.stat-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 9px;
    font-weight: 850
}

.stat-badge.neutral {
    background: #f1f5f9;
    color: #64748b
}

.stat-badge.attention {
    background: #fff7ed;
    color: #c2410c
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 11px
}

.stat-card strong {
    display: block;
    margin: 7px 0 8px;
    font-size: clamp(22px, 2.5vw, 29px);
    letter-spacing: -.6px
}

.stat-card small {
    color: #8a9ab1;
    font-size: 9px
}

.stat-card small b {
    color: #475569
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
    gap: 16px;
    margin-top: 16px
}

.panel {
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow)
}

.chart-panel,
.activity-panel,
.attention-panel {
    padding: 20px
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.panel-header h3 {
    font-size: 14px
}

.panel-header p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px
}

.panel-header a {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none
}

.panel-header select {
    padding: 9px 30px 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-size: 10px;
    outline: none
}

.chart-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 19px
}

.chart-summary strong {
    font-size: 20px
}

.chart-summary span {
    color: var(--muted);
    font-size: 9px
}

.bars {
    display: grid;
    height: 180px;
    grid-template-columns: repeat(7, minmax(18px, 1fr));
    align-items: end;
    gap: 12px;
    margin-top: 18px;
    padding: 10px 4px 0;
    border-bottom: 1px solid var(--border);
    background: repeating-linear-gradient(to top, transparent 0, transparent 44px, #f1f5f9 45px)
}

.bar-column {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px
}

.bar {
    width: min(100%, 38px);
    min-height: 5px;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .16);
    transform-origin: bottom;
    animation: growBar .45s ease both
}

.bar:hover {
    filter: brightness(1.06)
}

.bar-column small {
    width: 100%;
    overflow: hidden;
    color: #8a9ab1;
    font-size: 8px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap
}

@keyframes growBar {
    from {
        transform: scaleY(.08);
        opacity: .35
    }

    to {
        transform: scaleY(1);
        opacity: 1
    }
}

.activity-list {
    display: grid;
    gap: 7px;
    margin-top: 16px
}

.activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 11px;
    background: #f8fafc
}

.activity-symbol {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 12px;
    font-weight: 900
}

.activity-info {
    min-width: 0
}

.activity-info strong,
.activity-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.activity-info strong {
    font-size: 10px
}

.activity-info span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.activity-value {
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap
}

.empty-mini {
    padding: 28px 12px;
    color: #94a3b8;
    font-size: 10px;
    text-align: center
}

.attention-panel {
    margin-top: 16px
}

.stock-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px
}

.stock-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ffedd5;
    border-radius: 11px;
    background: #fffaf5
}

.stock-item div {
    min-width: 0
}

.stock-item strong,
.stock-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.stock-item strong {
    font-size: 10px
}

.stock-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px
}

.stock-amount {
    flex: 0 0 auto;
    color: #c2410c !important;
    font-size: 10px !important;
    font-weight: 900
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 3px 0;
    color: #94a3b8;
    font-size: 9px
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
    max-width: 360px;
    padding: 12px 15px;
    border-radius: 11px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .2s
}

.toast.show {
    opacity: 1;
    transform: none
}

.toast.error {
    background: #b91c1c
}

.toast.success {
    background: #15803d
}

.sidebar-overlay {
    display: none
}

.stat-card {
    text-decoration: none;
    color: inherit
}

.sync-status {
    margin: 0 10px 7px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(34, 197, 94, .1);
    color: #86efac;
    font-size: 9px;
    font-weight: 800
}

.sync-status.offline,
.sync-status.error {
    background: rgba(239, 68, 68, .12);
    color: #fca5a5
}

.sync-status.pending {
    background: rgba(245, 158, 11, .12);
    color: #fcd34d
}

.sync-status.syncing {
    background: rgba(59, 130, 246, .14);
    color: #93c5fd
}

.system-status.syncing .status-dot {
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .14);
    animation: pulseStatus 1s infinite
}

@keyframes pulseStatus {
    50% {
        opacity: .45
    }
}

.command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 16px;
    margin-top: 16px
}

.quick-panel,
.alerts-panel {
    padding: 20px
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px
}

.quick-action {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
    color: var(--text);
    text-decoration: none;
    transition: .18s
}

.quick-action:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-2px)
}

.quick-action>span:first-child {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: var(--primary);
    font-size: 17px
}

.quick-action strong,
.quick-action small {
    display: block
}

.quick-action strong {
    font-size: 10px
}

.quick-action small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.quick-action>b {
    color: #94a3b8;
    font-size: 13px
}

.alert-count {
    display: grid;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    place-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10px
}

.alerts-list {
    display: grid;
    gap: 7px;
    margin-top: 16px
}

.alert-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    text-decoration: none
}

.alert-item:hover {
    border-color: #cbd5e1;
    transform: translateX(2px)
}

.alert-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: var(--orange)
}

.alert-copy {
    min-width: 0
}

.alert-copy strong,
.alert-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.alert-copy strong {
    font-size: 9px
}

.alert-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.alert-item>b {
    color: #94a3b8
}

.alert-item.danger .alert-icon {
    background: #fef2f2;
    color: var(--red)
}

.alert-item.info .alert-icon {
    background: #eff6ff;
    color: var(--primary)
}

.alert-item.sync .alert-icon {
    background: #f5f3ff;
    color: var(--purple)
}

.alert-item.neutral .alert-icon {
    background: #f1f5f9;
    color: #475569
}

.alerts-empty {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center
}

.alerts-empty>span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: var(--green);
    font-weight: 900
}

.alerts-empty strong {
    margin-top: 8px;
    font-size: 10px
}

.alerts-empty small {
    margin-top: 4px;
    font-size: 8px
}

.icon-button.loading {
    animation: spinRefresh .8s linear infinite
}

@keyframes spinRefresh {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .dashboard-grid,
    .command-grid {
        grid-template-columns: 1fr
    }

    .activity-list {
        grid-template-columns: repeat(2, 1fr)
    }

    .cash-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.alert-total {
    display: grid;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    place-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10px
}

.quick-action kbd {
    justify-self: end
}

.cash-panel {
    margin-top: 16px;
    padding: 20px
}

.cash-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px
}

.cash-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #f8fafc)
}

.cash-card:before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 13px 0 0 13px;
    background: var(--green);
    content: ""
}

.cash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.cash-card-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px
}

.cash-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: #ecfdf3;
    color: #15803d;
    font-weight: 900
}

.cash-card-title div {
    min-width: 0
}

.cash-card-title strong,
.cash-card-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.cash-card-title strong {
    font-size: 11px
}

.cash-card-title small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.cash-live {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #15803d;
    font-size: 8px;
    font-weight: 850
}

.cash-live:before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
    content: ""
}

.cash-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 9px;
    background: #f8fafc
}

.cash-meta span {
    color: var(--muted);
    font-size: 8px
}

.cash-meta strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 10px
}

.cash-alert-button {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #fed7aa;
    border-radius: 9px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer
}

.cash-alert-button:hover {
    border-color: #fdba74;
    background: #ffedd5
}

.cash-empty {
    grid-column: 1/-1;
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-size: 10px
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, .62);
    backdrop-filter: blur(4px)
}

.modal-overlay.show {
    display: flex
}

.alert-modal {
    width: min(520px, 100%);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(2, 6, 23, .28)
}

.alert-modal>header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 22px;
    border-bottom: 1px solid var(--border)
}

.alert-modal h2 {
    margin-top: 6px;
    font-size: 20px
}

.alert-modal header p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px
}

.alert-modal header button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    cursor: pointer
}

.alert-modal form {
    display: grid;
    gap: 8px;
    padding: 22px
}

.alert-modal label {
    margin-top: 5px;
    color: #334155;
    font-size: 10px;
    font-weight: 800
}

.alert-modal select,
.alert-modal textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    outline: none
}

.alert-modal textarea {
    resize: vertical
}

.alert-modal select:focus,
.alert-modal textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1)
}

.alert-modal footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 10px
}

.secondary-button {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-weight: 800;
    cursor: pointer
}

@media(max-width:820px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .22s
    }

    .sidebar.open {
        transform: none
    }

    .main {
        margin-left: 0
    }

    .mobile-menu {
        display: grid
    }

    .sidebar-overlay.show {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        background: rgba(2, 6, 23, .52)
    }

    .content {
        padding-top: 24px
    }

    .stock-list {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    .header {
        min-height: 65px
    }

    .profile>div:last-child {
        display: none
    }

    .welcome-row {
        align-items: flex-start;
        flex-direction: column
    }

    .primary-button {
        width: 100%;
        justify-content: center
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .stat-card {
        padding: 15px
    }

    .stat-card strong {
        font-size: 20px
    }

    .dashboard-grid,
    .command-grid {
        gap: 10px
    }

    .quick-panel,
    .alerts-panel,
    .cash-panel {
        padding: 15px
    }

    .quick-actions,
    .cash-list {
        grid-template-columns: 1fr
    }

    .chart-panel,
    .activity-panel,
    .attention-panel {
        padding: 15px
    }

    .bars {
        gap: 6px;
        height: 155px
    }

    .activity-list,
    .stock-list {
        grid-template-columns: 1fr
    }

    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column
    }

    .header-left p {
        display: none
    }

    .alert-modal>header,
    .alert-modal form {
        padding: 17px
    }

    .alert-modal footer {
        flex-direction: column-reverse
    }

    .alert-modal footer button {
        width: 100%
    }
}

/* Caixas em operação — atualização v25 */
.welcome-actions {
    display: flex;
    align-items: center;
    gap: 9px
}

.cash-shortcut {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: .18s
}

.cash-shortcut:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--primary);
    transform: translateY(-2px)
}

.cash-shortcut kbd {
    margin-left: 2px
}

.cash-panel:focus {
    outline: 3px solid rgba(37, 99, 235, .14);
    outline-offset: 4px
}

.cash-panel-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.cash-panel-actions>a {
    font-size: 10px;
    font-weight: 850
}

.cash-realtime {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 8px;
    font-weight: 850
}

.cash-realtime i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12)
}

.cash-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.cash-balance {
    color: #15803d !important
}

.cash-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px
}

.cash-view-button {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none
}

.cash-empty a {
    color: var(--primary);
    font-weight: 850;
    text-decoration: none
}

@media(max-width:720px) {
    .welcome-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column
    }

    .cash-shortcut,
    .welcome-actions .primary-button {
        width: 100%;
        justify-content: center
    }

    .cash-panel-actions {
        align-items: flex-end;
        flex-direction: column
    }

    .cash-list {
        grid-template-columns: 1fr
    }
}

.alert-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.alert-heading-actions a {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none
}

.alert-heading-actions a:hover {
    text-decoration: underline
}