/* FONT NUNITO */
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Tombol Manage Outlet */
.manage-outlet-btn {
    display: block;
    width: 100%;
    background-color: #e11d48; /* rose-700 */
    color: white;
    text-align: center;
    padding: 0.75rem; /* 12px */
    border-radius: 0.75rem; /* rounded-xl */
    font-weight: 600;
    text-decoration: none;
    margin-top: 2rem;
}

/* Kartu dashboard */
.dashboard-card {
    background-color: #0092b8; /* cyan-600 */
    color: white;
    border-radius: 1rem; /* rounded-xl */
    padding: 1rem;
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dashboard-card .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 0.5rem;
}

.dashboard-card .card-grid p {
    margin: 0;
}

/* Footer fix agar selalu di bawah */
footer {
    margin-top: auto;
}

/* ============================= */
/* GOOGLE MATERIAL ICONS */
/* ============================= */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-size: 20px;
    line-height: 1;
}

/* Icon footer */
.footer-icon.active {
    font-variation-settings:
        'FILL' 1,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24;
}

.order-tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.order-tabs .tab {
    padding: 8px 0;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.order-tabs .tab.active {
    color: #e11d48;
}

.order-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e11d48;
    border-radius: 3px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
    text-decoration: none;
    color: #111;
}

.avatar img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.order-info {
    flex: 1;
}

.order-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.order-info p {
    font-size: 12px;
    color: #777;
}

.order-info .est {
    color: #999;
}

.order-meta {
    text-align: right;
    font-size: 12px;
}

.order-meta strong {
    display: block;
    color: #295994;
    font-weight: 700;
    font-size: 13px;
}


/* =============================
   CREATE / EDIT TRANSAKSI UI
============================= */

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
	margin: 12px;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Card */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

/* Pelanggan */
.customer-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.customer-info strong {
    display: block;
    font-size: 14px;
}

.customer-info small {
    color: #777;
}

/* Link kecil */
.link-action {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

/* Detail order */
.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.order-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-info {
    flex: 1;
}

.order-item-info strong {
    display: block;
    font-size: 14px;
}

.order-item-info small {
    font-size: 12px;
    color: #777;
}

.order-item-price {
    text-align: right;
    font-size: 13px;
    margin-left: auto; /* ⬅️ ini bikin harga otomatis ke kanan */
}


.order-item-price strong {
    display: block;
}

/* Form */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-family: 'Nunito', sans-serif;
}

/* Footer total */
.order-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-footer .total {
    flex: 1;
}

.order-footer .total small {
    display: block;
    color: #777;
    font-size: 12px;
}

.order-footer .total strong {
    font-size: 16px;
}

.btn-primary {
    background: #0092b8;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
}

/* =============================
   DETAIL TRANSAKSI (pesan.php)
============================= */

.invoice-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* Customer header */
.customer-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.icon-btn.green { background: #22c55e; }
.icon-btn.purple { background: #a5b4fc; }

/* Order list */
.order-list-clean {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-row {
    display: flex;
    gap: 12px;
}

.order-row .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-row .info strong {
    font-size: 14px;
    display: block;
}

.order-row .info small {
    font-size: 12px;
    color: #777;
}

/* Info table */
.info-table {
    width: 100%;
    font-size: 13px;
}

.info-table tr td {
    padding: 6px 0;
}

.info-table tr td:last-child {
    text-align: right;
    font-weight: 600;
}

/* Divider */
.divider {
    height: 1px;
    background: #eee;
    margin: 14px 0;
}

/* Action button */
.btn-wide {
    width: 100%;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    display: block;
}

.btn-process {
    background: #ef4444;
    color: #fff;
}

/* Bottom bar */
.bottom-bar {
    position: fixed;   /* tetap di bawah layar */
    bottom: 0;         /* posisinya di bawah */
    left: 0;           /* mulai dari kiri layar */
    width: 100%;       /* full lebar layar */
    background: #fff;  /* warna background */
    border-top: 1px solid #eee; /* garis pemisah */
    display: flex;     /* supaya total & button sejajar */
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px; /* padding atas/bawah & kiri/kanan */
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05); /* efek bayangan */
    z-index: 999;      /* supaya di atas konten lain */
}


.bottom-bar .total {
    flex: 1;
}

.bottom-bar .total small {
    font-size: 12px;
    color: #777;
}

.bottom-bar .total strong {
    font-size: 16px;
}

/* Secondary action buttons */
.action-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 0 12px; /* ⬅️ atas/bawah 0, kiri/kanan 12px */
}


.btn-soft {
    flex: 1;
    background: #f1f5f9;       /* abu-abu pucat */
    color: #475569;            /* slate-600 */
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.btn-soft.danger {
    color: #b91c1c;            /* merah soft */
}

.btn-soft:hover {
    background: #e5e7eb;
}

/* Primary process button */
.btn-process {
    background: #0092b8;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;   /* ⬅️ kuncinya */
}


.btn-pay {
    background: #ef4444;
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btn-pay.disabled {
    background: #f0b100;
    cursor: default;
}


.invoice-text {
    font-size: 13px;
    color: #555;
    margin: 4px 12px 6px;
    padding: 0;
}

/* =========================
   BADGE STATUS
========================= */

.badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px; /* pill */
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.badge-success {
    background-color: #e8f7ee;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}

.badge-danger {
    background-color: #fdecea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}


/* =========================
  LAYANAN DAN PRODUK
========================= */


.form-wrapper {
    margin: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-family: 'Nunito', sans-serif;
}

.card-form {
    margin: 12px;
    padding: 12px;
}

.service-section {
    margin: 12px;
}

.service-title {
    font-size: 15px;
    font-weight: 600;
}

.service-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 12px;
}

.product-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
}

.product-info {
    font-size: 12px;
    color: #6b7280;
}

.btn-pilih {
    background: #9fa8da;
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}



/* =========================
  INPUT QTY
========================= */

.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.product-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #9fa8da;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary2 {
    padding: 12px;
    border-radius: 14px;
    background: #9fa8da;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}


.btn-soft {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    text-decoration: none;
    color: #6b7280;
}


/* =========================
  TAMBAH ATAU EDIT LAYANAN ATAU PRODUK
========================= */

.card {
    margin: 12px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-name {
    font-size: 14px;
    font-weight: 600;
}

.service-meta {
    font-size: 12px;
    color: #6b7280;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.badge-aktif {
    background: #dcfce7;
    color: #166534;
}

.badge-nonaktif {
    background: #fee2e2;
    color: #991b1b;
}

.action-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-edit {
    background: #9fa8da;
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 14px;
    background: #9fa8da;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.product-row {
    margin: 0 40px;
}

.btn-deletes {
    padding: 8px 12px;
    border-radius: 10px;
    background: #ff6467;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    margin-left: 6px;
}

.btn-deletes:hover {
    background: #dc2626;
}

.alert-warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}


/* =========================
   TABLE CLEAN (Dashboard)
========================= */

.table-clean {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-clean thead th {
    text-align: left;
    padding: 10px 8px;
    background: #f8fafc;        /* abu soft */
    color: #475569;             /* slate */
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.table-clean tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.table-clean tbody tr:last-child td {
    border-bottom: none;
}

.table-clean tbody tr:hover {
    background: #f9fafb;
}

/* Kolom angka rata kanan */
.table-clean th:nth-child(2),
.table-clean th:nth-child(3),
.table-clean th:nth-child(4),
.table-clean td:nth-child(2),
.table-clean td:nth-child(3),
.table-clean td:nth-child(4) {
    text-align: right;
}

/* Total lebih menonjol */
.table-clean .total-cell {
    font-weight: 700;
    color: #0092b8;
}

@media (max-width: 480px) {
    .table-clean {
        font-size: 12px;
    }
}

/* =========================
   Halaman Report Detail Pelanggan
========================= */

.flex-between {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* =========================
   Halaman Report
========================= */
.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-weight: 400; /* 👈 turunin */
    font-size: 13px;
}

.menu-link:hover {
    background: #f1f5f9;
}

.menu-link .material-symbols-outlined {
    font-size: 18px;
    color: #64748b;
}


/* =========================
   TYPO RESET
========================= */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-size: inherit;
    font-weight: 700;
}

strong {
    font-weight: 600;
}

small {
    font-size: 11px;
    color: #6b7280;
}


.page-header {
    margin: 12px;
}

.page-header h2 {
    font-size: 16px;   /* ⬅️ dari 18px */
    font-weight: 700;
}

/* =========================
   UNTUK PROSES LAYANAN
========================= */

.badge-proses {
    background:#eef2ff;
    color:#3730a3;
    padding:3px 8px;
    font-size:11px;
    border-radius:999px;
    font-weight:600;
}

/* =========================
   PAGINATION
========================= */
.pagination-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    transition: 0.2s ease;
    background: #fff;
}

.pagination-btn:hover {
    background: #f3f4f6;
}

.pagination-btn.active {
    background: #9fa8da;
    color: #fff;
    border-color: #9fa8da;
    font-weight: 600;
}