.modal.hrm-advance-modal{width:min(920px,96vw)!important;max-width:920px!important}.hrm-advance-modal .modal-body{padding:18px!important}.hrm-advance-modal .form-grid{gap:12px 16px!important}.hrm-advance-modal .hrm-advance-add{display:flex;align-items:flex-end;gap:10px}.hrm-advance-add>label{flex:1;min-width:0}.hrm-advance-add>.btn{flex-shrink:0;min-height:40px}.hrm-advance-modal .hrm-advance-selected{max-height:240px;overflow:auto;border:1px solid var(--line,#365347);border-radius:9px}.hrm-advance-selected[hidden],.hrm-advance-modal [hidden]{display:none!important}.hrm-advance-selected table{min-width:0!important;width:100%}.hrm-advance-selected th,.hrm-advance-selected td{padding:8px 12px!important}.hrm-advance-selected td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.hrm-advance-selected td input{width:100%;min-height:36px}.hrm-advance-selected [data-remove-advance]{padding:6px 10px;min-height:32px;font-size:18px}.hrm-advance-total{display:flex;justify-content:flex-end;font-weight:750;padding:12px 0 0;font-size:13px}.hrm-advance-help{font-size:11px!important;line-height:1.5;margin:0!important}.hrm-advance-modal .modal-foot{padding:12px 18px!important}.hrm-advance-modal [data-advance-empty]{padding:14px;border:1px dashed var(--line,#365347);border-radius:9px;margin:0;font-size:12px}@media(max-width:600px){.hrm-advance-modal .hrm-advance-add{align-items:stretch;flex-direction:column}.hrm-advance-selected th,.hrm-advance-selected td{padding:7px!important}.hrm-advance-selected th:nth-child(2){width:110px!important}}

/* Match the ERP invoice entry layout. */
.modal.hrm-advance-modal{width:min(1280px,96vw)!important;max-width:1280px!important}.hrm-advance-modal>.modal-head{padding:12px 18px!important}.hrm-advance-modal .modal-body{padding:14px 16px!important}.hrm-advance-modal .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 12px!important}.hrm-advance-modal label{font-size:11px!important;gap:5px}.hrm-advance-modal input:not([type=checkbox]),.hrm-advance-modal select{min-height:34px!important;padding:7px 10px!important;font-size:12px!important;border-radius:8px}.hrm-advance-modal .hrm-advance-asset{grid-column:1/3}.hrm-advance-modal .hrm-advance-selected{margin-top:4px;border-radius:10px;max-height:280px}.hrm-advance-selected thead th{font-size:9px!important;letter-spacing:.5px;padding:8px 12px!important;background:var(--surface-2,#e5eee8)}.hrm-advance-selected tbody:empty:after{content:'No employees added';display:block;white-space:nowrap;padding:14px;color:var(--muted);font-size:11px}.hrm-advance-selected td{padding:5px 10px!important}.hrm-advance-selected td small{font-size:10px}.hrm-advance-selected [data-advance-row-number]{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:7px;background:#58a98620;font-size:11px;font-weight:750}.hrm-advance-selected [data-remove-advance]{color:#bf5a54;background:#c4484820;border:0}.hrm-advance-modal .hrm-advance-add{margin-top:7px!important;display:flex!important;flex-direction:row!important}.hrm-advance-modal .hrm-advance-add>.btn{min-height:32px!important;padding:7px 12px!important;font-size:11px}.hrm-advance-modal .hrm-advance-total{display:block;margin:16px 0 16px auto;width:min(320px,100%);border:1px solid var(--line,#365347);border-radius:10px;padding:10px 14px;font-size:12px}.hrm-advance-total>div{display:flex;justify-content:space-between;gap:20px;padding:6px 0}.hrm-advance-total>div:last-child{border-top:1px solid var(--line,#365347);font-size:14px}.hrm-advance-total span{color:var(--muted);font-size:11px;font-weight:500}.hrm-advance-modal [data-advance-empty].hrm-advance-empty-hint{padding:6px 0!important;border:0!important;background:none;font-size:10px!important;margin:0!important}.hrm-advance-modal .hrm-advance-help{display:none}.hrm-advance-modal .modal-foot{padding:10px 16px!important;gap:8px}.hrm-advance-modal .modal-foot .btn{min-height:36px!important;border-radius:9px}.hrm-advance-modal .hrm-advance-narration{margin:0!important}html[data-ui-theme=dark] .hrm-advance-selected thead th{background:#254333!important}@media(max-width:800px){.hrm-advance-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hrm-advance-modal .hrm-advance-asset{grid-column:auto}}@media(max-width:560px){.hrm-advance-modal .form-grid{grid-template-columns:1fr!important}.hrm-advance-modal .hrm-advance-asset{grid-column:auto}.hrm-advance-selected th,.hrm-advance-selected td{padding:6px!important}}

.hrm-advance-selected [data-remove-advance]{color:#d36a62!important;background:#b4454528!important;display:inline-flex;align-items:center;justify-content:center}@media(max-width:600px){.hrm-advance-selected th:nth-child(2){width:auto!important}.hrm-advance-selected th:nth-child(3){width:110px!important}}

.hrm-advance-inline .hrm-advance-selected{overflow:visible!important;max-height:none!important}.hrm-advance-inline .hrm-advance-selected td:nth-child(2){width:auto}.hrm-advance-inline .product-combobox{min-width:0}.hrm-advance-inline .hrm-inline-repeat{display:flex!important;align-items:center;flex-direction:row;gap:7px;font-size:11px!important;margin-left:12px}.hrm-advance-inline .hrm-inline-repeat input{width:16px!important;height:16px!important;min-height:16px!important;margin:0}.hrm-advance-inline .petty-ledger-results{z-index:160}.hrm-advance-inline .hrm-advance-add{align-items:center!important}

.hrm-advance-inline .hrm-inline-repeat{flex:0 0 auto!important;width:auto!important;justify-content:flex-start!important}.hrm-advance-inline .hrm-inline-repeat input{flex:0 0 16px!important;max-width:16px!important}html[data-ui-theme=dark] .hrm-advance-inline input:not([type=checkbox]){background:#162c22!important;color:#dfede5!important;border-color:#41604f!important}.hrm-advance-inline [data-remove-advance]{color:#d36a62!important;background:#b4454528!important}
