.menu-toggle,.menu-burger{display:none}
@media(max-width:900px){
.app-header-inner{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0;padding:8px 16px}
.brand img{height:46px}
.menu-burger{display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border:1.5px solid var(--rose-soft);border-radius:10px;color:var(--rose-deep);font-size:14px;font-weight:500;cursor:pointer;user-select:none}
.burger-bars{display:block;width:16px;height:2px;background:currentColor;box-shadow:0 5px 0 currentColor,0 -5px 0 currentColor}
.menu-toggle:checked~.menu-burger{background:var(--rose-mist)}
.menu-toggle:focus-visible~.menu-burger{outline:2px solid var(--rose-soft);outline-offset:2px}
.nav,.user-menu{display:none;width:100%;flex-basis:100%}
.menu-toggle:checked~.nav{display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:10px 0 4px;border-top:1px solid var(--line);margin-top:8px}
.menu-toggle:checked~.user-menu{display:block;padding:8px 0 4px;border-top:1px solid var(--line);margin-top:8px}
.nav>a,.nav-sub a{padding:11px 12px;font-size:15px;border-radius:10px}
.nav-group,.nav-sub{display:block}
.nav-parent{display:block;pointer-events:none;padding:10px 12px 2px;font-size:12px;font-weight:500;color:var(--rose-deep);background:none}
.nav-parent::after{display:none}
.nav-sub{position:static;display:flex;flex-direction:column;margin:0;padding:0 0 4px 8px;border:0;box-shadow:none;background:none;min-width:0}
.nav-sub::before{display:none}
.user-trigger{padding:6px 4px}
.user-sub{display:flex;flex-direction:column;gap:2px;position:static;margin:6px 0 0;padding:0;border:0;box-shadow:none;background:none;min-width:0}
.user-sub a,.user-sub button{width:100%;padding:11px 12px;border:0;font-size:15px}
.user-sub form{margin:4px 0 0;padding:6px 0 0;border-top:1px solid var(--rose-mist)}
input[type=text],input[type=email],input[type=password],input[type=date],input[type=number],input[type=search],select,textarea{font-size:16px}
.btn{padding:11px 16px;font-size:14.5px}
.btn-sm{padding:8px 12px;font-size:13.5px}
}
.cal-list{display:none}
@media(max-width:760px){
.narrow{margin:4vh auto;padding:0 16px}
.brand-center{margin-bottom:18px}
.brand-center img{height:96px}
.check{min-height:44px}
.card .btn:not(.btn-sm),.form-actions .btn{width:100%}
.card form .btn-sm,.card .actions .btn{min-height:40px}
.dash-w{padding:14px 16px}
.dash-w-link,.cal-nav a{display:inline-flex;align-items:center;min-height:40px}
.dash-links a{min-height:44px;padding:10px 0}
.dash-list li .btn,.dash-list li .btn-sm{min-height:40px;padding:8px 14px}
.kpi{min-height:44px}
.dash-balances,.balances{grid-template-columns:1fr}
.cal-nav{gap:6px}
.cal-nav strong{text-align:center;flex:1}
.cal{gap:3px}
.cal-d{min-height:46px;padding:3px;text-align:center}
.cal-d .tag{display:none}
.cal-d:has(.tag){background:var(--rose-mist)}
.cal-d:has(.tag-approved){background:var(--green-soft)}
.cal-d:has(.tag-pending){background:var(--amber-soft)}
.cal-d:has(.tag-closure){background:#e6e0f0}
.cal-d.is-full{background:var(--danger-soft)}
.cal-num{margin:0;font-size:13px}
.cal-list{display:block;list-style:none;margin:14px 0 0;padding:0}
.cal-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 0;border-bottom:1px solid var(--rose-mist)}
.cal-list li:last-child{border-bottom:0}
.cal-list-day{min-width:28px;font-weight:500;color:var(--rose-deep)}
.cal-list .tag{display:inline-block;margin:0;font-size:12.5px;padding:2px 8px;white-space:normal}
.tag{font-size:12.5px}
.cal-legend .tag{font-size:12.5px}
.req-table,.req-table tbody,.req-table tr,.req-table td{display:block;width:100%}
.req-table thead{display:none}
.req-table tr{padding:12px 0;border-bottom:1px solid var(--rose-mist)}
.req-table tr:last-child{border-bottom:0}
.req-table td{padding:3px 0;border:0}
.req-table td:empty{display:none}
.req-table td form .btn{width:100%;margin-top:6px}
.field-row{gap:0}
.field-row .field{margin-bottom:10px}
.tf-qr svg{width:220px;height:220px}
.hint{font-size:13px}
.cal-h{font-size:13px;padding:2px}
}
@media(max-width:380px){.cal-d{min-height:42px}.brand-center img{height:84px}}
@media(max-width:760px){.card .cal-list{padding-left:0}}
.tc-l span{display:none}
@media(max-width:760px){
.tabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:2px;margin-left:-2px}
.tabs::-webkit-scrollbar{display:none}
.tabs a{flex:0 0 auto;display:flex;align-items:center;min-height:44px;padding:0 14px;font-size:14px}
.tabs a.is-active{margin-bottom:0;border-bottom-color:transparent;box-shadow:inset 0 -2px 0 var(--rose)}
.page-head>.btn,.page-head>a.btn{width:100%}
.page-head .filters,.page-head .filters .field{width:100%}
.filters{gap:10px}
.filters .field{flex:1 1 100%;min-width:100%}
.filters .btn,.filters .btn-sm{width:100%;min-height:44px}
.field label,label{font-size:14px}
.check{min-height:44px;gap:12px;font-size:15px}
.days-row{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.btn-sm{min-height:40px}
form>.btn,form>p>.btn,.card>.btn,.form-actions .btn,.mail-buttons .btn{width:100%;min-height:44px}
.actions{gap:8px}
.actions>.btn,.actions>form{flex:1 1 140px}
.actions>form>.btn{width:100%}
.actions .btn{min-height:44px}
.card{padding:16px}
.split,.grid{gap:12px}
.var-chip{min-height:40px;font-size:13px;padding:6px 12px}
.pagination{overflow-x:auto}
.hint,.muted,.balance-sub,.bal-sub{font-size:13px}
.stack thead{display:none}
.stack,.stack tbody{display:block;width:100%}
.stack tr{display:block;padding:12px 0;border-bottom:1px solid var(--rose-mist)}
.stack tr:last-child{border-bottom:0}
.stack td,.stack .table td{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px 0;border:0;text-align:right;white-space:normal}
.stack td[data-label]::before{content:attr(data-label);flex:0 0 auto;max-width:42%;text-align:left;color:var(--ink-soft);font-size:13px}
.stack td:first-child{display:block;text-align:left;font-size:15px;padding-bottom:8px}
.stack td:first-child::before{display:none}
.stack td:first-child .mail-desc{max-width:none}
.stack td:has(>input[type=text]),.stack td:has(>input[type=number]),.stack td:has(>select),.stack td:has(>form.inline-form){display:block;text-align:left}
.stack td:has(>input)::before,.stack td:has(>select)::before{display:block;margin-bottom:4px;max-width:none}
.stack td input[type=text],.stack td input[type=number],.stack td select,.stack td input[type=date]{width:100%;min-width:0;min-height:44px}
.stack .inline-form{display:flex;flex-wrap:wrap;margin-top:4px}
.stack .inline-form input{flex:1 1 150px}
.stack td .actions{width:100%;justify-content:flex-start}
.stack td.mail-actions,.stack td:has(>form>.btn:only-child),.stack td:has(>form>.link-btn){display:block;text-align:left;white-space:normal}
.stack td.mail-actions .btn,.stack td>form>.btn{width:100%;min-height:44px}
.stack .link-btn{min-height:44px;padding:0 4px}
.stack td.tc{display:block;padding:0}
.stack td.tc::before{display:none}
.tc-l{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;width:100%;cursor:pointer;color:var(--ink-soft);font-size:14px}
.tc-l span{display:inline}
.tc-l input[type=checkbox]{width:24px;height:24px}
.tc-l input[type=checkbox]:checked::after{left:7px;top:2px;width:6px;height:12px}
.stack .bal-name{font-family:var(--font-display);font-size:16px}
.bal-table thead{display:block}
.bal-table thead tr{display:none}
.bal-table thead tr:first-child{display:block;padding:0 0 6px;border:0}
.bal-table thead tr:first-child th{display:none}
.bal-table thead tr:first-child th.bal-type{display:block;padding:0 0 10px;border:0}
.bal-bulk{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.bal-bulk input,.bal-bulk .btn{width:100%;min-height:44px}
.stack .bal-first{display:flex;flex-wrap:wrap;margin-top:8px;padding-top:12px;border-top:1px dashed var(--rose-soft)}
.stack .bal-first::before{content:attr(data-type);display:block;flex:0 0 100%;max-width:none;order:-2;margin-bottom:6px;font-family:var(--font-display);font-size:15px;color:var(--rose-deep)}
.stack .bal-first::after{content:attr(data-label);order:-1;color:var(--ink-soft);font-size:13px;align-self:center;margin-right:auto}
.stack .bal-first:first-of-type{margin-top:0}
.stack .bal-table .bal-in,.stack .bal-in{width:120px;text-align:right}
.stack .bal-date{width:170px}
.stack td input.bal-in,.stack td input.bal-date{width:auto}
.stack .bal-left{display:block}
.stack .bal-left::before{display:block;margin-bottom:2px}
.stack .bal-remaining{text-align:left}
.bal-legend{flex-wrap:wrap}
.wk{grid-auto-rows:28px}
.wk-d{min-height:36px;font-size:13px}
.wk-d .tag{font-size:0;height:5px;min-height:0;padding:0;margin-top:1px}
.bar{font-size:13px;line-height:26px;padding:0 6px}
.cal-h{font-size:13px;padding:4px 0}
.cal-nav{gap:8px}
.cal-nav a{display:flex;align-items:center;min-height:44px;font-size:14px}
.cal-nav strong{text-align:center;font-size:14px}
.legend{gap:8px}
.legend .tag,.bar-key{font-size:13px;padding:3px 10px}
.plan-chip{padding:4px 12px;font-size:14px;margin-bottom:4px}
.plan-list li{padding:2px 0}
.plan-line{line-height:1.9}
.mail-actions{text-align:left}
.mail-preview{height:480px}
.mail-dl{grid-template-columns:1fr}
.detail dt{margin-top:6px}
.detail dd{overflow-wrap:anywhere}
.sec-code{font-size:13px}
.var-list{gap:8px}
.recovery-codes{columns:1}
}
@media(max-width:760px){
body .plan-chip{display:inline-block;padding:6px 14px;font-size:14px;margin-bottom:4px}
body .filters .field{min-width:100%;flex:1 1 100%}
body .mail-actions{text-align:left}
body .bal-table .bal-in,body .bal-table .bal-date{width:auto}
body .bal-table td,body .bal-table th{white-space:normal}
body .staff-table td,body .staff-table td .actions{white-space:normal;flex-wrap:wrap}
body .bal-bulk{margin-left:0}
body .bal-bulk input{width:100%}
body .table input[type=number]{min-width:0;width:100%}
}
@media(max-width:760px){
.stack td:has(.actions)::before,.stack td:has(>form>.btn:only-child)::before{display:none}
.stack td.bal-first[data-label]::before{content:attr(data-type);display:block;flex:0 0 100%;max-width:none;order:-2;margin-bottom:6px;font-family:var(--font-display);font-size:15px;color:var(--rose-deep)}
.stack td.bal-first[data-label]::after{content:attr(data-label);order:-1;color:var(--ink-soft);font-size:13px;align-self:center;margin-right:auto}
.bal-table thead tr:first-child th.bal-type,.bal-bulk{width:100%}
.bal-bulk input[type=date]{width:100%}
}
@media(max-width:760px){
.stack td.bal-first{display:flex;text-align:left}
.stack td.bal-first input.bal-in{order:0}
}
@media(max-width:760px){
.stack td.bal-first{display:flex!important}
.stack td.bal-first input.bal-in{width:120px}
}
@media(max-width:760px){
summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
}
@media(max-width:900px){
.tabs:has(+ .card) a,.tabs:has(+ form.card) a,.tabs:has(+ .grid) a,.tabs:has(+ .table-wrap) a{min-height:44px;padding:0 14px;border-bottom:0}
.tabs:has(+ .card) a.is-active,.tabs:has(+ form.card) a.is-active,.tabs:has(+ .grid) a.is-active,.tabs:has(+ .table-wrap) a.is-active{margin-bottom:0;box-shadow:none;border-bottom:0}
.tabs:has(+ .card),.tabs:has(+ form.card),.tabs:has(+ .grid){margin-left:0}
}
@media(max-width:760px){
.adj-filters .field,.adj-settings .field{min-width:0;flex:1 1 100%}
.adj-filters .btn,.adj-settings .btn{width:100%;min-height:44px}
.adj-reply{max-width:none}
#adjustment-form input,#adjustment-form select,#adjustment-form textarea,.adj-decision input,.adj-decision select,.adj-decision textarea,.adj-filters select,.adj-settings input{font-size:16px;min-height:44px}
#adjustment-form textarea,.adj-decision textarea{min-height:96px}
#adjustment-form .form-actions .btn,.adj-decision .actions .btn{width:100%;min-height:44px}
.adj-decision .actions{flex-direction:column;align-items:stretch}
.adj-decision .field-row{max-width:none}
.adj-sum .balance-main.adj-small{font-size:1rem}
}
@media(max-width:900px){
.brand img{height:auto;width:100px}
.brand-center{margin-bottom:12px}
.brand-center img{height:auto;width:120px}
}
@media(max-width:760px){
.adj-sum .balance{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 14px}
.adj-sum .balance-main{font-size:1.15rem}
}
@media(max-width:900px){.cal-nav strong{font-family:var(--font-display);font-weight:500;font-size:1.1rem}}
@media(max-width:760px){
.adj-decision .actions .btn{flex:0 0 auto;width:100%;min-height:44px}
.adj-table td>a.btn{width:100%;min-height:44px}
.adj-radio label{min-height:44px}
.page-head .actions{width:100%}
.page-head .actions .btn{flex:1 1 140px;min-height:44px}
}
@media(max-width:760px){
.pager{flex-direction:column;align-items:stretch;gap:8px}
.pager-info{display:none}
.pager-list{justify-content:space-between}
.pager-list li.pager-num,.pager-list li.pager-gap,.pager-list li.is-current{display:none}
.pager-list li a,.pager-list li span{height:44px;padding:0 16px}
.pager-mobile{display:block;text-align:center}
}
@media(max-width:760px){.app-footer-inner{padding:14px 16px;flex-direction:column;align-items:flex-start;gap:4px}}
@media(max-width:900px){
.brand img{width:76px;height:auto}
.app-header-inner{padding:8px 16px}
.menu-toggle:checked~.nav{gap:8px;padding:12px 0 6px}
.nav>a{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:15px;color:var(--ink)}
.nav>a::after,.nav-sub a::after,.user-sub a::after{content:"›";color:var(--rose);font-size:18px;line-height:1}
.nav>a.is-active,.nav-sub a.is-active,.user-sub a.is-active{background:var(--rose-mist);color:var(--rose-deep)}
.nav>a .badge-count{margin-left:8px}
.nav>a .badge-count+*{margin-left:auto}
.nav-group{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.nav-parent{display:block;pointer-events:none;padding:9px 14px;background:var(--cream-2);border-bottom:1px solid var(--line);font-size:12.5px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--rose-deep)}
.nav-group .nav-sub{display:block;padding:0;margin:0}
.nav-sub a{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;border-radius:0;border-top:1px solid var(--rose-mist);font-size:15px}
.nav-sub a:first-child{border-top:0}
.menu-toggle:checked~.user-menu{margin-top:8px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.user-trigger{padding:12px 14px;background:var(--cream-2);border-bottom:1px solid var(--line);border-radius:0}
.user-sub{gap:0;margin:0}
.user-sub a,.user-sub button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:13px 14px;border:0;border-top:1px solid var(--rose-mist);border-radius:0;font-size:15px}
.user-sub a:first-child{border-top:0}
.user-sub form{margin:0;padding:0;border:0}
.user-sub button{color:var(--danger)}
}
@media(max-width:900px){
.tabs a{min-height:44px;padding:0 14px;display:flex;align-items:center}
.tabs a.is-active{margin-bottom:-1px;box-shadow:none;border-bottom:1px solid var(--cream)}
}
@media(max-width:900px){.nav>a,.nav-sub a,.user-sub a,.user-sub button,.nav-parent{font-weight:400}}
@media(max-width:900px){
.brand img{width:58px;height:auto}
.app-header-inner{padding:6px 16px}
.menu-burger{padding:7px 12px;font-size:13.5px}
.menu-toggle:checked~.nav{gap:6px;padding:10px 0 4px}
.nav>a,.nav-sub a,.user-sub a,.user-sub button{padding:9px 12px;font-size:14px;line-height:1.4}
.nav>a{border-radius:10px}
.nav-parent{padding:7px 12px;font-size:11.5px}
.nav>a::after,.nav-sub a::after,.user-sub a::after{font-size:16px}
.user-trigger{padding:8px 12px}
.user-avatar{width:28px;height:28px;font-size:12px}
.brand-center img{width:210px;height:auto}
.brand-center{margin-bottom:14px}
}
@media(max-width:900px){
.nav>a .badge-count{margin-left:auto;margin-right:10px}
}
@media(max-width:900px){
.brand img{width:70px;height:auto}
.brand-center img{width:280px;height:auto}
body:has(.menu-toggle:checked){overflow:hidden}
.menu-panel{display:none}
.menu-toggle:checked~.menu-panel{display:block;position:fixed;left:0;right:0;bottom:0;top:52px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--cream);padding:12px 16px 32px;z-index:30;border-top:1px solid var(--line)}
.menu-panel .nav{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;padding:0;margin:0;border:0}
.menu-panel .user-menu{display:block;width:100%;margin:10px 0 0;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
}
