:root{font-family:Roboto,Arial,sans-serif;color:#203b46;background:#f3f6f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{background:#122c37;color:white;padding:14px 20px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:2}header img{width:42px;height:42px}header strong{font-size:19px}header small{display:block;color:#d49a70;font-size:9px;letter-spacing:1px;margin-top:5px}header button{margin-left:auto;width:48px;background:#29434e;border:0;color:white}#status{padding:9px 20px;font-size:11px;color:#637d87}main{padding:18px 20px 110px;max-width:640px;margin:auto}h1{font-size:28px;margin:0 0 12px}h2{font-size:20px;margin:0 0 12px}p{line-height:1.5;color:#637d87;margin:8px 0 18px}.card{padding:20px;background:white;border:1px solid #dce6e4;border-radius:14px;margin:14px 0;box-shadow:0 3px 10px #173c3610}.eyebrow{color:#087f7b;font-size:11px;font-weight:bold;letter-spacing:1px}label{display:block;font-size:14px;font-weight:600;margin:16px 0}input,select,textarea{display:block;width:100%;border:1px solid #c7d8d5;border-radius:9px;background:white;padding:15px;font:inherit;color:#203b46;margin-top:7px;min-height:50px}input:focus,select:focus,textarea:focus{outline:2px solid #087f7b;outline-offset:1px}button{border:1px solid #c7d8d5;border-radius:9px;min-height:48px;padding:12px 16px;font:inherit;font-weight:600;background:white;color:#203b46;cursor:pointer}button:disabled{opacity:.5;cursor:wait}.primary{background:#087f7b;color:white;border-color:#087f7b}.actions{display:grid;gap:10px;margin-top:18px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.address{background:#122c37;color:white}.address .eyebrow,.address b{color:#d49a70}.address strong{display:block;font-size:21px;margin:12px 0}.address b{font-size:30px}.address progress{display:block;width:100%;accent-color:#d49a70;margin-top:14px}.description{background:#e8f3f2;color:#087f7b;padding:12px;border-radius:8px}.warning{background:#fff5e8;color:#87551f;padding:14px;border-radius:8px;line-height:1.5}.item{display:block;text-align:left;width:100%;margin:10px 0;padding:16px}.item strong{display:block;color:#087f7b;font-size:17px;margin-bottom:8px}.item span{font-size:15px;font-weight:400}nav{position:fixed;bottom:0;left:0;right:0;display:flex;gap:6px;background:white;padding:8px 12px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 12px #122c3715;z-index:2}nav button{flex:1;border:0;font-size:11px;max-width:210px}nav button span{display:block;font-size:22px;margin-bottom:4px}nav button.active{background:#122c37;color:#d49a70}nav{justify-content:center}dialog{border:0;border-radius:16px;max-width:560px;width:calc(100% - 32px);max-height:85vh;color:#203b46;padding:24px}dialog::backdrop{background:#122c3780}.close{float:right;min-height:32px;padding:4px 12px;font-size:24px}.details{display:grid;grid-template-columns:1fr 1fr;gap:16px}.details small{display:block;color:#637d87;margin-bottom:6px}.danger{color:#ac3b39;background:#fff1ef;border-color:#f1cdca}[hidden]{display:none!important}.back{margin-bottom:16px}.empty{text-align:center;padding:30px 10px}.empty strong{display:block;font-size:19px}.metrics{display:flex;gap:12px}.metrics .card{flex:1}.metrics strong{font-size:30px;color:#087f7b;display:block}.muted{color:#637d87;font-size:13px}

.nav-icon{display:block;width:24px;height:24px;margin:0 auto 5px}header>div{flex:1;min-width:0}header strong{display:block;font-size:18px;line-height:1.2}header button{flex-shrink:0}@media(max-width:380px){header{padding:12px}header strong{font-size:16px}header small{font-size:8px;letter-spacing:.6px}}

#barcode-video{display:block;width:100%;max-height:60vh;margin:14px 0;background:#000;border-radius:12px;object-fit:cover}

nav{gap:3px;padding-left:6px;padding-right:6px}nav button{min-width:0;padding:9px 2px;font-size:10px;overflow-wrap:anywhere}

@media(max-width:480px){nav button{font-size:9px;white-space:nowrap;overflow-wrap:normal}}

.operation-table-wrap{overflow-x:auto;border:1px solid #dce6e4;border-radius:10px;margin:18px 0}.document-items-table{width:100%;border-collapse:collapse;min-width:860px}.document-items-table th,.document-items-table td{padding:12px 10px;border-bottom:1px solid #e3ebe9;text-align:left;vertical-align:middle}.document-items-table th{background:#eef5f4;color:#49636c;font-size:12px;white-space:nowrap}.document-items-table tbody tr:last-child td{border-bottom:0}.document-items-table input,.document-items-table select,.document-items-table textarea{margin:0;min-height:42px;padding:9px;font-size:13px}.operation-check{width:44px;text-align:center!important}.operation-check input{display:inline-block;width:20px;height:20px;min-height:20px;margin:0;accent-color:#087f7b}.operation-item{min-width:210px}.operation-item strong,.operation-item small{display:block}.operation-item strong{color:#087f7b}.operation-item small{margin-top:4px;color:#637d87;line-height:1.3}.document-items-table .qty{white-space:nowrap}.operation-row-disabled{opacity:.48;background:#f4f6f5}.operation-row-disabled input:not([type=checkbox]),.operation-row-disabled select,.operation-row-disabled textarea{pointer-events:none}.operation-document-fields{display:grid;grid-template-columns:minmax(260px,520px);gap:12px}.operation-document-fields label{margin-bottom:0}.operation-summary{font-size:13px;color:#637d87;margin:8px 0 16px}

@media(min-width:900px){main.operation-page{max-width:1380px}.document-operation{padding:26px}.receipt-operation .document-items-table{min-width:920px}.issue-operation .document-items-table{min-width:1260px}.issue-operation .document-items-table td:nth-child(5){min-width:150px}.issue-operation .document-items-table td:nth-child(6){min-width:190px}.issue-operation .document-items-table td:nth-child(7){width:125px}.issue-operation .document-items-table td:nth-child(8){min-width:230px}}
