:root {
    --navy: #071a35;
    --navy-2: #0c2445;
    --blue: #2158e8;
    --blue-dark: #1742bb;
    --green: #18a957;
    --green-dark: #128344;
    --red: #ef4444;
    --text: #0d1b37;
    --muted: #64748b;
    --line: #dbe3ef;
    --bg: #f5f8fc;
    --card: #ffffff;
    --shadow: 0 12px 30px rgba(11, 31, 63, .08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 285px;
    height: 100vh;
    background: linear-gradient(180deg, #061932, #0d2444);
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 8px 28px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 10px;
    font-size: 24px;
}

.brand h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1;
}

.brand p {
    margin: 5px 0 0;
    color: #bdc8d8;
    font-size: 14px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.menu-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #dbe5f4;
    min-height: 46px;
    padding: 12px 10px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: .2s ease;
}

.menu-item:hover,
.menu-item.active,
.menu-group.open > .menu-toggle {
    background: linear-gradient(135deg, var(--blue), #1642a8);
    color: #fff;
}

.menu-item i {
    font-size: 20px;
}

.menu-toggle {
    justify-content: space-between;
}

.menu-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.submenu {
    display: none;
    padding: 2px 0 6px 42px;
}

.menu-group.open .submenu {
    display: block;
}

.submenu a {
    display: block;
    color: #cdd8e8;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 15px;
}

.submenu a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.menu-item.locked {
    cursor: not-allowed;
    opacity: .82;
    justify-content: space-between;
}

.menu-item.locked span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item.locked:hover {
    background: rgba(255,255,255,.06);
    color: #dbe5f4;
}

.menu-item.locked > i:last-child {
    font-size: 16px;
    opacity: .8;
}

.stock-item b small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
    text-align: right;
}

.store-card {
    margin-top: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255,255,255,.03);
}

.store-card span,
.store-card small {
    display: block;
    color: #d4dfef;
    margin-top: 7px;
}

.store-card small b {
    width: 10px;
    height: 10px;
    display: inline-block;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 5px;
}

.main {
    margin-left: 285px;
    min-height: 100vh;
}

.topbar {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hamburger {
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--text);
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-text {
    font-size: 14px;
    color: var(--text);
}

.notification {
    position: relative;
    font-size: 24px;
}

.notification b {
    position: absolute;
    right: -7px;
    top: -8px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 6px;
}

.user-pill {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.user-pill i:first-child {
    font-size: 32px;
}

.content {
    padding: 28px;
}

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

.page-header h2 {
    font-size: 30px;
    margin: 0;
}

.page-header p {
    margin: 7px 0 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--blue);
}

.btn {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 18px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
    font-size: 15px;
}

.btn.primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn.primary:hover {
    background: var(--blue-dark);
}

.btn.success {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn.success:hover {
    background: var(--green-dark);
}

.btn.secondary:hover {
    background: #f2f6fb;
}

.btn.small {
    padding: 9px 12px;
    font-size: 14px;
}

.btn.outline-danger {
    color: var(--red);
    border-color: #fecaca;
}

.btn.outline-primary {
    color: var(--blue);
    border-color: #b9c9ff;
}

.full-btn {
    width: 100%;
    justify-content: center;
}

.flash-area {
    margin-bottom: 15px;
}

.flash {
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 8px;
    background: #e8f7ef;
    border: 1px solid #bdebd0;
    color: #126c3a;
    font-weight: 600;
}

.flash.error {
    background: #fff0f0;
    border-color: #fecaca;
    color: #b91c1c;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.kpi-card,
.panel,
.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kpi-card {
    padding: 22px;
}

.kpi-card span {
    color: var(--muted);
    font-weight: 600;
}

.kpi-card h3 {
    font-size: 27px;
    margin: 12px 0;
}

.positive {
    color: var(--green);
}

.danger {
    color: var(--red);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.panel {
    padding: 0;
    overflow: hidden;
}

.panel-header {
    min-height: 58px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    margin: 0;
}

.panel-header a {
    color: var(--blue);
    font-weight: 700;
}

.panel canvas {
    padding: 22px;
}

.stock-list {
    padding: 12px 16px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
}

.stock-item strong,
.stock-item span {
    display: block;
}

.stock-item span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.stock-item b {
    color: var(--red);
}

.empty-state {
    text-align: center;
    padding: 35px 10px;
    color: var(--muted);
}

.empty-state i {
    font-size: 38px;
    color: var(--blue);
}

.empty-state a {
    color: var(--blue);
    font-weight: 700;
}

.form-card {
    overflow: hidden;
}

.form-section-title {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    color: var(--blue);
    font-weight: 800;
    font-size: 18px;
    position: relative;
}

.form-section-title::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 0;
    height: 3px;
    width: 190px;
    background: var(--blue);
}

.form-grid {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 9px;
}

.field label b {
    color: var(--red);
}

.field input,
.field select,
.field textarea,
.table-search {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    min-height: 45px;
    padding: 0 13px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.table-search:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 88, 232, .12);
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.field textarea {
    min-height: 95px;
    padding-top: 12px;
    resize: vertical;
}

.field.full {
    padding: 0 28px 18px;
}

.checkbox-line {
    padding: 0 28px 24px;
    display: flex;
    justify-content: flex-end;
}

.checkbox-line label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.form-actions {
    padding: 18px 28px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions > div {
    display: flex;
    gap: 12px;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

.data-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.data-table td small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.right {
    text-align: right !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
}

.badge.ok {
    background: #e7f7ee;
    color: #137642;
}

.badge.danger {
    background: #ffe9e9;
    color: #bb1f1f;
}

.badge.muted {
    background: #eef2f7;
    color: #64748b;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.icon-btn {
    border: 1px solid var(--line);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: var(--blue);
    cursor: pointer;
}

.icon-btn.danger {
    color: var(--red);
}

.icon-btn.success {
    color: var(--green);
}

.full-field {
    grid-column: 1 / -1;
}

.muted {
    color: var(--muted);
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    gap: 18px;
}

.tabs {
    display: flex;
    gap: 18px;
    padding: 0 20px;
    height: 58px;
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
}

.tab {
    border: 0;
    background: transparent;
    font-weight: 800;
    color: var(--text);
    padding: 18px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: var(--blue);
    border-color: var(--blue);
}

.search-box {
    margin: 20px;
    display: grid;
    grid-template-columns: 28px 1fr 34px 54px;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 48px;
    overflow: hidden;
}

.search-box i {
    margin-left: 12px;
    color: var(--text);
}

.search-box input {
    border: 0;
    height: 46px;
    outline: 0;
    font-size: 15px;
}

.search-box span {
    color: var(--muted);
    border: 1px solid #cbd5e1;
    padding: 3px 6px;
    border-radius: 5px;
}

.search-box button {
    height: 48px;
    border: 0;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 20px 18px;
}

.category-pills button {
    border: 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.category-pills button.active {
    background: var(--blue);
    color: #fff;
}

.product-grid {
    padding: 0 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 14px;
}

.product-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    min-height: 155px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(33, 88, 232, .12);
    border-color: var(--blue);
}

.product-img {
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 34px;
    margin-bottom: 8px;
}

.product-card strong,
.product-card span,
.product-card small {
    display: block;
}

.product-card span {
    color: var(--green);
    font-weight: 900;
    margin: 9px 0;
}

.product-card small {
    color: #53627a;
}

.sale-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-header > div {
    display: flex;
    gap: 8px;
}

.cart-table {
    min-height: 350px;
}

.cart-head {
    display: grid;
    grid-template-columns: 1.2fr .6fr .6fr .6fr;
    gap: 12px;
    padding: 13px 20px;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
}

.cart-row {
    display: grid;
    grid-template-columns: 1.2fr .6fr .6fr .6fr 34px;
    gap: 8px;
    padding: 13px 20px;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
}

.qty-control {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.qty-control button {
    width: 28px;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.qty-control span {
    width: 32px;
    text-align: center;
    padding: 5px 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.remove-item {
    border: 0;
    background: transparent;
    color: var(--red);
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    color: var(--muted);
    padding: 50px 10px;
}

.obs-line {
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: var(--blue);
}

.obs-line input {
    border: 0;
    outline: 0;
    width: 100%;
    color: var(--text);
}

.payment-panel {
    padding: 16px;
}

.totals {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.totals > div {
    display: flex;
    justify-content: space-between;
    margin: 9px 0;
}

.total-line {
    font-size: 20px;
    padding-top: 8px;
}

.total-line strong {
    color: var(--blue);
    font-size: 28px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-bottom: 16px;
}

.payment {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    padding: 13px 8px;
    cursor: pointer;
    font-weight: 800;
}

.payment.active {
    border-color: var(--green);
    color: var(--green);
    background: #f0fbf5;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.change-box span {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.change-box strong {
    display: block;
    color: var(--green);
    font-size: 26px;
}

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

    .dashboard-grid,
    .pos-layout {
        grid-template-columns: 1fr;
    }

    .sale-panel {
        min-width: 0;
    }

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

@media (max-width: 850px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s ease;
    }

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

    .main {
        margin-left: 0;
    }

    .content {
        padding: 18px;
    }

    .form-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .page-header,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-grid,
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logout-link {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    font-size: 19px;
}

.logout-link:hover {
    color: var(--red);
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(33, 88, 232, .22), transparent 34%),
        linear-gradient(135deg, #061932, #0d2444 54%, #f5f8fc 54%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 42px;
    padding: 44px clamp(22px, 6vw, 90px);
}

.login-hero {
    color: #fff;
    max-width: 640px;
}

.login-brand {
    padding: 0 0 35px;
}

.login-hero h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.04;
    margin: 0 0 18px;
}

.login-hero > p {
    color: #d4dfef;
    font-size: 19px;
    line-height: 1.6;
    margin: 0;
}

.login-benefits {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.login-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #edf4ff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 12px 16px;
    width: fit-content;
}

.login-card {
    width: min(100%, 470px);
    justify-self: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(6, 25, 50, .22);
    padding: 34px;
}

.login-card-header h2 {
    margin: 0;
    font-size: 30px;
}

.login-card-header p {
    margin: 9px 0 24px;
    color: var(--muted);
}

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


.login-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: -4px;
    font-size: 14px;
}

.login-actions a {
    color: var(--blue);
    font-weight: 700;
}

.login-actions a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.login-demo-box {
    margin-top: 22px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.login-demo-box strong,
.login-demo-box span,
.login-demo-box small {
    display: block;
}

.login-demo-box span {
    margin-top: 7px;
    color: var(--text);
    font-weight: 600;
}

.login-demo-box small {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-card {
        justify-self: stretch;
        width: 100%;
    }
}

.inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-actions form {
    margin: 0;
}

.btn.mini {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 10px;
}

.checkbox-line label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #263238;
}

.checkbox-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
}

/* ===== Menu lateral animado / estado ativo ===== */
:root {
    --sidebar-open-width: 285px;
    --sidebar-closed-width: 86px;
}

.sidebar,
.main,
.brand-text,
.menu-item em,
.submenu,
.store-card,
.menu-chevron,
.sidebar-backdrop {
    transition: all .28s cubic-bezier(.2, .8, .2, 1);
}

.sidebar {
    width: var(--sidebar-open-width);
    overflow-x: hidden;
    box-shadow: 16px 0 34px rgba(2, 8, 23, .08);
}

.main {
    margin-left: var(--sidebar-open-width);
    transition-property: margin-left;
}

.brand-text,
.menu-item em,
.submenu a span,
.store-card strong,
.store-card span,
.store-card small {
    white-space: nowrap;
}

.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item::before,
.submenu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    transition: background .2s ease, opacity .2s ease;
}

.menu-item:hover,
.menu-item.active,
.menu-group.open > .menu-toggle {
    transform: translateX(2px);
}

.menu-item.active::before,
.menu-group.open > .menu-toggle::before {
    background: #8fb2ff;
}

.menu-toggle .menu-chevron {
    transform: rotate(0deg);
}

.menu-group.open > .menu-toggle .menu-chevron {
    transform: rotate(180deg);
}

.submenu {
    display: grid !important;
    grid-template-rows: 0fr;
    opacity: 0;
    padding: 0 0 0 42px;
    pointer-events: none;
}

.submenu > a {
    min-height: 0;
    overflow: hidden;
}

.menu-group.open .submenu {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 4px 0 8px 42px;
    pointer-events: auto;
}

.submenu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0;
    color: #cdd8e8;
    border: 1px solid transparent;
}

.submenu a i {
    font-size: 16px;
    opacity: .85;
}

.submenu a.active {
    color: #fff;
    background: rgba(33, 88, 232, .22);
    border-color: rgba(143, 178, 255, .24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.submenu a.active::before {
    background: #8fb2ff;
}

.menu-item.locked {
    background: transparent;
}

.menu-item.locked i:last-child {
    margin-left: auto;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, .42);
    opacity: 0;
    pointer-events: none;
    z-index: 18;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-closed-width);
    padding-left: 13px;
    padding-right: 13px;
}

body.sidebar-collapsed .main {
    margin-left: var(--sidebar-closed-width);
}

body.sidebar-collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .menu-item em,
body.sidebar-collapsed .menu-chevron,
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .store-card {
    opacity: 0;
    width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

body.sidebar-collapsed .menu {
    align-items: center;
}

body.sidebar-collapsed .menu-group,
body.sidebar-collapsed .menu-item {
    width: 56px;
}

body.sidebar-collapsed .menu-item {
    min-height: 48px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    border-radius: 16px;
}

body.sidebar-collapsed .menu-item span {
    justify-content: center;
    gap: 0;
}

body.sidebar-collapsed .menu-item i:first-child {
    font-size: 22px;
}

body.sidebar-collapsed .menu-item.locked i:last-child {
    position: absolute;
    right: 9px;
    bottom: 8px;
    font-size: 11px;
    opacity: .75;
}

body.sidebar-collapsed .menu-item:hover,
body.sidebar-collapsed .menu-item.active,
body.sidebar-collapsed .menu-group.open > .menu-toggle {
    transform: translateY(-1px);
}

.hamburger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.hamburger:hover {
    background: #eef4ff;
    color: var(--blue);
    transform: scale(1.03);
}

@media (max-width: 850px) {
    body.sidebar-collapsed .sidebar {
        width: var(--sidebar-open-width);
        padding: 22px 16px;
    }

    body.sidebar-collapsed .main,
    .main {
        margin-left: 0;
    }

    body.sidebar-collapsed .brand-text,
    body.sidebar-collapsed .menu-item em,
    body.sidebar-collapsed .menu-chevron,
    body.sidebar-collapsed .store-card {
        opacity: 1;
        width: auto;
        max-width: unset;
        pointer-events: auto;
        overflow: visible;
    }

    body.sidebar-collapsed .menu {
        align-items: stretch;
    }

    body.sidebar-collapsed .menu-group,
    body.sidebar-collapsed .menu-item {
        width: 100%;
    }

    body.sidebar-collapsed .menu-item {
        justify-content: space-between;
        padding: 12px 10px;
        border-radius: 9px;
    }

    .sidebar {
        transform: translateX(-105%);
        width: var(--sidebar-open-width);
    }

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

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

    .topbar-right {
        gap: 12px;
    }

    .date-text {
        display: none;
    }
}

/* ===== Correção visual do menu: espaçamento, submenus e ícones ===== */
.menu {
    gap: 8px;
}

.menu-group {
    width: 100%;
    margin: 0;
}

.menu-item {
    min-height: 44px;
    padding: 11px 10px;
}

.menu-item span {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.menu-item em {
    font-style: normal;
}

.menu-svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.submenu {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0 0 42px;
    pointer-events: none;
    transition: max-height .28s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, padding .28s ease;
}

.submenu > a {
    min-height: 36px;
    height: auto;
    overflow: visible;
}

.menu-group.open .submenu {
    max-height: 130px;
    opacity: 1;
    padding: 4px 0 8px 42px;
    pointer-events: auto;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0;
    padding: 9px 9px;
    border-radius: 9px;
    line-height: 1.2;
}

.submenu a span {
    display: inline-block;
}

.submenu a.active {
    color: #fff;
    background: rgba(33, 88, 232, .28);
    border-color: rgba(143, 178, 255, .30);
}

.submenu a.active span {
    font-weight: 700;
}

.menu-item.locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item.locked .menu-svg {
    opacity: .9;
}

.menu-item.locked > i:last-child {
    flex: 0 0 auto;
}

body.sidebar-collapsed .menu-svg {
    width: 22px;
    height: 22px;
}

body.sidebar-collapsed .menu-item span {
    justify-content: center;
    gap: 0;
}

body.sidebar-collapsed .menu-item.locked .menu-svg {
    width: 22px;
    height: 22px;
}


/* ===== Ajuste PDV: manter a página de vendas inteira visível ===== */
.content:has(.sales-page) {
    height: calc(100vh - 74px);
    padding: 22px 28px 14px;
    overflow: hidden;
}

.sales-page {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sales-page .page-header {
    flex: 0 0 auto;
    margin-bottom: 16px;
}

.sales-page .page-header h2 {
    font-size: 26px;
}

.sales-page .page-header p {
    margin-top: 4px;
}

.sales-page .pos-layout {
    flex: 1 1 auto;
    min-height: 0;
}

.sales-page .panel,
.sales-page .sale-panel,
.sales-page .products-panel {
    min-height: 0;
}

.sales-page .products-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sales-page .tabs {
    flex: 0 0 auto;
    height: 52px;
}

.sales-page .tab {
    padding-top: 14px;
    padding-bottom: 14px;
}

.sales-page .search-box {
    flex: 0 0 auto;
    margin: 16px 20px;
    min-height: 44px;
}

.sales-page .search-box input {
    height: 42px;
}

.sales-page .search-box button {
    height: 44px;
}

.sales-page .category-pills {
    flex: 0 0 auto;
    gap: 10px;
    padding-bottom: 14px;
}

.sales-page .category-pills button {
    padding: 10px 16px;
}

.sales-page .product-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 16px;
    align-content: start;
}

.sales-page .product-card {
    min-height: 138px;
    padding: 12px;
}

.sales-page .product-img {
    height: 42px;
    font-size: 30px;
    margin-bottom: 6px;
}

.sales-page .product-card span {
    margin: 6px 0;
}

.sales-page .sale-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.sales-page .cart-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sales-page .panel-header.cart-header {
    flex: 0 0 auto;
    padding-top: 16px;
    padding-bottom: 12px;
}

.sales-page .cart-table {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sales-page .cart-head {
    flex: 0 0 auto;
    padding-top: 11px;
    padding-bottom: 11px;
}

.sales-page .cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.sales-page .cart-row {
    padding-top: 10px;
    padding-bottom: 10px;
}

.sales-page .empty-cart {
    padding: 34px 10px;
}

.sales-page .obs-line {
    flex: 0 0 auto;
    padding: 12px 18px;
}

.sales-page .payment-panel {
    flex: 0 0 auto;
    padding: 13px 16px;
}

.sales-page .totals {
    padding-bottom: 9px;
    margin-bottom: 12px;
}

.sales-page .totals > div {
    margin: 6px 0;
}

.sales-page .total-line {
    padding-top: 5px;
    font-size: 18px;
}

.sales-page .total-line strong {
    font-size: 26px;
}

.sales-page .payment-options {
    margin-bottom: 12px;
}

.sales-page .payment {
    padding: 11px 8px;
}

.sales-page .payment-grid {
    gap: 14px;
    margin-bottom: 12px;
}

.sales-page .field input {
    min-height: 40px;
}

.sales-page .change-box strong {
    font-size: 24px;
}

.sales-page .full-btn {
    min-height: 44px;
    justify-content: center;
}

@media (max-height: 820px) {
    .content:has(.sales-page) {
        padding-top: 16px;
        padding-bottom: 10px;
    }

    .sales-page .page-header {
        margin-bottom: 12px;
    }

    .sales-page .page-header h2 {
        font-size: 24px;
    }

    .sales-page .page-header p {
        font-size: 14px;
    }

    .sales-page .tabs {
        height: 48px;
    }

    .sales-page .search-box {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .sales-page .category-pills {
        padding-bottom: 10px;
    }

    .sales-page .product-card {
        min-height: 124px;
    }

    .sales-page .payment-panel {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .sales-page .payment {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 1180px) {
    .content:has(.sales-page) {
        height: auto;
        min-height: calc(100vh - 74px);
        overflow: visible;
    }

    .sales-page .products-panel,
    .sales-page .sale-panel,
    .sales-page .cart-panel,
    .sales-page .cart-table,
    .sales-page .cart-items,
    .sales-page .product-grid {
        overflow: visible;
    }
}

/* ===== Correções: menu recolhido + cards do PDV ===== */
@media (min-width: 851px) {
    :root {
        --sidebar-closed-width: 76px;
    }

    body.sidebar-collapsed .sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.sidebar-collapsed .menu {
        gap: 7px;
    }

    body.sidebar-collapsed .menu-group,
    body.sidebar-collapsed .menu-item {
        width: 48px;
        max-width: 48px;
    }

    body.sidebar-collapsed .menu-item {
        height: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 14px;
        flex: 0 0 48px;
        transform: none;
    }

    body.sidebar-collapsed .menu-item:hover,
    body.sidebar-collapsed .menu-item.active,
    body.sidebar-collapsed .menu-group.open > .menu-toggle {
        transform: translateY(-1px);
    }

    body.sidebar-collapsed .menu-item::before {
        top: 9px;
        bottom: 9px;
    }

    body.sidebar-collapsed .menu-item span {
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    body.sidebar-collapsed .menu-item i:first-child,
    body.sidebar-collapsed .menu-svg {
        width: 21px;
        height: 21px;
        font-size: 21px;
        flex: 0 0 21px;
    }

    body.sidebar-collapsed .menu-group.open .submenu,
    body.sidebar-collapsed .submenu {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }

    body.sidebar-collapsed .menu-group.open {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        overflow: hidden;
    }

    body.sidebar-collapsed .brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
}

.sales-page .product-grid {
    padding-top: 5px;
}

.sales-page .product-card:hover {
    transform: translateY(-1px);
}

/* Dashboard de vendas detalhado */
.dashboard-panel-header {
    align-items: flex-start;
    gap: 16px;
}

.dashboard-panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.chart-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: #eef3fb;
    border-radius: 12px;
    flex-shrink: 0;
}

.chart-period-btn {
    border: 0;
    min-width: 84px;
    padding: 9px 13px;
    border-radius: 9px;
    background: transparent;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.chart-period-btn:hover,
.chart-period-btn.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(33, 88, 232, .22);
}

.chart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 22px 0;
    padding: 13px 15px;
    border: 1px solid #e5edf8;
    border-radius: 12px;
    background: #f8fbff;
}

.chart-total-line span {
    color: var(--muted);
    font-weight: 700;
}

.chart-total-line strong {
    color: var(--blue);
    font-size: 22px;
}

.chart-wrapper {
    height: 330px;
    padding: 10px 18px 0;
}

.sales-chart-panel .panel canvas {
    padding: 0;
}

.category-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 22px 20px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e5edf8;
    color: #24324b;
    font-weight: 700;
    font-size: 13px;
}

.category-chip b {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--chip-color, var(--blue));
    flex-shrink: 0;
}

.category-chip.muted {
    color: var(--muted);
    font-weight: 600;
}

.daily-report-panel {
    margin-top: 18px;
}

.daily-report-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.daily-report-actions > span {
    color: var(--muted);
    font-weight: 700;
}

.daily-report-actions strong {
    color: var(--blue);
    font-size: 18px;
}

.report-table-wrapper {
    max-height: 350px;
    overflow: auto;
}

.report-table th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.report-table td {
    vertical-align: top;
}

.table-link {
    color: var(--blue);
    font-weight: 800;
}

.report-empty-state {
    min-height: 170px;
}

@media (max-width: 850px) {
    .dashboard-panel-header,
    .daily-report-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .chart-toolbar {
        width: 100%;
    }

    .chart-period-btn {
        flex: 1;
    }

    .chart-wrapper {
        height: 280px;
    }

    .daily-report-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Dashboard: downloads, resumo salvo e gráfico empilhado contínuo ===== */
.chart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sales-chart-panel canvas {
    image-rendering: auto;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 22px 4px;
}

.report-summary-card {
    border: 1px solid #e5edf8;
    border-radius: 13px;
    background: #f8fbff;
    padding: 15px;
    display: grid;
    gap: 7px;
}

.report-summary-card span {
    color: var(--muted);
    font-weight: 800;
}

.report-summary-card strong {
    color: var(--blue);
    font-size: 23px;
}

.report-summary-card small {
    color: var(--text);
    font-weight: 700;
}

.report-summary-card em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.daily-report-subtitle {
    padding: 12px 22px 10px;
}

.daily-report-subtitle h4 {
    margin: 0;
    font-size: 16px;
}

.daily-report-subtitle p {
    margin: 5px 0 0;
    color: var(--muted);
}

/* ===== PDV: carregando e confirmação profissional ao finalizar venda ===== */
.btn:disabled,
.btn.is-loading {
    opacity: .82;
    cursor: wait;
}

.btn-spinner,
.sale-feedback-spinner {
    display: inline-block;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: spin .75s linear infinite;
}

.btn-spinner {
    width: 16px;
    height: 16px;
}

.sale-feedback[hidden] {
    display: none !important;
}

.sale-feedback {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 26, 53, .42);
    backdrop-filter: blur(5px);
}

.sale-feedback-card {
    width: min(430px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 26, 53, .22);
    padding: 28px;
    text-align: center;
    animation: saleFeedbackIn .22s ease both;
}

.sale-feedback-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.sale-feedback-spinner {
    border-color: #dbe7ff;
    border-top-color: var(--blue);
}

.sale-feedback-success,
.sale-feedback-error {
    font-size: 56px;
    line-height: 1;
}

.sale-feedback-success {
    color: var(--green);
}

.sale-feedback-error {
    color: var(--red);
}

.sale-feedback-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.sale-feedback-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.sale-feedback-card .btn {
    margin: 18px auto 0;
    justify-content: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes saleFeedbackIn {
    from {
        transform: translateY(8px) scale(.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 850px) {
    .chart-actions,
    .chart-actions .btn {
        width: 100%;
    }

    .chart-actions .btn {
        justify-content: center;
    }

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

/* ===== Dashboard: filtros avançados do gráfico por período ===== */
.sales-period-filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 22px 0;
    padding: 13px;
    border: 1px solid #e5edf8;
    border-radius: 13px;
    background: #f8fbff;
}

.period-filter {
    display: grid;
    gap: 6px;
    min-width: 150px;
}

.period-filter[hidden] {
    display: none !important;
}

.period-filter label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.period-filter input,
.period-filter select {
    height: 38px;
    border: 1px solid #d8e3f2;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 0 11px;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.period-filter input:focus,
.period-filter select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 88, 232, .12);
}

.sales-period-filters .btn {
    height: 38px;
    white-space: nowrap;
}

.sales-period-filters .btn-spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    border-color: rgba(33, 88, 232, .22);
    border-top-color: var(--blue);
}

.chart-actions .btn.small {
    min-height: 40px;
}

@media (max-width: 1150px) {
    .chart-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .chart-toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .sales-period-filters {
        margin-inline: 16px;
    }

    .period-filter,
    .sales-period-filters .btn {
        width: 100%;
    }

    .chart-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .chart-period-btn {
        min-width: 0;
    }
}

/* ===== Notificações reais do topo ===== */
.notification {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    display: grid;
    place-items: center;
    position: relative;
    font-size: 24px;
    cursor: pointer;
    transition: .2s ease;
}

.notification-btn:hover,
.notification-btn[aria-expanded="true"] {
    background: #eef3fb;
    color: var(--blue);
}

.notification-btn b {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    border: 2px solid #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.notification-btn b[hidden] {
    display: none !important;
}

.notification-panel {
    position: absolute;
    right: -72px;
    top: calc(100% + 14px);
    width: min(390px, calc(100vw - 28px));
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(11, 31, 63, .20);
    overflow: hidden;
    z-index: 60;
    animation: notificationIn .18s ease-out;
}

.notification-panel[hidden] {
    display: none !important;
}

.notification-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 83px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #dbe3ef;
    border-top: 1px solid #dbe3ef;
    transform: rotate(45deg);
}

.notification-panel-header {
    padding: 16px 17px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fbfdff;
    position: relative;
    z-index: 1;
}

.notification-panel-header strong,
.notification-panel-header span {
    display: block;
}

.notification-panel-header strong {
    font-size: 16px;
    color: var(--text);
}

.notification-panel-header span {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.notification-panel-header button {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe6f4;
    border-radius: 10px;
    background: #fff;
    color: var(--blue);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s ease;
}

.notification-panel-header button:hover {
    background: #eef3fb;
}

.notification-panel-header button.is-loading i {
    animation: spin .8s linear infinite;
}

.notification-list {
    max-height: 430px;
    overflow: auto;
    padding: 10px;
}

.notification-item {
    border: 1px solid #e5edf8;
    border-radius: 15px;
    padding: 13px;
    background: #fff;
    display: grid;
    gap: 11px;
}

.notification-item + .notification-item {
    margin-top: 10px;
}

.notification-item-main {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef3fb;
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    font-size: 18px;
}

.notification-item.danger .notification-icon {
    background: #fff1f2;
    color: var(--red);
}

.notification-item.warning .notification-icon {
    background: #fffbeb;
    color: #d97706;
}

.notification-item.success .notification-icon {
    background: #ecfdf5;
    color: var(--green);
}

.notification-body {
    min-width: 0;
}

.notification-body strong {
    color: var(--text);
    font-size: 14px;
}

.notification-body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.notification-products {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.notification-products span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid #edf3fb;
}

.notification-products b {
    color: var(--text);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-products small {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.notification-products em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.notification-action {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 10px;
    background: #eef3fb;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.notification-action:hover {
    background: var(--blue);
    color: #fff;
}

.notification-empty {
    min-height: 165px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 8px;
    color: var(--muted);
    padding: 20px;
}

.notification-empty i {
    font-size: 34px;
    color: var(--green);
}

.notification-empty.error i {
    color: var(--red);
}

.notification-empty strong {
    color: var(--text);
}

.notification-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

@keyframes notificationIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .notification-panel {
        right: -118px;
    }

    .notification-panel::before {
        right: 128px;
    }

    .notification-products span {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* Logo / favicon GTSys */
.brand-icon-img {
    overflow: hidden;
    background: rgba(37, 99, 235, 0.12);
}

.brand-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-brand .brand-icon-img img {
    padding: 2px;
}

.sidebar.collapsed .brand-icon-img img,
.sidebar.is-collapsed .brand-icon-img img {
    padding: 3px;
}
