/* ===== Aplikasi Laundry — tema segar & bersih ===== */
:root {
  --sidebar: #0B2F3A;
  --accent: #0F766E;
  --accent-hover: #115E59;
  --accent-soft: #E6F4F1;
  --text: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F5F9F9;
  --radius: 12px;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-primary: #0F766E;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0F766E;
  --bs-link-hover-color: #115E59;
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
}
body { background: var(--bg); color: var(--text); font-family: var(--bs-body-font-family); font-size: .94rem; }
a { color: var(--accent); }
.text-muted, .text-secondary { color: var(--muted) !important; }

/* Tombol */
.btn { border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 600; }
.btn-sm { min-height: 34px; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border: 0; }
.btn-soft:hover { background: #cfeae4; color: var(--accent-hover); }
.btn-wa { background: #25D366; color: #fff; border: 0; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.form-control, .form-select { border-radius: 10px; min-height: 44px; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(15,118,110,.15); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }

/* Kartu */
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 700; border-radius: 14px 14px 0 0 !important; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .65rem .75rem; border-color: var(--line); vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; background: #FAFCFC; }
.stat-card { padding: 1rem 1.1rem; }
.stat-card .label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat-card .value { font-size: 1.45rem; font-weight: 800; }
.stat-card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; }

/* Layout */
.app-wrap { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: var(--sidebar); color: #cfe3e6; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.sidebar .brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; }
.sidebar .brand .logo-ph { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.sidebar .nav-link { color: #cfe3e6; padding: .55rem 1.1rem; display: flex; align-items: center; gap: .65rem; border-radius: 10px; margin: 1px .6rem; font-weight: 500; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .nav-link.active { background: var(--accent); color: #fff; }
.sidebar .nav-link .badge { margin-left: auto; background: #F59E0B; color: #111; font-weight: 700; }
.sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7fa3a9; padding: .9rem 1.2rem .3rem; }
.sidebar .btn-new { margin: .3rem .9rem .6rem; background: #F59E0B; color: #111; border: 0; width: calc(100% - 1.8rem); }
.sidebar .btn-new:hover { background: #fbbf24; }
.main { margin-left: 252px; flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1.2rem; display: flex; align-items: center; gap: .8rem; position: sticky; top: 0; z-index: 1030; }
.topbar .search { max-width: 380px; flex: 1; }
.content { padding: 1.2rem; }
.page-title { font-weight: 800; font-size: 1.35rem; margin: 0; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: none; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
  .main { margin-left: 0; }
  .content { padding: .9rem; }
}

/* Badge status */
.badge-status { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.st-purple { background: #EDE9FE; color: #6D28D9; }
.st-secondary { background: #E5E7EB; color: #374151; }
.st-blue { background: #DBEAFE; color: #1D4ED8; }
.st-sky { background: #E0F2FE; color: #0369A1; }
.st-orange { background: #FFEDD5; color: #C2410C; }
.st-yellow { background: #FEF9C3; color: #A16207; }
.st-green { background: #DCFCE7; color: #15803D; }
.st-teal { background: #CCFBF1; color: #0F766E; }
.st-darkgreen { background: #166534; color: #fff; }
.st-red { background: #FEE2E2; color: #B91C1C; }
.badge-speed-1 { background: #F59E0B; color: #111; }
.badge-speed-2 { background: #DC2626; color: #fff; }

/* Kanban produksi */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban-col { background: #EEF5F4; border-radius: 14px; padding: .6rem; min-height: 200px; }
.kanban-col h6 { font-weight: 800; display: flex; justify-content: space-between; align-items: center; margin: .2rem .3rem .6rem; }
.k-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .75rem; margin-bottom: .55rem; display: block; color: var(--text); text-decoration: none; }
.k-card:hover { border-color: var(--accent); color: var(--text); }
.k-card.speed-1 { border-left: 5px solid #F59E0B; }
.k-card.speed-2 { border-left: 5px solid #DC2626; }
.k-card .code { font-weight: 800; font-size: .92rem; }
.k-card .late { color: #DC2626; font-weight: 700; }
.k-card .note { background: #FEF3C7; color: #92400E; border-radius: 8px; padding: .25rem .45rem; font-size: .78rem; margin-top: .35rem; }

/* Transaksi kasir */
.svc-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .6rem .7rem; text-align: left; width: 100%; min-height: 64px; }
.svc-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.svc-btn .n { font-weight: 700; display: block; line-height: 1.2; }
.svc-btn .p { color: var(--muted); font-size: .8rem; }
.summary-sticky { position: sticky; top: 76px; }
.sum-row { display: flex; justify-content: space-between; padding: .25rem 0; }
.sum-total { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.ac-list { position: absolute; z-index: 1050; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; max-height: 300px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ac-list .ac-item { padding: .6rem .8rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-list .ac-item:hover, .ac-list .ac-item.active { background: var(--accent-soft); }

/* Timeline */
.timeline { list-style: none; padding-left: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline .t-time { font-size: .78rem; color: var(--muted); }

/* Mobile pages (operator, kurir, lacak) */
.mobile-wrap { max-width: 560px; margin: 0 auto; padding: .9rem; }
.big-btn { min-height: 56px; font-size: 1.05rem; border-radius: 14px; width: 100%; }
.task-card { border-radius: 14px; }

/* Lacak (publik) */
.track-hero { background: var(--sidebar); color: #fff; padding: 1.2rem 1rem 3.2rem; }
.track-card { margin-top: -2.4rem; }
.progress-steps { display: flex; justify-content: space-between; position: relative; margin: 1rem 0 .5rem; }
.progress-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 18px; height: 3px; background: var(--line); z-index: 0; }
.progress-steps .step { text-align: center; position: relative; z-index: 1; flex: 1; font-size: .72rem; color: var(--muted); }
.progress-steps .step .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .3rem; background: #fff; border: 3px solid var(--line); font-size: 1rem; }
.progress-steps .step.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress-steps .step.current .dot { background: #fff; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.progress-steps .step.done, .progress-steps .step.current { color: var(--text); font-weight: 700; }
.status-big { font-size: 1.25rem; font-weight: 800; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--sidebar); }
.login-card { width: 100%; max-width: 400px; border-radius: 18px; }

.chip { display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; }
.hl-note { background: #FEF3C7; border-radius: 10px; padding: .5rem .7rem; color: #92400E; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.empty-state i { font-size: 2.2rem; display: block; margin-bottom: .4rem; }
.cursor-pointer { cursor: pointer; }
@media print { .no-print { display: none !important; } }
