/* ===== v22: เวลาเปิด-ปิดร้าน + ปรับความสวยงามหน้าแอดมิน (ชั้นเสริม ลบบล็อกนี้ได้หากต้องการย้อนกลับ) ===== */
.bh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.bh-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--card-border,#e7eaf1);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:background .2s,border-color .2s,opacity .2s}
.bh-row:hover{border-color:rgba(13,148,136,.45)}
.bh-row.is-closed{background:#eef0f4;border-style:dashed;opacity:.8}
.bh-row.is-closed .bh-day label{color:#8a94a3}
.bh-day{display:flex;align-items:center;gap:10px;min-width:150px}
.bh-day label{font-weight:700;cursor:pointer}
.bh-badge{font-size:.72rem;font-weight:600;padding:2px 9px;border-radius:999px}
.bh-badge-on{background:#d5f3ee;color:#0f766e}
.bh-badge-off{background:#d9dde3;color:#6b7686}
.bh-badge.d-none{display:none!important}
.bh-times{display:flex;align-items:center;gap:8px}
.bh-times .form-control{width:122px;border-radius:12px}
.bh-times .form-control:disabled{background:#e3e6eb;color:#9aa4b2}
.bh-to{color:#64748b;font-size:.9rem}
.bh-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bh-tools-t{font-size:.85rem;color:#64748b;font-weight:600}
html[data-rr-mode="dark"] .bh-row{background:#111a2c;border-color:#223049}
html[data-rr-mode="dark"] .bh-row.is-closed{background:#0d1524}
html[data-rr-mode="dark"] .bh-badge-off{background:#223049;color:#94a5bf}
html[data-rr-mode="dark"] .bh-times .form-control:disabled{background:#0d1524;color:#5d6d86}

/* ===== ปรับความสวยงามทั่วหน้าแอดมิน ===== */
.stat-card{border-radius:20px!important;border:1px solid rgba(231,234,241,.9)!important;box-shadow:0 1px 2px rgba(15,23,42,.04),0 18px 36px -24px rgba(15,23,42,.35)!important}
.card{border-radius:20px!important;border-color:var(--card-border,#e7eaf1)!important;box-shadow:0 1px 2px rgba(15,23,42,.04),0 14px 30px -22px rgba(15,23,42,.25)}
.btn{border-radius:12px!important;font-weight:600;transition:transform .12s,box-shadow .2s,filter .2s}
.btn:not(:disabled):active{transform:translateY(1px) scale(.99)}
.btn-success,.btn-primary{box-shadow:0 10px 20px -12px rgba(13,148,136,.7)}
.btn-success:not(:disabled):hover,.btn-primary:not(:disabled):hover{filter:saturate(1.1) brightness(1.03)}
.form-control,.form-select{border-radius:12px!important;border-color:#dfe4ec}
.form-control:focus,.form-select:focus{border-color:#0d9488!important;box-shadow:0 0 0 .25rem rgba(13,148,136,.14)!important}
.table>:not(caption)>*>*{padding-top:.8rem;padding-bottom:.8rem}
.table thead th{font-size:.8rem;letter-spacing:.02em;color:#64748b;background:#f6f8fb!important;border-bottom:1px solid #e7eaf1}
.table-hover tbody tr{transition:background .15s}
.table-hover tbody tr:hover{background:rgba(13,148,136,.05)}
.modal-content{border-radius:24px!important;border:0!important;box-shadow:0 40px 90px -30px rgba(2,6,23,.55)!important}
.accordion-item.settings-card{border-radius:18px!important;overflow:hidden;margin-bottom:12px;border:1px solid var(--card-border,#e7eaf1)!important;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.accordion-button:not(.collapsed){background:linear-gradient(90deg,rgba(13,148,136,.08),transparent)!important;color:inherit!important}
.badge{border-radius:999px;font-weight:600}
@keyframes rrAdminFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tab-pane,.page-section,.stat-card{animation:rrAdminFade .3s ease both}
@media (max-width:576px){.bh-grid{grid-template-columns:1fr}.bh-times .form-control{width:112px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
html[data-rr-mode="dark"] .table thead th{background:#162238!important;color:#94a5bf;border-color:#223049}
html[data-rr-mode="dark"] .card,html[data-rr-mode="dark"] .stat-card{border-color:#223049!important}
