#appointment-acupuncture-panel[hidden], #appointment-general-panel[hidden] { display:none !important; }
.acu-calendar { display:flex; gap:22px; padding:18px; border:1px solid #dbe5ee; border-radius:20px; background:#fff; color:#243747; }
.acu-sidebar { width:210px; flex:none; }
.acu-sidebar>.primary-btn { width:100%; margin-bottom:24px; }
.acu-mini-heading, .acu-picker-heading { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.acu-mini-heading b { flex:1; font-size:14px; }
.acu-mini-heading button, .acu-picker-heading button, .acu-toolbar>button:not(.secondary-btn):not(.primary-btn) { border:0; background:transparent; color:#425c70; padding:5px 11px; border-radius:50%; font-size:25px; cursor:pointer; }
.acu-mini-grid, .acu-picker-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; }
.acu-mini-grid small, .acu-picker-grid small { font-size:11px; padding:6px 0; color:#64798a; }
.acu-mini-grid button, .acu-picker-grid button { border:0; background:transparent; color:inherit; aspect-ratio:1; border-radius:50%; cursor:pointer; padding:0; min-width:0; }
.acu-mini-grid button { font-size:12px; }
.acu-calendar .today { background:#1967d2; color:white; border-radius:50%; }
.acu-mini-grid .selected, .acu-picker-grid .selected { background:#c2e7ff; color:#06477c; font-weight:700; }
.acu-mini-grid .selected.today { background:#1967d2; color:white; }
.acu-calendar .muted, .acu-picker-grid .muted { color:#8997a3; background:#fafbfd; }
.acu-sidebar>p { font-size:13px; margin-top:24px; }
.acu-dot { display:inline-block; width:11px; height:11px; border-radius:3px; background:#1967d2; margin-right:7px; }
.acu-main { flex:1; min-width:0; }
.acu-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:48px; }
.acu-toolbar .acu-mobile-add { display:none; }
.acu-toolbar h3 { flex:1; margin:0 10px; font-size:20px; font-weight:600; }
.acu-toolbar select { width:auto; padding:9px 14px; border:1px solid #ccd7e1; border-radius:18px; background:#fff; color:inherit; }
.acu-toolbar .secondary-btn { padding:10px 15px; border:1px solid #ccd7e1; background:white; border-radius:18px; }
.acu-status { min-height:28px; padding:5px 2px 8px; font-size:12px; color:#6b7b88; }
.acu-error, .acu-form-status { color:#ae2828; }
.acu-month { border:1px solid #dbe5ee; border-radius:12px; overflow:hidden; }
.acu-month-head, .acu-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.acu-month-head b { font-size:12px; font-weight:500; text-align:center; padding:12px 0; border-bottom:1px solid #dbe5ee; }
.acu-month-cell { position:relative; min-height:128px; padding:5px 4px; border-right:1px solid #dbe5ee; border-bottom:1px solid #dbe5ee; min-width:0; }
.acu-month-cell:nth-child(7n) { border-right:0; }
.acu-month-cell:nth-last-child(-n+7) { border-bottom:0; }
.acu-day-number { display:block; margin:0 auto 5px; width:27px; height:27px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; border-radius:50%; }
.acu-cell-add { position:absolute; right:3px; top:5px; border:0; background:transparent; color:#6b7b88; font-size:17px; padding:2px 5px; cursor:pointer; }
.acu-event { display:block; width:100%; max-width:100%; text-align:left; font:inherit; font-size:12px; border:0; border-radius:5px; color:#124782; background:#d5e8ff; padding:5px; margin:2px 0; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acu-event:hover { background:#bedaff; }
.acu-event b { font-weight:600; }
.acu-more { border:0; background:transparent; color:#3e617a; font-size:12px; cursor:pointer; padding:5px; }
.acu-time-scroll { max-height:70vh; min-height:360px; overflow:auto; border:1px solid #dbe5ee; border-radius:12px; }
.acu-time-table { min-width:calc(55px + var(--acu-days) * 100px); }
.acu-time-heading, .acu-time-body { display:grid; grid-template-columns:55px repeat(var(--acu-days),minmax(0,1fr)); }
.acu-time-heading { position:sticky; top:0; z-index:3; background:#fff; border-bottom:1px solid #dbe5ee; }
.acu-time-heading>small { align-self:end; padding:6px 2px; font-size:10px; color:#7c8b97; }
.acu-time-heading>button { background:transparent; border:0; border-left:1px solid #edf1f5; padding:9px 2px; color:inherit; cursor:pointer; }
.acu-time-heading span { display:block; font-size:12px; }
.acu-time-heading b { display:block; width:34px; height:34px; line-height:34px; margin:3px auto 0; font-size:22px; font-weight:500; }
.acu-time-body { height:1440px; }
.acu-hour-labels { position:relative; font-size:10px; color:#6b7b88; }
.acu-hour-labels>span { position:absolute; right:6px; }
.acu-time-column { position:relative; border-left:1px solid #dbe5ee; background:repeating-linear-gradient(to bottom,transparent 0px,transparent 59px,#dbe5ee 59px,#dbe5ee 60px); }
.acu-time-slot { position:absolute; left:0; width:100%; height:30px; padding:0; border:0; background:transparent; cursor:pointer; }
.acu-time-slot:hover { background:#f0f6fd; }
.acu-time-event { position:absolute; z-index:1; background:#1967d2; color:#fff; white-space:normal; overflow-wrap:anywhere; line-height:1.25; padding:3px 5px; margin:0; }
.acu-time-event:hover { background:#1558b4; }
.acu-time-event>span { display:block; }
.acu-appointment-form { width:100%; }
.acu-picker-heading { justify-content:space-between; }
.acu-picker-grid { max-width:420px; width:100%; margin:auto; }
.acu-picker-grid button { max-height:44px; font-size:14px; }
.acu-picker-grid .selected.muted { background:#c2e7ff; color:#06477c; }
.acu-selected-dates { margin:12px 0; max-height:90px; overflow:auto; font-size:13px; color:#195a87; line-height:1.6; }
.acu-form-status { margin:4px 0; font-size:14px; }
.acu-calendar button:focus-visible, .acu-picker-grid button:focus-visible { outline:2px solid #1967d2; outline-offset:2px; }
@media(max-width:1100px) { .acu-sidebar { width:175px; } .acu-calendar { gap:12px; padding:12px; } .acu-toolbar h3 { font-size:17px; } }
@media(max-width:800px) { .acu-sidebar { display:none; } .acu-calendar { display:block; padding:8px; } .acu-main::before { content:none; } .acu-toolbar h3 { order:2; flex-basis:100%; margin:6px 0; } .acu-month-cell { min-height:115px; } .acu-event { font-size:11px; } }
@media(max-width:800px) { .acu-toolbar .acu-mobile-add { display:block; font-size:13px; padding:10px; border-radius:14px; background:#1967d2; color:#fff; } }
/* Hai bảng theo ca sáng/chiều; giữ đầy đủ lịch khi số bệnh nhân vượt 7. */
.acu-day-sheets{display:grid;gap:24px;min-width:0}
.acu-day-section{border:1px solid #cbd8c6;border-radius:10px;overflow:hidden;min-width:0}
.acu-day-section h3{margin:0;padding:12px;text-align:center;font-size:16px;background:#fff;color:#263a31}
.acu-day-section.acupuncture h3{background:#fff}
.acu-day-sheet{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse;font-size:14px}
.acu-day-sheet th,.acu-day-sheet td{background:#fff;padding:8px;border:1px solid #d0d7c8;white-space:normal;overflow-wrap:anywhere;text-align:left;color:#243747;vertical-align:middle}
.acu-day-sheet thead th{background:#fff;font-size:13px;text-transform:none;text-align:center}
.acu-day-sheet th:first-child{width:90px}.acu-day-sheet thead th:nth-child(2){width:180px}
.acu-day-sheet .acu-morning{background:#fff}.acu-day-sheet .acu-afternoon{background:#fff}
.acupuncture .acu-day-sheet .acu-morning{background:#fff}.acupuncture .acu-day-sheet .acu-afternoon{background:#fff}
.acu-sheet-add{display:inline-block;background:transparent;border:1px dashed #80998a;border-radius:6px;color:#3c604e;padding:4px 10px;cursor:pointer;font-size:12px;margin-top:4px}
.acu-numbered{margin:0;padding-left:25px;list-style:decimal}
.acu-numbered li{min-height:24px;padding:1px 0}.acu-numbered .acu-event{display:inline-block;margin:0;vertical-align:middle}
.acu-empty-position{color:#869280}.acu-day-sheet .acu-event{white-space:normal;overflow-wrap:anywhere;font-size:14px}
.acu-event.examination{background:#ffe2b2;color:#6b4109}.acu-event.examination:hover{background:#ffd295}
.acu-exam-legend{color:#936121}.acu-outside{padding:12px;background:#fff}
@media(max-width:600px){.acu-day-sheet{font-size:12px}.acu-day-sheet th:first-child{width:50px}.acu-day-sheet thead th:nth-child(2){width:104px}.acu-day-sheet th,.acu-day-sheet td{background:#fff;padding:5px}.acu-day-sheet .acu-event{font-size:12px}.acu-day-section h3{font-size:14px}}
.acu-day-sheet tbody th{background:#fff;text-transform:none;font-weight:600;word-break:normal;overflow-wrap:normal}
@media(max-width:600px){.acu-day-sheet tbody th{font-size:11px;font-weight:500}.acu-day-sheet th[rowspan]{white-space:normal}}

.acu-appointment-form [hidden]{display:none!important}
.acu-appointment-form [data-acu-new-patient]{margin-top:10px}
