.catalog-workspace{--catalog-border:#9aabbf;--catalog-ink:#203b5d;display:flex;flex-direction:column;min-width:0;gap:10px}
.erp-theme .catalog-workspace>.module-tabs{margin:0;flex:none;gap:4px}
.erp-theme .catalog-workspace .module-tab-list{border:0;gap:4px;padding-bottom:2px}
.erp-theme .catalog-workspace .module-tab{border:1px solid #aebdce;border-bottom-width:2px;border-radius:5px;min-height:30px;padding:4px 10px;background:#fff;color:#405571;font-weight:400}
.erp-theme .catalog-workspace .module-tab.active{color:#1267d8;border-color:#9bb4d0;border-bottom-color:#1267d8;background:#f0f6ff;font-weight:400}
.erp-theme .catalog-workspace .module-tab-scroll{border-color:var(--catalog-border);height:30px;min-height:30px}
.erp-theme .catalog-workspace .catalog-heading{margin:0;min-height:36px;flex:none;gap:8px;flex-wrap:wrap}
.erp-theme .catalog-workspace .catalog-heading h1{font-size:21px;line-height:1.25;color:var(--catalog-ink);font-weight:650;overflow-wrap:anywhere}
.catalog-workspace .catalog-heading .product-commands{gap:6px;flex-wrap:wrap;align-items:center}
.erp-theme .workspace-content .catalog-workspace button:not(.icon-button):not(.module-tab-scroll):not(.module-tab),.erp-theme .catalog-workspace .command-link{min-height:30px;padding:4px 9px;font-size:12px;gap:6px}
.catalog-workspace .command-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid #899fb9;border-radius:5px;background:#fff;color:var(--catalog-ink)}
.catalog-workspace .command-link:hover{background:#fff0f1;border-color:#ca7d86}
.erp-theme .catalog-workspace .icon{height:16px;width:16px}
.erp-theme .catalog-workspace .catalog-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;margin:0;padding:9px 10px;background:#fff;border:1px solid var(--catalog-border);border-radius:6px;flex:none}
.erp-theme .catalog-workspace .catalog-filters .search-label{flex:1;min-width:180px;gap:4px}
.catalog-workspace .catalog-search-input{position:relative;display:block;min-width:0}
.catalog-workspace .catalog-search-input>.icon{position:absolute;left:9px;top:50%;transform:translateY(-50%);pointer-events:none}
.catalog-workspace .catalog-filter-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-height:30px;min-width:0}
.erp-theme .workspace-content .catalog-workspace .catalog-filters>button{height:32px;min-height:32px}
.erp-theme .catalog-workspace label,.erp-theme .catalog-workspace .check{font-size:12px;color:#34465d;gap:5px}
.erp-theme .catalog-workspace .check{flex-direction:row;min-height:30px;white-space:normal;font-weight:400}
.erp-theme .workspace-content .catalog-workspace input:not([type=checkbox]):not([type=radio]):not([type=file]),.erp-theme .workspace-content .catalog-workspace select{height:32px;min-height:32px;padding:5px 8px;font-size:13px;border-color:#8da1ba;border-radius:5px}
.erp-theme .workspace-content .catalog-workspace select{padding-right:30px}
.erp-theme .workspace-content .catalog-workspace .catalog-search-input>input:not([type=checkbox]):not([type=radio]):not([type=file]){padding-left:32px}
.erp-theme .workspace-content .catalog-workspace textarea{padding:7px 8px;font-size:13px;line-height:1.4;border-color:#8da1ba}
.erp-theme .workspace-content .catalog-workspace input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;accent-color:#d40a15;flex:none;cursor:pointer;outline-offset:2px}
.erp-theme .catalog-workspace :is(input,select,textarea):focus-visible{border-color:#c71925;outline:2px solid #e306132b;outline-offset:1px}
.erp-theme .catalog-workspace>.message{margin:0;padding:8px 10px;font-size:12px;flex:none;max-height:100px;overflow:auto}
.erp-theme .catalog-workspace .catalog-results{border:1px solid var(--catalog-border);border-radius:6px;background:#fff;min-height:180px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#899fb9 #edf1f5;scrollbar-gutter:stable}
.catalog-workspace .catalog-results:focus-visible{outline:2px solid #b51b26;outline-offset:1px}
.catalog-results>table{table-layout:fixed;font-size:12px;width:100%}
.catalog-customers .catalog-results>table{min-width:960px}
.catalog-products .catalog-results>table{min-width:1000px}
.catalog-codes .catalog-results>table{min-width:400px}
.catalog-labor .catalog-results>table{min-width:550px}
.erp-theme .catalog-workspace .catalog-results th{position:sticky;top:0;z-index:1;background:#eaf0f6;color:#294263;border-bottom:1px solid #9aabbf;font-size:12px;font-weight:600;padding:9px 8px;text-align:left;line-height:1.3}
.erp-theme .catalog-workspace .catalog-results td{padding:8px;border-bottom:1px solid #d0d9e5;color:#22364e;font-size:12px;line-height:1.4;overflow-wrap:anywhere;vertical-align:middle}
.erp-theme .catalog-workspace .catalog-results .cell-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.catalog-results tbody tr{background:#fff}
.catalog-results tbody tr:nth-child(even){background:#f7f9fc}
.erp-theme .catalog-workspace .catalog-results tbody tr:hover{background:#eef4fb}
.erp-theme .catalog-workspace .catalog-results tbody tr.catalog-row-selected{background:#fff0f1;box-shadow:inset 3px 0 #d40a15}
.erp-theme .catalog-workspace .catalog-results tbody tr.catalog-row-selected:hover{background:#ffe5e8}
.catalog-results .cell-subtitle{font-size:11px;color:#5d7088;margin-top:2px;overflow-wrap:anywhere}
.catalog-results td strong{font-weight:600}
.catalog-results .row-actions{gap:4px;flex-wrap:nowrap;justify-content:flex-end}
.erp-theme .workspace-content .catalog-workspace .icon-button{width:28px;height:28px;min-height:28px;padding:5px;border-color:#9aabbf;border-radius:5px;flex:none}
.erp-theme .catalog-workspace .catalog-results .catalog-actions-title{text-align:right}
.erp-theme .catalog-workspace .catalog-results th:last-child{right:0;z-index:3;border-left:1px solid #c3cfdd}
.erp-theme .catalog-workspace .catalog-results td:last-child:not([colspan]){position:sticky;right:0;z-index:2;background:inherit;border-left:1px solid #d0d9e5;text-align:right}
.catalog-results .empty{height:160px;text-align:center;color:#60738a}
.catalog-results .catalog-col-check{width:34px}.catalog-results .catalog-col-code{width:76px}.catalog-results .catalog-col-document{width:144px}.catalog-results .catalog-col-phone{width:120px}.catalog-results .catalog-col-city{width:140px}.catalog-results .catalog-col-type{width:105px}.catalog-results .catalog-col-status{width:78px}.catalog-results .catalog-col-actions{width:78px}.catalog-results .catalog-col-unit{width:44px}.catalog-results .catalog-col-money{width:102px}.catalog-results .catalog-col-stock{width:74px}.catalog-results .catalog-col-ncm{width:88px}.catalog-results .catalog-col-product-actions{width:136px}.catalog-results .catalog-col-single-action{width:62px}.catalog-results .catalog-col-billing{width:140px}
.catalog-workspace .catalog-list-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px;color:#526780;font-size:12px;min-height:20px;flex:none}
.catalog-workspace .modal-backdrop{padding:14px}
.erp-theme .catalog-workspace .modal{padding:14px 16px 0;border-color:#9aabbf;border-top:3px solid #d40a15;max-height:calc(100svh - 28px);scrollbar-width:thin;scrollbar-gutter:stable;border-radius:7px}
.erp-theme .catalog-workspace .modal-heading{margin:0 0 12px;gap:12px}
.erp-theme .catalog-workspace .modal-heading h2{font-size:17px;color:#203b5d;line-height:1.3}
.erp-theme .catalog-workspace .modal .form-grid,.erp-theme .catalog-workspace .modal .product-grid,.erp-theme .catalog-workspace .modal .tax-grid{gap:10px 12px}
.erp-theme .catalog-workspace .modal .product-grid,.erp-theme .catalog-workspace .modal .tax-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.erp-theme .catalog-workspace .modal .checks{gap:8px 18px;margin-top:10px}
.erp-theme .catalog-workspace .modal .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;border-bottom:1px solid #b3c0d1;margin:0 0 12px;padding-bottom:4px;scrollbar-width:thin}
.erp-theme .workspace-content .catalog-workspace .modal .tabs button{flex:none;min-height:28px;padding:4px 9px;border:1px solid #b3c0d1;border-radius:4px;background:#fff;color:#405571;font-weight:400}
.erp-theme .workspace-content .catalog-workspace .modal .tabs button.active{border-bottom:2px solid #1267d8;background:#f0f6ff;color:#1267d8;font-weight:400}
.erp-theme .catalog-workspace .modal .form-actions{gap:7px;margin:12px 0;padding-bottom:0}
.erp-theme .catalog-workspace .modal>.form-actions,.erp-theme .catalog-workspace .modal>form>.form-actions,.erp-theme .catalog-workspace .customer-editor-fields>.form-actions:last-child{position:sticky;bottom:0;z-index:2;background:#fff;border-top:1px solid #c6d1df;padding:10px 0;margin:14px 0 0}
.catalog-workspace .modal .dialog-section{padding-top:4px}
.catalog-workspace .modal .table-wrap{max-height:50svh}
.catalog-workspace .modal .message{padding:8px 10px;margin:0 0 10px}
.catalog-workspace .modal.confirmation{padding-bottom:14px}
@media(min-width:768px) and (min-height:480px){
    .catalog-workspace-shell .workspace-main{overflow:hidden}
    .erp-theme.catalog-workspace-shell .workspace-content{height:100%;max-width:none;min-height:0;padding:12px 14px;display:flex;flex-direction:column}
    .catalog-workspace{height:100%;min-height:0;flex:1;gap:10px}
    .erp-theme .catalog-workspace .catalog-results{flex:1;min-height:0}
    .catalog-workspace .catalog-results .empty{height:180px}
}
@media(max-width:1100px){
    .catalog-workspace .catalog-filter-options{width:100%;padding-top:2px}
    .erp-theme .catalog-workspace .catalog-heading h1{font-size:20px}
    .catalog-workspace .catalog-heading .product-commands{gap:5px}
}
@media(max-width:767px){
    .erp-theme.catalog-workspace-shell .workspace-content{padding:12px 10px}
    .catalog-workspace{gap:10px}
    .erp-theme .catalog-workspace .catalog-heading h1{font-size:20px;flex:1;min-width:180px}
    .catalog-workspace .catalog-heading .product-commands{width:100%}
    .erp-theme .catalog-workspace .catalog-filters .search-label{min-width:110px}
    .catalog-workspace .catalog-results{max-height:65svh}
    .catalog-workspace .catalog-filter-options{gap:6px 12px}
    .catalog-workspace .modal-backdrop{padding:8px}
    .erp-theme .catalog-workspace .modal{padding:12px 12px 0;max-height:calc(100svh - 16px)}
    .erp-theme .catalog-workspace .modal .product-grid,.erp-theme .catalog-workspace .modal .tax-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .erp-theme .catalog-workspace .modal .product-grid .span-2{grid-column:span 2}
}
@media(max-width:480px){
    .erp-theme .catalog-workspace .modal .form-grid,.erp-theme .catalog-workspace .modal .product-grid,.erp-theme .catalog-workspace .modal .tax-grid{grid-template-columns:minmax(0,1fr)}
    .erp-theme .catalog-workspace .modal .span-2,.erp-theme .catalog-workspace .modal .product-grid .span-2{grid-column:span 1}
}
