/* HYDROTECH V36 · LOCAL DEMO ONLY. No server authentication / protection. */
:root{--v36-blue:#085291;--v36-slate:#68737a;--v36-ink:#172b3f;--v36-line:#d9e5ee;--v36-soft:#f4f9fc;--v36-red:#c54d4f}
html.app-active #appShell{min-width:0}
html.app-active #appShell .main-shell,html.app-active .content{min-width:0;max-width:100%}
html.app-active #appShell .content{overflow-x:hidden;overflow-y:auto}
.v36-profile-switch{height:39px;display:flex;align-items:center;gap:7px;border:1px solid #bcd6e9;color:#07548b;border-radius:11px;padding:0 11px;background:#eaf5fc;white-space:nowrap;font-weight:400;font-size:12px;cursor:pointer}
.v36-profile-switch svg{width:16px;height:16px}
.v36-demo-note{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#fff5e7;border:1px solid #efd9ae;border-radius:11px;padding:10px 14px;color:#7d592d;margin:0 0 18px;font-size:12px;line-height:1.5}
.v36-demo-note strong{letter-spacing:.03em}.v36-demo-note svg{width:17px;height:17px;flex-shrink:0}
.v36-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.v36-stat{background:white;border:1px solid var(--v36-line);border-left:4px solid var(--v36-blue);padding:18px 18px 15px;border-radius:14px;min-width:0;display:grid;gap:11px;min-height:104px}
.v36-stat small{color:#556a7d;font-size:12px;font-weight:400;line-height:1.4}
.v36-stat strong{color:var(--v36-ink);font-size:clamp(19px,1.7vw,26px);font-weight:400;letter-spacing:-.03em;overflow-wrap:anywhere;line-height:1.15}
.v36-stat.green{border-left-color:#24876a}.v36-stat.cyan{border-left-color:#31a8c2}.v36-stat.orange{border-left-color:#d79b37}.v36-stat.red{border-left-color:#c95459}
.v36-section{min-width:0;background:white;border:1px solid var(--v36-line);border-radius:15px;padding:18px;margin-bottom:15px}
.v36-section-title{font-size:15px;font-weight:400;color:#173b5d;line-height:1.4;margin-bottom:12px;display:flex;gap:8px;align-items:center}
.v36-row{display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:0;margin-bottom:14px}
.v36-row>div{min-width:0}.v36-row strong{color:#19354f;font-weight:400;font-size:14px;line-height:1.4}.v36-row small,.v36-person small,.v36-role-item small{display:block;color:#667e91;font-size:11px;line-height:1.55;font-weight:400}
.v36-row .v36-section-title{margin:0}
.v36-search{width:min(325px,100%);height:39px;min-width:155px;border:1px solid #ccdce9;border-radius:10px;display:flex;align-items:center;padding:0 10px;gap:6px;background:#f9fcfe}
.v36-search svg{width:15px;height:15px;flex:0 0 auto;color:#6d8499}
.v36-search input{min-width:0;width:100%;background:transparent;border:0;outline:0;font-size:12px}
.v36-table{background:#fff;border:0!important;max-width:100%;min-width:0;overflow:hidden}
.v36-table .table-scroll{overflow-x:auto;max-width:100%;border:1px solid #dbe6ee;border-radius:12px}
.v36-table table{border-collapse:collapse;width:100%;min-width:700px}
.v36-table th{background:#e9f4fa!important;color:#174469!important;font-size:11.5px!important;font-weight:400!important;white-space:nowrap;line-height:1.5}
.v36-table td{font-size:12px;line-height:1.55;vertical-align:middle;color:#344d61}
.v36-table td small{display:block}.v36-table tr[hidden]{display:none!important}
.v36-person{display:flex;align-items:center;gap:11px;min-width:170px}
.v36-person>span{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;background:#e1f1fc;border-radius:10px;color:#07528b;font-size:11px;font-weight:400}
.v36-person strong{display:block;line-height:1.35}.v36-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.v36-actions .btn{white-space:nowrap}.v36-danger{color:#ac3f44!important;border-color:#e8bec4!important}
.v36-tip,.v36-warning{color:#486278;background:#ecf6fb;border:1px solid #d2e4ef;padding:13px 15px;border-radius:11px;font-size:12px;line-height:1.6;display:flex;align-items:center;gap:9px;margin:12px 0}
.v36-warning{background:#fff6e8;color:#856027;border-color:#f1dcb7}
.v36-tip svg{flex:0 0 auto;width:17px;height:17px}
.v36-layout{display:grid;grid-template-columns:minmax(210px,285px) minmax(0,1fr);gap:15px;align-items:start}
.v36-role-side{padding:12px}.v36-role-main{overflow:hidden}
.v36-role-item{width:100%;display:flex;gap:10px;text-align:left;align-items:center;justify-content:space-between;padding:11px 12px;border-radius:10px;border:1px solid transparent;background:transparent;margin-top:5px;color:#2c4557;cursor:pointer}
.v36-role-item>span{min-width:0}.v36-role-item strong{font-size:12px;line-height:1.4;display:block;overflow-wrap:anywhere}.v36-role-item svg{width:16px;flex-shrink:0}
.v36-role-item.selected{background:#e8f4fb;border-color:#afcfdf;color:#075291}
.v36-matrix-wrap{width:100%;overflow-x:auto;border:1px solid #dbe6ee;border-radius:11px}
.v36-matrix{border-collapse:collapse;width:100%;min-width:630px;font-size:12px}
.v36-matrix th,.v36-matrix td{padding:9px 11px;border-bottom:1px solid #e7eff5;text-align:center;vertical-align:middle}
.v36-matrix th{white-space:nowrap;background:#e8f4fa;color:#124a77;font-size:11px;font-weight:400}
.v36-matrix td:first-child,.v36-matrix th:first-child{text-align:left;min-width:180px;font-weight:400;color:#283b4b}
.v36-matrix .v36-matrix-group td{text-align:left;background:#f3f7f9;font-size:11px;color:#68737a;font-weight:400;letter-spacing:.04em;padding:9px 11px}
.v36-perm{width:17px;height:17px;accent-color:#085291;cursor:pointer}
.v36-note{color:#788797;display:block;margin-top:14px;line-height:1.6}
.v36-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.v36-tabs button{border:1px solid #d9e5ee;border-radius:22px;background:white;color:#496176;padding:9px 15px;cursor:pointer;font-size:12px;font-weight:400}
.v36-tabs .active{background:#085291;border-color:#085291;color:white}
.v36-approval-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.v36-approval{background:#fff;border:1px solid #d7e4ee;border-radius:15px;padding:17px;min-width:0}
.v36-approval h3{margin:6px 0 0;font-size:16px;color:#19374f;line-height:1.35}
.v36-approval p{font-size:12px;color:#617b8e;margin:0 0 20px;line-height:1.6}
.v36-approval-amount{color:#0a568e;font-size:24px;font-weight:400;letter-spacing:-.03em;margin:12px 0 9px}
.v36-approval .v36-row:last-child{margin-bottom:0;align-items:flex-end}
.v36-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.v36-2col .v36-section{margin:0 0 16px}
.v36-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e3edf3}
.v36-switch-row div{min-width:0}.v36-switch-row strong{font-size:12.5px;line-height:1.5;display:block;color:#19394f}
.v36-switch-row small{color:#758a99;line-height:1.5;display:block;font-size:11px}
.v36-switch-row input{accent-color:#085291;width:18px;height:18px;flex:0 0 auto}
.v36-field{margin-top:16px}.v36-checklist{display:grid;gap:11px}
.v36-checklist>div{display:flex;align-items:flex-start;gap:10px;padding:11px;background:#f5fafc;border:1px solid #e4edf3;border-radius:11px;min-width:0}
.v36-checklist>div>span{width:27px;height:27px;background:#dceff9;color:#075291;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}.v36-checklist svg{width:15px;height:15px}
.v36-checklist strong{font-size:12px;color:#1a3f5c;display:block;line-height:1.45}.v36-checklist small{font-size:11px;color:#687e91;line-height:1.6;display:block}
.v36-toolbar{margin:0 0 13px;display:flex;justify-content:flex-end}.v36-toolbar label{display:flex;align-items:center;gap:9px;color:#5a6c79;font-weight:400;font-size:12px}
.v36-empty{font-size:12px;color:#668092;padding:23px;text-align:center}
.v36-persona-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v36-persona{border:1px solid #d3e2ec;background:#fff;border-radius:12px;min-height:82px;text-align:left;padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.v36-persona:hover,.v36-persona:focus-visible{border-color:#085291;background:#f2f9fd;outline:none}
.v36-persona:disabled{opacity:.52;cursor:not-allowed}
.v36-persona strong{font-weight:400;font-size:13px;color:#1a3d5a}.v36-persona small{color:#6a7d89;font-size:11px}.v36-persona .tag{align-self:flex-start}
#appShell .v36-section .btn,#appShell .v36-section .field{max-width:100%}
@media(max-width:1200px){.v36-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.v36-approval-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.v36-layout,.v36-2col{grid-template-columns:1fr}.v36-role-side{max-height:270px;overflow-y:auto}.v36-role-main{min-width:0}.v36-row{flex-wrap:wrap}.v36-search{width:100%}}
@media(max-width:640px){.v36-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v36-stat{padding:12px;min-height:95px}.v36-stat strong{font-size:18px}.v36-section{padding:12px}.v36-approval-grid,.v36-persona-grid{grid-template-columns:1fr}.v36-profile-switch span:not([data-icon]){display:none}.v36-profile-switch{padding:0 8px}.v36-table .table-scroll{max-width:calc(100vw - 42px)}.v36-row .btn{white-space:normal}.v36-approval .v36-row:last-child{display:block}.v36-approval .v36-actions{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.v36-role-item,.v36-persona,.v36-tabs button{transition:none!important}}
/* V36 mobile header: eliminate inherited desktop widths and text wrapping. */
@media(max-width:760px){
 html.app-active,html.app-active body{max-width:100%!important;overflow-x:hidden!important}
 html.app-active #appShell .topbar{height:61px!important;min-height:61px!important;padding:0 9px!important;gap:5px!important;overflow:hidden!important}
 html.app-active #appShell .topbar #menuBtn{display:grid!important;flex:0 0 34px!important;width:34px!important;height:36px!important}
 html.app-active #appShell .topbar #globalSearchBtn{width:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important;height:36px!important;padding:0!important;display:grid!important;place-items:center!important}
 html.app-active #appShell .topbar #globalSearchBtn>span:nth-child(2),html.app-active #appShell .topbar #globalSearchBtn>kbd{display:none!important}
 html.app-active #appShell .topbar .top-actions{gap:5px!important;min-width:0!important;margin-left:auto!important;flex-wrap:nowrap!important}
 html.app-active #appShell .topbar .top-actions .period-select,html.app-active #appShell .topbar #phoneQuickBtn{display:none!important}
 html.app-active #appShell .topbar #mailQuickBtn,html.app-active #appShell .topbar #notificationBtn{display:grid!important;place-items:center!important;width:35px!important;min-width:35px!important;height:36px!important;flex:0 0 35px!important}
 html.app-active #appShell .topbar .v36-profile-switch{width:35px!important;min-width:35px!important;max-width:35px!important;flex:0 0 35px!important;height:36px!important;display:grid!important;place-items:center!important;padding:0!important}
 html.app-active #appShell .topbar #profileBtn{width:37px!important;min-width:37px!important;max-width:37px!important;flex:0 0 37px!important;height:36px!important;padding:1px!important;display:flex!important;justify-content:center!important;border:0!important;background:transparent!important}
 html.app-active #appShell .topbar #profileBtn>span:nth-child(2),html.app-active #appShell .topbar #profileBtn>span:last-child{display:none!important}
 html.app-active #appShell .topbar #profileBtn>.avatar{width:33px!important;height:33px!important}
 html.app-active #appShell .content{max-width:100vw!important;overflow-x:hidden!important}
}
