:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:#16362f;background:#eef4f0;line-height:1.6;--green:#154b40;--dark:#102f29;--mint:#d7ebdf;--muted:#567068;--line:#d6e3db;--paper:#fff;--danger:#a22f39;color-scheme:light}
*{box-sizing:border-box} body{margin:0} h1,h2,h3,p{margin:0} a{color:inherit} button,input,select,textarea{font:inherit} a,button{touch-action:manipulation} button{cursor:pointer} button:disabled{opacity:.65;cursor:wait}
button,.button{border:1px solid transparent;border-radius:.6rem;padding:.5rem .85rem;background:var(--mint);color:var(--dark);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:2.45rem;gap:.35rem;font-weight:600}
button.primary,.button.primary{background:var(--green);color:white} button.ghost,.button.ghost{background:var(--paper);border-color:var(--line)}button.danger{background:#f9e4e5;color:var(--danger)}button:hover,.button:hover{filter:brightness(.96)} :focus-visible{outline:3px solid #33856a;outline-offset:2px}
.loading{display:grid;place-items:center;min-height:80vh}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--dark);color:white;padding:1.15rem .8rem;position:sticky;top:0;height:100dvh;overflow:auto}.brand{display:flex;align-items:center;gap:.55rem;padding:.55rem .4rem;margin-bottom:1.4rem;font-weight:bold}.brand img{width:40px;height:40px;object-fit:contain;border-radius:.55rem;background:white}.sidebar a{display:flex;align-items:center;gap:.75rem;padding:.65rem .55rem;margin-bottom:.25rem;text-decoration:none;border-radius:.55rem;color:#e2f0e9;font-size:.88rem}.sidebar a span:first-child{font-size:1.07rem;min-width:1.15rem;text-align:center}.sidebar a.current,.sidebar a:hover{background:#245248;color:white}.sidebar .menu-title{color:#a9c6b9;font-size:.73rem;margin:.95rem .5rem .35rem;border-bottom:1px solid #30574e;padding-bottom:.22rem}.body{min-width:0}.top{min-height:70px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:.55rem clamp(.8rem,3vw,2.3rem);background:white;border-bottom:1px solid var(--line);gap:.5rem}.top .right{display:flex;align-items:center;gap:.65rem}.top .right button{display:none}.top strong{font-size:.92rem}.top .actions button,.top .actions a{font-size:.81rem}.content{padding:clamp(1rem,3vw,2.2rem);max-width:1530px;margin:auto}.page-title{margin-bottom:1.25rem;display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:.7rem}.page-title h1{font-size:clamp(1.48rem,2.7vw,2rem);line-height:1.3}.page-title p,.muted{color:var(--muted);font-size:.87rem}.muted{white-space:normal}.hero{background:#1a5649;color:#fff;border-radius:1rem;padding:clamp(1.1rem,3vw,2.2rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}.hero p{color:#dceee6;margin-top:.4rem}.hero h1{font-size:clamp(1.4rem,3vw,2.35rem)}.hero img{max-width:82px;border-radius:1rem;background:white}
.actions,.filters,.tags{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.filters{margin-bottom:1rem}.filters input,.filters select{width:auto;max-width:100%}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.8rem;margin-bottom:1.1rem}.card,.panel{padding:1rem;background:white;border:1px solid var(--line);border-radius:.8rem;min-width:0}.card{display:block;text-align:right;text-decoration:none;color:inherit}.card span{display:block;color:var(--muted);font-size:.83rem}.card strong{display:block;font-size:1.32rem}.card:hover{border-color:#72a391}.panel{margin-bottom:1rem}.panel h2,.panel h3{margin-bottom:.7rem}.panel h2{font-size:1.14rem}.row-link{text-decoration:none;color:var(--green);font-weight:bold}.row-link:hover{text-decoration:underline}.two{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.stack{display:grid;gap:.75rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:.8rem;margin-bottom:.9rem;align-items:start}.form-grid .wide{grid-column:1/-1}label.field{display:grid;gap:.3rem;font-size:.85rem;font-weight:bold}label.check{display:flex;align-items:center;gap:.4rem;font-size:.87rem}input,select,textarea{width:100%;border:1px solid #b8cdc1;border-radius:.55rem;background:white;color:#183e34;padding:.49rem .6rem;min-height:2.35rem}input[type=checkbox]{width:1.1rem;min-height:1.1rem;accent-color:var(--green)}textarea{min-height:6rem;resize:vertical}select[multiple]{min-height:7rem}input[dir=ltr],.mono{direction:ltr;unicode-bidi:isolate;font-family:Consolas,monospace}
.table-scroll{overflow:auto;width:100%}table{width:100%;border-collapse:collapse;background:white;text-align:right;font-size:.85rem}th,td{padding:.55rem .65rem;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{background:#eaf3ee;white-space:nowrap}.status{display:inline-block;font-size:.78rem;font-weight:bold;padding:.12rem .6rem;border-radius:3rem;background:#e6efe9;white-space:nowrap}.status.pending,.status.approved{background:#fff0cc;color:#5b4402}.status.execution,.status.confirmation{background:#deedf8;color:#1d4e69}.status.rejected,.status.cancelled,.status.failed{background:#fbe3e5;color:#892732}.status.completed,.status.posted,.status.done{background:#d7f1df;color:#1a5932}.empty{color:var(--muted);padding:1rem 0}.items{list-style:none;margin:0;padding:0}.items li{padding:.62rem 0;border-bottom:1px solid var(--line)}.items li:last-child{border-bottom:0}.notice{padding:.65rem .85rem;margin-bottom:.9rem;border-radius:.55rem;background:#fff2d8;color:#5d4405}.error{color:var(--danger);font-weight:bold;margin:.5rem 0}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:1rem;background:linear-gradient(140deg,#123c36 0%,#1d6857 47%,#eef4f0 47%)}.auth-box{width:min(100%,440px);background:white;padding:clamp(1.2rem,5vw,2.3rem);border-radius:1rem;box-shadow:0 20px 60px #133a3433}.auth-box img{width:62px;border-radius:.6rem}.auth-box p{margin-bottom:1rem}.auth-box form{display:grid;gap:.8rem}.auth-box h1{font-size:1.4rem;margin:.6rem 0}
#toast{display:none;position:fixed;bottom:1rem;inset-inline-end:1rem;z-index:5;max-width:min(90vw,440px);padding:.7rem 1rem;color:white;background:var(--dark);border-radius:.55rem;box-shadow:0 8px 30px #123c3640}#toast.visible{display:block}#toast.bad{background:#882631}dialog{border:1px solid var(--line);border-radius:.85rem;padding:1.1rem;background:white;color:inherit;width:min(93vw,790px);max-height:88vh;overflow:auto}dialog::backdrop{background:#102d2bb3}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.9rem}.dialog-head h2{font-size:1.2rem}.section-description{margin-bottom:.75rem;color:var(--muted)}#print-area{display:none}.print-mark{width:70px;max-height:75px;object-fit:contain}.doc-text{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:820px){.sidebar{display:none}.two{grid-template-columns:1fr}}
@media print{body{background:white;color:#171717}#app,#toast,dialog{display:none!important}#print-area{display:block}#print-area header,#print-area footer{white-space:pre-wrap;margin-bottom:1rem}#print-area .panel{border:0;padding:0}#print-area .actions,#print-area button,#print-area .filters,#print-area form{display:none!important}#print-area table{font-size:10pt}#print-area h1{font-size:16pt}}

[hidden]{display:none!important}.form-grid details label{display:block;margin:.35rem 0}
