:root{--ink:#1f3247;--muted:#718397;--line:#e5ebf2;--green:#2365ae;--bg:#f3f6fa;--copper:#bb855c;color-scheme:light}
html{min-height:100%;background:#e6ecf3}body{max-width:640px;margin:0 auto;min-height:100vh;background:var(--bg);font-size:14px;overscroll-behavior-y:contain;-webkit-text-size-adjust:100%}body:has(dialog[open]){overflow:hidden}a,button{touch-action:manipulation}button,a,input,select,textarea{outline-offset:3px}[hidden]{display:none!important}
.m-topbar{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 18px 10px;background:#ffffffed;backdrop-filter:blur(16px);border-bottom:1px solid #e5ebf2;min-height:66px}.m-topbar-title{flex:1;min-width:0}.m-topbar-title small{display:block;font-size:10px;color:#8393a2;letter-spacing:1px}.m-topbar-title b{display:block;font-size:16px}.m-mark{display:grid;place-items:center;width:34px;height:36px;background:#183957;color:#e8b48a;border-radius:11px;font-size:21px;font-weight:700}.m-refresh,#mobileBack{display:grid;place-items:center;min-width:44px;height:44px;border:0;background:transparent;color:#496b8e;font-size:30px;border-radius:10px}.m-refresh:active,#mobileBack:active{background:#eaf1f9}
#content{max-width:100%;padding:18px 16px calc(96px + env(safe-area-inset-bottom));margin:0;min-height:65vh;overflow-wrap:anywhere}.m-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:640px;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffffa;border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:20;backdrop-filter:blur(12px)}.m-tabs a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;margin:0;padding:4px;color:#7a899b;font-size:11px}.m-tabs a:hover{background:#f4f7fb}.m-tabs a[aria-current=page]{color:#2264a8;font-weight:700}.m-tabs a[aria-current=page] .m-icon{background:#e9f1fb;box-shadow:0 0 0 5px #e9f1fb;border-radius:5px}.m-icon{width:23px;height:23px;flex-shrink:0}.m-badge{position:absolute;left:calc(50% + 8px);top:0;background:#d66d4d;border:2px solid white;border-radius:20px;color:white;padding:0 4px;min-width:19px;text-align:center;font-size:10px;line-height:16px}
.m-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#183957,#2d587a);padding:23px 22px;border-radius:20px;color:#fff;box-shadow:0 8px 22px #18395714}.m-hero:after{content:"";position:absolute;right:-22px;top:-25px;width:150px;height:150px;border:24px solid #e7b68c18;border-radius:45px;transform:rotate(35deg);pointer-events:none}.m-hero-date{position:relative;color:#c1d3e5;font-size:11px;z-index:1}.m-hero h1{position:relative;margin:12px 0 5px;font-size:24px;line-height:1.4;z-index:1}.m-hero p{color:#c1d3e5;margin:0;font-size:12px}.m-hero-department{display:flex;justify-content:space-between;gap:10px;margin-top:23px;font-size:11px;color:#e0b18b}.m-hero-department span{color:#bdcede}.m-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;padding:16px 0;background:#fff;border:1px solid var(--line);border-radius:16px;margin:14px 0 24px}.m-stats a{display:flex;align-items:center;flex-direction:column;border-right:1px solid #edf1f5;min-height:53px}.m-stats a:last-child{border:0}.m-stats strong{font-size:26px;line-height:1.3;color:#214d7c;font-variant-numeric:tabular-nums}.m-stats span{font-size:11px;color:var(--muted);margin-top:4px}.m-amber-text{color:#bb8151!important}.m-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:23px 2px 12px}.m-section-title h2{font-size:16px;margin:0}.m-section-title>a{font-size:11px;color:#72869d;min-height:32px;display:flex;align-items:center}.m-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 4px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px 8px}.m-app{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;font-size:11px;line-height:1.5;min-width:0;padding:3px 0;border-radius:12px}.m-app-icon{width:43px;height:43px;display:grid;place-items:center;background:#edf3fb;color:#3f76b0;border-radius:13px}.m-app-icon.amber{background:#fbf1e8;color:#a67547}.m-app:active{background:#edf3fb}.m-card-stack{display:grid;gap:12px}.m-request-card{border:1px solid var(--line);border-radius:16px;background:white;padding:17px}.m-card-top,.m-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.m-card-top{font-size:11px}.m-card-bottom{margin-top:16px}.m-card-bottom strong{font-size:15px;color:#315d86}.m-request-card h3{font-size:15px;margin:13px 0 6px}.m-request-card p{font-size:12px;color:var(--muted);margin:0}.m-pill{display:inline-block;background:#edf4fc;color:#4a75a0;padding:3px 8px;border-radius:6px;font-size:10px}.m-pill.amber{background:#faf0e6;color:#a17b58}.m-muted{color:var(--muted);font-size:12px}.m-empty{display:flex;flex-direction:column;align-items:center;padding:29px 14px;background:#fff;border-radius:16px;color:#7f92a6;font-size:12px}.m-empty .m-icon{width:33px;height:33px;color:#a6b7c9}.m-page-note{text-align:center;color:#95a2b0;font-size:10px;margin:25px 0 0}
.m-page-heading{margin:3px 2px 20px}.m-page-heading h1{font-size:23px;margin:0 0 5px}.m-page-heading p{font-size:12px;color:var(--muted);margin:0}.m-segments{display:flex;padding:4px;background:#e8eef5;border-radius:12px;gap:4px;margin-bottom:17px}.m-segments button{flex:1;min-height:42px;border:0;border-radius:9px;color:#667b90;background:transparent;font-size:13px}.m-segments button.active{background:white;color:#225c9c;box-shadow:0 2px 6px #25445d0a}.m-segments b{font-size:10px;margin-left:5px;font-weight:500}.m-app-search>span{display:block;font-size:12px;color:var(--muted);margin:0 0 7px}.m-app-search input{border-radius:12px;border:1px solid var(--line);background:white;min-height:46px;font-size:16px}.m-app-group{margin-bottom:18px}
.m-profile{text-align:center;padding:20px 12px 26px}.m-avatar{display:grid;place-items:center;width:72px;height:72px;margin:auto;background:linear-gradient(140deg,#1b4165,#4b7ba7);border-radius:25px;color:#f0ceb0;font-size:30px;box-shadow:0 8px 18px #23496714}.m-profile h1{font-size:22px;margin:14px 0 4px}.m-profile p{color:var(--muted);margin:0 0 12px;font-size:12px}.m-role{display:inline-block;background:#e5edf7;color:#55779a;font-size:11px;padding:3px 10px;border-radius:15px;margin:3px}.m-profile-list{border:1px solid var(--line);border-radius:16px;background:#fff;padding:0 16px;overflow:hidden}.m-profile-list>div,.m-profile-list>a,.m-profile-list>button{display:flex;align-items:center;gap:11px;min-height:58px;width:100%;padding:12px 0;border:0;border-bottom:1px solid #edf1f6;background:transparent;color:var(--ink);font-size:14px;text-align:left}.m-profile-list>:last-child{border:0}.m-profile-list>div{justify-content:space-between;font-size:12px}.m-profile-list>div>span{color:var(--muted)}.m-profile-list>a span,.m-profile-list>button span{flex:1}.m-profile-list .m-icon{color:#7e98b3;width:20px}.m-profile-list .m-icon:last-child{width:16px;color:#a0acb8}.m-install-note{padding:18px 4px;color:#75879a;font-size:11px;line-height:1.85}.m-install-note b{color:#536b83;font-size:12px}.m-install-note p{margin:5px 0}.m-logout{width:100%;min-height:47px;border:1px solid #e6d9d6;border-radius:12px;background:white;color:#a56856}.m-network{position:sticky;top:0;z-index:30;background:#fff0cf;color:#896218;padding:9px 16px;text-align:center;font-size:12px}
.auth-shell{min-height:100dvh;display:block;background:linear-gradient(160deg,#e4edf7,#f5f7fb 60%);padding:calc(35px + env(safe-area-inset-top)) 24px 25px}.auth-brand{background:transparent;color:#1d3e5e;display:flex;align-items:flex-start;text-align:left;padding:15px 5px 25px}.auth-brand .brandmark{background:#1b4164;border:0;border-radius:17px;width:56px;height:58px;color:#e4b18a;font-size:30px}.auth-brand h1{font-size:29px;margin:18px 0 3px}.auth-brand p{font-size:15px;margin:0;color:#58738d}.auth-brand small{color:#8a9eb2;margin-top:14px;font-size:11px}.auth-card{margin:0;width:100%;padding:26px 23px;border-radius:20px;border:1px solid #dfe7f0;box-shadow:0 8px 25px #25446307}.auth-card h2{font-size:19px;margin:0 0 7px}.auth-card .note{font-size:12px;line-height:1.8}.auth-card form{margin-top:20px}.auth-card .button{min-height:48px;border-radius:11px;font-size:15px;margin-top:8px}.m-auth-footer{text-align:center;font-size:11px;color:#8b9cae;margin:28px 0}.m-auth-footer span{margin:0 6px}.m-auth-footer a{color:#617e9b}
.button{min-height:42px;padding:10px 14px;border-radius:9px;font-size:13px}.primary{background:#2469ad}.primary:hover{background:#235f98}.secondary{border-color:#dfe7f0}.section-head{margin:0 0 16px;display:flex;flex-direction:column;align-items:flex-start}.section-head h1{font-size:22px}.section-head p{font-size:12px;line-height:1.8}.section-head small{font-size:9px;letter-spacing:1px}.section-head .action-row{width:100%;justify-content:flex-start;gap:8px;margin:5px 0}.panel{padding:15px;border-radius:15px;border-color:var(--line)}.toolbar{display:flex;gap:8px;margin:0 0 16px}.toolbar input{min-width:0;max-width:none;flex:1;font-size:16px}.toolbar select{font-size:14px;width:110px}.note,.info-box{line-height:1.8}.field input,.field select,.field textarea{font-size:16px;min-height:45px}.field span{font-size:12px}#content .table-wrap{overflow:visible}#content table,#content tbody{display:block;width:100%;white-space:normal}#content thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#content tbody tr{display:block;border:1px solid #e3eaf2;border-radius:12px;padding:12px;margin:0 0 12px;background:#fff}#content tbody tr:last-child{margin-bottom:0}#content td{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:6px 0;border:0;font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}#content td::before{content:attr(data-label);flex:0 0 90px;color:#8999a8;font-size:11px}#content td:first-child{display:block;font-size:14px;font-weight:600;border-bottom:1px solid #edf1f5;padding:0 0 10px;margin:0 0 5px}#content td:first-child::before{display:none}#content td:last-child:has(button){flex-wrap:wrap;justify-content:flex-start;padding-top:12px;margin-top:7px;border-top:1px solid #edf1f5}#content td:last-child:has(button)::before{display:none}#content td .button{min-height:40px;padding:8px 11px;font-size:12px}.apply-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.apply-tile{min-height:104px;padding:14px!important}.settings-grid{display:grid;grid-template-columns:1fr!important;gap:14px}.columns,.form-grid{grid-template-columns:1fr}.form-section{padding:0!important;border:0!important;margin:14px 0!important}.business-fields,.security-fields{grid-template-columns:1fr!important;gap:10px!important}.business-fields .span-all{grid-column:auto!important}.field{min-width:0}.order-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.order-line>label:first-child{grid-column:span 2}.order-line>button{justify-self:end}.permission-sections,.permission-grid{grid-template-columns:1fr!important}.permission-check{min-height:36px;align-items:center}.permission-check input[type=checkbox]{width:21px;height:21px;min-width:21px;min-height:21px}.detail{grid-template-columns:80px minmax(0,1fr)}.detail dd{overflow-wrap:anywhere}.expense-entry,.detail-entry{grid-template-columns:1fr!important}.approval-entry{display:flex;flex-wrap:wrap;gap:8px}.approval-entry>label{flex:1;min-width:0}.approval-entry .button{flex-shrink:0}
dialog,dialog.wide,dialog.business-form,dialog.security-form{position:fixed;inset:0;width:100%;max-width:640px;height:100dvh;max-height:100dvh;margin:auto;padding:0;border-radius:0;overflow:hidden;box-shadow:none}#dialogForm{display:flex;flex-direction:column;height:100%;min-height:0}.dialog-head{flex-shrink:0;min-height:65px;padding:calc(14px + env(safe-area-inset-top)) 18px 14px;border-bottom:1px solid var(--line);background:white;gap:10px}.dialog-head h2{font-size:17px;line-height:1.5}.dialog-head .icon-button{min-width:44px;height:44px;font-size:29px}#dialogBody{overflow:auto;flex:1;min-height:0;padding:6px 18px 20px;overscroll-behavior:contain}#dialogBody .table-wrap{max-width:100%;overflow:auto}#dialogBody table{font-size:12px}#dialogBody th,#dialogBody td{padding:12px 9px}.dialog-actions{flex-shrink:0;margin:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));gap:10px;background:white}.dialog-actions .button{flex:1;min-height:47px;font-size:15px}#formError{margin:0;padding:0 18px;background:#fff;color:#b24735;max-height:70px;overflow:auto}#formError:not(:empty){padding:10px 18px;border-top:1px solid #f2ded9;background:#fff6f2}.toast{bottom:calc(83px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);width:max-content;background:#1c3c59;font-size:12px;line-height:1.7;z-index:50;border-radius:12px}.security-form .permission-toolbar{flex-wrap:wrap}
@media(min-width:641px){body{box-shadow:0 0 50px #233f5714}.m-topbar{border-left:1px solid #dce5ef;border-right:1px solid #dce5ef}dialog,dialog.wide,dialog.business-form,dialog.security-form{height:94dvh;max-height:94dvh;border-radius:18px}.auth-shell{padding-top:60px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#fulfillmentLines table,#fulfillmentLines tbody{display:block;width:100%;white-space:normal}#fulfillmentLines thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#fulfillmentLines .fulfillment-row{display:block;padding:13px;margin:12px 0;border:1px solid var(--line);border-radius:12px}#fulfillmentLines td{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:8px;padding:7px 0;border:0;white-space:normal}#fulfillmentLines td::before{content:attr(data-label);color:var(--muted);font-size:11px}#fulfillmentLines td:first-child{display:block;font-weight:600;font-size:14px;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line)}#fulfillmentLines td:first-child::before{display:none}#fulfillmentLines input,#fulfillmentLines select{min-height:45px;font-size:16px;min-width:0;width:100%}
dialog.business-form{width:100%!important;max-width:640px}.business-form .dialog-head{padding:calc(14px + env(safe-area-inset-top)) 18px 14px;position:static}.business-form #dialogBody{padding:6px 18px 20px}.business-form .dialog-actions{padding:12px 18px calc(12px + env(safe-area-inset-bottom));position:static}.business-form .order-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px 0}.form-section h3{margin:0 0 12px;padding:10px 0}.business-form #formError{padding:0 18px}.business-form #formError:not(:empty){padding:10px 18px}
.m-tabs a>span{display:block!important;width:auto;font-size:11px;color:inherit}.m-tabs a>.m-badge{margin:0}
