/* ==========================================================================
   Accounts module (Horizon & Sidus books).
   Fixed-pixel layout like every other screen: zooming scales, nothing reflows.
   ========================================================================== */

/* ---- Management Accounts band ---- */

/* Accounts tabs stack the band above the screen; every other tab keeps the default row. */
.screen-tab-content:has(> .ma-band) {
    flex-direction: column;
}

/* Exactly two sections: the bordered logo box and the green text band beside it. */
.ma-band {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 56px;
    flex: 0 0 auto;
    padding: 4px 8px 0 8px;
    background: #ffffff;
}

.ma-band-logo {
    width: 150px;
    flex: 0 0 150px;
    border: 1px solid #b7c6d3;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    overflow: hidden;
}

.ma-band-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ma-band-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(#aed544, #8bbf2f);
    border: 1px solid #7fae2a;
    padding: 0 16px;
    overflow: hidden;
}

.ma-band-name {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #10251a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ma-band-label {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    color: #0d1f12;
    white-space: nowrap;
}

/* ---- sortable listing headers ----
   Every listing header cell is a SortHeader; the arrow marks the active column. The body
   reserves a stable scrollbar gutter and the header reserves the same one, so the header and
   its rows stay column-aligned whether or not a scrollbar is showing. */

.grid-sort {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    user-select: none;
}

.grid-sort:hover { background: rgba(31, 106, 51, 0.12); }

.grid-sort-label { overflow: hidden; text-overflow: ellipsis; }

.grid-sort-arrow {
    font-size: 8px;
    color: #1f6a33;
    min-width: 9px;
}

.grid-sort-active { color: #123d8a; }

.ob-body, .vr-body, .vr-detail-body, .ap-body, .bp-body, .bp-heads-body,
.pp-body, .pp-detail-body, .cp-body, .dg-body {
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.ob-head, .vr-head, .vr-detail-head, .ap-head, .bp-head, .bp-heads-head,
.pp-head, .pp-detail-head, .cp-head, .dg-head {
    overflow-y: auto;
    scrollbar-gutter: stable;
    /* Declaring overflow zeroes a flex item's automatic minimum size; without this a
       screen too short for its content squeezes the headings to half a line. */
    flex: 0 0 auto;
}

/* ---- fiscal year banner ---- */

.fy-banner {
    display: flex;
    height: 44px;
    margin-bottom: 6px;
    border: 1px solid #9fb0c0;
}

.fy-banner-art {
    flex: 1;
    background:
        repeating-linear-gradient(90deg, #e7ecef 0 36px, #dfe5e9 36px 72px),
        linear-gradient(#f2f5f7, #e2e8ec);
}

.fy-banner-year {
    width: 300px;
    background: #1f6a33;
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- FY selection ---- */

.fy-columns { display: flex; gap: 14px; }
.fy-art { width: 560px; border: 1px solid #9fb0c0; }
.fy-art svg { display: block; width: 100%; }
.fy-panel { width: 540px; }

.fy-row { display: flex; align-items: center; gap: 8px; margin: 10px 6px; }
.fy-label { width: 120px; font-weight: 700; font-size: 13px; }
.fy-serial { font-size: 16px; font-weight: 700; color: #123d8a; }
.fy-input { width: 300px; }

.fy-apply {
    width: 30px; height: 26px;
    border: 1px solid #7fae2a;
    background: #d9f0b2;
    cursor: pointer;
}
.fy-apply:hover { background: #c4e693; }

.fy-close-text { font-size: 12px; color: #333; margin: 6px; line-height: 1.5; }
.fy-closed-stamp { margin: 8px 6px; font-weight: 700; color: #a02020; }

.fy-close-btn {
    margin: 6px;
    padding: 6px 14px;
    background: #b33a2b;
    color: #fff;
    font-weight: 700;
    border: 1px solid #8a2b1f;
    cursor: pointer;
}
.fy-close-btn:hover { background: #9c3021; }

.fy-cancel-btn {
    margin: 6px;
    padding: 6px 14px;
    background: #e7ecef;
    border: 1px solid #9fb0c0;
    cursor: pointer;
}

.fy-close-confirm { margin: 6px; font-size: 13px; }

/* ---- chart of accounts ---- */

.coa-columns { display: flex; gap: 12px; }
.coa-left { width: 690px; }
.coa-right { width: 430px; }

/* View mode: the tree first, full width, with the legend beneath it. */
.coa-view { max-width: 900px; }
.coa-tree-wide { height: 430px; }
.coa-legend-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
}

.coa-banner { border: 1px solid #9fb0c0; margin-bottom: 8px; }
.coa-banner svg { display: block; width: 100%; }

.coa-tree {
    height: 520px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #b7c6d3;
    padding: 6px;
    font-size: 13px;
}

.coa-node-line {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 4px;
    cursor: pointer;
    user-select: none;
}
.coa-node-line:hover { background: #eaf2fa; }
.coa-node-selected { background: #d9e7f7; }

.coa-toggle {
    width: 15px; height: 15px;
    line-height: 11px;
    font-size: 11px;
    text-align: center;
    border: 1px solid #8a99a8;
    background: #f4f7fa;
    cursor: pointer;
    padding: 0;
}
.coa-toggle-space { width: 15px; display: inline-block; }

.coa-icon {
    width: 13px; height: 15px;
    display: inline-block;
    border: 1px solid #46545f;
    box-shadow: inset -3px 0 0 rgba(255, 255, 255, 0.55);
}

.coa-node-title { white-space: nowrap; }

.coa-detail { font-size: 12px; }
.coa-row { display: flex; align-items: flex-start; gap: 6px; margin: 7px 4px; }
.coa-label { width: 118px; font-weight: 700; padding-top: 3px; }
.coa-label-inline { font-weight: 700; padding-top: 3px; margin-left: 8px; }
.coa-static { font-weight: 700; padding-top: 3px; }
.coa-input { flex: 1; }
.coa-level { width: 46px; }

.coa-textarea {
    flex: 1;
    height: 74px;
    resize: none;
    border: 1px solid #9fb0c0;
    font: inherit;
    padding: 3px 5px;
    background: #fff;
}
.coa-textarea:disabled { background: #eef2f5; }
.coa-path { height: 56px; background: #eef2f5; }
.coa-blocked-hint { font-size: 11px; color: #7d2020; padding-top: 4px; }

.coa-legend { font-size: 12px; }
.coa-legend-row { display: flex; align-items: center; gap: 8px; margin: 5px 4px; }
.coa-legend-text { font-weight: 700; color: #123d8a; }
.coa-legend-wide { display: flex; gap: 16px; align-items: center; }

.coa-legend-art {
    width: 52px;
    height: 120px;
    background: #2b2117;
    color: #f2c14e;
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 13px;
}

/* ---- opening balance ---- */

.ob-grid-note, .vr-grid-note {
    background: linear-gradient(#dce9f5, #c2d6ea);
    border: 1px solid #9fb0c0;
    font-size: 11px;
    color: #445;
    padding: 3px 8px;
}

.ob-grid { border: 1px solid #9fb0c0; font-size: 12px; }
.ob-head, .ob-row, .ob-foot { display: flex; }

.ob-head {
    background: linear-gradient(#f2f6fa, #d8e4ef);
    font-weight: 700;
    border-bottom: 1px solid #9fb0c0;
}

.ob-col { padding: 3px 6px; border-right: 1px solid #cdd8e2; overflow: hidden; white-space: nowrap; }
.ob-col-l1 { width: 130px; }
.ob-col-l2 { width: 240px; }
.ob-col-l3 { width: 240px; }
.ob-col-tr { flex: 1; }
.ob-col-amt { width: 110px; text-align: right; }

.ob-body { height: 470px; overflow: auto; background: #fff; }
.ob-row:nth-child(even) { background: #f2f7fb; }
.ob-row-rolled .ob-col-tr { color: #1f6a33; font-weight: 700; }

.ob-input {
    width: 100%;
    border: 1px solid #d9c76a;
    background: #fdf6d8;
    text-align: right;
    font: inherit;
    padding: 1px 3px;
}

.ob-foot {
    border-top: 1px solid #9fb0c0;
    background: #e7ecef;
    font-weight: 700;
}

/* ---- voucher entry ---- */

.ve-columns { display: flex; gap: 10px; }
.ve-left { width: 230px; }
.ve-left-faded { opacity: 0.6; }
.ve-right { flex: 1; min-width: 0; }

.ve-row { display: flex; align-items: center; gap: 6px; margin: 7px 4px; }
.ve-row-stack { flex-wrap: wrap; }
.ve-label { font-weight: 700; font-size: 12px; min-width: 70px; white-space: nowrap; }
.ve-label-inline { min-width: 0; margin-left: 4px; }
.ve-year { width: 52px; }
.ve-month { width: 34px; }
.ve-no { width: 80px; }
.ve-type { width: 176px; }
.ve-date { width: 176px; }

.ve-apply {
    width: 30px; height: 24px;
    border: 1px solid #7fae2a;
    background: #d9f0b2;
    cursor: pointer;
}
.ve-apply-off { background: #e3e7ea; border-color: #aab6bf; }

.ve-clock { margin: 10px auto 0 auto; width: 150px; }
.ve-clock svg { display: block; width: 100%; }
.ve-calendar { margin-top: 8px; }

.ve-grid { border: 1px solid #9fb0c0; margin-bottom: 8px; }
.ve-grid-head { display: flex; font-weight: 700; font-size: 12px; color: #ffffff; }
.ve-grid-head-debit { background: linear-gradient(#3f6fb5, #2f57a0); }
.ve-grid-head-credit { background: linear-gradient(#79b93e, #5da02b); }

.ve-col { padding: 3px 6px; }
.ve-col-code { width: 150px; }
.ve-col-title { flex: 1; }
.ve-col-amount { width: 130px; text-align: right; }

.ve-entry-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    background: #eef2f6;
    border-bottom: 1px solid #cdd8e2;
}

.ve-side {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 0;
    font-size: 12px;
}
.ve-side-dr, .ve-side-cr { background: #8f1f1f; }

.ve-pick { border: 1px solid #9fb0c0; font: inherit; font-size: 12px; background: #fff; }
.ve-pick-code { width: 128px; }
.ve-pick-title { flex: 1; min-width: 0; }
.ve-amount { width: 118px; border: 1px solid #9fb0c0; text-align: right; font: inherit; padding: 2px 4px; }

.ve-add {
    width: 26px; height: 24px;
    border: 1px solid #8a99a8;
    background: #dde6ee;
    cursor: pointer;
}
.ve-add:disabled { opacity: 0.5; cursor: default; }

.ve-lines { height: 130px; overflow: auto; background: #fff; font-size: 12px; }
.ve-line { display: flex; border-bottom: 1px solid #e4ebf1; cursor: pointer; }
.ve-line:hover { background: #fbecec; }

.ve-grid-foot {
    text-align: right;
    font-weight: 700;
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    padding: 3px 8px;
    min-height: 20px;
}

.ve-footer { display: flex; align-items: center; gap: 6px; }
.ve-footer-label {
    background: #8f1f1f;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
}
.ve-narration { flex: 1; border: 1px solid #9fb0c0; font: inherit; padding: 3px 6px; }
.ve-chq { width: 130px; border: 1px solid #9fb0c0; font: inherit; padding: 3px 6px; }

/* ---- voucher registers ---- */

.vr-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 4px; }
.vr-search-label { font-weight: 700; font-size: 13px; color: #123d8a; }
.vr-month { width: 120px; }
.vr-type { width: 200px; }

.vr-go {
    width: 32px; height: 26px;
    border: 1px solid #7fae2a;
    background: #d9f0b2;
    cursor: pointer;
}
.vr-go:hover { background: #c4e693; }

.vr-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-left: 14px; }
.vr-chip { width: 18px; height: 14px; border: 1px solid #8a99a8; display: inline-block; margin-left: 10px; }

.vr-split { display: flex; gap: 8px; }
.vr-split-stacked { flex-direction: column; }

.vr-grid { flex: 1.4; border: 1px solid #9fb0c0; min-width: 0; }
.vr-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; border-bottom: 1px solid #9fb0c0; }
.vr-body { height: 240px; overflow: auto; background: #fff; font-size: 11px; }
.vr-row { display: flex; border-bottom: 1px solid #d8e0e8; cursor: pointer; }
.vr-row-selected { background: #1d4f91 !important; color: #fff; }
.vr-row-revoked { text-decoration: line-through; color: #8a1f1f; }

.vr-col { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.vr-col-no { width: 86px; }
.vr-col-name { width: 150px; }
.vr-col-narration { flex: 1; min-width: 160px; }
.vr-col-date { width: 96px; }
.vr-col-user { width: 130px; }
.vr-col-time { width: 70px; }
.vr-col-flag { width: 56px; text-align: center; }

.vr-record {
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    font-size: 11px;
    padding: 2px 8px;
}

.vr-detail { flex: 1; border: 1px solid #9fb0c0; min-width: 0; display: flex; flex-direction: column; }
.vr-detail-title {
    background: linear-gradient(#4d7fbe, #2f57a0);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 4px;
}
.vr-detail-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; }
.vr-detail-body { flex: 1; min-height: 150px; max-height: 220px; overflow: auto; background: #fff; font-size: 11px; }
.vr-detail-row { display: flex; border-bottom: 1px solid #e0e7ee; }
.vr-detail-row:first-child { background: #1d4f91; color: #fff; }

.vr-dcol { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.vr-dcol-code { width: 110px; }
.vr-dcol-desc { flex: 1; }
.vr-dcol-amt { width: 92px; text-align: right; }

.vr-detail-foot {
    display: flex;
    justify-content: flex-end;
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    font-weight: 700;
    font-size: 12px;
}

.vr-preview { margin-top: 8px; height: 420px; display: flex; }
.vr-preview .report-viewer { flex: 1; }

/* ---- cheque printing ---- */

.chq-grid { padding: 10px 6px; }
.chq-row { display: flex; align-items: center; gap: 10px; margin: 14px 10px; }
.chq-label { width: 120px; font-weight: 700; font-size: 13px; }
.chq-date { width: 170px; }
.chq-payto { width: 520px; }
.chq-amount { width: 140px; }
.chq-preview { margin-top: 8px; height: 380px; display: flex; }
.chq-preview .report-viewer { flex: 1; }

/* ---- purchase posting ---- */

.pp-master { border: 1px solid #9fb0c0; margin-bottom: 8px; }
.pp-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; border-bottom: 1px solid #9fb0c0; }
.pp-body { height: 200px; overflow: auto; background: #fff; font-size: 11px; }
.pp-row { display: flex; border-bottom: 1px solid #d8e0e8; cursor: pointer; }
.pp-row-selected { background: #1d4f91; color: #fff; }

.pp-col { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.pp-col-sr { width: 56px; }
.pp-col-dist { flex: 1.4; min-width: 150px; }
.pp-col-inv { width: 70px; }
.pp-col-date { width: 106px; }
.pp-col-user { width: 110px; }
.pp-col-time { width: 68px; }

.pp-lower { display: flex; gap: 10px; }
.pp-side { width: 210px; }

.pp-detail { flex: 1; border: 1px solid #9fb0c0; display: flex; flex-direction: column; min-width: 0; }
.pp-detail-title {
    background: linear-gradient(#4d7fbe, #2f57a0);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 4px;
}
.pp-detail-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; }
.pp-detail-body { flex: 1; overflow: auto; background: #fff; font-size: 11px; min-height: 220px; }
.pp-detail-row { display: flex; border-bottom: 1px solid #e0e7ee; }

.pp-dcol { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.pp-dcol-product { flex: 1; min-width: 160px; }
.pp-dcol-num { width: 62px; text-align: right; }
.pp-dcol-total { width: 92px; text-align: right; font-weight: 700; background: #fdf6d8; }
.pp-dcol-date { width: 84px; }
.pp-dcol-batch { width: 72px; }

.pp-detail-foot {
    text-align: right;
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    font-weight: 700;
    padding: 3px 8px;
    min-height: 20px;
}

/* ---- advance posting ---- */

.ap-grid { border: 1px solid #9fb0c0; margin-bottom: 8px; }
.ap-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; border-bottom: 1px solid #9fb0c0; }
.ap-body { height: 210px; overflow: auto; background: #fff; font-size: 11px; }
.ap-row { display: flex; border-bottom: 1px solid #d8e0e8; cursor: pointer; }
.ap-row-selected { background: #1d4f91; color: #fff; }

.ap-col { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.ap-col-rno { width: 64px; }
.ap-col-mr { width: 66px; }
.ap-col-name { flex: 1.2; min-width: 150px; }
.ap-col-consultant { flex: 1.2; min-width: 150px; }
.ap-col-num { width: 70px; text-align: right; }
.ap-col-user { width: 110px; }
.ap-col-date { width: 76px; }
.ap-col-time { width: 66px; }
.ap-col-status { width: 92px; color: #1f6a33; font-weight: 700; }
.ap-row-selected .ap-col-status { color: #cdebc4; }

.ap-detail-banner {
    background: linear-gradient(#4d7fbe, #2f57a0);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 10px;
    margin: 2px 0 8px 0;
}

.ap-detail { display: flex; gap: 14px; }
.ap-detail-art { width: 300px; border: 1px solid #9fb0c0; align-self: flex-start; }
.ap-detail-art svg { display: block; width: 100%; }

.ap-patient, .ap-advance { flex: 1; font-size: 13px; }
.ap-panel-caption {
    background: linear-gradient(#dce9f5, #c2d6ea);
    border: 1px solid #9fb0c0;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 8px;
    margin-bottom: 8px;
}

.ap-pair { display: flex; gap: 8px; margin: 8px 4px; }
.ap-pair label { width: 130px; font-weight: 700; }
.ap-amount { font-size: 16px; }

.ap-receipt { display: flex; flex-direction: column; height: 640px; }
.ap-receipt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ap-receipt-title { font-weight: 700; font-size: 15px; }
.ap-receipt-close {
    padding: 4px 12px;
    border: 1px solid #9fb0c0;
    background: #e7ecef;
    cursor: pointer;
}
.ap-receipt .report-viewer { flex: 1; }

/* ---- bill posting ---- */

.bp-grid { border: 1px solid #9fb0c0; }
.bp-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; border-bottom: 1px solid #9fb0c0; }
.bp-body { height: 170px; overflow: auto; background: #fff; font-size: 11px; }
.bp-row { display: flex; border-bottom: 1px solid #d8e0e8; cursor: pointer; }
.bp-row-selected { background: #1d4f91; color: #fff; }

.bp-col { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.bp-col-case { width: 66px; }
.bp-col-mr { width: 66px; }
.bp-col-name { flex: 1.1; min-width: 140px; }
.bp-col-guardian { flex: 1; min-width: 120px; }
.bp-col-date { width: 118px; }
.bp-col-room { width: 92px; }
.bp-col-consultant { flex: 1.1; min-width: 140px; }

.bp-detail-banner {
    background: linear-gradient(#4d7fbe, #2f57a0);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 4px;
    margin-top: 8px;
}

.bp-heads { border: 1px solid #9fb0c0; }
.bp-heads-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 11px; border-bottom: 1px solid #9fb0c0; }
.bp-heads-body { height: 210px; overflow: auto; background: #fff; font-size: 11px; }
.bp-heads-row { display: flex; border-bottom: 1px solid #d8e0e8; }

.bp-hcol { padding: 3px 5px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.bp-hcol-head { width: 200px; }
.bp-hcol-who { width: 190px; }
.bp-hcol-num { width: 84px; text-align: right; }
.bp-hcol-discount { background: #f4a583; }
.bp-hcol-posting { flex: 1; min-width: 220px; background: #fdf6d8; }

.bp-posting-pick { width: 100%; border: 1px solid #d9c76a; background: #fdf6d8; font: inherit; font-size: 11px; }

.bp-heads-foot {
    display: flex;
    justify-content: flex-end;
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    font-weight: 700;
    font-size: 12px;
}

.bp-footer { display: flex; gap: 20px; margin-top: 8px; align-items: flex-end; }
.bp-totals { display: flex; gap: 6px; padding: 4px; }
.bp-total-caption {
    background: #1c1c1c;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 10px;
    text-align: center;
}
.bp-total-value {
    border: 1px solid #9fb0c0;
    background: #dce9f5;
    text-align: right;
    font-weight: 700;
    padding: 3px 8px;
}

.bp-signature { display: flex; align-items: center; gap: 8px; font-size: 12px; padding-bottom: 10px; }
.bp-signature-label { color: #8f1f1f; font-weight: 700; }
.bp-sign-input { width: 120px; }

/* ---- consultation / diagnostics posting ---- */

.dp-period { display: flex; align-items: center; gap: 8px; padding: 4px; }
.dp-period-label { font-weight: 700; font-size: 14px; color: #123d8a; }
.dp-period-to { margin-left: 24px; }
.dp-period-input { width: 230px; }

.cp-grid { border: 1px solid #9fb0c0; margin-top: 8px; }
.cp-banner {
    background: linear-gradient(#4d7fbe, #2f57a0);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 3px;
}
.cp-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 12px; border-bottom: 1px solid #9fb0c0; }
.cp-body { height: 380px; overflow: auto; background: #fff; font-size: 12px; }
.cp-row { display: flex; border-bottom: 1px solid #d8e0e8; }

.cp-col { padding: 4px 6px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.cp-col-clinic { flex: 1; min-width: 160px; }
.cp-col-consultant { flex: 1.2; min-width: 170px; }
.cp-col-num { width: 90px; text-align: right; }
.cp-col-share { background: #f4a583; font-weight: 700; }
.cp-col-posting { flex: 1.4; min-width: 210px; background: #fdf6d8; }

.cp-foot {
    display: flex;
    justify-content: space-between;
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    font-weight: 700;
    padding: 3px 10px;
}

.dg-columns { display: flex; gap: 12px; }
.dg-art { width: 250px; border: 1px solid #9fb0c0; align-self: flex-start; }
.dg-art svg { display: block; width: 100%; }
.dg-main { flex: 1; min-width: 0; }

.dg-head { display: flex; background: linear-gradient(#f2f6fa, #d8e4ef); font-weight: 700; font-size: 13px; border-bottom: 1px solid #9fb0c0; }
.dg-body { height: 360px; overflow: auto; background: #fff; font-size: 13px; }
.dg-row { display: flex; border-bottom: 1px solid #d8e0e8; }

.dg-col { padding: 5px 8px; border-right: 1px solid #e0e7ee; overflow: hidden; white-space: nowrap; }
.dg-col-head { flex: 1; min-width: 260px; }
.dg-col-num { width: 130px; text-align: right; }
.dg-col-post { width: 70px; text-align: center; }

.dg-foot {
    display: flex;
    justify-content: flex-end;
    background: #e7ecef;
    border-top: 1px solid #9fb0c0;
    font-weight: 700;
}

/* ---- report criteria panel additions ---- */

.ar-criteria { width: 200px; }

/* Longer captions ("Room/Ward", "MR No.") must never truncate: labels size to their text and
   the input drops to its own full-width line when the two no longer fit side by side. */
.ar-criteria .criteria-row { flex-wrap: wrap; }
.ar-criteria .criteria-label { width: auto; min-width: 46px; white-space: nowrap; }
.ar-criteria .criteria-row .entry-input { flex: 1 1 96px; min-width: 0; }

.ar-title-banner {
    background: #101010;
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    padding: 10px 4px;
    line-height: 1.25;
    white-space: pre-line;
}

.ar-fy-banner {
    background: #1f6a33;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 8px 4px;
    margin: 4px 0 8px 0;
}

.ar-verified-note { color: #8f1f1f; font-size: 11px; margin: 6px 4px 2px 4px; }

.vp-art { border: 1px solid #9fb0c0; margin: 6px 0; }
.vp-art svg { display: block; width: 100%; }
