/* Shared presentation only. Scoped to business screens and ERP dialogs. */
#workspace .erp-screen{padding:0;border:0;background:transparent;border-radius:0;min-width:0}
#workspace .erp-screen-header,#workspace .erp-screen>.voucher-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #dce4d8}
#workspace .erp-screen h2{font:400 24px Georgia,serif;color:#183e32;margin:0}#workspace .erp-screen h3{font:600 14px 'Segoe UI',Arial,sans-serif;color:#274b3d;margin:0}
#workspace .erp-screen .voucher-panel,#workspace .erp-screen>form:not(.erp-flat-form){background:#fff;border:1px solid #dce4d8;border-radius:8px;padding:20px;margin:0 0 18px;min-width:0}
#workspace .erp-screen .voucher-panel form{padding:0;border:0;margin:0}#workspace .erp-screen .voucher-fields,#workspace .erp-screen .igp-fields,#workspace .erp-screen .ogp-fields,#workspace .erp-screen .pi-fields,#workspace .erp-screen .si-fields,#workspace .erp-screen .pri-fields,#workspace .erp-screen .sri-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end;margin:0 0 16px}
#workspace .erp-screen label,dialog.erp-dialog label{font:600 12px 'Segoe UI',Arial,sans-serif;color:#365344;margin:0 0 7px}
#workspace .erp-screen input:not([type=checkbox]):not([type=radio]):not([type=hidden]),#workspace .erp-screen select,dialog.erp-dialog input:not([type=checkbox]):not([type=radio]),dialog.erp-dialog select{font:13px 'Segoe UI',Arial,sans-serif;color:#183e32;background:#fff;border:1px solid #d4dfd0;border-radius:6px;width:100%;min-width:0;height:42px;padding:0 12px;box-shadow:none;outline:none}
#workspace .erp-screen textarea,dialog.erp-dialog textarea{font:13px 'Segoe UI',Arial,sans-serif;color:#183e32;background:#fff;border:1px solid #d4dfd0;border-radius:6px;width:100%;min-height:76px;padding:10px 12px;resize:vertical}
#workspace .erp-screen input:focus,#workspace .erp-screen select:focus,#workspace .erp-screen textarea:focus{border-color:#3b7960;box-shadow:0 0 0 3px #40785d15}
#workspace .erp-screen input:disabled,#workspace .erp-screen select:disabled,#workspace .erp-screen textarea:disabled,#workspace .erp-screen input[readonly]{opacity:1;color:#536858;background:#f1f5ed;cursor:default}
#workspace .erp-screen button,dialog.erp-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:40px;height:auto;margin:0;padding:9px 14px;border:1px solid #cbd9c5;border-radius:6px;background:#fff;color:#31563f;font:600 12px 'Segoe UI',Arial,sans-serif;line-height:1.3;white-space:nowrap;box-shadow:none;cursor:pointer}
#workspace .erp-screen button:hover:not(:disabled),dialog.erp-dialog button:hover:not(:disabled){background:#edf4e8;border-color:#8da982}
#workspace .erp-screen button.primary,#workspace .erp-screen button.erp-primary,dialog.erp-dialog button.primary{background:#1a493b;border-color:#1a493b;color:#fff}
#workspace .erp-screen button.delete-link,#workspace .erp-screen button.erp-danger,#workspace .erp-screen button.erp-remove{color:#9b4038;background:#fff;border-color:#e2c7c0}
#workspace .erp-screen button:disabled,dialog.erp-dialog button:disabled{opacity:.45;cursor:not-allowed}
#workspace .erp-screen .erp-actions,#workspace .erp-screen .voucher-buttons,#workspace .erp-screen .voucher-toolbar>.erp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
#workspace .erp-screen form>.erp-actions{margin:16px 0 0}#workspace .erp-screen .selection-find{display:flex;gap:6px;align-items:center;min-width:0;width:100%}#workspace .erp-screen .selection-find>input{flex:1;min-width:0}#workspace .erp-screen .selection-find>button{flex:none;min-height:42px;margin:0}
#workspace .erp-screen .voucher-details-heading,#workspace .erp-screen .erp-details-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
#workspace .erp-screen .voucher-grid-wrap,#workspace .erp-screen .user-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid #dce4d8;border-radius:6px;margin:14px 0}
#workspace .erp-screen table{width:100%;border-collapse:collapse;font:12px 'Segoe UI',Arial,sans-serif}#workspace .erp-screen th{font-size:11px;font-weight:600;color:#536a50;background:#eff4e9;text-align:left;padding:10px 9px;border-bottom:1px solid #d8e2d1}
#workspace .erp-screen td{padding:8px 9px;vertical-align:middle;border-bottom:1px solid #e6ece2}#workspace .erp-screen tbody tr:last-child td{border-bottom:0}#workspace .erp-screen table input:not([type=checkbox]):not([type=radio]),#workspace .erp-screen table select{height:36px;padding:0 9px}#workspace .erp-screen table button{min-height:34px;padding:7px 10px;font-size:11px}#workspace .erp-screen table .selection-find>button{min-height:36px}
#workspace .erp-screen td:has(>button){white-space:nowrap}#workspace .erp-screen td>button+button{margin-left:6px}#workspace .erp-screen button.erp-remove{min-width:34px}#workspace .erp-screen small.muted{display:block;margin-top:5px;font-size:11px}
#workspace .erp-screen [role=status]:not(:empty){border-radius:6px;padding:10px 12px;margin:0 0 14px}#workspace .erp-screen .amount{font-variant-numeric:tabular-nums}
#workspace .erp-screen .erp-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end;margin:0 0 16px}
@media(min-width:1200px){#workspace .erp-screen .voucher-fields.erp-four-columns{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){#workspace .erp-screen .voucher-fields,#workspace .erp-screen .igp-fields,#workspace .erp-screen .ogp-fields,#workspace .erp-screen .pi-fields,#workspace .erp-screen .si-fields,#workspace .erp-screen .pri-fields,#workspace .erp-screen .sri-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#workspace .erp-screen-header,#workspace .erp-screen>.voucher-toolbar{align-items:flex-start;flex-direction:column}#workspace .erp-screen .voucher-fields,#workspace .erp-screen .igp-fields,#workspace .erp-screen .ogp-fields,#workspace .erp-screen .pi-fields,#workspace .erp-screen .si-fields,#workspace .erp-screen .pri-fields,#workspace .erp-screen .sri-fields{grid-template-columns:minmax(0,1fr)}#workspace .erp-screen .voucher-panel,#workspace .erp-screen>form:not(.erp-flat-form){padding:14px}#workspace .erp-screen h2{font-size:21px}}
@media(max-width:1050px){#workspace .erp-screen .erp-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){#workspace .erp-screen .erp-field-grid{grid-template-columns:minmax(0,1fr)}}

#workspace .erp-screen>form:has(>.voucher-panel){padding:0;border:0;background:transparent}#workspace .erp-screen .erp-field-grid{align-items:start}

#workspace .erp-screen .employee-search,#workspace .erp-screen .customer-search,#workspace .erp-screen .supplier-search,#workspace .erp-screen .user-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,220px) auto;gap:16px;align-items:end}
@media(max-width:650px){#workspace .erp-screen .employee-search,#workspace .erp-screen .customer-search,#workspace .erp-screen .supplier-search,#workspace .erp-screen .user-search{grid-template-columns:minmax(0,1fr)}}

/* Keep the dashboard date inputs and refresh action on the same baseline. */
#workspace #overview-content #dash-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}
#workspace #overview-content #dash-form .dash-actions{align-self:end}
#workspace #overview-content #dash-refresh{height:42px;min-height:42px;margin:0}
@media(max-width:650px){#workspace #overview-content #dash-form{grid-template-columns:minmax(0,1fr)}}
