:root {
    --green: #236b2e;
    --green-2: #0f4d24;
    --leaf: #4f9f35;
    --yellow: #f5c542;
    --cream: #fff8df;
    --ink: #1d2a1e;
    --muted: #6c7769;
    --line: #dce7d3;
    --danger: #b3261e;
    --blue: #1769aa;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6faef;
    color: var(--ink);
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button {
    font: inherit;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
label { display: grid; gap: 6px; font-weight: 700; color: var(--green-2); }
small { color: var(--muted); }
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(245,197,66,.42), transparent 28%),
        linear-gradient(135deg, #0f4d24, #4f9f35 52%, #f5c542);
}
.login-shell {
    width: min(980px, 94vw);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    background: var(--cream);
}
.login-visual {
    padding: 56px;
    min-height: 520px;
    color: #fff;
    background:
        linear-gradient(rgba(15,77,36,.78), rgba(15,77,36,.86)),
        repeating-radial-gradient(circle at 30% 30%, #f5c542 0 8px, #236b2e 9px 18px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.login-visual h1 { font-size: 46px; margin: 18px 0 10px; letter-spacing: 0; }
.login-visual p { max-width: 440px; line-height: 1.6; }
.durian-mark {
    width: 94px; height: 94px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--yellow);
    color: var(--green-2);
    font-size: 30px; font-weight: 900;
    border: 8px solid rgba(255,255,255,.28);
    overflow: hidden;
}
.durian-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-card {
    padding: 56px 44px;
    display: grid;
    align-content: center;
    gap: 18px;
    background: #fffdf2;
}
.login-footer {
    margin-top: 4px;
    padding: 8px 10px 0;
    color: var(--green-2);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    border-top: 1px solid rgba(15,77,36,.16);
}
.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: grid-template-columns .18s ease;
}
.sidebar-collapsed .app {
    grid-template-columns: 0 1fr;
}
.sidebar {
    background: var(--green-2);
    color: #ecffd9;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    transition: padding .18s ease;
}
.sidebar-backdrop {
    display: none;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    min-height: 76px;
}
.brand-logo {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--yellow);
    color: var(--green-2);
    display: grid; place-items: center;
    font-weight: 900;
    flex: 0 0 46px;
    overflow: hidden;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand strong { display: block; }
.brand-text { min-width: 0; }
.brand-text strong, .brand-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-collapsed .sidebar {
    min-width: 0;
    width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}
.sidebar-collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.sidebar-collapsed .brand-text,
.sidebar-collapsed .menu-group,
.sidebar-collapsed .submenu a {
    font-size: 0;
    justify-content: center;
}
.sidebar-collapsed .submenu a::first-letter {
    font-size: 16px;
}
.menu-section { margin-top: 8px; }
.menu-group {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffe48b;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: space-between;
    margin: 8px 0 4px;
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}
.menu-group span { transition: transform .16s ease; }
.menu-section.open .menu-group span { transform: rotate(180deg); }
.submenu { display: none; }
.menu-section.open .submenu { display: block; }
.submenu a, .menu > a {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 3px 0;
    color: #f4ffe9;
}
.submenu a.active, .submenu a:hover, .menu > a.active, .menu > a:hover, .menu-group:hover { background: rgba(245,197,66,.22); }
.sidebar-collapsed .submenu { display: none; }
.sidebar-collapsed .menu-section.open .submenu { display: none; }
.sidebar-collapsed .menu-group span { display: none; }
.content { min-width: 0; }
.topbar {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 26px;
    gap: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.topbar > div:first-of-type { flex: 1; min-width: 0; }
.sidebar-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--green-2);
    cursor: pointer;
    font-weight: 900;
    flex: 0 0 auto;
    display: inline-grid;
    place-content: center;
    gap: 4px;
    padding: 0;
}
.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--green-2);
}
.page { padding: 24px 26px 48px; }
.app-footer {
    margin-top: 28px;
    padding: 14px 10px 0;
    border-top: 1px solid var(--line);
    color: var(--green-2);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.panel h2, .panel h3 { margin-top: 0; }
.stat { border-left: 6px solid var(--yellow); }
.stat .value { font-size: 25px; font-weight: 900; color: var(--green-2); margin-top: 8px; }
.btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.yellow { background: var(--yellow); color: var(--green-2); }
.btn.ghost { background: #eef6e6; color: var(--green-2); }
.is-submitting button,
.is-submitting input[type="submit"],
button:disabled,
input[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: .68;
}
.btn.danger { background: var(--danger); color: #fff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.action-buttons form {
    margin: 0;
}
.inline-pay-form {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}
.inline-pay-form input[type="date"] {
    font-size: 12px;
    min-height: 28px;
    padding: 3px 5px;
    width: 126px;
}
.action-icon {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: inline-grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
}
.action-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.action-view { background: #064b9b; }
.action-edit { background: #12a6b2; }
.action-delete { background: #e52f4b; }
.action-icon:hover {
    filter: brightness(.94);
}
.table-wrap { overflow: auto; }
.master-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.master-search input { width: min(260px, 100%); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green-2); background: #f1f8e9; }
tbody tr:nth-child(odd),
table tr:nth-child(odd):not(:first-child) {
    background: #fff;
}
tbody tr:nth-child(even),
table tr:nth-child(even) {
    background: #f7f8f5;
}
.table-total,
.table-total:nth-child(even),
.table-total:nth-child(odd) {
    background: #eaf4dc !important;
    color: var(--green-2);
}
.compact-table th,
.compact-table td {
    padding: 8px 10px;
}
.dashboard-insights {
    margin: 16px 0;
}
.insight-title {
    color: var(--green-2);
    font-size: 20px;
    font-weight: 900;
}
.insight-value {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.alert { padding: 11px 12px; border-radius: 8px; background: #eef6e6; }
.alert.danger { color: var(--danger); background: #fff1ee; }
.combo-search {
    margin-bottom: 6px;
    border-color: #b9d3a9;
    background: #fbfff6;
}
.search-combo {
    position: relative;
}
.search-combo input[data-combo-input] {
    padding-right: 36px;
    border-color: #b9d3a9;
    background: #fbfff6;
}
.search-combo::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 17px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--green-2);
    pointer-events: none;
}
.combo-options {
    display: none;
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 230px;
    overflow: auto;
    background: #fff;
    border: 1px solid #b9d3a9;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15,77,36,.16);
    padding: 5px;
}
.search-combo.open .combo-options {
    display: block;
}
.combo-options button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--ink);
}
.combo-options button:hover {
    background: #eef6e6;
}
.combo-empty {
    display: none;
    padding: 10px;
    color: var(--muted);
    font-weight: 700;
}
.search-combo.empty .combo-empty {
    display: block;
}
.mode-harga select {
    max-width: 260px;
}
.do-table-wrap {
    overflow: visible;
}
.do-items {
    table-layout: fixed;
}
.do-items th,
.do-items td {
    padding: 8px;
}
.do-items th:nth-child(1),
.do-items td:nth-child(1) {
    width: 280px;
}
.do-items th:nth-child(2),
.do-items td:nth-child(2) {
    width: 86px;
}
.do-items th:nth-child(3),
.do-items td:nth-child(3) {
    width: 78px;
}
.do-items th:nth-child(4),
.do-items td:nth-child(4) {
    width: 116px;
}
.do-items th:nth-child(5),
.do-items td:nth-child(5) {
    width: 124px;
}
.do-items th:nth-child(6),
.do-items td:nth-child(6) {
    width: 48px;
}
.do-items select,
.do-items input {
    min-width: 0;
    width: 100%;
    padding-left: 9px;
    padding-right: 9px;
}
.do-items .search-combo input {
    min-width: 0;
}
.do-items .combo-options {
    min-width: 270px;
}
.do-form .table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
}
.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    gap: 16px;
}
.pos-page-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    gap: 18px;
    margin-bottom: 16px;
}
.pos-page-header h1 {
    margin: 0 0 8px;
    white-space: nowrap;
}
.pos-header-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(115px, 1fr));
    gap: 9px;
    align-items: end;
}
.pos-header-fields label {
    min-width: 0;
    font-size: 11px;
}
.pos-header-fields input,
.pos-header-fields select {
    min-width: 0;
    padding: 8px 9px;
    font-size: 12px;
}
.pos-header-customer {
    grid-column: span 2;
}
.pos-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}
.pos-supplier-filter {
    align-items: end;
    display: grid;
    column-gap: 10px;
    row-gap: 8px;
    grid-template-columns: 240px max-content max-content;
    justify-content: start;
    margin: 0 0 12px;
}
.pos-supplier-filter label {
    gap: 5px;
}
.pos-supplier-filter input {
    min-height: 40px;
}
.product-card-form { margin: 0; }
.product-card-link { color: inherit; display: block; text-decoration: none; }
.dashboard-stock-actions { margin: 0 0 12px; }
.dashboard-price-form {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: 132px max-content;
    justify-content: start;
    margin: 0 0 14px;
}
.dashboard-price-form label {
    font-size: 12px;
    gap: 5px;
}
.dashboard-price-form input {
    min-height: 40px;
    padding: 8px 10px;
}
.btn.compact {
    min-height: 40px;
    padding: 0 14px;
    width: auto;
}
.product-card {
    display: grid;
    grid-template-rows: 96px 1fr;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--yellow);
    box-shadow: 0 10px 24px rgba(15,77,36,.14);
}
.product-card img, .product-photo {
    width: 100%;
    height: 96px;
    object-fit: cover;
    background: #eaf4dc;
}
.product-body { padding: 10px; display: grid; gap: 6px; }
.product-body strong {
    min-height: 38px;
    font-size: 13px;
    line-height: 1.35;
}
.price {
    color: var(--green-2);
    font-weight: 900;
    font-size: 13px;
}
.cart-panel {
    min-width: 0;
}
.cart-table {
    table-layout: fixed;
}
.cart-col-butir { width: 10%; }
.cart-col-kg { width: 15%; }
.cart-col-mode { width: 15%; }
.cart-col-price { width: 19%; }
.cart-col-disc { width: 12%; }
.cart-col-subtotal { width: 21%; }
.cart-col-action { width: 8%; }
.cart-table th,
.cart-table td {
    padding: 7px 5px;
    white-space: nowrap;
}
.cart-table th {
    font-size: 12px;
    text-align: center;
}
.cart-name-row td {
    padding: 10px 6px 3px;
    white-space: normal;
    font-weight: 900;
    color: var(--green-2);
    line-height: 1.25;
    border-bottom: 0;
}
.cart-input-row td {
    padding-top: 3px;
    vertical-align: middle;
}
.cart-mini-input {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 7px 6px;
    text-align: right;
}
.cart-butir-input {
    max-width: 58px;
}
.cart-kg-input {
    max-width: 76px;
}
.cart-price-input {
    min-width: 0;
    width: 100%;
    max-width: 96px;
    padding: 7px 6px;
    text-align: right;
}
.cart-disc-input {
    min-width: 0;
    width: 100%;
    max-width: 64px;
    padding: 7px 5px;
    text-align: right;
}
.cart-mode-select {
    min-width: 0;
    width: 100%;
    padding: 7px 5px;
}
.pos-context-fields,
.pos-customer-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pos-customer-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cart-line-total {
    text-align: right;
    font-weight: 800;
    font-size: 12px;
}
.icon-danger {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: #fff1ee;
    color: var(--danger);
    font-size: 20px;
    font-weight: 900;
}
.payment-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f1f8e9;
    border: 1px solid var(--line);
}
.payment-summary span {
    color: var(--green-2);
    font-weight: 900;
    text-align: right;
}
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff4bf;
    color: var(--green-2);
    font-size: 12px;
    font-weight: 800;
}
.badge.ok {
    background: #e5f8db;
    color: #176a35;
}
.badge.warn {
    background: #fff0c7;
    color: #8a5200;
}
.nota {
    width: 80mm;
    max-width: 100%;
    background: #fff;
    padding: 12px;
    border: 1px dashed var(--green);
    color: #000;
    font-family: "Courier New", "Lucida Console", monospace;
    font-size: 12px;
    line-height: 1.32;
    font-weight: 700;
}
.nota-logo {
    display: block;
    max-height: 86px;
    max-width: 190px;
    margin: 0 auto 6px;
    object-fit: contain;
}
.nota h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.15;
    text-align: center;
}
.nota h3 {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.2;
}
.nota table {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
.nota th,
.nota td {
    padding: 5px 0;
    border-bottom: 1px dashed #333;
}
.nota small {
    color: #000;
    font-size: 11px;
}
.nota-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #333;
    text-align: center;
    font-size: 12px;
}
.nota-footer strong {
    display: block;
    font-size: 14px;
}
.settings-logo-preview {
    margin-top: 8px;
    max-width: 160px;
    max-height: 90px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    object-fit: contain;
}
.report-header {
    align-items: center;
    border-bottom: 2px solid var(--green-2);
    display: flex;
    gap: 14px;
    margin: 0 0 14px;
    padding: 0 0 12px;
}
.report-header img {
    height: 64px;
    max-width: 110px;
    object-fit: contain;
}
.report-header h2 {
    margin: 0 0 4px;
}
.report-header p {
    margin: 4px 0 0;
}
.report-filter {
    margin-bottom: 14px;
    align-items: end;
}
.report-period {
    margin: 8px 0 12px;
    font-weight: 700;
}
.cash-workspace {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.cash-balance-card {
    min-height: 0;
    padding: 22px;
    background: linear-gradient(145deg, #f8fff2, #fffdf2);
}
.cash-balance-label {
    display: block;
    color: var(--green-2);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cash-balance-card .value {
    margin: 14px 0 8px;
    overflow-wrap: anywhere;
}
.cash-balance-card small,
.cash-entry-heading p {
    color: #667261;
}
.cash-entry-panel {
    padding: 20px 22px;
}
.cash-entry-heading,
.cash-ledger-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.cash-entry-heading h2,
.cash-ledger-heading h2 {
    margin: 0;
}
.cash-entry-heading p {
    margin: 5px 0 0;
    font-size: 13px;
}
.cash-entry-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px 14px;
    align-items: end;
}
.cash-entry-form label {
    min-width: 0;
}
.cash-entry-form .cash-note {
    grid-column: 1 / -1;
}
.cash-entry-form textarea {
    min-height: 76px;
    resize: vertical;
}
.cash-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}
.cash-submit .btn {
    min-width: 210px;
}
.cash-ledger {
    margin-top: 4px;
    padding: 0;
    overflow: hidden;
}
.cash-ledger-heading {
    align-items: center;
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.cash-ledger .table-wrap {
    width: 100%;
}
.cash-ledger table {
    min-width: 820px;
}
.cash-ledger th:first-child,
.cash-ledger td:first-child {
    white-space: nowrap;
}
@media (max-width: 900px) {
    body.sidebar-open {
        overflow: hidden;
    }
    .app, .login-shell { grid-template-columns: 1fr; }
    .sidebar-collapsed .app { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 30;
        width: min(84vw, 320px);
        height: 100vh;
        padding: 18px 14px 28px;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 18px 0 34px rgba(0,0,0,.24);
    }
    .sidebar-collapsed .sidebar {
        min-width: auto;
        width: min(84vw, 320px);
        padding: 18px 14px 28px;
        overflow: auto;
    }
    .sidebar-open .sidebar {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 20;
        border: 0;
        background: rgba(15, 77, 36, .36);
        cursor: pointer;
    }
    .sidebar-collapsed .brand {
        justify-content: flex-start;
        padding: 10px 10px 18px;
    }
    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .menu-group,
    .sidebar-collapsed .submenu a,
    .sidebar-collapsed .menu > a {
        font-size: inherit;
        justify-content: space-between;
    }
    .sidebar-collapsed .submenu a::first-letter,
    .sidebar-collapsed .menu > a::first-letter {
        font-size: inherit;
    }
    .sidebar-collapsed .menu-section.open .submenu {
        display: block;
    }
    .sidebar-collapsed .menu-group span {
        display: inline;
    }
    .topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        height: auto;
        min-height: 64px;
        padding: 10px 14px;
        align-items: center;
    }
    .sidebar-toggle {
        width: 42px;
        height: 40px;
    }
    .page {
        padding: 16px 12px 36px;
    }
    .panel, .card {
        padding: 14px;
    }
    .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid, .pos-layout { grid-template-columns: 1fr; }
    .cash-workspace {
        grid-template-columns: 1fr;
    }
    .cash-entry-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pos-page-header {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .pos-page-header h1 {
        white-space: normal;
    }
    .pos-header-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pos-header-customer {
        grid-column: span 2;
    }
    .do-table-wrap {
        overflow-x: auto;
        overflow-y: visible;
    }
    .do-items {
        min-width: 730px;
    }
    .do-items .combo-options {
        max-height: 190px;
    }
    .pos-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .pos-supplier-filter {
        grid-template-columns: minmax(0, 1fr) max-content max-content;
    }
    .product-card {
        grid-template-rows: 86px 1fr;
    }
    .product-card img, .product-photo {
        height: 86px;
    }
    .dashboard-price-form {
        grid-template-columns: 1fr;
    }
    .pos-context-fields,
    .pos-customer-fields {
        grid-template-columns: 1fr;
    }
    .cart-table {
        min-width: 620px;
    }
    .login-visual { min-height: 300px; padding: 32px; }
    .login-card {
        padding: 34px 28px 24px;
        gap: 14px;
    }
    .login-card h2 {
        margin: 0 0 12px;
    }
    .login-footer {
        font-size: 12px;
        padding-top: 10px;
    }
}
@media (max-width: 560px) {
    .cash-entry-form {
        grid-template-columns: 1fr;
    }
    .cash-entry-form .cash-note,
    .cash-submit {
        grid-column: 1;
    }
    .cash-entry-heading,
    .cash-ledger-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .cash-submit .btn {
        width: 100%;
    }
}
@media print {
    @page {
        size: auto;
        margin: 10mm;
    }
    .sidebar, .topbar, .no-print { display: none !important; }
    .app { display: block; }
    .page { padding: 0; }
    body {
        background: #fff;
    }
    .nota {
        width: 72mm;
        max-width: 72mm;
        border: 0;
        padding: 0;
        font-size: 12px;
        box-shadow: none;
    }
    .report-print .panel {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    .report-print table {
        border-collapse: collapse;
        width: 100%;
    }
    .report-print th,
    .report-print td {
        border: 1px solid #222;
        padding: 5px 6px;
    }
    .report-header {
        color: #111;
        page-break-after: avoid;
    }
    .report-header img {
        height: 58px;
    }
}

