/* ============================================================
   Akadash — online booking, bills, payments & desk (admin)
   ============================================================ */
.ak-hero { padding-bottom: 40px; }
.ak-section { padding: 30px 0 70px; position: relative; z-index: 1; }
.ak-billwrap { padding-top: calc(var(--nav-h) + 36px); }
.ak-narrow { max-width: 960px; }
.ak-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(19,43,92,.06); margin-bottom: 22px; min-width: 0; }
.ak-center { text-align: center; }
.ak-h1 { font-family: var(--font); font-size: 1.8rem; margin-bottom: 12px; }
.ak-h2 { font-family: var(--font); font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ak-h2 > span:first-child:not(.ak-badge) { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; }
.ak-h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.ak-mt { margin-top: 24px; }
.ak-muted { color: var(--muted); }
.ak-small { font-size: .84rem; }
.ak-wide { width: 100%; justify-content: center; margin-top: 18px; }
.ak-err { color: #b42318; font-size: .8rem; }
.ak-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; border: 1px solid; }
.ak-alert.ok { background: #e9f8ef; border-color: #9fdbb7; color: #14713f; }
.ak-alert.bad { background: #fdecec; border-color: #f3b4b0; color: #a1251b; }
.ak-alert.warn { background: #fff6e5; border-color: #f2cf87; color: #7a4d00; }
.ak-alert.info { background: #eaf2ff; border-color: #a9c6ff; color: #1446a0; }
.ak-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; font-family: var(--font-body); white-space: normal; line-height: 1.4; }
.ak-badge.ok { background: #e3f6ea; color: #14713f; }
.ak-badge.bad { background: #fde4e2; color: #a1251b; }
.ak-badge.warn { background: #fff1d6; color: #7a4d00; }
.ak-badge.info { background: #e4eeff; color: #1446a0; }
.ak-card a:not(.btn), .ak-bill a, .ak-steps a { color: var(--link); text-decoration: underline; }

/* ---------- booking ---------- */
.ak-book { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ak-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ak-prod { position: relative; cursor: pointer; }
.ak-prod input { position: absolute; opacity: 0; pointer-events: none; }
.ak-prod-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid rgba(19,43,92,.15); border-radius: 14px; background: #f7faff; transition: border-color .2s, box-shadow .2s; }
.ak-prod-body b { font-family: var(--font); font-size: .95rem; line-height: 1.35; }
.ak-prod-price { font-family: var(--font); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.ak-prod-price small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.ak-prod input:checked + .ak-prod-body { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30,108,255,.14); }
.ak-prod input:focus-visible + .ak-prod-body { outline: 2px solid var(--blue); outline-offset: 2px; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ak-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(19,43,92,.15); border-radius: 99px; background: #f7faff; font-size: .9rem; cursor: pointer; min-height: 44px; }
.ak-chip input, .ak-chip input[type=radio] { accent-color: var(--blue); width: 18px !important; height: 18px; padding: 0 !important; margin: 0; flex: 0 0 auto; border: 0; background: none; box-shadow: none; }
.ak-chip { white-space: nowrap; }
.field textarea.ak-short { min-height: 80px; }
.ak-steps { position: sticky; top: calc(var(--nav-h) + 20px); }
.ak-steps ol { padding-left: 20px; display: grid; gap: 12px; margin-bottom: 16px; font-size: .92rem; }

/* ---------- bill ---------- */
.ak-bill { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(19,43,92,.07); margin-bottom: 22px; color: #12233f; }
.ak-bill-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid #1e6cff; padding-bottom: 18px; margin-bottom: 18px; }
.ak-bill-seller { display: flex; gap: 14px; min-width: 0; flex: 1 1 320px; }
.ak-bill-seller img { width: 56px; height: 56px; flex: 0 0 auto; object-fit: contain; }
.ak-bill-seller div, .ak-bill-parties div { display: flex; flex-direction: column; font-size: .86rem; color: #3d4c66; min-width: 0; }
.ak-bill-seller b { font-family: var(--font); font-size: 1.05rem; color: #12233f; }
.ak-bill-doc { text-align: right; flex: 0 1 300px; }
.ak-bill-doc h1 { font-family: var(--font); font-size: 1.5rem; font-weight: 800; color: #1e6cff; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.ak-bill-doc dl { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 2px 12px; font-size: .86rem; }
.ak-bill-doc dt { color: #566683; }
.ak-bill-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.ak-bill-parties small { text-transform: uppercase; letter-spacing: 1px; font-size: .7rem; color: #566683; font-weight: 600; }
.ak-bill-parties b { font-size: .98rem; color: #12233f; }
.ak-tblwrap { scrollbar-width: thin; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-bottom: 12px; }
.ak-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ak-tbl th { background: #eef3fc; color: #12233f; text-align: left; font-weight: 600; padding: 9px 10px; white-space: nowrap; }
.ak-tbl td { padding: 9px 10px; border-bottom: 1px solid #e5ebf5; vertical-align: top; }
.ak-tbl td small { display: block; color: #566683; font-size: .74rem; }
.ak-tbl .r { text-align: right; white-space: nowrap; }
.ak-bill .ak-tbl { min-width: 680px; }
.ak-bill .ak-tbl td:nth-child(2) { min-width: 180px; }
.ak-tbl tfoot td { border-bottom: 0; }
.ak-bill-foot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 10px; align-items: start; }
.ak-paylist { display: grid; gap: 8px; }
.ak-paylist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f6f9fe; border-radius: 10px; font-size: .84rem; }
.ak-paylist small { color: #566683; }
.ak-sum { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ak-sum td { padding: 6px 4px; }
.ak-sum .r { text-align: right; }
.ak-sum .grand td { border-top: 2px solid #12233f; font-weight: 800; font-family: var(--font); font-size: 1.05rem; padding-top: 10px; }
.ak-sum .bal td { background: #eaf2ff; font-weight: 700; color: #1446a0; padding: 10px 8px; }
.ak-bill-note { margin-top: 18px; border-top: 1px dashed #d5deec; padding-top: 12px; }
.ak-payopts { display: grid; gap: 10px; }
.ak-payopt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid rgba(19,43,92,.15); border-radius: 14px; background: #f7faff; cursor: pointer; }
.ak-payopt input[type=radio] { margin-top: 6px; accent-color: var(--blue); width: 18px; height: 18px; flex: 0 0 auto; }
.ak-payopt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ak-payopt em { font-style: normal; font-family: var(--font); font-weight: 800; font-size: 1.15rem; }
.ak-payopt em input { width: 140px; max-width: 100%; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(19,43,92,.2); font: inherit; font-size: 1rem; }
.ak-payopt small { color: var(--muted); font-size: .78rem; }
.ak-payopt:has(input[type=radio]:checked) { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30,108,255,.12); }
.ak-billactions { display: flex; flex-wrap: wrap; gap: 12px; }
.ak-billactions .btn { padding: 12px 22px; }

/* ---------- desk (admin) ---------- */
.ak-desk { background: #f2f5fb; }
.ak-desknav { background: #0d1a33; color: #fff; padding: 12px 0; }
.ak-desknav .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ak-desknav b { font-family: var(--font); margin-right: auto; }
.ak-desknav a { color: #cfe0ff; }
.ak-desknav a[aria-current] { color: #fff; text-decoration: underline; }
.ak-desknav button { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.ak-login { max-width: 420px; padding-top: 60px; }
.ak-login .field { margin-bottom: 14px; }
.ak-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ak-filter select, .ak-filter input, .ak-additem input, .ak-additem select, .ak-stack input, .ak-stack select, .ak-stack textarea {
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(19,43,92,.18); background: #fff; color: #12233f; font: inherit; font-size: .9rem; min-width: 0;
}
.ak-filter input { flex: 1 1 240px; }
.ak-filter .btn, .ak-additem .btn, .ak-stack .btn, .ak-deskact .btn, .ak-card form > .btn { padding: 10px 20px; font-size: .9rem; }
.ak-orders a { color: var(--link); }
.ak-deskhead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ak-deskact { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.ak-deskgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.ak-additem { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.ak-additem input[name=description] { flex: 1 1 220px; }
.ak-additem input[name=sac], .ak-additem input[name=qty] { width: 90px; }
.ak-additem input[name=rate], .ak-additem input[name=amount] { width: 120px; }
.ak-inl { display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); }
.ak-stack { display: grid; gap: 10px; margin-bottom: 10px; }
.ak-stack label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ak-stack textarea { min-height: 80px; resize: vertical; }
.ak-x { background: #fdecec; color: #a1251b; border: 0; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; }
.ak-link { background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; }
.ak-timeline { display: grid; gap: 10px; font-size: .86rem; max-height: 420px; overflow-y: auto; }
.ak-timeline li { border-left: 3px solid #a9c6ff; padding-left: 10px; }
.ak-timeline small { display: block; color: var(--muted); font-size: .74rem; }

@media (max-width: 900px) {
  .ak-book, .ak-deskgrid, .ak-bill-foot { grid-template-columns: minmax(0, 1fr); }
  .ak-steps { position: static; }
}
@media (max-width: 600px) {
  .ak-card, .ak-bill { padding: 18px; }
  .ak-bill-parties { grid-template-columns: 1fr; }
  .ak-bill-doc { text-align: left; }
  .ak-bill-doc dl { justify-content: start; }
  .ak-products { grid-template-columns: 1fr; }
  .ak-billactions .btn, .ak-deskact .btn { flex: 1 1 100%; justify-content: center; }
  .ak-payblock .btn-primary { padding: 14px 18px; }
}

/* ---------- print: clean A4 bill ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  .navbar, footer, .wa-float, .glow-field, .grid-lines, .ak-noprint, #preloader { display: none !important; }
  .ak-billwrap { padding: 0 !important; }
  .ak-narrow { max-width: none; width: 100%; }
  .ak-bill { border: 0; box-shadow: none; padding: 0; }
  .ak-tblwrap { overflow: visible; }
  .ak-bill .ak-tbl { min-width: 0; font-size: .78rem; }
  .ak-tbl th { background: #eef3fc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ak-bill-foot { grid-template-columns: 1fr 260px; }
  a { text-decoration: none !important; color: inherit !important; }
}
.ak-desk .ak-tbl { min-width: 680px; }
.ak-desk .ak-tbl td:first-child { white-space: nowrap; }
