/* =============================================================
   DIGITAL ARTS STORE - extra styles for shop, checkout,
   account and admin dashboard. Uses the colours from style.css.
   ============================================================= */
.promo-banner { background: var(--surface-tint); border: 1px dashed var(--brand-red); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; }
.promo-banner strong { color: var(--brand-red); letter-spacing: .04em; }
.price-fixed { color: var(--brand-red); font-size: 1rem; }

.store-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.cart-row input[type=text] { width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button, .link-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; min-width: 32px; height: 32px; cursor: pointer; font: inherit; color: var(--ink); }
.qty input { width: 56px; height: 32px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.link-btn { border: 0; height: auto; color: var(--brand-red); padding: 0; font-size: .85rem; background: none; }
.sum-line { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.radio-row input { width: auto; }
.form-status.error { background: var(--surface-tint); color: var(--brand-red-dark); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.auth-card { max-width: 480px; margin: 0 auto; }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.order-head h3 { margin: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; background: var(--surface-soft); color: var(--ink); }
.badge-go { background: #e6f7ed; color: #17693c; }
.badge-wait { background: #fff4d6; color: #7a5600; }
.badge-stop { background: #f3f0f0; color: #8a6d6d; }
.tracker { display: flex; margin: 20px 0 8px; padding: 0; list-style: none; overflow-x: auto; }
.tracker li { flex: 1; min-width: 86px; text-align: center; font-size: .76rem; color: var(--muted); position: relative; padding-top: 26px; }
.tracker li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.tracker li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.tracker li:first-child::after { display: none; }
.tracker li.done { color: var(--ink); }
.tracker li.done::before { background: var(--brand-red); border-color: var(--brand-red); }
.tracker li.done::after { background: var(--brand-red); }
.tracker li.now { font-weight: 700; }
.item-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 12px; }
.item-table th, .item-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.item-table .num { text-align: right; white-space: nowrap; }
.item-table input, .admin-table input, .admin-table select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; max-width: 130px; }

/* admin dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 1.7rem; color: var(--ink); font-family: var(--font-head); }
.stat span { font-size: .85rem; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--brand-navy); color: #fff; font-weight: 600; }
.admin-table img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-bar input, .admin-bar select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.modal { position: fixed; inset: 0; background: rgba(16,32,58,.55); display: none; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; z-index: 150; }
.modal.open { display: flex; }
.modal .form-card { width: 100%; max-width: 640px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { width: auto; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row img { width: 56px; height: 42px; }
  .cart-row .cart-side { grid-column: 2; }
}

/* store links in the top strip */
.topbar-item.store-link { font-weight: 700; color: #fff; white-space: nowrap; display: inline !important; }
.topbar-item.store-link span { display: inline !important; }

/* photo manager in the product editor */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.photo-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.photo-tile img { width: 100%; height: 84px; object-fit: cover; display: block; background: var(--surface-soft); }
.photo-tile.is-main { border: 2px solid var(--brand-red); }
.photo-tile .pt-label { font-size: .72rem; font-weight: 700; color: var(--brand-red); padding: 4px 8px 0; min-height: 18px; }
.photo-tile .pt-actions { display: flex; justify-content: space-between; gap: 4px; padding: 4px 8px 8px; }
.photo-tile button { white-space: nowrap; border: 0; background: none; padding: 2px 0; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink); }
.photo-tile button.pt-remove { color: var(--brand-red); font-weight: 700; }

/* size / quantity picker on the product page */
.config-box { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; display: grid; gap: 12px; }
.config-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.config-row label { font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.config-row select, .config-row input { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; width: 100%; background: #fff; }
.config-note { margin: -4px 0 0 142px; font-size: .8rem; }
.config-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.config-total { font-size: 1.6rem; font-weight: 700; color: var(--brand-red); font-family: var(--font-head); }
.bulk-table summary { cursor: pointer; color: var(--brand-red); font-weight: 600; }
@media (max-width: 520px) { .config-row { grid-template-columns: 1fr; gap: 6px; } .config-note { margin-left: 0; } }

/* sizes & rates editor in the dashboard */
.opt-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.opt-table th { text-align: left; font-weight: 600; padding: 4px 6px; color: var(--ink); }
.opt-table td { padding: 4px 6px; }
.opt-table input { width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.opt-table .x { border: 0; background: none; color: var(--brand-red); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }
.opt-table select { width: 100%; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.opt-table .v-unit { min-width: 88px; }
.opt-table .v-price { min-width: 90px; }

/* finishing options on the product page */
.config-finish { align-items: start; }
.config-label { font-weight: 600; color: var(--ink); font-family: var(--font-head); padding-top: 4px; }
.finish-list { display: grid; gap: 8px; }
.finish-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; }
.finish-opt:has(.cf-fin:checked) { border-color: var(--brand-red); background: var(--surface-tint); }
.finish-opt .cf-fin { width: 18px; height: 18px; accent-color: var(--brand-red); flex: none; }
.finish-opt > span { flex: 1; }
.finish-opt .form-note { margin-left: 4px; }
.finish-opt .cf-fin-count { width: 74px !important; padding: 7px 8px; flex: none; }
.finish-opt .cf-fin-count:disabled { opacity: .45; }

/* B2B printer price */
.partner-note { display: block; width: 100%; color: #17693c; font-weight: 600; font-size: .9rem; }
.partner-note s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.partners-box { margin-bottom: 26px; }
.pa-pct, .pa-email, .admin-table .pt-email { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; }

/* logged-in printer on the B2B page */
.printer-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }

/* dashboard: left sidebar */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 0; }
.dash-link { text-align: left; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); padding: 11px 14px; border-radius: var(--radius-sm); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-link:hover { background: var(--surface-soft); }
.dash-link.active { background: var(--brand-red); color: #fff; }
.dash-count { background: #fff4d6; color: #7a5600; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; }
.dash-main { min-width: 0; }
.b2b-files { margin: 8px 0 0; max-width: 560px; }
.b2b-files li { align-items: center; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; gap: 16px; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .dash-link { white-space: nowrap; padding: 9px 12px; }
}
.b2b-amount, .b2b-pay, .b2b-status, .o-status, .st-role { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }

/* B2B review buttons */
.review-btns { display: flex; flex-wrap: wrap; gap: 4px; min-width: 150px; }
.review-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--body); white-space: nowrap; }
.review-btn.rv-approved.on { background: #e6f7ed; border-color: #17693c; color: #17693c; }
.review-btn.rv-hold.on { background: var(--surface-tint); border-color: var(--brand-red); color: var(--brand-red-dark); }
.review-btn.rv-pending.on { background: #fff4d6; border-color: #b58500; color: #7a5600; }
.printer-status { display: inline-block; margin-top: 6px; }

.file-error { color: var(--brand-red-dark) !important; font-weight: 600; }
#cf-file-list { margin-top: 6px; }

/* Quick Buy */
.qb-field { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.qb-field span { width: 36px; flex: none; }
.qb-field select, .qb-field input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.qb-price { font-size: 1.1rem; margin: 10px 0 2px; }
.qb-stock { margin: 0 0 10px; font-size: .82rem; font-weight: 600; }
.stock-ok { color: #17693c; }
.stock-low { color: #9a6700; }
.stock-out { color: var(--brand-red-dark); }
.qb-card button:disabled { opacity: .45; cursor: not-allowed; }
.opt-table .v-del, .opt-table .v-stock { min-width: 70px; }

/* Quick Buy section in the dashboard */
.quick-table input[type=number] { max-width: 110px; }
.quick-head td { background: var(--surface-soft); }
.quick-name { display: flex; align-items: center; gap: 12px; }
.quick-size-name { padding-left: 84px !important; color: var(--ink); }
.qk-low { border-color: #b58500 !important; background: #fff8e6; }
.qk-saved { border-color: #17693c !important; background: #e6f7ed; transition: background .3s; }

/* Walk-in order */
.walkin { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.walkin .form-card { padding: 22px; }
.walkin h3 { font-size: 1.05rem; }
#wi-product { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; font: inherit; }
#wi-product option { padding: 5px 6px; }
.wi-rate { margin: 12px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.walkin .config-row { grid-template-columns: 110px 1fr; margin-top: 10px; }
.receipt { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; margin-top: 16px; background: #fff; }
.receipt-head { text-align: center; margin-bottom: 10px; }
@media (max-width: 1100px) { .walkin { grid-template-columns: 1fr; } }
@media print {
  body.printing-receipt * { visibility: hidden; }
  body.printing-receipt #wi-receipt-print, body.printing-receipt #wi-receipt-print * { visibility: visible; }
  body.printing-receipt #wi-receipt-print { position: absolute; left: 0; top: 0; width: 80mm; border: 0; }
}

.form-note.error-text { color: #b42318; font-weight: 600; }

/* Dashboard orders: one line per order, click to expand */
.order-list-head { display: grid; grid-template-columns: 34px minmax(0,1fr) 230px 120px; gap: 14px; padding: 0 16px 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.order-list-head span:last-child { text-align: right; }
.order-card.order-row { padding: 0; margin-bottom: 8px; overflow: hidden; }
.order-sum { display: grid; grid-template-columns: 34px minmax(0,1fr) 230px 120px; gap: 14px; align-items: center; width: 100%; padding: 12px 16px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.order-sum:hover { background: #f8f9fb; }
.order-sum:focus-visible { outline: 2px solid var(--brand-red); outline-offset: -2px; }
.order-row.open .order-sum { background: #f8f9fb; border-bottom: 1px solid var(--line); }
.os-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; line-height: 1; background: #fff; }
.order-row.open .os-icon { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.os-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-co { color: var(--muted); }
.os-sub { display: block; font-size: .78rem; color: var(--muted); }
.os-prog { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.os-amt { text-align: right; font-weight: 700; }
.os-pay { display: block; font-size: .75rem; font-weight: 600; color: #b54708; }
.os-pay.paid { color: #067647; }
.mini-steps { display: flex; gap: 3px; width: 100%; max-width: 200px; }
.mini-steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.mini-steps i.done { background: var(--brand-red); }
.mini-steps i.now { background: var(--brand-red); box-shadow: 0 0 0 2px rgba(216,31,38,.2); }
.mini-steps.cancelled { height: 6px; border-radius: 3px; background: repeating-linear-gradient(45deg, #d0d5dd 0 6px, #eaecf0 6px 12px); }
.order-body { padding: 4px 22px 20px; }
@media (max-width: 760px) {
  .order-list-head { display: none; }
  .order-sum { grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px 10px; padding: 12px; }
  .os-prog { grid-column: 2 / 4; grid-row: 2; flex-direction: row; align-items: center; gap: 10px; }
  .os-amt { grid-column: 3; grid-row: 1; }
  .order-body { padding: 4px 14px 16px; }
}

/* Walk-in product list: one product per row with a line between */
.wi-plist { margin-top: 8px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wi-pcat { position: sticky; top: 0; z-index: 1; padding: 7px 12px; background: #f2f4f7; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wi-pitem { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; background: #fff; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wi-pitem:last-child { border-bottom: 0; }
.wi-pitem:hover { background: #f8f9fb; }
.wi-pitem:focus-visible { outline: 2px solid var(--brand-red); outline-offset: -2px; }
.wi-pitem.active { background: #fdecec; box-shadow: inset 3px 0 0 var(--brand-red); font-weight: 600; }
.wi-pprice { flex-shrink: 0; font-size: .88rem; color: var(--muted); }
.wi-pitem.active .wi-pprice { color: var(--brand-red); }

.cust-actions { display: flex; flex-direction: column; gap: 6px; min-width: 104px; }
.cust-actions .btn { width: 100%; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.btn-danger-soft { color: #b42318; border-color: #f3c2bd; }
.btn-danger-soft:hover { background: #fef3f2; color: #b42318; border-color: #b42318; }

.row-inactive td { color: var(--muted); }
.row-inactive td strong { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.switch-line { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.switch-line input { width: 16px; height: 16px; accent-color: var(--brand-red); }

/* WhatsApp message templates */
.wa-card { margin-bottom: 16px; }
.wa-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink, #1d2939); }
.wa-chip code { color: var(--brand-red); font-weight: 700; }
.wa-chip:hover { border-color: var(--brand-red); }
.wa-list { display: grid; gap: 12px; }
.wa-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.wa-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.wa-text { width: 100%; min-height: 70px; resize: vertical; font: inherit; font-size: .92rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.wa-text:focus { outline: 2px solid rgba(216,31,38,.25); border-color: var(--brand-red); }
.wa-preview { margin-top: 8px; padding: 8px 12px; background: #e7f8ee; border-radius: 8px; font-size: .86rem; line-height: 1.45; }
.wa-savebar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, #fff 35%); }

/* Backup */
.bk-last { margin: 0 0 14px; }
.bk-options { display: grid; gap: 10px; margin-bottom: 16px; }
.bk-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.bk-opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand-red); flex-shrink: 0; }
.bk-box { margin-top: 14px; }
.bk-track { height: 10px; border-radius: 5px; background: #eaecf0; overflow: hidden; }
.bk-bar { height: 100%; width: 0; background: var(--brand-red); transition: width .2s; }
.nav-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); vertical-align: middle; }
.dash-link.active .nav-dot { background: #fff; }

/* Online ordering paused */
.orders-paused-banner { background: #fff4e5; border-bottom: 1px solid #f5c88a; color: #7a3e00; }
.orders-paused-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; font-weight: 600; }
.orders-paused-banner .op-icon { font-size: 1.2rem; }
.orders-paused-banner.flash { animation: op-flash .9s ease 2; }
@keyframes op-flash { 50% { background: #ffd8a8; } }
@media (prefers-reduced-motion: reduce) { .orders-paused-banner.flash { animation: none; } }

/* Website orders on/off bar */
.online-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid #b7e4c7; background: #effaf3; border-radius: var(--radius); }
.online-bar.is-off { border-color: #f5c88a; background: #fff4e5; }
.online-bar .ob-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.online-bar .ob-msg { flex-basis: 100%; }
.big-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; cursor: pointer; }
.big-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.big-slider { position: absolute; inset: 0; background: #d0d5dd; border-radius: 30px; transition: background .2s; }
.big-slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.big-switch input:checked + .big-slider { background: #12a150; }
.big-switch input:checked + .big-slider::before { transform: translateX(22px); }
.big-switch input:focus-visible + .big-slider { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.job-status.job-open { border-color: #12a150; color: #067647; font-weight: 600; }
.job-status.job-closed { color: var(--muted); }

.link-btn.link-danger { color: #b42318; font-size: .82rem; }

/* Website Content */
.sc-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sc-page { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.sc-page:hover { border-color: var(--brand-red); }
.sc-hours { display: grid; gap: 6px; }
.sc-hour { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }

/* Roles & permissions */
.perm-table th.perm-col, .perm-table td.perm-col { text-align: center; width: 92px; }
.perm-table td.perm-col input { width: 18px; height: 18px; accent-color: var(--brand-red); cursor: pointer; }
.perm-table td.perm-col input:disabled { cursor: default; opacity: .6; }
.perm-table tr.perm-group th { background: var(--surface-soft, #f2f4f7); color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 8px; padding-bottom: 8px; }
.perm-desc { margin: 0 0 12px; padding-left: 18px; }

/* Our Works console */
#wk-modal .form-card { max-width: 820px; }
.wk-slug-row { display: flex; align-items: center; gap: 6px; }
.wk-slug-row input { flex: 1; }
.wk-photos { display: grid; gap: 10px; margin: 8px 0; }
.wk-photo { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wk-photo img { width: 130px; height: 90px; object-fit: cover; border-radius: 6px; }
.wk-photo-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wk-photo-side .wk-alt { width: 100%; }
.wk-upload { cursor: pointer; align-self: flex-start; }
.wk-switches { justify-content: flex-end; gap: 10px; }
#wk-datebox.wk-off input { opacity: .55; }
.wk-google { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: Arial, sans-serif; }
.wk-gp-url { font-size: 12px; color: #4d5156; }
.wk-gp-title { font-size: 18px; color: #1a0dab; line-height: 1.3; }
.wk-gp-desc { font-size: 13px; color: #4d5156; line-height: 1.5; }
@media (max-width: 600px) { .wk-photo { grid-template-columns: 1fr; } .wk-photo img { width: 100%; height: auto; aspect-ratio: 3/2; } }

.wk-newcat, .wk-catlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: #fafbfc; }
.wk-newcat { flex-direction: row; }
.wk-newcat input { flex: 1; }

/* B2B items */
.br-desc { display: block; margin-top: 6px; width: 100%; font-size: .85rem; }
.b2b-items { margin: 14px 0; }
.b2b-items h4 { margin: 0 0 6px; font-size: .95rem; }
.b2b-item-table input[type=number] { width: 70px; padding: 6px 8px; }
.b2b-item-table select { padding: 6px; margin-left: 4px; }
.bi-size { white-space: nowrap; }
.b2b-sum { max-width: 360px; margin-left: auto; }
.b2b-items > .sum-total { max-width: 360px; margin-left: auto; }
.b2b-edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 10px 12px; background: #f8f9fb; border-radius: 10px; }
.b2b-edit-bar .bi-total { flex: 1; min-width: 180px; text-align: right; }
