:root{--green:#176346;--deep:#123f31;--ink:#172a25;--muted:#708077;--line:#e1e7e3;--bg:#f5f7f4;--cream:#f4efdf;--shadow:0 3px 12px #15392c06;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:15px;background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79bd9d;outline-offset:2px}button{border:1px solid var(--line);background:white;border-radius:8px;padding:10px 15px;color:var(--ink);font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;min-height:40px}button:hover:not(:disabled){background:#f0f5f1}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover:not(:disabled){background:var(--deep)}button.danger{color:#b04335}button.ghost{border-color:transparent;background:transparent}button.small{padding:7px 10px;min-height:32px;font-size:13px}svg.icon{width:19px;height:19px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:31px;letter-spacing:-.8px;margin:0 0 7px;font-weight:700}h2{font-size:19px;margin:0;font-weight:650}h3{font-size:16px;margin:0 0 12px}p{line-height:1.5;margin:8px 0}.muted{color:var(--muted)}.small{font-size:13px}.nowrap{white-space:nowrap}.num{font-variant-numeric:tabular-nums}.layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(175deg,#174b39,#103a2e);color:#f2f5ef;padding:27px 18px;display:flex;flex-direction:column;gap:24px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{color:#f2f5ef;display:flex;flex-direction:column;gap:12px;align-items:center}.logo-box{background:#fffdf7;border-radius:12px;padding:8px 14px;width:146px;text-align:center;box-shadow:0 2px 10px #0001}.brand img{width:100%;height:82px;object-fit:contain}.brand strong{font-size:16px;letter-spacing:.3px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-link{color:#e1ece5;display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:8px;font-weight:500}.nav-link:hover{background:#ffffff12;text-decoration:none}.nav-link.active{background:#ffffff1c;color:white;box-shadow:inset 3px 0 #93c8a5}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:14px}.side-sep{border-top:1px solid #ffffff24}.profile{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere;padding:0 8px}.avatar{width:34px;height:34px;background:#ffffff22;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar .muted{color:#b3c8bc}.sidebar button{color:#e1ece5}.main{min-width:0;padding:28px 34px 44px;max-width:1760px;width:100%;margin:0 auto}.topline{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;margin-bottom:24px;gap:10px}.topline-right{display:flex;gap:12px;align-items:center}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.pagehead p{color:var(--muted);margin:0}.actions,.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.filters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.filters input[type=search]{flex:1;max-width:340px;min-width:180px}.filters select{min-width:160px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#506157;min-width:0}.field input,.field select,.field textarea{width:100%}input,select,textarea{border:1px solid #d6dfd9;background:white;color:var(--ink);border-radius:7px;padding:10px 12px;min-height:41px;max-width:100%}input:disabled,select:disabled{background:#f1f3f1;color:#7b8780}input[type=checkbox]{min-height:auto;accent-color:var(--green)}textarea{resize:vertical;min-height:90px}.panel,.order-card{background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}.panel{padding:22px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.order-card{margin-bottom:12px;overflow:hidden}.order-card summary{list-style:none;display:grid;grid-template-columns:minmax(160px,1.05fr) minmax(165px,.8fr) minmax(175px,1fr) auto;align-items:center;gap:14px;padding:20px 22px;cursor:pointer}.order-card summary::-webkit-details-marker{display:none}.order-card summary .code{font-size:19px;color:#153a2d;font-weight:750;display:block}.order-card summary .warehouse-label{font-size:13px;margin-top:5px;color:#68776e}.order-card summary .summary-meta{font-size:12px;line-height:1.65;color:var(--muted)}.order-card summary .summary-qty{text-align:right;font-size:14px;font-weight:600}.order-card[open] summary{border-bottom:1px solid var(--line);background:#fdfefb}.order-body{padding:18px 22px}.order-foot{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-top:16px}.order-foot .comment{font-size:13px;color:#5b6a61;max-width:60%;white-space:pre-wrap;overflow-wrap:anywhere}.badge,.status-select{border:0;border-radius:6px;padding:6px 9px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;min-height:27px;max-width:100%}.status-select{cursor:pointer;min-height:34px;padding-right:22px;width:100%}.s0{background:#eff0ed;color:#59645d}.s1{background:#e5effb;color:#2f5f99}.s2{background:#fbefda;color:#8d6329}.s3{background:#e0f1e4;color:#215f3d}.s4{background:#ecefeb;color:#778078}.waiting{background:#edf0f4;color:#68778b}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-weight:500;color:#718074;background:#f6f8f5;padding:12px 13px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:14px 13px;border-bottom:1px solid #edf0eb;vertical-align:middle}tbody tr:last-child td{border-bottom:0}.right{text-align:right}.stock-row:hover{background:#f7faf7}.stock-row.pending{color:#758176}.stock-row .req-link{font-weight:650}.table-sub{display:block;font-size:11px;color:#7b8880;margin-top:4px}.total-ribbon{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#eaf2eb;color:#295b3f;border-radius:8px;margin-bottom:20px;gap:15px;flex-wrap:wrap}.warehouse-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.warehouse-card{text-align:left;display:block;white-space:normal;padding:18px;border-radius:11px;border:1px solid var(--line);background:white;box-shadow:var(--shadow);width:100%}.warehouse-card:hover{border-color:#9bbda8}.warehouse-card.selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.warehouse-card h3{font-size:15px;overflow-wrap:anywhere;min-height:22px}.warehouse-values{display:flex;gap:20px;margin-top:14px}.warehouse-values .caption{display:block;color:var(--muted);font-size:12px;font-weight:400}.warehouse-values strong{display:block;font-size:23px;margin-top:5px;color:var(--green)}.warehouse-values .expected strong{color:#7b8790}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty .empty-title{color:#385445;font-size:18px;font-weight:600;margin-bottom:8px}.empty svg{height:33px;width:33px;margin-bottom:12px}.forms-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.line-table{min-width:920px}.line-table th,.line-table td{padding:9px 7px}.line-table input,.line-table select{width:100%;min-width:112px;padding:10px 8px;font-size:13px}.line-table .product-input{min-width:155px}.line-table .quantity-input{min-width:65px;width:85px}.line-table .delete-line{padding:8px;color:#ad5442}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.notice{background:#eff5ef;border:1px solid #e2ebe2;padding:13px 16px;border-radius:8px;line-height:1.5;font-size:13px;margin:14px 0}.error-box{padding:12px 16px;border-radius:8px;background:#fbece7;color:#973c2d;font-size:14px;margin:12px 0}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.segmented{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white}.segmented button{border:0;border-radius:0}.segmented button.active{background:var(--green);color:white}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:910px}.calendar-scroll{overflow:auto}.cal-day{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:360px;min-width:0}.cal-day:nth-child(7n){border-right:0}.cal-day.offmonth{background:#f6f7f4;color:#849087}.calendar-grid.month .cal-day{min-height:150px}.cal-day.today .day-head{background:#e1eee0;color:#165332}.day-head{display:flex;justify-content:space-between;gap:7px;padding:13px 11px;font-size:13px;border-bottom:1px solid var(--line);background:#f8faf7}.day-body{padding:8px;display:flex;flex-direction:column;gap:8px}.cal-event{display:block;white-space:normal;width:100%;background:white;text-align:left;border:1px solid #e1e7df;border-left:3px solid #9caaa0;border-radius:6px;box-shadow:var(--shadow);padding:10px 9px;font-size:12px;font-weight:400;min-height:0}.cal-event.ev1{border-left-color:#699bd4}.cal-event.ev2{border-left-color:#c9a05a}.cal-event.ev3{border-left-color:#68a77c}.cal-event strong{display:block;font-size:14px;color:#263a2f;margin-bottom:5px}.cal-event .cal-place{font-size:11px;display:block;overflow-wrap:anywhere;color:#6d7e70}.cal-event .production{display:block;margin:6px 0;line-height:1.5}.cal-event .badge{font-size:10px;padding:4px 5px;margin-top:7px;white-space:normal}.calendar-grid.month .cal-event{padding:7px;font-size:11px}.calendar-grid.month .cal-event .badge,.calendar-grid.month .cal-place{display:none}.calendar-grid.month .cal-event strong{font-size:12px}.calendar-grid.month .cal-event .production{margin:2px 0}.blank-day{text-align:center;color:#9ba79d;font-size:12px;padding-top:28px}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fbfcf9}.login-brand{background:linear-gradient(145deg,#194f3a,#0e3529);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px;color:#eff6ed;text-align:center}.login-brand .logo-box{width:260px;padding:20px;border-radius:20px}.login-brand img{width:100%;height:160px;object-fit:contain}.login-brand h1{font-size:36px;margin-top:30px}.login-brand p{max-width:340px;color:#c4d8c7;line-height:1.7}.login-form-area{display:flex;align-items:center;justify-content:center;padding:35px}.login-form{max-width:360px;width:100%}.login-form h2{font-size:27px;margin-bottom:8px}.login-form .field{margin:20px 0}.login-form button{width:100%;margin-top:8px}.login-form .login-error{color:#a13e30;font-size:13px;min-height:22px}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.settings-tabs button.active{background:var(--green);color:white;border-color:var(--green)}dialog{border:0;padding:0;background:white;border-radius:13px;box-shadow:0 20px 90px #17332640;max-height:88vh;max-width:1080px;width:calc(100% - 40px);color:var(--ink)}dialog::backdrop{background:#17332666;backdrop-filter:blur(2px)}.dialog-body{padding:26px;overflow:auto;max-height:88vh}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:20px}.dialog-head h2{font-size:23px}.dialog-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.audit-item{border-left:2px solid #c9dbce;padding:0 0 20px 18px;margin-left:8px}.audit-item strong{font-size:14px;display:block}.audit-item .muted{font-size:12px;margin:6px 0}.audit-json{font-family:inherit;font-size:12px;white-space:pre-wrap;max-height:250px;overflow:auto;background:#f4f7f2;padding:12px;border-radius:6px}.qty-strong{font-weight:700;color:var(--green)}.report-total{font-weight:700;background:#edf5ec}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#173f2e;color:white;border-radius:8px;padding:13px 22px;box-shadow:0 7px 35px #0002;max-width:90vw;z-index:10000;transition:transform .18s;pointer-events:none}#toast.show{transform:translateX(-50%) translateY(0)}#toast.error{background:#8e3b31}.loading{padding:60px;text-align:center;color:var(--muted)}.backup-status{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.backup-status strong{display:block;margin-top:8px;font-size:20px}.badge.off{background:#f0ede6;color:#8c785a}.read-only{color:#7d897f}.required{color:#aa6140}.password-page{max-width:540px;margin:70px auto}.password-page .field{margin:17px 0}.footer-note{margin-top:20px;font-size:12px;color:var(--muted)}.amount-preview{font-weight:600;color:var(--green)}.report-filter .field{min-width:170px}.report-filter{align-items:flex-end}.catalog-table .inline-actions{display:flex;gap:8px;flex-wrap:wrap}.pill{border-radius:6px;padding:4px 8px;background:var(--cream);font-size:12px;color:#715c33}.report-buttons{display:flex;gap:8px}.checkbox-label{display:flex;align-items:center;gap:10px}.w100{width:100%}
@media(min-width:1700px){.main{padding-left:45px;padding-right:45px}.order-card summary{padding:24px}}
@media(max-width:1150px){.layout{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:20px 12px}.main{padding:24px 22px}.warehouse-cards{grid-template-columns:repeat(2,1fr)}.order-card summary{grid-template-columns:1fr 1fr;gap:12px}.order-card summary .summary-qty{text-align:left}.forms-top{grid-template-columns:repeat(2,1fr)}.pagehead{align-items:flex-start}.calendar-grid{min-width:900px}}
@media(max-width:750px){.layout{display:block}.sidebar{position:static;height:auto;overflow:visible;display:block;padding:12px 15px}.brand{flex-direction:row;justify-content:space-between}.brand .logo-box{width:82px;height:52px;border-radius:6px;padding:2px 8px}.brand img{height:46px}.sidebar nav{flex-direction:row;margin-top:13px;gap:5px}.nav-link{padding:10px 12px;gap:6px;font-size:13px;flex:1;justify-content:center}.sidebar-bottom{margin-top:12px;gap:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.sidebar-bottom .side-sep,.sidebar-bottom .profile .avatar,.sidebar-bottom .profile .small{display:none}.sidebar-bottom .profile{font-size:12px;max-width:140px}.sidebar-bottom .actions{gap:3px}.sidebar-bottom button.small{padding:5px}.main{padding:22px 15px}.topline{margin-bottom:20px}.topline-right .update-text{display:none}h1{font-size:27px}.pagehead{flex-wrap:wrap}.pagehead .actions{width:100%}.pagehead .actions button{flex:1}.order-card summary{padding:15px}.order-body{padding:13px}.order-foot .comment{max-width:100%}.warehouse-card{padding:14px}.warehouse-values{gap:12px}.warehouse-values strong{font-size:21px}.warehouse-card h3{font-size:13px}.panel{padding:16px}.forms-top{gap:14px}.login-wrap{display:block}.login-brand{padding:25px}.login-brand .logo-box{width:150px;padding:8px}.login-brand img{height:85px}.login-brand h1{font-size:25px;margin-top:16px;margin-bottom:0}.login-brand p{display:none}.login-form-area{padding:30px 23px}.dialog-body{padding:19px}.dialog-form-grid{grid-template-columns:1fr}.backup-status{grid-template-columns:1fr}.filters select{min-width:0;flex:1}.filters input[type=search]{max-width:none;width:100%}.calendar-toolbar{gap:12px}.calendar-toolbar h2{font-size:16px}.profile .muted{display:none}.password-page{margin:20px auto}.report-filter .field{flex:1}.settings-tabs button{font-size:13px}.sidebar .profile button{min-height:36px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Corporate portal */
.portal-login{min-height:100dvh;display:grid;grid-template-columns:1.15fr 1fr;background:#fbfcf9}.welcome-pane{padding:48px 64px;color:#fff;background:radial-gradient(ellipse at 0% 100%,#39755a 0,transparent 62%),#163e31;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh;position:relative;overflow:hidden}.welcome-pane:after{content:'';position:absolute;width:520px;height:520px;border:1px solid #ffffff12;border-radius:50%;right:-330px;top:24%;box-shadow:0 0 0 70px #ffffff04,0 0 0 140px #ffffff03;pointer-events:none}.portal-brand{display:flex;align-items:center;gap:20px;text-decoration:none;color:inherit}.portal-brand img{width:110px;height:76px;object-fit:contain;background:#fff;border-radius:10px;padding:9px}.portal-brand span{font-size:14px;line-height:1.5;font-weight:500}.welcome-pane .portal-brand span{max-width:130px;color:#d8e6de}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;line-height:1.7}.welcome-clock{margin:65px 0;position:relative;z-index:1}.welcome-clock .eyebrow{color:#b5cbbd}.large-clock{font-size:clamp(72px,10vw,148px);font-weight:500;letter-spacing:-7px;line-height:1.25;font-variant-numeric:tabular-nums}.large-date{font-size:clamp(17px,2vw,24px);color:#e5ece4;line-height:1.5;max-width:440px}.large-date:first-letter{text-transform:uppercase}.welcome-bottom{position:relative;z-index:1}.welcome-bottom .eyebrow{color:#c2d9a1}.welcome-bottom h1{font-size:clamp(29px,3.1vw,46px);font-weight:500;line-height:1.14;letter-spacing:-1.2px;margin:18px 0}.welcome-bottom p{max-width:400px;font-size:14px;color:#c6d9ce;line-height:1.7}.signin-pane{display:flex;align-items:center;justify-content:center;padding:70px 48px;position:relative}.signin-pane .login-form{max-width:390px;width:100%;padding:0}.signin-pane .eyebrow{color:#72856e}.signin-pane h2{font-size:30px;letter-spacing:-.8px;margin:16px 0 10px}.signin-pane .muted{margin-bottom:34px;font-size:14px;line-height:1.7}.signin-pane .field{margin-top:22px;font-size:13px}.signin-pane input{height:52px;background:#fff;border-color:#d9e0d7;border-radius:9px;margin-top:4px}.signin-pane .primary{height:52px;justify-content:space-between;margin-top:24px;border-radius:9px}.signin-pane .footer-note{font-size:12px;line-height:1.7;margin-top:26px}.signin-footer{position:absolute;bottom:28px;font-size:11px;color:#7b867c}.portal-page{min-height:100dvh;background:#f5f7f1;display:flex;flex-direction:column;color:#223d30}.portal-header{padding:24px max(32px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe5d9;background:#fcfdf9;gap:20px}.portal-header .portal-brand img{width:90px;height:62px}.portal-account{display:flex;align-items:center;gap:16px}.portal-account>div{text-align:right;font-size:13px}.portal-account>div span{display:block;color:#748072;margin-top:4px;font-size:12px}.portal-content{max-width:1180px;width:calc(100% - 64px);margin:0 auto;flex:1;padding:56px 0}.portal-intro{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:40px}.portal-intro .eyebrow{color:#748465}.portal-intro h1{font-size:36px;font-weight:500;letter-spacing:-1px;margin:14px 0}.portal-intro p{font-size:14px;color:#748072}.portal-date{text-align:right;min-width:210px}.portal-date strong{display:block;font-size:42px;font-weight:500;line-height:1.2;font-variant-numeric:tabular-nums}.portal-date span{display:block;font-size:12px;margin:7px 0}.portal-date small{color:#7a8578;font-size:11px}.department-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.department{border:1px solid #dde4d7;border-radius:16px;background:#fff;min-height:275px;padding:24px;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;color:#294332;transition:transform .15s,border-color .15s}.department.available{background:#1e503c;color:#fff;border-color:#1e503c}.department.available:hover{transform:translateY(-4px);background:#254f3e}.department-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.department-icon{width:42px;height:42px;border-radius:12px;background:#edf1e8;display:grid;place-items:center}.available .department-icon{background:#ffffff18}.department-icon .icon{width:23px;height:23px}.department-status{font-size:10px;color:#687762;background:#f0f3ec;padding:5px 8px;border-radius:20px;white-space:nowrap}.available .department-status{background:#cfe4a8;color:#2c4c25}.department h2{font-size:23px;font-weight:500;margin:25px 0 10px;letter-spacing:-.4px}.department p{font-size:13px;line-height:1.6;min-height:42px;color:#6c7a66;margin:0}.available p{color:#cedfd2}.department-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8ede2;padding-top:19px;margin-top:23px;font-size:12px;color:#788470}.available .department-bottom{color:#e2edcf;border-color:#ffffff26}.department-bottom .icon{width:18px;height:18px}.admin-entry{display:flex;align-items:center;gap:18px;text-decoration:none;color:#354e39;border:1px solid #dce3d6;border-radius:12px;padding:20px 24px;margin-top:24px;background:#edf1e7}.admin-entry:hover{background:#e6eddc}.admin-entry-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e0e8d6}.admin-entry strong{font-size:14px}.admin-entry p{margin:6px 0 0;font-size:12px;color:#75816f}.admin-entry>.icon{margin-left:auto}.portal-footer{display:flex;justify-content:space-between;padding:22px max(32px,calc((100vw - 1180px)/2));font-size:11px;color:#7c8774;border-top:1px solid #e0e6d9;gap:20px}.portal-page a:focus-visible,.portal-page button:focus-visible,.portal-login input:focus-visible,.portal-login button:focus-visible{outline:3px solid #96ad63;outline-offset:4px}.settings-tabs{flex-wrap:wrap}.audit-json{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1100px){.department-grid{grid-template-columns:repeat(2,1fr)}.welcome-pane{padding:36px}.department{min-height:240px}.portal-intro h1{font-size:30px}}
@media(max-width:700px){.portal-login{grid-template-columns:1fr}.welcome-pane{min-height:auto;padding:25px 28px}.welcome-pane .portal-brand img{width:80px;height:58px}.welcome-clock{margin:24px 0 12px}.large-clock{font-size:78px;letter-spacing:-4px}.large-date{font-size:17px}.welcome-bottom{display:none}.signin-pane{padding:36px 28px 75px}.signin-pane h2{font-size:26px}.portal-header{padding:18px 20px;flex-wrap:wrap}.portal-account{gap:8px;margin-left:auto}.portal-account>div{display:none}.portal-header .portal-brand{gap:10px}.portal-header .portal-brand span{font-size:11px}.portal-header .portal-brand img{width:70px;height:52px}.portal-content{width:calc(100% - 40px);padding:30px 0}.portal-intro{display:block;margin-bottom:28px}.portal-intro h1{font-size:28px}.portal-date{text-align:left;display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-top:24px}.portal-date strong{font-size:26px}.portal-date small{display:none}.department-grid{gap:12px}.department{padding:18px;min-height:245px}.department-top{align-items:flex-start;flex-direction:column;gap:12px}.department h2{font-size:21px;margin-top:20px}.department p{font-size:12px}.department-status{font-size:9px}.department-bottom{font-size:11px}.admin-entry{padding:18px;gap:12px}.admin-entry p{line-height:1.6}.portal-footer{padding:20px;font-size:10px}.portal-footer span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.department{transition:none}}

/* Separate portal administration shell */
.admin-layout .brand strong{font-size:18px;letter-spacing:-.4px}.admin-brand-caption{display:block;font-size:11px;color:#c0d4c7;margin-top:8px}.admin-layout nav button.nav-link{width:100%;border:0;border-radius:8px;background:transparent;color:#d6e6dc;text-align:left;justify-content:flex-start;font-weight:500;white-space:normal;line-height:1.4}.admin-layout nav button.nav-link:hover{background:#ffffff12}.admin-layout nav button.nav-link.active{background:#ffffff1c;color:#fff}.admin-layout nav button.nav-link:focus-visible{outline:2px solid #d1e4ab;outline-offset:2px}.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.admin-summary .panel{padding:24px;display:flex;flex-direction:column;gap:14px}.admin-summary strong{font-size:34px;color:#184c38}.admin-summary .admin-backup-date{font-size:21px;line-height:1.5}.admin-welcome{padding:28px}.admin-welcome p{max-width:700px;line-height:1.7}.admin-welcome .actions{margin-top:24px}.admin-direction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-direction{padding:28px}.admin-direction h2{margin-top:22px}.admin-direction p{line-height:1.7}.admin-direction .actions{margin-top:22px}@media(max-width:800px){.admin-summary,.admin-direction-grid{grid-template-columns:1fr}.admin-layout .brand strong{font-size:16px}.admin-layout nav{flex-wrap:wrap}.admin-layout nav button.nav-link{width:auto}.admin-layout .admin-brand-caption{display:none}}

.access-matrix{margin:20px 0}.access-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border,#e0e7e3)}.access-row select{width:100%}.commerce-tile .department-icon{color:#204078;background:#e9eff9}.commerce-tile.available{border-top:3px solid #204078}@media(max-width:550px){.access-row{grid-template-columns:1fr}}

/* 1.6.6: approved compact portal header; department screens unchanged. */
.portal-page .portal-header{gap:24px;background:#fffefa}
.portal-page .portal-header .portal-brand{flex:1;gap:15px;min-width:205px}
.portal-page .portal-header .portal-brand img{width:64px;height:58px;padding:5px;border-radius:8px}
.portal-page .portal-header .portal-brand span{font-family:Arial,sans-serif;font-size:18px;font-weight:400;line-height:1.3;letter-spacing:-.4px}
.portal-page .portal-header-clock{font-family:Arial,sans-serif;font-size:26px;font-weight:500;line-height:1.15;letter-spacing:.5px;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:116px;text-align:center}
.portal-page .portal-header .portal-account{gap:13px}
.portal-page .portal-intro h1{margin:0}
@media(max-width:700px){.portal-page .portal-header .portal-brand{flex-basis:100%}.portal-page .portal-header{gap:20px}.portal-page .portal-header-clock{text-align:left}.portal-page .portal-header .portal-account{gap:8px;margin-left:auto}}
