/* =========================================================
   ROOT & GLOBAL
   ========================================================= */
:root {
    --pos-bg: #f3f4f6;

    /* POS */
    --pos-primary: #06b6d4;
    --pos-primary-soft: #e0fbff;
    --pos-card-bg: #ffffff;
    --pos-border: #e5e7eb;
    --pos-radius-lg: 22px;
}

/* Global body */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--pos-bg);
}

/* =========================================================
   NAVBAR PILL STYLE (GREETING + USER DROPDOWN)
   ========================================================= */

/* Bar navbar di area admin */
.navbar-pos {
    border-bottom: none;
    box-shadow: none;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: transparent;
}

/* Container navbar di dalam halaman admin */
.nav-shell {
    width: 100%;
}

/* Pill putih di tengah */
.nav-shell-inner {
    width: 100%;
    max-width: 1960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Kalau ada logo bulat kiri (untuk layout lain) */
.nav-brand-pill {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 1.2rem;
}

.navbar-pos .navbar-brand {
    margin-right: 0.25rem;
}

/* Search di navbar (kalau dipakai di halaman lain) */
.nav-search {
    flex: 0 0 260px;
    max-width: 260px;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.nav-search-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0;
    font-size: 0.875rem;
}

.nav-search-input::placeholder {
    color: #9ca3af;
}

/* nav-main override collapse bootstrap supaya selalu kelihatan */
.navbar-pos .nav-main {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: end;
}

/* Menu tengah (untuk tab menu top kalau dipakai) */
.nav-center {
    flex: 1;
    justify-content: center;
    gap: 1.5rem;
}

.nav-link-pill {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.nav-link-pill.active,
.nav-link-pill:hover {
    color: #2563eb;
}

.nav-link-pill.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.35rem;
    width: 20px;
    height: 2px;
    border-radius: 14px;
    background: #2563eb;
}

/* Icon kanan */
.nav-right .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    border: none;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    padding: 0;
}

.nav-right .icon-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Avatar kecil (inisial user) di kanan */
.user-avatar-trigger-small {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 991.98px) {
    .nav-shell-inner {
        max-width: 100%;
        border-radius: 24px;
        padding-inline: 0.9rem;
        flex-wrap: wrap;
    }

    .navbar-pos .nav-main {
        justify-content: flex-end;
    }

    .nav-search {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .nav-right .icon-btn {
        width: 28px;
        height: 28px;
    }

    .nav-shell-inner {
        border-radius: 14px;
    }
}

/* =========================================================
   USER DROPDOWN CARD
   ========================================================= */

.navbar-pos .dropdown-user {
    position: relative;
}

/* Dropdown wrapper */
.navbar-pos .dropdown-user .dropdown-menu.user-dropdown {
    min-width: 260px;
    border-radius: 14px;
    background: #ffffff;
    position: absolute;
    top: calc(100% + 10px);  /* muncul di bawah avatar */
    right: -12px;
    margin-top: 0;
    z-index: 1050;
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(148, 163, 184, 0.12);
    padding: 0;
    overflow: hidden;
}

/* Arrow kecil di atas card */
.navbar-pos .dropdown-user .dropdown-menu.user-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(15, 23, 42, 0.06);
}

/* Header dropdown */
.user-dropdown-header {
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
}

.user-dropdown-header .user-avatar-lg {
    width: 42px;
    height: 42px;
    background: #f59e0b;
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
}

/* Item menu */
.user-menu-item {
    display: flex;
    align-items: center;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
}

.user-menu-item i {
    font-size: 1rem;
    color: #9ca3af;
}

.user-menu-item:hover,
.user-menu-item:focus {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Footer logout */
.user-logout-btn {
    border-radius: 14px;
    padding-block: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    width: 100%;
}

.user-logout-btn:hover {
    background: #020617;
    border-color: #020617;
    color: #ffffff;
}

/* =========================================================
   LAYOUT WRAPPER
   ========================================================= */

main.pos-main-wrapper {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* =========================================================
   ADMIN LIST (DATATABLES)
   ========================================================= */

/* Ruang kanan (konten) */
.admin-page {
    width: 100%;
    margin: 0;
    /* padding: 0 1.5rem 2rem; */
}

/* =========================================================
   SIDEBAR KIRI GLOBAL (POS / ADMIN)
   ========================================================= */

.pos-wrapper {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

/* Sidebar dasar (desktop / tablet) */
.pos-sidebar {
    flex: 0 0 76px;
    max-width: 76px;
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 0.5rem 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: space-between; */
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    z-index: 1040;
}

/* Logo bulat "POS" */
.pos-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

/* Nav tombol ikon */
.pos-sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.pos-sidebar-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
    background: transparent;
    color: #64748b;
    transition:
        background .15s ease,
        color .15s ease,
        box-shadow .15s ease,
        transform .12s ease;
}

.pos-sidebar-btn i {
    font-size: 1.35rem;
}

.pos-sidebar-btn:hover {
    background: #e0f2fe;
    color: #2563eb;
    transform: translateY(-1px);
}

.pos-sidebar-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.45);
}

/* =========================================================
   ADMIN LIST (DATATABLES)
   ========================================================= */

/* Biar navbar greeting, header, dan card punya lebar sama & center */
.admin-page .nav-shell,
.admin-header,
.admin-card {
    max-width: 1960px;
    margin-left: auto;
    margin-right: auto;
}

/* Header judul + tombol */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
}

.admin-subtitle {
    font-size: .85rem;
    color: #9ca3af;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* search kanan atas (kalau dipakai) */
.admin-search {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: #f3f4f6;
    border-radius: 14px;
    padding: .4rem .75rem;
    border: 1px solid #e5e7eb;
}

.admin-search i {
    font-size: 1rem;
    color: #9ca3af;
}

.admin-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: .85rem;
}

/* tombol hijau Add */
/* .btn-admin-primary {
    border-radius: 14px;
    background: #10b981;
    border: none;
    padding: .45rem 1.1rem;
    color: #ffffff !important;
    font-size: .85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, .35);
    text-decoration: none;
}

.btn-admin-primary:hover {
    background: #059669;
    color: #ffffff;
} */

/* BARIS SEARCH + BUTTON (desktop base) */
.admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

/* search bisa melebar, button di kanan */
.admin-header-actions .admin-search {
    flex: 1 1 auto;
}

/* tombol hijau Add – BASE DESKTOP */
.btn-admin-primary {
    border-radius: 14px;
    background: #10b981;
    border: none;
    padding: .45rem 1.1rem;
    color: #ffffff !important;
    font-size: .85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, .35);
    text-decoration: none;
}

.btn-admin-primary:hover {
    background: #059669;
    color: #ffffff;
}

/* label teks di desktop tampil normal */
.btn-admin-primary .btn-admin-label {
    display: inline;
}

/* =========================
   TABLET + MOBILE (<= 991px)
   ========================= */
@media (max-width: 991.98px) {
    .admin-header-actions {
        gap: .5rem;
    }

    .admin-header-actions .admin-search {
        flex: 1 1 auto; /* search tetap memanjang */
    }

    .btn-admin-primary {
        padding: .35rem .55rem;     /* lebih kecil, fokus icon */
        border-radius: 999px;
        font-size: 1rem;
        box-shadow: 0 8px 20px rgba(16, 185, 129, .35);
        justify-content: center;
    }

    .btn-admin-primary i {
        font-size: 1.1rem;
        line-height: 1;
    }

    /* HIDE teks di mobile & tablet: hanya icon plus */
    .btn-admin-primary .btn-admin-label {
        display: none;
    }
}

/* tabs di atas tabel (opsional) */
.admin-tabs {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: .75rem;
}

.admin-tab {
    position: relative;
    padding-bottom: .55rem;
    font-size: .82rem;
    color: #9ca3af;
    cursor: default;
    border: none;
    background: transparent;
}

.admin-tab.active {
    color: #10b981;
    font-weight: 500;
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 14px;
    background: #10b981;
}

/* card putih untuk tabel */
.admin-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    padding: 1.2rem 1.2rem .5rem;
    margin-top: 0.25rem;
}

/* agar tabel bisa scroll di mobile */
.admin-card .table-responsive {
    overflow-x: auto;
}

/* === DataTables === */

table.table-admin {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    table-layout: fixed;
}

.table-admin thead th {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9ca3af;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb !important;
    padding: .75rem 1.25rem;
    background: #ffffff;
    white-space: nowrap;
}

.table-admin tbody tr {
    transition: background .15s ease, box-shadow .15s ease;
}

.table-admin tbody tr td {
    padding: .75rem 1.25rem;
    font-size: .86rem;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}

/* row pertama tanpa garis atas */
.table-admin tbody tr:first-child td {
    border-top-color: transparent;
}

/* hover hijau lembut */
.table-admin tbody tr:hover,
.table-admin tbody tr.active-row {
    background: #ecfdf5;
}

/* pengaturan per kolom contoh default */
/* kolom # */
.table-admin thead th:nth-child(1),
.table-admin tbody td:nth-child(1) {
    width: 40px;
    text-align: center;
}

/* kolom gambar */
.table-admin thead th:nth-child(2),
.table-admin tbody td:nth-child(2) {
    width: 70px;
    text-align: center;
}

/* kolom nama produk */
.table-admin tbody td:nth-child(3) {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* kolom kategori */
.table-admin tbody td:nth-child(4) {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* kolom harga – rata kanan */
.table-admin thead th:nth-child(5),
.table-admin tbody td:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}

/* kolom status – center */
.table-admin thead th:nth-child(6),
.table-admin tbody td:nth-child(6) {
    text-align: center;
}

/* kolom aksi – center & lebar tetap */
.table-admin thead th:nth-child(7),
.table-admin tbody td:nth-child(7) {
    width: 160px;
    text-align: center;
    white-space: nowrap;
}

/* badge status & tombol aksi */
.table-admin .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 14px;
}

.table-admin .btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 14px;
}

/* ADMIN responsive */
@media (max-width: 1199.98px) {
    /* .admin-page {
        padding-inline: 1rem;
    } */

    .admin-page .nav-shell,
    .admin-header,
    .admin-card {
        max-width: 100%;
    }

    .admin-card {
        border-radius: 14px;
        padding: 1.1rem 1.1rem .7rem;
    }
}

@media (max-width: 767.98px) {
    .admin-page {
        /* padding-inline: .75rem; */
        padding-bottom: 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .admin-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: .35rem;
    }

    .admin-header-actions .btn-admin-primary {
        width: 100%;
        justify-content: center;
    }

    .admin-card {
        border-radius: 16px;
        padding: 1rem .75rem .4rem;
    }

    .table-admin thead th,
    .table-admin tbody td {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

/* =========================================================
   PRODUCT FORM - ORANGE SIGNUP STYLE
   ========================================================= */

.admin-page.product-form::before {
    bottom: -80px;
    left: -60px;
}
.admin-page.product-form::after {
    top: -80px;
    right: -60px;
}

/* header di atas card */
.admin-page.product-form .admin-header {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto 16px;
}
.admin-page.product-form .admin-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}
.admin-page.product-form .admin-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* CARD UTAMA */
.admin-page.product-form .admin-card {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    border: none;
    padding: 28px 32px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

/* LABEL FORM */
.admin-page.product-form .form-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
}

/* INPUT / SELECT */
.admin-page.product-form .form-control,
.admin-page.product-form input[type="text"],
.admin-page.product-form input[type="email"],
.admin-page.product-form input[type="number"],
.admin-page.product-form input[type="password"],
.admin-page.product-form input[type="file"],
.admin-page.product-form select {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 10px 14px;
    font-size: 13px;
    color: #111827;
    height: 42px;
    box-shadow: none;
    outline: none;
    transition: all 0.2s ease;
}

/* file input biar agak rapi */
.admin-page.product-form input[type="file"].form-control {
    padding-top: 8px;
}

/* FOCUS STATE */
.admin-page.product-form .form-control:focus,
.admin-page.product-form select:focus {
    border-color: #ff9000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.18);
}

/* placeholder */
.admin-page.product-form .form-control::placeholder {
    color: #d1d5db;
}

/* checkbox switch */
.admin-page.product-form .form-check-label {
    font-size: 13px;
    color: #4b5563;
}

/* AREA BUTTON BAWAH */
.admin-page.product-form .d-flex.justify-content-end.gap-2.mt-3 {
    margin-top: 24px;
}

/* BUTTON SECONDARY (Batal) */
.admin-page.product-form .btn-light {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    transition: all 0.15s ease;
}
.admin-page.product-form .btn-light:hover {
    background: #f3f4f6;
}

/* BUTTON PRIMARY (Simpan) */
.admin-page.product-form .btn-primary {
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #ff9000, #ffb100);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 12px 30px rgba(255, 144, 0, 0.55);
    transition: all 0.15s ease;
}
.admin-page.product-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255, 144, 0, 0.65);
}

/* RESPONSIVE product form */
@media (max-width: 768px) {
    .admin-page.product-form {
        padding: 24px 12px;
    }

    .admin-page.product-form .admin-card {
        padding: 22px 18px 18px;
        border-radius: 14px;
    }
}

/* INPUT HARGA DENGAN PREFIX RP */
.admin-page.product-form .pos-input-money .input-group-text {
    border-radius: 999px 0 0 999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}

.admin-page.product-form .pos-input-money .form-control {
    border-radius: 0 999px 999px 0;
}

/* =======================
   UPLOAD IMAGE DROPZONE
   ======================= */

.admin-page.product-form .pos-upload-dropzone {
    position: relative;
    border-radius: 14px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.admin-page.product-form .pos-upload-dropzone.is-dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* input file di belakang preview */
.admin-page.product-form .pos-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

/* state kosong */
.admin-page.product-form .pos-upload-empty {
    pointer-events: none;
}

/* PREVIEW GAMBAR (di atas input) */
.admin-page.product-form .pos-upload-preview {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.admin-page.product-form .pos-upload-preview img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

/* ikon & teks */
.admin-page.product-form .pos-upload-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0ecff);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.admin-page.product-form .pos-upload-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.admin-page.product-form .pos-upload-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* tombol hapus (X) */
.admin-page.product-form .pos-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 14px;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
    z-index: 3;
}

.admin-page.product-form .pos-upload-remove:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.75);
    transform: translateY(-1px);
}

/* =========================================================
   DETAIL ORDER (SHOW)
   ========================================================= */

.pos-order-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

/* Header atas */
.pos-order-detail .d-flex.justify-content-between.align-items-center.mb-3 {
    margin-bottom: 20px !important;
}

.pos-order-detail h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.pos-order-detail .btn-light {
    border-radius: 14px;
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
}

/* CARD INFORMASI UTAMA */
.pos-order-detail .card:first-of-type {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.pos-order-detail .card:first-of-type .card-body {
    padding: 18px 20px;
}

.pos-order-detail .card:first-of-type .card-body.row {
    row-gap: 10px;
}

.pos-order-detail .card:first-of-type .small.text-muted {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9ca3af !important;
    margin-bottom: 2px;
}

.pos-order-detail .card:first-of-type .fw-semibold,
.pos-order-detail .card:first-of-type .fw-bold {
    font-size: 13px;
    color: #111827;
}

.pos-order-detail .card:first-of-type .text-success {
    font-size: 14px;
}

/* CARD ITEMS */
.pos-order-detail .card:nth-of-type(2) {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pos-order-detail .card:nth-of-type(2) .card-header {
    padding: 10px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
}

.pos-order-detail .card:nth-of-type(2) .card-header strong {
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #4b5563;
}

/* TABEL ITEM */
.pos-order-detail .table {
    margin-bottom: 0;
    font-size: 13px;
}

.pos-order-detail .table thead th {
    border-bottom-width: 1px;
    border-color: #e5e7eb !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    padding-top: 10px;
    padding-bottom: 8px;
}

.pos-order-detail .table tbody td {
    vertical-align: middle;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Kolom # dan Qty di tengah */
.pos-order-detail .table tbody td:nth-child(1),
.pos-order-detail .table tbody td:nth-child(4) {
    text-align: center;
    width: 60px;
}

/* Kolom harga & subtotal rata kanan */
.pos-order-detail .table tbody td:nth-child(3),
.pos-order-detail .table tbody td:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}

/* Nama produk */
.pos-order-detail .table tbody td:nth-child(2) {
    font-weight: 500;
    color: #111827;
}

/* Stripe lebih halus */
.pos-order-detail .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #f9fafb;
}

/* RESPONSIVE detail order */
@media (max-width: 768px) {
    .pos-order-detail {
        padding-top: 16px;
    }

    .pos-order-detail .card:first-of-type .card-body {
        padding: 14px 14px;
    }

    .pos-order-detail .card:nth-of-type(2) .card-header {
        padding: 8px 14px;
    }

    .pos-order-detail .table thead {
        font-size: 11px;
    }
}

/* =========================================================
   DATATABLES PAGINATION (GLOBAL)
   ========================================================= */

/* Bungkus pagination di kanan */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1.25rem;
    display: flex;
    justify-content: end;
}

/* Kalau pakai Bootstrap (ul.pagination) beri jarak antar item */
.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 0.25rem;
}

/* Versi Bootstrap: tombol */
.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0.75rem;
    min-width: 42px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #ffffff;
    color: #ef4444;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Tombol aktif (angka yang sedang dipilih) */
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    border-radius: 14px;
}

/* Disabled (Prev/Next saat tidak bisa diklik) */
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: default;
    border-radius: 14px;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .page-link:hover {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
    border-radius: 14px;
}

/* Fallback kalau tidak pakai Bootstrap integration (anchor .paginate_button) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
    cursor: default !important;
    border-radius: 20px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
    border-radius: 20px !important;
}

/* === Mobile header controls for sidebar === */
.nav-mobile-toggle {
    border: none;
    background: transparent;
    padding: 0;
    margin-right: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.nav-mobile-toggle i {
    font-size: 1.4rem;
}

.nav-greeting {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

/* Di desktop, hamburger disembunyikan */
@media (min-width: 992px) {
    .nav-mobile-toggle {
        display: none;
    }
}

/* =========================================================
   SIDEBAR OFFCANVAS – MOBILE & TABLET
   ========================================================= */

/* Overlay gelap di belakang sidebar */
.pos-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1030;
}

/* Default: overlay dan transform admin-page normal */
.admin-page {
    position: relative;
    /* z-index: 1; */
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* ====== MOBILE & TABLET ====== */
@media (max-width: 991.98px) {

    /* wrapper jangan dipaksa tinggi penuh, biar konten bisa scroll normal */
    .pos-main-wrapper {
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    .pos-wrapper {
        height: auto;
        max-height: none;
    }

    /* Sidebar jadi offcanvas */
    .pos-sidebar {
        position: fixed;
        top: 0.75rem;
        left: 0.5rem;
        bottom: 0.75rem;
        width: 100px;
        max-width: 82%;
        /* border-radius: 26px; */
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
        transform: translateX(-110%);
        transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 1040;
        display: block;
    }

    /* Saat sidebar terbuka */
    body.sidebar-open .pos-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .pos-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Konten (navbar + page) digeser & sedikit mengecil supaya tidak bertumpuk */
    body.sidebar-open .admin-page {
        transform: translateX(40px) scale(0.96);
        filter: blur(1px);
    }
}

/* Mobile kecil: greeting & navbar lebih kompak */
@media (max-width: 575.98px) {
    .nav-greeting {
        font-size: 0.85rem;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* =========================================================
   GLOBAL BUTTON LOADING STATE
   ========================================================= */

.btn-loading {
    opacity: 0.85;
    pointer-events: none;
}

.btn-loading .spinner-border {
    vertical-align: middle;
}

/* Panel varian produk */
.variant-panel {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.variant-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.9rem 1rem 1rem;
    background: #f9fafb;
}

.variant-card-header {
    border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
    padding-bottom: .25rem;
}

.form-label-sm {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: .15rem;
}

/* Upload gambar varian */
.variant-image-upload .form-control-sm {
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.variant-image-preview img {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.action-btn-group .btn-action-pill {
    border-radius: 7px !important;
    padding-inline: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.action-btn-group .btn-action-pill i {
    font-size: 1rem;
}

/* Outline yang lebih soft */
.action-btn-group .btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.25);
}

.action-btn-group .btn-outline-danger {
    border-color: rgba(248, 113, 113, 0.25);
}

/* Hover lebih modern */
.action-btn-group .btn-outline-primary:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border-color: transparent;
}

.action-btn-group .btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444, #f97373);
    color: #fff;
    border-color: transparent;
}

/* ====== TOMBOL AKSI DI TABLE (Users & Produk) ====== */

.table .action-btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

/* Bentuk pill & ukuran seragam */
.table .action-btn-group .btn-action-pill {
    border-radius: 999px;
    padding: .2rem .85rem;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background-color: #ffffff;
    white-space: nowrap;
}

.table .action-btn-group .btn-action-pill i {
    font-size: .95rem;
}

/* Outline warna lembut */
.table .action-btn-group .btn-outline-primary {
    border-color: rgba(37, 99, 235, .35);
}

.table .action-btn-group .btn-outline-danger {
    border-color: rgba(248, 113, 113, .35);
}

/* Hover state modern */
.table .action-btn-group .btn-outline-primary:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.table .action-btn-group .btn-outline-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Kolom AKSI selalu rapi & tidak pecah ke bawah */
table.dataTable thead th:last-child,
table.dataTable tbody td:last-child {
    text-align: center;
    white-space: nowrap;
}
