/* =========================================================
   .KRMWRKS Studio — stylesheet bersama
   1. Dasar  2. Navbar  3. Beranda  4. Gallery  5. Catalogue
   6. Login  7. Footer  8. Admin  9. Responsive
   ========================================================= */

/* ---------- 1. DASAR ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Public Sans", Arial, sans-serif; color: #000; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 2. NAVBAR ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7%; height: 80px; background: #fff;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .brand { font-weight: 800; font-size: 25px; letter-spacing: 1px; }
.logo .sub { font-size: 12px; font-style: italic; align-self: flex-end; margin-top: 2px; }
header.site nav { display: flex; align-items: center; gap: 36px; }
header.site nav a.link { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
header.site nav a.link:hover { opacity: .6; }
header.site nav a.link.active { text-decoration: underline; text-underline-offset: 5px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #d9d9d9; display: grid; place-items: center; overflow: hidden;
  transition: background .2s;
}
.avatar svg { width: 20px; height: 20px; fill: #9a9a9a; }
.avatar.on { background: #000; }
.avatar.on svg { fill: #fff; }
.avatar:hover { background: #bdbdbd; }
.avatar.on:hover { background: #333; }

/* Bilah mode admin (tampil di semua halaman publik saat login) */
.adminbar {
  background: #000; color: #fff; font-size: 11px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 7px 7%;
}
.adminbar b { letter-spacing: .6px; }
.adminbar .links { display: flex; align-items: center; gap: 18px; }
.adminbar a:hover, .adminbar button:hover { text-decoration: underline; }
.adminbar form { display: inline; }
.adminbar button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; }

/* Pesan singkat */
.toast {
  position: fixed; top: 100px; right: 20px; z-index: 2000; max-width: 320px;
  padding: 12px 16px; font-size: 12px; line-height: 1.4;
  background: #000; color: #fff; border-left: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  animation: toast-out 6s forwards;
}
.toast.error { background: #b00020; }
.toast.ok { background: #14532d; }
@keyframes toast-out { 0%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* ---------- 3. BERANDA ---------- */
.slider { position: relative; height: 730px; overflow: hidden; background: #222; }
.slides { display: flex; height: 100%; transition: transform .6s ease; }
.slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .2s;
}
.arrow:hover { transform: translateY(-50%) scale(1.08); }
.arrow.prev { left: 36px; }
.arrow.next { right: 36px; }
.arrow svg { width: 20px; height: 20px; stroke: #000; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.quote { text-align: center; padding: 28px 20px 0; }
.quote h3 { font-size: 18px; font-weight: 700; }
.quote p { font-size: 9px; font-style: italic; margin-top: 6px; }

.about { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 70px 7% 90px; }
.about-text { flex: 1; max-width: 460px; }
.about-text h1 { font-size: 70px; font-weight: 800; line-height: 1.05; max-width: 260px; margin-bottom: 42px; }
.about-text p { font-size: 20px; line-height: 1.7; max-width: 900px; }
.btn {
  display: inline-block; margin-top: 39px; background: #000; color: #fff;
  font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 20px;
  transition: background .2s;
}
.btn:hover { background: #333; }
.about-img { width: 600px; max-width: 80%; aspect-ratio: 3/5; background-size: cover; background-position: center; filter: grayscale(1); }

/* ---------- 4. GALLERY ---------- */
.gallery-main { max-width: 1500px; margin: 0 auto; padding: 0 5% 60px; }
h1.title { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: 1px; margin: 36px 0 28px; }
h1.title span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.gtabs { display: flex; justify-content: center; gap: 22px; margin-bottom: 34px; }
.gtab {
  width: 84px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  font-family: inherit; font-size: 8px; line-height: 1.2; color: #888; cursor: pointer; transition: all .2s;
}
.gtab svg { width: 24px; height: 24px; fill: none; stroke: #777; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gtab:hover { color: #333; }
.gtab.active { background: #fff; color: #000; font-weight: 600; border-color: #ddd; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.gtab.active svg { stroke: #000; }

.grid { display: grid; grid-template-columns: 2fr 2fr; gap: 4px; grid-auto-rows: clamp(110px, 25vw, 270px); }
.grid + .grid { margin-top: 4px; }
.grid.full { grid-auto-rows: auto; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; background: #ddd; cursor: zoom-in; transition: filter .3s; }
.grid img:hover { filter: brightness(.88); }
.grid img.bw { filter: grayscale(1); }
.grid img.bw:hover { filter: grayscale(1) brightness(.88); }

.note { text-align: center; font-size: 8px; margin-top: 50px; }
.note a:hover { text-decoration: underline; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; place-items: center; z-index: 3000; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- 5. CATALOGUE ---------- */
.cat-main { max-width: 1200px; margin: 0 auto; padding: 0 4% 50px; }
h1.title.big { font-size: 36px; margin: 32px 0 34px; }
.tabs { display: flex; justify-content: center; gap: 70px; border-bottom: 1px solid #888; padding-bottom: 14px; }
.tab { font-size: 15px; color: #888; transition: color .2s; }
.tab:hover { color: #333; }
.tab.active { color: #000; font-weight: 700; }

.admin-tools { display: flex; justify-content: flex-end; padding: 22px 2% 0; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 34px; padding: 44px 2% 20px; }
.card { position: relative; }
.card .thumb { aspect-ratio: 3 / 2; background: #ddd; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb img.bw { filter: grayscale(1); }
.card h3 { font-size: 17px; font-weight: 700; margin: 16px 0 6px; }
.card .desc { font-size: 8px; }
.card .price { font-size: 10px; font-weight: 700; margin: 14px 0 6px; }
.buy {
  display: inline-block; background: #1b1b1b; color: #fff; font-size: 9px; font-weight: 700;
  padding: 6px 0; width: 65px; text-align: center; transition: background .2s;
}
.buy:hover { background: #444; }
.chip {
  position: absolute; top: 8px; right: 8px; background: #000; color: #fff;
  font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 14px;
}
.chip:hover { background: #333; }
.upcoming { text-align: center; font-style: italic; font-size: 16px; padding: 120px 0 130px; }

/* ---------- 6. LOGIN ---------- */
.login-main { display: grid; place-items: center; min-height: calc(100vh - 80px - 190px); padding: 50px 5%; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.login-box h1 span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.login-box .lead { text-align: center; font-size: 11px; color: #777; margin: 18px 0 30px; }
.login-box .back { display: block; text-align: center; font-size: 10px; margin-top: 22px; color: #555; }
.login-box .back:hover { color: #000; text-decoration: underline; }

/* Form (dipakai login & admin) */
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 10px; color: #777; margin-top: 5px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px; padding: 11px 12px;
  border: 1px solid #aaa; border-radius: 0; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.field.check label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.field.check input { width: 16px; height: 16px; accent-color: #000; }
.toggle-pw { position: absolute; right: 8px; bottom: 7px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 700; color: #555; padding: 4px 6px; }
.toggle-pw:hover { color: #000; }
.field.has-toggle input { padding-right: 62px; }

.alert { font-size: 12px; line-height: 1.5; padding: 10px 14px; margin-bottom: 18px; border-left: 3px solid; }
.alert.error { color: #b00020; background: #fdecee; border-color: #b00020; }
.alert.ok { color: #14532d; background: #e7f6ec; border-color: #14532d; }
.alert.warn { color: #7a4b00; background: #fff4de; border-color: #c27a00; }
.alert ul { margin-left: 18px; }

.btn-dark, .btn-line, .btn-danger {
  display: inline-block; font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 10px 20px; border-radius: 20px; border: 1px solid #000; cursor: pointer;
  transition: background .2s, color .2s; text-align: center;
}
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-line { background: #fff; color: #000; }
.btn-line:hover { background: #000; color: #fff; }
.btn-danger { background: #fff; color: #b00020; border-color: #b00020; }
.btn-danger:hover { background: #b00020; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 11px; }
.btn-block { width: 100%; padding: 13px; }

/* ---------- 7. FOOTER ---------- */
footer.site {
  background: #0b0b0b; color: #fff; padding: 40px 7% 28px;
  display: grid; grid-template-columns: 1.2fr 1fr .9fr 1.6fr; gap: 30px; font-size: 11px;
}
footer.site .logo .brand { font-size: 20px; }
footer.site h4 { font-size: 9px; font-weight: 700; margin-bottom: 8px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 3px; line-height: 1.3; }
footer.site a:hover { text-decoration: underline; }
footer.site .contact li { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
footer.site .contact svg { width: 9px; height: 9px; fill: #fff; flex-shrink: 0; }
footer.site .address { margin-top: 14px; font-size: 9px; line-height: 1.5; color: #ddd; }

/* ---------- 8. ADMIN ---------- */
body.admin { background: #f5f5f5; min-height: 100vh; }
.adm-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 28px; background: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.18);
  position: sticky; top: 0; z-index: 100;
}
.adm-top .logo .brand { font-size: 20px; }
.adm-top .logo .sub { font-size: 10px; }
.adm-top .right { display: flex; align-items: center; gap: 16px; font-size: 12px; }
.badge { font-size: 9px; font-weight: 700; background: #000; color: #fff; padding: 4px 10px; border-radius: 12px; letter-spacing: .5px; }
.adm-top .who { color: #555; }

.adm-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.adm-side { background: #fff; border-right: 1px solid #ddd; padding: 24px 16px; }
.adm-side a, .adm-side button.navlike {
  display: block; width: 100%; text-align: left; font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 14px; margin-bottom: 4px; border: 0; background: none; cursor: pointer; border-left: 3px solid transparent;
}
.adm-side a:hover, .adm-side button.navlike:hover { background: #f0f0f0; }
.adm-side a.active { border-left-color: #000; background: #f0f0f0; font-weight: 800; }
.adm-side hr { border: 0; border-top: 1px solid #e3e3e3; margin: 14px 0; }
.adm-side form { margin: 0; }

.adm-main { padding: 32px 36px 60px; max-width: 1100px; width: 100%; }
.adm-main h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.adm-main .sub-h { font-size: 12px; color: #666; margin-bottom: 26px; }
.panel { background: #fff; border: 1px solid #ddd; padding: 22px 24px; margin-bottom: 24px; }
.panel h2 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid #ddd; padding: 18px 20px; }
.stat .num { font-size: 32px; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: 11px; color: #666; margin-top: 8px; }
.stat.dark { background: #000; color: #fff; border-color: #000; }
.stat.dark .lbl { color: #ccc; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar input[type=text], .toolbar select { font-family: inherit; font-size: 13px; padding: 9px 12px; border: 1px solid #aaa; background: #fff; outline: none; }
.toolbar input[type=text] { min-width: 220px; }
.toolbar .spacer { flex: 1; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11px; font-weight: 700; color: #555; padding: 10px 12px; border-bottom: 2px solid #000; white-space: nowrap; }
table.tbl td { padding: 12px; border-bottom: 1px solid #e5e5e5; vertical-align: middle; }
table.tbl tr:hover td { background: #fafafa; }
table.tbl .thumb-sm { width: 72px; height: 48px; object-fit: cover; background: #ddd; display: block; }
table.tbl .thumb-sm.bw { filter: grayscale(1); }
table.tbl .name { font-weight: 700; }
table.tbl .actions { display: flex; gap: 8px; white-space: nowrap; }
table.tbl .actions form { margin: 0; }
.tbl-wrap { overflow-x: auto; }
.cat-pill { display: inline-block; font-size: 10px; font-weight: 700; border: 1px solid #000; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.empty-row { text-align: center; color: #777; padding: 40px 0 !important; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.preview { width: 100%; max-width: 330px; aspect-ratio: 3 / 2; background: #ddd; overflow: hidden; margin-bottom: 10px; display: grid; place-items: center; font-size: 11px; color: #777; }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview img.bw { filter: grayscale(1); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { border-right: 0; border-bottom: 1px solid #ddd; padding: 12px; display: flex; flex-wrap: wrap; gap: 4px; }
  .adm-side a, .adm-side button.navlike { width: auto; margin: 0; border-left: 0; border-bottom: 3px solid transparent; }
  .adm-side a.active { border-bottom-color: #000; }
  .adm-side hr { display: none; }
  .adm-main { padding: 24px 18px 50px; }
}
@media (max-width: 800px) {
  header.site nav { gap: 18px; }
  .slider { height: 260px; }
  .arrow.prev { left: 12px; }
  .arrow.next { right: 12px; }
  .about { flex-direction: column; padding: 50px 7%; }
  .about-img { max-width: 100%; width: 100%; }
  .about-text h1 { font-size: 32px; max-width: none; }
  footer.site { grid-template-columns: 1fr 1fr; }
  .adminbar { padding: 7px 5%; }
}
@media (max-width: 600px) {
  header.site nav { gap: 14px; }
  h1.title { font-size: 28px; }
  .gtabs { gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .adm-top { padding: 0 14px; }
  .adm-top .who { display: none; }
}
@media (max-width: 560px) {
  .tabs { gap: 22px; }
  .tab { font-size: 13px; }
  .products { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   10. SERVICES, PEMESANAN, INVOICE & KWITANSI
   ========================================================= */

/* Tombol kedua di beranda */
.btn.btn-alt { background: #fff; color: #000; border: 2px solid #000; margin-left: 10px; padding: 8px 18px; }
.btn.btn-alt:hover { background: #000; color: #fff; }

/* ---------- Services ---------- */
.svc-main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px) 90px; }
.svc-lead { text-align: center; font-size: 15px; line-height: 1.75; max-width: 640px; margin: -6px auto 0; color: #444; }
.svc-sec { padding-top: 64px; }
.svc-sec + .svc-sec { margin-top: 24px; border-top: 1px solid #e3e3e3; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.svc-h { font-size: 26px; font-weight: 800; letter-spacing: .3px; margin: 0 0 6px; }
.svc-sub { font-size: 13px; color: #666; margin: 0 0 30px; }
.svc-head .svc-sub { margin-bottom: 0; }

/* Kotak foto (placeholder jika foto belum ada) */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 12px, #e9e9e9 12px, #e9e9e9 24px);
  color: #8a8a8a; font-size: 11px; font-weight: 600; text-align: center; padding: 10px;
}
.ph svg { width: 34px; height: 34px; fill: none; stroke: #a5a5a5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }

/* Kartu paket */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid #cfcfcf; transition: box-shadow .25s, transform .25s;
}
.pkg:hover { box-shadow: 0 12px 30px rgba(0,0,0,.14); transform: translateY(-4px); }
.pkg:hover .ph img { transform: scale(1.04); }
.pkg-pop { border: 2px solid #000; }
.pkg-img { position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid #e3e3e3; overflow: hidden; }
.pkg-pop .pkg-img { border-bottom-color: #000; }
.pkg-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: #000; color: #fff; font-size: 10px; font-weight: 700; padding: 5px 14px; border-radius: 14px; letter-spacing: .4px; }
.pkg-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.pkg h3 { font-size: 21px; font-weight: 800; line-height: 1.2; }
.pkg-tag { font-size: 12.5px; color: #666; margin: 8px 0 18px; line-height: 1.55; min-height: 38px; }
.pkg-price { font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.pkg-meta { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
.pkg-meta li { font-size: 10.5px; font-weight: 700; border: 1px solid #000; padding: 4px 12px; border-radius: 14px; }
.pkg-feat { list-style: none; margin-bottom: 26px; flex: 1; }
.pkg-feat li { font-size: 13px; line-height: 1.5; padding: 9px 0 9px 26px; border-top: 1px solid #eee; position: relative; }
.pkg-feat li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 10px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg); }

/* Contoh hasil foto */
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.samples .ph-sample { aspect-ratio: 4 / 5; height: auto; }
.samples .ph-sample:hover img { transform: scale(1.05); }

/* Alur & layanan lain */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step .no { width: 38px; height: 38px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.step h4 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 12.5px; line-height: 1.65; color: #555; }
.svc-track { text-align: center; margin-top: 34px; font-size: 13px; }
.svc-track a { text-decoration: underline; text-underline-offset: 3px; }

.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.other { border: 1px solid #cfcfcf; padding: 24px 22px; transition: border-color .2s; }
.other:hover { border-color: #000; }
.other h4 { font-size: 15px; margin-bottom: 10px; }
.other p { font-size: 12.5px; line-height: 1.65; color: #555; }

/* ---------- Form pemesanan ---------- */
.order-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; max-width: 1000px; margin: 30px auto 0; align-items: start; }
.order-form { position: relative; }
.order-sum { position: sticky; top: 100px; border: 2px solid #000; padding: 24px; }
.order-sum .ph { height: auto; aspect-ratio: 4 / 3; }
.order-sum h3 { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #666; }
.order-sum .pkg-name { font-size: 22px; font-weight: 800; margin: 6px 0 4px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid #000; padding-top: 14px; margin-top: 8px; }
.sum-total b { font-size: 24px; }

/* ---------- Status ---------- */
.st { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 11px; border-radius: 12px; white-space: nowrap; vertical-align: middle; }
.st-pending { background: #fff4de; color: #7a4b00; }
.st-paid { background: #e7f6ec; color: #14532d; }
.st-done { background: #000; color: #fff; }
.st-cancelled { background: #eee; color: #666; }

/* ---------- Admin: detail pesanan ---------- */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 13px; }
.kv span { color: #666; }
.kv b { font-weight: 600; word-break: break-word; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .btn-dark, .stack .btn-line, .stack .btn-danger { width: 100%; }
.adm-main h1 .st { font-size: 11px; margin-left: 8px; }

/* ---------- Dokumen: invoice & kwitansi ---------- */
body.doc-body { background: #e9e9e9; padding: 0 14px 30px; }
.doc-bar { max-width: 820px; margin: 18px auto 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.doc-bar a:hover { text-decoration: underline; }
.doc-bar .doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-bar .doc-actions a:hover { text-decoration: none; }
.doc-wrap { max-width: 820px; margin: 0 auto; }

.paper { max-width: 820px; margin: 0 auto 30px; background: #fff; padding: 48px 52px; position: relative; box-shadow: 0 6px 24px rgba(0,0,0,.12); overflow: hidden; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 3px solid #000; margin-bottom: 26px; }
.doc-addr { font-size: 10px; line-height: 1.6; color: #555; margin-top: 10px; max-width: 290px; }
.doc-meta { text-align: right; }
.doc-title { font-size: 30px; font-weight: 800; letter-spacing: 2px; margin-bottom: 8px; }
.doc-meta table { margin-left: auto; font-size: 12px; border-collapse: collapse; }
.doc-meta td { padding: 2px 0 2px 14px; text-align: right; }
.doc-meta td:first-child { color: #666; }

.stamp { position: absolute; right: 48px; top: 128px; transform: rotate(-12deg); border: 4px solid; padding: 5px 18px; font-size: 24px; font-weight: 800; letter-spacing: 2px; opacity: .8; border-radius: 6px; pointer-events: none; background: rgba(255,255,255,.6); }
.stamp-ok { color: #14532d; }
.stamp-no { color: #b00020; }
.stamp-x { color: #777; }

.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 26px; font-size: 13px; line-height: 1.6; }
.doc-cols h4 { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #777; margin-bottom: 6px; }
.muted { color: #777; font-size: 11px; }

.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th { text-align: left; font-size: 11px; padding: 10px 12px; background: #000; color: #fff; }
.doc-table td { padding: 14px 12px; border-bottom: 1px solid #ddd; vertical-align: top; }
.doc-table .r { text-align: right; white-space: nowrap; }
.doc-table tfoot td { border-bottom: 0; border-top: 2px solid #000; font-size: 15px; }
.doc-words { font-size: 12px; margin: 10px 0 26px; }

.pay { border: 1px solid #ccc; padding: 18px 20px; margin-bottom: 20px; }
.pay h4 { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
.pay-grid { display: flex; gap: 24px; align-items: flex-start; }
.pay-grid > div:first-child { flex: 1; }
.acc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed #ccc; font-size: 13px; }
.acc span { font-weight: 800; min-width: 52px; }
.acc b { font-size: 15px; letter-spacing: .5px; }
.acc small { color: #666; font-size: 11px; }
.pay-steps { margin: 14px 0 0 18px; font-size: 12px; line-height: 1.7; }
.qris { text-align: center; }
.qris img { width: 150px; height: 150px; object-fit: contain; border: 1px solid #ddd; display: block; }
.qris small { font-size: 10px; color: #666; }

.receipt-body { margin: 6px 0 18px; }
.rc-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dotted #999; font-size: 13px; line-height: 1.55; }
.rc-row span { color: #666; }
.rc-words { font-style: italic; text-transform: none; }
.rc-total { display: flex; justify-content: space-between; align-items: center; border: 2px solid #000; padding: 14px 20px; margin: 22px 0 30px; font-size: 13px; }
.rc-total b { font-size: 26px; }
.sign { display: flex; justify-content: flex-end; font-size: 12px; text-align: center; }
.sign p { margin: 2px 0; }
.sign-line { width: 190px; height: 70px; border-bottom: 1px solid #000; margin: 8px 0 6px; }

.doc-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid #ddd; font-size: 10px; line-height: 1.6; color: #777; text-align: center; }

@media print {
  @page { size: A4; margin: 14mm; }
  body.doc-body { background: #fff; padding: 0; }
  .no-print { display: none !important; }
  .paper { box-shadow: none; padding: 0; margin: 0; max-width: none; }
  .stamp, .doc-table th, .pay, .rc-total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 1000px) {
  .pkgs { grid-template-columns: 1fr 1fr; }
  .samples { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .others { grid-template-columns: repeat(2, 1fr); }
  .order-grid, .two-col { grid-template-columns: 1fr; }
  .order-sum { position: static; }
}
@media (max-width: 640px) {
  .pkgs, .steps, .others { grid-template-columns: 1fr; }
  .svc-sec { padding-top: 48px; }
  .svc-h { font-size: 22px; }
  .paper { padding: 28px 20px; }
  .doc-head { flex-direction: column; }
  .doc-meta, .doc-meta table { text-align: left; margin-left: 0; }
  .doc-meta td { text-align: left; padding-left: 0; padding-right: 14px; }
  .doc-cols { grid-template-columns: 1fr; gap: 18px; }
  .stamp { position: static; display: inline-block; transform: none; margin-bottom: 14px; font-size: 18px; }
  .pay-grid { flex-direction: column; }
  .rc-row { grid-template-columns: 1fr; gap: 2px; }
  .btn.btn-alt { margin-left: 0; margin-top: 12px; }
  .kv { grid-template-columns: 100px 1fr; }
}
