    
    body {
        background-color: #181a1b; 
        color: #e0e0e0;
        font-family: sans-serif; 
        margin: 0px;
    }
    tr:hover {
    background-color: #444444;
    }

    td:hover {
    background-color: #444;
    }

    .section-box {
        border: 1px solid #333; 
        border-radius: 10px; 
        padding: 15px; 
        margin-bottom: 20px; 
        background: #23272b; 
    }
    .btn-sm-custom {
        width: 100px;
        margin: 2px; 
    }
    .blue-input, .form-control, input, select, textarea {
    background-color: #23272b;
    border: 1px solid #444;
    color: #e0e0e0;
    font-size: 12px;
    }
    input.form-control:focus, select.form-select:focus, textarea:focus {
        background-color: #23272b !important;
        color: #fff !important;
        border-color: #888 !important;
        font-size: 12px;
    }
    .section-title {
        font-size: 1.1rem;
        font-weight: bold;
        background-color: #1976d2;
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px; 
    }
    .btn-orange {
        background-color: #fd7d14ab;
        color: white;
        border: none; 
    }
    .btn-orange:hover {
        background-color: transparent; }
    .btn-success { background-color: #388e3c !important; color: #fff !important; }
    .btn-danger { background-color: #d32f2f !important; color: #fff !important; }
    .btn-warning { background-color: #ffa000 !important; color: #23272b !important; }
    .btn-primary { background-color: #1976d2 !important; color: #fff !important; }
    .btn-info { background-color: #0288d1 !important; color: #fff !important; }
    .btn-dark { background-color: #111 !important; color: #fff !important; }
    .btn-secondary { background-color: #424242 !important; color: #fff !important; }
    .search { 
        background-color: transparent; 
        color: #e0e0e0; 
        border: none; 
        font-weight: bold; 
        font-size: 0.9rem;
        padding: 0px;
    }

    .search_results {
        position: absolute;
        background: #2c2c3c;
        border: solid 1px;
        margin-top: 5px;
        z-index: 998;
        max-height: 120px;
        overflow-y: auto;
    }

    .suggestion-item {
        background: #313941;
        color: #e0e0e0;
        border-bottom: 1px solid black;
    }
    .suggestion-item:hover { 
        background-color: #333; 
        color: #fff;
    }

    .suggestion-barang-global {
        background: #171c20;
        color: #e0e0e0;
        border-bottom: 1px solid black;
    }
    .suggestion-barang-global:hover { 
        background-color: #333; 
        color: #fff;
    }

    #clock {
        background: #23272b;
        color: #fff;
        border: 1px solid #444;
    }

    #disc, #disc1, #disc2, #disc3 {
        width: 25px;
        padding: 6px 0px;
        text-align: center;
        background: #23272b;
        color: #e0e0e0;
        border: 1px solid #444;
        }

    #disc_row p {
        width: 10px;
        margin: auto;
        text-align: center;
        padding: 5px 0px;
        color: #bdbdbd;
    }

    .popup {
        position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999;
    }
    .modal-content, .popup-content {
        background: #23272b; 
        color: #fff; 
        padding: 20px; 
        border-radius: 8px; 
        min-width: 400px; 
        max-width: 90vw;
        max-height: 800px;
        width: auto;
    }

    .listRekapPiutangTable thead {
      border: solid 1px #444;
    }

    .listRekapPiutangTable thead tr th, .listRekapPiutangTable tbody tr td, .listRekapPiutangTable {
      background-color: transparent;
      color: black;
      border: none;
      padding-block: 5px;
    }

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

    .flowStok thead,
    .flowStok tbody tr{
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .flowStok tbody{
        display: block;
        max-height: 300px;
        overflow-y: auto;
    }

    .flowStokBody tr {
        transition: background-color 0.3s ease;
    }

    .flowStokBody tr:hover {
        background-color: #444;
    }

    .tanggal_rekap_row{
        width: 300px;
    }

    .tanggal_rekap_row .col {
        align-self: center;
    }

    .tanggal_rekap_row .col p {
        margin: auto;
    }

    .tanggal_rekap_row .col input {
        margin: auto;
    }

    .akuntansi_body {
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 10px;
    }

    .akuntansi_left {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .neraca table {
        --bs-table-color: white;
        --bs-table-bg: black;
        font-size: small;
        margin-bottom: 0px;
    }

    .neraca .table>:not(caption)>*>* {
        padding: 0rem;
        padding-inline: 0.2rem;
    }

    .kode_neraca_tabel {
        width: 40px;
    }

    .kode_verifikasi {
        width: 10px;
    }

    .nama_neraca_tabel {
        width: 90px;
    }

    .container_kas_table {
        margin: auto;
    }

    .kas {
      padding-bottom: 40px;
    }

    .kas table {
        --bs-table-color: white;
        --bs-table-bg: black;
    }

    .poin-input-wrapper {
      display: flex;
    }

    .poin-input-wrapper span {
      align-content: center;
    }

    .show_cash, .show_bca, .show_mandiri, .show_bri, .show_bni, .show_cimb, .show_permata, .show_danamon, .show_btn, .show_panin, .show_ocbc, .show_maybank, .show_mega {
        background-color: rgb(76, 73, 73);
        color: white;
        clip-path: polygon(
            0 0,
            80% 0,
            100% 100%,
            0% 100%
        );
    }

    .show_cash:active, .show_bca:active, .show_mandiri:active, .show_bri:active, .show_bni:active, .show_cimb:active, .show_permata:active, .show_danamon:active, .show_btn:active, .show_panin:active, .show_ocbc:active, .show_maybank:active, .show_mega:active {
        background-color: rgb(59, 54, 54);
        color: white;
    }

    .jurnal_umum table {
        --bs-table-color: white;
        --bs-table-bg: black;
    }

    .form-group p {
        align-self: center;
        margin: 0px;
    }

    .jurnal_umum .form-group {
        margin-bottom: 10px;
    }

    .jurnal_umum .form-group input {
        margin: 0px 5px;
        align-self: center;
        padding: 10px;
        border: 1px solid #444;
        border-radius: 5px;
        background-color: transparent;
        color: #fff;
        width: 90px;
    }

    .jurnal_umum .form-group button {
        margin-inline: 10px;
        align-self: center;
        padding: 10px 15px;
        border: none;
        border-radius: 5px;
    }

    .jurnal_umum_input_table {
        margin-bottom: 5px;
    }

    .container_jurnal_umum_show_table {
        margin-bottom: 10px;
    }

    .jurnal_footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .show_live_table {
        width: 70%;
    }

    .show_grand_total {
        width: 30%;
    }

    .show_persediaan_hutang_piutang {
        display: flex;
        justify-content: space-between;
    }

    .show_penjualan_hpp_biaya_pajak_rugi_laba {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .kredit-wrap, .debit-wrap { position: relative; }
    .kredit-list, .debit-list {
        position: absolute;
        top: 100%; left: 0; right: 0;
        border: 1px solid #ccc;
        background: #2c2c3c;
        display: none;
        max-height: 120px;
        overflow-y: auto;
        z-index: 999;
    }
    .kredit-list div, .debit-list div {
        padding: 6px;
        cursor: pointer;
    }
    .kredit-list div.active,
    .kredit-list div:hover,
    .debit-list div.active,
    .debit-list div:hover {
        background: #d0eaff !important;
        color: #222 !important;
    }

    .jurnal_umum_show_table {
      height: 413px;
    }

    .kas_table, .bca_table, .mandiri_table, .jurnal_umum_show_table {
        width: 100%;
        border-collapse: collapse;
    }

    .kas_table thead, .bca_table thead, .mandiri_table thead, .jurnal_umum_show_table thead, .dashboard_table thead,
    .kas_table tbody tr, .bca_table tbody tr, .mandiri_table tbody tr, .jurnal_umum_show_table tbody tr, .dashboard_table tbody tr{
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .kas_table tbody, .bca_table tbody, .mandiri_table tbody{
        display: block;
        max-height: 263px;
        overflow-y: auto;
    }

    .jurnal_umum_show_table tbody{
        display: block;
        overflow-y: auto;
    }

    .jurnal_umum_show_table tbody tr td, .mandiri_table tbody tr td, .kas_table tbody tr td, .bca_table tbody tr td {
        word-break: break-word;
    }

    .dashboard{
        padding-top:10px;
    }

    .cards{
        display:grid;
        grid-template-columns:repeat(5,1fr);
        gap:20px;
    }

    .card{
        background:#26252f;
        border-radius:15px;
        padding:20px;
        box-shadow:0 5px 15px rgba(0,0,0,.08);
    }

    .subscribe_card_plan{
        background:#26252f;
        border-radius:15px;
        padding:20px;
        box-shadow:0 5px 15px rgba(0,0,0,.08);
    }

    .card h4{
        margin:0;
        color:whitesmoke;
        font-size:15px;
    }

    .card h2{
        margin-top:15px;
        color:white;
    }

    .content{
        display:grid;
        grid-template-columns:2fr 1fr;
        gap:20px;
        margin-top:25px;
    }

    .chart,
    .stock,
    .produk,
    .aktivitas{
        background:#26252f;
        border-radius:15px;
        padding:20px;
        box-shadow:0 5px 15px rgba(0,0,0,.08);
    }

    .fake-chart{
        margin-top:20px;
        height:320px;
        border-radius:10px;
        background:#26252f;
        display:flex;
        justify-content:center;
        align-items:center;
        color:#999;
    }

    .bottom{
        margin-top:25px;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:20px;

    }

    .dashboard_table{
        width:100%;
        border-collapse:collapse;
    }

    .dashboard_table th{
        background:#26252f;
        padding:12px;
        text-align:center;
    }

    .dashboard_table td{
        padding:12px;
        border-bottom:1px solid #eee;
    }

    .dashboard_list{
        padding-left:18px;
    }

    .dashboard_list li{
        margin-bottom:12px;
    }

    .dashboard_table tbody{
        display: block;
        max-height: 270px;
        overflow-y: auto;
    }

    .date {
        width: 100px;
        text-align-last: center;
        align-self: center;
    }

    .setting_div2 {
        margin-bottom: 50px;
    }

    .setting_div2 input[type="text"] {
        width: 300px;
        margin-left: 20px;
    }

    .setting_div3 {
        display: flex;
        gap: 10px;
        margin: 10px;
        justify-content: space-between;
    }

    .setting_div3 h5 {
        margin: 0px;
        align-content: center;
    }

    .setting_div3 input[type="text"] {
        width: 300px;
    }

    .backup_restore button a, .delete_reset button a {
        color: #fff;
        text-decoration: none;
    }

    .daftar_pengguna_table {
        --bs-table-color: white;
        --bs-table-bg: black;
    }

    .backup_btn, .edit_btn {
        background-color: rgb(7, 160, 7);
        color: white;
    }

    .restore_reset_btn {
        background-color: #a10606
    }

    .setting_backup_restore, .setting_add_user {
        justify-content: normal;
    }

    .img_preview_container {
        width: 200px;
        height: 200px;
        background-color: white;
        display: flex;
        justify-self: end;
    }

    .img_preview_container img {
        margin: auto;
        max-width: 200px;
        max-height: 200px;
    }

    .aksi_th {
        width: 150px;
    }

    .aksi_td {
        display: flex;
        justify-content: space-between;
    }

    .edit_user_container {
        display: flex;
        gap: 20px;
    }

    .cancel_save_btn_container {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
    }

    .nama_pass_role_container {
        width: 700px;
    }

    .note_text {
        font-size: smaller;
        margin: 10px;
        text-align: end;
    }

    #kas_title_container {
        overflow-x: auto;
        white-space: nowrap;
        overflow-y: hidden;
    }

.app {
  display: flex;
  height: fit-content;
}

/* Final desktop palette override for Rekap Penjualan.
   This block intentionally changes colors only; geometry is inherited. */
@media (min-width: 768px) {
  .rekap-penjualan-page {
    background: #121415;
    color: #e2e2e3;
    border-color: #2a2d30;
  }





  .rekap-penjualan-page .search_box,
  .rekap-penjualan-page .input_date,
  .rekap-penjualan-page .input_year {
    color: #f1f5f9;
    background: #0e1011;
    border-color: #2a2d30;
  }



















  .rekap-penjualan-page #resiPenjualanModalContent {
    color: #e2e2e3;
    background: #121415;
    border-color: #2a2d30;
  }






}

/* Desktop fidelity pass for Hutang Supplier.
   Uses the approved mobile visual language while keeping the desktop page
   within the viewport; long data remains scrollable inside the table region. */
@media (min-width: 768px) {
  html,
  body {
    min-height: 100%;
  }

  body:has(.maju-hutang-page) {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
    color: #e5e7eb;
    font-family: "Hanken Grotesk", sans-serif;
  }

  body:has(.maju-hutang-page) .maju-hutang-page {
    display: flex;
    flex-direction: column;
    width: min(1440px, calc(100% - 32px));
    margin: 16px auto;
    padding: 0 18px 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  body:has(.maju-hutang-page) .hutang-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 54px;
    margin: 0 -18px 14px;
    padding: 0 18px;
    box-sizing: border-box;
    background: rgba(18, 20, 21, .98);
    border-bottom: 1px solid #2a2d30;
  }

  body:has(.maju-hutang-page) .hutang-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: #f8fafc;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) .hutang-mobile-header h1::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  body:has(.maju-hutang-page) .hutang-mobile-header span {
    padding: 5px 8px;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  body:has(.maju-hutang-page) .maju-hutang-page > .search_container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 8px;
    align-items: end;
    flex: 0 0 auto;
    margin: 0 0 14px;
    padding: 12px;
    box-sizing: border-box;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  body:has(.maju-hutang-page) .maju-hutang-page > .search_container::before {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 7px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(42, 45, 48, .7);
    content: "PENCARIAN SUPPLIER";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
  }

  body:has(.maju-hutang-page) .maju-hutang-page .search-container {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  body:has(.maju-hutang-page) #search_box {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
  }

  body:has(.maju-hutang-page) #search_box:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  body:has(.maju-hutang-page) #search_hutang {
    width: 84px;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) #search_results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 40;
    overflow: hidden;
    background: #101213;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .4);
  }

  body:has(.maju-hutang-page) #search_results:empty,
  body:has(.maju-hutang-page) #search_results:has(> .suggestion-item:empty) {
    display: none;
  }

  body:has(.maju-hutang-page) .suggestion-item {
    color: #e5e7eb;
    background: #121415;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
  }

  body:has(.maju-hutang-page) .hutang-table-scroll {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  body:has(.maju-hutang-page) .hutang-table-scroll::before {
    display: block;
    flex: 0 0 38px;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #cbd5e1;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    content: "▦  DATA MATRIX HUTANG                                  GESER HORIZONTAL · TAP BARIS";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: pre;
  }

  body:has(.maju-hutang-page) #hutangTable {
    flex: 1 1 auto;
    width: 100%;
    min-width: 980px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #dbe4ee;
    background: #101213;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  body:has(.maju-hutang-page) #hutangTable thead,
  body:has(.maju-hutang-page) #hutangTable tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  body:has(.maju-hutang-page) #hutangTable thead {
    background: #101213;
  }

  body:has(.maju-hutang-page) #hutangTable th {
    height: 38px;
    padding: 8px 10px;
    box-sizing: border-box;
    color: #94a3b8;
    background: #101213;
    border-right: 1px solid rgba(42, 45, 48, .55);
    border-bottom: 1px solid #2a2d30;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body:has(.maju-hutang-page) #hutangTable td {
    height: 38px;
    padding: 8px 10px;
    box-sizing: border-box;
    color: #dbe4ee;
    background: #101213;
    border-bottom: 1px solid rgba(42, 45, 48, .5);
  }

  body:has(.maju-hutang-page) #hutangTable tbody {
    display: block;
    max-height: none;
    overflow-y: auto;
    background: #101213;
  }

  body:has(.maju-hutang-page) #hutangTable th:nth-child(1),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(1) { width: 9%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(2),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(2) { width: 8%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(3),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(3) { width: 19%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(4),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(4) { width: 8%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(5),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(5) { width: 13%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(6),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(6),
  body:has(.maju-hutang-page) #hutangTable th:nth-child(7),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(7) { width: 11%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(8),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(8),
  body:has(.maju-hutang-page) #hutangTable th:nth-child(9),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(9) { width: 10%; }
  body:has(.maju-hutang-page) #hutangTable th:nth-child(10),
  body:has(.maju-hutang-page) #hutangTable td:nth-child(10) { width: 6%; }

  body:has(.maju-hutang-page) #pagination_hutang {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin: 10px 0 0;
    padding: 5px;
    box-sizing: border-box;
    overflow-x: auto;
    background: #111314;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  body:has(.maju-hutang-page) #pagination_hutang .page-btn {
    min-width: 34px;
    min-height: 28px;
    padding: 0 9px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }


  body:has(.maju-hutang-page) #hutangModal {
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(3px);
  }

  body:has(.maju-hutang-page) #hutangModalContent {
    width: min(820px, 100%);
    max-height: 88vh;
    margin: 0;
    padding: 18px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
  }

  body:has(.maju-hutang-page) #closeModal {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    background: #101213;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-size: 22px;
    line-height: 28px;
    text-align: center;
  }

  body:has(.maju-hutang-page) #modalTitle {
    margin: 0 48px 14px 0;
    padding-bottom: 12px;
    color: #f8fafc;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) #totalHutang,
  body:has(.maju-hutang-page) #pembayaranTable,
  body:has(.maju-hutang-page) #pembelianTable {
    width: 100% !important;
    margin-top: 10px !important;
    border-collapse: collapse;
    color: #dbe4ee;
    background: #101213;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  body:has(.maju-hutang-page) #totalHutang th,
  body:has(.maju-hutang-page) #pembayaranTable th,
  body:has(.maju-hutang-page) #pembelianTable th,
  body:has(.maju-hutang-page) #totalHutang td,
  body:has(.maju-hutang-page) #pembayaranTable td,
  body:has(.maju-hutang-page) #pembelianTable td {
    padding: 9px 10px;
    border: 1px solid #2a2d30;
    white-space: nowrap;
  }

  body:has(.maju-hutang-page) #totalHutang th,
  body:has(.maju-hutang-page) #pembayaranTable th,
  body:has(.maju-hutang-page) #pembelianTable th {
    color: #94a3b8;
    background: #16181a;
    font-size: 10px;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) #hutangModalContent > div[style*="margin-top"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: end;
    margin-top: 14px !important;
  }

  body:has(.maju-hutang-page) #nominal_bayar,
  body:has(.maju-hutang-page) #ket {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
  }

  body:has(.maju-hutang-page) #btnBayar,
  body:has(.maju-hutang-page) #btnLunas,
  body:has(.maju-hutang-page) #switchTable {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }



  body:has(.maju-hutang-page) #switchTable {
    display: block;
    width: 100%;
    margin-top: 12px;
    color: #38bdf8;
    background: #141b20;
    border: 1px solid #0ea5e9;
  }

  body:has(.maju-hutang-page) #pembayaranSection,
  body:has(.maju-hutang-page) #pembelianSection {
    width: 100%;
    margin-top: 12px;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }
}

/* Final Stitch fidelity pass: TB. MAJU mobile rekap shell.
   This block is intentionally mobile-only and presentation-only. */
@media (max-width: 767px) {
  .rekap-penjualan-page{
    width: min(390px, 100%);
    max-width: 390px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 12px 64px;
    box-sizing: border-box;
    background: #121415;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .rekap-penjualan-page .rekap-mobile-header {
    min-height: 51px;
    margin: 0 -12px 12px;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(18, 20, 21, .96);
    border-bottom: 1px solid #2a2d30;
  }

  .rekap-penjualan-page .rekap-mobile-header h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .055em;
  }

  .rekap-penjualan-page .rekap-mobile-source {
    padding: 4px 6px;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
  }

  .rekap-penjualan-page .rekap-search-panel,
  .rekap-penjualan-page .rekap-date-panel {
    margin: 0 0 12px;
    padding: 12px;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    box-sizing: border-box;
  }

  .rekap-penjualan-page .rekap-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 10px 6px;
  }

  .rekap-penjualan-page .rekap-search-panel::before {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    min-height: 20px;
    padding-bottom: 6px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(42, 45, 48, .7);
    content: "⌕  PENCARIAN DATA TRANSAKSI";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .rekap-penjualan-page .rekap-search-panel .search-container {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .rekap-penjualan-page .rekap-search-panel .search_box {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 10px 11px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-size: 12px;
  }

  .rekap-penjualan-page .rekap-search-panel .search_box:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .rekap-penjualan-page .rekap-search-panel .search_button {
    width: 70px;
    min-width: 70px;
    height: 44px;
    margin: 0;
    padding: 0 8px;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .rekap-penjualan-page .rekap-search-panel .search_results {
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 40;
    width: auto;
    margin: 0;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
  }

  .rekap-penjualan-page .rekap-search-panel .search_results:empty,
  .rekap-penjualan-page .rekap-search-panel .search_results:has(> .suggestion-item:empty),
  .rekap-penjualan-page .rekap-search-panel .search_results:has(> .suggestion-item_barang:empty) {
    display: none;
  }

  .rekap-penjualan-page .rekap-search-panel .suggestion-item,
  .rekap-penjualan-page .rekap-search-panel .suggestion-item_barang {
    color: #e5e7eb;
    background: #121415;
    border-bottom: 1px solid #22272a;
    font-size: 12px;
  }

  .rekap-penjualan-page .rekap-date-panel {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 68px;
  }

  .rekap-penjualan-page .rekap-date-panel h3 {
    flex: 0 0 auto;
    margin: 0 4px 0 0;
    color: #cbd5e1;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }

  .rekap-penjualan-page .rekap-date-panel p {
    flex: 0 0 auto;
    margin: 0;
    color: #64748b;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
  }

  .rekap-penjualan-page .rekap-date-panel .input_date,
  .rekap-penjualan-page .rekap-date-panel .input_year {
    flex: 0 0 auto;
    height: 44px;
    margin: 0;
    padding: 8px 2px;
    box-sizing: border-box;
    color: #fbbf24;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    text-align: center;
  }

  .rekap-penjualan-page .rekap-date-panel .input_date {
    width: 34px;
  }

  .rekap-penjualan-page .rekap-date-panel .input_year {
    width: 54px;
  }

  .rekap-penjualan-page .rekap-date-panel #filter {
    flex: 0 0 auto;
    width: 64px;
    height: 44px;
    margin: 0 0 0 auto;
    padding: 0 7px;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .rekap-penjualan-page .rekap-table-card {
    display: block;
    margin: 0 0 12px;
    overflow: hidden;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  .rekap-penjualan-page .rekap-table-heading {
    display: flex;
    min-height: 38px;
    padding: 10px;
    box-sizing: border-box;
    color: #cbd5e1;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .rekap-penjualan-page .rekap-table-heading .material-symbols-outlined {
    margin-right: 6px;
    color: #f59e0b;
    font-size: 16px;
  }

  .rekap-penjualan-page .rekap-table-heading small {
    margin-left: auto;
    color: #94a3b8;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
  }

  .rekap-penjualan-page .rekap-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rekap-penjualan-page #rekapPenjualanTable,
  .rekap-penjualan-page #rekapPembelianTable {
    width: max-content;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    background: #101213;
    color: #dbe4ee;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  .rekap-penjualan-page #rekapPenjualanTable thead,
  .rekap-penjualan-page #rekapPenjualanTable tbody tr,
  .rekap-penjualan-page #rekapPembelianTable thead,
  .rekap-penjualan-page #rekapPembelianTable tbody tr {
    display: table;
    width: 100%;
    table-layout: auto;
  }

  .rekap-penjualan-page #rekapPenjualanTable th,
  .rekap-penjualan-page #rekapPembelianTable th {
    padding: 11px 12px;
    color: #94a3b8;
    background: #101213;
    border-right: 1px solid rgba(42, 45, 48, .55);
    border-bottom: 1px solid #2a2d30;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .rekap-penjualan-page #rekapPenjualanTable td,
  .rekap-penjualan-page #rekapPembelianTable td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(42, 45, 48, .5);
    white-space: nowrap;
  }

  .rekap-penjualan-page #rekapPenjualanTable tbody,
  .rekap-penjualan-page #rekapPembelianTable tbody {
    display: block;
    max-height: 432px;
    overflow-y: auto;
    background: #101213;
  }

  .rekap-penjualan-page #rekapPenjualanTable tbody:empty::after,
  .rekap-penjualan-page #rekapPembelianTable tbody:empty::after {
    display: block;
    width: 760px;
    padding: 42px 16px;
    box-sizing: border-box;
    color: #64748b;
    content: "Belum ada data rekap yang dimuat";
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    text-align: center;
  }

  .rekap-penjualan-page #pagination_rekap_penjualan,
  .rekap-penjualan-page #pagination_rekap_pembelian {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    box-sizing: border-box;
    background: #111314;
    border-top: 1px solid #2a2d30;
  }

  .rekap-penjualan-page .pagination .page-btn,
  .rekap-penjualan-page .pagination button {
    min-width: 32px;
    min-height: 30px;
    padding: 0 8px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  .rekap-penjualan-page .pagination .active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-penjualan-page #resiPenjualanModal,
  .rekap-penjualan-page #resiPembelianModal {
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(3px);
  }

  .rekap-penjualan-page #resiPenjualanModalContent,
  .rekap-penjualan-page #resiPembelianModalContent {
    position: relative;
    width: 100%;
    max-width: 390px;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
  }

  .rekap-penjualan-page #modalTitle {
    margin: 0;
    padding: 14px 48px 13px 14px;
    color: #f8fafc;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    text-align: left;
  }

  .rekap-penjualan-page #closePenjualanModal,
  .rekap-penjualan-page #closePembelianModal {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    background: #1c1f22;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-size: 22px;
    line-height: 28px;
    text-align: center;
  }

  .rekap-penjualan-page #resiContent {
    max-height: 63vh;
    margin: 0;
    padding: 14px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #111827;
    background: #f8fafc;
  }

  .rekap-penjualan-page .modal-content_button_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 12px;
    background: #141618;
    border-top: 1px solid #2a2d30;
  }

  .rekap-penjualan-page .modal-content_button_container button {
    min-height: 42px;
    margin: 0;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }


  .rekap-penjualan-page #voidFaktur,
  .rekap-penjualan-page #retur_penjualan,
  .rekap-penjualan-page .rekap-modal-void-action {
    color: #fb7185;
    background: #1d1417;
    border: 1px solid #7f1d1d;
  }

  .rekap-penjualan-page #metode,
  .rekap-penjualan-page #qty_retur_penjualan {
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }
}

/* Desktop visual refinement for Retur Penjualan. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .maju-retur-page {
    color-scheme: dark;
    background: #0b0d0e;
    color: #e6edf3;
  }

  .maju-retur-page > section {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }



  .maju-retur-page input::placeholder,
  .maju-retur-page textarea::placeholder {
    color: #7f8b92;
  }

  .maju-retur-page input:focus,
  .maju-retur-page select:focus,
  .maju-retur-page textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .maju-retur-page .table-section,
  .maju-retur-page .total-section {
    background: #151819;
    border-color: #2f3538;
  }



  .maju-retur-page th {
    color: #f0d4b4;
    background: #24282a;
    border-color: #514532;
    box-shadow: inset 0 -1px 0 rgba(245, 158, 11, .18);
  }






  .maju-retur-page .btn.green,
  .maju-retur-page #simpan_retur,
  .maju-retur-page #keranjang {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
    box-shadow: 0 2px 9px rgba(245, 158, 11, .16);
  }




  .maju-retur-page .btn:hover,
  .maju-retur-page .btn:focus-visible {
    filter: brightness(1.12);
  }
}

.restore-icon {
  display: none;
}

/* Stitch restore database screen: mobile presentation only. */
@media (max-width: 767px) {
  .restore-mobile-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(390px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  .restore-mobile-page #restoreForm {
    width: 100%;
    max-width: 390px;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #333536;
    border-top: 3px solid #f59e0b;
    border-radius: 3px;
    background: #1a1c1d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }

  .restore-mobile-page #restoreForm::before {
    content: "RESTORE DATABASE";
    display: block;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #333536;
    color: #e2e2e3;
    font: 600 20px/28px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .restore-mobile-page #restoreForm label {
    display: block;
    margin-bottom: 8px;
    color: #d8c3ad;
    font: 600 11px/15px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .restore-mobile-page #backup {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #333536;
    border-radius: 2px;
    background: #222527;
    color: #e2e2e3;
    font: 500 12px/18px "JetBrains Mono", monospace;
    cursor: pointer;
  }

  .restore-mobile-page #backup::file-selector-button {
    margin-right: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 2px;
    background: #333536;
    color: #89ceff;
    font: 600 11px/15px "Hanken Grotesk", Arial, sans-serif;
    cursor: pointer;
  }

  .restore-mobile-page #backup:focus {
    border-color: #0ea5e9;
    outline: 1px solid #0ea5e9;
    outline-offset: 0;
  }

  .restore-mobile-page #submitRestore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 0;
    border-radius: 2px;
    background: #f59e0b;
    color: #472a00;
    font: 700 14px/20px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .restore-mobile-page .restore-icon {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
  }

  .restore-mobile-page #submitRestore:hover,
  .restore-mobile-page #submitRestore:focus-visible {
    background: #d97706;
    outline: 1px solid #00a2e6;
    outline-offset: 0;
  }

  .restore-mobile-page #submitRestore:active {
    background: #b45309;
  }

  .restore-mobile-page > br {
    display: none;
  }

  .restore-mobile-page #progressBox {
    width: 100%;
    max-width: 390px;
    margin-top: 10px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #333536;
    background: #0c0e0f;
  }

  .restore-mobile-page #progress {
    width: 100%;
    height: 10px;
    accent-color: #f59e0b;
  }

  .restore-mobile-page #persen {
    display: block;
    margin-top: 6px;
    color: #ffc174;
    font: 600 14px/18px "JetBrains Mono", monospace;
    text-align: right;
  }
}

/* Restore database desktop refinement. */
@media (min-width: 768px) {
  .restore-mobile-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px;
    box-sizing: border-box;
    background: #181a1b;
  }

  .restore-mobile-page #restoreForm {
    position: relative;
    width: min(640px, 100%);
    margin: 0;
    padding: 34px 38px 38px;
    box-sizing: border-box;
    border: 1px solid #333536;
    border-top: 4px solid #f59e0b;
    border-radius: 4px;
    background: #1a1c1d;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }

  .restore-mobile-page #restoreForm::before {
    content: "RESTORE DATABASE";
    display: block;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #333536;
    color: #e2e2e3;
    font: 700 26px/32px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.05em;
  }

  .restore-mobile-page #restoreForm label {
    display: block;
    margin-bottom: 10px;
    color: #d8c3ad;
    font: 600 12px/16px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .restore-mobile-page #backup {
    display: block;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #534434;
    border-radius: 3px;
    background: #222527;
    color: #e2e2e3;
    font: 500 13px/20px "JetBrains Mono", monospace;
    cursor: pointer;
  }

  .restore-mobile-page #backup::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid #534434;
    border-radius: 3px;
    background: #333536;
    color: #89ceff;
    font: 600 12px/16px "Hanken Grotesk", Arial, sans-serif;
    cursor: pointer;
  }

  .restore-mobile-page #backup:focus {
    border-color: #0ea5e9;
    outline: 1px solid #0ea5e9;
    outline-offset: 0;
  }

  .restore-mobile-page #submitRestore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 13px 18px;
    box-sizing: border-box;
    border: 1px solid #f59e0b;
    border-radius: 3px;
    background: #f59e0b;
    color: #472a00;
    font: 700 15px/20px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  }

  .restore-mobile-page .restore-icon {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
  }

  .restore-mobile-page #submitRestore:hover,
  .restore-mobile-page #submitRestore:focus-visible {
    border-color: #00a2e6;
    background: #ffb95f;
    outline: 1px solid #00a2e6;
    outline-offset: 2px;
  }

  .restore-mobile-page #submitRestore:active {
    transform: translateY(1px);
    background: #d97706;
  }

  .restore-mobile-page #progressBox {
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #333536;
    background: #0c0e0f;
  }

  .restore-mobile-page #progress {
    width: 100%;
    height: 12px;
    accent-color: #f59e0b;
  }

  .restore-mobile-page #persen {
    display: block;
    margin-top: 8px;
    color: #ffc174;
    font: 600 14px/18px "JetBrains Mono", monospace;
    text-align: right;
  }
}

.setting1-delete-icon {
  display: none;
}

/* Stitch account settings screen: mobile presentation only. */
@media (max-width: 767px) {
  .container.setting1-mobile-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(390px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  .setting1-mobile-page > .delete_reset {
    width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #333536;
    border-top: 2px solid #93000a;
    border-radius: 3px;
    background: #1a1c1d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }

  .setting1-mobile-page > .delete_reset > h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333536;
    color: #e2e2e3;
    font: 600 20px/28px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .setting1-mobile-page > .delete_reset > h3::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 2px;
    border: 1px solid #ffb4ab;
    background: #93000a;
  }

  .setting1-mobile-page > .delete_reset > h3::after {
    content: "setting1.php";
    margin-left: auto;
    padding: 2px 6px;
    border: 1px solid #534434;
    border-radius: 2px;
    background: #282a2b;
    color: #d8c3ad;
    font: 500 10px/14px "JetBrains Mono", monospace;
    letter-spacing: 0.03em;
    text-transform: none;
  }

  .setting1-mobile-page .setting_backup_restore {
    display: block;
    margin: 0;
  }

  .setting1-mobile-page #delete_account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #ffb4ab;
    border-radius: 3px;
    background: #93000a;
    color: #ffdad6;
    font: 600 14px/20px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .setting1-mobile-page .setting1-delete-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
  }

  .setting1-mobile-page #delete_account:hover,
  .setting1-mobile-page #delete_account:focus-visible {
    background: #b91c1c;
    outline: 1px solid #00a2e6;
    outline-offset: 0;
  }

  .setting1-mobile-page #delete_account:active {
    background: #690005;
  }
}

/* Stitch mode-archive screen: mobile presentation only. */
@media (max-width: 767px) {
  .container.setting-sandbox-mobile-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(390px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  .setting-sandbox-mobile-page > .backup_restore {
    width: 100%;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #2a2d30;
    border-top: 3px solid #f59e0b;
    border-radius: 3px;
    background: #1a1c1d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }

  .setting-sandbox-mobile-page > .backup_restore > h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 24px;
    color: #ffffff;
    font: 700 16px/22px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .setting-sandbox-mobile-page > .backup_restore > h3::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 2px;
    background: #f59e0b;
  }

  .setting-sandbox-mobile-page > .backup_restore > h3::after {
    content: "setting_sandbox.php";
    margin-left: auto;
    padding: 2px 6px;
    border: 1px solid #534434;
    border-radius: 2px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font: 500 10px/14px "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  .setting-sandbox-mobile-page .setting_backup_restore {
    display: block;
    margin: 0;
  }

  .setting-sandbox-mobile-page #mode_normal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: #f59e0b;
    color: #0c0e0f;
    font: 700 14px/20px "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .setting-sandbox-mobile-page #mode_normal:hover,
  .setting-sandbox-mobile-page #mode_normal:focus-visible {
    background: #d97706;
    outline: 1px solid #00e5ff;
    outline-offset: 0;
  }

  .setting-sandbox-mobile-page #mode_normal:active {
    background: #b45309;
  }
}

/* Desktop fidelity pass for the account settings screen. */
@media (min-width: 768px) {
  html body:has(.setting1-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1160px, calc(100% - 32px));
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    padding: 22px;
    box-sizing: border-box;
    background: #0c0e0f;
    border: 1px solid #333536;
    border-top: 6px solid #93000a;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page > .delete_reset {
    width: min(720px, 100%);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-top: 2px solid #93000a;
    border-radius: 4px;
    box-shadow: none;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page > .delete_reset > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333536;
    color: #e2e2e3;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page > .delete_reset > h3::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border: 1px solid #ffb4ab;
    background: #93000a;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page > .delete_reset > h3::after {
    content: "setting1.php";
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid #534434;
    border-radius: 2px;
    background: #282a2b;
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.4;
    text-transform: none;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page .setting_backup_restore {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page #delete_account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(320px, 100%);
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #ffb4ab;
    border-radius: 3px;
    background: #93000a;
    color: #ffdad6;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
    cursor: pointer;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page .setting1-delete-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page #delete_account:hover,
  html body:has(.setting1-mobile-page) .setting1-mobile-page #delete_account:focus-visible {
    background: #b91c1c;
    outline: 1px solid #00a2e6;
    outline-offset: 0;
  }

  html body:has(.setting1-mobile-page) .setting1-mobile-page #delete_account:active {
    background: #690005;
  }
}

/* Desktop color pass for the sales recap screen.
   Geometry, spacing, width, height, and existing layout declarations remain unchanged. */
@media (min-width: 768px) {
  .rekap-penjualan-page {
    background: #121415;
    color: #e2e2e3;
    border-color: #2a2d30;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  .rekap-penjualan-page .rekap-mobile-header {
    background: rgba(18, 20, 21, .96);
    border-bottom-color: #2a2d30;
  }

  .rekap-penjualan-page .rekap-mobile-title > span {
    background: #f59e0b;
  }




  .rekap-penjualan-page .rekap-search-panel::before {
    color: #94a3b8;
    border-bottom-color: rgba(42, 45, 48, .7);
  }

  .rekap-penjualan-page .search_box,
  .rekap-penjualan-page .rekap-date-panel .input_date,
  .rekap-penjualan-page .rekap-date-panel .input_year {
    color: #f1f5f9;
    background: #0e1011;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .rekap-date-panel .input_date,
  .rekap-penjualan-page .rekap-date-panel .input_year {
    color: #fbbf24;
  }

  .rekap-penjualan-page .search_box::placeholder,
  .rekap-penjualan-page .input_date::placeholder,
  .rekap-penjualan-page .input_year::placeholder {
    color: #64748b;
  }

  .rekap-penjualan-page #search_box_barang:focus,
  .rekap-penjualan-page #search_box:focus,
  .rekap-penjualan-page #search_box_nota:focus,
  .rekap-penjualan-page .input_date:focus,
  .rekap-penjualan-page .input_year:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .rekap-penjualan-page .search_button,
  .rekap-penjualan-page #filter {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-penjualan-page .search_button:hover,
  .rekap-penjualan-page .search_button:focus-visible,
  .rekap-penjualan-page #filter:hover,
  .rekap-penjualan-page #filter:focus-visible,
  .rekap-penjualan-page .search_button:active,
  .rekap-penjualan-page #filter:active {
    background: #d97706;
    border-color: #d97706;
  }





  .rekap-penjualan-page .rekap-date-panel p {
    color: #94a3b8;
  }

  .rekap-penjualan-page .rekap-table-heading {
    color: #cbd5e1;
    background: #141618;
    border-bottom-color: #2a2d30;
  }

  .rekap-penjualan-page .rekap-table-heading .material-symbols-outlined {
    color: #f59e0b;
  }

  .rekap-penjualan-page .rekap-table-heading small {
    color: #94a3b8;
  }

  .rekap-penjualan-page #rekapPenjualanTable {
    color: #dbe4ee;
    background: #101213;
  }

  .rekap-penjualan-page #rekapPenjualanTable thead,
  .rekap-penjualan-page #rekapPenjualanTable tbody {
    background: #101213;
  }



  .rekap-penjualan-page #rekapPenjualanTable tbody:empty::after {
    color: #64748b;
  }


  .rekap-penjualan-page #pagination_rekap_penjualan .page-btn {
    color: #94a3b8;
    border-color: #2a2d30;
  }



  .rekap-penjualan-page #resiPenjualanModalContent {
    color: #e2e2e3;
    background: #121415;
    border-color: #2a2d30;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  }



  .rekap-penjualan-page .store_name_resi_container,
  .rekap-penjualan-page #resiContent h1,
  .rekap-penjualan-page #resiContent h4,
  .rekap-penjualan-page #resiContent p {
    color: black;
  }

  .rekap-penjualan-page .subtotal_resi,
  .rekap-penjualan-page .diskon_resi,
  .rekap-penjualan-page .total_resi,
  .rekap-penjualan-page .piutang_resi,
  .rekap-penjualan-page .metode_pembayaran_resi,
  .rekap-penjualan-page .kembalian_resi,
  .rekap-penjualan-page .titip_resi {
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .cetak_bon,
  .rekap-penjualan-page .retur_penjualan {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }


  .rekap-penjualan-page #metode,
  .rekap-penjualan-page #qty_retur_penjualan {
    color: #e2e2e3;
    background: #0e1011;
    border-color: #2a2d30;
  }
}

/* Stitch OTP verification screen: mobile presentation only. */
@media (max-width: 767px) {
  .verify-email-mobile-page {
    width: min(390px, 100%);
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 16px;
    justify-content: center;
    align-items: center;
    background: #121415;
  }

  .verify-email-mobile-page > h1 {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 24px 24px 18px;
    border: 1px solid #2e3133;
    border-top: 2px solid #f59e0b;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    background: #1a1c1d;
    color: #ffffff;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 19px;
    line-height: 25px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
  }

  .verify-email-mobile-page > .input_login {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 24px 24px;
    border: 1px solid #2e3133;
    border-top: 0;
    border-bottom: 0;
    background: #1a1c1d;
  }

  .verify-email-mobile-page .kode_verifikasi {
    width: 100%;
    min-width: 0;
    height: 48px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #38393a;
    border-radius: 0;
    background: #0c0e0f;
    color: #ffffff;
    font-family: "JetBrains Mono", monospace;
    font-size: 20px;
    line-height: 48px;
    font-weight: 700;
    text-align: center;
    caret-color: #00e5ff;
  }

  .verify-email-mobile-page .kode_verifikasi:focus {
    border-color: #00e5ff;
    outline: 1px solid #00e5ff;
    outline-offset: 0;
    box-shadow: none;
  }

  .verify-email-mobile-page .kode_verifikasi::-webkit-outer-spin-button,
  .verify-email-mobile-page .kode_verifikasi::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  .verify-email-mobile-page .kode_verifikasi[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
  }

  .verify-email-mobile-page > .button-container {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 24px 24px;
    border: 1px solid #2e3133;
    border-top: 0;
    border-radius: 0 0 2px 2px;
    background: #1a1c1d;
  }

  .verify-email-mobile-page > .button-container .btn,
  .verify-email-mobile-page > .button-container #resendCodeButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #f59e0b;
    border-radius: 0;
    background: #f59e0b;
    color: #0c0e0f;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .verify-email-mobile-page > .button-container #resendCodeButton:hover,
  .verify-email-mobile-page > .button-container #resendCodeButton:focus-visible {
    border-color: #00e5ff;
    background: #d97706;
    outline: 1px solid #00e5ff;
    outline-offset: 0;
  }

  .verify-email-mobile-page > .button-container #resendCodeButton:disabled {
    border-color: #a08e7a;
    background: #534434;
    color: #d8c3ad;
    opacity: 1;
  }
}

/* Desktop fidelity pass for the mode-archive settings screen. */
@media (min-width: 768px) {
  html body:has(.setting-sandbox-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1160px, calc(100% - 32px));
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    padding: 22px;
    box-sizing: border-box;
    background: #0c0e0f;
    border: 1px solid #333536;
    border-top: 6px solid #f59e0b;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page > .backup_restore {
    width: min(720px, 100%);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
    box-shadow: none;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page > .backup_restore > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: #ffc174;
    border-bottom: 1px solid #333536;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page > .backup_restore > h3::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #f59e0b;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page > .backup_restore > h3::after {
    content: "setting_sandbox.php";
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid #534434;
    border-radius: 2px;
    background: rgba(245, 158, 11, .1);
    color: #f59e0b;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: none;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page .setting_backup_restore {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page #mode_normal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 100%);
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #f59e0b;
    border-radius: 3px;
    background: #f59e0b;
    color: #0c0e0f;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
    cursor: pointer;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page #mode_normal:hover,
  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page #mode_normal:focus-visible {
    background: #d97706;
    outline: 1px solid #00e5ff;
    outline-offset: 0;
  }

  html body:has(.setting-sandbox-mobile-page) .setting-sandbox-mobile-page #mode_normal:active {
    background: #b45309;
  }
}

/* Standalone Stitch setting screen: mobile presentation only. */
@media (max-width: 767px) {
  .container.setting-mobile-page {
    width: min(390px, 100%);
    max-width: 390px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 12px 28px;
    box-sizing: border-box;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
  }

  .setting-mobile-page::before {
    content: "PENGATURAN";
    display: block;
    margin: 0 2px 14px;
    color: #ffc174;
    font: 700 24px/30px "Space Grotesk", Arial, sans-serif;
    letter-spacing: -0.02em;
  }

  .setting-mobile-page > .setting_div2 {
    width: 100%;
    margin: 0 0 12px;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid #333536;
    border-radius: 4px;
    background: #1a1c1d;
    box-shadow: none;
  }

  .setting-mobile-page > .setting_div2 > h3 {
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #333536;
    color: #ffc174;
    font: 600 20px/28px "Space Grotesk", Arial, sans-serif;
  }

  .setting-mobile-page .setting_div3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0 0 9px;
    padding: 0;
  }

  .setting-mobile-page .setting_div3 h5 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #d8c3ad;
    font: 600 11px/15px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .setting-mobile-page input[type="text"],
  .setting-mobile-page input[type="email"],
  .setting-mobile-page input[type="number"],
  .setting-mobile-page select,
  .setting-mobile-page textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #534434;
    border-radius: 3px;
    background: #222527;
    color: #e2e2e3;
    font: 500 13px/18px "JetBrains Mono", monospace;
  }

  .setting-mobile-page .setting_div3 > input[type="text"],
  .setting-mobile-page .setting_div3 > input[type="email"],
  .setting-mobile-page .setting_div3 > input[type="number"],
  .setting-mobile-page .setting_div3 > select {
    flex: 0 1 58%;
  }

  .setting-mobile-page input[type="file"] {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #534434;
    border-radius: 3px;
    background: #222527;
    color: #d8c3ad;
    font: 500 11px/16px "JetBrains Mono", monospace;
  }

  .setting-mobile-page input::placeholder,
  .setting-mobile-page textarea::placeholder {
    color: #71767b;
  }

  .setting-mobile-page input:focus,
  .setting-mobile-page select:focus,
  .setting-mobile-page textarea:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .setting-mobile-page input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #f59e0b;
  }

  .setting-mobile-page .note_text,
  .setting-mobile-page small,
  .setting-mobile-page .right-flex {
    display: block;
    margin: 0 0 10px;
    color: #a08e7a;
    font: 500 11px/16px "JetBrains Mono", monospace;
  }

  .setting-mobile-page .img_preview_container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 132px;
    margin: 0 0 10px;
    border: 1px dashed #534434;
    background: #0c0e0f;
  }

  .setting-mobile-page .img_preview_container img {
    max-width: 100%;
    max-height: 120px;
    margin: auto;
  }

  .setting-mobile-page .cancel_save_btn_container,
  .setting-mobile-page .setting_backup_restore {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
  }

  .setting-mobile-page .setting_backup_restore {
    grid-template-columns: minmax(0, 1fr);
  }

  .setting-mobile-page button,
  .setting-mobile-page .btn {
    min-height: 44px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 3px;
    font: 600 12px/16px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: 0.03em;
  }

  .setting-mobile-page .btn-primary {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #472a00;
  }

  .setting-mobile-page .btn-secondary {
    border-color: #534434;
    background: #282a2b;
    color: #d8c3ad;
  }

  .setting-mobile-page .backup_btn {
    border-color: #89ceff;
    background: #1e2021;
    color: #89ceff;
  }

  .setting-mobile-page .restore_reset_btn,
  .setting-mobile-page #delete_database,
  .setting-mobile-page #hard_reset_database {
    border-color: #8b2b28;
    background: #6b1d1a;
    color: #ffdad6;
  }

  .setting-mobile-page .btn-orange,
  .setting-mobile-page #mode_arsip {
    border-color: #f59e0b;
    background: #3b2b12;
    color: #ffc174;
  }

  .setting-mobile-page button a {
    color: inherit;
    text-decoration: none;
  }

  .setting-mobile-page .daftar_pengguna_table {
    display: block;
    width: 100%;
    margin: 0px;
    overflow-x: auto;
    border: 1px solid #333536;
    background: #0c0e0f;
    color: #e2e2e3;
    font: 500 11px/16px "JetBrains Mono", monospace;
  }

  .setting-mobile-page .daftar_pengguna_table table,
  .setting-mobile-page table {
    min-width: 540px;
  }

  .setting-mobile-page .daftar_pengguna_table th,
  .setting-mobile-page .daftar_pengguna_table td {
    padding: 9px 8px;
    border-color: #333536;
    white-space: nowrap;
    vertical-align: middle;
  }

  .setting-mobile-page .pengguna > h5 {
    margin: 0 0 8px;
    color: #d8c3ad;
    font: 600 11px/15px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .setting-mobile-page .setting_add_user {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 8px;
  }

  .setting-mobile-page .setting_add_user select,
  .setting-mobile-page .setting_add_user input {
    width: 100%;
  }

  .setting-mobile-page .setting_add_user input:last-child {
    grid-column: 1 / -1;
  }

  .setting-mobile-page .sumber_uang .setting_div3,
  .setting-mobile-page .notifikasi .setting_div3,
  .setting-mobile-page .pengaturan_resi .setting_div3 {
    min-height: 30px;
  }

  .setting-mobile-page .pengaturan_resi > #footer_text {
    display: block;
    margin: 0 0 10px;
  }

  .setting-mobile-page .poin-input-wrapper {
    display: flex;
    align-items: center;
    flex: 0 1 58%;
    min-width: 0;
    gap: 6px;
    color: #ffc174;
    font: 600 13px/18px "JetBrains Mono", monospace;
  }

  .setting-mobile-page .poin-input-wrapper input {
    flex: 1 1 auto;
    width: auto;
  }

  .setting-mobile-page > .sumber_uang:has(#save_country) {
    display: none;
  }

  .setting-mobile-page .popup {
    position: fixed;
    inset: 0;
    z-index: 20;
    padding: 14px;
    overflow-y: auto;
    background: rgba(12, 14, 15, 0.92);
  }

  .setting-mobile-page .popup-content {
    width: 100%;
    max-width: 390px;
    margin: 12px auto;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid #534434;
    border-radius: 4px;
    background: #1a1c1d;
  }

  .setting-mobile-page .hak_akses_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    color: #e2e2e3;
    font: 500 11px/15px "JetBrains Mono", monospace;
  }

  .setting-mobile-page .hak_akses_container h5,
  .setting-mobile-page .hak_akses_container .cancel_save_btn_container {
    grid-column: 1 / -1;
  }

  .setting-mobile-page .hak_akses_container .cancel_save_btn_container {
    display: grid;
  }
}

/* Stitch: TB. MAJU - Hutang Supplier Mobile (hutang.php). Mobile-only
   treatment; the existing desktop debt table and handlers remain intact. */
@media (min-width: 768px) {
  .hutang-mobile-header span { display: none; }
}

@media (max-width: 767px) {
  body:has(.timbang-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #121415;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", sans-serif;
  }

  .timbang-mobile-page {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    margin: 0 auto;
    padding: .75rem .75rem 2rem;
    box-sizing: border-box;
    background: #121415;
    color: #e2e2e3;
  }

  .timbang-mobile-page .timbang-transaction-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    width: 100%;
    min-height: 3.2rem;
    margin-bottom: 1rem;
    padding: .75rem;
    box-sizing: border-box;
    background: #1a1c1d;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }

  .timbang-mobile-page .timbang-transaction-label,
  .timbang-mobile-page .timbang-transaction-value {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
  }

  .timbang-mobile-page .timbang-transaction-label {
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .timbang-mobile-page .timbang-transaction-label .material-symbols-outlined {
    color: #ffc174;
    font-size: 1.05rem;
  }

  .timbang-mobile-page .timbang-transaction-value {
    max-width: 58%;
    padding: .35rem .5rem;
    background: #0c0e0f;
    border-radius: 3px;
  }

  .timbang-mobile-page .timbang-transaction-value > span {
    flex: 0 0 auto;
    width: .38rem;
    height: .38rem;
    background: #56e5a9;
    border-radius: 50%;
  }

  .timbang-mobile-page #idt {
    width: 8.5rem;
    max-width: 100%;
    min-height: 1.5rem;
    padding: 0;
    color: #ffc174;
    background: transparent;
    border: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
    font-weight: 600;
    text-align: right;
  }

  .timbang-mobile-page > .search_container {
    display: flex !important;
    flex-direction: column;
    gap: 1rem !important;
    margin: 0 !important;
  }

  .timbang-mobile-page .timbang-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: 100%;
    margin: 0 !important;
    padding: .85rem;
    box-sizing: border-box;
    background: #1e2021;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,.24);
  }

  .timbang-mobile-page .timbang-card h2 {
    display: flex;
    align-items: center;
    min-height: 1.35rem;
    margin: 0;
    padding-left: .7rem;
    color: #e2e2e3;
    border-left: 4px solid #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
  }

  .timbang-mobile-page .timbang-card h2::after {
    margin-left: auto;
    padding: .2rem .35rem;
    color: #ffc174;
    background: #282a2b;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .05em;
  }

  .timbang-mobile-page .timbang-outflow h2::after { content: "OUTFLOW"; }
  .timbang-mobile-page .timbang-inflow h2 { border-left-color: #89ceff; }
  .timbang-mobile-page .timbang-inflow h2::after { content: "INFLOW"; color: #89ceff; }

  .timbang-mobile-page .timbang-card .search_box_timbang {
    width: 100% !important;
    height: 2.75rem;
    min-height: 2.75rem;
    margin: 0 !important;
    padding: .55rem .7rem .55rem 2.4rem;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #282a2b;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: .82rem;
  }

  .timbang-mobile-page .timbang-card .search_box_timbang:focus {
    outline: none;
    background: #333536;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .timbang-mobile-page .timbang-card::after {
    position: absolute;
    top: 4.05rem;
    left: 1.5rem;
    color: #a08e7a;
    content: "search";
    font-family: "Material Symbols Outlined";
    font-size: 1.2rem;
    pointer-events: none;
  }

  .timbang-mobile-page .timbang-card label {
    margin: 0;
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
    font-weight: 500;
  }

  .timbang-mobile-page .timbang-card > label,
  .timbang-mobile-page .timbang-card > input:not(.search_box_timbang),
  .timbang-mobile-page .timbang-card > .search_results { margin: 0; }

  .timbang-mobile-page .timbang-card > input[type="number"],
  .timbang-mobile-page .timbang-card > input[id^="idb"] {
    width: 100%;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #282a2b;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: .95rem;
  }

  .timbang-mobile-page .timbang-card > input[id^="idb"] {
    color: #89ceff;
    background: #0c0e0f;
    font-size: .72rem;
    text-transform: uppercase;
  }

  .timbang-mobile-page .timbang-card > input:focus {
    outline: none;
    background: #333536;
    border-color: #0ea5e9;
  }

  .timbang-mobile-page .timbang-card > label:nth-of-type(1),
  .timbang-mobile-page .timbang-card > input[type="number"] { margin-top: .15rem; }

  .timbang-mobile-page .search_results {
    position: absolute;
    top: 5.8rem;
    right: .85rem;
    left: .85rem;
    z-index: 30;
    max-height: 14rem;
    margin: 0 !important;
    overflow-y: auto;
    background: #333536;
    border: 1px solid #534434;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0,0,0,.4);
  }

  .timbang-mobile-page #search_results_1:has(> .suggestion-item_1:empty),
  .timbang-mobile-page #search_results_2:has(> .suggestion-item_2:empty) { display: none; }

  .timbang-mobile-page .suggestion-item_1,
  .timbang-mobile-page .suggestion-item_2 {
    color: #e2e2e3;
    background: #333536;
    border-bottom: 1px solid #534434;
    cursor: pointer;
    font-size: .78rem;
  }

  .timbang-mobile-page .suggestion-item_1:hover,
  .timbang-mobile-page .suggestion-item_2:hover,
  .timbang-mobile-page .suggestion-item_1.active,
  .timbang-mobile-page .suggestion-item_2.active {
    color: #ffc174;
    background: #38393a;
  }

  .timbang-mobile-page > .button-container {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: 1rem 0 0;
  }

  .timbang-mobile-page > .button-container button {
    width: 100%;
    height: 3rem;
    margin: 0;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .timbang-mobile-page #convertButton {
    color: #613b00;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245,158,11,.22);
  }

  .timbang-mobile-page #clear {
    height: 2.75rem;
    color: #89ceff;
    background: #282a2b;
    border: 1px solid #2a2d30;
  }
}

/* Desktop fidelity pass for Timbang.
   Keep the mobile Stitch hierarchy, but fit the complete transaction form in
   the viewport so the page itself does not scroll vertically. */
@media (min-width: 768px) {
  html body:has(.timbang-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", sans-serif;
  }



  html body:has(.timbang-mobile-page) .timbang-transaction-label {
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-label .material-symbols-outlined {
    color: #ffc174;
    font-size: 18px;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
    padding: 8px 12px;
    background: #0c0e0f;
    border-radius: 3px;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: #56e5a9;
    border-radius: 50%;
  }










  html body:has(.timbang-mobile-page) .timbang-mobile-page .search_box_timbang:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card::after {
    position: absolute;
    top: 88px;
    left: 32px;
    color: #a08e7a;
    content: "search";
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    pointer-events: none;
  }



  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card > input[id^="idb"] {
    color: #89ceff;
    background: #0c0e0f;
    font-size: 12px;
    text-transform: uppercase;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card > input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }






}

@media (min-width: 768px) {

  html body:has(.timbang-mobile-page) .timbang-transaction-label {
    display: flex;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value {
    display: flex;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value > span {
    display: block;
  }

  body:has(.maju-hutang-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  body:has(.maju-hutang-page) .maju-hutang-page {
    margin: 0.5rem auto !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
    background: #121415 !important;
    border: 1px solid #222528 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body:has(.maju-hutang-page) .hutang-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0 0.65rem;
    border-bottom: 1px solid #26292c;
  }

  body:has(.maju-hutang-page) .hutang-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    color: #f1f5f9;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) .hutang-mobile-header h1::before {
    position: absolute;
    top: 0.28rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  body:has(.maju-hutang-page) .hutang-mobile-header span {
    padding: 0.3rem 0.5rem;
    color: #94a3b8;
    background: #1a1c1e;
    border: 1px solid #2e3235;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }

  body:has(.maju-hutang-page) .maju-hutang-page > .search_container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    margin: 0 0 0.75rem !important;
  }

  body:has(.maju-hutang-page) .maju-hutang-page .search-container {
    position: relative;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
  }

  body:has(.maju-hutang-page) #search_box {
    width: 100% !important;
    min-height: 2.75rem !important;
    box-sizing: border-box !important;
    padding: 0.6rem 0.75rem !important;
    color: #e2e2e3 !important;
    background: #131516 !important;
    border: 1px solid #0ea5e9 !important;
    border-radius: 4px !important;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.78rem;
  }

  body:has(.maju-hutang-page) #search_box:focus {
    outline: none;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  body:has(.maju-hutang-page) #search_hutang {
    min-width: 4.5rem !important;
    min-height: 2.75rem !important;
    padding: 0 1rem !important;
    color: #181a1b !important;
    background: #f59e0b !important;
    border: 1px solid #f59e0b !important;
    border-radius: 4px !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) #search_results {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    z-index: 20;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #2a2e32;
    border-radius: 3px;
  }

  body:has(.maju-hutang-page) #search_results:empty { display: none; }
  body:has(.maju-hutang-page) .suggestion-item {
    color: #e2e2e3;
    border-bottom: 1px solid #1e2225;
    font-size: 0.74rem;
  }
  body:has(.maju-hutang-page) .suggestion-item.active,
  body:has(.maju-hutang-page) .suggestion-item:hover {
    color: #ffc174;
    background: #1b2228;
    border-left: 2px solid #f59e0b;
  }

  body:has(.maju-hutang-page) .hutang-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
  }

  body:has(.maju-hutang-page) #hutangTable {
    width: 100% !important;
    min-width: 760px !important;
    margin: 0 !important;
    border-collapse: collapse;
    color: #d8dee8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }

  body:has(.maju-hutang-page) #hutangTable th {
    padding: 0.7rem 0.55rem !important;
    color: #94a3b8;
    background: #121415;
    border: 1px solid #2a2d30;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body:has(.maju-hutang-page) #hutangTable td {
    min-height: 2.7rem;
    padding: 0.65rem 0.55rem !important;
    color: #e2e2e3;
    background: #181a1b;
    border: 1px solid #292d30;
  }
  body:has(.maju-hutang-page) #hutangTable tbody tr:hover td {
    background: #2c3033;
    border-left-color: #f59e0b;
  }

  body:has(.maju-hutang-page) #pagination_hutang {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    min-height: 2.75rem;
    margin: 0.5rem 0 0 !important;
    padding: 0.35rem !important;
    box-sizing: border-box;
    overflow-x: auto;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }
  body:has(.maju-hutang-page) #pagination_hutang .page-btn {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }
  body:has(.maju-hutang-page) #pagination_hutang .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  body:has(.maju-hutang-page) #hutangModal {
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
  }

  body:has(.maju-hutang-page) #hutangModalContent {
    position: relative;
    width: 100% !important;
    max-width: 390px !important;
    max-height: 92vh !important;
    margin: 0 !important;
    padding: 0.9rem !important;
    overflow-y: auto !important;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #121415 !important;
    border: 1px solid #2a2d30 !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
  }

  body:has(.maju-hutang-page) #closeModal {
    position: absolute !important;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    color: #94a3b8;
    background: #101213;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-size: 1.3rem !important;
    line-height: 1.7rem;
    text-align: center;
  }

  body:has(.maju-hutang-page) #modalTitle {
    margin: 0 2.7rem 0.85rem 0;
    padding-bottom: 0.7rem;
    color: #f1f5f9;
    border-bottom: 1px solid #25282b;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
  }

  body:has(.maju-hutang-page) #totalHutang,
  body:has(.maju-hutang-page) #pembayaranTable,
  body:has(.maju-hutang-page) #pembelianTable {
    width: max-content !important;
    min-width: 100% !important;
    margin-top: 0.6rem !important;
    border-collapse: collapse;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }

  body:has(.maju-hutang-page) #totalHutang th,
  body:has(.maju-hutang-page) #pembayaranTable th,
  body:has(.maju-hutang-page) #pembelianTable th,
  body:has(.maju-hutang-page) #totalHutang td,
  body:has(.maju-hutang-page) #pembayaranTable td,
  body:has(.maju-hutang-page) #pembelianTable td {
    padding: 0.55rem 0.5rem !important;
    border: 1px solid #2a2d30;
    white-space: nowrap;
  }

  body:has(.maju-hutang-page) #totalHutang th,
  body:has(.maju-hutang-page) #pembayaranTable th,
  body:has(.maju-hutang-page) #pembelianTable th {
    color: #94a3b8;
    background: #16181a;
    font-size: 0.56rem;
    text-transform: uppercase;
  }

  body:has(.maju-hutang-page) #hutangModalContent > div[style*="margin-top"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem !important;
  }

  body:has(.maju-hutang-page) #nominal_bayar,
  body:has(.maju-hutang-page) #ket {
    width: 100% !important;
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.6rem 0.65rem;
    color: #e2e2e3;
    background: #151718;
    border: 1px solid #2c3033;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.72rem;
  }

  body:has(.maju-hutang-page) #btnBayar,
  body:has(.maju-hutang-page) #btnLunas,
  body:has(.maju-hutang-page) #switchTable {
    min-height: 2.75rem;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  body:has(.maju-hutang-page) #btnBayar {
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }
  body:has(.maju-hutang-page) #btnLunas {
    color: #042f20;
    background: #10b981;
    border: 1px solid #10b981;
  }
  body:has(.maju-hutang-page) #switchTable {
    width: 100%;
    margin-top: 0.65rem;
    color: #38bdf8;
    background: #141b20;
    border: 1px solid #0ea5e9;
  }

  body:has(.maju-hutang-page) #pembayaranSection,
  body:has(.maju-hutang-page) #pembelianSection {
    width: 100%;
    margin-top: 0.75rem;
    overflow-x: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }
}

/* Stitch: TB. MAJU - Rekap Penjualan Mobile (rekap_penjualan.php).
   Presentation-only mobile layer; existing IDs, handlers, AJAX and desktop rules remain unchanged. */
@media (max-width: 767px) {
  .rekap-penjualan-page .rekap-penjualan-page {
    width: 100% !important;
    max-width: 390px !important;
    min-height: 100vh;
    margin: 0 auto !important;
    padding: 0 0.75rem 1.25rem !important;
    box-sizing: border-box;
    background: #121415 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
  }

  .rekap-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 3.15rem;
    margin: 0 -0.75rem 0.75rem;
    padding: 0.65rem 0.75rem;
    box-sizing: border-box;
    background: rgba(18, 20, 21, 0.96);
    border-bottom: 1px solid #2a2d30;
    backdrop-filter: blur(8px);
  }

  .rekap-mobile-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.55rem;
  }

  .rekap-mobile-title > span {
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    background: #f59e0b;
    border-radius: 2px;
  }

  .rekap-mobile-header h1 {
    min-width: 0;
    margin: 0 !important;
    color: #f8fafc;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .rekap-mobile-source {
    flex: 0 0 auto;
    padding: 0.25rem 0.4rem;
    color: #94a3b8;
    background: #1c1f22;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.54rem;
    line-height: 1;
  }

  .rekap-penjualan-page .rekap-search-panel,
  .rekap-penjualan-page .rekap-date-panel {
    display: grid !important;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0 0 0.7rem !important;
    padding: 0.75rem;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .rekap-penjualan-page .rekap-search-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rekap-penjualan-page .search-container {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0 !important;
  }

  .rekap-penjualan-page .search_box {
    width: 100% !important;
    min-height: 2.75rem;
    height: 2.75rem;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0.55rem 0.7rem;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
  }

  .rekap-penjualan-page #search_box_barang:focus,
  .rekap-penjualan-page #search_box:focus,
  .rekap-penjualan-page #search_box_nota:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .rekap-penjualan-page #search_box_nota {
    font-family: "JetBrains Mono", monospace;
  }

  .rekap-penjualan-page .search_button,
  .rekap-penjualan-page #filter {
    align-self: stretch;
    min-width: 4.4rem;
    height: 2.75rem;
    margin: 0 !important;
    padding: 0 0.75rem;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .rekap-penjualan-page .search_button:active,
  .rekap-penjualan-page #filter:active { background: #d97706; }

  .rekap-penjualan-page .search_results {
    top: calc(100% + 0.2rem);
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #2a2d30;
    border-radius: 3px;
  }

  .rekap-penjualan-page .search_results:empty { display: none; }
  .rekap-penjualan-page .suggestion-item,
  .rekap-penjualan-page .suggestion-item_barang {
    color: #e5e7eb;
    background: #121415;
    border-bottom: 1px solid #22272a;
    font-size: 0.72rem;
  }

  .rekap-penjualan-page .suggestion-item:hover,
  .rekap-penjualan-page .suggestion-item.active,
  .rekap-penjualan-page .suggestion-item_barang:hover {
    color: #ffc174;
    background: #1b2228;
    border-left: 2px solid #f59e0b;
  }

  .rekap-penjualan-page .rekap-date-panel {
    grid-template-columns: auto 2.75rem auto 2.75rem auto 4rem auto;
    align-items: center;
  }

  .rekap-penjualan-page .rekap-date-panel h3 {
    margin: 0;
    color: #cbd5e1;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .rekap-penjualan-page .rekap-date-panel p {
    margin: 0;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
  }

  .rekap-penjualan-page .rekap-date-panel > input,
  .rekap-penjualan-page .rekap-date-panel > p { align-self: center; }

  .rekap-penjualan-page .rekap-date-panel .input_date,
  .rekap-penjualan-page .rekap-date-panel .input_year {
    width: auto;
    min-width: 0;
    height: 2.75rem;
    margin: 0;
    padding: 0.45rem 0.25rem;
    box-sizing: border-box;
    color: #fbbf24;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    text-align: center;
  }

  .rekap-penjualan-page .rekap-date-panel .input_date { width: 2.75rem; }
  .rekap-penjualan-page .rekap-date-panel .input_year { width: 4rem; }

  .rekap-table-card {
    margin-bottom: 0.7rem;
    overflow: hidden;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  .rekap-table-heading {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.55rem 0.65rem;
    color: #cbd5e1;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .rekap-table-heading .material-symbols-outlined { color: #f59e0b; font-size: 1rem; }
  .rekap-table-heading small {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.54rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .rekap-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rekap-penjualan-page #rekapPenjualanTable {
    width: max-content;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    background: #101213;
    color: #dbe4ee;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }

  .rekap-penjualan-page #rekapPenjualanTable thead,
  .rekap-penjualan-page #rekapPenjualanTable tbody tr {
    display: table;
    width: 100%;
    table-layout: auto;
  }

  .rekap-penjualan-page #rekapPenjualanTable thead { background: #101213; }
  .rekap-penjualan-page #rekapPenjualanTable th {
    padding: 0.65rem 0.7rem;
    color: #94a3b8;
    border-right: 1px solid rgba(42,45,48,.55);
    border-bottom: 1px solid #2a2d30;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .rekap-penjualan-page #rekapPenjualanTable td {
    padding: 0.65rem 0.7rem;
    border-bottom: 1px solid rgba(42,45,48,.5);
    white-space: nowrap;
  }

  .rekap-penjualan-page #rekapPenjualanTable tbody {
    display: block;
    max-height: 27rem;
    overflow-y: auto;
    background: #101213;
  }

  .rekap-penjualan-page #rekapPenjualanTable tbody:empty::after {
    display: block;
    width: 760px;
    padding: 3rem 1rem;
    box-sizing: border-box;
    color: #64748b;
    content: "Belum ada data rekap penjualan yang dimuat";
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    text-align: center;
  }

  .rekap-penjualan-page #pagination_rekap_penjualan {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2.65rem;
    margin: 0;
    padding: 0.5rem;
    box-sizing: border-box;
    background: #111314;
    border-top: 1px solid #2a2d30;
  }

  .rekap-penjualan-page #pagination_rekap_penjualan .page-btn {
    min-width: 2rem;
    height: 1.8rem;
    padding: 0 0.45rem;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }

  .rekap-penjualan-page #pagination_rekap_penjualan .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-penjualan-page #resiPenjualanModal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(3px);
  }

  .rekap-penjualan-page #resiPenjualanModalContent {
    width: 100%;
    max-width: 390px;
    min-width: 0;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }

  .rekap-penjualan-page #closePenjualanModal {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    color: #94a3b8;
    background: #1c1f22;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-size: 1.35rem !important;
    line-height: 1.8rem;
    text-align: center;
  }

  .rekap-penjualan-page #modalTitle {
    margin: 0;
    padding: 0.85rem 3rem 0.8rem 0.9rem;
    color: #f8fafc;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    text-align: left;
  }

  .rekap-penjualan-page #resiContent {
    max-height: 63vh;
    margin: 0;
    padding: 0.85rem;
    overflow-y: auto;
    box-sizing: border-box;
    color: #111827;
    background: #f8fafc;
  }

  .rekap-penjualan-page #resiContent img { max-width: 100%; }
  .rekap-penjualan-page .store_name_resi_container { margin: .3rem 0; font-size: 1rem; }
  .rekap-penjualan-page #resiContent .datetime_resi { margin: .55rem 0; }
  .rekap-penjualan-page #resiContent .pembayaran_resi { padding-top: .3rem; }
  .rekap-penjualan-page #resiContent .form-group { margin: .35rem 0; }

  .rekap-penjualan-page .modal-content_button_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem;
    background: #141618;
    border-top: 1px solid #2a2d30;
  }

  .rekap-penjualan-page .modal-content_button_container button {
    min-height: 2.65rem;
    margin: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .rekap-penjualan-page #cetak_bon {
    grid-column: 1 / -1;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }

  .rekap-penjualan-page #voidFaktur,
  .rekap-penjualan-page #retur_penjualan {
    color: #fb7185;
    background: #1d1417;
    border: 1px solid #7f1d1d;
  }

  .rekap-penjualan-page #metode,
  .rekap-penjualan-page #qty_retur_penjualan {
    min-width: 0;
    width: 100%;
    height: 2.35rem;
    margin: 0;
    padding: 0.4rem 0.55rem;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  .rekap-penjualan-page .back_button {
    top: 45%;
    z-index: 2;
    opacity: .1;
    position: fixed;
    left: 40px;
  }
  .rekap-penjualan-page .next_button {
    top: 45%;
    z-index: 2;
    opacity: .1;
    position: fixed;
    right: 40px;
  }
}

/* The page is also loaded into #content by index.php, where its <body> tag is
   not inserted. Keep modal presentation scoped to the loaded page root too. */
@media (max-width: 767px) {
  body:has(.rekap-penjualan-page) #resiPenjualanModal {
    justify-content: center;
    padding: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(3px);
  }
  body:has(.rekap-penjualan-page) #resiPenjualanModalContent {
    width: 100%;
    max-width: 390px;
    min-width: 0;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    position: relative;
  }
  body:has(.rekap-penjualan-page) #closePenjualanModal {
    position: absolute;
    top: .55rem;
    right: .2rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    color: #94a3b8;
    border-radius: 4px;
    font-size: 1.35rem !important;
    line-height: 1.8rem;
    text-align: center;
  }
  body:has(.rekap-penjualan-page) #modalTitle {
    margin: 0;
    padding: .85rem 3rem .8rem .9rem;
    color: #f8fafc;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: .9rem;
    text-align: left;
  }
  body:has(.rekap-penjualan-page) #resiContent {
    max-height: 63vh;
    margin: 0;
    padding: .85rem;
    overflow-y: auto;
    box-sizing: border-box;
    color: #111827;
    background: #f8fafc;
  }
  body:has(.rekap-penjualan-page) .modal-content_button_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: 0;
    padding: .75rem;
    background: #141618;
    border-top: 1px solid #2a2d30;
  }
  body:has(.rekap-penjualan-page) .modal-content_button_container button {
    min-height: 2.65rem;
    margin: 0;
    padding: .45rem .55rem;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  body:has(.rekap-penjualan-page) #cetak_bon {
    grid-column: 1 / -1;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }
  body:has(.rekap-penjualan-page) #voidFaktur,
  body:has(.rekap-penjualan-page) #retur_penjualan {
    color: #fb7185;
    background: #1d1417;
    border: 1px solid #7f1d1d;
  }
  body:has(.rekap-penjualan-page) #metode,
  body:has(.rekap-penjualan-page) #qty_retur_penjualan {
    min-width: 0;
    width: 100%;
    height: 2.35rem;
    margin: 0;
    padding: .4rem .55rem;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
  }
}

@media (min-width: 768px) {
  .rekap-mobile-source,
  .rekap-table-heading { display: none; }
  .rekap-mobile-header { display: block; }
  .rekap-mobile-title > span { display: none; }
  .rekap-table-card { display: contents; }
}

/* Pembelian uses the same approved mobile rekap shell while retaining its own
   table/modal IDs and purchase-specific JavaScript handlers. */
@media (max-width: 767px) {
  body:has(.rekap-penjualan-page) .rekap-penjualan-page {
    width: 100% !important;
    max-width: 390px !important;
    min-height: 100vh;
    margin: 0 auto !important;
    padding: 0 .75rem 1.25rem !important;
    box-sizing: border-box;
    background: #121415 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
  }

  body:has(.rekap-pembelian-page) #rekapPembelianTable {
    width: max-content;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    background: #101213;
    color: #dbe4ee;
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
  }

  body:has(.rekap-pembelian-page) #rekapPembelianTable thead,
  body:has(.rekap-pembelian-page) #rekapPembelianTable tbody tr {
    display: table;
    width: 100%;
    table-layout: auto;
  }

  body:has(.rekap-pembelian-page) #rekapPembelianTable th {
    padding: .65rem .7rem;
    color: #94a3b8;
    background: #101213;
    border-right: 1px solid rgba(42,45,48,.55);
    border-bottom: 1px solid #2a2d30;
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body:has(.rekap-pembelian-page) #rekapPembelianTable td {
    padding: .65rem .7rem;
    border-bottom: 1px solid rgba(42,45,48,.5);
    white-space: nowrap;
  }

  body:has(.rekap-pembelian-page) #rekapPembelianTable tbody {
    display: block;
    max-height: 27rem;
    overflow-y: auto;
    background: #101213;
  }

  body:has(.rekap-pembelian-page) #rekapPembelianTable tbody:empty::after {
    display: block;
    width: 760px;
    padding: 3rem 1rem;
    box-sizing: border-box;
    color: #64748b;
    content: "Belum ada data rekap pembelian yang dimuat";
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
    text-align: center;
  }

  body:has(.rekap-pembelian-page) #pagination_rekap_pembelian {
    display: flex;
    justify-content: center;
    gap: .25rem;
    min-height: 2.65rem;
    margin: 0;
    padding: .5rem;
    box-sizing: border-box;
    background: #111314;
    border-top: 1px solid #2a2d30;
  }

  body:has(.rekap-pembelian-page) #pagination_rekap_pembelian .page-btn {
    min-width: 2rem;
    height: 1.8rem;
    padding: 0 .45rem;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
  }

  body:has(.rekap-pembelian-page) #pagination_rekap_pembelian .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  body:has(.rekap-pembelian-page) #resiPembelianModal {
    justify-content: center;
    padding: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(3px);
  }

  body:has(.rekap-pembelian-page) #resiPembelianModalContent {
    width: 100%;
    max-width: 390px;
    min-width: 0;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    position: relative;
  }

  body:has(.rekap-pembelian-page) #voidFaktur {
    margin-top: 10px;
  }

  body:has(.rekap-pembelian-page) #closePembelianModal {
    position: absolute;
    top: .55rem;
    right: .2rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    color: #94a3b8;
    border-radius: 4px;
    font-size: 1.35rem !important;
    line-height: 1.8rem;
    text-align: center;
  }

  body:has(.rekap-pembelian-page) #modalTitle {
    margin: 0;
    padding: .85rem 3rem .8rem .9rem;
    color: #f8fafc;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: .9rem;
    text-align: left;
  }

  body:has(.rekap-pembelian-page) #resiContent {
    max-height: 63vh;
    margin: 0;
    padding: .85rem;
    overflow-y: auto;
    box-sizing: border-box;
    color: #111827;
    background: #f8fafc;
  }

  body:has(.rekap-pembelian-page) .rekap-modal-void-action {
    width: calc(100% - 1.5rem);
    min-height: 2.65rem;
    margin: 0 .75rem .75rem;
    padding: .45rem .55rem;
    color: #fb7185;
    background: #1d1417;
    border: 1px solid #7f1d1d;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
  }
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #2e2e3f;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
}

.logo span {
  color: #a855f7;
}

.sidebar nav a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.logout {
  color: #fff;
  background: #a855f7;
  border-radius: 6px;
  padding-left: 10px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
  background: #1e1e2f;
  position: relative;
}

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

.greeting {
  font-size: 20px;
  font-weight: 600;
}

.datetime {
  font-size: 16px;
  color: #bbb;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  background: #2e2e3f;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
  color: #fff;
}

.card:hover {
  background: #a855f7;
  transform: translateY(-4px);
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background: rgba(27, 19, 46, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 50px 20px;
  font-family: 'Poppins', sans-serif;
  z-index: 999;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}

.footer-column h3 {
  color: #ffb84d;
  font-size: 1.2rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-column p {
  color: #bbb;
  font-size: 0.9rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffb84d;
}

.footer-column i {
  margin-right: 8px;
  color: #ffb84d;
}

.arsip_title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #EAB308;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  z-index: 20;
}

.container {
  margin: 40px auto;
  padding: 30px;
  background-color: #2c2c3c;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group-row {
  display: flex;
  flex-direction: row;
  gap: 2px;
}

.form-group-row a {
  margin: auto;
  color: white;
  font-size: small;
}

input {
  padding: 8px 12px;
  border-radius: 6px;
}

.kode-btn {
  margin-top: 10px;
  padding: 8px;
  background-color: #005fdd;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.button-group {
  margin: 30px 0 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}


.btn.red {
  background-color: #dc3545;
  color: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #101620;
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #2a2f3a;
}

th {
  background-color: #1f2a38;
  color: #89b4fa;
}

.cari {
  margin-top: 20px;
  text-align: center;
  font-size: 24px;
  color: #7fff96;
  font-weight: bold;
}

h1 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
}

section {
  margin-bottom: 0px;
}

.form-group h2{
  font-size: 15px;
  margin: 5px 0px;
}

label {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #aaa;
}

.main-data, .supplier-data, .customer-data, .barang, .disc_sum, .total-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
  margin-top: 5px;
}

.disc_sum {
  width: max-content;
  z-index: 9999;
}

.customer_detail_resi {
  justify-content: space-between;
  margin: 10px;
}

.customer_detail_resi h4 {
  margin: 0px;
  font-size: 15px;
}

.total_rekap_piutang_resi {
  font-weight: 600;
}

.cetak_rekap_piutang {
  margin-top: 10px;
}

.tanggal_piutang_detail {
  text-align: left;
}

.sisa_piutang_detail {
  text-align: right;
}

.qrContainer img {
  width: 100px;
  margin: auto;
}

.total-section {
  align-items: center;
  background: #2f3247;
  padding: 0px 20px;
  border-radius: 8px;
}

.total {
  text-align: center;
}
.total h2 {
  color: #fff;
  margin-top: 0px;
  margin-bottom: 5px;
  font-size: 20px;
}
.total p {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00f7ff;
}

.input_total {
  margin-bottom: 5px;
}

.subtotal {
  margin: 0px 100px;
}

.subtotal input {
  margin-bottom: 10px;
  width: 100%;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.btn {
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe_plan_features {
  justify-content: space-between;
}

.subscribe_plan_check_symbol {
  align-content: center;
}

.subscribe_plan_check_symbol:hover {
  cursor: default;
}

.btn_show_input_kode_promo {
  background-color: transparent;
  text-align: left;
  margin: 5px;
  font-size: 15px;
  font-weight: bold;
  color: aquamarine;
}

.green { background-color: #27ae60; }
.white { background-color: white; color: black; }
.blue { background-color: #2980b9; }
.cyan { background-color: #1abc9c; }
.gray { background-color: #7f8c8d; }
.red { background-color: #e74c3c; }
.transparent { background-color: transparent; }

.table-section {
  position: relative;
}

.table-section table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e2e;
  border-radius: 6px;
  overflow: hidden;
}

.table-section thead, .table-section tfoot {
  background: #2c2c3c;
  color: #ccc;
}

.table-section tbody {
  display: block;
  height: 300px; /* Atur tinggi sesuai kebutuhan */
  overflow-y: auto;
  width: 100%;
}

.table-section thead, .table-section tfoot tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.table-section tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.table-section th,
.table-section td {
  text-align: center;
  border-bottom: 1px solid #333;

}

.table-section th {
  background-color: #2c2c3c;
  color: #ccc;
  font-size: 15px;
}

.table-section td {
  font-size: 12px;
}

#disc_button {
    background-color: transparent;
    border: none;
    padding: 0px;
    border-radius: 5px;
    cursor: pointer;
    color: #bdbdbd;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-align: left;
    height: auto;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

#disc_row {
    margin: auto;
    display: flex;
    flex-wrap: unset;
}

.pot_rata, .unit_ppn, .htp, .hpp, .transport_rata, .diskon_rata, .jumlah_akhir {
  width: 50px;
  font-size: 10px;
  padding: 2px;
  background-color: transparent;
  text-align: -webkit-center;
}

.judul_tabel {
  display: flex;
  gap: 10px;
  align-items: center;
}

.judul_tabel h3 {
  font-size: 15px;
}

#jumlah_barang {
  height: fit-content;
  width: 30px;
}

.suggestion-item.active,
.suggestion-item_1.active,
.suggestion-item_2.active,
.suggestion-item_supplier.active,
.suggestion-item_customer.active,
.suggestion-item_barang.active,
.suggestion-item_user.active,
.suggestion-barang-global.active,
.item-highlight.active {
    background: #d0eaff !important;
    color: #222 !important;
}


.ket-wrap { position: relative; }
.ket-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  border: 1px solid #ccc;
  background: #2c2c3c;
  display: none;
  max-height: 120px;
  overflow-y: auto;
  z-index: 999;
}
.ket-list div {
  padding: 6px;
  cursor: pointer;
}
.ket-list div.active,
.ket-list div:hover {
  background: #d0eaff !important;
  color: #222 !important;
}

.search_box {
  padding: 10px;
  width: 100%;
  border: 1px solid #444;
  border-radius: 5px;
  margin-right: 10px;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  height: 33px;
}

.btn.blue {
  background-color: #007bff;
  color: white;
}

tr:hover {
  background-color: #444;
}

.status-lunas {
  color: lightgreen;
}

.status-belum {
  color: orange;
}

.bayar-btn {
  background-color: #2196F3;
}

.search-container {
    width: 100%;
    margin-right: 10px;
}

.modal {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999;
}

.nominal_bayar {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #23272b;
  color: #fff;
}

.tgl {
  background-color: transparent;
  color: #f0f0f0;
  border: 1px solid #444;
}

.ket {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #23272b;
  color: #fff;
}

.input_date {
  margin: 0px 5px;
  align-self: center;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: transparent;
  color: #fff;
  width: 45px;
  height: 30px;
}

.input_year {
  margin: 0px 5px;
  align-self: center;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: transparent;
  color: #fff;
  width: 55px;
  height: 30px;
}

#filter {
  align-self: center;
  background-color: green;
}

.resi_content {
  margin-top: 20px;
  background-color: white;
  color: black;
  text-align: center;
  position: relative;
  overflow-y: auto;
  max-height: 70vh;
}

.resi_content_print {
  margin-top: 20px;
  background-color: white;
  color: black;
  text-align: center;
  position: relative;
  overflow-y: auto;
}

.resi_content_print .total_resi {
  margin-bottom: 40px;
}

.datetime_resi {
  justify-content: space-between;
  flex-direction: row;
  margin-left: 10px;
  margin-right: 10px;
  border-top: black 1px solid;
  border-bottom: black 1px solid;
  padding-block: 5px;
}

.list_penjualan, .list_pembelian {
  text-align: left;
  margin: 10px;
}

.list_penjualan p, .list_pembelian p {
  margin: 5px 0;
}

.detail_penjualan, .detail_pembelian {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #444;
}

.subtotal_resi, .diskon_resi, .diskon_lain_resi, .ppn_resi, .sisa_resi, .total_resi, .metode_pembayaran_resi, .jumlah_pembayaran_resi, .piutang_resi, .kembalian_resi, .uang_kembali_resi, .titip_resi {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 10px;
}

.pembayaran_resi div p {
  margin: 0px;
}

.search_button {
  background-color: green;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
}

.rekapPenjualanTable, .rekapPembelianTable {
    width: 100%;
    border-collapse: collapse;
}

.rekapPembelianTable thead, .rekapPenjualanTable thead,
.rekapPembelianTable tbody tr, .rekapPenjualanTable tbody tr{
    display: table;
    width: 100%;
    table-layout: fixed;
}

.rekapPembelianTable tbody, .rekapPenjualanTable tbody{
    display: block;
    max-height: 430px;
    overflow-y: auto;
}

#search_results_2, #search_results_1 {
  margin-bottom: 10px;
}

.button-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.button-container1 {
  margin-top: 20px;
  width: 166px;
  display: flex;
  justify-content: space-between;
}

.button-container2 {
  margin-top: 20px;
  width: 166px;
  display: flex;
  justify-content: end;
}

.modal-content_button_container {
  justify-content: space-between;
  flex-direction: row;
  gap: 10px;
  margin: 10px;
}

.qty_retur_penjualan {
  width: 60px;
}

.txt-line-through {
  text-decoration: line-through;
}

.btn-bulat {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  cursor: pointer;
}

.btn_buka_scanner {
  font-weight: bold;
}

.back_button {
  background-color: rgb(41, 35, 35);
  color: white;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
}

.next_button {
  background-color: rgb(41, 35, 35);
  color: white;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
}

.next_button:hover, .back_button:hover {
  background-color: rgb(41, 35, 35);
  transition: opacity 0.3s;
  opacity: 1;
  cursor: pointer;
}

.per_month_str {
  align-self: self-end;
}

.search_box_timbang {
  margin-bottom: 10px;
}

.login_container {
  margin:0;
  height:100vh;
  display:flex;
  flex-direction: column;
  justify-content:center; /* tengah horizontal */
  align-items:center;     /* tengah vertikal */
}

.input_login {
  gap: 10px;
  flex: none;
}

.input_login div h5 {
  margin: auto;
}

.input_login div input {
  padding: 5px 12px;
}

.input_login .note_text {
  margin: auto;
}

.input_login .img_preview_container {
  margin: auto;
}

.piutang_titipan_container, .hutang_titipan_container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  flex-direction: row;
}

.hidden {
  display: none;
}

.date_container {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.search_container {
    flex-direction: row;
    gap: 10px;
}

#hutangTable, #piutangTable {
    margin-top: 20px;
}

.ket_container {
    margin-bottom: 5px;
}

.little_logo {
  font-size: 20px;
  margin-block: auto;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
    margin-top: 10px;
}

.page-btn {
    flex-shrink: 0;
    padding: 5px 9px;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn.active {
    background: #333;
    color: white;
}

.page-btn.dots {
    cursor: pointer;
}

.product_flow_container {
  display: block;
}

/* Scrollbar default: tidak terlihat */
.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Saat hover: scrollbar terlihat */
.scroll-container:hover::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.main_header {
  display: none;
}

#ppn {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.switch_button_model {
    display: inline-block;
    width: 2.25rem;
    height: 1.25rem;
    background-color: #334155;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
}

.switch_button_model::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;

    width: 1rem;
    height: 1rem;

    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 50%;

    transition: all 0.2s;
}

#ppn:checked + .switch_button_model {
    background-color: #a855f7;
}

#ppn:checked + .switch_button_model::after {
    transform: translateX(100%);
    border-color: #ffffff;
}

.straight-line {
    width: 60px;
    height: 1px;
    background-color: white;
    margin: 0 auto;
}

.straight-line-black {
    height: 1px;
    background-color: black;
}

.subscribe-straight-line {
    width: stretch;
    height: 1px;
    background-color: white;
    margin: 0 auto;
}

.center {
    justify-self: center;
}

.choose_plan_btn_container {
  width: stretch;
}

.choose_plan_btn {
  width: stretch;
}

.choose_plan_btn:hover {
  background-color: #cdcdcd;
}

#subscribe_price_after_disc {
  margin: auto;
}

.left {
    justify-self: left;
}

.right {
    justify-self: right;
    text-align: right;
}

.right-flex {
    display: flex;
    justify-content: right;
    gap: 10px;
}

.little_text {
    margin: auto;
}

.or_straight_line_container {
  align-items: center;
  gap: 10px;
  margin: 10px 0px;
}

#new_email, #new_username {
  margin-left: 0px;
}

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

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.daftar_pengguna_edit_btn, .daftar_pengguna_delete_btn {
    margin: auto;
}

.subscribe_plan_price_before_disc {
    text-decoration: line-through;
    margin: 0px;
}

.subscribe_plan_option {
  min-width: max-content;
  height: fit-content;
}

.subscribe_cart_container {
  gap: 30px;
}

.tambah-barang-header-container {
  justify-content: space-between;
}

.tambah-barang-header-container h4 {
  margin: 0px;
}

.space_between {
  justify-content: space-between;
}

.duration_selection {
  border-radius: 15px;
  height: 50px;
  width: 200px;
  align-self: center;
}

.price_saved {
  width: auto;
  align-self: center;
  margin: 0px;
  background-color: #2f4343;
  padding: 5px;
  border-radius: 15px;
}

.subscribe_plan_price_per_month {
  margin: 0px;
}

.total_akhir_tagihan {
  text-align: right;
}

.coupon_name {
  color: rgb(6, 175, 6);
}

.coupon_detail {
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.app_footer {
  --tw-text-opacity: 1;
  color: rgb(216 195 173 / var(--tw-text-opacity, 1));
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(19 21 22 / var(--tw-bg-opacity, 1));
  border-color: rgb(40 44 46 / 0.6);
  border-top-width: 1px;
}

.app_footer_container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.app_footer_container1 {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  font-family: Hanken Grotesk;
  gap: 0.5rem;
  justify-content: space-between;
  align-content: center;
}

.app_footer_copyright_container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.app_footer_logo {
  object-fit: contain;
  width: auto;
  height: 1.5rem;
  max-width: 100%;
}

.app_footer_name {
  --tw-text-opacity: 1;
  color: rgb(255 193 116 / var(--tw-text-opacity, 1));
  font-weight: 700;
  font-family: Space Grotesk;
}

.app_footer_copyright {
  --tw-text-opacity: 1;
  color: rgb(216 195 173 / var(--tw-text-opacity, 1));
}

.app_footer_contact_container {
  font-size: 11px;
  font-family: JetBrains Mono;
  gap: 0.75rem;
  align-items: center;
  display: flex;
}

.app_footer_email {
  --tw-text-opacity: 1;
  color: rgb(226 226 227 / var(--tw-text-opacity, 1));
  gap: 0.25rem;
  align-items: center;
  display: flex;
}

.app_footer_phone {
  --tw-text-opacity: 1;
  color: rgb(226 226 227 / var(--tw-text-opacity, 1));
  gap: 0.25rem;
  align-items: center;
  display: flex;
}

.app_terms {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  color: inherit;
  text-decoration: inherit;
}

.app_privacy {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  color: inherit;
  text-decoration: inherit;
}

.title_header {
  background-color: rgb(24 26 27 / 0.9);
  --tw-backdrop-blur: blur(24px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  border-color: rgb(40 44 46 / 0.6);
  border-bottom-width: 1px;
  z-index: 50;
  top: 0px;
  right: 0px;
  left: 0px;
  position: fixed;
}

.title_header_container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  text-decoration: none;
}

.app_name {
  cursor: pointer;
  --tw-text-opacity: 1;
  color: rgb(255 193 116 / var(--tw-text-opacity, 1));
  letter-spacing: -0.025em;
  line-height: 1;
  font-weight: 700;
  font-size: 17px;
  font-family: Space Grotesk;
}

.app_type {
  cursor: pointer;
  --tw-text-opacity: 1;
  color: rgb(216 195 173 / var(--tw-text-opacity, 1));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  font-family: JetBrains Mono;
  margin-top: 0.125rem;
}

.app_name_type_container {
  display: flex;
  flex-direction: column;
}

.app_logo {
  object-fit: contain;
  width: auto;
  height: 1.75rem;
  max-width: 100%;
}

/* Stitch: Techrial POS - Mobile Sign In / Sign Up
   Scoped to the auth pages and mobile breakpoint only. */
@media (max-width: 767px) {
  body:has(.maju-supplier-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  .maju-supplier-page {
    width: calc(100% - 1.5rem) !important;
    max-width: 390px;
    margin: 0.5rem auto !important;
    padding: 0.75rem !important;
    box-sizing: border-box;
    background: #121415 !important;
    border: 1px solid #222528;
    border-radius: 0;
    box-shadow: none !important;
  }

  .maju-supplier-page .supplier-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0 0.65rem;
    border-bottom: 1px solid #26292c;
  }

  .maju-supplier-page .supplier-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    color: #f1f5f9;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
  }

  .maju-supplier-page .supplier-mobile-header h1::before {
    position: absolute;
    top: 0.28rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  .maju-supplier-page .supplier-mobile-header span {
    padding: 0.3rem 0.5rem;
    color: #94a3b8;
    background: #1a1c1e;
    border: 1px solid #2e3235;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
  }

  .maju-supplier-page .form-section {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
    padding: 1.1rem 0.7rem 0.7rem;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    box-shadow: none;
  }

  .maju-supplier-page .form-section::before {
    position: absolute;
    top: 0.65rem;
    left: 0.7rem;
    padding-left: 0.65rem;
    color: #e2e2e3;
    content: "DATA SUPPLIER";
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .maju-supplier-page .form-section::after {
    content: none;
  }

  .maju-supplier-page .form-group {
    min-width: 0;
    margin: 0;
    gap: 0.2rem;
  }

  .maju-supplier-page .form-group:nth-child(1),
  .maju-supplier-page .form-group:nth-child(2),
  .maju-supplier-page .form-group:nth-child(4),
  .maju-supplier-page .form-group:nth-child(8),
  .maju-supplier-page .form-group.full {
    grid-column: 1 / -1;
  }

  .maju-supplier-page .form-group:nth-child(3) {
    position: absolute;
    top: 0.45rem;
    right: 0.7rem;
    width: 7rem;
    z-index: 2;
  }

  .maju-supplier-page .form-group:nth-child(3) label {
    display: none;
  }

  .maju-supplier-page .form-group:nth-child(3) input {
    min-height: 1.8rem;
    height: 1.8rem;
    padding: 0.2rem 0.35rem;
    color: #ffc174;
    background: #0e1011;
    border-color: #32363a;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }

  .maju-supplier-page .form-group:nth-child(1)::before,
  .maju-supplier-page .form-group:nth-child(2)::before {
    color: #9aa4b2;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .maju-supplier-page .form-group:nth-child(1)::before { content: "TANGGAL MASUK"; }
  .maju-supplier-page .form-group:nth-child(2)::before { content: "TANGGAL EDIT"; }

  .maju-supplier-page label {
    margin: 0;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .maju-supplier-page input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 2.65rem;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #2e3235;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.78rem;
  }

  .maju-supplier-page input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .maju-supplier-page #tgl_masuk,
  .maju-supplier-page #tgl_edit,
  .maju-supplier-page #id {
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  .maju-supplier-page #search_box {
    min-height: 3rem;
    border-color: #0ea5e9;
  }

  .maju-supplier-page #search_results {
    position: relative;
    z-index: 4;
    margin-top: 0.25rem;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #2a2e32;
    border-radius: 3px;
  }

  .maju-supplier-page #search_results:empty {
    display: none;
  }

  .maju-supplier-page .suggestion-item {
    color: #e2e2e3;
    border-bottom: 1px solid #1e2225;
    font-size: 0.74rem;
  }

  .maju-supplier-page .suggestion-item.active,
  .maju-supplier-page .suggestion-item:hover {
    color: #ffc174;
    background: #1b2228;
    border-left: 2px solid #f59e0b;
  }

  .maju-supplier-page #ppn {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #f59e0b;
  }

  .maju-supplier-page .form-group:nth-child(10) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 3.2rem;
    padding: 0.65rem;
    background: #0c0e0f;
    border: 1px solid #2e3235;
    border-radius: 4px;
  }

  .maju-supplier-page .form-group:nth-child(10) label {
    color: #e2e2e3;
    font-size: 0.75rem;
  }

  .maju-supplier-page .button-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.75rem 0 0;
  }

  .maju-supplier-page .button-group .btn {
    min-height: 2.75rem;
    color: #d8dee8;
    background: #202326;
    border: 1px solid #3a4045;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .maju-supplier-page #tambah {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .maju-supplier-page #edit {
    color: #06b6d4;
    background: #0d2027;
    border-color: #06b6d4;
  }

  .maju-supplier-page #hapus,
  .maju-supplier-page #keluar {
    color: #ff6b6b;
    background: #291214;
    border-color: #7f1d1d;
  }

  .maju-supplier-page #keluar {
    grid-column: 1 / -1;
  }

  #disc_button {
    font-size: 0.58rem;
    margin-bottom: 0px;
  }

  .item-save-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem;
    box-sizing: border-box;
    overflow-x: hidden;
    color: #e2e2e3;
    background: #121415;
    font-family: "Hanken Grotesk", sans-serif;
  }

  .item-save-page .mobile-item-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .item-save-page .mobile-item-title::before {
    width: 0.55rem;
    height: 0.55rem;
    background: #f59e0b;
    border-radius: 1px;
    content: "";
  }

  .item-save-page .mobile-item-source {
    margin: 0 0 0.75rem 1.1rem;
    color: #a08e7a;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }

  .item-save-page #formData {
    display: grid;
    gap: 0.75rem;
  }

  .item-save-page #formData > .section-box {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.75rem;
    background: #1e2021;
    border: 1px solid #534434;
    border-radius: 4px;
    box-shadow: none;
  }

  .item-save-page #formData > .section-box::before {
    display: block;
    margin-bottom: 0.65rem;
    color: #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .item-save-page .item-supplier-section::before { content: "SUPPLIER"; }
  .item-save-page .item-detail-section::before { color: #89ceff; content: "BARANG"; }
  .item-save-page .item-pricing-section::before { color: #56e5a9; content: "HPP FIFO"; }

  .item-save-page .stok-container {
    order: 3;
  }

  .item-save-page .satuan-container {
    order: 6;
  }

  .item-save-page .beli-container {
    order: 4;
  }

  .item-save-page .total-beli-container {
    order: 5;
  }

  .item-save-page .jual-container {
    order: 7;
  }

  .item-save-page .total-jual-container {
    order: 8;
  }

  .item-save-page .barcode-container {
    order: 9;
  }

  .item-save-page .col-md-2 {
    padding: 0px;
  }

  .item-save-page .list-harga-container {
    display: flex;
    justify-content: space-between;
  }

  .item-save-page .list-harga-container .label {
    align-content: center;
  }

  .item-save-page .list-harga-container input {
    background-color: transparent;
    border: none;
    width: max-content;
    text-align: end;
  }

  .item-save-page .disc-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .item-save-page .disc-container .label {
    align-content: center;
  }

  .item-save-page .disc-container input {
    background-color: transparent;
    border: none;
    text-align: end;
  }

  .item-save-page .subtotal-container {
    display: flex;
    justify-content: space-between;
  }

  .item-save-page .subtotal-container .label {
    align-content: center;
  }

  .item-save-page .subtotal-container input {
    background-color: transparent;
    border: none;
    width: max-content;
    text-align: end;
  }

  .item-save-page .total-container {
    display: flex;
    justify-content: space-between;
  }

  .item-save-page .total-container .label {
    align-content: center;
    font-size: 1rem !important;
  }

  .item-save-page .total-container input {
    background-color: transparent;
    border: none;
    width: max-content;
    text-align: end;
    font-size: 1rem !important;
  }

  .item-save-page #formData > .section-box > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
  }

  .item-save-page #formData > .section-box > .tanggal_rekap_row {
    display: block;
    width: auto;
  }

  .item-save-page #formData > .section-box > .tanggal_rekap_row .tanggal_rekap_str {
    text-align: end;
  }

  .item-save-page #formData > .section-box > .tanggal_rekap_row .tanggal_rekap_input input {
    margin-right: 0px;
    background-color: transparent;
    border: none;
    text-align: end;
    padding: 0px;
    height: fit-content;
    min-height: 0px;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:nth-child(2) {
    grid-column: span 1;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:nth-child(n + 3) {
    grid-column: span 1;
  }

  .item-save-page .item-detail-section > .row,
  .item-save-page .item-pricing-section > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-save-page .item-detail-section > .row > .col-md-2:nth-child(2),
  .item-save-page .item-detail-section > .row > .col-md-2:nth-child(9) {
    grid-column: 1 / -1;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(2) {
    grid-column: 1 / -1;
  }

  .item-save-page .item-stock-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .item-save-page .item-stock-section .stock-flow-str-container {
    grid-column: 1 / -1;
  }

  .item-save-page .item-stock-section .stock-flow-input-container {
    grid-column: 1 / -1;
  }

  .item-save-page .item-stock-section .button-container {
    grid-column: 1 / -1;
    width: auto;
  }

  .item-save-page .item-stock-section .section-title {
    display: block;
    margin: 0 0 0.65rem;
    padding: 0;
    color: #ffc174;
    background: transparent;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
  }

  .item-save-page .item-stock-section > .row,
  .item-save-page .item-stock-section > .d-flex {
    margin: 0 0 0.6rem;
  }

  .item-save-page .item-stock-section > .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: center;
  }

  .item-save-page .item-stock-section > .tanggal_rekap_row {
    grid-template-columns: 1fr 1.3fr !important;
  }

  .item-save-page .item-stock-section > .tanggal_rekap_row + .row,
  .item-save-page .item-stock-section > .tanggal_rekap_row + .row + .row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-save-page .item-stock-section > .tanggal_rekap_row + .row > .col,
  .item-save-page .item-stock-section > .tanggal_rekap_row + .row + .row > .col {
    min-width: 0;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .item-save-page .item-stock-section > .row:nth-of-type(3) > .col,
  .item-save-page .item-stock-section > .row:nth-of-type(4) > .col {
    min-width: 0;
  }

  .item-save-page label,
  .item-save-page .label,
  .item-save-page .item-stock-section p,
  .item-save-page .item-stock-section .col {
    color: #d8c3ad;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.67rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .item-save-page .form-control,
  .item-save-page input,
  .item-save-page select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0.55rem 0.6rem;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #33383c;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.82rem;
  }

  .item-save-page input:focus,
  .item-save-page .form-control:focus {
    color: #f8fafc;
    background: #0c0e0f;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .item-save-page input[readonly] {
    color: #ffc174;
  }

  .item-save-page input::placeholder {
    color: #64748b;
  }

  .item-save-page .blue-input {
    border-color: #0ea5e9;
  }

  .item-save-page .item-detail-section #barcode-container {
    grid-column: 1 / -1;
  }

  .item-save-page .item-stock-section > .row.text-center.mb-2:not(.tanggal_rekap_row),
  .item-save-page .item-stock-section > .row.mb-2:not(.text-center) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
  }

  .item-save-page .item-stock-section > .row.text-center.mb-2:not(.tanggal_rekap_row) > .col,
  .item-save-page .item-stock-section > .row.mb-2:not(.text-center) > .col {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .item-save-page .item-stock-section > .row.text-center.mb-2:not(.tanggal_rekap_row) .btn,
  .item-save-page .item-stock-section > .row.mb-2:not(.text-center) .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }

  .item-save-page #barcode-container .barcode {
    min-height: 104px;
    height: 104px !important;
    padding: 0.4rem;
    background: #0c0e0f;
  }

  .item-save-page .item-pricing-section .disc_sum {
    width: 100%;
    box-sizing: border-box;
    background: #121415;
    border: 1px solid #33383c;
    border-radius: 4px;
    height: auto;
    min-height: 0;
    margin-top: 0.35rem;
    padding: 0.45rem;
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
    z-index: auto;
  }

  #disc, #disc1, #disc2, #disc3 {
    width: auto;
  }

  .item-save-page .item-pricing-section #disc_row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    align-items: center;
    margin: 0;
  }

  .item-save-page .item-pricing-section #disc_row input {
    min-height: 36px;
    padding: 0.25rem;
    text-align: center;
  }

  .item-save-page .item-pricing-section #disc_row p {
    margin: 0;
    text-align: center;
    justify-self: center;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(n + 3) input,
  .item-save-page .item-pricing-section #total {
    font-family: "JetBrains Mono", monospace;
    text-align: right;
  }

  .item-save-page .item-stock-section .btn,
  .item-save-page .item-stock-section button,
  .item-save-page .item-stock-section .btn-sm-custom {
    min-height: 42px;
    width: 100%;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .item-save-page .item-stock-section > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .item-save-page .item-stock-section #clear {
    color: #d8c3ad;
    background: #2c3033;
    border-color: #33383c;
    order: 5;
    grid-column: 1 / -1;;
  }

  .item-save-page .item-stock-section #tambah {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .item-save-page .item-stock-section #edit,
  .item-save-page .item-stock-section #edit_global,
  .item-save-page .item-stock-section #cek_in {
    color: #89ceff;
    background: #1e2021;
    border-color: #0ea5e9;
  }

  .item-save-page .item-stock-section #hapus,
  .item-save-page .item-stock-section #cek_out {
    color: #ffb4ab;
    background: #3b181a;
    border-color: #ef4444;
  }

  .item-save-page .modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    box-sizing: border-box;
    padding: 0.75rem;
    background: rgba(10, 12, 13, 0.86);
  }

  .item-save-page .modal .modal-content {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    max-height: 82vh;
    margin: 9vh auto 0;
    box-sizing: border-box;
    overflow: auto;
    padding: 0.85rem;
    color: #e2e2e3;
    background: #1e2021;
    border: 1px solid #534434;
    border-radius: 4px;
  }

  .item-save-page .flowStok {
    min-width: 760px;
    color: #e2e2e3;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  .item-save-page .product_flow_container,
  .item-save-page .resi_content {
    overflow-x: auto;
  }

  .item-save-page #barcodeModalContent .btn,
  .item-save-page #barcodeModalContent button {
    min-height: 42px;
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
    border-radius: 4px;
  }

/* Stitch fidelity refinements for the standalone Master Item mobile screen. */
  .item-save-page .mobile-item-title,
  .item-save-page .mobile-item-source {
    display: none !important;
  }

  .item-save-page {
    width: calc(100% - 1.5rem);
    margin: 0.5rem 0.75rem;
    padding: 0;
  }

  .item-save-page #formData {
    gap: 0.7rem;
  }

  .item-save-page #formData > .section-box {
    position: relative;
    padding: 0.65rem;
    border-color: #4d4439;
  }

  .item-save-page #formData > .section-box::before {
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #34383a;
    font-size: 1rem;
  }

  .item-save-page .item-supplier-section > .row,
  .item-save-page .item-detail-section > .row {
    position: relative;
    row-gap: 0.45rem;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:first-child,
  .item-save-page .item-detail-section > .row > .col-md-2:first-child {
    position: absolute;
    z-index: 2;
    top: -2.55rem;
    right: 0;
    width: 6.7rem;
    padding: 0;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:first-child label,
  .item-save-page .item-detail-section > .row > .col-md-2:first-child label {
    display: none;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:first-child input,
  .item-save-page .item-detail-section > .row > .col-md-2:first-child input {
    min-height: 1.8rem;
    height: 1.8rem;
    padding: 0.2rem 0.35rem;
    color: #ffc174;
    border-color: #5b6570;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.66rem;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:nth-child(2),
  .item-save-page .item-detail-section > .row > .col-md-2:nth-child(2) {
    grid-column: 1 / -1;
  }

  .item-save-page .item-supplier-section > .row > .col-md-2:nth-child(2) input,
  .item-save-page .item-detail-section > .row > .col-md-2:nth-child(2) input {
    min-height: 2.7rem;
    height: 2.7rem;
  }

  .item-save-page .item-detail-section > .row > .col-md-2:nth-child(n + 3) input {
    min-height: 2.7rem;
    height: 2.7rem;
  }

  .item-save-page #barcode-container {
    min-height: 6.5rem;
    padding: 0.5rem;
    border: 1px solid #4785a5;
    border-radius: 4px;
  }

  .item-save-page .item-pricing-section > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.45rem;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(1),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(2),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(3),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(7) {
    grid-column: 1 / -1;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(4),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(5),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(6) {
    grid-column: span 1;
  }

  .item-save-page .item-pricing-section .form-control {
    min-height: 2.2rem;
    height: 2.2rem;
  }

  .item-save-page .item-pricing-section .disc_sum > .label {
    display: block;
    margin-bottom: 0.35rem;
  }

  .item-save-page .item-pricing-section #disc_row {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    height: auto !important;
    min-height: 0;
    align-items: center;
  }

  .item-save-page .item-pricing-section #disc_row input {
    min-width: 0;
    min-height: 2.1rem;
    height: 2.1rem !important;
    padding: 0.2rem;
    text-align: center;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(n + 3) input,
  .item-save-page .item-pricing-section #total {
    min-height: 2.7rem;
    height: 2.7rem;
  }

  .item-save-page .item-stock-section .section-title {
    font-size: 0;
  }

  .item-save-page .item-stock-section .section-title::before {
    display: inline-block;
    width: 0.42rem;
    height: 0.85rem;
    margin-right: 0.35rem;
    background: #ffc174;
    content: "";
  }

  .item-save-page .item-stock-section .section-title::after {
    color: #e2e2e3;
    content: "ARUS STOK";
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
  }

  .item-save-page .item-stock-section > .tanggal_rekap_row {
    grid-template-columns: 1fr auto !important;
  }

  .item-save-page .item-stock-section > .tanggal_rekap_row .form-control {
    width: 9.5rem;
    min-height: 2.7rem;
    height: 2.7rem;
  }

  .item-save-page .item-stock-section > .row.text-center.mb-2:not(.tanggal_rekap_row) .btn {
    min-height: 2.7rem;
    height: 2.7rem;
    font-size: 0.64rem;
  }

  .item-save-page .item-stock-section > .row.mb-2:not(.text-center) input {
    min-height: 2.7rem;
    height: 2.7rem;
    text-align: center;
  }

/* Final cascade for the standalone item_save3.php mobile reference. */
  .item-save-page {
    width: calc(100% - 1.5rem) !important;
    max-width: none !important;
    margin: 0.5rem 0.75rem !important;
    padding: 0 !important;
  }

  .item-save-page .item-pricing-section > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(1),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(2),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(3),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(7) {
    grid-column: 1 / -1 !important;
  }

  .item-save-page .item-pricing-section .form-control,
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(n + 3) input,
  .item-save-page .item-pricing-section #total {
    min-height: 1.85rem !important;
    height: 1.85rem !important;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .item-save-page .item-pricing-section label,
  .item-save-page .item-pricing-section .label {
    font-size: 0.58rem;
    line-height: 1.05;
    margin-bottom: 0px;
    align-self: center;
  }

  .item-save-page .item-pricing-section #disc_row input {
    min-height: 1.7rem;
    height: 1.7rem !important;
  }
}

/* Stitch: TB. MAJU - Master Customer Mobile (customer.php). Desktop rules
   remain unchanged; this complete form treatment is mobile-only. */
@media (min-width: 768px) {
  .customer-mobile-header h1 { 
    margin: 0px;
    text-align: left;
  }

  .customer-mobile-header span { 
    display: none; 
  }
}

@media (max-width: 767px) {
  body:has(.maju-customer-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  body:has(.maju-customer-page) .maju-customer-page {
    width: calc(100% - 1.5rem) !important;
    max-width: 390px !important;
    margin: 0.5rem auto !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
    background: #121415 !important;
    border: 1px solid #222528 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body:has(.maju-customer-page) .customer-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0 0.65rem;
    border-bottom: 1px solid #26292c;
  }

  body:has(.maju-customer-page) .customer-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    color: #f1f5f9;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body:has(.maju-customer-page) .customer-mobile-header h1::before {
    position: absolute;
    top: 0.28rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  body:has(.maju-customer-page) .customer-mobile-header span {
    padding: 0.3rem 0.5rem;
    color: #94a3b8;
    background: #1a1c1e;
    border: 1px solid #2e3235;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    margin: 0 !important;
    padding: 3.35rem 0.7rem 0.7rem !important;
    background: #16181a !important;
    border: 1px solid #2a2d30 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section::before {
    position: absolute;
    top: 0.72rem;
    left: 0.7rem;
    padding-left: 0.65rem;
    color: #e2e2e3;
    content: "DATA CUSTOMER";
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-group {
    min-width: 0;
    margin: 0;
    gap: 0.2rem;
  }

  body:has(.maju-customer-page) .maju-customer-page label {
    margin: 0;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body:has(.maju-customer-page) .maju-customer-page input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 2.65rem;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #2e3235;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.78rem;
  }

  body:has(.maju-customer-page) .maju-customer-page input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  body:has(.maju-customer-page) .maju-customer-page #tgl_masuk,
  body:has(.maju-customer-page) .maju-customer-page #tgl_edit,
  body:has(.maju-customer-page) .maju-customer-page #id {
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(1),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(2) {
    display: flex !important;
    grid-column: span 1 !important;
    order: 1 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(1) > input,
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(2) > input {
    height: 2.4rem !important;
    min-height: 2.4rem !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(3) {
    position: absolute !important;
    top: 0.55rem !important;
    right: 0.7rem !important;
    z-index: 5 !important;
    display: flex !important;
    width: 7rem !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(3) > label {
    display: none !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(3) > input {
    width: 100% !important;
    height: 1.8rem !important;
    min-height: 1.8rem !important;
    padding: 0.2rem 0.35rem !important;
    color: #ffc174 !important;
    background: #0e1011 !important;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 0.62rem !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(4) {
    grid-column: 1 / -1 !important;
    order: 2 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(4) > .form-group {
    display: flex;
    position: relative;
  }

  body:has(.maju-customer-page) .maju-customer-page #search_box {
    min-height: 3rem !important;
    padding-right: 2.3rem !important;
    border-color: #0ea5e9 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(4) > .form-group::after {
    position: absolute;
    top: 2rem;
    right: 0.7rem;
    color: #94a3b8;
    content: "search";
    font-family: "Material Symbols Outlined";
    font-size: 1.1rem;
    pointer-events: none;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(5),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(6),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(7),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(9) {
    grid-column: span 1 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(5),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(6) {
    order: 3 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(7),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(9) {
    order: 4 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(8),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(10),
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(11) {
    grid-column: 1 / -1 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(8) { order: 5 !important; }
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(10) { order: 6 !important; }
  body:has(.maju-customer-page) .maju-customer-page .form-section > .form-group:nth-child(11) { order: 7 !important; }

  body:has(.maju-customer-page) .maju-customer-page #alamat,
  body:has(.maju-customer-page) .maju-customer-page #ket {
    min-height: 3.5rem !important;
    padding-top: 0.65rem !important;
  }

  body:has(.maju-customer-page) .maju-customer-page #search_results {
    position: relative;
    z-index: 10;
    margin-top: 0.25rem;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #2a2e32;
    border-radius: 3px;
  }

  body:has(.maju-customer-page) .maju-customer-page #search_results:empty { display: none; }

  body:has(.maju-customer-page) .maju-customer-page .suggestion-item {
    color: #e2e2e3;
    border-bottom: 1px solid #1e2225;
    font-size: 0.74rem;
  }

  body:has(.maju-customer-page) .maju-customer-page .suggestion-item.active,
  body:has(.maju-customer-page) .maju-customer-page .suggestion-item:hover {
    color: #ffc174;
    background: #1b2228;
    border-left: 2px solid #f59e0b;
  }

  body:has(.maju-customer-page) .maju-customer-page .button-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    margin: 0.75rem 0 0 !important;
  }

  body:has(.maju-customer-page) .maju-customer-page .button-group .btn {
    min-height: 2.75rem !important;
    color: #d8dee8;
    background: #202326;
    border: 1px solid #3a4045;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  body:has(.maju-customer-page) .maju-customer-page .customer-btn-icon {
    font-size: 1rem;
    line-height: 1;
    vertical-align: -0.15em;
  }

  body:has(.maju-customer-page) .maju-customer-page #tambah {
    order: 2 !important;
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  body:has(.maju-customer-page) .maju-customer-page #clear { order: 1 !important; }
  body:has(.maju-customer-page) .maju-customer-page #edit {
    order: 3 !important;
    color: #06b6d4;
    background: #0d2027;
    border-color: #06b6d4;
  }
  body:has(.maju-customer-page) .maju-customer-page #hapus {
    order: 4 !important;
    color: #ff6b6b;
    background: #291214;
    border-color: #7f1d1d;
  }
  body:has(.maju-customer-page) .maju-customer-page #keluar {
    order: 5 !important;
    grid-column: 1 / -1 !important;
    color: #ff6b6b;
    background: #291214;
    border-color: #7f1d1d;
  }
}

@media (min-width: 768px) {
  .mobile-item-title {
    margin: 0px;
    text-align: left;
  }

  .mobile-item-source {
    display: none;
  }
}
  body.maju-auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #181a1b;
  }

  .maju-auth-page .title_header_container {
    height: 4rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    justify-content: center;
  }

  .maju-auth-page .app_name_type_container {
    align-items: center;
    text-align: center;
  }

  .maju-auth-page .title_header_container .app_logo {
    display: none;
  }

  .maju-auth-page .login_container {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100vh - 4rem);
    height: auto;
    padding: 6rem 1rem 2rem;
    justify-content: center;
    align-items: center;
  }

  .maju-auth-page .login_container > h1 {
    width: 100%;
    max-width: 22.5rem;
    margin: 0 0 1.25rem;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .maju-auth-page .input_login {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22.5rem;
    gap: 0.75rem;
    margin: 0;
  }

  .maju-auth-page .input_login input {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
    color: #e2e2e3;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
  }

  .maju-auth-page .input_login input::placeholder {
    color: #94a3b8;
  }

  .maju-auth-page .input_login input:focus {
    border-color: #0ea5e9;
    outline: 2px solid rgba(14, 165, 233, 0.2);
    outline-offset: 0;
  }

  .maju-auth-page .button-container {
    width: 100%;
    max-width: 22.5rem;
    margin: 1rem 0 0;
  }

  .maju-auth-page .button-container .btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid #f59e0b;
    border-radius: 0.25rem;
    background: #f59e0b;
    color: #181a1b;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
  }

  .maju-auth-page .button-container .btn:hover,
  .maju-auth-page .button-container .btn:focus-visible {
    background: #ffb95f;
  }

  .maju-auth-page .button-container .btn:disabled {
    opacity: 0.6;
  }

  .maju-auth-page .login_container > .form-group-row {
    width: 100%;
    max-width: 22.5rem;
    align-items: center;
    gap: 0.5rem;
  }

  .maju-auth-page .login_container > .form-group-row:not(.or_straight_line_container) {
    margin-top: 0.75rem;
  }

  .maju-auth-page .login_container > .form-group-row h5 {
    margin: 0;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    line-height: 1.125rem;
    font-weight: 400;
  }

  .maju-auth-page .login_container > .form-group-row a {
    margin: 0;
    color: #ffc174;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .maju-auth-page #staySignedIn {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #f59e0b;
  }

  .maju-auth-page .or_straight_line_container {
    margin: 1.5rem 0 1rem;
  }

  .maju-auth-page .or_straight_line_container .straight-line {
    flex: 1;
    width: auto;
    background: #534434;
  }

  .maju-auth-page .or_straight_line_container .little_text {
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
  }

  .maju-auth-page .g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 18.75rem;
    min-height: 2.75rem;
    margin: 0 auto;
  }

  .maju-auth-page .login_container > .form-group-row:last-child {
    justify-content: center;
    margin-top: 1.25rem;
  }

  .maju-auth-page .app_footer {
    padding: 1rem 0.75rem;
  }

  .maju-auth-page .app_footer_container {
    padding-left: 0;
    padding-right: 0;
  }

  .maju-auth-page .app_footer_container1 {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    text-align: center;
  }

  .maju-auth-page .app_footer_copyright_container {
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.25rem;
  }

  .maju-auth-page .app_footer_contact_container {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    text-align: center;
  }

.gap-10 {
  gap: 10px;
}

.gap-20 {
  gap: 20px;
}

.gap-50 {
  gap: 50px;
}

.gap-100 {
  gap: 100px;
}

.mg-auto {
  margin: auto;
}

.mg-0 {
  margin: 0px;
}

.mg-5 {
  margin: 5px;
}

.mg-10 {
  margin: 10px;
}

.input_kode_promo {
  width: stretch;
  border-radius: 15px;
}

.btn_pakai_kode_kupon_subscribe_plan {
  min-width: max-content;
  border-radius: 15px;
  background-color: #244545;
}

.kode_kupon_container {
  display: flex;
  margin: 10px 0px;
}

.btn_bayar_subscribe_plan {
  border-radius: 15px;
  background-color: whitesmoke;
  color: black;
}

.show_rekap_piutang_btn {
  display: block;
  position: absolute;
  right: 10px;
  top: 10px;
  color: #38bdf8;
  background: #141b20;
  border: 1px solid #0ea5e9;
}

.piutang_footer_container {
  position: relative;
}

.scanner-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
}

.scanner-modal.show {
    display: flex;
}

.scanner-dialog {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 14px;
    background: #222;
    color: #fff;
}

.scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.scanner-header h3 {
    margin: 0;
    font-size: 18px;
}

#btn_tutup_scanner {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

#scanner_status {
    margin: 12px 0;
    font-size: 14px;
    color: #e9d1d1;
}

#reader {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

#reader video {
    max-width: 100%;
    border-radius: 8px;
}

.scanner-hint {
    margin-top: 12px;
    color: #e9d1d1;
    font-size: 12px;
    line-height: 1.6;
}

.keranjang-btn-container {
  width: max-content;
}

.barcode {
  background-color: transparent;
  border: none;
  height: auto;
}

/* HP kecil */
@media (max-width: 480px) {
}

/* HP / tablet kecil */
@media (max-width: 768px) {
  .app {
    flex-direction: column;
    height: -webkit-fill-available;
  }

  .main-content {
    order: 2;
    padding-bottom: 180px;
  }

  .sidebar {
    order: 3;
    width: auto;
    overflow-x: scroll;
    margin-top: auto;
    position: fixed;
    z-index: 1001;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .logo {
    display: none;
  }

  .sidebar nav a {
    flex-direction: column;
  }

  .sidebar_title {
    order: 2;
  }

  .little_logo {
    order: 1;
    font-size: xxx-large;
  }

  .sidebar_content {
    display: flex;
    text-align: center;
    gap: 30px;
  }

  .footer {
    display: none;
  }

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

  .card h2 {
    font-size: xx-large;
    font-weight: 700;
  }

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

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

  .date_container {
    font-size: x-large;
  }

  .date {
    font-size: large;
    width: 200px;
  }

  .card h4 {
    font-size: x-large;
  }

  .last_card {
    grid-column: span 2;
  }

  .greeting {
    font-size: 20px;
  }

  .datetime {
    font-size: 20px;
  }

  .main_header {
    order: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2e2e3f;
    border-bottom: solid 1px white;
  }

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

  .store_header h1 {
    margin: auto;
    font-size: 40px;
    font-family: Hanken Grotesk;
    line-height: 34px;
    font-weight: 700;
    color: #ddb7ff;
    text-align: left;
  }

  .store_logo_container {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
    flex-shrink: 0;
    border: solid 1px #ffffff;
  }

  .store_logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .notification_button {
    background-color: transparent;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--on-surface-variant);
    transition: background-color 200ms;
  }

  .notification_button:hover {
    background-color: var(--surface-container);
  }

  .container {
    padding: 0px;
    background-color: transparent;
    box-shadow: none;
    margin: 0px;
    position: relative;
  }

  label {
    font-size: 23px;
  }

  input {
    height: 50px;
    font-size: 24px;
    border-radius: 15px;
  }

  .hide_mobile {
    display: none;
  }

  .switch_button_model {
    width: 5.5rem;
    height: 3rem;
  }

  .switch_button_model::after {
    width: 2.5rem;
    height: 2.5rem;
  }

  .topbar {
    margin-bottom: 0px;
  }

  .input_faktur {
    background-color: transparent;
    border: none;
  }

  .main-data, .supplier-data, .customer-data, .barang, .disc_sum, .total-section {
    margin-top: 30px;
    border: solid 1px white;
    border-radius: 30px;
    padding: 30px;
    height: 200px;
    background-color: #2e2e3f;
  }

  .supplier-data {
    position: absolute;
    top: 115px;
    border: none;
    margin-top: 0px;
    width: 580px;
    height: auto;
    left: 2px;
    grid-template-columns: 20% 60% 20%;
  }
}

/* Stitch: TB. MAJU - Mobile Shell & Dashboard (index.php)
   Mobile-only overrides. Desktop layout and existing behavior remain unchanged. */
.mobile_menu_toggle {
  display: none;
}

@media (max-width: 767px) {
  body.maju-index-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #181a1b;
    color: #e2e2e3;
  }

  .maju-index-page .app {
    display: block;
    min-height: 100vh;
    height: auto;
  }

  .maju-index-page .main_header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    min-height: 4.5rem;
    padding: 0.75rem 1rem;
    background: #181a1b;
    border-bottom: 1px solid #33383c;
  }

  .maju-index-page .store_header {
    min-width: 0;
    gap: 0.75rem;
  }

  .maju-index-page .store_logo_container,
  .maju-index-page .store_logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .maju-index-page .store_logo {
    box-sizing: border-box;
    object-fit: cover;
    border: 1px solid #534434;
    border-radius: 0.25rem;
    background: #222527;
  }

  .maju-index-page .main_header h1 {
    margin: 0;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .maju-index-page .main_header .topbar {
    display: block;
    margin: 0;
    white-space: nowrap;
  }

  .maju-index-page .main_header .greeting {
    display: inline;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
  }

  .maju-index-page .main_header .datetime {
    display: inline;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
  }

  .maju-index-page .notification_button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
    color: #ffc174;
  }

  .maju-index-page .main-content {
    box-sizing: border-box;
    min-height: calc(100vh - 4.5rem);
    padding: 0.75rem 0.75rem 6.25rem;
    background: #181a1b;
  }

  .maju-index-page .main-content > .hide_mobile {
    display: none !important;
  }

  .maju-index-page #content {
    width: 100%;
  }

  .maju-index-page .sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    box-sizing: border-box;
    width: 100%;
    height: 4.5rem;
    padding: 0;
    overflow: visible;
    border-top: 1px solid #33383c;
    background: #222527;
  }

  .maju-index-page .sidebar > .logo {
    display: none;
  }

  .maju-index-page .sidebar_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 75%;
    height: 4.5rem;
    gap: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
  }

  .maju-index-page .sidebar_content a,
  .maju-index-page .mobile_menu_toggle {
    box-sizing: border-box;
    min-height: 4.5rem;
    padding: 0.5rem 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.6875rem;
    text-decoration: none;
  }

  .maju-index-page .sidebar_content a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
  }

  .maju-index-page .sidebar_content a:nth-child(2),
  .maju-index-page .sidebar_content a:nth-child(n + 5) {
    display: none;
  }

  .maju-index-page .sidebar_content a:nth-child(1),
  .maju-index-page .sidebar_content a:nth-child(3),
  .maju-index-page .sidebar_content a:nth-child(4) {
    display: flex;
  }

  .maju-index-page .sidebar_content a:first-child {
    color: #ffc174;
  }

  .maju-index-page .sidebar_content .sidebar_title,
  .maju-index-page .mobile_menu_toggle .sidebar_title {
    order: 2;
    font-size: 0.6875rem;
    line-height: 1rem;
  }

  .maju-index-page .sidebar_content .little_logo,
  .maju-index-page .mobile_menu_toggle .little_logo {
    order: 1;
    margin: 0;
    color: inherit;
    font-size: 1.375rem;
    line-height: 1.5rem;
  }

  .maju-index-page .mobile_menu_toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    width: 25%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    color: #181a1b;
    background: #f59e0b;
  }

  .maju-index-page .sidebar.mobile-menu-open {
    height: auto;
    min-height: 4.5rem;
  }

  .maju-index-page .sidebar.mobile-menu-open .sidebar_content {
    position: absolute;
    right: 0.75rem;
    bottom: 5rem;
    left: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    height: auto;
    max-height: min(70vh, 34rem);
    padding: 0.5rem;
    overflow-y: auto;
    border: 1px solid #534434;
    border-radius: 0.25rem;
    background: #2c3033;
    box-shadow: 0 0 0 9999px rgba(12, 14, 15, 0.62);
  }

  .maju-index-page .sidebar.mobile-menu-open .sidebar_content a,
  .maju-index-page .sidebar.mobile-menu-open .sidebar_content a:nth-child(2),
  .maju-index-page .sidebar.mobile-menu-open .sidebar_content a:nth-child(n + 5) {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.625rem 0.5rem;
    border-bottom: 1px solid #33383c;
    text-align: left;
    color: #e2e2e3;
    font-size: 0.8125rem;
  }

  .maju-index-page .sidebar.mobile-menu-open .sidebar_content a:last-child {
    color: #ffb4ab;
    border-bottom: 0;
  }

  .maju-index-page .sidebar.mobile-menu-open .sidebar_content .sidebar_title {
    order: 2;
    font-size: 0.8125rem;
  }

  .maju-index-page .sidebar.mobile-menu-open .sidebar_content .little_logo {
    order: 1;
    font-size: 1.25rem;
  }

  .maju-index-page .maju-dashboard {
    padding-top: 0.25rem;
  }

  .maju-index-page .maju-dashboard .date_container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
  }

  .maju-index-page .maju-dashboard .date_container p {
    margin: 0;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
  }

  .maju-index-page .maju-dashboard .date {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
    color: #e2e2e3;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
  }

  .maju-index-page .maju-dashboard .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0;
  }

  .maju-index-page .maju-dashboard .card {
    min-height: 6.5rem;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
    box-shadow: none;
  }

  .maju-index-page .maju-dashboard .card h4 {
    color: #94a3b8;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .maju-index-page .maju-dashboard .card h2 {
    margin: 0.75rem 0 0;
    overflow-wrap: anywhere;
    color: #ffc174;
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .maju-index-page .maju-dashboard .content,
  .maju-index-page .maju-dashboard .bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .maju-index-page .maju-dashboard .chart,
  .maju-index-page .maju-dashboard .stock,
  .maju-index-page .maju-dashboard .produk,
  .maju-index-page .maju-dashboard .aktivitas {
    min-width: 0;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
    box-shadow: none;
  }

  .maju-index-page .maju-dashboard h3 {
    margin: 0 0 0.75rem;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .maju-index-page .maju-dashboard .fake-chart {
    height: 12rem;
    margin-top: 0;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #1a1c1d;
  }

  .maju-index-page .maju-dashboard .dashboard_table {
    font-size: 0.75rem;
  }

  .maju-index-page .maju-dashboard .dashboard_table th,
  .maju-index-page .maju-dashboard .dashboard_table td {
    padding: 0.625rem 0.5rem;
    color: #d8c3ad;
    border-bottom: 1px solid #33383c;
  }

  .maju-index-page .maju-dashboard .dashboard_table th {
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
  }

  .maju-index-page .maju-dashboard .dashboard_table tbody {
    max-height: 13rem;
  }

  .maju-index-page > .app_footer {
    display: none;
  }
}

/* Stitch: TB. MAJU - Penjualan Kasir Mobile (penjualan.php)
   Scoped to the transaction container and mobile breakpoint only. */
.mobile-total-penjualan {
  display: none;
}

.mobile-scan-trigger {
  display: none;
}

.barcode-input-row {
  display: contents;
}

@media (max-width: 767px) {
  .maju-penjualan {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .maju-penjualan .mobile-penjualan-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 999;
    right: 0px;
    left: 0px;
    background: #181a1b;
    border-bottom: 1px solid #33383c;
    padding-inline: 20px;
    top: 70px;
    padding-top: 10px;
  }

  .maju-penjualan .mobile-penjualan-title {
    display: block;
    margin: 0 0 0.75rem;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: left;
  }

  .maju-penjualan .mobile-total-penjualan {
    display: block;
    margin: 0 0 0.75rem;
    color: #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: left;
  }

  

  .maju-penjualan .main-data,
  .maju-penjualan .customer-data,
  .maju-penjualan .barang,
  .maju-penjualan .total-section {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    gap: 0.75rem;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
  }

  .maju-penjualan .main-data {
    margin-top: 50px;
  }

  .maju-penjualan .form-group {
    min-width: 0;
    flex: none;
  }

  .maju-penjualan label,
  .maju-penjualan #search {
    margin: 0 0 0.375rem;
    color: #94a3b8;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.6875rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .maju-penjualan input,
  .maju-penjualan .ket_container {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    height: 2.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #1a1c1d;
    color: #e2e2e3;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8125rem;
  }

  .maju-penjualan input:focus,
  .maju-penjualan .ket_container:focus {
    border-color: #0ea5e9;
    outline: 2px solid rgba(14, 165, 233, 0.2);
    outline-offset: 0;
  }

  .scroll-table {
    width: 100%;
    overflow-x: auto;
  }

  .maju-penjualan input[readonly] {
    color: #94a3b8;
    background: #2c3033;
  }

  .maju-penjualan .customer-data .form-group:nth-child(2),
  .maju-penjualan .customer-data .form-group:nth-child(3),
  .maju-penjualan .barang .form-group:nth-child(1),
  .maju-penjualan .barang .form-group:nth-child(3),
  .maju-penjualan .barang .keranjang-btn-container {
    grid-column: 1 / -1;
  }

  .maju-penjualan .customer-data .form-group:nth-child(2) > .form-group,
  .maju-penjualan .barang .form-group:nth-child(3) > .form-group {
    width: 100%;
  }

  .maju-penjualan .search_results {
    position: absolute;
    z-index: 30;
    width: 100%;
    max-height: 10rem;
    overflow-y: auto;
    border: none;
    border-radius: 0 0 0.25rem 0.25rem;
    background: #2c3033;
  }

  .maju-penjualan .suggestion-item_customer,
  .maju-penjualan .suggestion-item_barang {
    box-sizing: border-box;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.8125rem;
  }

  .maju-penjualan .barang .form-group:nth-child(10),
  .maju-penjualan .barang #edit,
  .maju-penjualan .barang #cancel,
  .maju-penjualan .barang #hapus {
    grid-column: span 1;
  }

  .maju-penjualan .keranjang-btn-container {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }

  .maju-penjualan #keranjang {
    width: 100%;
    min-height: 3rem;
    border: 1px solid #f59e0b;
    border-radius: 0.25rem;
    background: #f59e0b;
    color: #181a1b;
  }

  .maju-penjualan #keranjang .little_logo {
    color: inherit;
  }

  .maju-penjualan #table-section {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #222527;
  }

  .maju-penjualan .judul_tabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .maju-penjualan .judul_tabel h3 {
    margin: 0;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .maju-penjualan #jumlah_barang {
    width: 5rem;
    min-height: 2rem;
    height: 2rem;
    padding: 0.375rem;
    text-align: center;
    font-size: 0.6875rem;
  }

  .maju-penjualan .table-section > table,
  .maju-penjualan .scroll-tbody {
    overflow-x: auto;
  }

  .maju-penjualan .table-section table {
    min-width: 46rem;
    border: 1px solid #33383c;
    background: #1a1c1d;
  }

  .maju-penjualan .table-section th,
  .maju-penjualan .table-section td {
    box-sizing: border-box;
    min-width: 4rem;
    padding: 0.625rem 0.5rem;
    color: #d8c3ad;
    border-bottom: 1px solid #33383c;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
  }

  .maju-penjualan .table-section th {
    color: #94a3b8;
    background: #2c3033;
    font-size: 0.625rem;
    text-transform: uppercase;
  }

  .maju-penjualan .table-section tbody {
    height: 13rem;
    max-height: 13rem;
  }

  .maju-penjualan .total-section {
    align-items: end;
  }

  .maju-penjualan .total-section .ket-wrap {
    position: relative;
    grid-column: 1 / -1;
  }

  .maju-penjualan .total-section .form-group:nth-child(1) {
    grid-column: 1 / -1;
  }

  .maju-penjualan .total-section h2 {
    margin: 0 0 0.375rem;
    color: #94a3b8;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.6875rem;
    line-height: 1rem;
    text-transform: uppercase;
  }

  .maju-penjualan #total_akhir {
    min-height: 3.5rem;
    height: 3.5rem;
    color: #ffc174;
    background: #2c3033;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .maju-penjualan #selisih {
    color: #56e5a9;
  }

  .maju-penjualan .ket-list {
    z-index: 40;
    max-height: 13rem;
    overflow-y: auto;
    border: 1px solid #534434;
    background: #2c3033;
  }

  .maju-penjualan .ket-list div {
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.75rem;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.8125rem;
  }

  .maju-penjualan .buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .maju-penjualan .buttons .btn,
  .maju-penjualan .buttons .btn_buka_scanner {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
  }

  .maju-penjualan #lunas,
  .maju-penjualan #lunas_kembali,
  .maju-penjualan #lunas_titip {
    background: #10b981;
    color: #002113;
    order: 2;
  }

  .maju-penjualan #belum_lunas {
    background: #2c3033;
    border-color: #a08e7a;
    color: #e2e2e3;
    order: 1;
  }

  .maju-penjualan #clear {
    background: #0ea5e9;
    color: #001e2f;
    order: 3;
  }

  .maju-penjualan #btn_buka_scanner {
    grid-column: 1 / -1;
    background: #2c3033;
    border-color: #0ea5e9;
    color: #38bdf8;
  }

  .maju-penjualan .scanner-dialog {
    box-sizing: border-box;
    width: calc(100% - 1.5rem);
    max-width: 24rem;
    margin: 0.75rem;
    border: 1px solid #534434;
    border-radius: 0.25rem;
    background: #222527;
  }

  .maju-penjualan .scanner-header {
    padding: 0.75rem;
    border-bottom: 1px solid #33383c;
  }

  .maju-penjualan #reader {
    width: 100%;
    min-height: 12rem;
    border: 1px solid #33383c;
    border-radius: 0.25rem;
    background: #0c0e0f;
  }

/* Stitch fidelity refinement: mobile transaction hierarchy and inline scanner. */
  .maju-penjualan .main-data,
  .maju-penjualan .customer-data,
  .maju-penjualan .barang,
  .maju-penjualan .total-section {
    position: relative;
    padding-top: 2.75rem;
    border-color: #3e4449;
    background: #222527;
  }

  .maju-penjualan .main-data::before,
  .maju-penjualan .customer-data::before,
  .maju-penjualan .barang::before,
  .maju-penjualan .total-section::before {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    font-weight: 600;
  }

  .maju-penjualan .main-data::before {
    content: "Detail Transaksi";
  }

  .maju-penjualan .customer-data::before {
    content: "Customer";
  }

  .maju-penjualan .barang::before {
    content: "Input Barang";
  }

  .maju-penjualan .total-section::before {
    content: "Ringkasan Pembayaran";
  }

  .maju-penjualan .barcode-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5rem;
    align-items: stretch;
    gap: 0.5rem;
  }

  .maju-penjualan .barcode-input-row input {
    width: 100%;
  }

  .maju-penjualan .mobile-scan-trigger {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border: 1px solid #0ea5e9;
    border-radius: 0.25rem;
    background: #2c3033;
    color: #38bdf8;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
  }

  .maju-penjualan .mobile-scan-trigger .material-symbols-outlined {
    font-size: 1.125rem;
  }

  .maju-penjualan #btn_buka_scanner {
    display: none;
  }

  .maju-penjualan .barang .form-group:nth-child(2) {
    grid-column: 1 / -1;
  }

  .maju-penjualan .barang .form-group:nth-child(3) {
    grid-column: 1 / -1;
  }

  .maju-penjualan .barang .form-group:nth-child(4),
  .maju-penjualan .barang .form-group:nth-child(5),
  .maju-penjualan .barang .form-group:nth-child(6),
  .maju-penjualan .barang .form-group:nth-child(7),
  .maju-penjualan .barang .form-group:nth-child(8),
  .maju-penjualan .barang .form-group:nth-child(9) {
    grid-column: span 1;
  }

  .maju-penjualan .buttons #btn_buka_scanner {
    display: none;
  }

/* Mobile alignment refinement: section title + ID field on one row. */
  .maju-penjualan .customer-data,
  .maju-penjualan .barang {
    padding-top: 0.75rem;
  }

  .maju-penjualan .customer-data::before,
  .maju-penjualan .barang::before {
    display: none;
  }

  .maju-penjualan .customer-data > .form-group:first-child,
  .maju-penjualan .barang > .form-group:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 5.5rem;
    grid-column: 1 / -1;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
  }

  .maju-penjualan .customer-data > .form-group:first-child::before,
  .maju-penjualan .barang > .form-group:nth-child(2)::before {
    color: #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    font-weight: 600;
  }

  .maju-penjualan .customer-data > .form-group:first-child::before {
    content: "Customer";
  }

  .maju-penjualan .barang > .form-group:nth-child(2)::before {
    content: "Input Barang";
  }

  .maju-penjualan .customer-data > .form-group:first-child label,
  .maju-penjualan .barang > .form-group:nth-child(2) label {
    margin: 0;
    white-space: nowrap;
  }

  .maju-penjualan .customer-data > .form-group:first-child input,
  .maju-penjualan .barang > .form-group:nth-child(2) input {
    min-width: 0;
  }

  .maju-penjualan .barang > .form-group:nth-child(1) {
    order: 1;
  }

  .maju-penjualan .barang > .form-group:nth-child(2) {
    order: 0;
  }

  .maju-penjualan .barang > .form-group:nth-child(n + 3) {
    order: 2;
  }
}

/* Stitch: TB. MAJU - Transaksi Pembelian Mobile */
.mobile-pembelian-title {
  margin: 0px;
  text-align: left;
}

@media (max-width: 767px) {
  .maju-pembelian {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
  }

  .maju-pembelian .mobile-pembelian-title {
    display: block;
    margin: 0 0 0.85rem;
    color: #f3f4f4;
    font-size: 1.5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .maju-pembelian .main-data,
  .maju-pembelian .supplier-data,
  .maju-pembelian .barang,
  .maju-pembelian .table-section,
  .maju-pembelian .total-section {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0 0 0.75rem;
    padding: 0.8rem;
    display: grid;
    gap: 0.7rem;
    align-content: start;
    background: #222527;
    border: 1px solid #353a3e;
    border-radius: 4px;
    box-shadow: none;
  }

  .maju-pembelian .main-data,
  .maju-pembelian .supplier-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maju-pembelian .barang,
  .maju-pembelian .total-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maju-pembelian .form-group {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
  }

  .maju-pembelian label {
    color: #aeb5b8;
    font-size: 0.68rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .maju-pembelian input,
  .maju-pembelian select,
  .maju-pembelian textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0.62rem 0.68rem;
    color: #edf0f0;
    background: #181a1b;
    border: 1px solid #3b4246;
    border-radius: 4px;
    outline: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .maju-pembelian input:focus,
  .maju-pembelian select:focus,
  .maju-pembelian textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .maju-pembelian input[readonly] {
    color: #bac1c4;
    background: #1d2021;
  }

  .maju-pembelian input::placeholder {
    color: #727b7f;
  }

  .maju-pembelian .main-data .form-group,
  .maju-pembelian .supplier-data .form-group:nth-child(2),
  .maju-pembelian .supplier-data .form-group:nth-child(3),
  .maju-pembelian .barang .form-group:nth-child(2),
  .maju-pembelian .barang .form-group:nth-child(3),
  .maju-pembelian .barang .form-group:nth-child(4),
  .maju-pembelian .barang .form-group:nth-child(5),
  .maju-pembelian .barang .form-group:nth-child(6),
  .maju-pembelian .barang .form-group:nth-child(7),
  .maju-pembelian .barang .form-group:nth-child(8),
  .maju-pembelian .barang .form-group:nth-child(9),
  .maju-pembelian .barang .form-group:nth-child(10),
  .maju-pembelian .barang .form-group:nth-child(11) {
    grid-column: span 1;
  }

  .maju-pembelian .supplier-data .form-group:nth-child(2),
  .maju-pembelian .supplier-data .form-group:nth-child(3),
  .maju-pembelian .barang .form-group:nth-child(2),
  .maju-pembelian .barang .form-group:nth-child(11) {
    grid-column: 1 / -1;
  }

  .maju-pembelian .hide_mobile {
    display: flex !important;
  }

  .maju-pembelian .search_results {
    z-index: 20;
    max-height: 10rem;
    overflow-y: auto;
    background: #181a1b;
    border-color: #3b4246;
  }

  .maju-pembelian .switch_button_model {
    align-self: flex-start;
    min-height: 24px;
    width: 46px;
    margin-top: 0.15rem;
  }

  .maju-pembelian .disc_sum,
  .maju-pembelian .total-section .form-group,
  .maju-pembelian .buttons {
    grid-column: 1 / -1;
  }

  .maju-pembelian .disc_sum {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .maju-pembelian #disc_button,
  .maju-pembelian #keranjang,
  .maju-pembelian #clear,
  .maju-pembelian #lunas,
  .maju-pembelian #belum_lunas {
    min-height: 42px;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .maju-pembelian #keranjang,
  .maju-pembelian #lunas {
    color: #17191a;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .maju-pembelian #lunas {
    background: #10b981;
    border-color: #10b981;
  }

  .maju-pembelian #belum_lunas,
  .maju-pembelian #clear,
  .maju-pembelian #disc_button {
    color: #d5dadd;
    background: #2c3033;
    border: 1px solid #4a5256;
  }

  .maju-pembelian .table-section {
    display: block;
    overflow: hidden;
  }

  .maju-pembelian .table-section > * {
    max-width: 100%;
  }

  .maju-pembelian .table-section .judul_tabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
  }

  .maju-pembelian .table-section .judul_tabel h3 {
    margin: 0;
    color: #f3f4f4;
    font-size: 1rem;
  }

  .maju-pembelian .table-section .judul_tabel input {
    width: 5rem;
    min-height: 34px;
    padding: 0.35rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
  }

  .maju-pembelian .table-section .table-responsive,
  .maju-pembelian .table-section table {
    min-width: 980px;
  }

  .maju-pembelian table {
    border-collapse: collapse;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  .maju-pembelian th {
    color: #aeb5b8;
    background: #181a1b;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .maju-pembelian td,
  .maju-pembelian th {
    padding: 0.55rem 0.45rem;
    border-color: #353a3e;
  }

  .maju-pembelian .total-section #total_akhir,
  .maju-pembelian .total-section #jumlah_akhir {
    color: #fbbf24;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.15rem;
    font-weight: 700;
  }

  .maju-pembelian .buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .maju-pembelian .buttons #clear {
    grid-column: 1 / -1;
    order: 3;
  }

  .maju-pembelian .barang .disc-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 200px;
  }

  .maju-pembelian + #tambahBarangModal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 1rem;
    background: rgba(10, 12, 13, 0.84);
  }

  .maju-pembelian + #tambahBarangModal .modal-content {
    width: 100%;
    max-width: 26rem;
    margin: 20vh auto 0;
    padding: 1rem;
    color: #e2e2e3;
    background: #222527;
    border: 1px solid #454d51;
    border-radius: 4px;
  }

  .maju-pembelian + #tambahBarangModal .modalTitle {
    color: #f3f4f4;
    font-size: 1rem;
  }

  .maju-pembelian + #tambahBarangModal .modalSubTitle {
    color: #f3f4f4;
    font-size: 1rem;
  }

/* Stitch fidelity pass: preserve the existing DOM contracts while matching the
   390px reference geometry and the compact operational card hierarchy. */
  .maju-pembelian {
    box-sizing: border-box;
    background: #181a1b;
  }

  .maju-pembelian .mobile-pembelian-title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0 0.55rem 1rem;
    border-bottom: 1px solid #33383c;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
  }

  .maju-pembelian .mobile-pembelian-title::before {
    position: absolute;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    background: #f59e0b;
    border-radius: 1px;
    content: "";
  }

  .maju-pembelian .main-data,
  .maju-pembelian .supplier-data,
  .maju-pembelian .barang,
  .maju-pembelian .total-section {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    padding-top: 2.65rem;
  }

  .maju-pembelian .main-data::before,
  .maju-pembelian .supplier-data::before,
  .maju-pembelian .barang::before {
    position: absolute;
    top: 0.72rem;
    left: 0.8rem;
    color: #89ceff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .maju-pembelian .main-data::before { content: "Data Dokumen"; }
  .maju-pembelian .supplier-data::before { content: "Data Supplier"; }
  .maju-pembelian .barang::before {
    color: #ffc174;
    content: "Input Item Barang";
  }

  .maju-pembelian .main-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .maju-pembelian .supplier-data {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    top: auto;
    left: auto;
  }

  .maju-pembelian .supplier-data .form-group:nth-child(1) { grid-column: span 1; }
  .maju-pembelian .supplier-data .form-group:nth-child(2) { grid-column: span 2; }
  .maju-pembelian .supplier-data .form-group:nth-child(3) { grid-column: 1 / -1; }
  .maju-pembelian .supplier-data .form-group:nth-child(4) { grid-column: span 1; }
  .maju-pembelian .supplier-data .form-group:nth-child(5) { grid-column: span 1; }
  .maju-pembelian .supplier-data .form-group:nth-child(6) { grid-column: span 1; }

  .maju-pembelian .barang {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .maju-pembelian .barang .form-group:nth-child(1) { grid-column: span 1; }
  .maju-pembelian .barang .form-group:nth-child(2) { grid-column: span 2; }
  .maju-pembelian .barang .form-group:nth-child(3),
  .maju-pembelian .barang .form-group:nth-child(4),
  .maju-pembelian .barang .form-group:nth-child(5),
  .maju-pembelian .barang .form-group:nth-child(6),
  .maju-pembelian .barang .form-group:nth-child(7),
  .maju-pembelian .barang .form-group:nth-child(8) { grid-column: span 1; }

  .maju-pembelian .barang .form-group:nth-child(9),
  .maju-pembelian .barang .form-group:nth-child(13) { grid-column: 1 / -1; }

  .maju-pembelian .barang .form-group:nth-child(10),
  .maju-pembelian .barang .form-group:nth-child(11),
  .maju-pembelian .barang .form-group:nth-child(12) { grid-column: span 1; }

  .maju-pembelian .barang .form-group:nth-child(9) {
    padding: 0.5rem;
    background: #181a1b;
    border: 1px solid #33383c;
    border-radius: 4px;
  }

  .maju-pembelian .barang .form-group:nth-child(9) #disc_button {
    width: auto;
    align-self: flex-start;
    color: #38bdf8;
    text-align: center;
  }

  .maju-pembelian .barang .form-group:nth-child(9) #disc_total {
    color: #f59e0b;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    text-align: center;
  }

  .maju-pembelian .barang .form-group:nth-child(10),
  .maju-pembelian .barang .form-group:nth-child(11),
  .maju-pembelian .barang .form-group:nth-child(12) {
    padding: 0.45rem;
    background: #121415;
    border: 1px solid #33383c;
    border-radius: 4px;
  }

  .maju-pembelian .barang .form-group:nth-child(13) #keranjang {
    width: 100%;
  }

  .maju-pembelian .barang #keranjang::after {
    content: "+ Tambah";
    margin-left: 0.35rem;
  }

  .maju-pembelian .barang #keranjang .little_logo {
    font-size: 1.1rem;
  }

  .maju-pembelian .total-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .maju-pembelian .total-section h2 {
    margin: 0;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .maju-pembelian .total-section .form-group:first-child {
    grid-column: 1 / -1;
    padding: 0.65rem;
    background: #121415;
    border: 2px solid #0ea5e9;
    border-radius: 4px;
  }

  .maju-pembelian .total-section #total_akhir {
    color: #f59e0b;
    border: 0;
    background: transparent;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.25rem 0;
  }

  .maju-pembelian .total-section .form-group:nth-child(2),
  .maju-pembelian .total-section .ket-wrap {
    grid-column: span 1;
  }

  .maju-pembelian .total-section .form-group:nth-child(n + 4) {
    grid-column: span 1;
  }

  .maju-pembelian .buttons {
    gap: 0.5rem;
    padding-top: 0.25rem;
  }

  .maju-pembelian .buttons #lunas {
    background: #10b981;
    border-color: #10b981;
    order: 2;
  }

  .maju-pembelian .buttons #belum_lunas {
    color: #f59e0b;
    border: 2px solid #f59e0b;
    order: 1;
  }
}

/* Stitch: TB. MAJU - Mobile Dashboard & Drawer (dashboard.php content) */
.mobile-dashboard-section-title,
.mobile-dashboard-summary-heading {
  display: none;
}

.date_fields {
  display: contents;
}

.dashboard-card-label {
  display: contents;
}

.dashboard-card-label .material-symbols-outlined {
  display: none;
}

@media (max-width: 767px) {
  .maju-dashboard-date,
  .maju-dashboard {
    box-sizing: border-box;
    width: 100%;
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", sans-serif;
  }

  .maju-dashboard-date {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #1e2021;
    border: 1px solid #534434;
    border-radius: 4px;
  }

  .mobile-dashboard-section-title,
  .mobile-dashboard-summary-heading,
  .dashboard-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-dashboard-section-title {
    justify-content: flex-start;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #534434;
  }

  .mobile-dashboard-section-title .material-symbols-outlined {
    color: #ffc174;
    font-size: 1.1rem;
  }

  .mobile-dashboard-section-title h2 {
    margin: 0;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .maju-dashboard-date .date_fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
  }

  .maju-dashboard-date .date_fields p {
    margin: 0;
    color: #a08e7a;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  .maju-dashboard-date .date {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem;
    color: #e2e2e3;
    background: #1a1c1d;
    border: 1px solid #534434;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

  .maju-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
  }

  .mobile-dashboard-summary-heading {
    padding: 0 0.15rem;
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-dashboard-summary-heading small {
    color: #56e5a9;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
  }

  .maju-dashboard .cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }

  .maju-dashboard .card {
    min-width: 0;
    min-height: 5.35rem;
    padding: 0.75rem;
    background: #1a1c1d;
    border: 1px solid #534434;
    border-radius: 4px;
    box-shadow: none;
  }

  .maju-dashboard .card:first-child {
    grid-column: 1 / -1;
    min-height: 5.75rem;
    background: #1e2021;
  }

  .maju-dashboard .card.last_card {
    grid-column: auto;
  }

  .maju-dashboard .dashboard-card-label h4 {
    margin: 0;
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    line-height: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .maju-dashboard .dashboard-card-label .material-symbols-outlined {
    display: inline-flex;
    color: #89ceff;
    font-size: 1rem;
  }

  .maju-dashboard .card:first-child .dashboard-card-label .material-symbols-outlined,
  .maju-dashboard .card:first-child h2 {
    color: #ffc174;
  }

  .maju-dashboard .card h2 {
    margin: 0.75rem 0 0;
    overflow-wrap: anywhere;
    color: #e2e2e3;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.25rem;
    font-weight: 700;
  }

  .maju-dashboard .card:first-child h2 {
    font-size: 1.35rem;
    line-height: 1.6rem;
  }

  .maju-dashboard .content,
  .maju-dashboard .bottom {
    display: contents;
  }

  .maju-dashboard .chart,
  .maju-dashboard .stock,
  .maju-dashboard .produk,
  .maju-dashboard .aktivitas {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    overflow: hidden;
    background: #1a1c1d;
    border: 1px solid #534434;
    border-radius: 4px;
    box-shadow: none;
  }

  .maju-dashboard h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    color: #e2e2e3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
  }

  .maju-dashboard h3 .material-symbols-outlined {
    color: #ffc174;
    font-size: 1.1rem;
  }

  .maju-dashboard .stock h3 .material-symbols-outlined { color: #ffc174; }
  .maju-dashboard .produk h3 .material-symbols-outlined { color: #89ceff; }
  .maju-dashboard .aktivitas h3 .material-symbols-outlined { color: #56e5a9; }

  .maju-dashboard .fake-chart {
    height: 12rem;
    margin: 0;
    padding: 0.35rem;
    background: #121415;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  .maju-dashboard .fake-chart canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .maju-dashboard .dashboard_table {
    width: 100%;
    margin: 0;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
  }

  .maju-dashboard .dashboard_table th,
  .maju-dashboard .dashboard_table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #333536;
  }

  .maju-dashboard .dashboard_table th {
    color: #a08e7a;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .maju-dashboard .dashboard_table td:last-child,
  .maju-dashboard .dashboard_table th:last-child {
    color: #ffc174;
    font-family: "JetBrains Mono", monospace;
    text-align: right;
  }

  .maju-dashboard .dashboard_table tbody {
    display: table-row-group;
    max-height: none;
  }

  .maju-dashboard .pagination {
    margin-top: 0.5rem;
    color: #89ceff;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }

/* Clear the legacy desktop supplier offset in the mobile purchase flow. */
  .maju-pembelian {
    box-sizing: border-box;
    padding: 0 0.8rem;
  }

  .maju-pembelian .mobile-pembelian-title {
    margin-bottom: 0px;
  }

  .maju-pembelian > .main-data,
  .maju-pembelian > .supplier-data,
  .maju-pembelian > .barang,
  .maju-pembelian > .table-section,
  .maju-pembelian > .total-section {
    width: 100%;
    box-sizing: border-box;
  }

  .maju-pembelian > .total-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maju-pembelian > .total-section > .form-group {
    grid-column: span 1;
  }

  .maju-pembelian > .total-section > .form-group:first-child {
    grid-column: 1 / -1;
  }

  .maju-pembelian > .total-section > .form-group:nth-child(2) { order: 8; }
  .maju-pembelian > .total-section > .ket-wrap { order: 7; }
  .maju-pembelian > .total-section > .form-group:nth-child(4) { order: 2; }
  .maju-pembelian > .total-section > .form-group:nth-child(5) { order: 3; }
  .maju-pembelian > .total-section > .form-group:nth-child(6) { order: 5; }
  .maju-pembelian > .total-section > .form-group:nth-child(7) { order: 6; }
  .maju-pembelian > .total-section > .form-group:nth-child(8) { order: 4; }

  .maju-pembelian > .total-section > .form-group:nth-child(4),
  .maju-pembelian > .total-section > .form-group:nth-child(5),
  .maju-pembelian > .total-section > .form-group:nth-child(8) {
    grid-column: 1 / -1;
  }

  .maju-pembelian > .total-section > .form-group:nth-child(4),
  .maju-pembelian > .total-section > .form-group:nth-child(5),
  .maju-pembelian > .total-section > .form-group:nth-child(8) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.6rem;
  }

  .maju-pembelian > .total-section > .form-group:nth-child(4) input,
  .maju-pembelian > .total-section > .form-group:nth-child(5) input,
  .maju-pembelian > .total-section > .form-group:nth-child(8) input {
    width: auto;
    height: 1.5rem;
    min-height: 1.5rem;
    align-self: center;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: right;
  }

  .maju-pembelian > .total-section > .form-group:nth-child(6),
  .maju-pembelian > .total-section > .form-group:nth-child(7),
  .maju-pembelian > .total-section > .ket-wrap,
  .maju-pembelian > .total-section > .form-group:nth-child(2) {
    padding-top: 0.15rem;
  }

  .maju-pembelian > .supplier-data {
    top: 0 !important;
    left: 0 !important;
    position: relative !important;
  }

  .maju-pembelian .switch_button_model {
    width: 2.9rem;
    height: 1.55rem;
    min-height: 1.55rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 999px;
  }

  .maju-pembelian .switch_button_model::after {
    width: 1.1rem;
    height: 1.1rem;
    background: #f3f4f4;
    border: 0;
  }

  .maju-pembelian #ppn:checked + .switch_button_model {
    background: #f59e0b;
  }

  .maju-pembelian .disc_sum {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.45rem;
    background: #121415;
    border: 1px solid #33383c;
    border-radius: 4px;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    overflow: hidden;
    height: fit-content !important;
    align-self: start;
  }

  .maju-pembelian .barang .form-group:nth-child(9) {
    height: fit-content !important;
    min-height: 0;
    align-self: start;
  }

  .maju-pembelian .disc_sum #disc_row {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    align-items: center;
    height: fit-content;
    align-self: start;
  }

  .maju-pembelian .disc_sum #disc_row input {
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    height: 2rem !important;
    padding: 0.25rem;
    text-align: center;
  }

  .maju-pembelian .disc_sum #disc_row p {
    width: auto;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .maju-pembelian + #tambahBarangModal {
    box-sizing: border-box;
    padding: 0.75rem;
  }

  .maju-pembelian + #tambahBarangModal .modal-content {
    box-sizing: border-box;
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    min-width: 0;
    flex: 0 1 auto !important;
    margin: 18vh auto 0;
    padding: 1rem;
    border-radius: 4px;
  }

  .maju-pembelian + #tambahBarangModal .modal-content > .d-flex {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    width: 100%;
  }

  .maju-pembelian + #tambahBarangModal .modal-content > .d-flex input,
  .maju-pembelian + #tambahBarangModal .modal-content > .d-flex button {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    height: stretch;
  }

  .item-save-page {
    width: calc(100% - 1.5rem) !important;
    max-width: none !important;
    margin: 0.5rem 0.75rem !important;
    padding: 0 !important;
  }

  .item-save-page .item-pricing-section > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
  }

  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(1),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(2),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(3),
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(7) {
    grid-column: 1 / -1 !important;
  }

  .item-save-page .item-pricing-section .form-control,
  .item-save-page .item-pricing-section > .row > .col-md-2:nth-child(n + 3) input,
  .item-save-page .item-pricing-section #total {
    min-height: 1.9rem !important;
    height: 1.9rem !important;
  }
}

@media (max-width: 767px) {
  body:has(.maju-supplier-page) .maju-supplier-page {
    width: calc(100% - 1.5rem) !important;
    max-width: 390px !important;
    margin: 0.5rem auto !important;
    padding: 0.75rem !important;
    background: #121415 !important;
    border: 1px solid #222528 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

@media (min-width: 768px) {
  .supplier-mobile-header h1 {
    margin: 0px;
    text-align: left;
  }

  .supplier-mobile-header span {
    display: none;
  }
}

@media (max-width: 767px) {
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(1),
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(2) {
    grid-column: span 1;
    order: 1;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(1) > label,
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(2) > label {
    display: none;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(3) {
    order: 0;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(4) {
    order: 2;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(5) {
    order: 3;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(6) {
    order: 4;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(7) {
    grid-column: span 1;
    order: 5;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(9) {
    grid-column: span 1;
    order: 6;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(8) {
    grid-column: 1 / -1;
    order: 7;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:has(#ppn) {
    grid-column: 1 / -1;
    order: 8;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 3.2rem;
    padding: 0.65rem;
    background: #0c0e0f;
    border: 1px solid #2e3235;
    border-radius: 4px;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-group:has(#ppn) #ppn {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-height: 1.25rem !important;
    margin: 0;
    accent-color: #f59e0b;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(11) {
    grid-column: 1 / -1;
    order: 9;
  }

  body:has(.maju-supplier-page) .maju-supplier-page #edit {
    order: 3;
  }

  body:has(.maju-supplier-page) .maju-supplier-page #hapus {
    order: 4;
  }
}

/* Final mobile fidelity pass for the supplier form. Keep the legacy desktop
   layout untouched; these rules only repair the mobile card geometry. */
@media (max-width: 767px) {
  body:has(.maju-supplier-page) .maju-supplier-page .form-section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    padding: 3.35rem 0.7rem 0.7rem !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section::before {
    top: 0.72rem !important;
    left: 0.7rem !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(1),
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(2) {
    display: flex !important;
    grid-column: span 1 !important;
    order: 1 !important;
    min-width: 0 !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(1)::before,
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(2)::before {
    display: none !important;
    content: none !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(1) > label,
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(2) > label {
    display: block !important;
    min-height: 0.85rem;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(1) > input,
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(2) > input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.4rem !important;
    height: 2.4rem !important;
    box-sizing: border-box !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(3) {
    position: absolute !important;
    top: 0.55rem !important;
    right: 0.7rem !important;
    z-index: 5 !important;
    display: flex !important;
    width: 7rem !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(3) > label {
    display: none !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(3) > input {
    width: 100% !important;
    min-height: 1.8rem !important;
    height: 1.8rem !important;
    box-sizing: border-box !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(4) {
    grid-column: 1 / -1 !important;
    order: 2 !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(5),
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(6) {
    grid-column: span 1 !important;
    order: 3 !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(7),
  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(9) {
    grid-column: span 1 !important;
    order: 4 !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(8) {
    grid-column: 1 / -1 !important;
    order: 5 !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(10) {
    grid-column: 1 / -1 !important;
    order: 6 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 3.2rem !important;
    padding: 0.65rem !important;
    box-sizing: border-box !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(10) > label {
    display: block !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page #ppn {
    position: static !important;
    display: block !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    opacity: 1 !important;
    accent-color: #f59e0b;
  }

  body:has(.maju-supplier-page) .maju-supplier-page .form-section > .form-group:nth-child(11) {
    grid-column: 1 / -1 !important;
    order: 7 !important;
  }

  body:has(.maju-supplier-page) .maju-supplier-page #clear { order: 1 !important; }
  body:has(.maju-supplier-page) .maju-supplier-page #tambah { order: 2 !important; }
  body:has(.maju-supplier-page) .maju-supplier-page #edit { order: 3 !important; }
  body:has(.maju-supplier-page) .maju-supplier-page #hapus { order: 4 !important; }
  body:has(.maju-supplier-page) .maju-supplier-page #keluar {
    order: 5 !important;
    grid-column: 1 / -1 !important;
  }
}

/* Stitch: TB. MAJU - Piutang Customer Mobile (piutang.php). */
@media (min-width: 768px) {
  .piutang-mobile-header span { display: none; }
}

@media (max-width: 767px) {
  body:has(.maju-piutang-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  body:has(.maju-piutang-page) .maju-piutang-page {
    width: calc(100% - 1.5rem) !important;
    max-width: 390px !important;
    margin: 0.5rem auto !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
    background: #121415 !important;
    border: 1px solid #222528 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body:has(.maju-piutang-page) .piutang-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0 0.65rem;
    border-bottom: 1px solid #26292c;
  }

  body:has(.maju-piutang-page) .piutang-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    color: #f1f5f9;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  body:has(.maju-piutang-page) .piutang-mobile-header h1::before {
    position: absolute;
    top: 0.28rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  body:has(.maju-piutang-page) .piutang-mobile-header span {
    padding: 0.3rem 0.45rem;
    color: #94a3b8;
    background: #1a1c1e;
    border: 1px solid #2e3235;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6rem;
  }

  body:has(.maju-piutang-page) .maju-piutang-page > .search_container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    margin: 0 0 0.65rem !important;
  }

  body:has(.maju-piutang-page) .maju-piutang-page .search-container {
    position: relative;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
  }

  body:has(.maju-piutang-page) #search_box {
    width: 100% !important;
    min-height: 2.75rem !important;
    box-sizing: border-box !important;
    padding: 0.6rem 0.7rem !important;
    color: #e2e2e3 !important;
    background: #131516 !important;
    border: 1px solid #0ea5e9 !important;
    border-radius: 4px !important;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.76rem;
  }

  body:has(.maju-piutang-page) #search_box:focus {
    outline: none;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  body:has(.maju-piutang-page) #search_piutang {
    min-width: 4.5rem !important;
    min-height: 2.75rem !important;
    padding: 0 1rem !important;
    color: #181a1b !important;
    background: #f59e0b !important;
    border: 1px solid #f59e0b !important;
    border-radius: 4px !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  body:has(.maju-piutang-page) #search_results {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    z-index: 20;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #2a2e32;
    border-radius: 3px;
  }
  body:has(.maju-piutang-page) #search_results:empty { display: none; }
  body:has(.maju-piutang-page) .suggestion-item {
    color: #e2e2e3;
    border-bottom: 1px solid #1e2225;
    font-size: 0.74rem;
  }
  body:has(.maju-piutang-page) .suggestion-item.active,
  body:has(.maju-piutang-page) .suggestion-item:hover {
    color: #ffc174;
    background: #1b2228;
    border-left: 2px solid #f59e0b;
  }

  body:has(.maju-piutang-page) .piutang_titipan_container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
    margin: 0 0 0.75rem !important;
  }

  body:has(.maju-piutang-page) .total_piutang_container,
  body:has(.maju-piutang-page) .total_poin_container,
  body:has(.maju-piutang-page) .sisa_titipan_container {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.5rem;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
  }

  body:has(.maju-piutang-page) #total_piutang,
  body:has(.maju-piutang-page) #total_poin,
  body:has(.maju-piutang-page) #sisa_titipan {
    overflow: hidden;
    color: #ffc174;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.maju-piutang-page) .piutang-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
  }

  body:has(.maju-piutang-page) #piutangTable {
    width: 100% !important;
    min-width: 700px !important;
    margin: 0 !important;
    border-collapse: collapse;
    color: #d8dee8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }
  body:has(.maju-piutang-page) #piutangTable th {
    padding: 0.7rem 0.55rem !important;
    color: #94a3b8;
    background: #121415;
    border: 1px solid #2a2d30;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  body:has(.maju-piutang-page) #piutangTable td {
    min-height: 2.7rem;
    padding: 0.65rem 0.55rem !important;
    color: #e2e2e3;
    background: #181a1b;
    border: 1px solid #292d30;
    white-space: nowrap;
  }
  body:has(.maju-piutang-page) #piutangTable tbody tr:hover td {
    background: #2c3033;
    border-left-color: #f59e0b;
  }

  body:has(.maju-piutang-page) .piutang_footer_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  body:has(.maju-piutang-page) #pagination_piutang {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2.7rem;
    margin: 0 !important;
    padding: 0.35rem !important;
    overflow-x: auto;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    width: stretch;
  }
  body:has(.maju-piutang-page) #pagination_piutang .page-btn {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
  }
  body:has(.maju-piutang-page) #pagination_piutang .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }
  body:has(.maju-piutang-page) #show_rekap_piutang.show_rekap_piutang_btn {
    display: block !important;
    position: static !important;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    color: #38bdf8;
    background: #141b20;
    border: 1px solid #0ea5e9;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  body:has(.maju-piutang-page) #piutangModal,
  body:has(.maju-piutang-page) #rekapPiutangModal {
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
  }
  body:has(.maju-piutang-page) #piutangModalContent,
  body:has(.maju-piutang-page) #rekapPiutangModalContent {
    position: relative;
    width: 100% !important;
    max-width: 390px !important;
    max-height: 92vh !important;
    margin: 0 !important;
    padding: 0.9rem !important;
    overflow-y: auto !important;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #121415 !important;
    border: 1px solid #2a2d30 !important;
    border-radius: 8px 8px 0 0 !important;
  }
  body:has(.maju-piutang-page) #closeModal,
  body:has(.maju-piutang-page) #closeRekapModal {
    position: absolute !important;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    color: #94a3b8;
    background: #101213;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-size: 1.3rem !important;
    line-height: 1.7rem;
    text-align: center;
  }
  body:has(.maju-piutang-page) #modalTitle {
    margin: 0 2.7rem 0.85rem 0;
    padding-bottom: 0.7rem;
    color: #f1f5f9;
    border-bottom: 1px solid #25282b;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
  }

  body:has(.maju-piutang-page) #totalPiutang,
  body:has(.maju-piutang-page) #pembayaranTable,
  body:has(.maju-piutang-page) #penjualanTable,
  body:has(.maju-piutang-page) #returanTable,
  body:has(.maju-piutang-page) #listRekapPiutangTable {
    width: max-content !important;
    min-width: 100% !important;
    margin-top: 0.6rem !important;
    border-collapse: collapse;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
  }
  body:has(.maju-piutang-page) #totalPiutang th,
  body:has(.maju-piutang-page) #pembayaranTable th,
  body:has(.maju-piutang-page) #penjualanTable th,
  body:has(.maju-piutang-page) #returanTable th,
  body:has(.maju-piutang-page) #listRekapPiutangTable th,
  body:has(.maju-piutang-page) #totalPiutang td,
  body:has(.maju-piutang-page) #pembayaranTable td,
  body:has(.maju-piutang-page) #penjualanTable td,
  body:has(.maju-piutang-page) #returanTable td,
  body:has(.maju-piutang-page) #listRekapPiutangTable td {
    padding: 0.55rem 0.5rem !important;
    border: 1px solid #2a2d30;
    white-space: nowrap;
  }
  body:has(.maju-piutang-page) #totalPiutang th,
  body:has(.maju-piutang-page) #pembayaranTable th,
  body:has(.maju-piutang-page) #penjualanTable th,
  body:has(.maju-piutang-page) #returanTable th,
  body:has(.maju-piutang-page) #listRekapPiutangTable th {
    color: #94a3b8;
    background: #16181a;
    font-size: 0.56rem;
    text-transform: uppercase;
  }
  body:has(.maju-piutang-page) #pembayaranSection,
  body:has(.maju-piutang-page) #penjualanSection {
    width: 100%;
    margin-top: 0.75rem;
    overflow-x: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }
  body:has(.maju-piutang-page) #list_rekap_piutang {
    width: 100%;
    margin-top: 0.75rem;
    overflow-x: auto;
    background: white;
    border-radius: 4px;
  }
  body:has(.maju-piutang-page) #hutangModalContent > div[style*="margin-top"],
  body:has(.maju-piutang-page) #piutangModalContent > div[style*="margin-top"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem !important;
  }
  body:has(.maju-piutang-page) #nominal_bayar,
  body:has(.maju-piutang-page) #ket {
    width: 100% !important;
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.6rem 0.65rem;
    color: #e2e2e3;
    background: #151718;
    border: 1px solid #2c3033;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.72rem;
  }
  body:has(.maju-piutang-page) #btnBayar,
  body:has(.maju-piutang-page) #btnLunas,
  body:has(.maju-piutang-page) #btnUseTitip,
  body:has(.maju-piutang-page) #switchTable,
  body:has(.maju-piutang-page) #cetak_bon {
    min-height: 2.75rem;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  body:has(.maju-piutang-page) #btnBayar {
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }
  body:has(.maju-piutang-page) #btnLunas {
    color: #042f20;
    background: #10b981;
    border: 1px solid #10b981;
  }
  body:has(.maju-piutang-page) #btnUseTitip {
    width: 100%;
    margin-bottom: 0.65rem;
    color: #042f20;
    background: #0ea5e9;
    border: 1px solid #0ea5e9;
    grid-column: 1 / -1;
  }
  body:has(.maju-piutang-page) #switchTable {
    width: 100%;
    margin-top: 0.65rem;
    color: #38bdf8;
    background: #141b20;
    border: 1px solid #0ea5e9;
  }
  body:has(.maju-piutang-page) #cetak_bon {
    width: 100%;
    margin-top: 0.75rem;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }
  body:has(.maju-piutang-page) #resiContent {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.75rem;
    background: white;
    border: 1px solid #2a2d30;
  }
  body:has(.maju-piutang-page) #qrContainer {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
  }
}

@media (min-width: 768px) {
  .timbang-mobile-page .timbang-transaction-bar,
  .timbang-mobile-page .timbang-transaction-value { display: contents; }
  .timbang-mobile-page .timbang-transaction-label,
  .timbang-mobile-page .timbang-transaction-value > span { display: none; }
}

/* Approved Stitch: TB. MAJU - Akuntansi Mobile. */
@media (max-width: 767px) {
  body:has(.akuntansi-mobile-page) {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    color-scheme: dark;
  }

  .akuntansi-mobile-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(390px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 38px 12px 24px;
    position: relative;
    gap: 10px;
    background: #0c0e0f;
    border-top: 6px solid #f59e0b;
  }

  .akuntansi-mobile-page::before {
    content: "AKUNTANSI";
    position: absolute;
    top: 10px;
    left: 12px;
    color: #ffc174;
    font: 700 16px/20px "Space Grotesk", Arial, sans-serif;
    letter-spacing: -.01em;
  }

  .akuntansi-mobile-page::after {
    content: "akuntansi.php";
    position: absolute;
    top: 12px;
    right: 12px;
    color: #89ceff;
    font: 600 10px/14px "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page .akuntansi_left,
  .akuntansi-mobile-page .jurnal_umum {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .akuntansi-mobile-page .neraca,
  .akuntansi-mobile-page .kas,
  .akuntansi-mobile-page .jurnal_umum,
  .akuntansi-mobile-page .jurnal_footer {
    box-sizing: border-box;
    padding: 10px;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  .akuntansi-mobile-page h2 {
    margin: 0 0 8px;
    color: #ffc174;
    font: 600 16px/22px "Space Grotesk", Arial, sans-serif;
  }

  .akuntansi-mobile-page table {
    width: 100%;
    min-width: 320px;
    margin: 0;
    color: #e2e2e3;
    background: #0c0e0f;
    border-color: #534434;
    font-family: "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page .neraca,
  .akuntansi-mobile-page .container_kas_table,
  .akuntansi-mobile-page .container_jurnal_umum_show_table {
    overflow-x: auto;
  }

  .akuntansi-mobile-page th {
    padding: 8px 7px;
    color: #d8c3ad;
    background: #282a2b;
    border-color: #534434;
    font: 600 10px/14px "JetBrains Mono", monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .akuntansi-mobile-page td {
    padding: 8px 7px;
    color: #e2e2e3;
    border-color: #333536;
    font: 12px/16px "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page .kas {
    padding-bottom: 10px;
  }

  .akuntansi-mobile-page #kas_title_container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 8px;
    padding: 0;
    overflow: visible;
  }

  .akuntansi-mobile-page #kas_title_container .btn {
    min-height: 30px;
    margin: 0;
    padding: 5px 8px;
    color: #d8c3ad;
    background: #282a2b;
    border: 1px solid #534434;
    border-radius: 2px;
    clip-path: none;
    font: 600 11px/14px "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page #kas_title_container .show_cash {
    color: #472a00;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .akuntansi-mobile-page .kas_table,
  .akuntansi-mobile-page .bca_table,
  .akuntansi-mobile-page .mandiri_table,
  .akuntansi-mobile-page .bri_table,
  .akuntansi-mobile-page .bni_table,
  .akuntansi-mobile-page .cimb_table,
  .akuntansi-mobile-page .permata_table,
  .akuntansi-mobile-page .danamon_table,
  .akuntansi-mobile-page .btn_table,
  .akuntansi-mobile-page .panin_table,
  .akuntansi-mobile-page .ocbc_table,
  .akuntansi-mobile-page .maybank_table,
  .akuntansi-mobile-page .mega_table {
    min-width: 420px;
  }

  .akuntansi-mobile-page .kas_table tbody,
  .akuntansi-mobile-page .bca_table tbody,
  .akuntansi-mobile-page .mandiri_table tbody {
    max-height: 180px;
  }

  .akuntansi-mobile-page .jurnal_umum {
    margin: 0;
    padding: 10px;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: center;
    margin: 0 0 8px;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 7px;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 2px;
    font: 500 11px/14px "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container p {
    color: #d8c3ad;
    font: 600 10px/14px "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button {
    min-height: 36px;
    margin: 0;
    padding: 6px 8px;
    color: #472a00;
    background: #f59e0b;
    border-radius: 2px;
    font: 700 11px/14px "Space Grotesk", Arial, sans-serif;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button:nth-of-type(n+2) {
    color: #00344d;
    background: #89ceff;
  }

  .akuntansi-mobile-page #jurnal_umum_input_table {
    display: block;
    overflow-x: auto;
    min-width: 680px;
  }

  .akuntansi-mobile-page #jurnal_umum_input_table input {
    width: 100%;
    min-width: 88px;
    height: 38px;
    box-sizing: border-box;
    padding: 6px;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 2px;
    font: 500 11px/14px "JetBrains Mono", monospace;
  }

  .akuntansi-mobile-page .kredit-wrap,
  .akuntansi-mobile-page .debit-wrap {
    position: relative;
  }

  .akuntansi-mobile-page .kredit-list,
  .akuntansi-mobile-page .debit-list {
    z-index: 20;
    max-height: 160px;
    background: #1e2021;
    border: 1px solid #534434;
    border-radius: 2px;
  }

  .akuntansi-mobile-page .kredit-list div,
  .akuntansi-mobile-page .debit-list div {
    padding: 8px;
    color: #e2e2e3;
    font: 12px/16px "Hanken Grotesk", Arial, sans-serif;
  }

  .akuntansi-mobile-page .jurnal_umum_show_table {
    min-width: 720px;
    height: 260px;
  }

  .akuntansi-mobile-page .jurnal_footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
  }

  .akuntansi-mobile-page .show_live_table,
  .akuntansi-mobile-page .show_grand_total {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .akuntansi-mobile-page .show_persediaan_hutang_piutang,
  .akuntansi-mobile-page .show_penjualan_hpp_biaya_pajak_rugi_laba {
    display: contents;
  }

  .akuntansi-mobile-page .jurnal_footer > div > div {
    padding: 7px;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 2px;
  }

  .akuntansi-mobile-page .jurnal_footer label {
    display: block;
    margin: 0 0 3px;
    color: #d8c3ad;
    font: 600 10px/14px "Hanken Grotesk", Arial, sans-serif;
  }

  .akuntansi-mobile-page .jurnal_footer input {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    padding: 4px;
    color: #ffc174;
    background: transparent;
    border: 0;
    font: 600 12px/16px "JetBrains Mono", monospace;
  }

  /* Visual-only repositioning of the existing date range controls. */
  .akuntansi-mobile-page {
    padding-top: 92px;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input {
    position: absolute;
    top: 42px;
    z-index: 5;
    width: calc(50% - 25px);
    height: 36px;
    margin: 0;
    padding: 6px;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input:first-of-type {
    left: 12px;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input:nth-of-type(2) {
    right: 12px;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container p {
    position: absolute;
    top: 53px;
    left: 50%;
    z-index: 6;
    transform: translateX(-50%);
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button {
    flex: 1 1 calc(20% - 6px);
    min-width: 58px;
    margin: 0;
  }
}

/* Approved Stitch: TB. MAJU - Log Sistem Mobile. */
@media (max-width: 767px) {
  body:has(.log-mobile-page) {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    color-scheme: dark;
  }

  .log-mobile-page {
    box-sizing: border-box;
    width: min(390px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 56px 12px 24px;
    position: relative;
    background: #0c0e0f;
    border-top: 6px solid #f59e0b;
    border-radius: 0;
    box-shadow: none;
  }

  .log-mobile-page::before {
    content: "LOG SISTEM";
    position: absolute;
    top: 10px;
    left: 12px;
    color: #ffc174;
    font: 700 17px/22px "Space Grotesk", Arial, sans-serif;
    letter-spacing: -.01em;
  }

  .log-mobile-page::after {
    content: "log.php";
    position: absolute;
    top: 12px;
    right: 12px;
    color: #89ceff;
    font: 600 10px/14px "JetBrains Mono", monospace;
  }

  .log-mobile-page > h1 {
    display: none;
  }

  .log-mobile-page > .search_container {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  .log-mobile-page > .search_container:first-of-type {
    display: flex;
    align-items: end;
    gap: 8px;
  }

  .log-mobile-page > .search_container:first-of-type .search-container {
    flex: 1;
    min-width: 0;
    position: relative;
  }

  .log-mobile-page > .search_container:first-of-type .search_box {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 8px 10px;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 2px;
    font: 500 12px/16px "JetBrains Mono", monospace;
  }

  .log-mobile-page .search_box:focus,
  .log-mobile-page .input_date:focus,
  .log-mobile-page .input_year:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  .log-mobile-page #search_log,
  .log-mobile-page #filter {
    min-height: 40px;
    padding: 8px 13px;
    color: #472a00;
    background: #f59e0b;
    border: 0;
    border-radius: 2px;
    font: 700 12px/16px "Space Grotesk", Arial, sans-serif;
  }

  .log-mobile-page #search_results_user {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 160px;
    overflow-y: auto;
    background: #282a2b;
    border: 1px solid #534434;
    border-radius: 2px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  }

  .log-mobile-page #search_results_user:empty,
  .log-mobile-page #search_results_user:has(> .suggestion-item_user:empty) {
    display: none;
  }

  .log-mobile-page #search_results_user .suggestion-item_user {
    padding: 8px 10px !important;
    color: #e2e2e3;
    font: 12px/16px "Hanken Grotesk", Arial, sans-serif;
  }

  .log-mobile-page > .search_container:nth-of-type(2) {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1.35fr auto;
    gap: 10px;
    align-items: center;
  }

  .log-mobile-page > .search_container:nth-of-type(2) h3 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #d8c3ad;
    font: 600 10px/14px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .log-mobile-page > .search_container:nth-of-type(2) p {
    margin: 0;
    color: #d8c3ad;
    font: 600 12px/16px "JetBrains Mono", monospace;
    text-align: center;
  }

  .log-mobile-page .input_date,
  .log-mobile-page .input_year {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 7px;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 2px;
    font: 500 12px/16px "JetBrains Mono", monospace;
    text-align: center;
  }

  .log-mobile-page #filter {
    color: #00344d;
    background: #89ceff;
  }

  .log-mobile-page .logTable {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  .log-mobile-page .logTable thead,
  .log-mobile-page .logTable tbody {
    display: table;
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
  }

  .log-mobile-page .logTable th {
    padding: 9px 8px;
    color: #d8c3ad;
    background: #282a2b;
    border-color: #534434;
    font: 600 10px/14px "JetBrains Mono", monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .log-mobile-page .logTable td {
    padding: 10px 8px;
    color: #e2e2e3;
    background: #0c0e0f;
    border-color: #333536;
    font: 12px/16px "JetBrains Mono", monospace;
    word-break: break-word;
  }

  .log-mobile-page .logTable tbody {
    max-height: 430px;
    overflow-y: auto;
  }

  .log-mobile-page #pagination_log1 {
    display: flex;
    justify-self: center;
    justify-content: flex-end;
    min-height: 38px;
    margin-top: 8px;
    padding: 6px 8px;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  .log-mobile-page #pagination_log1 .page-btn {
    min-width: 30px;
    min-height: 28px;
    margin-left: 4px;
    padding: 4px 7px;
    color: #d8c3ad;
    background: #282a2b;
    border: 1px solid #534434;
    border-radius: 2px;
    font: 600 11px/14px "JetBrains Mono", monospace;
  }

  .log-mobile-page #pagination_log1 .page-btn.active {
    color: #472a00;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .log-mobile-page > .search_container:first-of-type,
  .log-mobile-page > .search_container:nth-of-type(2) {
    position: relative;
    padding-top: 30px;
  }

  .log-mobile-page > .search_container:first-of-type::before {
    content: "PENCARIAN USER";
    position: absolute;
    top: 9px;
    left: 10px;
    color: #e2e2e3;
    font: 600 10px/14px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: .06em;
  }

  .log-mobile-page > .search_container:nth-of-type(2)::before {
    content: "FILTER TANGGAL";
    position: absolute;
    top: 9px;
    left: 10px;
    color: #e2e2e3;
    font: 600 10px/14px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: .06em;
  }

  .log-mobile-page > .search_container:nth-of-type(2) h3 {
    margin-top: 0;
  }

  .log-mobile-page #search_results_user:has(> .suggestion-item_user:only-child) {
    display: none;
  }

  .log-mobile-page .logTable::before {
    content: "TABEL LOG AKTIVITAS";
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 10px;
    color: #e2e2e3;
    background: #1a1c1d;
    border-bottom: 1px solid #333536;
    font: 600 10px/14px "Hanken Grotesk", Arial, sans-serif;
    letter-spacing: .06em;
  }
}

/* Final cascade for the approved Retur Penjualan mobile screen. */
@media (max-width: 767px) {
  .maju-retur-page { 
    width: min(390px, 100%) !important; 
    min-height: 100vh !important; 
    margin: 0 auto !important; 
    padding: 38px 12px 92px !important; 
    box-sizing: border-box !important; 
    border: 0 !important; 
    border-top: 6px solid #f59e0b !important; 
    border-radius: 0 !important; 
    background: #0c0e0f !important; 
    box-shadow: none !important; 
  }
  .maju-retur-page .mobile-retur-title {
    display: none;
  }
  .maju-retur-page::before { 
    content: "RETUR PENJUALAN" !important; 
    display: block !important; 
    position: absolute !important; 
    top: 10px !important; 
    left: 12px !important; 
    color: #ffc174 !important; 
    font: 700 16px/20px "Space Grotesk", Arial, sans-serif !important; 
  }
  .maju-retur-page::after { 
    content: "retur.php" !important; 
    display: block !important; 
    position: absolute !important; 
    top: 12px !important; 
    right: 12px !important; 
    color: #89ceff !important; 
    font: 600 10px/14px "JetBrains Mono", monospace !important; 
  }
  .maju-retur-page > section { 
    width: 100% !important; 
    min-height: 0 !important; 
    height: auto !important; 
    margin: 10px 0 0 !important; 
    padding: 12px !important; 
    box-sizing: border-box !important; 
    border: 1px solid #333536 !important; 
    border-radius: 4px !important; 
    background: #1a1c1d !important; 
  }
  .maju-retur-page .main-data { 
    display: grid !important; 
    grid-template-columns: 7fr 5fr !important; 
    gap: 8px !important; 
  }
  .maju-retur-page .main-data .form-group:nth-child(3) { 
    grid-column: 1 / -1 !important; 
  }
  .maju-retur-page .customer-data { 
    display: grid !important; 
    grid-template-columns: 1fr 2fr !important; 
    gap: 8px !important; 
  }
  .maju-retur-page .customer-data .form-group:nth-child(3) { 
    grid-column: 1 / -1 !important; 
  }
  .maju-retur-page .barang { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 8px !important; 
  }
  .maju-retur-page .barang .form-group:nth-child(2) { 
    grid-column: 2 / -1; 
  }
  .maju-retur-page .barang .form-group:nth-child(3), .maju-retur-page .barang .form-group:nth-child(4), .maju-retur-page .barang .form-group:nth-child(5), .maju-retur-page .barang .form-group:nth-child(6), .maju-retur-page .barang .form-group:nth-child(7), .maju-retur-page .barang .form-group:nth-child(8) { 
    grid-column: span 1 !important; 
  }
  .maju-retur-page .form-group { 
    min-width: 0 !important; 
    display: flex; 
    flex-direction: column !important; 
    gap: 4px !important; 
  }
  .maju-retur-page label, .maju-retur-page .label { 
    margin: 0 !important; 
    color: #d8c3ad !important; 
    font: 600 10px/14px "Hanken Grotesk", Arial, sans-serif !important; 
    text-transform: uppercase !important; 
  }
  .maju-retur-page input { 
    width: 100% !important; 
    height: 42px !important; 
    min-width: 0 !important; 
    box-sizing: border-box !important; 
    padding: 8px 9px !important; 
    border: 1px solid #534434 !important; 
    border-radius: 2px !important; 
    background: #0c0e0f !important; 
    color: #e2e2e3 !important; 
    font: 500 13px/18px "JetBrains Mono", monospace !important; 
  }
  .maju-retur-page .table-section { 
    overflow: hidden !important; 
  }
  .maju-retur-page .table-section table { 
    min-width: 640px !important; 
    background: #0c0e0f !important; 
    border: 1px solid #333536 !important; 
    border-radius: 2px !important; 
  }
  .maju-retur-page .table-section tbody { 
    height: 150px !important; 
  }
  .maju-retur-page .total-section { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    gap: 8px !important; 
    align-items: end !important; 
  }
  .maju-retur-page .total-section .form-group:first-child { 
    grid-column: 1 / -1 !important; 
  }
  .maju-retur-page .buttons { 
    position: sticky !important; 
    bottom: 0 !important; 
    display: grid !important; 
    grid-template-columns: 2fr 1fr !important; 
    gap: 8px !important; 
    margin: 12px -12px -92px !important; 
    padding: 10px 12px !important; 
    background: rgba(12,14,15,.96) !important; 
  }
  .maju-retur-page #simpan_retur { 
    background: #f59e0b !important; 
    color: #472a00 !important; 
  }
  .maju-retur-page #clear { 
    background: #0ea5e9 !important; 
    color: #001e2f !important; 
  }
  .maju-retur-page #keranjang { 
    grid-column: 1 / -1 !important; 
    background: #f59e0b !important; 
    color: #472a00 !important; 
  }
  .maju-retur-page #edit[style*="display:none"], .maju-retur-page #cancel[style*="display:none"], .maju-retur-page #hapus[style*="display:none"] { 
    display: none; 
  }
}

/* Final desktop cascade for Hutang Supplier. */
@media (min-width: 768px) {
  html body:has(.maju-hutang-page) {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page {
    display: flex;
    flex-direction: column;
    width: min(1440px, calc(100% - 32px));
    margin: 16px auto;
    padding: 0 18px 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 54px;
    margin: 0 -18px 14px;
    padding: 0 18px;
    box-sizing: border-box;
    background: rgba(18, 20, 21, .98);
    border-bottom: 1px solid #2a2d30;
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: #f8fafc;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header h1::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header span {
    padding: 5px 8px;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page > .search_container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 8px;
    align-items: end;
    flex: 0 0 auto;
    margin: 0 0 14px;
    padding: 12px;
    box-sizing: border-box;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page > .search_container::before {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 7px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(42, 45, 48, .7);
    content: "PENCARIAN SUPPLIER";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page .search-container {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  html body:has(.maju-hutang-page) #search_box {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
  }

  html body:has(.maju-hutang-page) #search_hutang {
    width: 84px;
    height: 42px;
    margin: 0;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) .hutang-table-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-hutang-page) .hutang-table-scroll::before {
    display: block;
    flex: 0 0 38px;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #cbd5e1;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    content: "▦  DATA MATRIX HUTANG                                  GESER HORIZONTAL · TAP BARIS";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: pre;
  }

  html body:has(.maju-hutang-page) #hutangTable {
    flex: 1 1 auto;
    width: 100%;
    min-width: 980px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #dbe4ee;
    background: #101213;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.maju-hutang-page) #hutangTable thead,
  html body:has(.maju-hutang-page) #hutangTable tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  html body:has(.maju-hutang-page) #hutangTable th,
  html body:has(.maju-hutang-page) #hutangTable td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(42, 45, 48, .5);
  }

  html body:has(.maju-hutang-page) #hutangTable th {
    height: 38px;
    color: #94a3b8;
    background: #101213;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #hutangTable td {
    height: 38px;
    color: #dbe4ee;
    background: #101213;
  }

  html body:has(.maju-hutang-page) #hutangTable tbody {
    display: block;
    max-height: none;
    overflow-y: auto;
  }

  html body:has(.maju-hutang-page) #pagination_hutang {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0 0;
    padding: 5px;
    box-sizing: border-box;
    overflow-x: auto;
    background: #111314;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-hutang-page) #pagination_hutang .page-btn {
    min-width: 34px;
    min-height: 28px;
    padding: 0 9px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  html body:has(.maju-hutang-page) #pagination_hutang .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  html body:has(.maju-hutang-page) #hutangModal {
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(3px);
  }

  html body:has(.maju-hutang-page) #hutangModalContent {
    width: min(820px, 100%);
    max-height: 88vh;
    padding: 18px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
  }

  html body:has(.maju-hutang-page) #modalTitle {
    margin: 0 48px 14px 0;
    padding-bottom: 12px;
    color: #f8fafc;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #totalHutang,
  html body:has(.maju-hutang-page) #pembayaranTable,
  html body:has(.maju-hutang-page) #pembelianTable {
    width: 100% !important;
    margin-top: 10px !important;
    border-collapse: collapse;
    color: #dbe4ee;
    background: #101213;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.maju-hutang-page) #totalHutang th,
  html body:has(.maju-hutang-page) #pembayaranTable th,
  html body:has(.maju-hutang-page) #pembelianTable th,
  html body:has(.maju-hutang-page) #totalHutang td,
  html body:has(.maju-hutang-page) #pembayaranTable td,
  html body:has(.maju-hutang-page) #pembelianTable td {
    padding: 9px 10px;
    border: 1px solid #2a2d30;
    white-space: nowrap;
  }

  html body:has(.maju-hutang-page) #totalHutang th,
  html body:has(.maju-hutang-page) #pembayaranTable th,
  html body:has(.maju-hutang-page) #pembelianTable th {
    color: #94a3b8;
    background: #16181a;
    font-size: 10px;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #hutangModalContent > div[style*="margin-top"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: end;
    margin-top: 14px !important;
  }

  html body:has(.maju-hutang-page) #nominal_bayar,
  html body:has(.maju-hutang-page) #ket {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
  }

  html body:has(.maju-hutang-page) #btnBayar,
  html body:has(.maju-hutang-page) #btnLunas,
  html body:has(.maju-hutang-page) #switchTable {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #btnBayar {
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }

  html body:has(.maju-hutang-page) #btnLunas {
    color: #042f20;
    background: #10b981;
    border: 1px solid #10b981;
  }

  html body:has(.maju-hutang-page) #switchTable {
    display: block;
    width: 100%;
    margin-top: 12px;
    color: #38bdf8;
    background: #141b20;
    border: 1px solid #0ea5e9;
  }

  html body:has(.maju-hutang-page) #pembayaranSection,
  html body:has(.maju-hutang-page) #pembelianSection {
    width: 100%;
    margin-top: 12px;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }
}

/* Re-assert the mobile rekap shell after legacy rules. */
@media (max-width: 767px) {
  .rekap-penjualan-page .rekap-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .rekap-penjualan-page .rekap-mobile-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
  }

  .rekap-penjualan-page .rekap-mobile-title > span {
    display: block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin: 0;
    background: #f59e0b;
    border-radius: 2px;
  }

  .rekap-penjualan-page .rekap-mobile-header h1 {
    margin: 0;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .rekap-penjualan-page .rekap-mobile-source {
    display: inline-block;
    flex: 0 0 auto;
  }

  .rekap-penjualan-page #resiPenjualanModal,
  .rekap-penjualan-page #resiPembelianModal {
    display: flex;
    justify-content: center;
  }
}

/* Desktop fidelity pass for Piutang Customer.
   The mobile Stitch hierarchy is retained while the main shell is locked to
   the viewport and long content scrolls inside its own table/modal regions. */
@media (min-width: 768px) {
  html body:has(.maju-piutang-page) {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
    color: #e5e7eb;
    font-family: "Hanken Grotesk", sans-serif;
  }

  html body:has(.maju-piutang-page) .maju-piutang-page {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    margin: 16px auto 0;
    padding: 0 18px 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.maju-piutang-page) .piutang-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 54px;
    margin: 0 -18px 14px;
    padding: 0 18px;
    box-sizing: border-box;
    background: rgba(18, 20, 21, .98);
    border-bottom: 1px solid #2a2d30;
  }

  html body:has(.maju-piutang-page) .piutang-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: #f8fafc;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
  }

  html body:has(.maju-piutang-page) .piutang-mobile-header h1::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  html body:has(.maju-piutang-page) .piutang-mobile-header span {
    display: inline-block;
    padding: 5px 8px;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  html body:has(.maju-piutang-page) .maju-piutang-page > .search_container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 8px;
    align-items: end;
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 12px;
    box-sizing: border-box;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-piutang-page) .maju-piutang-page > .search_container::before {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 7px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(42, 45, 48, .7);
    content: "PENCARIAN CUSTOMER";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
  }

  html body:has(.maju-piutang-page) .maju-piutang-page .search-container {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  html body:has(.maju-piutang-page) #search_box {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
  }

  html body:has(.maju-piutang-page) #search_box:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  html body:has(.maju-piutang-page) #search_piutang {
    width: 84px;
    height: 42px;
    margin: 0;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  html body:has(.maju-piutang-page) #search_results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 40;
    overflow: hidden;
    background: #101213;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .4);
  }

  html body:has(.maju-piutang-page) #search_results:empty,
  html body:has(.maju-piutang-page) #search_results:has(> .suggestion-item:empty) {
    display: none;
  }

  html body:has(.maju-piutang-page) .piutang_titipan_container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    flex: 0 0 auto;
    margin: 0 0 12px;
  }

  html body:has(.maju-piutang-page) .total_piutang_container,
  html body:has(.maju-piutang-page) .total_poin_container,
  html body:has(.maju-piutang-page) .sisa_titipan_container {
    min-height: 58px;
    padding: 12px 14px;
    box-sizing: border-box;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.maju-piutang-page) #total_piutang,
  html body:has(.maju-piutang-page) #total_poin,
  html body:has(.maju-piutang-page) #sisa_titipan {
    display: block;
    margin-top: 6px;
    color: #fbbf24;
    font-size: 16px;
    font-weight: 700;
  }

  html body:has(.maju-piutang-page) .piutang-table-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-piutang-page) .piutang-table-scroll::before {
    display: block;
    flex: 0 0 38px;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #cbd5e1;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    content: "▦  DATA MATRIX PIUTANG                                  GESER HORIZONTAL · TAP BARIS";
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: pre;
  }

  html body:has(.maju-piutang-page) #piutangTable {
    flex: 1 1 auto;
    width: 100%;
    min-width: 930px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #dbe4ee;
    background: #101213;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.maju-piutang-page) #piutangTable thead,
  html body:has(.maju-piutang-page) #piutangTable tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  html body:has(.maju-piutang-page) #piutangTable th,
  html body:has(.maju-piutang-page) #piutangTable td {
    padding: 8px 10px;
    border: 1px solid rgba(42, 45, 48, .5);
  }

  html body:has(.maju-piutang-page) #piutangTable th {
    height: 38px;
    color: #94a3b8;
    background: #101213;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  html body:has(.maju-piutang-page) #piutangTable td {
    height: 38px;
    color: #dbe4ee;
    background: #101213;
  }

  html body:has(.maju-piutang-page) #piutangTable tbody {
    display: block;
    max-height: none;
    overflow-y: auto;
  }

  html body:has(.maju-piutang-page) .piutang_footer_container {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 0;
    padding: 0;
  }

  html body:has(.maju-piutang-page) #pagination_piutang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
    overflow-x: auto;
    background: #111314;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-piutang-page) #pagination_piutang .page-btn {
    min-width: 34px;
    min-height: 28px;
    padding: 0 9px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  html body:has(.maju-piutang-page) #pagination_piutang .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  html body:has(.maju-piutang-page) #piutangModal {
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(3px);
  }

  html body:has(.maju-piutang-page) #piutangModalContent {
    width: min(860px, 100%);
    max-height: 88vh;
    padding: 18px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
  }

  html body:has(.maju-piutang-page) #modalTitle {
    margin: 0 48px 14px 0;
    padding-bottom: 12px;
    color: #f8fafc;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
  }

  html body:has(.maju-piutang-page) #totalPiutang,
  html body:has(.maju-piutang-page) #pembayaranTable,
  html body:has(.maju-piutang-page) #penjualanTable,
  html body:has(.maju-piutang-page) #returanTable,
  html body:has(.maju-piutang-page) #listRekapPiutangTable,
  html body:has(.maju-piutang-page) #listRekapPembayaranTable,
  html body:has(.maju-piutang-page) #listRekapTitipanTable {
    width: 100% !important;
    margin-top: 10px !important;
    border-collapse: collapse;
    color: #dbe4ee;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  .resi_content_print .list_rekap_piutang .listRekapPiutangTable,
  .resi_content_print .list_rekap_pembayaran .listRekapPembayaranTable,
  .resi_content_print .list_rekap_titipan .listRekapTitipanTable {
    width: 100% !important;
    margin-top: 10px !important;
    border-collapse: collapse;
    color: #dbe4ee;
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
  }

  html body:has(.maju-piutang-page) #totalPiutang th,
  html body:has(.maju-piutang-page) #pembayaranTable th,
  html body:has(.maju-piutang-page) #penjualanTable th,
  html body:has(.maju-piutang-page) #returanTable th,
  html body:has(.maju-piutang-page) #listRekapPiutangTable th,
  html body:has(.maju-piutang-page) #listRekapPembayaranTable th,
  html body:has(.maju-piutang-page) #listRekapTitipanTable th,
  html body:has(.maju-piutang-page) #totalPiutang td,
  html body:has(.maju-piutang-page) #pembayaranTable td,
  html body:has(.maju-piutang-page) #penjualanTable td,
  html body:has(.maju-piutang-page) #returanTable td,
  html body:has(.maju-piutang-page) #listRekapPiutangTable td,
  html body:has(.maju-piutang-page) #listRekapPembayaranTable td,
  html body:has(.maju-piutang-page) #listRekapTitipanTable td,
  .resi_content_print .list_rekap_piutang .listRekapPiutangTable td,
  .resi_content_print .list_rekap_pembayaran .listRekapPembayaranTable td,
  .resi_content_print .list_rekap_titipan .listRekapTitipanTable td {
    padding: 9px 10px;
    border: 1px solid #2a2d30;
    white-space: nowrap;
  }

  html body:has(.maju-piutang-page) #totalPiutang th,
  html body:has(.maju-piutang-page) #pembayaranTable th,
  html body:has(.maju-piutang-page) #penjualanTable th,
  html body:has(.maju-piutang-page) #returanTable th,
  html body:has(.maju-piutang-page) #listRekapPiutangTable th,
  html body:has(.maju-piutang-page) #listRekapPembayaranTable th,
  html body:has(.maju-piutang-page) #listRekapTitipanTable th {
    font-size: 10px;
    text-transform: uppercase;
  }

  .resi_content_print .list_rekap_piutang .listRekapPiutangTable th,
  .resi_content_print .list_rekap_pembayaran .listRekapPembayaranTable th,
  .resi_content_print .list_rekap_titipan .listRekapTitipanTable th {
    font-size: 16px;
    text-transform: uppercase;
  }

  html body:has(.maju-piutang-page) #piutangModalContent > div[style*="margin-top"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto;
    gap: 8px;
    align-items: end;
    margin-top: 14px !important;
  }

  html body:has(.maju-piutang-page) #nominal_bayar,
  html body:has(.maju-piutang-page) #ket {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
  }

  html body:has(.maju-piutang-page) #btnBayar,
  html body:has(.maju-piutang-page) #btnLunas,
  html body:has(.maju-piutang-page) #btnUseTitip,
  html body:has(.maju-piutang-page) #switchTable {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  html body:has(.maju-piutang-page) #btnBayar {
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
  }

  html body:has(.maju-piutang-page) #btnLunas {
    color: #042f20;
    background: #10b981;
    border: 1px solid #10b981;
  }

  html body:has(.maju-piutang-page) #btnUseTitip {
    color: #c4b5fd;
    background: #211b35;
    border: 1px solid #8b5cf6;
  }

  html body:has(.maju-piutang-page) #switchTable {
    display: block;
    width: 100%;
    margin-top: 12px;
    color: #38bdf8;
    background: #141b20;
    border: 1px solid #0ea5e9;
  }

  html body:has(.maju-piutang-page) #pembayaranSection,
  html body:has(.maju-piutang-page) #penjualanSection {
    width: 100%;
    margin-top: 12px;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }
}

@media (min-width: 768px) {
  html:has(body .maju-piutang-page) {
    height: 100%;
    overflow: hidden;
  }
}

/* Final desktop cascade for Timbang after shared legacy rules. */
@media (min-width: 768px) {
  html body:has(.timbang-mobile-page) .timbang-transaction-label {
    display: flex;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value {
    display: flex;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value > span {
    display: block;
  }

  html body:has(.timbang-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page {
    display: flex;
    flex-direction: column;
    width: min(1160px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 18px 22px 22px;
    box-sizing: border-box;
    overflow: hidden;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 58px;
    width: 100%;
    margin: 0 0 18px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #1a1c1d;
    border: 1px solid #2a2d30;
    border-radius: 5px;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-label {
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
    padding: 8px 12px;
    background: #0c0e0f;
    border-radius: 3px;
  }

  html body:has(.timbang-mobile-page) .timbang-transaction-value > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: #56e5a9;
    border-radius: 50%;
  }

  html body:has(.timbang-mobile-page) #idt {
    width: 100%;
    min-height: 24px;
    padding: 0;
    color: #ffc174;
    background: transparent;
    border: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page > .search_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 18px;
    box-sizing: border-box;
    background: #1e2021;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .24);
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card h2 {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding-left: 12px;
    color: #e2e2e3;
    border-left: 4px solid #ffc174;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card h2::after {
    margin-left: auto;
    padding: 4px 7px;
    color: #ffc174;
    background: #282a2b;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-outflow h2::after {
    content: "OUTFLOW";
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-inflow h2 {
    border-left-color: #89ceff;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-inflow h2::after {
    color: #89ceff;
    content: "INFLOW";
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .search_box_timbang {
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px 10px 42px;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #282a2b;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card label {
    margin: 0;
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card > input[type="number"],
  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card > input[id^="idb"] {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #282a2b;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .timbang-card > input[id^="idb"] {
    color: #89ceff;
    background: #0c0e0f;
    font-size: 12px;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page .search_results {
    position: absolute;
    top: 148px;
    right: 18px;
    left: 18px;
    z-index: 30;
    max-height: 220px;
    margin: 0;
    overflow-y: auto;
    background: #333536;
    border: 1px solid #534434;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  }

  html body:has(.timbang-mobile-page) #search_results_1:has(> .suggestion-item_1:empty),
  html body:has(.timbang-mobile-page) #search_results_2:has(> .suggestion-item_2:empty) {
    display: none;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page > .button-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .35fr);
    gap: 10px;
    flex: 0 0 52px;
    margin: 18px 0 0;
  }

  html body:has(.timbang-mobile-page) .timbang-mobile-page > .button-container button {
    width: 100%;
    height: 52px;
    margin: 0;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html body:has(.timbang-mobile-page) #convertButton {
    color: #613b00;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .22);
  }

  html body:has(.timbang-mobile-page) #clear {
    color: #89ceff;
    background: #282a2b;
    border: 1px solid #2a2d30;
  }
}

@media (min-width: 768px) {
  html:has(body .timbang-mobile-page) {
    height: 100%;
    overflow: hidden;
  }
}

/* Desktop fidelity pass for Log Sistem. */
@media (min-width: 768px) {
  html body:has(.log-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
  }

  html body:has(.log-mobile-page) .log-mobile-page {
    display: flex;
    flex-direction: column;
    width: min(1440px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 0 18px 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #333536;
    border-top: 6px solid #f59e0b;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.log-mobile-page) .log-mobile-page > h1 {
    display: flex;
    align-items: center;
    flex: 0 0 56px;
    margin: 0 -18px 14px;
    padding: 0 18px;
    box-sizing: border-box;
    color: #f8fafc;
    background: #121415;
    border-bottom: 1px solid #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }

  html body:has(.log-mobile-page) .log-mobile-page > h1::before {
    width: 10px;
    height: 10px;
    margin-right: 9px;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container {
    position: relative;
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 30px 12px 12px;
    box-sizing: border-box;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:first-of-type {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 8px;
    align-items: end;
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:first-of-type::before,
  html body:has(.log-mobile-page) .log-mobile-page > .search_container:nth-of-type(2)::before {
    position: absolute;
    top: 9px;
    left: 12px;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:first-of-type::before {
    content: "PENCARIAN USER";
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:nth-of-type(2)::before {
    content: "FILTER TANGGAL";
  }

  html body:has(.log-mobile-page) .log-mobile-page .search-container {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  html body:has(.log-mobile-page) #search_box_user {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
  }

  html body:has(.log-mobile-page) #search_box_user:focus,
  html body:has(.log-mobile-page) #day:focus,
  html body:has(.log-mobile-page) #month:focus,
  html body:has(.log-mobile-page) #year:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  html body:has(.log-mobile-page) #search_log,
  html body:has(.log-mobile-page) #filter {
    height: 42px;
    margin: 0;
    padding: 0 14px;
    color: #472a00;
    background: #f59e0b;
    border: 0;
    border-radius: 3px;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  html body:has(.log-mobile-page) #search_results_user {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 40;
    max-height: 180px;
    overflow-y: auto;
    background: #282a2b;
    border: 1px solid #534434;
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  }

  html body:has(.log-mobile-page) #search_results_user:empty,
  html body:has(.log-mobile-page) #search_results_user:has(> .suggestion-item_user:empty) {
    display: none;
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:nth-of-type(2) {
    display: grid;
    grid-template-columns: auto 54px auto 54px auto 76px 84px;
    gap: 8px;
    align-items: center;
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:nth-of-type(2) h3 {
    grid-column: auto;
    margin: 0;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  html body:has(.log-mobile-page) .log-mobile-page > .search_container:nth-of-type(2) p {
    margin: 0;
    color: #d8c3ad;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    text-align: center;
  }

  html body:has(.log-mobile-page) .log-mobile-page .input_date,
  html body:has(.log-mobile-page) .log-mobile-page .input_year {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 7px;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #0c0e0f;
    border: 1px solid #534434;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    text-align: center;
  }

  html body:has(.log-mobile-page) #filter {
    color: #00344d;
    background: #89ceff;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: auto;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable::before {
    display: block;
    padding: 11px 12px;
    color: #e2e2e3;
    background: #1a1c1d;
    border-bottom: 1px solid #333536;
    content: "TABEL LOG AKTIVITAS";
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable thead,
  html body:has(.log-mobile-page) .log-mobile-page .logTable tbody tr {
    display: table;
    width: 100%;
    min-width: 1120px;
    table-layout: fixed;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable th,
  html body:has(.log-mobile-page) .log-mobile-page .logTable td {
    padding: 9px 10px;
    border: 1px solid #333536;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable th {
    color: #d8c3ad;
    background: #282a2b;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable td {
    color: #e2e2e3;
    background: #0c0e0f;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    line-height: 1.35;
  }

  html body:has(.log-mobile-page) .log-mobile-page .logTable tbody {
    display: block;
    max-height: none;
  }

  html body:has(.log-mobile-page) #pagination_log1 {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 42px;
    margin: 10px 0 0;
    padding: 6px 8px;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
  }

  html body:has(.log-mobile-page) #pagination_log1 .page-btn {
    min-width: 30px;
    min-height: 28px;
    margin-left: 0;
    padding: 4px 7px;
    color: #d8c3ad;
    background: #282a2b;
    border: 1px solid #534434;
    border-radius: 2px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.log-mobile-page) #pagination_log1 .page-btn.active {
    color: #472a00;
    background: #f59e0b;
    border-color: #f59e0b;
  }
}

@media (min-width: 768px) {
  html:has(body .log-mobile-page) {
    height: 100%;
    overflow: hidden;
  }
}

/* Desktop fidelity pass for Pengaturan. */
@media (min-width: 768px) {
  html body:has(.setting-mobile-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "Hanken Grotesk", Arial, sans-serif;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: min(1240px, calc(100% - 32px));
    margin: 16px auto 24px;
    padding: 22px;
    box-sizing: border-box;
    background: #0c0e0f;
    border: 1px solid #333536;
    border-top: 6px solid #f59e0b;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  }

  html body:has(.setting-mobile-page) .setting-mobile-page::before {
    display: block;
    margin: 0 0 2px;
    color: #ffc174;
    content: "PENGATURAN";
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page > .setting_div2 {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    background: #1a1c1d;
    border: 1px solid #333536;
    border-radius: 4px;
    box-shadow: none;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page > .setting_div2 > h3 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: #ffc174;
    border-bottom: 1px solid #333536;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .setting_div3 {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin: 0 0 10px;
    padding: 0;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .setting_div3 h5 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page input[type="text"],
  html body:has(.setting-mobile-page) .setting-mobile-page input[type="email"],
  html body:has(.setting-mobile-page) .setting-mobile-page input[type="number"],
  html body:has(.setting-mobile-page) .setting-mobile-page select,
  html body:has(.setting-mobile-page) .setting-mobile-page textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #222527;
    border: 1px solid #534434;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .setting_div3 > input[type="text"],
  html body:has(.setting-mobile-page) .setting-mobile-page .setting_div3 > input[type="email"],
  html body:has(.setting-mobile-page) .setting-mobile-page .setting_div3 > input[type="number"],
  html body:has(.setting-mobile-page) .setting-mobile-page .setting_div3 > select {
    flex: 0 1 58%;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page input[type="file"] {
    width: 58%;
    min-width: 0;
    padding: 8px;
    color: #d8c3ad;
    background: #222527;
    border: 1px solid #534434;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #f59e0b;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page input:focus,
  html body:has(.setting-mobile-page) .setting-mobile-page select:focus,
  html body:has(.setting-mobile-page) .setting-mobile-page textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .note_text,
  html body:has(.setting-mobile-page) .setting-mobile-page small {
    display: block;
    margin: 0 0 10px;
    color: #a08e7a;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .img_preview_container {
    align-items: center;
    justify-content: center;
    height: 120px;
    margin: 0 0 10px;
    border: 1px dashed #534434;
    background: #0c0e0f;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .img_preview_container img {
    max-width: 100%;
    max-height: 108px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .cancel_save_btn_container,
  html body:has(.setting-mobile-page) .setting-mobile-page .setting_backup_restore {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .setting_backup_restore {
    flex-wrap: nowrap;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page button,
  html body:has(.setting-mobile-page) .setting-mobile-page .btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .btn-primary {
    color: #472a00;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .btn-secondary {
    color: #d8c3ad;
    background: #282a2b;
    border-color: #534434;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .backup_btn {
    color: #89ceff;
    background: #1e2021;
    border-color: #89ceff;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .restore_reset_btn,
  html body:has(.setting-mobile-page) .setting-mobile-page #delete_database,
  html body:has(.setting-mobile-page) .setting-mobile-page #hard_reset_database {
    color: #ffdad6;
    background: #6b1d1a;
    border-color: #8b2b28;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .btn-orange,
  html body:has(.setting-mobile-page) .setting-mobile-page #mode_arsip {
    color: #ffc174;
    background: #3b2b12;
    border-color: #f59e0b;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page button a {
    color: inherit;
    text-decoration: none;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .daftar_pengguna_table {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    overflow-x: auto;
    border: 1px solid #333536;
    background: #0c0e0f;
    color: #e2e2e3;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .daftar_pengguna_table table,
  html body:has(.setting-mobile-page) .setting-mobile-page table {
    min-width: 540px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .daftar_pengguna_table th,
  html body:has(.setting-mobile-page) .setting-mobile-page .daftar_pengguna_table td {
    padding: 9px 8px;
    border-color: #333536;
    white-space: nowrap;
    vertical-align: middle;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .pengguna > h5 {
    margin: 0 0 8px;
    color: #d8c3ad;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .setting_add_user {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .setting_add_user select,
  html body:has(.setting-mobile-page) .setting-mobile-page .setting_add_user input {
    flex: 1 1 180px;
    width: auto;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .hak_akses_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .hak_akses_container h5 {
    flex: 0 0 100%;
  }

  html body:has(.setting-mobile-page) .setting-mobile-page .hak_akses_container .cancel_save_btn_container {
    flex: 0 0 100%;
  }
}

/* Final cascade for the desktop Rekap Penjualan palette; colors only. */
@media (min-width: 768px) {
  .rekap-penjualan-page {
    background: #121415;
    color: #e2e2e3;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .rekap-mobile-header,
  .rekap-penjualan-page .rekap-table-heading {
    background: #141618;
    color: #cbd5e1;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .rekap-mobile-title > span,
  .rekap-penjualan-page .rekap-table-heading .material-symbols-outlined {
    background: #f59e0b;
    color: #f59e0b;
  }

  .rekap-penjualan-page .rekap-mobile-header h1 {
    color: #f8fafc;
  }

  .rekap-penjualan-page .rekap-mobile-source {
    color: #94a3b8;
    background: #1c1f22;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .rekap-search-panel,
  .rekap-penjualan-page .rekap-date-panel,
  .rekap-penjualan-page .rekap-table-card {
    background: #16181a;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .search_box,
  .rekap-penjualan-page .input_date,
  .rekap-penjualan-page .input_year,
  .rekap-penjualan-page #metode,
  .rekap-penjualan-page #qty_retur_penjualan {
    color: #f1f5f9;
    background: #0e1011;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .input_date,
  .rekap-penjualan-page .input_year {
    color: #fbbf24;
  }

  .rekap-penjualan-page .search_button,
  .rekap-penjualan-page #filter,
  .rekap-penjualan-page .cetak_bon,
  .rekap-penjualan-page .retur_penjualan {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-penjualan-page .search_results {
    background: #0c0e0f;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page .suggestion-item,
  .rekap-penjualan-page .suggestion-item_barang {
    color: #e5e7eb;
    background: #121415;
    border-bottom-color: #22272a;
  }

  .rekap-penjualan-page .suggestion-item:hover,
  .rekap-penjualan-page .suggestion-item.active,
  .rekap-penjualan-page .suggestion-item_barang:hover,
  .rekap-penjualan-page .suggestion-item_barang.active {
    color: #ffc174;
    background: #1b2228;
    border-left-color: #f59e0b;
  }

  .rekap-penjualan-page .rekap-date-panel h3 {
    color: #cbd5e1;
  }

  .rekap-penjualan-page .rekap-date-panel p,
  .rekap-penjualan-page .rekap-table-heading small,
  .rekap-penjualan-page #pagination_rekap_penjualan .page-btn {
    color: #94a3b8;
  }

  .rekap-penjualan-page #rekapPenjualanTable,
  .rekap-penjualan-page #rekapPenjualanTable thead,
  .rekap-penjualan-page #rekapPenjualanTable tbody {
    color: #dbe4ee;
    background: #101213;
  }

  .rekap-penjualan-page #rekapPenjualanTable th {
    color: #94a3b8;
    border-right-color: rgba(42, 45, 48, .55);
    border-bottom-color: #2a2d30;
  }

  .rekap-penjualan-page #rekapPenjualanTable td {
    border-bottom-color: rgba(42, 45, 48, .5);
  }

  .rekap-penjualan-page #pagination_rekap_penjualan {
    background: #111314;
    border-top-color: #2a2d30;
  }

  .rekap-penjualan-page #pagination_rekap_penjualan .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-penjualan-page #resiPenjualanModal {
    background: rgba(0, 0, 0, .78);
  }

  .rekap-penjualan-page #resiPenjualanModalContent {
    color: #e2e2e3;
    background: #121415;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page #closePenjualanModal {
    color: #94a3b8;
    background: #1c1f22;
    border-color: #2a2d30;
  }

  .rekap-penjualan-page #modalTitle {
    color: #e2e2e3;
  }

  .rekap-penjualan-page #resiContent h1,
  .rekap-penjualan-page #resiContent h4,
  .rekap-penjualan-page #resiContent p {
    color: black;
  }

  .rekap-penjualan-page #voidFaktur {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }
}

/* Desktop palette for Rekap Pembelian; scoped to the page wrapper only. */
@media (min-width: 768px) {
  .rekap-pembelian-page {
    background: #121415;
    color: #e2e2e3;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page .rekap-mobile-header,
  .rekap-pembelian-page .rekap-table-heading {
    background: #141618;
    color: #cbd5e1;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page .rekap-mobile-title > span,
  .rekap-pembelian-page .rekap-table-heading .material-symbols-outlined {
    background: #f59e0b;
    color: #f59e0b;
  }

  .rekap-pembelian-page .rekap-mobile-header h1 {
    color: #f8fafc;
  }

  .rekap-pembelian-page .rekap-mobile-source {
    color: #94a3b8;
    background: #1c1f22;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page .rekap-search-panel,
  .rekap-pembelian-page .rekap-date-panel,
  .rekap-pembelian-page .rekap-table-card {
    background: #16181a;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page .search_box,
  .rekap-pembelian-page .input_date,
  .rekap-pembelian-page .input_year,
  .rekap-pembelian-page #metode,
  .rekap-pembelian-page #qty_retur_pembelian {
    color: #f1f5f9;
    background: #0e1011;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page .input_date,
  .rekap-pembelian-page .input_year {
    color: #fbbf24;
  }

  .rekap-pembelian-page .search_button,
  .rekap-pembelian-page #filter,
  .rekap-pembelian-page .cetak_bon,
  .rekap-pembelian-page .retur_pembelian {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-pembelian-page .search_results {
    background: #0c0e0f;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page .suggestion-item,
  .rekap-pembelian-page .suggestion-item_barang {
    color: #e5e7eb;
    background: #121415;
    border-bottom-color: #22272a;
  }

  .rekap-pembelian-page .suggestion-item:hover,
  .rekap-pembelian-page .suggestion-item.active,
  .rekap-pembelian-page .suggestion-item_barang:hover,
  .rekap-pembelian-page .suggestion-item_barang.active {
    color: #ffc174;
    background: #1b2228;
    border-left-color: #f59e0b;
  }

  .rekap-pembelian-page .rekap-date-panel h3 {
    color: #cbd5e1;
  }

  .rekap-pembelian-page .rekap-date-panel p,
  .rekap-pembelian-page .rekap-table-heading small,
  .rekap-pembelian-page #pagination_rekap_pembelian .page-btn {
    color: #94a3b8;
  }

  .rekap-pembelian-page #rekapPembelianTable,
  .rekap-pembelian-page #rekapPembelianTable thead,
  .rekap-pembelian-page #rekapPembelianTable tbody {
    color: #dbe4ee;
    background: #101213;
  }

  .rekap-pembelian-page #rekapPembelianTable th {
    color: #94a3b8;
    border-right-color: rgba(42, 45, 48, .55);
    border-bottom-color: #2a2d30;
  }

  .rekap-pembelian-page #rekapPembelianTable td {
    border-bottom-color: rgba(42, 45, 48, .5);
  }

  .rekap-pembelian-page #pagination_rekap_pembelian {
    background: #111314;
    border-top-color: #2a2d30;
  }

  .rekap-pembelian-page #pagination_rekap_pembelian .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .rekap-pembelian-page #resiPembelianModal {
    background: rgba(0, 0, 0, .78);
  }

  .rekap-pembelian-page #resiPembelianModalContent {
    color: #e2e2e3;
    background: #121415;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page #closePembelianModal {
    color: #94a3b8;
    background: #1c1f22;
    border-color: #2a2d30;
  }

  .rekap-pembelian-page #modalTitle {
    color: #e2e2e3;
  }

  .rekap-pembelian-page #resiContent h1,
  .rekap-pembelian-page #resiContent h4,
  .rekap-pembelian-page #resiContent p {
    color: black;
  }

  .rekap-pembelian-page #voidFaktur {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }
}

/* Desktop palette for Akuntansi; colors only, layout remains inherited. */
@media (min-width: 768px) {
  .akuntansi-mobile-page {
    background: #0c0e0f;
    color: #e2e2e3;
    border-color: #333536;
  }

  .akuntansi-mobile-page .neraca,
  .akuntansi-mobile-page .kas,
  .akuntansi-mobile-page .jurnal_umum,
  .akuntansi-mobile-page .jurnal_footer {
    background: #1a1c1d;
    color: #e2e2e3;
    border-color: #333536;
  }

  .akuntansi-mobile-page::before {
    color: #ffc174;
  }

  .akuntansi-mobile-page::after {
    color: #89ceff;
  }

  .akuntansi-mobile-page h2 {
    color: #ffc174;
  }

  .akuntansi-mobile-page table,
  .akuntansi-mobile-page .jurnal_umum_show_table,
  .akuntansi-mobile-page #jurnal_umum_input_table {
    color: #e2e2e3;
    background: #0c0e0f;
    border-color: #534434;
  }

  .akuntansi-mobile-page th {
    color: #d8c3ad;
    background: #282a2b;
    border-color: #534434;
  }

  .akuntansi-mobile-page td {
    color: #e2e2e3;
    border-color: #333536;
  }

  .akuntansi-mobile-page #kas_title_container .btn {
    color: #d8c3ad;
    background: #282a2b;
    border-color: #534434;
  }

  .akuntansi-mobile-page #kas_title_container .show_cash {
    color: #472a00;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input,
  .akuntansi-mobile-page #jurnal_umum_input_table input,
  .akuntansi-mobile-page .jurnal_footer > div > div {
    color: #e2e2e3;
    background: #0c0e0f;
    border-color: #534434;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container p,
  .akuntansi-mobile-page .jurnal_footer label {
    color: #d8c3ad;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button {
    color: #472a00;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button:nth-of-type(n + 2) {
    color: #00344d;
    background: #89ceff;
    border-color: #89ceff;
  }

  .akuntansi-mobile-page .kredit-list,
  .akuntansi-mobile-page .debit-list {
    background: #1e2021;
    border-color: #534434;
  }

  .akuntansi-mobile-page .kredit-list div,
  .akuntansi-mobile-page .debit-list div {
    color: #e2e2e3;
  }

  .akuntansi-mobile-page .kredit-list div:hover,
  .akuntansi-mobile-page .debit-list div:hover,
  .akuntansi-mobile-page .kredit-list div.active,
  .akuntansi-mobile-page .debit-list div.active {
    color: #181a1b;
    background: #89ceff;
  }

  .akuntansi-mobile-page .jurnal_umum input:focus,
  .akuntansi-mobile-page .jurnal_umum select:focus,
  .akuntansi-mobile-page .jurnal_umum textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .akuntansi-mobile-page .show_bca:active,
  .akuntansi-mobile-page .show_mandiri:active,
  .akuntansi-mobile-page .show_bri:active,
  .akuntansi-mobile-page .show_bni:active,
  .akuntansi-mobile-page .show_cimb:active,
  .akuntansi-mobile-page .show_permata:active,
  .akuntansi-mobile-page .show_danamon:active,
  .akuntansi-mobile-page .show_btn:active,
  .akuntansi-mobile-page .show_panin:active,
  .akuntansi-mobile-page .show_ocbc:active,
  .akuntansi-mobile-page .show_maybank:active,
  .akuntansi-mobile-page .show_mega:active {
    color: #181a1b;
    background: #d97706;
  }

  .akuntansi-mobile-page .jurnal_footer input {
    color: #ffc174;
    background: transparent;
    border-color: transparent;
  }

  .akuntansi-mobile-page .pagination,
  .akuntansi-mobile-page #pagination_kas,
  .akuntansi-mobile-page #pagination_jurnal_umum {
    color: #94a3b8;
    background: #111314;
    border-color: #2a2d30;
  }

  .akuntansi-mobile-page .pagination .page-btn,
  .akuntansi-mobile-page .pagination button {
    color: #94a3b8;
    background: transparent;
    border-color: #2a2d30;
  }

  .akuntansi-mobile-page .pagination .page-btn.active,
  .akuntansi-mobile-page .pagination button.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }
}

/* Desktop visual refinement for Akuntansi. Dimensions and layout are inherited. */
@media (min-width: 768px) {
  .akuntansi-mobile-page {
    color-scheme: dark;
    background: #0b0d0e;
    color: #e6edf3;
  }

  .akuntansi-mobile-page .neraca,
  .akuntansi-mobile-page .kas,
  .akuntansi-mobile-page .jurnal_umum,
  .akuntansi-mobile-page .jurnal_footer {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .akuntansi-mobile-page h2 {
    color: #ffd08a;
    letter-spacing: .025em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  }

  .akuntansi-mobile-page table {
    background: #0d1011;
    border-color: #514532;
  }

  .akuntansi-mobile-page th {
    color: #f0d4b4;
    background: #24282a;
    border-color: #514532;
    box-shadow: inset 0 -1px 0 rgba(245, 158, 11, .18);
  }

  .akuntansi-mobile-page td {
    color: #dce5eb;
    background: #0d1011;
    border-color: #30383b;
  }

  .akuntansi-mobile-page tbody tr:hover td {
    background: #161f24;
    color: #fff4df;
  }

  .akuntansi-mobile-page #kas_title_container .btn {
    color: #d9c7b2;
    background: #24282a;
    border-color: #514532;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
  }

  .akuntansi-mobile-page #kas_title_container .btn:hover,
  .akuntansi-mobile-page #kas_title_container .btn:focus-visible {
    color: #fff1d2;
    background: #3b301e;
    border-color: #f59e0b;
  }

  .akuntansi-mobile-page #kas_title_container .show_cash {
    color: #251600;
    background: #f59e0b;
    border-color: #ffc15c;
    box-shadow: 0 2px 10px rgba(245, 158, 11, .18);
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input,
  .akuntansi-mobile-page #jurnal_umum_input_table input {
    color: #e6edf3;
    background: #0a0d0e;
    border-color: #514532;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container input::placeholder,
  .akuntansi-mobile-page #jurnal_umum_input_table input::placeholder {
    color: #7f8b92;
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .16);
  }

  .akuntansi-mobile-page .jurnal_umum > .search_container button:nth-of-type(n + 2) {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
  }

  .akuntansi-mobile-page .kredit-list,
  .akuntansi-mobile-page .debit-list {
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  }

  .akuntansi-mobile-page .kredit-list div:hover,
  .akuntansi-mobile-page .debit-list div:hover,
  .akuntansi-mobile-page .kredit-list div.active,
  .akuntansi-mobile-page .debit-list div.active {
    color: #062232;
    background: #89ceff;
  }

  .akuntansi-mobile-page .jurnal_footer > div > div {
    background: #0d1011;
    border-color: #514532;
  }

  .akuntansi-mobile-page .jurnal_footer label {
    color: #d6c1a6;
  }

  .akuntansi-mobile-page .jurnal_footer input {
    color: #ffd08a;
  }

  .akuntansi-mobile-page .pagination,
  .akuntansi-mobile-page #pagination_kas,
  .akuntansi-mobile-page #pagination_jurnal_umum {
    color: #9baab4;
    background: #101415;
    border-color: #2f393e;
  }

  .akuntansi-mobile-page .pagination .page-btn:hover,
  .akuntansi-mobile-page .pagination button:hover {
    color: #fff1d2;
    background: #283238;
    border-color: #f59e0b;
  }
}

/* Final cascade for Retur Penjualan desktop colors. */
@media (min-width: 768px) {
  .maju-retur-page {
    color: #e6edf3;
    background: #0b0d0e;
    margin: 0px;
  }

  .maju-retur-page .mobile-retur-title {
    margin: 0px;
    text-align: left;
  }

  .maju-retur-page > section,
  .maju-retur-page .table-section,
  .maju-retur-page .total-section {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-retur-page label,
  .maju-retur-page .label {
    color: #d6c1a6;
  }

  .maju-retur-page input,
  .maju-retur-page select,
  .maju-retur-page textarea {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .maju-retur-page table {
    color: #dce5eb;
    background: #0d1011;
    border-color: #514532;
  }

  .maju-retur-page th {
    color: #f0d4b4;
    background: #24282a;
    border-color: #514532;
  }

  .maju-retur-page td {
    color: #dce5eb;
    background: #0d1011;
    border-color: #30383b;
  }

  .maju-retur-page tbody tr:hover td {
    color: #fff4df;
    background: #161f24;
  }

  .maju-retur-page .search_results,
  .maju-retur-page .ket-list {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  }

  .maju-retur-page .suggestion-item_customer,
  .maju-retur-page .suggestion-item_barang,
  .maju-retur-page .ket-list div {
    color: #e5e7eb;
    background: #121719;
    border-bottom-color: #2f393e;
  }

  .maju-retur-page .suggestion-item_customer:hover,
  .maju-retur-page .suggestion-item_customer.active,
  .maju-retur-page .suggestion-item_barang:hover,
  .maju-retur-page .suggestion-item_barang.active,
  .maju-retur-page .ket-list div:hover,
  .maju-retur-page .ket-list div.active {
    color: #062232;
    background: #89ceff;
    border-left-color: #f59e0b;
  }

  .maju-retur-page .judul_tabel h3,
  .maju-retur-page .total-section h2 {
    color: #ffd08a;
  }

  .maju-retur-page .btn.green,
  .maju-retur-page #simpan_retur,
  .maju-retur-page #keranjang {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }

  .maju-retur-page .btn.blue,
  .maju-retur-page #clear,
  .maju-retur-page #edit_button {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
  }

  .maju-retur-page .btn.gray,
  .maju-retur-page #cancel_button {
    color: #e6edf3;
    background: #3a4449;
    border-color: #718089;
  }

  .maju-retur-page .btn.red,
  .maju-retur-page #hapus_button {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }
}

/* Desktop visual refinement for Master Customer. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .maju-customer-page {
    color-scheme: dark;
    color: #e6edf3;
    background: #0b0d0e;
  }

  .maju-customer-page .customer-mobile-header {
    background: transparent;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-customer-page .form-section {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    padding: 20px;
    border-radius: 20px;
  }

  .maju-customer-page .button-group {
    background: transparent;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-customer-page .customer-mobile-header h1,
  .maju-customer-page .form-section::before {
    color: #ffd08a;
  }

  .maju-customer-page .customer-mobile-header span {
    color: #89ceff;
  }

  .maju-customer-page label,
  .maju-customer-page .label {
    color: #d6c1a6;
  }

  .maju-customer-page input,
  .maju-customer-page select,
  .maju-customer-page textarea {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .maju-customer-page input::placeholder,
  .maju-customer-page textarea::placeholder {
    color: #7f8b92;
  }

  .maju-customer-page input:focus,
  .maju-customer-page select:focus,
  .maju-customer-page textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .maju-customer-page #tgl_masuk,
  .maju-customer-page #tgl_edit,
  .maju-customer-page #id {
    color: #ffc174;
    background: #15191b;
  }

  .maju-customer-page .search_results {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  }

  .maju-customer-page .suggestion-item {
    color: #e5e7eb;
    background: #121719;
    border-bottom-color: #2f393e;
  }

  .maju-customer-page .suggestion-item:hover,
  .maju-customer-page .suggestion-item.active {
    color: #062232;
    background: #89ceff;
    border-left-color: #f59e0b;
  }

  .maju-customer-page .button-group .btn {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
    padding: 2px;
  }

  .maju-customer-page .button-group .btn:hover,
  .maju-customer-page .button-group .btn:focus-visible {
    filter: brightness(1.12);
  }

  .maju-customer-page .button-group #keluar {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }

  .maju-customer-page .button-group #tambah {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
    box-shadow: 0 2px 9px rgba(245, 158, 11, .16);
  }

  .maju-customer-page .customer-btn-icon {
    color: inherit;
  }
}

/* Desktop visual refinement for Master Supplier. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .maju-supplier-page {
    color-scheme: dark;
    color: #e6edf3;
    background: #0b0d0e;
  }

  .maju-supplier-page .supplier-mobile-header {
    background: transparent;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-supplier-page .form-section,
  .maju-supplier-page .button-group {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    padding: 20px;
    border-radius: 20px;
  }

  .maju-supplier-page .button-group {
    margin: 0px;
    padding: 30px 0 20px;
    background-color: transparent;
  }

  .maju-supplier-page .supplier-mobile-header h1,
  .maju-supplier-page .form-section::before {
    color: #ffd08a;
  }

  .maju-supplier-page .supplier-mobile-header span {
    color: #89ceff;
  }

  .maju-supplier-page label,
  .maju-supplier-page .label {
    color: #d6c1a6;
  }

  .maju-supplier-page input,
  .maju-supplier-page select,
  .maju-supplier-page textarea {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .maju-supplier-page input::placeholder,
  .maju-supplier-page textarea::placeholder {
    color: #7f8b92;
  }

  .maju-supplier-page input:focus,
  .maju-supplier-page select:focus,
  .maju-supplier-page textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .maju-supplier-page #tgl_masuk,
  .maju-supplier-page #tgl_edit,
  .maju-supplier-page #id {
    color: #ffc174;
    background: #15191b;
  }

  .maju-supplier-page #ppn {
    accent-color: #f59e0b;
  }

  .maju-supplier-page .search_results {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  }

  .maju-supplier-page .suggestion-item {
    color: #e5e7eb;
    background: #121719;
    border-bottom-color: #2f393e;
  }

  .maju-supplier-page .suggestion-item:hover,
  .maju-supplier-page .suggestion-item.active {
    color: #062232;
    background: #89ceff;
    border-left-color: #f59e0b;
  }

  .maju-supplier-page .button-group .btn {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
  }

  .maju-supplier-page .button-group .btn:hover,
  .maju-supplier-page .button-group .btn:focus-visible {
    filter: brightness(1.12);
  }

  .maju-supplier-page .button-group #keluar,
  .maju-supplier-page .button-group #hapus {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }

  .maju-supplier-page .button-group #tambah {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
    box-shadow: 0 2px 9px rgba(245, 158, 11, .16);
  }
}

/* Desktop visual refinement for Master Item. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .item-save-page {
    color-scheme: dark;
    color: #e6edf3;
    background: #0b0d0e;
    margin: auto;
  }

  .item-save-page #formData > .section-box,
  .item-save-page .item-stock-section {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .item-save-page .mobile-item-title,
  .item-save-page .section-title,
  .item-save-page #formData > .section-box::before {
    color: #ffd08a;
  }

  .item-save-page .mobile-item-source {
    color: #89ceff;
  }

  .item-save-page label,
  .item-save-page .label,
  .item-save-page .item-stock-section p {
    color: #d6c1a6;
  }

  .item-save-page .form-control,
  .item-save-page input,
  .item-save-page select,
  .item-save-page textarea {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .item-save-page input::placeholder,
  .item-save-page textarea::placeholder {
    color: #7f8b92;
  }

  .item-save-page input:focus,
  .item-save-page .form-control:focus,
  .item-save-page select:focus,
  .item-save-page textarea:focus {
    color: #f6fbff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .item-save-page input[readonly] {
    color: #ffc174;
    background: #15191b;
  }

  .item-save-page .blue-input,
  .item-save-page #barcode,
  .item-save-page #barcode1 {
    background: #0b0e0f;
    border-color: #514532;
  }

  .item-save-page .search_results,
  .item-save-page .modal-content,
  .item-save-page .flowStok,
  .item-save-page .product_flow_container,
  .item-save-page .resi_content {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  }

  .item-save-page .suggestion-item,
  .item-save-page .suggestion-item_supplier {
    color: #e5e7eb;
    background: #1f2f35;
    border-bottom-color: #2f393e;
  }

  .item-save-page .suggestion-barang-global {
    color: #e5e7eb;
    background: #121719;
    border-bottom-color: #2f393e;
  }

  .item-save-page .suggestion-item:hover,
  .item-save-page .suggestion-item.active,
  .item-save-page .suggestion-item_supplier:hover,
  .item-save-page .suggestion-item_supplier.active,
  .item-save-page .suggestion-barang-global:hover,
  .item-save-page .suggestion-barang-global.active,
  .item-save-page .item-highlight.active {
    color: #062232;
    background: #89ceff;
    border-left-color: #f59e0b;
  }

  .item-save-page .item-stock-section .btn-secondary,
  .item-save-page .item-stock-section #clear {
    color: #dcecf5;
    background: #3a4449;
    border-color: #718089;
  }

  .item-save-page .item-stock-section #tambah,
  .item-save-page .item-stock-section #cek_in {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }

  .item-save-page .item-stock-section #hapus,
  .item-save-page .item-stock-section #cek_out {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }

  .item-save-page .item-stock-section #edit,
  .item-save-page .item-stock-section #edit_global {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
  }

  .item-save-page .item-stock-section .btn:hover,
  .item-save-page .item-stock-section .btn:focus-visible,
  .item-save-page #barcode-container:hover {
    filter: brightness(1.1);
  }

  .item-save-page .pagination,
  .item-save-page .page-btn {
    color: #9baab4;
    background: #101415;
    border-color: #2f393e;
  }

  .item-save-page .pagination .page-btn.active,
  .item-save-page .pagination button.active {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }

  .item-save-page .modal {
    background: rgba(0, 0, 0, .78);
  }

  .item-save-page .modal-content h2 {
    color: #ffd08a;
  }

  .item-save-page #barcodeModalContent .btn-success,
  .item-save-page #print1,
  .item-save-page #print6,
  .item-save-page #print12,
  .item-save-page #print24,
  .item-save-page #print_any {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }
}

/* Desktop visual refinement for Penjualan. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .maju-penjualan {
    color-scheme: dark;
    color: #e6edf3;
    background: #0b0d0e;
    margin: 0px;
  }

  .maju-penjualan > section,
  .maju-penjualan .table-section,
  .maju-penjualan .total-section {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-penjualan .mobile-penjualan-title {
    text-align: left;
    margin: 0px;
  }

  .maju-penjualan .mobile-penjualan-title,
  .maju-penjualan .judul_tabel h3,
  .maju-penjualan .total-section h2 {
    color: #ffd08a;
  }

  .maju-penjualan label {
    color: #d6c1a6;
  }

  .maju-penjualan input,
  .maju-penjualan select,
  .maju-penjualan textarea {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .maju-penjualan input::placeholder,
  .maju-penjualan textarea::placeholder {
    color: #7f8b92;
  }

  .maju-penjualan input:focus,
  .maju-penjualan select:focus,
  .maju-penjualan textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .maju-penjualan input[readonly] {
    color: #ffc174;
    background: #15191b;
  }

  .maju-penjualan .barcode-input-row .mobile-scan-trigger {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }

  .maju-penjualan .search_results,
  .maju-penjualan .ket-list {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  }

  .maju-penjualan .suggestion-item_customer,
  .maju-penjualan .suggestion-item_barang,
  .maju-penjualan .ket-list div {
    color: #e5e7eb;
    background: #121719;
    border-bottom-color: #2f393e;
  }

  .maju-penjualan .suggestion-item_customer:hover,
  .maju-penjualan .suggestion-item_customer.active,
  .maju-penjualan .suggestion-item_barang:hover,
  .maju-penjualan .suggestion-item_barang.active,
  .maju-penjualan .ket-list div:hover,
  .maju-penjualan .ket-list div.active {
    color: #062232;
    background: #89ceff;
    border-left-color: #f59e0b;
  }

  .maju-penjualan table {
    color: #dce5eb;
    background: #0d1011;
    border-color: #514532;
  }

  .maju-penjualan th {
    color: #f0d4b4;
    background: #24282a;
    border-color: #514532;
  }

  .maju-penjualan td {
    color: #dce5eb;
    background: #0d1011;
    border-color: #30383b;
  }

  .maju-penjualan tbody tr:hover td {
    color: #fff4df;
    background: #161f24;
  }

  .maju-penjualan .btn.green,
  .maju-penjualan #simpan_penjualan,
  .maju-penjualan #keranjang {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }

  .maju-penjualan .btn.blue,
  .maju-penjualan #clear,
  .maju-penjualan #edit_button {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
  }

  .maju-penjualan .btn.gray,
  .maju-penjualan #cancel_button {
    color: #e6edf3;
    background: #3a4449;
    border-color: #718089;
  }

  .maju-penjualan .btn.red,
  .maju-penjualan #hapus_button {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }

  .maju-penjualan .btn:hover,
  .maju-penjualan .btn:focus-visible,
  .maju-penjualan .mobile-scan-trigger:hover,
  .maju-penjualan .mobile-scan-trigger:focus-visible {
    filter: brightness(1.12);
  }
}

/* Desktop visual refinement for Pembelian. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .maju-pembelian {
    color-scheme: dark;
    color: #e6edf3;
    background: #0b0d0e;
    margin: 0px;
  }

  .maju-pembelian > section,
  .maju-pembelian .table-section,
  .maju-pembelian .total-section {
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-pembelian .mobile-pembelian-title,
  .maju-pembelian .judul_tabel h3,
  .maju-pembelian .total-section h2 {
    color: #ffd08a;
  }

  .maju-pembelian label {
    color: #d6c1a6;
  }

  .maju-pembelian input,
  .maju-pembelian select,
  .maju-pembelian textarea {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .maju-pembelian input::placeholder,
  .maju-pembelian textarea::placeholder {
    color: #7f8b92;
  }

  .maju-pembelian input:focus,
  .maju-pembelian select:focus,
  .maju-pembelian textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .maju-pembelian input[readonly] {
    color: #ffc174;
    background: #15191b;
  }

  .maju-pembelian #ppn {
    accent-color: #f59e0b;
  }

  .maju-pembelian .search_results,
  .maju-pembelian .ket-list,
  .maju-pembelian .disc_sum {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  }

  .maju-pembelian .suggestion-item_supplier,
  .maju-pembelian .suggestion-item_barang,
  .maju-pembelian .ket-list div {
    color: #e5e7eb;
    background: #121719;
    border-bottom-color: #2f393e;
  }

  .maju-pembelian .suggestion-item_supplier:hover,
  .maju-pembelian .suggestion-item_supplier.active,
  .maju-pembelian .suggestion-item_barang:hover,
  .maju-pembelian .suggestion-item_barang.active,
  .maju-pembelian .ket-list div:hover,
  .maju-pembelian .ket-list div.active {
    color: #062232;
    background: #89ceff;
    border-left-color: #f59e0b;
  }

  .maju-pembelian table {
    color: #dce5eb;
    background: #0d1011;
    border-color: #514532;
  }

  .maju-pembelian th {
    color: #f0d4b4;
    background: #24282a;
    border-color: #514532;
  }

  .maju-pembelian td {
    color: #dce5eb;
    background: #0d1011;
    border-color: #30383b;
  }

  .maju-pembelian tbody tr:hover td {
    color: #fff4df;
    background: #161f24;
  }

  .maju-pembelian #disc_button,
  .maju-pembelian #keranjang,
  .maju-pembelian #lunas {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }

  .maju-pembelian #belum_lunas,
  .maju-pembelian #clear,
  .maju-pembelian .btn.gray,
  .maju-pembelian #cancel_button {
    color: #e6edf3;
    background: #3a4449;
    border-color: #718089;
  }

  .maju-pembelian .btn.blue,
  .maju-pembelian #edit_button {
    color: #00283a;
    background: #78c6f5;
    border-color: #a5ddff;
  }

  .maju-pembelian .btn.red,
  .maju-pembelian #hapus_button {
    color: #ffdad6;
    background: #93000a;
    border-color: #ffb4ab;
  }

  .maju-pembelian .btn:hover,
  .maju-pembelian .btn:focus-visible,
  .maju-pembelian #disc_button:hover,
  .maju-pembelian #disc_button:focus-visible {
    filter: brightness(1.12);
  }

  .maju-pembelian + #tambahBarangModal {
    background: rgba(0, 0, 0, .78);
  }

  .maju-pembelian + #tambahBarangModal .modal-content {
    color: #e6edf3;
    background: #1a2023;
    border-color: #64727a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  }

  .maju-pembelian + #tambahBarangModal .modalTitle,
  .maju-pembelian + #tambahBarangModal .modalSubTitle {
    color: #ffd08a;
  }

  .maju-pembelian + #tambahBarangModal #tambah_barang {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }
}

/* Desktop visual refinement for Dashboard. Dimensions and layout remain inherited. */
@media (min-width: 768px) {
  .maju-dashboard-date,
  .maju-dashboard {
    color-scheme: dark;
    color: #e6edf3;
    background: #0b0d0e;
  }

  .maju-dashboard-date {
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .mobile-dashboard-section-title,
  .mobile-dashboard-summary-heading {
    color: #ffd08a;
  }

  .mobile-dashboard-section-title .material-symbols-outlined {
    color: #f59e0b;
  }

  .mobile-dashboard-summary-heading small {
    color: #89ceff;
  }

  .maju-dashboard-date .date_fields input,
  .maju-dashboard-date .date {
    color: #e6edf3;
    background: #0b0e0f;
    border-color: #514532;
  }

  .maju-dashboard-date .date_fields p {
    color: #d6c1a6;
  }

  .maju-dashboard-date input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
  }

  .maju-dashboard .card {
    color: #e6edf3;
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-dashboard .card h4 {
    color: #d6c1a6;
  }

  .maju-dashboard .card h2 {
    color: #ffd08a;
  }

  .maju-dashboard .card:first-child,
  .maju-dashboard .card:first-child h2 {
    color: #f59e0b;
    border-color: #f59e0b;
  }

  .maju-dashboard .dashboard-card-label .material-symbols-outlined {
    color: #89ceff;
  }

  .maju-dashboard .card:first-child .dashboard-card-label .material-symbols-outlined {
    color: #f59e0b;
  }

  .maju-dashboard .chart,
  .maju-dashboard .stock,
  .maju-dashboard .produk,
  .maju-dashboard .aktivitas {
    color: #e6edf3;
    background: #151819;
    border-color: #2f3538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  }

  .maju-dashboard h3 {
    color: #ffd08a;
    border-bottom-color: #3b4448;
  }

  .maju-dashboard h3 .material-symbols-outlined {
    color: #f59e0b;
  }

  .maju-dashboard .stock h3 .material-symbols-outlined {
    color: #ffc174;
  }

  .maju-dashboard .produk h3 .material-symbols-outlined {
    color: #89ceff;
  }

  .maju-dashboard .aktivitas h3 .material-symbols-outlined {
    color: #56e5a9;
  }

  .maju-dashboard .fake-chart {
    background: #0d1011;
    border-color: #30383b;
  }

  .maju-dashboard .dashboard_table {
    color: #dce5eb;
    background: #0d1011;
    border-color: #514532;
  }

  .maju-dashboard .dashboard_table th {
    color: #f0d4b4;
    background: #24282a;
    border-color: #514532;
  }

  .maju-dashboard .dashboard_table td {
    color: #dce5eb;
    background: #0d1011;
    border-color: #30383b;
  }

  .maju-dashboard .dashboard_table tbody tr:hover td {
    color: #fff4df;
    background: #161f24;
  }

  .maju-dashboard .pagination {
    color: #9baab4;
    background: #101415;
    border-color: #2f393e;
  }

  .maju-dashboard .pagination .page-btn,
  .maju-dashboard .pagination button {
    color: #9baab4;
    background: transparent;
    border-color: #2f393e;
  }

  .maju-dashboard .pagination .page-btn.active,
  .maju-dashboard .pagination button.active {
    color: #241600;
    background: #f59e0b;
    border-color: #ffc15c;
  }
}

/* Desktop visual refinement for the Maju application shell (index.php).
   Colors, borders, typography color, and elevation only; geometry is inherited. */
@media (min-width: 768px) {
  body.maju-index-page {
    background: #0b0d0e;
    color: #e2e2e3;
  }

  body.maju-index-page .app {
    background: #0b0d0e;
  }

  body.maju-index-page .sidebar {
    background: #171a1c;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
  }

  body.maju-index-page .logo {
    color: #f8fafc;
  }

  body.maju-index-page .logo span {
    color: #fbbf24;
  }

  body.maju-index-page .sidebar nav a {
    color: #a9b3ba;
    background: transparent;
  }

  body.maju-index-page .sidebar nav a:hover {
    color: #fff4df;
    background: #242b2f;
  }

  body.maju-index-page .sidebar nav a:active {
    color: #241600;
    background: #f59e0b;
  }

  body.maju-index-page .sidebar nav a.logout {
    color: #ffb4ab;
    background: #2a181a;
  }

  body.maju-index-page .sidebar nav a.logout:hover {
    color: #241600;
    background: #f59e0b;
  }

  body.maju-index-page .main-content {
    background: #0b0d0e;
    color: #e2e2e3;
  }

  body.maju-index-page .main-content > .topbar {
    color: #d8c3ad;
  }

  body.maju-index-page .main-content > .topbar .greeting {
    color: #f0d4b4;
  }

  body.maju-index-page .main-content > .topbar .datetime {
    color: #91a2ad;
  }

  body.maju-index-page .arsip_title {
    color: #ffc15c;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

  body.maju-index-page #content {
    color: #e2e2e3;
  }

  body.maju-index-page > .app_footer {
    color: #c7b7a6;
    background: #131516;
    border-top-color: #30383b;
  }

  body.maju-index-page > .app_footer .app_footer_name {
    color: #ffc174;
  }

  body.maju-index-page > .app_footer .app_footer_copyright,
  body.maju-index-page > .app_footer .app_footer_email,
  body.maju-index-page > .app_footer .app_footer_phone,
  body.maju-index-page > .app_footer .app_terms,
  body.maju-index-page > .app_footer .app_privacy {
    color: #a9b3ba;
  }

  body.maju-index-page > .app_footer .app_terms:hover,
  body.maju-index-page > .app_footer .app_privacy:hover {
    color: #ffc174;
  }
}

/* Final mobile cascade for Hutang Supplier. */
@media (max-width: 767px) {
  html body:has(.maju-hutang-page) {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0c0e0f;
    color: #e2e2e3;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page {
    display: flex;
    flex-direction: column;
    width: calc(100% - 16px);
    min-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 0 12px 12px;
    box-sizing: border-box;
    overflow: visible;
    background: #121415;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 48px;
    gap: 8px;
    margin: 0 -12px 12px;
    padding: 0 12px;
    box-sizing: border-box;
    background: rgba(18, 20, 21, .98);
    border-bottom: 1px solid #2a2d30;
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header h1 {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #f8fafc;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .045em;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header h1::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 9px;
    height: 9px;
    background: #f59e0b;
    border-radius: 2px;
    content: "";
  }

  html body:has(.maju-hutang-page) .hutang-mobile-header span {
    padding: 4px 7px;
    color: #94a3b8;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page > .search_container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    align-items: end;
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 10px;
    box-sizing: border-box;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page > .search_container::before {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 6px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(42, 45, 48, .7);
    content: "PENCARIAN SUPPLIER";
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: .08em;
  }

  html body:has(.maju-hutang-page) .maju-hutang-page .search-container {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  html body:has(.maju-hutang-page) #search_box {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 9px 10px;
    box-sizing: border-box;
    color: #f1f5f9;
    background: #0e1011;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
  }

  html body:has(.maju-hutang-page) #search_hutang {
    width: 72px;
    height: 40px;
    margin: 0;
    padding: 0;
    color: #181a1b;
    background: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #search_results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 20;
    overflow: hidden;
    background: #0c0e0f;
    border: 1px solid #2a2d30;
    border-radius: 3px;
  }

  html body:has(.maju-hutang-page) #search_results:empty {
    display: none;
  }

  html body:has(.maju-hutang-page) .hutang-table-scroll {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    overflow: auto;
    background: #16181a;
    border: 1px solid #2a2d30;
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
  }

  html body:has(.maju-hutang-page) .hutang-table-scroll::before {
    display: block;
    flex: 0 0 34px;
    padding: 9px 10px;
    box-sizing: border-box;
    color: #cbd5e1;
    background: #141618;
    border-bottom: 1px solid #2a2d30;
    content: "▦  DATA MATRIX HUTANG   GESER HORIZONTAL · TAP BARIS";
    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
    letter-spacing: .05em;
    white-space: nowrap;
  }

  html body:has(.maju-hutang-page) #hutangTable {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #dbe4ee;
    background: #101213;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
  }

  html body:has(.maju-hutang-page) #hutangTable th,
  html body:has(.maju-hutang-page) #hutangTable td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(42, 45, 48, .5);
    white-space: nowrap;
  }

  html body:has(.maju-hutang-page) #hutangTable th {
    height: 36px;
    color: #94a3b8;
    background: #101213;
    border-top: 1px solid #2a2d30;
    border-right: 1px solid #2a2d30;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #hutangTable td {
    height: 36px;
    color: #dbe4ee;
    background: #101213;
    border-right: 1px solid #202629;
  }

  html body:has(.maju-hutang-page) #hutangTable tbody tr:hover td {
    color: #fff4df;
    background: #161f24;
  }

  html body:has(.maju-hutang-page) #pagination_hutang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 8px 0 0;
    padding: 4px;
    box-sizing: border-box;
    overflow-x: auto;
    background: #111314;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-hutang-page) #pagination_hutang .page-btn {
    min-width: 30px;
    min-height: 26px;
    padding: 0 7px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #2a2d30;
    border-radius: 3px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
  }

  html body:has(.maju-hutang-page) #pagination_hutang .page-btn.active {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  html body:has(.maju-hutang-page) #hutangModal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, .8);
  }

  html body:has(.maju-hutang-page) #hutangModalContent {
    width: 100%;
    max-width: 390px;
    max-height: 92vh;
    margin: 0;
    padding: 14px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #e2e2e3;
    background: #121415;
    border: 1px solid #2a2d30;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
  }

  html body:has(.maju-hutang-page) #closeModal {
    color: #94a3b8;
    background: #101213;
    border: 1px solid #2a2d30;
    border-radius: 4px;
  }

  html body:has(.maju-hutang-page) #modalTitle {
    color: #f8fafc;
    border-bottom-color: #2a2d30;
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #totalHutang,
  html body:has(.maju-hutang-page) #pembayaranTable,
  html body:has(.maju-hutang-page) #pembelianTable {
    color: #dbe4ee;
    background: #101213;
    border-color: #2a2d30;
    font-family: "JetBrains Mono", monospace;
  }

  html body:has(.maju-hutang-page) #totalHutang th,
  html body:has(.maju-hutang-page) #pembayaranTable th,
  html body:has(.maju-hutang-page) #pembelianTable th {
    color: #94a3b8;
    background: #16181a;
    border-color: #2a2d30;
    text-transform: uppercase;
  }

  html body:has(.maju-hutang-page) #totalHutang td,
  html body:has(.maju-hutang-page) #pembayaranTable td,
  html body:has(.maju-hutang-page) #pembelianTable td {
    color: #dbe4ee;
    background: #101213;
    border-color: #2a2d30;
  }

  html body:has(.maju-hutang-page) #nominal_bayar,
  html body:has(.maju-hutang-page) #ket {
    color: #f1f5f9;
    background: #0e1011;
    border-color: #2a2d30;
  }

  html body:has(.maju-hutang-page) #btnBayar {
    color: #181a1b;
    background: #f59e0b;
    border-color: #f59e0b;
  }

  html body:has(.maju-hutang-page) #btnLunas {
    color: #042f20;
    background: #10b981;
    border-color: #10b981;
  }

  html body:has(.maju-hutang-page) #switchTable {
    color: #38bdf8;
    background: #141b20;
    border-color: #0ea5e9;
  }
}

/* Keep mobile rekap table headers and cells in one native table grid. */
@media (max-width: 767px) {
  .rekap-penjualan-page .rekap-table-scroll {
    overflow-x: auto;
    overflow-y: auto;
  }

  .rekap-penjualan-page #rekapPenjualanTable,
  .rekap-penjualan-page #rekapPembelianTable {
    display: table;
    width: max-content;
    min-width: max-content;
    table-layout: auto;
  }

  .rekap-penjualan-page #rekapPenjualanTable thead,
  .rekap-penjualan-page #rekapPembelianTable thead {
    display: table-header-group;
  }

  .rekap-penjualan-page #rekapPenjualanTable tbody,
  .rekap-penjualan-page #rekapPembelianTable tbody {
    display: table-row-group;
    max-height: none;
    overflow: visible;
  }

  .rekap-penjualan-page #rekapPenjualanTable thead tr,
  .rekap-penjualan-page #rekapPenjualanTable tbody tr,
  .rekap-penjualan-page #rekapPembelianTable thead tr,
  .rekap-penjualan-page #rekapPembelianTable tbody tr {
    display: table-row;
    width: auto;
  }

  .rekap-penjualan-page #rekapPenjualanTable th,
  .rekap-penjualan-page #rekapPenjualanTable td,
  .rekap-penjualan-page #rekapPembelianTable th,
  .rekap-penjualan-page #rekapPembelianTable td {
    display: table-cell;
    box-sizing: border-box;
    white-space: nowrap;
  }

  html body:has(.rekap-pembelian-page) #rekapPembelianTable {
    display: table;
    width: max-content;
    min-width: max-content;
    table-layout: auto;
  }

  html body:has(.rekap-pembelian-page) #rekapPembelianTable thead {
    display: table-header-group;
  }

  html body:has(.rekap-pembelian-page) #rekapPembelianTable tbody {
    display: table-row-group;
    max-height: none;
    overflow: visible;
  }

  html body:has(.rekap-pembelian-page) #rekapPembelianTable thead tr,
  html body:has(.rekap-pembelian-page) #rekapPembelianTable tbody tr {
    display: table-row;
    width: auto;
  }

  html body:has(.rekap-pembelian-page) #rekapPembelianTable th,
  html body:has(.rekap-pembelian-page) #rekapPembelianTable td {
    display: table-cell;
    box-sizing: border-box;
    white-space: nowrap;
  }
}
