.st-dialog{padding:0!important;width:min(620px,100%);max-height:92dvh;display:flex;flex-direction:column}.st-dialog>h2{padding:18px 20px;margin:0;flex-shrink:0}.st-dialog>.dlg-body{padding:0 20px 18px;overflow:auto;min-height:0}.st-dialog>.act{padding:14px 20px;margin:0;display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.st-dialog .fl{margin-bottom:12px}.st-dialog input,.st-dialog select,.st-dialog textarea{width:100%;min-width:0;max-width:100%;padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:inherit;font:inherit}.st-dialog .fl{display:flex;flex-direction:column;gap:5px}.st-page .card{padding:18px 20px}.st-page .dlg-summary{width:100%;table-layout:fixed}.st-page .dlg-summary th{width:135px;text-align:left}.st-page .dlg-summary th,.st-page .dlg-summary td{padding:8px;white-space:normal;overflow-wrap:anywhere}.st-actions,.st-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0}.st-tools input{flex:1;min-width:160px}.st-tools input,.st-tools select,.st-table input{padding:9px;border:1px solid var(--line);border-radius:6px;color:inherit;background:var(--card);font:inherit}.st-table{overflow:auto}.st-table table{width:100%;min-width:790px;table-layout:fixed}.st-table th,.st-table td{white-space:normal;padding:10px 8px;vertical-align:top;overflow-wrap:anywhere}.st-table th:first-child{width:32%}.st-table th:nth-child(2),.st-table th:nth-child(3),.st-table th:nth-child(5){width:8%}.st-table th:nth-child(4){width:20%}.st-table input{width:100%;min-width:0;box-sizing:border-box}.st-table small{display:block;color:var(--mute);margin-top:6px}.st-surplus{font-size:12px;display:block;margin-top:8px}.st-surplus[hidden]{display:none}.st-warning{color:#b45309;margin-top:8px}.st-warning .btn{margin-top:6px;white-space:normal}.st-page .err:empty{display:none}@media(max-width:700px){.st-dialog>h2{padding:16px 14px}.st-dialog>.dlg-body{padding:0 14px 14px}.st-dialog>.act{padding:12px 14px}.st-page .card{padding:14px}.st-page .dlg-summary th{width:95px}.st-actions .btn{white-space:normal}.st-tools input,.st-tools select{width:100%}.st-page{padding:10px!important}}

@media(max-width:700px){.st-page .dlg-summary th{width:110px}.st-table table,.st-table tbody{display:block;min-width:0}.st-table thead{display:none}.st-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--line)}.st-table td{display:block;border:0;padding:6px 0;min-width:0}.st-table td:first-child,.st-table td:nth-child(6){grid-column:1/-1}.st-table td:nth-child(2):before{content:"По учёту"}.st-table td:nth-child(3):before{content:"Резерв"}.st-table td:nth-child(4):before{content:"Факт"}.st-table td:nth-child(5):before{content:"Разница"}.st-table td:nth-child(6):before{content:"Другие склады"}.st-table td:not(:first-child):before{display:block;color:var(--mute);font-size:12px;margin-bottom:5px}.st-table td[colspan]{grid-column:1/-1}.st-table td[colspan]:before{display:none}}

.st-history{overflow:auto;margin-top:12px}.st-history table{width:100%;table-layout:fixed}.st-history th:first-child{width:170px}.st-history th,.st-history td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}@media(max-width:700px){.st-history th:first-child{width:100px}}
.st-page table[data-nosort] th{cursor:default}.st-page .dlg-summary th,.st-page .dlg-summary td,.st-table th,.st-table td,.st-history th,.st-history td{height:auto;max-width:none;overflow:visible}.st-table td{cursor:default}@media(max-width:700px){.st-table td{height:auto;overflow:visible;max-width:none}.st-table th{position:static}}
