.opening-workspace{min-width:0;padding:0}.opening-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:4px 9px;border-bottom:1px solid var(--ui-line)}.opening-header h2{font-size:calc(12px + var(--ui-font-step));margin:0;color:var(--ui-navy)}.opening-header>div{display:flex;gap:4px;margin-inline-start:auto}
.opening-filters{display:flex;align-items:center;gap:6px;padding:5px 9px;background:#f7faff;border-bottom:1px solid var(--ui-line);min-width:0}.opening-filters>input{width:240px;flex:0 1 240px;min-width:110px}.opening-filters label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px}.opening-filters input[type=date]{width:122px;min-width:0}.opening-filters>span{margin-inline-start:auto;color:var(--ui-muted);font-size:10px;white-space:nowrap}.opening-filters input,.opening-filters button,.opening-batch-fields input,.opening-batch-fields button{height:29px;min-height:29px}.opening-register-table{width:100%;overflow:auto}.opening-register-table table{width:100%;min-width:650px}.opening-workspace td,.opening-workspace th{padding:6px 7px}.opening-workspace td small,.opening-detail-table td small{display:block;color:var(--ui-muted);max-width:260px;white-space:normal}.opening-pager{display:flex;align-items:center;justify-content:space-between;padding:6px 9px;color:var(--ui-muted);font-size:10px}.opening-pager>div{display:flex;gap:5px}
.opening-dialog{padding:0;border:1px solid #cad9e8;border-radius:8px;box-shadow:0 12px 45px #17345028;width:min(1320px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:var(--ui-navy);background:#fff;overflow:hidden;direction:rtl;font:inherit}.opening-dialog::backdrop{background:#112a4160}.opening-dialog[open]{display:flex;flex-direction:column}.opening-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-bottom:1px solid var(--ui-line);background:#f7faff;flex-shrink:0}.opening-dialog h2{font-size:14px;margin:0}.opening-dialog form{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0}.opening-dialog main{overflow:auto;min-height:0;padding:10px;overscroll-behavior:contain}.opening-dialog footer{display:flex;gap:6px;align-items:center;justify-content:flex-end;padding:7px 10px;border-top:1px solid var(--ui-line);flex-shrink:0;background:#fafcfe}.opening-dialog footer>span{margin-inline-end:auto;font-size:11px}.opening-dialog .form-message{margin:0 10px 7px;flex-shrink:0}.opening-dialog .hidden{display:none}
.opening-batch-fields{display:flex;align-items:flex-end;gap:9px;min-width:0}.opening-batch-fields>label{display:flex;flex-direction:column;gap:4px;font-size:11px;min-width:0}.opening-batch-fields>label:first-child{width:155px;flex:0 0 155px}.opening-batch-fields>label:nth-child(2){flex:1}.opening-batch-fields>button{margin-inline-start:auto;white-space:nowrap}.opening-hint{margin:8px 0;padding:6px 8px;background:#f5f9fc;border:1px solid #e1eaf2;border-radius:4px;font-size:11px;color:#5d7186;line-height:1.6}
.opening-grid{overflow:auto;width:100%;border:1px solid var(--ui-line);border-radius:5px}.opening-grid table{width:100%;border-collapse:collapse;min-width:850px;table-layout:fixed}.opening-grid[data-kind=ADVANCE] table{min-width:760px}.opening-grid[data-kind=CHEQUE] table{min-width:1860px}.opening-grid th,.opening-grid td{height:auto;padding:5px 4px;border-bottom:1px solid #e5edf4;vertical-align:top}.opening-grid th{font-size:10px;text-align:right;white-space:normal;line-height:1.45;overflow-wrap:anywhere;background:#f0f6fb;color:#365774}.opening-grid td input,.opening-grid td select,.opening-grid td>.smart-select{width:100%;max-width:100%;min-width:0}.opening-grid input,.opening-grid select{height:31px;min-height:31px;font-size:12px}.opening-grid th:first-child{width:230px}.opening-grid[data-kind=ADVANCE] th:nth-child(4){width:155px}.opening-grid[data-kind=CHEQUE] th:first-child{width:112px}.opening-grid[data-kind=CHEQUE] th:nth-child(2){width:85px}.opening-grid[data-kind=CHEQUE] th:nth-child(4){width:210px}.opening-grid:not([data-mode=edit]) th:last-child{width:34px}.opening-grid .opening-remove{text-align:center}.opening-grid .opening-inactive{background:#f4f7fa}.opening-grid .opening-inactive input{background:#f1f5f9;color:#8a99a8}.opening-detail-meta{display:flex;flex-wrap:wrap;align-items:center;gap:15px;padding-bottom:9px}.opening-detail-meta button{margin-inline-start:auto}.opening-detail-table{min-width:760px;width:100%}.opening-totals{display:flex;flex-wrap:wrap;gap:12px;padding:10px 0;font-size:12px}.opening-reason{display:flex;flex-direction:column;gap:6px}.opening-reason textarea{min-height:90px;resize:vertical}.opening-history{display:flex;flex-direction:column;gap:7px}.opening-history article{display:grid;grid-template-columns:minmax(0,1fr) 160px 170px;gap:10px;align-items:start;border:1px solid var(--ui-line);background:#f7faff;padding:9px;border-radius:4px;font-size:11px}.opening-history strong{white-space:pre-wrap;overflow-wrap:anywhere}.hr-toolbar[hidden]{display:none}
@media(max-width:1050px) and (min-width:621px){.opening-filters{gap:4px;padding-inline:6px}.opening-filters>input{width:185px;flex-basis:185px;min-width:105px}.opening-filters input[type=date]{width:111px}.opening-filters>span{font-size:9px}.opening-filters .button{padding-inline:7px}}
@media(max-width:620px){.opening-header{align-items:center;min-height:35px}.opening-header h2{font-size:12px}.opening-header .button{font-size:10px;padding-inline:6px}.opening-filters{display:grid;grid-template-columns:1fr 1fr;gap:6px}.opening-filters>input{grid-column:1/-1;width:100%;min-width:0}.opening-filters label{min-width:0}.opening-filters input[type=date]{width:100%;min-width:0}.opening-filters>span{grid-column:1/-1;justify-self:start}.opening-pager{gap:7px}.opening-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.opening-dialog main{padding:7px}.opening-dialog h2{font-size:12px}.opening-batch-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}.opening-batch-fields>label:first-child{width:auto;flex:auto}.opening-batch-fields>label:nth-child(2){grid-column:1/-1;grid-row:2}.opening-batch-fields>button{grid-column:2;grid-row:1;width:100%}.opening-grid{overflow:visible;border:0}.opening-grid table,.opening-grid[data-kind=ADVANCE] table,.opening-grid[data-kind=CHEQUE] table{min-width:0;display:block}.opening-grid thead{display:none}.opening-grid tbody{display:flex;flex-direction:column;gap:8px}.opening-grid tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;border:1px solid var(--ui-line);border-radius:5px;background:#f9fbfd}.opening-grid td{display:block;min-width:0;padding:0;border:0}.opening-grid td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:10px;color:#61778b}.opening-grid td:first-child{grid-column:1/-1}.opening-grid[data-kind=CHEQUE] td:nth-child(4){grid-column:1/-1}.opening-grid td.opening-remove{grid-column:1/-1;text-align:left}.opening-grid .smart-select{width:100%;max-width:100%}.opening-history article{grid-template-columns:1fr;gap:4px}.opening-detail-meta{gap:7px}.opening-totals{flex-direction:column;gap:5px}}
