/* Schedule H1 Register — private, branch-scoped record surface. */
.h1-register-view { max-width: 1520px; }
.h1-register-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.h1-register-heading h1 { margin: 4px 0 6px; color: #274b3b; font-size: clamp(25px, 2.4vw, 35px); letter-spacing: -.9px; }
.h1-register-heading p:not(.eyebrow) { max-width: 670px; margin: 0; color: #72887e; font-size: 13px; line-height: 1.58; }
.h1-register-heading .soft-badge { flex: 0 0 auto; margin-top: 6px; }
.h1-summary-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 17px; padding: 0; overflow: hidden; }
.h1-summary-item { display: grid; gap: 5px; min-width: 0; padding: 18px 21px; border-right: 1px solid #e2ede6; background: linear-gradient(180deg, #fff 0%, #fcfefd 100%); }
.h1-summary-item:last-child { border-right: 0; }
.h1-summary-item span { color: #6d867a; font-size: 10px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.h1-summary-item strong { overflow-wrap: anywhere; color: #225b44; font-size: 25px; letter-spacing: -.55px; }
.h1-summary-item small { color: #8a9e94; font-size: 10px; }
.h1-filter-panel { padding: 19px 21px; }
.h1-filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.h1-filter-heading h2, .h1-results-heading h2 { margin: 3px 0 0; color: #315442; font-size: 17px; letter-spacing: -.3px; }
.h1-filter-heading p:not(.eyebrow) { max-width: 480px; margin: 1px 0 0; color: #7b9186; font-size: 11px; line-height: 1.55; }
.h1-filter-form { display: grid; grid-template-columns: minmax(240px, 1.65fr) minmax(132px, .66fr) minmax(132px, .66fr) auto; gap: 11px; align-items: end; }
.h1-filter-form label { display: grid; min-width: 0; gap: 6px; color: #5f786c; font-size: 10px; font-weight: 800; }
.h1-filter-form input { width: 100%; min-width: 0; min-height: 39px; border: 1px solid #d4e4da; border-radius: 7px; padding: 8px 10px; color: #294d3c; background: #fff; font: inherit; font-size: 12px; }
.h1-filter-form input:focus { outline: 2px solid #b4dfc4; outline-offset: 1px; border-color: #79b995; }
.h1-filter-actions { display: flex; gap: 8px; min-height: 39px; }
.h1-filter-actions .button { min-height: 39px; padding-inline: 13px; font-size: 11px; white-space: nowrap; }
.h1-register-status { min-height: 18px; margin: 12px 0 0; color: #758c81; font-size: 10px; line-height: 1.5; }
.h1-register-status.is-error { color: #a15551; }
.h1-register-status.is-loading { color: #467960; }
.h1-results-panel { margin-top: 17px; padding: 0; overflow: hidden; }
.h1-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 21px 14px; border-bottom: 1px solid #e4eee8; }
.h1-results-heading .soft-badge { flex: 0 0 auto; }
.h1-table-wrap { position: relative; overflow: auto; max-height: 620px; overscroll-behavior: contain; }
.h1-table-wrap::after { position: sticky; right: 10px; bottom: 8px; float: right; content: "↔ Scroll for record details"; border: 1px solid #d5e5db; border-radius: 12px; padding: 3px 7px; color: #6b8879; background: rgb(255 255 255 / 94%); box-shadow: 0 2px 8px rgb(37 73 54 / 8%); font-size: 8px; font-weight: 750; pointer-events: none; }
.h1-register-table { width: 1510px; min-width: 1510px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.h1-register-table th { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid #dce9e1; padding: 11px 10px; color: #688176; background: #eef6f1; font-size: 8px; font-weight: 850; letter-spacing: .58px; text-align: left; white-space: nowrap; }
.h1-register-table td { border-bottom: 1px solid #edf2ee; padding: 12px 10px; color: #4c6b5c; background: #fff; font-size: 10px; vertical-align: top; line-height: 1.45; }
.h1-register-table th:nth-child(1) { width: 116px; }.h1-register-table th:nth-child(2) { width: 212px; }.h1-register-table th:nth-child(3) { width: 192px; }.h1-register-table th:nth-child(4) { width: 302px; }.h1-register-table th:nth-child(5) { width: 220px; }.h1-register-table th:nth-child(6) { width: 120px; }.h1-register-table th:nth-child(7) { width: 170px; }
.h1-register-table td:first-child { color: #315f4a; font-weight: 760; white-space: nowrap; }
.h1-register-table strong { display: block; overflow-wrap: anywhere; color: #305746; font-size: 10px; }
.h1-register-table small { display: block; margin-top: 3px; overflow-wrap: anywhere; color: #7c9287; font-size: 9px; line-height: 1.45; }
.h1-register-table .h1-legacy-note { display: inline-block; margin-top: 6px; border-radius: 9px; padding: 3px 6px; color: #986c27; background: #fff1d8; font-size: 8px; font-weight: 780; }
.h1-medicine-list, .h1-quantity-list { display: grid; gap: 7px; }
.h1-medicine-line, .h1-quantity-line { min-width: 0; border-left: 2px solid #b7d9c3; padding-left: 8px; }
.h1-medicine-line b, .h1-quantity-line b { display: block; overflow-wrap: anywhere; color: #355d4b; font-size: 10px; }
.h1-medicine-line span, .h1-quantity-line span { display: block; margin-top: 2px; overflow-wrap: anywhere; color: #7d9288; font-size: 8.5px; line-height: 1.45; }
.h1-register-table .h1-dash { color: #9aacA2; }
.h1-rx-actions { display: grid; gap: 6px; justify-items: start; }
.h1-rx-actions .button { min-height: 30px; padding: 6px 9px; font-size: 9px; white-space: nowrap; }
.h1-rx-empty { color: #879a91; font-size: 9px; }
.h1-table-empty { padding: 38px !important; color: #81968b !important; text-align: center; }
.h1-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e7eee9; padding: 12px 21px; color: #70877b; font-size: 10px; }
.h1-pagination > div { display: flex; gap: 8px; }
.h1-pagination .button { min-height: 32px; padding: 6px 11px; font-size: 9px; }
.h1-prescription-dialog { width: min(940px, calc(100vw - 32px)); max-height: min(800px, calc(100vh - 32px)); border: 1px solid #cde0d4; border-radius: 13px; padding: 0; color: #315747; background: #fff; box-shadow: 0 22px 65px rgb(21 60 43 / 28%); }
.h1-prescription-dialog::backdrop { background: rgb(14 45 33 / 44%); backdrop-filter: blur(2px); }
.h1-prescription-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e3ece5; padding: 19px 20px 14px; }
.h1-prescription-dialog-heading h2 { margin: 3px 0 4px; color: #28513e; font-size: 19px; }
.h1-prescription-dialog-heading p:not(.eyebrow) { margin: 0; color: #748b80; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.h1-prescription-status { margin: 13px 20px; color: #6b8377; font-size: 10px; line-height: 1.5; }
.h1-prescription-status.is-error { color: #a15551; }
.h1-prescription-preview { min-height: 320px; max-height: 58vh; margin: 0 20px; overflow: auto; border: 1px solid #dce9e1; border-radius: 9px; background: #f5f8f6; }
.h1-prescription-preview canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; background: #fff; }
.h1-prescription-preview img { display: block; width: 100%; height: auto; margin: auto; object-fit: contain; }
.h1-prescription-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 11px 20px 0; color: #6c8578; font-size: 10px; font-weight: 760; }
.h1-prescription-pager .button { min-height: 31px; padding: 5px 10px; font-size: 9px; }
.h1-prescription-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e5eee8; margin-top: 15px; padding: 13px 20px 18px; }
.h1-prescription-actions .button { min-height: 36px; font-size: 10px; }
@media (max-width: 1050px) { .h1-filter-form { grid-template-columns: minmax(220px, 1fr) 150px 150px; }.h1-filter-actions { grid-column: 1 / -1; }.h1-filter-actions .button { flex: 0 0 auto; } }
@media (max-width: 760px) { .h1-register-heading, .h1-filter-heading { flex-direction: column; }.h1-summary-panel { grid-template-columns: 1fr; }.h1-summary-item { border-right: 0; border-bottom: 1px solid #e2ede6; }.h1-summary-item:last-child { border-bottom: 0; }.h1-filter-form { grid-template-columns: 1fr; }.h1-filter-actions { grid-column: auto; }.h1-filter-actions .button { flex: 1; }.h1-results-heading, .h1-pagination { align-items: flex-start; flex-direction: column; }.h1-prescription-preview { max-height: 48vh; }.h1-prescription-pager { justify-content: space-between; margin-inline: 12px; } }
