:root {
    --primary: #147d83;
    --primary-dark: #0d6267;
    --background: #f3f6f8;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e2e8f0;

    --sidebar-open: 250px;
    --sidebar-closed: 76px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   LAYOUT UTAMA
========================= */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-open) minmax(0, 1fr);
    transition: grid-template-columns 0.22s ease;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: var(--sidebar-closed) minmax(0, 1fr);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--primary);
    color: white;
}

.sidebar-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: white;
    color: var(--primary-dark);
    font-weight: 800;
}

.brand-text {
    min-width: 0;
    white-space: nowrap;
    transition:
        opacity 0.15s ease,
        width 0.2s ease;
}

.brand-text strong,
.brand-text small {
    display: block;
}

.brand-text strong {
    font-size: 14px;
}

.brand-text small {
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.75;
}

.sidebar-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.23);
}

.sidebar-nav {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 15px 11px;
}

.sidebar-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-icon {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 19px;
}

.sidebar-label {
    transition:
        opacity 0.15s ease,
        width 0.2s ease;
}

.sidebar-footer {
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 15px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    opacity: 0.8;
}

/* Sidebar tertutup */

.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-label {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-collapsed .brand {
    display: none;
}

.sidebar-collapsed .sidebar-toggle {
    margin: 0 auto;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar-collapsed .sidebar-footer {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

/* =========================
   HALAMAN UTAMA
========================= */

main {
    min-width: 0;
    padding: 28px;
}

main h1 {
    margin: 0;
    font-size: 30px;
}

main > p {
    margin-top: 8px;
    color: var(--muted);
}

main section {
    display: inline-block;
    width: calc(25% - 15px);
    min-height: 135px;
    margin: 18px 10px 0 0;
    padding: 20px;
    vertical-align: top;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

main section h3 {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

main section p {
    margin: 16px 0 0;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 800;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {
    main section {
        width: calc(50% - 14px);
    }
}

@media (max-width: 680px) {
    .app-shell,
    .app-shell.sidebar-collapsed {
        display: block;
    }

    .sidebar {
        min-height: auto;
    }

    .sidebar-header {
        min-height: 66px;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
    }

    .sidebar-link {
        min-width: max-content;
    }

    .sidebar-footer {
        display: none;
    }

    .sidebar-collapsed .brand {
        display: flex;
    }

    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .sidebar-label {
        width: auto;
        opacity: 1;
    }

    main {
        padding: 20px;
    }

    main section {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* =========================
   CONTENT AREA
========================= */

.content-area {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 24px 28px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-left {
    min-width: 0;
}

.topbar-left h1 {
    margin: 0;
    font-size: 24px;
}

.topbar-left p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shift-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
}

.shift-status strong,
.shift-status small {
    display: block;
}

.shift-status strong {
    font-size: 12px;
}

.shift-status small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.topbar-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.topbar-button:hover {
    background: #f8fafc;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 800;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 4px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
}

.user-info strong,
.user-info small {
    display: block;
}

.user-info strong {
    font-size: 13px;
}

.user-info small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-intro p {
    margin: 0;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.dashboard-card {
    min-height: 130px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.dashboard-card strong {
    display: block;
    margin-top: 18px;
    color: var(--primary-dark);
    font-size: 29px;
}

/* Hapus format section lama khusus dashboard */

.dashboard-grid section {
    display: block;
    width: auto;
    min-height: 130px;
    margin: 0;
}

/* =========================
   RESPONSIVE TOPBAR
========================= */

@media (max-width: 950px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shift-status {
        display: none;
    }
}

@media (max-width: 680px) {
    .topbar {
        padding: 13px 18px;
    }

    .topbar-left h1 {
        font-size: 20px;
    }

    .user-info {
        display: none;
    }

    .page-content {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MODUL KASIR
========================= */

.cashier-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}

.cashier-main {
    min-width: 0;
}

.cashier-search,
.cashier-table-card,
.cashier-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.cashier-search {
    padding: 20px;
}

.cashier-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.cashier-search input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 2px solid #cfd8dc;
    border-radius: 11px;
    outline: none;
    font-size: 15px;
}

.cashier-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 125, 131, 0.12);
}

.cashier-search small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.cashier-table-card {
    margin-top: 18px;
    overflow: hidden;
}

.cashier-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.cashier-table-header h2 {
    margin: 0;
    font-size: 18px;
}

.cashier-table-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.table-wrapper {
    overflow-x: auto;
}

.cashier-table {
    width: 100%;
    border-collapse: collapse;
}

.cashier-table th,
.cashier-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cashier-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cashier-empty {
    padding: 50px 20px !important;
    text-align: center !important;
    color: var(--muted);
}

.cashier-summary {
    align-self: start;
    padding: 22px;
}

.cashier-summary-label {
    color: var(--muted);
    font-size: 14px;
}

.cashier-total {
    display: block;
    margin: 8px 0 24px;
    color: var(--primary-dark);
    font-size: 38px;
}

.cashier-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.button {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.button-light {
    background: #eef2f4;
    color: var(--text);
}

.button-primary {
    background: var(--primary);
    color: white;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.button-payment {
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
}

.cashier-shortcuts {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    padding: 14px;
    border-radius: 11px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
}

.cashier-shortcuts strong {
    color: var(--text);
}

.cashier-shortcuts kbd {
    display: inline-block;
    min-width: 32px;
    margin-right: 7px;
    padding: 3px 6px;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: white;
    color: var(--text);
    text-align: center;
}

@media (max-width: 950px) {
    .cashier-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PENCARIAN PRODUK KASIR
========================= */

.cashier-search {
    position: relative;
}

.product-search-results {
    position: absolute;
    z-index: 50;
    top: 99px;
    left: 20px;
    right: 20px;
    max-height: 330px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.product-search-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    text-align: left;
    cursor: pointer;
}

.product-search-item:last-child {
    border-bottom: 0;
}

.product-search-item:hover {
    background: #f0f8f8;
}

.product-search-item strong,
.product-search-item small {
    display: block;
}

.product-search-item small {
    margin-top: 5px;
    color: var(--muted);
}

.product-search-item > span {
    color: var(--primary-dark);
    font-weight: 800;
    white-space: nowrap;
}

.product-search-empty {
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

.cart-product-meta {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    font-weight: 800;
}

.quantity-control button:hover {
    background: #eef7f7;
}

.quantity-control span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.cart-remove-button {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 22px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* =========================
   KASIR LEBIH MUDAH DIBACA
========================= */

.cashier-search label {
    font-size: 17px;
}

.cashier-search input {
    height: 56px;
    font-size: 17px;
}

.cashier-search small {
    font-size: 14px;
}

.cashier-table-header h2 {
    font-size: 20px;
}

.cashier-table-header p {
    font-size: 14px;
}

.cashier-table th {
    font-size: 13px;
}

.cashier-table td {
    font-size: 16px;
}

.cashier-table td > strong {
    font-size: 17px;
}

.cart-product-meta {
    font-size: 14px;
}

.cashier-summary-label {
    font-size: 16px;
}

.cashier-total {
    font-size: 42px;
}

.cashier-summary-row {
    font-size: 17px;
}

.button-payment {
    min-height: 52px;
    font-size: 18px;
}

/* =========================
   PEMBAYARAN INLINE
========================= */

.payment-inline-panel {
    min-height: 365px;
}

.payment-inline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.payment-inline-header span,
.payment-inline-header strong {
    display: block;
}

.payment-inline-header span {
    color: var(--muted);
    font-size: 16px;
}

.payment-inline-header strong {
    margin-top: 7px;
    color: var(--primary-dark);
    font-size: 34px;
}

.payment-back-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    font-size: 24px;
    cursor: pointer;
}

.payment-instruction {
    margin: 22px 0 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.quick-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-payment-button {
    min-height: 54px;
    padding: 9px;
    border: 2px solid #d6e0e2;
    border-radius: 12px;
    background: var(--surface);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.quick-payment-button:first-child {
    grid-column: 1 / -1;
}

.quick-payment-button:hover,
.quick-payment-button.active {
    border-color: var(--primary);
    background: #edf8f8;
    color: var(--primary-dark);
}

.quick-payment-button:disabled {
    cursor: not-allowed;
    opacity: 0.32;
}

.custom-payment-field {
    margin-top: 18px;
}

.custom-payment-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.custom-payment-field input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 18px;
}

.payment-change-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 15px;
    border-radius: 11px;
    background: #f3f7f8;
}

.payment-change-box span {
    font-size: 16px;
}

.payment-change-box strong {
    color: var(--primary-dark);
    font-size: 25px;
}

.payment-warning {
    margin-top: 10px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
}

.save-payment-button {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    font-size: 17px;
}

.transaction-message {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    background: #ecfdf3;
    color: #166534;
}

.transaction-message strong {
    font-size: 16px;
}

.transaction-message span {
    font-size: 15px;
}
/* =========================
   PEMBAYARAN DALAM RINGKASAN
========================= */

.summary-payment-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.summary-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.summary-payment-header > strong {
    font-size: 19px;
}

.payment-cancel-small {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: white;
    font-size: 21px;
    cursor: pointer;
}

.summary-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.summary-payment-options .quick-payment-button {
    min-height: 48px;
    padding: 8px;
    border: 2px solid #d5e0e2;
    border-radius: 10px;
    background: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.summary-payment-options .quick-payment-button:first-child {
    grid-column: 1 / -1;
}

.summary-payment-options .quick-payment-button:hover,
.summary-payment-options .quick-payment-button.active {
    border-color: var(--primary);
    background: #edf8f8;
    color: var(--primary-dark);
}

.summary-payment-options .quick-payment-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.summary-payment-label {
    display: block;
    margin: 16px 0 7px;
    font-size: 16px;
    font-weight: 700;
}

.summary-payment-input {
    width: 100%;
    height: 51px;
    padding: 0 13px;
    border: 2px solid #ccd7da;
    border-radius: 10px;
    font-size: 19px;
    font-weight: 700;
    outline: none;
}

.summary-payment-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 125, 131, 0.12);
}

.summary-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding: 13px;
    border-radius: 10px;
    background: #f1f7f7;
}

.summary-change span {
    font-size: 15px;
}

.summary-change strong {
    color: var(--primary-dark);
    font-size: 23px;
}

.save-payment-button {
    width: 100%;
    min-height: 51px;
    margin-top: 14px;
    font-size: 17px;
}

.cashier-shortcuts {
    font-size: 14px;
    line-height: 1.5;
}

.cashier-shortcuts kbd {
    min-width: auto;
    padding: 4px 7px;
    font-size: 13px;
}

/* =========================
   UKURAN UI POS
========================= */

.ui-size-control {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.ui-size-button {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ui-size-button:hover {
    background: #e8f2f3;
}

.ui-size-button.active {
    background: var(--primary);
    color: white;
}


/* NORMAL */

body.ui-size-normal .app-shell {
    zoom: 1;
}


/* COMPACT */

body.ui-size-small .app-shell {
    zoom: 0.88;
}


/* BESAR */

body.ui-size-large .app-shell {
    zoom: 1.10;
}


/* Saat compact, rapikan ruang Kasir */

body.ui-size-small .page-content {
    padding-top: 17px;
    padding-bottom: 17px;
}

body.ui-size-small .cashier-layout {
    gap: 15px;
}

body.ui-size-small .cashier-search {
    padding: 15px;
}

body.ui-size-small .cashier-search input {
    height: 48px;
}

body.ui-size-small .cashier-table-header {
    padding-top: 13px;
    padding-bottom: 13px;
}

body.ui-size-small .cashier-table th,
body.ui-size-small .cashier-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

body.ui-size-small .cashier-summary {
    padding: 17px;
}

body.ui-size-small .sales-history-card {
    margin-top: 14px;
}

body.ui-size-small .sales-history-header {
    padding: 13px 16px;
}

body.ui-size-small .sales-history-table th,
body.ui-size-small .sales-history-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

/* =========================================================
   RX POS GLOBAL DESIGN SYSTEM
   Berlaku untuk seluruh Dashboard / Kasir / Barang /
   Pembelian / Retur / Laporan / Buku Kas / Setting
========================================================= */

:root {
    --pos-font-size: 14px;

    --pos-space-1: 4px;
    --pos-space-2: 8px;
    --pos-space-3: 12px;
    --pos-space-4: 16px;
    --pos-space-5: 20px;
    --pos-space-6: 24px;

    --pos-radius-sm: 7px;
    --pos-radius-md: 10px;
    --pos-radius-lg: 12px;

    --pos-control-height: 42px;

    --pos-shadow:
        0 5px 16px rgba(15, 23, 42, 0.045);
}


/* =========================================================
   GLOBAL RESET
========================================================= */

html {
    font-size: 16px;
}

body {
    font-size: var(--pos-font-size);
    line-height: 1.4;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    line-height: 1.2;
}

h1,
h2,
h3,
h4,
p {
    max-width: 100%;
}


/* =========================================================
   AREA KONTEN GLOBAL
========================================================= */

.page-content {
    padding: 18px 22px;
}

.content-area {
    min-width: 0;
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content > *:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TYPOGRAPHY GLOBAL
========================================================= */

.page-content h1 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.2;
}

.page-content h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.page-content h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.page-content p {
    line-height: 1.4;
}

small {
    line-height: 1.3;
}


/* =========================================================
   TOPBAR GLOBAL
========================================================= */

.topbar {
    min-height: 66px;
    padding: 10px 22px;
}

.topbar-left h1 {
    font-size: 22px;
}

.topbar-left p {
    margin-top: 2px;
    font-size: 12px;
}

.topbar-right {
    gap: 8px;
}

.shift-status {
    padding: 6px 9px;
}

.topbar-button {
    width: 38px;
    height: 38px;
}

.user-avatar {
    width: 38px;
    height: 38px;
}


/* =========================================================
   CARD / PANEL GLOBAL
========================================================= */

.dashboard-card,
.cashier-search,
.cashier-table-card,
.cashier-summary,
.sales-history-card,
.master-card,
.master-stat-card,
.card,
.panel {
    border-radius: var(--pos-radius-lg);
    box-shadow: var(--pos-shadow);
}

.card,
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
}

.card-header,
.panel-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

.card-body,
.panel-body {
    padding: 14px 15px;
}


/* =========================================================
   BUTTON GLOBAL
========================================================= */

.button,
button.button {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: var(--pos-radius-md);
    font-size: 13px;
    font-weight: 700;
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
}

.button-light {
    background: #eef2f4;
    color: var(--text);
}

.button:hover:not(:disabled) {
    filter: brightness(0.98);
}

.button:disabled {
    opacity: 0.42;
}


/* =========================================================
   FORM GLOBAL
========================================================= */

input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
    min-height: var(--pos-control-height);
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--pos-radius-md);
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(20, 125, 131, 0.10);
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TABLE GLOBAL
========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #f7f9fa;
}

table th {
    padding: 9px 11px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

table td {
    padding: 9px 11px;
    border-bottom: 1px solid #edf1f3;
    font-size: 13px;
    line-height: 1.3;
    vertical-align: middle;
}

table tbody tr:hover {
    background: #f8fbfb;
}

table td strong {
    font-size: 13px;
}

table td small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   TOOLBAR GLOBAL
========================================================= */

.master-toolbar,
.page-toolbar,
.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.master-actions,
.page-actions,
.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


/* =========================================================
   STAT CARD GLOBAL
========================================================= */

.master-stats,
.dashboard-grid {
    gap: 12px;
}

.master-stat-card,
.dashboard-card {
    min-height: 100px;
    padding: 14px 16px;
}

.master-stat-card span,
.dashboard-card span {
    font-size: 12px;
}

.master-stat-card strong,
.dashboard-card strong {
    margin-top: 8px;
    font-size: 25px;
}


/* =========================================================
   KASIR GLOBAL COMPACT
========================================================= */

.cashier-layout {
    gap: 14px;
}

.cashier-search {
    padding: 14px 16px;
}

.cashier-search label {
    margin-bottom: 6px;
    font-size: 14px;
}

.cashier-search input {
    height: 46px;
    font-size: 15px;
}

.cashier-search small {
    margin-top: 6px;
    font-size: 12px;
}

.cashier-table-card {
    margin-top: 14px;
}

.cashier-table-header {
    padding: 12px 15px;
}

.cashier-table-header h2 {
    font-size: 18px;
}

.cashier-table-header p {
    margin-top: 3px;
    font-size: 12px;
}

.cashier-summary {
    padding: 16px;
}

.cashier-summary-label {
    font-size: 13px;
}

.cashier-total {
    margin-top: 5px;
    margin-bottom: 16px;
    font-size: 34px;
}

.cashier-summary-row {
    padding: 8px 0;
    font-size: 14px;
}

.button-payment {
    min-height: 46px;
    margin-top: 14px;
    font-size: 16px;
}

.cashier-shortcuts {
    gap: 6px;
    margin-top: 14px;
    padding: 11px;
    font-size: 12px;
}

.quantity-control {
    gap: 6px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
}

.cart-product-meta {
    margin-top: 2px;
    font-size: 11px;
}


/* =========================================================
   PAYMENT GLOBAL
========================================================= */

.summary-payment-section {
    margin-top: 13px;
    padding-top: 13px;
}

.summary-payment-header {
    margin-bottom: 10px;
}

.summary-payment-header > strong {
    font-size: 17px;
}

.summary-payment-options {
    gap: 7px;
}

.summary-payment-options .quick-payment-button {
    min-height: 42px;
    padding: 6px;
    font-size: 13px;
}

.summary-payment-label {
    margin-top: 12px;
    margin-bottom: 5px;
    font-size: 13px;
}

.summary-payment-input {
    height: 44px;
    font-size: 16px;
}

.summary-change {
    margin-top: 10px;
    padding: 10px 11px;
}

.summary-change span {
    font-size: 13px;
}

.summary-change strong {
    font-size: 20px;
}

.save-payment-button {
    min-height: 44px;
    margin-top: 11px;
    font-size: 15px;
}


/* =========================================================
   RIWAYAT / LIST GLOBAL
========================================================= */

.sales-history-card {
    margin-top: 14px;
}

.sales-history-header {
    padding: 11px 14px;
}

.sales-history-header h2 {
    font-size: 18px;
}

.sales-history-header p {
    margin-top: 3px;
    font-size: 12px;
}


/* =========================================================
   MASTER BARANG GLOBAL
========================================================= */

.master-page {
    gap: 12px;
}

.master-toolbar {
    margin-bottom: 0;
}

.master-toolbar h2 {
    font-size: 20px;
}

.master-toolbar p {
    margin-top: 3px;
    font-size: 12px;
}

.master-stats {
    grid-template-columns:
        repeat(2, minmax(150px, 190px));
}

.master-stat-card {
    padding: 12px 14px;
}

.master-search {
    padding: 11px 13px;
}

.master-search input {
    width: min(520px, 100%);
    height: 40px;
    font-size: 13px;
}


/* =========================================================
   STATUS BADGE GLOBAL
========================================================= */

.status-badge {
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   UI SIZE CONTROL
========================================================= */

.ui-size-control {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f8fafc;
}

.ui-size-button {
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ui-size-button.active {
    background: var(--primary);
    color: #ffffff;
}


/* =========================================================
   A− COMPACT GLOBAL
========================================================= */

body.ui-size-small .app-shell {
    zoom: 0.88;
}

body.ui-size-small {
    --pos-control-height: 38px;
}

body.ui-size-small .page-content {
    padding: 13px 16px;
}

body.ui-size-small .topbar {
    min-height: 58px;
    padding: 7px 16px;
}

body.ui-size-small .topbar-left h1 {
    font-size: 19px;
}

body.ui-size-small table th {
    padding: 7px 9px;
    font-size: 10px;
}

body.ui-size-small table td {
    padding: 7px 9px;
    font-size: 12px;
}

body.ui-size-small .button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

body.ui-size-small .dashboard-card,
body.ui-size-small .master-stat-card {
    min-height: 86px;
    padding: 11px 13px;
}

body.ui-size-small .cashier-search {
    padding: 11px 13px;
}

body.ui-size-small .cashier-table-header {
    padding: 9px 12px;
}

body.ui-size-small .cashier-summary {
    padding: 13px;
}

body.ui-size-small .sales-history-card {
    margin-top: 10px;
}


/* =========================================================
   A NORMAL GLOBAL
========================================================= */

body.ui-size-normal .app-shell {
    zoom: 1;
}


/* =========================================================
   A+ LARGE GLOBAL
========================================================= */

body.ui-size-large .app-shell {
    zoom: 1.08;
}

body.ui-size-large {
    --pos-control-height: 46px;
}

body.ui-size-large table td {
    font-size: 14px;
}

body.ui-size-large .button {
    font-size: 14px;
}

body.ui-size-large .cashier-total {
    font-size: 40px;
}


/* =========================================================
   RESPONSIVE GLOBAL
========================================================= */

@media (max-width: 950px) {
    .page-content {
        padding: 16px;
    }

    .master-toolbar,
    .page-toolbar,
    .module-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .page-content {
        padding: 13px;
    }

    .topbar {
        padding: 9px 13px;
    }

    .ui-size-control {
        display: none;
    }

    .master-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.form-span-2 {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.row-actions form {
    margin: 0;
}

.notice {
    padding: 10px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.notice-success {
    background: #ecfdf3;
    color: #166534;
}

.notice-error {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-span-2 {
        grid-column: auto;
    }
}

/* =========================================================
   RX SIDEBAR V2
========================================================= */

.sidebar {
    display: flex;
    flex-direction: column;
    width: 238px;
    min-width: 238px;
    height: 100vh;
    overflow: hidden;
    background: #0f777c;
    transition:
        width 0.2s ease,
        min-width 0.2s ease;
}


/* HEADER */

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 68px;
    padding: 10px 11px 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}


/* BRAND */

.sidebar-brand {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.sidebar-brand-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sidebar-brand-text {
    min-width: 0;
    color: #ffffff;
}

.sidebar-brand-text strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-brand-text small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.67);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}


/* COLLAPSE BUTTON */

.sidebar-collapse-button {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sidebar-collapse-button:hover {
    background: rgba(255,255,255,0.16);
}


/* NAVIGATION */

.sidebar-nav {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 9px 16px;
}

.sidebar-section {
    margin-bottom: 13px;
}

.sidebar-section-title {
    padding: 5px 10px;
    color: rgba(255,255,255,0.50);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.10em;
    white-space: nowrap;
}


/* LINK */

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 39px;
    margin: 2px 0;
    padding: 6px 10px;
    border-radius: 9px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.09);
    color: #ffffff;
}

.sidebar-link.active {
    background: #ffffff;
    color: #0f777c;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}


/* ICON */

.sidebar-icon {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 7px;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-label {
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
}


/* DISABLED */

.sidebar-link-disabled {
    color: rgba(255,255,255,0.39);
    cursor: default;
}

.sidebar-link-disabled:hover {
    background: transparent;
    color: rgba(255,255,255,0.39);
}


/* SCROLLBAR */

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,0.20)
        transparent;
}


/* =========================================================
   SIDEBAR COLLAPSED
========================================================= */

.sidebar.collapsed {
    width: 66px;
    min-width: 66px;
}

.sidebar.collapsed .sidebar-header {
    flex-direction: column;
    min-height: auto;
    padding: 10px 7px;
}

.sidebar.collapsed .sidebar-brand {
    flex: none;
}

.sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar.collapsed .sidebar-collapse-button {
    margin-top: 4px;
}

.sidebar.collapsed .sidebar-nav {
    padding: 10px 7px;
}

.sidebar.collapsed .sidebar-section {
    margin-bottom: 10px;
}

.sidebar.collapsed .sidebar-section-title {
    height: 1px;
    margin: 6px 7px;
    padding: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.13);
    color: transparent;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    min-height: 40px;
    padding: 6px;
}

.sidebar.collapsed .sidebar-icon {
    flex-basis: 28px;
    margin-right: 0;
}

.sidebar.collapsed .sidebar-label {
    display: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .sidebar {
        width: 210px;
        min-width: 210px;
    }

    .sidebar.collapsed {
        width: 60px;
        min-width: 60px;
    }
}

/* =========================================================
   FINAL GLOBAL SIDEBAR FIX
========================================================= */

.app-shell {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.sidebar {
    position: relative !important;

    display: flex !important;
    flex: 0 0 238px !important;
    flex-direction: column !important;

    width: 238px !important;
    min-width: 238px !important;
    max-width: 238px !important;

    height: 100vh !important;

    overflow: hidden !important;

    background: #0f777c !important;

    transition:
        width 0.2s ease,
        min-width 0.2s ease,
        max-width 0.2s ease,
        flex-basis 0.2s ease !important;
}

.sidebar-header {
    display: flex;
    align-items: center;

    min-height: 68px;

    padding: 10px 10px 10px 12px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.12);
}

.sidebar-brand {
    display: flex;
    flex: 1;
    align-items: center;

    min-width: 0;

    gap: 9px;
}

.sidebar-brand-icon {
    display: flex;
    flex: 0 0 38px;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 9px;

    background:
        rgba(255,255,255,0.14);

    color: white;

    font-size: 13px;
    font-weight: 800;
}

.sidebar-brand-text {
    min-width: 0;

    color: white;
}

.sidebar-brand-text strong {
    display: block;

    overflow: hidden;

    font-size: 13px;
    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-brand-text small {
    display: block;

    margin-top: 2px;

    color:
        rgba(255,255,255,0.68);

    font-size: 10px;

    white-space: nowrap;
}

.sidebar-collapse-button {
    display: flex;
    flex: 0 0 34px;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,0.16);

    border-radius: 8px;

    background:
        rgba(255,255,255,0.08);

    color: white;

    cursor: pointer;
}

.sidebar-nav {
    flex: 1;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 9px 8px 14px;
}

.sidebar-section {
    margin-bottom: 12px;
}

.sidebar-section-title {
    padding: 5px 9px;

    color:
        rgba(255,255,255,0.52);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;

    white-space: nowrap;
}

.sidebar-link {
    display: flex;

    align-items: center;

    min-height: 39px;

    margin: 2px 0;

    padding: 5px 9px;

    border-radius: 9px;

    color:
        rgba(255,255,255,0.84);

    text-decoration: none;

    overflow: hidden;
}

.sidebar-link.active {
    background: white;

    color: #0f777c;

    font-weight: 800;
}

.sidebar-link-disabled {
    color:
        rgba(255,255,255,0.36);

    cursor: default;
}

.sidebar-icon {
    display: flex;
    flex: 0 0 30px;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-right: 6px;

    font-size: 14px;
    font-weight: 700;
}

.sidebar-label {
    overflow: hidden;

    font-size: 12.5px;

    white-space: nowrap;
}


/* =========================================================
   COLLAPSED
========================================================= */

.sidebar.collapsed {
    flex-basis: 64px !important;

    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

.sidebar.collapsed .sidebar-header {
    flex-direction: column;

    min-height: auto;

    padding: 9px 6px;
}

.sidebar.collapsed .sidebar-brand {
    flex: none;

    justify-content: center;

    width: 100%;
}

.sidebar.collapsed .sidebar-brand-text {
    display: none !important;
}

.sidebar.collapsed .sidebar-collapse-button {
    margin-top: 5px;
}

.sidebar.collapsed .sidebar-nav {
    padding: 8px 6px 14px;
}

.sidebar.collapsed .sidebar-section-title {
    width: 36px;
    height: 1px;

    margin: 7px auto;

    padding: 0;

    overflow: hidden;

    background:
        rgba(255,255,255,0.14);

    color: transparent !important;

    font-size: 0 !important;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;

    width: 42px;
    min-height: 40px;

    margin: 2px auto;

    padding: 5px;
}

.sidebar.collapsed .sidebar-icon {
    flex-basis: 30px;

    margin: 0 !important;
}

.sidebar.collapsed .sidebar-label {
    display: none !important;
}


/* =========================================================
   CONTENT AREA
========================================================= */

.main-content,
.main-wrapper,
.content-wrapper,
.app-main {
    flex: 1 1 auto !important;

    width: auto !important;
    min-width: 0 !important;

    margin-left: 0 !important;

    overflow-x: hidden !important;
}


/* =========================================================
   HAPUS SIDEBAR TOGGLE LAMA
========================================================= */

.sidebar-footer,
.sidebar-toggle {
    display: none !important;
}
/* =========================================================
   RX SIDEBAR FINAL
   Gunakan class rx-* agar tidak konflik CSS lama
========================================================= */

:root {
    --rx-sidebar-width: 236px;
}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell {
    display: grid !important;

    grid-template-columns:
        var(--rx-sidebar-width)
        minmax(0, 1fr) !important;

    width: 100% !important;
    min-height: 100vh !important;

    transition:
        grid-template-columns
        0.18s ease;
}


/* =========================================================
   SIDEBAR
========================================================= */

.rx-sidebar {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    height: 100vh;

    overflow: hidden;

    background: #117f83;

    border-right:
        1px solid
        rgba(0, 0, 0, 0.04);
}


/* =========================================================
   HEADER
========================================================= */

.rx-sidebar-header {
    display: flex;

    align-items: center;

    min-height: 70px;

    padding:
        10px 9px
        10px 10px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.12);
}


/* =========================================================
   BRAND
========================================================= */

.rx-brand {
    display: flex;
    flex: 1;

    align-items: center;

    min-width: 0;

    gap: 9px;
}


.rx-brand-logo {
    display: flex;
    flex: 0 0 38px;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 9px;

    background:
        rgba(255,255,255,0.13);

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.02em;
}


.rx-brand-copy {
    min-width: 0;

    color: #ffffff;
}


.rx-brand-copy strong {
    display: block;

    overflow: hidden;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.rx-brand-copy span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color:
        rgba(255,255,255,0.68);

    font-size: 10px;

    line-height: 1.2;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   COLLAPSE BUTTON
========================================================= */

.rx-sidebar-toggle {
    display: flex;
    flex: 0 0 34px;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-left: 5px;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,0.18);

    border-radius: 8px;

    background:
        rgba(255,255,255,0.09);

    color: #ffffff;

    font-size: 16px;

    cursor: pointer;
}


.rx-sidebar-toggle:hover {
    background:
        rgba(255,255,255,0.16);
}


/* =========================================================
   MENU AREA
========================================================= */

.rx-sidebar-menu {
    flex: 1;

    min-height: 0;

    padding:
        10px 8px
        18px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(255,255,255,0.22)
        transparent;
}


.rx-menu-group {
    margin-bottom: 13px;
}


.rx-menu-title {
    padding:
        5px 9px;

    color:
        rgba(255,255,255,0.53);

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.09em;

    white-space: nowrap;
}


/* =========================================================
   MENU ITEM
========================================================= */

.rx-menu-item {
    display: flex;

    align-items: center;

    min-height: 40px;

    margin:
        2px 0;

    padding:
        5px 9px;

    overflow: hidden;

    border-radius: 9px;

    color:
        rgba(255,255,255,0.89);

    text-decoration: none;

    cursor: pointer;
}


.rx-menu-item:hover:not(.is-disabled) {
    background:
        rgba(255,255,255,0.08);

    color: #ffffff;
}


.rx-menu-item.is-active {
    background: #ffffff;

    color: #117f83;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,0.07);

    font-weight: 800;
}


.rx-menu-item.is-disabled {
    color:
        rgba(255,255,255,0.39);

    cursor: default;
}


/* =========================================================
   ICON
========================================================= */

.rx-menu-icon {
    display: flex;
    flex: 0 0 30px;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-right: 7px;

    font-size: 14px;
    font-weight: 700;
}


.rx-menu-icon-text {
    font-size: 11px;
}


.rx-menu-label {
    overflow: hidden;

    font-size: 12.5px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   COLLAPSED
========================================================= */

.rx-sidebar.is-collapsed
.rx-sidebar-header {
    flex-direction: column;

    min-height: 86px;

    padding:
        8px 5px;
}


.rx-sidebar.is-collapsed
.rx-brand {
    flex: none;

    justify-content: center;

    width: 100%;
}


.rx-sidebar.is-collapsed
.rx-brand-copy {
    display: none;
}


.rx-sidebar.is-collapsed
.rx-sidebar-toggle {
    width: 34px;
    height: 28px;

    margin:
        5px 0 0;
}


.rx-sidebar.is-collapsed
.rx-sidebar-menu {
    padding:
        8px 6px
        16px;
}


.rx-sidebar.is-collapsed
.rx-menu-group {
    margin-bottom: 8px;
}


.rx-sidebar.is-collapsed
.rx-menu-title {
    width: 34px;
    height: 1px;

    margin:
        7px auto;

    padding: 0;

    overflow: hidden;

    background:
        rgba(255,255,255,0.14);

    color: transparent;

    font-size: 0;
}


.rx-sidebar.is-collapsed
.rx-menu-item {
    justify-content: center;

    width: 44px;
    min-height: 40px;

    margin:
        2px auto;

    padding:
        5px;
}


.rx-sidebar.is-collapsed
.rx-menu-icon {
    flex:
        0 0 30px;

    margin: 0;
}


.rx-sidebar.is-collapsed
.rx-menu-label {
    display: none;
}


/* =========================================================
   CONTENT GLOBAL
========================================================= */

.main-content,
.main-wrapper,
.content-wrapper,
.app-main {
    width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;

    overflow-x: hidden;
}


/* =========================================================
   MATIKAN KONTROL SIDEBAR LAMA
========================================================= */

.sidebar-footer,
.sidebar-toggle,
.sidebar-collapse-button {
    display: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    :root {
        --rx-sidebar-width: 210px;
    }

    html.rx-sidebar-is-collapsed {
        --rx-sidebar-width: 62px;
    }
}