﻿.oa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 28, .38);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 20px 16px;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-size: 12px;
    color: #1D2329;
}

.oa-wrap {
    width: min(1640px, 100%);
    background: #fff;
    border: 1px solid #DDE1E5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
    position: relative;
}

.oa-wrap button, .oa-wrap input, .oa-wrap select, .oa-wrap textarea {
    font-family: inherit;
    font-size: 12px;
    color: #1D2329;
}

.oa-wrap a, .oa-link {
    color: #B5321C;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.oa-wrap a:hover, .oa-link:hover { color: #8E2614; }

.oa-header {
    padding: 12px 18px 10px;
    border-bottom: 1px solid #E1E4E8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.oa-row.nowrap { flex-wrap: nowrap; }
.oa-row.top { align-items: flex-start; }
.oa-spacer { flex: 1; }
.oa-title { margin: 0; font-size: 17px; font-weight: 700; }
.oa-title .oa-so { color: #B5321C; }
.oa-week-head { font-weight: 600; color: #1D2329; }
.oa-sub { font-size: 11.5px; color: #56606B; margin-top: 2px; }
.oa-mut { color: #56606B; }
.oa-sm { font-size: 11.5px; }
.oa-b { font-weight: 600; }

.oa-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F1F3F5;
    color: #3A434C;
    white-space: nowrap;
    border: none;
    display: inline-block;
}

.oa-chip.small { font-size: 11px; padding: 2px 8px; }
.oa-chip.w { background: #FFF1D6; color: #7A4B00; font-weight: 600; }
.oa-chip.bl { background: #E3F0FB; color: #1F4E82; font-weight: 600; }
.oa-chip.g { background: #E2F3E8; color: #17603A; font-weight: 600; }
.oa-chip.r { background: #FBE7E5; color: #9B1C12; font-weight: 600; }
.oa-chip.btn { cursor: pointer; font-weight: 600; }

.oa-close {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #56606B;
    border-radius: 6px;
    font-size: 16px;
}

.oa-close:hover { background: #F1F3F5; }

.oa-stats { display: flex; gap: 6px 12px; align-items: flex-start; flex: 1 1 auto; flex-wrap: wrap; }
.oa-stat { min-width: 118px; flex: 0 0 auto; }
.oa-stat .lb { font-size: 11.5px; color: #56606B; white-space: nowrap; }
.oa-stat .v { font-size: 16px; font-weight: 700; line-height: 1.2; }
.oa-stat .s { font-size: 11.5px; white-space: nowrap; min-height: 15px; }
.oa-arrow { color: #56606B; align-self: center; font-size: 16px; }
.oa-sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.oa-sq.kho { background: #2F6FB3; }
.oa-sq.tau { background: #C9731A; }
.oa-ok { color: #1E7B4A; font-weight: 600; }
.oa-bad { color: #B42318; font-weight: 600; }
.oa-warn-text { color: #7A4B00; }

.oa-right { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.oa-month-select { width: 160px; }

.oa-sap {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    align-items: flex-end;
    padding: 10px 14px;
    border-radius: 8px;
    background: #F6F7F8;
}

.oa-sap.bad { background: #FDF1EF; }
.oa-tile { display: flex; flex-direction: column; gap: 1px; min-width: 92px; }
.oa-sap .oa-tile .oa-sm { font-size: 12px; white-space: nowrap; }
.oa-tile b { font-size: 15px; }
.oa-tile b.red { color: #B42318; }
.oa-tile b.amber { color: #B45309; }

.oa-tabs { display: flex; gap: 2px; padding: 0 18px; border-bottom: 1px solid #E1E4E8; }

.oa-tabs button {
    height: 34px;
    padding: 0 12px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    color: #56606B;
}

.oa-tabs button.on { border-bottom-color: #B5321C; color: #1D2329; font-weight: 700; }

.oa-def {
    padding: 8px 18px;
    background: #FAFBFC;
    border-bottom: 1px solid #E1E4E8;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.oa-def.collapsed { padding-top: 7px; padding-bottom: 7px; align-items: center; gap: 4px 14px; cursor: default; }
.oa-head-common { margin-top: -4px; width: 100%; }
.oa-head-common .oa-def { width: 100%; box-sizing: border-box; }
.oa-head-common .oa-def { border: 1px solid #E1E4E8; border-radius: 8px; padding: 8px 12px; }
.oa-head-common .oa-def.collapsed { border: 0; border-radius: 0; background: none; padding: 0; }
.oa-head-common .oa-def:not(.collapsed) .oa-fld-apply { margin-left: auto; }
.oa-head-common .oa-def:not(.collapsed) > .oa-collapse { margin-left: auto; }
.oa-head-common .oa-def:not(.collapsed) .oa-fld-apply ~ .oa-collapse { margin-left: 0; }
.oa-fld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oa-fld.w120 { flex: 0 1 130px; }
.oa-fld.w150 { flex: 0 1 160px; }
.oa-fld.w100 { flex: 0 1 110px; }
.oa-fld.grow { flex: 1 1 180px; }
.oa-lab { font-size: 11.5px; color: #56606B; }

.oa-f {
    height: 28px;
    border: 1px solid #CFD4DA;
    border-radius: 6px;
    padding: 0 8px;
    background: #fff;
    max-width: 100%;
}

.oa-f:focus { outline: 2px solid #2F6FB3; outline-offset: 0; border-color: #2F6FB3; }
.oa-f:disabled { background: #F3F4F6; color: #56606B; cursor: not-allowed; }
.oa-f.num { text-align: right; width: 84px; font-weight: 600; }
.oa-f.num.w70 { width: 70px; }
.oa-f.err, .oa-err-wrap .rz-dropdown, .oa-err-wrap .rz-dropdown-datagrid { border-color: #C0271B !important; background: #FFF6F5; }
.oa-dirty { box-shadow: inset 3px 0 0 #C9731A; }
.oa-em { font-size: 11px; color: #B42318; margin-top: 3px; line-height: 1.3; }

.oa-btn {
    height: 28px;
    padding: 0 12px;
    border: 1px solid #CFD4DA;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.oa-btn:hover { background: #F6F7F8; }
.oa-btn:disabled { opacity: .5; cursor: not-allowed; }
.oa-btn.pri { background: #B5321C; border-color: #B5321C; color: #fff; font-weight: 600; }
.oa-btn.pri:hover { background: #9C2A17; }
.oa-btn.ok { border-color: #1E7B4A; color: #1E7B4A; font-weight: 600; }
.oa-btn.acc { border-color: #B5321C; color: #B5321C; font-weight: 600; }
.oa-btn.dash { border-style: dashed; border-color: #AEB5BD; color: #3A434C; font-size: 12px; height: 30px; }
.oa-btn.dash.past { color: #7A8591; }
.oa-btn.dan { border-color: #B42318; color: #B42318; }

.oa-ic {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #56606B;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
}

.oa-ic:hover { background: #F1F3F5; }
.oa-ic:disabled { opacity: .35; cursor: not-allowed; }
.oa-exp-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D0D5DB; border-radius: 6px; background: #fff; cursor: pointer; padding: 0; }
.oa-exp-btn:hover { background: #F1F3F5; border-color: #9AA3AD; }
.oa-exp-btn.on { background: #EEF1F4; border-color: #9AA3AD; }
.oa-exp-btn .chev { width: 8px; height: 8px; border-right: 2px solid #3A434C; border-bottom: 2px solid #3A434C; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.oa-exp-btn.on .chev { transform: translateY(2px) rotate(-135deg); }

.oa-lnk { background: none; border: none; padding: 0; cursor: pointer; font-size: 12px; color: #3A434C; }
.oa-lnk:hover { color: #B5321C; }
.oa-lnk.amber { color: #7A4B00; }
.oa-lnk.strong { font-weight: 600; font-size: 12px; }
.oa-lnk.red { color: #B5321C; font-weight: 600; }

.oa-banner { margin: 8px 18px 0; padding: 7px 12px; border-radius: 8px; background: #FBE7E5; color: #9B1C12; font-size: 12px; }
.oa-note-banner { margin: 8px 18px 0; padding: 7px 12px; border-radius: 8px; background: #FFF8E6; color: #7A4B00; font-size: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.oa-tw { padding: 8px 18px 4px; overflow-x: auto; flex: 1 1 auto; }
.oa-table { border-collapse: collapse; width: 100%; min-width: 1180px; }

.oa-table th {
    font-size: 12px;
    font-weight: 600;
    color: #56606B;
    text-align: left;
    padding: 6px 8px;
    background: #F6F7F8;
    border-bottom: 1px solid #E1E4E8;
    white-space: nowrap;
}

.oa-table th.r, .oa-table td.r { text-align: right; }
.oa-table td { padding: 5px 8px; border-bottom: 1px solid #ECEEF1; vertical-align: middle; }
.oa-table td.top { vertical-align: top; }
.oa-table tr.grp td { padding: 10px 8px 4px; border-bottom: 1px solid #D5DAE0; }
.oa-table tr.ed > td { background: #FFFDF7; }
.oa-table tr.vw { cursor: default; }
.oa-table tr.ed > td.wk, .oa-table tr.vw > td.wk { background: #fff; }
.oa-table .oa-txt { padding: 0 9px; white-space: nowrap; }
.oa-table .oa-txt.diff { font-weight: 600; color: #7A4B00; }
.oa-table .acts { opacity: 0; white-space: nowrap; text-align: right; }
.oa-table tr:hover > td.acts, .oa-table td.acts.keep { opacity: 1; }

.oa-week-cell { padding-top: 8px !important; padding-bottom: 8px !important; vertical-align: top !important; width: 220px; min-width: 220px; }
.oa-week-title { font-weight: 600; white-space: nowrap; }
.oa-week-meta { font-size: 11.5px; color: #56606B; margin: 2px 0 5px; white-space: nowrap; }
.oa-week-acts { display: flex; gap: 12px; flex-wrap: nowrap; white-space: nowrap; align-items: center; }
.oa-week-acts a, .oa-week-acts .oa-lnk, .oa-ship-acts a, .oa-ship-acts .oa-lnk { color: #8A939C; cursor: pointer; }
.oa-week-acts a:hover, .oa-week-acts .oa-lnk:hover, .oa-ship-acts a:hover, .oa-ship-acts .oa-lnk:hover { color: #3A434C; text-decoration: underline; }

.oa-col-place { min-width: 320px; }
.oa-place { display: grid; grid-template-columns: minmax(34px, max-content) max-content auto; align-items: center; column-gap: 2px; row-gap: 2px; justify-content: start; }
.oa-place .k { font-size: 11.5px; color: #56606B; padding-right: 8px; white-space: nowrap; }
.oa-place .oa-cb { min-width: 220px; }

.oa-bar { height: 4px; border-radius: 999px; background: #E6E9EC; display: flex; overflow: hidden; width: 110px; }
.oa-bar.big { height: 8px; width: 100%; }
.oa-bar > div { background: #2F6FB3; }
.oa-bar > div.over { background: #C9731A; }
.oa-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #D98A00; }
.oa-dot.high { background: #C0271B; }
.oa-prog { white-space: nowrap; margin-bottom: 4px; }

.oa-ship-name { font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.oa-ship-meta { font-size: 11.5px; color: #56606B; margin: 2px 0 1px; white-space: nowrap; }
.oa-ship-eta { font-size: 11.5px; margin: 1px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.oa-ship-acts { display: flex; gap: 12px; flex-wrap: nowrap; white-space: nowrap; margin-top: 4px; font-size: 11.5px; align-items: center; }
.oa-ship-qty { display: flex; gap: 4px; }
.oa-table tr.ed > td.top:not(.oa-week-cell), .oa-table tr.vw > td.top:not(.oa-week-cell) { padding-top: 8px; }
.oa-ship-qty label { display: flex; flex-direction: column; gap: 2px; width: 70px; }
.oa-ship-qty .lbl { font-size: 11.5px; color: #56606B; text-align: right; padding-right: 9px; line-height: 28px; white-space: nowrap; }
.oa-ship-qty .val { display: block; text-align: right; padding: 0 9px; line-height: 28px; font-weight: 600; }

.oa-note-view { cursor: text; padding: 0 9px; white-space: normal; overflow-wrap: anywhere; max-width: 180px; line-height: 1.4; }
.oa-plus { font-size: 16px; font-weight: 400; color: #B4BBC3; cursor: pointer; background: none; border: none; padding: 0 9px; }
.oa-textarea { width: 100%; min-width: 160px; padding: 6px 9px; line-height: 1.4; resize: vertical; border: 1px solid #CFD4DA; border-radius: 6px; }

.oa-po-panel { padding: 12px; border: 1px solid #E1E4E8; border-radius: 8px; background: #fff; }
.oa-po-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; }
.oa-po-row .po { flex: 0 1 330px; }
.oa-po-btn { padding: 0 9px; font-size: 12px; text-align: left; white-space: nowrap; color: #1D2329; background: none; border: none; cursor: pointer; }

.oa-empty-weeks td { border-bottom: none !important; }

.oa-warn-wrap { padding: 10px 18px 16px; flex: 1 1 auto; }
.oa-cb-box { border: 1px solid #E1E4E8; border-radius: 8px; margin-top: 12px; overflow: hidden; }
.oa-cb-box .hd { padding: 7px 12px; background: #F6F7F8; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.oa-cb-box .it { padding: 7px 12px; border-top: 1px solid #ECEEF1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.oa-footer {
    padding: 8px 18px;
    border-top: 1px solid #E1E4E8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -4px 12px rgba(16, 24, 40, .06);
}

.oa-month-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.oa-month-table th { font-size: 12px; font-weight: 600; color: #56606B; text-align: left; padding: 7px 10px; background: #F6F7F8; border-bottom: 1px solid #E1E4E8; white-space: nowrap; }
.oa-month-table th.c { text-align: center; }
.oa-month-table th.r { text-align: right; }
.oa-month-table th.vb { vertical-align: bottom; }
.oa-month-table th.bl, .oa-month-table td.bl { border-left: 1px solid #E1E4E8; }
.oa-month-table td { padding: 6px 10px; border-bottom: 1px solid #ECEEF1; text-align: right; white-space: nowrap; }
.oa-month-table td:first-child { text-align: left; }
.oa-month-table tr.cur td { background: #F1F6FB; }
.oa-month-table tr.total td { border-bottom: none; }
.oa-month-table a { color: #B5321C; font-weight: 600; cursor: pointer; text-decoration: none; }
.oa-month-table a:hover { color: #8E2614; }

.oa-dlg-ov { position: fixed; inset: 0; background: rgba(20, 24, 28, .45); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 16px; }
.oa-dlg { background: #fff; border-radius: 10px; padding: 16px; max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 12px; font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 12px; }
.oa-dlg h2 { margin: 0; font-size: 14px; }
.oa-dlg ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.oa-dlg .acts { display: flex; justify-content: flex-end; gap: 8px; }

.oa-toast { position: fixed; top: 16px; right: 16px; display: flex; align-items: flex-start; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px 12px 14px; background: #FFF8E6; color: #7A4B00; border: 1px solid #F1D9A6; border-left: 4px solid #D98A00; border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 24, 28, .16); z-index: 1300; font-size: 13px; line-height: 1.45; animation: oa-toast-in .18s ease-out; }
.oa-toast::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #D98A00; color: #fff; font-weight: 700; font-size: 12px; line-height: 18px; text-align: center; margin-top: 1px; }
@keyframes oa-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.oa-loading { position: absolute; inset: 0; background: rgba(255, 255, 255, .72); display: flex; align-items: flex-start; justify-content: center; z-index: 20; border-radius: 10px; min-height: 240px; }
.oa-loading.solid { background: #fff; }
.oa-loading-box { position: sticky; top: 38vh; margin-top: 38vh; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #3A434C; font-size: 13px; font-weight: 500; }

.oa-wrap .rz-dropdown, .oa-wrap .rz-dropdown-datagrid { min-height: 28px; height: 28px; }
.oa-wrap .oa-cb { width: 100%; }
.oa-wrap .oa-cb.w100 { width: 102px; }
.oa-wrap .oa-cb.w80 { width: 86px; }
.oa-wrap .oa-cb.region { width: 128px; }
.oa-wrap .oa-cb.w110 { width: 118px; }
.oa-wrap .oa-cb.w200 { width: 210px; }
.oa-wrap .oa-cb.diff .rz-dropdown-label, .oa-wrap .oa-cb.diff .rz-inputtext { font-weight: 600; color: #7A4B00; }

.oa-self-center { align-self: center; }
.oa-fld-apply { flex: none; gap: 6px; }
.oa-apply { gap: 6px; font-weight: 600; }
.oa-left { text-align: left; }
.oa-collapse { align-self: flex-end; height: 28px; }
.oa-nowrap { white-space: nowrap; }
.oa-ml4 { margin-left: 4px; }
.oa-ml6 { margin-left: 6px; }
.oa-ml8 { margin-left: 8px; }
.oa-mr6 { margin-right: 6px; }
.oa-lh30 { line-height: 28px; }
.oa-pt5 { padding-top: 5px; }
.oa-amber { color: #B45309; }
.oa-gap-head { gap: 10px 18px; margin-top: 2px; }
.oa-scroll-x { overflow-x: auto; }
.oa-plus-inline { font-size: 16px; font-weight: 400; color: #B4BBC3; }
.oa-chip-wk { font-weight: 500; margin-left: 4px; color: #1D2329; }
.oa-po-cell { background: #FAFBFC; padding: 4px 10px 12px !important; }
.oa-btn-sm { height: 28px; font-size: 12px; }
.oa-col-src { width: 236px; min-width: 236px; }
.oa-col-qty { width: 96px; }
.oa-col-pt { width: 114px; }
.oa-col-mien { width: 90px; }
.oa-col-dv { width: 124px; }
.oa-col-po { width: 128px; }
.oa-col-note { width: 180px; min-width: 180px; }
.oa-col-prog { width: 130px; }
.oa-col-act { width: 70px; }
.oa-wrap .oa-cb.place { width: 230px; }
.oa-col-dich { width: 250px; }
.oa-two div { line-height: 1.5; }
.oa-two .k { display: inline-block; width: 40px; color: #56606B; font-size: 12px; }
.oa-stack { display: flex; flex-direction: column; gap: 5px; }
.oa-mt2 { margin-top: 2px; }
.oa-note-input { width: 100%; }
.oa-hint { padding: 7px 18px; font-size: 11.5px; color: #56606B; }
.oa-table tr.hn > td { border-bottom: none; }
.oa-item-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.oa-item { display: flex; align-items: center; gap: 8px; }
.oa-items-btn { display: block; margin-top: 2px; font-size: 11.5px; text-align: right; width: 100%; }

.oa-dov { position: fixed; inset: 0; background: rgba(20, 24, 28, .38); z-index: 1100; display: flex; justify-content: flex-end; font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 12px; color: #1D2329; }
.oa-drawer { width: min(1500px, 97vw); height: 100%; background: #fff; overflow: auto; box-shadow: -8px 0 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column; position: relative; }
.oa-drawer .oa-footer { margin-top: auto; border-radius: 0; }
.oa-drawer button, .oa-drawer input, .oa-drawer textarea { font-family: inherit; font-size: 12px; color: #1D2329; }
.oa-drawer a { color: #B5321C; font-weight: 600; cursor: pointer; text-decoration: none; }
.oa-gap6 { gap: 6px; }
.oa-gap20 { gap: 20px; }
.oa-space-between { justify-content: space-between; }
.oa-end { justify-content: flex-end; }
.oa-full { grid-column: 1 / -1; flex: 1 1 100%; }
.oa-m0 { margin: 0; }
.oa-mt12 { margin-top: 12px; }
.oa-pad8 { padding: 8px 0; }
.oa-w96 { min-width: 96px; }
.oa-w190 { flex: 0 1 200px; }
.oa-w230 { flex: 0 1 240px; }
.oa-w240 { width: 240px; }
.oa-w100p { width: 100%; }
.oa-ink { color: #1D2329; font-weight: 600; }
.oa-pointer { cursor: pointer; }
.oa-h2 { margin: 0; font-size: 13px; font-weight: 700; }
.oa-progress-box { flex: 0 1 360px; }
.oa-progress-box .oa-row { margin-bottom: 6px; }
.oa-ship-origin { height: 28px; display: flex; align-items: center; gap: 6px; }
.oa-pill { height: 26px; padding: 0 10px; border: 1px solid #CFD4DA; border-radius: 999px; background: #fff; cursor: pointer; font-size: 12px; }
.oa-pill.on { background: #1D2329; border-color: #1D2329; color: #fff; font-weight: 600; }
.oa-pill.need { border-color: #C9731A; background: #FFF8EC; color: #7A4B00; font-weight: 600; }
.oa-pill.need.on { background: #7A4B00; color: #fff; }
.oa-seg { display: flex; border: 1px solid #CFD4DA; border-radius: 6px; overflow: hidden; }
.oa-seg button { height: 26px; padding: 0 10px; border: none; background: #fff; cursor: pointer; font-size: 12px; }
.oa-seg button.on { background: #1D2329; color: #fff; font-weight: 600; }
.oa-month-notes { padding: 7px 18px; background: #FFF8E6; border-bottom: 1px solid #F1E2B8; }
.oa-month-note { display: flex; gap: 8px; line-height: 1.4; }
.oa-month-note b { flex: none; white-space: nowrap; }
.oa-month-note span { overflow-wrap: anywhere; min-width: 0; }
.oa-toolbar { padding: 10px 18px 0; }
.oa-selbar { margin: 8px 18px 0; padding: 6px 10px; background: #EEF4FA; border-radius: 8px; }
.oa-selgroup { padding: 3px 4px 3px 10px; background: #EEF4FA; border-radius: 8px; }
.oa-tb-sep { width: 1px; height: 22px; background: #D5DAE0; }
.oa-stats-strip { display: flex; flex-wrap: wrap; margin: 8px 18px 0; padding: 7px 12px; gap: 6px 20px; background: #F6F7F8; border-radius: 8px; align-items: flex-end; }
.oa-tile-s { display: flex; flex-direction: column; gap: 0; min-width: 92px; }
.oa-tile-s b { font-size: 14px; }
.oa-table tr.huy td { color: #8A929B; text-decoration: line-through; }
.oa-table tr.huy td .oa-chip, .oa-table tr.huy td.oa-note-cell { text-decoration: none; }
.oa-table tr.oa-draft-row > td { background: #FFFDF9; }
.oa-table-full { min-width: 1800px; }
.oa-col-chk { width: 34px; }
.oa-col-id { width: 64px; }
.oa-col-day { width: 92px; }
.oa-col-pt { width: 88px; }
.oa-col-kh { width: 72px; }
.oa-sched-grid .oa-vtxt.w100 { width: 76px; }
.oa-sched-grid .oa-vtxt.w110 { width: 72px; }
.oa-col-exec { width: 190px; }
.oa-col-dv { width: 130px; }
.oa-col-st { width: 100px; }
.oa-col-wrate { width: 166px; min-width: 166px; }
.oa-col-wsrc { width: 120px; min-width: 120px; }
.oa-sched-grid td.m-rate .oa-warn-text { white-space: nowrap; }
.oa-sched-grid td.m-src .oa-txt { overflow-wrap: anywhere; }
.oa-col-x { width: 30px; }
.oa-empty { padding: 16px !important; text-align: center; }
.oa-k { display: inline-block; width: 34px; font-size: 12px; color: #56606B; font-weight: 400; }
.oa-diff { color: #7A4B00; font-weight: 600; }
.oa-diff-cb .rz-dropdown-label, .oa-diff-cb .rz-inputtext { color: #7A4B00; font-weight: 600; }
.oa-note-cell { padding: 0 8px 6px !important; }
.oa-note-line { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-end; }
.oa-note-text { white-space: normal; overflow-wrap: anywhere; text-align: right; max-width: 560px; }
.oa-note-area { flex: 0 1 520px; text-align: right; min-height: 28px; padding: 5px 8px; resize: vertical; line-height: 1.4; border: 1px solid #CFD4DA; border-radius: 6px; }
.oa-detail-row > td { background: #FAFBFC; padding: 4px 8px 10px !important; }
.oa-total-row td { border-bottom: none !important; }
.oa-pan { background: #fff; border: 1px solid #E1E4E8; border-radius: 8px; padding: 10px; }
.oa-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.oa-po-box { margin-top: 8px; padding: 8px 10px; border: 1px solid #E1E4E8; border-radius: 8px; background: #FAFBFC; display: flex; flex-direction: column; gap: 10px; }
.oa-wrap .oa-cb.w140, .oa-drawer .oa-cb.w140 { width: 150px; }
.oa-drawer .oa-cb { width: 100%; }
.oa-drawer .oa-cb.w100 { width: 134px; }
.oa-drawer .oa-cb.w110 { width: 120px; }
.oa-drawer .rz-dropdown, .oa-drawer .rz-dropdown-datagrid { min-height: 28px; height: 28px; }
.oa-share-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 18px; border-bottom: 1px solid #E1E4E8; position: sticky; top: 0; background: #fff; z-index: 2; }
.oa-share-bg { background: #EEF0F2; padding: 4px 16px 20px; flex: 1; }
.oa-card { max-width: 940px; margin: 20px auto; border: 1px solid #D5DAE0; border-radius: 10px; background: #fff; overflow: hidden; }
.oa-card-head { padding: 12px 16px; border-bottom: 1px solid #E1E4E8; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.oa-caps { letter-spacing: .04em; font-weight: 600; }
.oa-card-title { font-size: 17px; font-weight: 700; margin-top: 2px; }
.oa-right-text { text-align: right; }
.oa-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; padding: 10px 16px; }
.oa-kv span:nth-child(odd) { color: #56606B; }
.oa-card-table { border-collapse: collapse; width: 100%; }
.oa-card-table th { background: #F1F3F5; color: #1D2329; padding: 6px 8px; font-size: 11.5px; text-align: left; }
.oa-card-table th.r, .oa-card-table td.r { text-align: right; }
.oa-card-table td { padding: 5px 8px; border-bottom: 1px solid #ECEEF1; vertical-align: middle; }
.oa-card-table .old { font-size: 11px; color: #8A5A00; text-decoration: line-through; }
.oa-card-table .chg { background: #FFE9B8; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.oa-card-table tr.new td { background: #EAF6EE; }
.oa-card-table tr.del td { background: #FBE7E5; color: #7A1C14; text-decoration: line-through; }
.oa-card-table tr.del td.tag { text-decoration: none; }
.oa-card-foot { padding: 8px 16px; border-top: 1px solid #E1E4E8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #56606B; }
.oa-z40 { z-index: 1250; --qb-ink: #1C2430; --qb-ink2: #3C4654; --qb-mut: #5B6675; --qb-line: #E1E5EA; --qb-line2: #EEF0F3; --qb-ctl: #D7DCE2; --qb-acc: #E8501A; --qb-link: #B4461A; --qb-bg: #F4F5F7; }
.oa-dlg-wide { max-width: 820px; max-height: 94vh; overflow: auto; gap: 10px; }
.oa-src-box { background: #F6F7F8; border-radius: 8px; padding: 8px 12px; display: flex; gap: 4px 20px; flex-wrap: wrap; }
.oa-transfer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.oa-info-card { border: 1px solid #E1E4E8; border-radius: 8px; padding: 6px 12px; background: #FAFBFC; }
.oa-info-items { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 2px; }
.oa-info-items > div { display: inline-flex; align-items: baseline; gap: 4px; }
.oa-preview { border: 1px solid #E1E4E8; border-radius: 8px; padding: 8px 12px; line-height: 1.5; }
.oa-dlg .oa-cb { width: 100%; }
.oa-def.collapsed > .oa-nowrap { display: inline-flex; align-items: baseline; gap: 6px; }
.oa-fake-cb { position: relative; display: inline-flex; align-items: center; height: 28px; width: 100%; padding: 0 24px 0 8px; border: 1px solid #CFD4DA; border-radius: 4px; background: #fff; text-align: left; cursor: pointer; font-size: 12px; color: #1D2329; }
.oa-fake-cb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-fake-cb:hover:not(.dis) { border-color: #8A939C; }
.oa-fake-cb.dis { background: transparent; border-color: transparent; color: #3A434C; cursor: default; padding-right: 8px; }
.oa-fake-cb.w100 { width: 134px; }
.oa-fake-cb.w110 { width: 120px; }
.oa-fake-cb.w140 { width: 150px; }
.oa-fake-caret { position: absolute; right: 9px; top: 50%; margin-top: -2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #56606B; }
.oa-warn-wrap > .oa-cb-box:first-child { margin-top: 0; }
.oa-item-inline { display: grid; grid-template-columns: max-content 72px; align-items: center; column-gap: 8px; row-gap: 2px; justify-content: start; }
.oa-item-inline .k { font-size: 11.5px; color: #56606B; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.oa-item-inline .v { text-align: right; padding: 0 9px; line-height: 28px; }
.oa-item-inline .oa-f { width: 72px; }
.oa-sync { margin: 0 0 0 6px; vertical-align: middle; width: 14px; height: 14px; cursor: pointer; accent-color: #2F6FB3; }
.oa-source-qty { margin-top: 4px; }
.oa-source-qty .k { max-width: 220px; }
.oa-month-grid .oa-source-qty, .oa-def-week .oa-source-qty { grid-template-columns: minmax(0, max-content) 84px; justify-content: start; column-gap: 8px; }
.oa-month-grid tr.ed .oa-source-qty .oa-f, .oa-source-qty .oa-f { border-color: #CFD4DA; background: #fff; width: 84px; }
.oa-dlg { position: relative; }
.oa-dlg .oa-loading { min-height: 0; }
.oa-dlg .oa-loading-box { position: static; margin-top: 80px; }
.oa-stat-items { margin-top: 4px; padding-top: 4px; border-top: 1px dashed #E1E4E8; display: flex; flex-direction: column; gap: 1px; }
.oa-stat-item { display: flex; align-items: baseline; gap: 4px; font-size: 11.5px; white-space: nowrap; }
.oa-stat-item .n { color: #56606B; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.oa-stat-item b { font-weight: 600; }
.oa-stats-strip { align-items: flex-start; }
.oa-stats-scroll { flex: 1 1 0; min-width: 0; overflow-x: auto; }
.oa-stats-table { border-collapse: collapse; width: auto; min-width: 100%; table-layout: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.oa-stats-table th { font-weight: 400; font-size: 11.5px; color: #56606B; text-align: right; padding: 0 10px 3px; white-space: nowrap; }
.oa-stats-table td { text-align: right; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-stats-table th:first-child, .oa-stats-table td:first-child { text-align: left; padding-left: 0; }
.oa-stats-table th:first-child { min-width: 190px; }
.oa-stats-toggle { align-self: flex-start; white-space: nowrap; }
.oa-stats-table td.n { color: #56606B; white-space: normal; overflow-wrap: anywhere; }
.oa-stats-table tr.tot td { font-size: 13px; border-bottom: 1px dashed #E1E4E8; padding-bottom: 4px; }
.oa-stats-table tbody tr:nth-child(2) td { padding-top: 4px; }
.oa-stats-table b { font-weight: 600; }
.oa-stats-table tr.tot b { font-weight: 700; }
.oa-only-narrow { display: none; }
.oa-head-scroll { flex: 1 1 auto; min-width: 0; max-width: 1100px; }
.oa-head-table { border-collapse: collapse; table-layout: fixed; width: 100%; font-variant-numeric: tabular-nums; }
.oa-head-table th, .oa-head-table td { text-align: left; padding: 0 6px; vertical-align: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-head-table th.n, .oa-head-table td.n { width: 170px; padding-left: 0; }
.oa-head-table th.ar, .oa-head-table td.ar { width: 22px; padding: 0; text-align: center; color: #9AA3AD; }
.oa-head-table th { font-size: 11.5px; font-weight: 400; color: #56606B; }
.oa-head-table tr.big td { font-size: 16px; font-weight: 700; line-height: 1.2; }
.oa-head-table tr.big td.ar { font-size: 13px; font-weight: 400; }
.oa-head-table tr.big td.n { font-size: 12px; font-weight: 600; color: #56606B; }
.oa-head-table tr.sub td { font-size: 11.5px; padding-bottom: 4px; border-bottom: 1px dashed #E1E4E8; }
.oa-head-table tr.sub td.ar, .oa-head-table tr.sub td.n { border-bottom-color: transparent; }
.oa-head-table tr.it td { font-size: 11.5px; padding-top: 2px; }
.oa-head-table tr.sub + tr.it td { padding-top: 5px; }
.oa-head-table td.n { color: #56606B; white-space: normal; overflow-wrap: anywhere; }
.oa-head-table tr.it b { font-weight: 600; }
.oa-wrap .oa-em, .oa-drawer .oa-em { display: none; }
.oa-wrap .oa-dlg .oa-em, .oa-drawer .oa-dlg .oa-em { display: block; }

@media (max-width: 900px) {
    .oa-overlay { padding: 0; }
    .oa-wrap { border-radius: 0; border: none; min-height: 100vh; }
    .oa-header { padding: 10px 12px 8px; gap: 8px; }
    .oa-header > .oa-row.top { flex-wrap: wrap; }
    .oa-stats { gap: 8px 10px; width: 100%; }
    .oa-stats .oa-arrow { display: none; }
    .oa-stat { flex: 1 1 calc(50% - 10px); min-width: 140px; }
    .oa-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
    .oa-month-select { width: 140px; }
    .oa-sap { gap: 6px 14px; padding: 8px 10px; }
    .oa-tabs { padding: 0 12px; overflow-x: auto; }
    .oa-def { padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
    .oa-def .oa-fld, .oa-def .oa-fld.w100, .oa-def .oa-fld.w120, .oa-def .oa-fld.w150, .oa-def .oa-fld.grow { flex: 1 1 calc(50% - 8px); min-width: 140px; }
    .oa-def.collapsed { gap: 4px 12px; }
    .oa-tw { padding: 6px 8px 4px; -webkit-overflow-scrolling: touch; }
    .oa-banner, .oa-note-banner, .oa-month-notes, .oa-selbar { margin-left: 8px; margin-right: 8px; }
    .oa-footer { padding: 8px 12px; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; }
    .oa-footer .oa-spacer { flex-basis: 100%; height: 0; }
    .oa-footer .oa-btn { flex: 1 1 auto; }
    .oa-warn-wrap { padding: 8px 12px 12px; }
    .oa-drawer { width: 100vw; }
    .oa-toolbar { padding: 8px 12px 0; }
    .oa-toolbar .oa-row { gap: 6px; }
    .oa-stats-strip { margin: 6px 8px 0; padding: 6px 10px; gap: 6px 14px; }
    .oa-tile-s { min-width: 120px; flex: 1 1 calc(50% - 14px); }
    .oa-only-wide { display: none !important; }
    .oa-stats.oa-only-narrow, .oa-tiles-narrow.oa-only-narrow { display: flex; }
    .oa-tiles-narrow { flex-wrap: wrap; gap: 8px 14px; width: 100%; }
    .oa-stat-item { white-space: normal; }
    .oa-stat-item .n { max-width: none; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
    .oa-share-top { padding: 8px 12px; }
    .oa-share-bg { padding: 4px 8px 16px; }
    .oa-card { margin: 12px auto; }
    .oa-dlg-ov:has(> .oa-dlg-wide) { padding: 0; align-items: stretch; }
    .oa-dlg-wide { max-width: none; max-height: none; height: 100%; border-radius: 0; overflow: auto; }
    .oa-dlg:not(.oa-dlg-wide) { max-height: calc(100% - 32px); overflow: auto; padding: 18px 16px 14px; font-size: 14px; box-shadow: 0 16px 48px rgba(16, 24, 40, .28); }
    .oa-dlg:not(.oa-dlg-wide) h2 { font-size: 16px; }
    .oa-dlg:not(.oa-dlg-wide) ul { gap: 8px; }
    .oa-dlg:not(.oa-dlg-wide) .acts { flex-wrap: wrap; }
    .oa-dlg:not(.oa-dlg-wide) .acts .oa-btn { flex: 1 1 auto; min-height: 40px; font-size: 14px; justify-content: center; }
    .oa-transfer-grid { grid-template-columns: 1fr 1fr; }
    .oa-grid4 { grid-template-columns: 1fr 1fr; }
    .oa-toast { top: auto; bottom: 12px; right: 12px; left: 12px; max-width: none; }
}

@media (max-width: 520px) {
    .oa-title { font-size: 15px; }
    .oa-stat, .oa-tile-s { flex-basis: 100%; }
    .oa-def .oa-fld, .oa-def .oa-fld.w100, .oa-def .oa-fld.w120, .oa-def .oa-fld.w150, .oa-def .oa-fld.grow { flex-basis: 100%; }
    .oa-transfer-grid, .oa-grid4 { grid-template-columns: 1fr; }
    .oa-kv { grid-template-columns: 1fr; }
}

.oa-month-grid { table-layout: fixed; min-width: 1450px; }
.oa-month-grid .oa-col-src { width: 190px; min-width: 0; }
.oa-month-grid .oa-col-qty { width: 210px; }
.oa-month-grid .oa-col-pt { width: 136px; }
.oa-month-grid .oa-col-mien { width: 100px; }
.oa-month-grid .oa-col-dv { width: 118px; }
.oa-month-grid .oa-col-po { width: 92px; }
.oa-month-grid .oa-col-note { width: 136px; min-width: 0; }
.oa-month-grid .oa-col-prog { width: 190px; }
.oa-month-grid .oa-col-act { width: 56px; }
.oa-month-grid .oa-col-place { width: 260px; min-width: 0; }
.oa-month-grid td { overflow: hidden; }
.oa-month-grid th { overflow: hidden; text-overflow: ellipsis; }
.oa-month-grid .oa-week-cell { width: auto; min-width: 0; }
.oa-month-grid .oa-week-meta, .oa-month-grid .oa-ship-meta, .oa-month-grid .oa-ship-name { white-space: normal; overflow-wrap: anywhere; }
.oa-month-grid .oa-week-cell .oa-cb, .oa-month-grid .oa-cb.region, .oa-month-grid .oa-cb.w110, .oa-month-grid .oa-cb.w100 { width: 100%; max-width: 100%; }
.oa-month-grid .oa-place { grid-template-columns: max-content minmax(0, 1fr) auto; }
.oa-month-grid .oa-place .oa-cb, .oa-month-grid .oa-cb.place { min-width: 0; width: 100%; }
.oa-sched-grid .oa-place { grid-template-columns: max-content minmax(180px, 1fr) auto; }
.oa-sched-grid .oa-place .oa-cb { min-width: 0; width: 100%; }
.oa-month-grid .oa-ship-qty label { width: auto; flex: 1 1 0; min-width: 0; }
.oa-month-grid .oa-ship-qty .oa-f.num.w70 { width: 100%; }
.oa-month-grid .oa-item-inline { grid-template-columns: minmax(0, 1fr) 72px; column-gap: 6px; justify-content: stretch; text-align: left; }
.oa-month-grid .oa-item-inline .k { max-width: 100%; }
.oa-month-grid .oa-item-inline .v { text-align: right; }
.oa-month-grid .oa-bar { width: 100%; }
.oa-month-grid .oa-textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.oa-month-grid .oa-note-view { max-width: 100%; }
.oa-month-grid .rz-dropdown-label, .oa-month-grid .rz-inputtext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.oa-wrap .rz-dropdown, .oa-wrap .rz-dropdown-datagrid, .oa-drawer .rz-dropdown, .oa-drawer .rz-dropdown-datagrid, .oa-dlg .rz-dropdown, .oa-dlg .rz-dropdown-datagrid { min-height: 28px; height: 28px; font-size: 12px; margin: 0; }
.oa-wrap .rz-dropdown-trigger, .oa-drawer .rz-dropdown-trigger, .oa-dlg .rz-dropdown-trigger { width: 22px; }
.oa-wrap .rz-dropdown-trigger-icon, .oa-drawer .rz-dropdown-trigger-icon, .oa-dlg .rz-dropdown-trigger-icon { font-size: 16px; }
.oa-wrap .rz-dropdown-clear-icon, .oa-drawer .rz-dropdown-clear-icon, .oa-dlg .rz-dropdown-clear-icon { font-size: 14px; }
.rz-dropdown-panel .rz-data-grid, .rz-dropdown-panel .rz-grid-table td, .rz-dropdown-panel .rz-grid-table th { font-size: 12px; }
.oa-wrap .oa-f, .oa-drawer .oa-f, .oa-dlg .oa-f { height: 28px; font-size: 12px; box-sizing: border-box; }
.oa-fake-cb { height: 28px; font-size: 12px; }

.oa-month-grid tr.ed .rz-dropdown, .oa-month-grid tr.ed .rz-dropdown-datagrid, .oa-month-grid tr.ed .oa-f, .oa-month-grid tr.ed .oa-textarea { border-color: #CFD4DA; background: #fff; }
.oa-month-grid tr.ed .oa-f.err, .oa-month-grid tr.ed .oa-err-wrap .rz-dropdown, .oa-month-grid tr.ed .oa-err-wrap .rz-dropdown-datagrid { border-color: #C0271B !important; background: #FFF6F5; }
.oa-month-grid tr.ed .oa-f.num { padding-right: 8px; }

.oa-ctx-ov { position: fixed; inset: 0; z-index: 60; }
.oa-ctx { position: fixed; z-index: 61; min-width: 190px; background: #fff; border: 1px solid #D5DAE0; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .16); padding: 4px 0; font-size: 12.5px; }
.oa-ctx .h { padding: 6px 12px 4px; font-weight: 700; color: #1D2329; border-bottom: 1px solid #ECEEF1; margin-bottom: 2px; }
.oa-ctx button { display: block; width: 100%; text-align: left; padding: 6px 12px; background: none; border: 0; cursor: pointer; color: #1D2329; }
.oa-ctx button:hover:not(:disabled) { background: #F2F4F7; }
.oa-ctx button:disabled { color: #9AA1A9; cursor: default; }
.oa-info-tabs { padding: 0; margin-bottom: 4px; }
.oa-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; }
.oa-info-grid b { font-weight: 600; overflow-wrap: anywhere; }
.oa-info-note { margin-top: 10px; padding: 8px 10px; background: #F6F7F8; border-radius: 6px; }
.oa-info-trips { min-width: 760px; }
.oa-info-trips tr.huy td { color: #9AA1A9; text-decoration: line-through; }
.oa-mt12 { margin-top: 12px; }

.oa-vtxt { display: inline-block; max-width: 100%; padding: 0 2px; line-height: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; cursor: pointer; }
.oa-vtxt.dis { cursor: default; }
.oa-vtxt.num { display: block; text-align: right; font-weight: 700; }
.oa-vtxt.num.err { color: #C0271B; }
.oa-vtxt.w100 { width: 134px; }
.oa-vtxt.w110 { width: 120px; }
.oa-vtxt.w140 { width: 150px; }
.oa-def .oa-fld { gap: 3px; }
.oa-def .oa-lab { padding-left: 1px; line-height: 14px; }
.oa-def .oa-fld-apply { align-self: center; }
.oa-vtxt { line-height: 28px; }
.oa-ml-auto { margin-left: auto; }
.oa-trip-cancel { opacity: .6; }
.oa-trip-cancel .qb-link b { text-decoration: line-through; }
.oa-qlvc-ov { position: fixed; inset: 0; z-index: 1250; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.oa-qlvc-pop { background: #fff; border-radius: 10px; width: min(1600px, 100%); height: min(92vh, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 16px 48px rgba(16, 24, 40, .28); }
.oa-qlvc-pop > .qbm-h { flex: 0 0 auto; }
.oa-qlvc-body { flex: 1 1 auto; overflow: auto; position: relative; }
@media (min-width: 769px) { .oa-qlvc-body { overflow: hidden; } .oa-qlvc-body > .qb { height: 100%; } }
@media (max-width: 900px) { .oa-qlvc-ov { padding: 0; } .oa-qlvc-pop { border-radius: 0; height: 100%; } }
.oa-qlvc-pop.oa-trips-pop { height: auto; max-height: min(92vh, 100%); width: min(1400px, 100%); }
.oa-trips-pop .qbm-h { gap: 8px; align-items: center; }
.oa-trips-body { flex: 1 1 auto; overflow: auto; padding: 0 16px 16px; font-size: 12px; }
.oa-trips-empty { padding: 32px 0; text-align: center; }
.oa-trips-table { width: 100%; border-collapse: collapse; }
.oa-trips-table th { position: sticky; top: 0; background: #F6F7F9; color: #56606B; font-weight: 600; text-align: left; padding: 8px; border-bottom: 1px solid #E1E4E8; white-space: nowrap; z-index: 1; }
.oa-trips-table td { padding: 7px 8px; border-bottom: 1px solid #EEF0F2; vertical-align: top; }
.oa-trips-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oa-trips-table tr.cancelled td { color: #9AA1A9; text-decoration: line-through; }
.oa-trips-table tr.cancelled td:last-child { text-decoration: none; }
.oa-trips-table tfoot td { font-weight: 700; background: #F6F7F9; border-top: 1px solid #E1E4E8; }
@media (max-width: 900px) { .oa-qlvc-pop.oa-trips-pop { max-height: 100%; } }

.oa-m-only { display: none; }

@media (max-width: 900px) {
    td.oa-m-only { display: block; }
    button.oa-m-only { display: inline-flex; }
    .oa-m-hide { display: none !important; }
    .oa-month-grid, .oa-sched-grid, .oa-table-full.oa-sched-grid { min-width: 0 !important; width: 100%; table-layout: auto; }
    .oa-tw table.oa-month-grid, .oa-tw table.oa-sched-grid, .oa-tw table.oa-month-grid[data-colresize], .oa-tw table.oa-sched-grid[data-colresize] { display: block; width: 100% !important; min-width: 0 !important; table-layout: auto !important; }
    .oa-month-grid thead, .oa-sched-grid thead { display: none; }
    .oa-month-grid tbody, .oa-sched-grid tbody { display: block; }
    .oa-month-grid tr, .oa-sched-grid tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 10px 0; border-top: 1px solid #E1E4E8; position: relative; background: transparent; }
    .oa-month-grid td, .oa-sched-grid td { display: block; padding: 0 !important; border: none !important; overflow: visible !important; min-width: 0; width: auto !important; text-align: left !important; vertical-align: top; opacity: 1 !important; }
    .oa-month-grid td[data-label]::before, .oa-sched-grid td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; line-height: 15px; color: #7A848E; margin-bottom: 2px; }
    .oa-month-grid td[data-label], .oa-sched-grid td[data-label] { display: grid !important; grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; }
    .oa-month-grid td[data-label]::before, .oa-sched-grid td[data-label]::before { grid-column: 1; grid-row: 1; margin-bottom: 0 !important; white-space: nowrap; line-height: 20px !important; }
    .oa-month-grid td[data-label] > *, .oa-sched-grid td[data-label] > * { grid-column: 2; min-width: 0; justify-self: start; max-width: 100%; }
    .oa-month-grid td[data-label] > .oa-f, .oa-sched-grid td[data-label] > .oa-f, .oa-month-grid td[data-label] > div, .oa-sched-grid td[data-label] > div { justify-self: stretch; }
    .oa-sched-grid td.m-id, .oa-sched-grid td.m-place, .oa-sched-grid td.m-exec, .oa-sched-grid td.m-exp { display: block !important; }
    .oa-month-grid .oa-txt, .oa-sched-grid .oa-txt { padding: 0; white-space: normal; }
    .oa-month-grid td.m-wide, .oa-sched-grid td.m-wide, .oa-month-grid td[colspan], .oa-sched-grid td[colspan] { grid-column: 1 / -1; }
    .oa-month-grid tr.grp, .oa-month-grid tr.oa-empty-weeks { display: block; padding: 12px 0 6px; }
    .oa-month-grid tr.grp td, .oa-month-grid tr.oa-empty-weeks td { font-size: 13px; }
    .oa-month-grid tr:has(> td.oa-po-cell), .oa-sched-grid tr.oa-note-row, .oa-sched-grid tr.oa-detail-row { border-top: none; padding-top: 0; }
    .oa-month-grid td.m-head, .oa-month-grid td.oa-m-wk { padding-bottom: 2px !important; }
    .oa-month-grid td.oa-m-wk { font-size: 12px; font-weight: 600; color: #56606B; }
    .oa-month-grid td.acts, .oa-sched-grid td.acts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
    .oa-month-grid .oa-week-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
    .oa-month-grid .oa-f, .oa-sched-grid .oa-f { width: 100% !important; height: 36px; font-size: 14px; }
    .oa-month-grid .oa-item-inline .oa-f, .oa-sched-grid .oa-item-inline .oa-f { width: 96px !important; }
    .oa-month-grid .oa-item-inline, .oa-sched-grid .oa-item-inline { grid-template-columns: minmax(0, 1fr) 96px; }
    .oa-month-grid .rz-dropdown, .oa-month-grid .rz-dropdown-datagrid, .oa-sched-grid .rz-dropdown, .oa-sched-grid .rz-dropdown-datagrid { width: 100% !important; max-width: 100% !important; height: 36px !important; min-height: 36px !important; font-size: 14px !important; }
    .oa-month-grid .oa-cb, .oa-sched-grid .oa-cb { width: 100% !important; max-width: 100% !important; }
    .oa-month-grid .oa-place { grid-template-columns: max-content minmax(0, 1fr); row-gap: 6px; }
    .oa-month-grid .oa-place > span:empty { display: none; }
    .oa-month-grid .oa-ship-qty { display: flex; gap: 8px; }
    .oa-month-grid .oa-ship-qty label { flex: 1 1 0; min-width: 0; }
    .oa-month-grid .oa-textarea { width: 100%; }
    .oa-month-grid .oa-bar, .oa-sched-grid .oa-bar { width: 100%; }
    .oa-month-grid .oa-note-view { padding: 0; }
    .oa-sched-grid td.m-chk input { width: 20px; height: 20px; }
    .oa-sched-grid tr.oa-total-row { display: flex; justify-content: space-between; }
    .oa-sched-grid .oa-vtxt { width: 100% !important; line-height: 22px; }
    .oa-sched-grid .oa-note-line { flex-wrap: wrap; }
}

@media (max-width: 900px) {
    .oa-stats-strip { gap: 8px 10px; }
    .oa-stats-strip > .oa-w96 { flex-basis: 100%; width: auto; }
    .oa-stats-strip > .oa-tile-s { flex: 0 0 calc((100% - 20px) / 3); min-width: 0; }
    .oa-stats-strip > .oa-tile-s .oa-nowrap { white-space: normal; }
    .oa-tiles-narrow > .oa-tile-s { flex: 1 1 calc(50% - 14px); min-width: 0; }
    .oa-stats:not(.oa-only-narrow) > .oa-stat { flex: 0 0 calc((100% - 10px) / 2); min-width: 0; }
    .oa-stats:not(.oa-only-narrow) > .oa-stat .s { white-space: normal; }
}

@media (max-width: 900px) {
    .oa-drawer .oa-header > .oa-row:first-child > .oa-spacer { flex: 1 1 100%; }
    .oa-drawer .oa-header .oa-quick { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
    .oa-drawer .oa-header .oa-quick > * { flex: 0 0 auto; }
    .oa-drawer .oa-header > .oa-row.oa-gap20 { gap: 8px; }
    .oa-drawer .oa-header > .oa-row.oa-gap20 > .oa-sub { flex: 1 1 100%; }
    .oa-drawer .oa-progress-box { flex: 1 1 100%; }

    .oa-sched-grid tr[data-oa-key]:not(.oa-note-row) { grid-template-columns: 24px repeat(4, minmax(0, 1fr)) 32px; grid-auto-flow: row dense; column-gap: 10px; row-gap: 10px; align-items: start; }
    .oa-sched-grid td.m-chk { grid-row: 1; grid-column: 1; padding-top: 6px !important; }
    .oa-sched-grid td.m-id { grid-row: 1; grid-column: 2 / 6; }
    .oa-sched-grid td.m-day { grid-column: 1 / 4; }
    .oa-sched-grid td.m-veh { grid-column: 4 / -1; }
    .oa-sched-grid td.m-exp { grid-row: 1; grid-column: 6; text-align: right !important; }
    .oa-sched-grid td.m-id::before, .oa-sched-grid td.m-place::before, .oa-sched-grid td.m-exec::before { display: none !important; }
    .oa-sched-grid td.m-id { line-height: 30px; }
    .oa-sched-grid td.m-id a { font-weight: 700; font-size: 14px; }
    .oa-sched-grid td.m-kh, .oa-sched-grid td.m-rate, .oa-sched-grid td.m-src { grid-column: 1 / 4; }
    .oa-sched-grid td.m-pack, .oa-sched-grid td.m-ship, .oa-sched-grid td.m-st { grid-column: 4 / -1; }
    .oa-sched-grid td.m-kh-multi, .oa-sched-grid td.m-place, .oa-sched-grid td.m-exec { grid-column: 1 / -1; }
    .oa-sched-grid td.m-kh .oa-vtxt.num { text-align: left; }
    .oa-sched-grid td.m-st { text-align: left !important; padding-top: 0 !important; }
    .oa-sched-grid td.m-place > div { line-height: 20px; }
    .oa-sched-grid td.m-place { display: grid !important; grid-template-columns: 24px repeat(4, minmax(0, 1fr)) 32px; column-gap: 10px; row-gap: 2px; }
    .oa-sched-grid td.m-place > div { grid-column: 1 / 4; min-width: 0; }
    .oa-sched-grid td.m-place > div + div { grid-column: 4 / -1; }
    .oa-sched-grid td.m-place > .m-po, .oa-sched-grid td.m-place > .oa-place { grid-column: 1 / -1; }
    .oa-sched-grid .oa-vtxt { padding: 0; }
    .oa-sched-grid tr.oa-note-row { grid-template-columns: minmax(0, 1fr); }
    .oa-sched-grid .oa-note-line { justify-content: flex-start; }
    .oa-month-grid tr[data-oa-key] { grid-auto-flow: row dense; row-gap: 8px; }
    .oa-month-grid tr[data-oa-key] > td[data-label="Kế hoạch (tấn)"]:not(.top):not([colspan]),
    .oa-month-grid tr[data-oa-key] > td[data-label="Miền"],
    .oa-month-grid tr[data-oa-key] > td[data-label="Đích"]:not(.m-wide),
    .oa-month-grid tr[data-oa-key] > td[data-label="PO · tấn"] { grid-column: 1; }
    .oa-month-grid tr[data-oa-key] > td[data-label="Phương tiện"],
    .oa-month-grid tr[data-oa-key] > td[data-label="Hình thức giao"],
    .oa-month-grid tr[data-oa-key] > td[data-label="Hình thức"],
    .oa-month-grid tr[data-oa-key].vw > td[data-label="Ghi chú"]:not(.top) { grid-column: 2; }
    .oa-month-grid td[data-label="Địa điểm"]:has(> .oa-place, > .oa-two) { display: block !important; }
    .oa-month-grid td[data-label="Địa điểm"]:has(> .oa-place, > .oa-two)::before { display: none; }
    .oa-month-grid tr.vw .oa-place { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); column-gap: 8px; row-gap: 4px; }
    .oa-month-grid tr.vw .oa-place > span:not(.k):not(.oa-txt) { display: none; }
    .oa-month-grid tr.vw .oa-place > span.oa-ml6:has(.oa-chip) { display: block; grid-column: 1 / -1; margin-left: 0; }
    .oa-month-grid tr.vw .oa-place > :not(span) { grid-column: 1 / -1; }
    .oa-month-grid tr.vw .oa-place > .k { padding-right: 0; }
    .oa-month-grid .oa-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
    .oa-month-grid .oa-two .k { margin-right: 8px; }
    .oa-month-grid .oa-ship-qty label { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 6px; }
    .oa-month-grid .oa-ship-qty .lbl, .oa-month-grid .oa-ship-qty .val { padding: 0; line-height: 20px; text-align: left; }
}

.oa-shipdlg .modal-overlay { z-index: 1250; }
.oa-ship-link { cursor: pointer; color: inherit; }
.oa-ship-link:hover { color: #B4461A; text-decoration: underline; }

.oa-colbtn { height: 22px; padding: 0 6px; border: 1px solid #D5DAE0; border-radius: 6px; background: #fff; color: #56606B; font-size: 11.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.oa-colbtn:hover, .oa-colbtn.on { border-color: #B4BBC3; color: #1D2329; background: #F6F7F8; }
.oa-colmenu-ov { position: fixed; inset: 0; z-index: 1300; }
.oa-colmenu { position: fixed; z-index: 1301; width: 300px; max-width: calc(100vw - 16px); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #D5DAE0; border-radius: 10px; box-shadow: 0 10px 30px rgba(17, 24, 39, .15); padding: 6px; text-align: left; font-weight: 400; }
.oa-colmenu-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 6px; font-size: 11px; color: #6B7480; text-transform: uppercase; letter-spacing: .3px; }
.oa-colmenu-h a { text-transform: none; color: #B4461A; cursor: pointer; font-size: 12px; }
.oa-colit { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; background: #fff; }
.oa-colit:hover { background: #F9FAFB; }
.oa-colit.drag { opacity: .5; background: #FFF7ED; }
.oa-colit .grip { color: #B4BBC3; cursor: grab; font-size: 12px; letter-spacing: -2px; }
.oa-colit label { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: #1D2329; cursor: pointer; }
.oa-colit .mv { display: inline-flex; gap: 2px; }
.oa-colit .mv button { width: 22px; height: 22px; border: 1px solid #E1E4E8; border-radius: 5px; background: #fff; color: #56606B; cursor: pointer; font-size: 11px; padding: 0; }
.oa-colit .mv button:disabled { opacity: .35; cursor: default; }
.oa-sched-grid th.oa-col-x, .oa-month-grid th.oa-col-act { overflow: visible; text-align: right; }
.oa-sched-grid .oa-col-x { width: 52px; }
.oa-z40 .qb-muted { color: var(--qb-mut); font-size: 12px; }
.oa-z40 .qb-muted.b { font-weight: 600; }
.oa-z40 .qb-muted.n { font-weight: 400; }
