.smart-tabs{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);margin-bottom:12px;flex-wrap:wrap}.smart-tabs>button:not(.smart-refresh){border:0;background:transparent;border-radius:0;padding:10px 14px;color:var(--muted);border-bottom:2px solid transparent}.smart-tabs>button.active{color:#1f725f;border-bottom-color:#1f725f;font-weight:700}.smart-refresh{margin-left:auto}.smart-toolbar,.smart-summary{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap;margin:10px 0}.smart-toolbar label{display:grid;gap:4px;font-size:12px;min-width:220px;max-width:100%;flex:1}.smart-toolbar input{width:100%;min-width:0}.smart-toolbar .actions{margin-top:0}.smart-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:4px;background:white}.smart-table-wrap table{width:100%;border-collapse:collapse;font-size:13px;margin:0}.smart-table-wrap th{background:#e8f0ec;white-space:nowrap;color:#355c4c;padding:10px}.smart-table-wrap td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.smart-table-wrap small{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.smart-table-wrap input:not([type=checkbox]),.smart-table-wrap select{font-size:12px;min-height:32px;padding:5px 7px;width:110px}.smart-table-wrap input[type=checkbox]{width:16px;height:16px;accent-color:#1f725f}.smart-table-wrap input[data-field=supplier],.smart-table-wrap input[data-field=note]{width:150px}.smart-table-wrap input[data-field=unit]{width:70px}.smart-table-wrap td:first-child{min-width:100px}.smart-table-wrap td:nth-child(2){min-width:150px}.smart-empty{text-align:center;padding:32px!important;color:var(--muted)}.smart-badge{display:inline-block;font-size:12px;padding:3px 7px;border-radius:4px;white-space:nowrap;background:#eef0f3;color:#535a63}.smart-badge.confirmed,.smart-badge.received{background:#e1f1e7;color:#276344}.smart-badge.partial{background:#fff1d8;color:#805c16}.smart-badge.cancelled{background:#f8e6e6;color:#963f3f}.smart-warning{color:#895c14;background:#fff4dc;border-left:3px solid #cc9b38;font-size:12px;padding:7px 10px;display:block;margin:6px 0}.smart-summary{font-size:13px;padding:10px 0;border-bottom:1px solid var(--line);justify-content:flex-start}.smart-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.smart-fields label{font-size:12px;display:grid;gap:5px}.smart-fields input,.smart-fields select{min-width:0;width:100%}.smart-locked{background:#f5f7f6}.smart-style-photo{display:flex;align-items:center;gap:10px}.smart-style-photo img{width:42px;height:56px;object-fit:contain;background:white}.smart-sizes{display:flex;gap:8px;flex-wrap:wrap}.smart-sizes label{display:grid;font-size:12px;gap:3px}.smart-sizes input{width:70px!important}.smart-sizes{min-width:260px}#smartDialog{padding:0;width:min(1500px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:hidden}#smartDialog[open]{display:flex;flex-direction:column}#smartDialog>header{display:flex;justify-content:space-between;align-items:center;background:#eef5f0;padding:12px 18px;border-bottom:1px solid var(--line);flex:none}#smartDialog h2{margin:0!important;font-size:19px}#smartDialog .smart-body{padding:16px 18px;overflow:auto;min-height:0}#smartDialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line);flex-wrap:wrap;flex:none;background:#fff}#smartDialog details,#smartInventory details{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}#smartDialog summary,#smartInventory summary{font-size:13px;cursor:pointer;padding-bottom:10px}#smartError{color:#ac3543;font-size:13px}#smartError:empty{display:none}#smartDemandLines table{min-width:1950px}#smartInventory[hidden]{display:none!important}#view-materials [hidden]{display:none!important}#smartDemandLines td:nth-child(2){min-width:180px;max-width:220px}#smartInventoryTab{white-space:nowrap}@media(max-width:700px){.smart-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#smartDialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}#smartDialog .smart-body{padding:12px}#smartDialog>header,#smartDialog>footer{padding:10px 12px}.smart-tabs>button:not(.smart-refresh){padding:9px 7px;font-size:12px}.smart-toolbar label{min-width:100%}.smart-table-wrap table{min-width:720px}.smart-fields label:last-child{grid-column:1/-1}}
