
:root{--green:#202556;--green-dark:#171b3f;--text:#222434;--muted:#7b7c85;--line:#e8e8ec;--bg:#f6f6f8;--orange:#e3a963;--blue:#638bb9;--purple:#9c83b6;--radius:12px;font-size:16px}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);background:var(--bg);font-size:1rem;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button{transition:background .16s,box-shadow .16s,transform .16s}button:focus-visible,a:focus-visible,tr:focus-visible{outline:3px solid #8c91bf;outline-offset:3px}button:hover{filter:brightness(.98)}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}svg{flex-shrink:0}input,select,textarea{min-width:0;border:1px solid #dfe0e5;border-radius:7px;padding:11px 12px;background:white;color:var(--text);outline:none;width:100%;font-size:.9rem}input:focus,select:focus,textarea:focus{border-color:#6f739a;box-shadow:0 0 0 3px #e9eaf1}input[readonly]{background:#f6f6f8;color:#686a78}textarea{resize:vertical;line-height:1.5}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23768179' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}input::placeholder,textarea::placeholder{color:#9a9ba4}.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:245px;padding:31px 17px 0;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:11px;align-items:center;padding:0 9px}.brand-icon{width:43px;height:47px;display:grid;place-items:center;background:var(--green-dark);border-radius:10px;color:#e9e6cd}.brand strong{font-size:1.12rem;letter-spacing:2.3px;font-weight:750;line-height:1.25}.brand strong span{display:block;font-size:.72rem;letter-spacing:4.7px;font-weight:550}.brand small{display:block;font-size:.56rem;letter-spacing:1.45px;color:#898a91;margin-top:7px;font-weight:600}.factory-select{display:flex;align-items:center;gap:9px;margin:35px 1px 29px;padding:12px 9px;border:1px solid var(--line);border-radius:9px}.factory-icon{width:33px;height:34px;background:#f3f3f6;display:grid;place-items:center;border-radius:7px;color:#54566b}.factory-select strong{font-size:.84rem;font-weight:600;display:block}.factory-select small{display:block;font-size:.7rem;color:#8b8c94;margin-top:3px}.live-label{font-size:.57rem;font-weight:700;letter-spacing:.6px;color:#5c5f7d;background:#edeef5;border-radius:4px;padding:4px 5px;margin-left:auto}.nav-label{font-size:.65rem;letter-spacing:1.6px;font-weight:600;color:#a0a1a8;padding-left:14px;margin-bottom:12px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;background:transparent;border:none;border-radius:7px;padding:12px 13px;color:#696a76;text-align:left;margin-bottom:5px;min-height:44px;font-size:.84rem;font-weight:500}.nav-item svg{color:#878893;stroke-width:1.7}.nav-item:hover{background:#f4f4f7}.nav-item.selected{color:#202556;background:#eaebf2;font-weight:650}.nav-item.selected svg{color:#202556}.nav-counter{font-size:.7rem;background:#ffead3;color:#b36a25;border-radius:5px;padding:2px 5px;margin-left:auto}.nav-number{font-size:.75rem;color:#696d91;margin-left:auto}.manage-label{margin-top:29px}.sidebar-bottom{margin-top:auto;padding-top:35px}.install-card{padding:16px;background:#f3f3f7;border:1px solid #e9eaf0;border-radius:10px;margin:0 2px 20px}.install-icon{display:grid;place-items:center;background:#e3e4ee;color:#515473;border-radius:7px;width:32px;height:32px;margin-bottom:13px}.install-card strong{display:block;font-size:.8rem;font-weight:650}.install-card p{font-size:.73rem;line-height:1.6;color:#898a95;margin:7px 0 13px}.install-card button{border:1px solid #d9dae3;background:white;padding:8px 10px;font-size:.74rem;font-weight:600;color:#51546c;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:30px;width:100%}.profile{border:0;border-top:1px solid var(--line);background:white;padding:19px 4px;width:100%;display:flex;align-items:center;gap:10px;text-align:left}.avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;background:#e5e6f0;color:#3f4261;border:1px solid #dddee8;border-radius:50%;font-size:.78rem;font-weight:600}.profile strong{font-size:.78rem;display:block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile small{font-size:.7rem;color:#8e8f99;display:block;margin-top:4px}.profile>svg{margin-left:auto;color:#8f909a}.main{margin-left:245px;min-height:100vh}.topbar{height:75px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumbs{display:flex;align-items:center;gap:14px;font-size:.8rem;color:#9596a0}.breadcrumbs strong{color:#4a4c5a;font-weight:500}.breadcrumbs svg{color:#b3b4bc}.topbar-actions{display:flex;gap:18px;align-items:center}.sync-status{display:flex;align-items:center;gap:7px;font-size:.73rem;color:#6f7180}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#757aa7;flex-shrink:0}.topbar-divider{height:21px;width:1px;background:var(--line)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:6px;padding:6px;color:#7b7c89;flex-shrink:0}.icon-btn:hover{background:#edeef2}.small-avatar{width:30px;height:30px;border:none;font-size:.75rem}.mobile-menu{display:none}.content{max-width:1630px;margin:auto;padding:25px 38px 0}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edeef2;border:1px solid #e1e2e9;padding:9px 13px;border-radius:7px;font-size:.72rem;color:#727482;margin-bottom:25px}.demo-banner>span{display:flex;align-items:center;gap:8px}.demo-banner strong{font-weight:600;color:#535671}.demo-banner a{display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:550;color:#42466f}.page-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:27px}.eyebrow{font-size:.62rem;letter-spacing:1.6px;font-weight:650;color:#9394a0;margin-bottom:8px}.page-heading h1{font-size:1.92rem;font-weight:650;letter-spacing:-1.05px;line-height:1.25}.page-heading p{color:#8b8c96;font-size:.83rem;margin-top:8px}.heading-actions{display:flex;align-items:center;gap:12px}.date-chip{display:flex;align-items:center;gap:8px;color:#7b7c88;font-size:.75rem;white-space:nowrap;border:1px solid #e2e2e7;padding:9px 12px;border-radius:7px;background:#f9f9fc}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.8rem;font-weight:550;line-height:1.3;border:1px solid #dddee5;background:white;color:#636471;border-radius:7px;padding:10px 14px;white-space:nowrap;min-height:36px}.btn:hover{box-shadow:0 2px 5px #1b1e3b10}.btn.primary{background:var(--green);color:white;border-color:var(--green)}.btn.danger{color:#ad514b;background:#fff9f7;border-color:#efddd8}.overview-banner{height:212px;background:#1c214f;border:1px solid #181d48;border-radius:12px;position:relative;overflow:hidden;color:#e9eaf5;padding:25px 30px;margin-bottom:24px;display:flex;align-items:center}.overview-banner:after{content:'';position:absolute;width:330px;height:330px;border-radius:50%;border:1px solid #ffffff0b;right:155px;top:-170px;pointer-events:none}.banner-label{display:flex;align-items:center;gap:7px;color:#adb0cc;font-size:.56rem;letter-spacing:1.8px;font-weight:600;margin-bottom:12px}.banner-label>span{width:5px;height:5px;background:#a1a5cd;border-radius:50%}.banner-copy h2{font-size:1.8rem;letter-spacing:-.8px;font-weight:500;line-height:1.17}.banner-copy p{font-size:.76rem;margin-top:10px;color:#b9bbcb}.banner-copy button{display:flex;align-items:center;gap:12px;color:#d8dae9;border:0;border-bottom:1px solid #8e91aa;background:transparent;font-size:.7rem;margin-top:15px;padding:0 0 4px}.wood-art{position:absolute;width:300px;height:210px;right:13%;top:4px;transform:rotate(-3deg)}.banner-note{position:absolute;right:25px;bottom:27px;display:flex;flex-direction:column;gap:11px}.banner-note>span{display:flex;gap:7px;align-items:center;font-size:.65rem;color:#acafc5}.banner-note svg{stroke-width:1.6}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:26px}.stat-card{background:white;border:1px solid var(--line);border-radius:10px;padding:17px 19px;text-align:left;display:flex;flex-direction:column;box-shadow:0 2px 2px #12153002}.stat-card:hover{border-color:#cbccd9;transform:translateY(-2px)}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:4px}.stat-top>span{font-size:.78rem;color:#7d7e8a;font-weight:500}.stat-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px}.stat-icon.green{background:#edeef5;color:#62668b}.stat-icon.blue{background:#edf2f8;color:#7b9abe}.stat-icon.purple{background:#f3eff8;color:#a38bb9}.stat-icon.orange{background:#fdf3e7;color:#d9a067}.stat-value{font-size:2.05rem;font-weight:600;letter-spacing:-1.2px;line-height:1.15;margin-top:5px}.stat-sub{display:block;font-size:.65rem;color:#a0a1aa;margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 2px #1c1f3b02;overflow:hidden}.panel-heading{padding:21px 21px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-heading h2{display:flex;gap:9px;align-items:center;font-size:.96rem;font-weight:650;letter-spacing:-.3px}.panel-heading>svg{color:#8e8f9c}.panel-heading p{font-size:.72rem;color:#9a9ba4;margin-top:6px;line-height:1.5}.count{display:inline-flex;align-items:center;justify-content:center;padding:3px 6px;min-width:21px;min-height:20px;border-radius:5px;background:#efeff3;color:#7f8190;font-size:.65rem;font-weight:550;letter-spacing:0}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:20px}.tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:13px 0 14px;font-size:.7rem;color:#93949d;white-space:nowrap}.tabs button.active{border-color:var(--green);color:#393d64;font-weight:650}.filter-btn{font-size:.65rem;gap:6px;padding:6px 8px;min-height:28px;border-color:#e6e6eb;color:#8b8c96}.active-filter{background:#eff0f4;color:#2b3164}.table-search{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:10px 20px;color:#a1a2ac}.table-search input{padding:2px 0;font-size:.72rem;outline:none;box-shadow:none!important;border:none;background:transparent}.table-search>span{font-size:.65rem;white-space:nowrap;color:#a3a4ac}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f9f9fb;font-size:.59rem;letter-spacing:.8px;color:#9798a3;font-weight:550;padding:12px 20px;border-bottom:1px solid var(--line)}td{padding:17px 20px;font-size:.8rem;border-bottom:1px solid #edeef2;color:#6c6d7a}td strong{display:block;color:#4a4c5b;font-size:.76rem;font-weight:550;margin:4px 0}.orders-table th,.orders-table td{padding-left:19px;padding-right:15px}.orders-table th:last-child,.orders-table td:last-child{padding-left:0;padding-right:13px;width:27px}.orders-table td{height:83px}.orders-table tr{cursor:pointer}.orders-table tbody tr:hover{background:#f9f9fc}.orders-table td strong{font-size:.74rem}.order-code{font-size:.63rem;letter-spacing:.4px;color:#989aa7;font-weight:500}.normal{font-weight:500!important}.muted{color:#999aa5;font-size:.71rem;display:block;margin-top:4px}.tiny{font-size:.59rem;line-height:1.5}.mini-workflow{display:flex;gap:5px;align-items:center;margin-bottom:6px}.mini-workflow>span{position:relative;display:flex;align-items:center;justify-content:center;background:#eeeff3;border:1px solid #e5e6ec;color:#a5a6b1;border-radius:50%;width:20px;height:20px;font-size:.58rem;margin-right:12px}.mini-workflow>span:not(:last-child):after{position:absolute;content:'';width:13px;height:2px;background:#e5e6ec;left:21px;top:8px}.mini-workflow>span.done{background:#e8e9f2;color:#6c7094;border-color:#dcdeec}.mini-workflow>span.done:after{background:#b6b9d0}.mini-workflow>span.progressing{background:#edf1f7;color:#7392b5;border-color:#cedcec}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;font-size:.59rem;border-radius:4px;font-weight:500;white-space:nowrap;line-height:1.2}.badge>span{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.8}.badge.green{background:#e9eaf4;color:#616693}.badge.blue{background:#edf2f8;color:#7192b6}.badge.purple{background:#f2edf7;color:#9e85b2}.badge.orange{background:#fcf1e3;color:#c4955e}.badge.red{background:#fff0eb;color:#b96955}.badge.gray{background:#efeff2;color:#8d8e9c}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 20px;color:#a3a4af;font-size:.59rem}.table-footer>span:last-child{display:flex;align-items:center;gap:5px}.right-rail{display:flex;flex-direction:column;gap:19px}.right-rail .panel-heading{padding:21px 19px 0}.right-rail .panel-heading h2{font-size:.82rem}.rail-subtitle{font-size:.65rem;color:#9e9faa;margin:7px 19px 15px}.pipeline-row{display:block;border:0;background:white;width:100%;text-align:left;padding:7px 19px 12px}.pipeline-row>span{display:flex;gap:9px;align-items:center;font-size:.7rem;color:#818396;margin-bottom:11px}.pipeline-row>span svg{color:#9c9eb0}.pipeline-row b{margin-left:auto;font-size:.7rem;font-weight:500;color:#70738b}.pipeline-track{height:5px;background:#edeef3;border-radius:4px;overflow:hidden}.pipeline-track i{height:100%;display:block;border-radius:4px}.pipeline-track .blue{background:#91adc3}.pipeline-track .purple{background:#b6a1c7}.pipeline-track .orange{background:#dec08a}.pipeline-legend{border-top:1px solid #e8e9f0;margin:9px 19px 0;padding:14px 0;display:flex;justify-content:space-between;color:#9d9fb0;font-size:.59rem}.upcoming-row{border:0;background:white;padding:11px 19px;display:flex;align-items:center;width:100%;gap:11px;text-align:left}.calendar-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;width:38px;height:43px;background:#f2f2f7;border:1px solid #e5e6f0;border-radius:6px;flex-shrink:0}.calendar-tile small{font-size:.54rem;text-transform:uppercase;color:#8f91a5}.calendar-tile b{font-size:.91rem;font-weight:550;color:#70738e;margin-top:2px}.calendar-tile.today{background:#f7f0e3;border-color:#eee5d3}.calendar-tile.today small,.calendar-tile.today b{color:#b69c6b}.upcoming-row>span:nth-child(2){min-width:0}.upcoming-row strong{font-size:.67rem;display:block;color:#646780;font-weight:550;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:145px}.upcoming-row small:not(.calendar-tile small){display:block;font-size:.56rem;color:#a6a8b8;margin-top:5px}.upcoming-row>svg{margin-left:auto;color:#9fa1b3}.text-btn{border:none;background:transparent;padding:6px 0;display:inline-flex;align-items:center;gap:6px;color:#5a5e85;font-size:.73rem;font-weight:550}.upcoming>.text-btn{border-top:1px solid #e7e8f0;width:calc(100% - 38px);margin:9px 19px 0;justify-content:center;padding:13px 0;font-size:.65rem}.workspace-note{display:flex;gap:12px;margin:0 7px;color:#9496aa}.workspace-note svg{margin-top:3px}.workspace-note strong{font-size:.7rem;font-weight:550;color:#82859d}.workspace-note p{font-size:.65rem;line-height:1.7;margin-top:5px;color:#a3a5b5}.rail-empty{padding:10px 19px;font-size:.75rem;color:#9c9eb0;line-height:1.6}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:.61rem;color:#9d9fad;padding:26px 0 23px;margin-top:14px}.app-footer>span{display:flex;align-items:center;gap:6px}.footer-separator{margin:0 3px;color:#bdbecb}.app-footer .status-dot{width:5px;height:5px;background:#9d9fb5}.empty{text-align:center;padding:60px 20px;max-width:560px;margin:auto}.empty-icon{width:58px;height:58px;background:#edeef4;border:1px solid #dedfec;border-radius:15px;display:grid;place-items:center;color:#5f638b;margin:0 auto 20px}.empty h3{font-size:1rem;font-weight:600;margin-bottom:9px}.empty p{font-size:.85rem;line-height:1.7;color:#858798;max-width:360px;margin:0 auto 21px}.error-banner{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #ecd8d1;background:#fff4ef;border-radius:7px;color:#a75c4f;font-size:.8rem;margin-bottom:15px;line-height:1.5}.error-banner .icon-btn{margin-left:auto;color:#ac6657}.text-red{color:#bd7866!important}.data-warning{display:flex;align-items:center;gap:4px;color:#b47f4e;font-size:.64rem;margin-top:6px}.search-box{display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);background:white;border-radius:7px;color:#8a8ca0;max-width:360px;width:100%}.search-box input{border:0;box-shadow:none;padding:11px 0;font-size:.82rem;background:transparent}.compact{max-width:270px}.queue-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:15px}.queue-toolbar>span{font-size:.75rem;color:#8c8e9e}.queue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.queue-card{padding:23px;overflow:visible}.queue-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.queue-card h3{font-size:1.05rem;font-weight:600;line-height:1.4}.queue-card>p{font-size:.8rem;color:#7e8096;margin-top:7px}.queue-card>p>span{margin:0 6px}.queue-dealer{font-size:.82rem;color:#525675;margin-top:21px}.quantity-row{display:flex;justify-content:space-between;margin-top:19px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:10px}.quantity-row small{display:block;font-size:.57rem;color:#8f91a5;letter-spacing:.8px;margin-bottom:6px}.quantity-row strong{font-size:1.02rem;font-weight:550}.quantity-row strong span{font-size:.73rem;font-weight:400;color:#8f91a4}.queue-actions{display:flex;justify-content:space-between;gap:8px;margin-top:20px}.queue-actions .btn{font-size:.69rem;padding:8px 10px}.item-remark{font-size:.76rem!important;line-height:1.6}.thickness-chip{display:inline-flex;border:1px solid #e3e4ec;background:#f4f4f9;color:#797c95;padding:4px 8px;border-radius:4px;font-size:.7rem;white-space:nowrap;font-weight:500}.info-note{display:flex;gap:10px;align-items:flex-start;background:#eff0f5;border:1px solid #dfe0ec;border-radius:8px;padding:14px 16px;color:#6a6d87;font-size:.82rem;line-height:1.65;margin-bottom:21px}.info-note svg{margin-top:3px}.info-note strong{font-weight:650}.person{display:flex;gap:10px;align-items:center}.you-label{display:inline-flex;font-size:.6rem;color:#8386a0;background:#edeef4;padding:3px 6px;margin-left:8px;border-radius:4px}.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-top:24px}.role-card{padding:22px}.role-card svg{color:#7e81a0;margin-bottom:12px}.role-card h3{font-size:.88rem;font-weight:600;margin-bottom:8px}.role-card p{font-size:.79rem;line-height:1.7;color:#8c8e9f}.wrap-cell{white-space:normal;min-width:240px;max-width:350px;line-height:1.6}.attention-row{display:flex;align-items:center;gap:15px;border-top:1px solid var(--line);padding:20px 23px}.attention-row>svg{color:#c2956a}.attention-row strong{font-size:.86rem}.attention-row p{font-size:.76rem;color:#8789a0;margin-top:6px}.attention-row .btn{margin-left:auto}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-card{padding:25px}.setting-title{display:flex;align-items:center;gap:12px;margin-bottom:23px}.setting-title svg{color:#7f82a0}.setting-title h2{font-size:1rem;font-weight:600}.settings-card>p{font-size:.85rem;line-height:1.8;color:#84869b;margin-bottom:20px}.settings-card>.btn{margin:0 8px 12px 0}.setting-line{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:16px 0;font-size:.82rem;color:#8a8ca0}.setting-line strong{font-weight:550;color:#5b5e7c}.setting-line+.btn{margin-top:19px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;min-width:0}.field>span{font-size:.8rem;font-weight:550;color:#686a80}.field>small{font-size:.72rem;line-height:1.5;color:#8d90a6}.check-field{display:flex;align-items:center;gap:9px;margin-bottom:15px;font-size:.83rem;color:#6d7087}.check-field input{width:16px;height:16px;accent-color:var(--green);padding:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.form-intro{font-size:.84rem;color:#80839b;line-height:1.7;margin-bottom:23px}.form-hint{font-size:.75rem;line-height:1.65;color:#9395aa;margin-bottom:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:21px;margin-top:13px;border-top:1px solid var(--line)}.overlay{position:fixed;inset:0;display:flex;justify-content:flex-end;background:#1e203655;backdrop-filter:blur(3px);z-index:50}.drawer{background:#f7f7fa;width:850px;max-width:95vw;height:100%;overflow:auto;box-shadow:-10px 0 50px #1c1e3320}.drawer-head{padding:28px 30px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start}.drawer-head h2{font-size:1.45rem;font-weight:600;margin-bottom:7px;letter-spacing:-.5px}.drawer-body{padding:27px 30px}.order-summary{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:20px;padding-bottom:25px}.order-summary small{display:block;color:#9093aa;font-size:.62rem;letter-spacing:.7px;margin-bottom:10px}.order-summary strong{font-size:.85rem;font-weight:550}.order-summary .badge{font-size:.65rem}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 19px}.detail-heading h3{display:flex;align-items:center;gap:8px;font-size:.93rem;font-weight:600}.row-actions{display:flex;gap:8px;align-items:center}.row-actions .btn{font-size:.7rem;padding:8px 10px}.detail-item{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:20px;padding:20px}.detail-item.cancelled{background:#f2f2f5}.detail-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:21px}.detail-item-top h3{font-size:.98rem;font-weight:600;display:flex;gap:10px;align-items:center}.detail-item-top p{font-size:.76rem;margin-top:9px;color:#80839b}.detail-item-top p .muted{display:inline;font-size:.65rem}.item-stages{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.stage-box{border:1px solid #e5e6f0;border-radius:7px;padding:14px 12px;display:flex;align-items:flex-start;flex-direction:column;gap:10px;background:#fafafd;min-width:0}.stage-name{display:flex;align-items:center;gap:7px;font-size:.76rem;font-weight:550;color:#7f829e}.stage-box>p{font-size:.72rem;line-height:1.6;color:#7b7e9c}.stage-box .text-btn{font-size:.68rem;margin-top:auto}.stage-quantity{font-size:.64rem;color:#7f82a1}.stage-audit{font-size:.6rem;color:#9ea0b6;overflow-wrap:anywhere;line-height:1.6}.audit-footer{display:flex;flex-direction:column;gap:7px;font-size:.65rem;color:#8f92ab;padding:10px 0 22px}.modal-overlay{justify-content:center;align-items:center;background:#1c1e3470;z-index:60;padding:24px}.modal{background:white;border-radius:13px;width:520px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 100px #161a3d20}.modal.wide-modal{width:790px}.modal-head{padding:23px 25px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modal-head h2{font-size:1.15rem;letter-spacing:-.35px;font-weight:600}.modal-body{padding:25px}.order-form-line{display:grid;grid-template-columns:24px minmax(0,2fr) minmax(0,.9fr) minmax(0,.7fr) 30px;gap:10px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.order-form-line .field{margin-bottom:0}.order-form-line .field>span{font-size:.67rem;color:#8689a3}.order-form-line input,.order-form-line select{font-size:.8rem;padding:10px}.order-form-line select{padding-right:28px}.line-number{width:23px;height:23px;border-radius:5px;background:#edeef5;color:#8184a1;display:grid;place-items:center;font-size:.65rem;margin-top:22px}.order-form-line .icon-btn{margin-top:22px;color:#b19c91}.order-total{display:flex;justify-content:space-between;gap:10px;font-size:.78rem;padding:16px 0;color:#8689a1}.order-total strong{font-weight:550;color:#50547a}.form-item-summary{padding:15px;background:#f1f2f8;border-radius:7px;margin-bottom:23px}.form-item-summary strong{display:block;font-size:.86rem;font-weight:600;margin-bottom:7px}.form-item-summary span{font-size:.77rem;color:#8689a4}.guide-copy p{font-size:.87rem;line-height:1.8;color:#7a7d9a;margin-bottom:20px}.guide-copy strong{font-weight:600;color:#4c5074}.toast{position:fixed;bottom:27px;left:calc(50% + 105px);transform:translateX(-50%);z-index:100;background:#20244d;color:#e4e6f3;border:1px solid #33375d;box-shadow:0 6px 30px #12153020;border-radius:9px;padding:13px 15px 13px 18px;display:flex;gap:10px;align-items:center;font-size:.82rem;max-width:90vw}.toast>.icon-btn{color:#babdd8}.sidebar-scrim{display:none}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Keep task-critical information readable at every density. */
.stat-top>span,.tabs button,.table-search input,td,.orders-table td strong,.orders-table td .muted,.stage-name,.nav-item,.panel-heading p{font-size:.875rem}.badge{font-size:.75rem}.orders-table th,th{font-size:.6875rem}.orders-table .order-code{font-size:.75rem}.orders-table td .tiny{font-size:.75rem}.right-rail .panel-heading h2{font-size:.875rem}.rail-subtitle,.pipeline-row>span,.upcoming-row strong{font-size:.8125rem}.upcoming-row small:not(.calendar-tile small),.stat-sub{font-size:.75rem}.orders-table th,.orders-table td{padding-left:18px;padding-right:12px}.table-scroll{scrollbar-width:thin;scrollbar-color:#d1d2e0 transparent}.order-panel{min-width:0}
@media(min-width:1500px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 290px}.wood-art{right:17%;width:330px}.overview-banner{height:225px}.banner-copy h2{font-size:1.95rem}.orders-table td{height:89px}.content{padding-left:44px;padding-right:44px}.stat-card{padding:20px 22px}}
@media(max-width:1350px){.sidebar{width:222px;padding-left:12px;padding-right:12px}.main{margin-left:222px}.content{padding:24px 26px 0}.topbar{padding:0 26px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 245px;gap:17px}.table-toolbar{padding:0 15px}.tabs{gap:14px}.tabs button{font-size:.75rem}.filter-btn span{display:none}.orders-table th,.orders-table td{padding-left:13px;padding-right:10px}.orders-table td strong{font-size:.8rem}.orders-table td .muted,.orders-table td .tiny{font-size:.68rem}.badge{font-size:.66rem}.orders-table th{font-size:.58rem}.right-rail .panel-heading{padding-left:16px;padding-right:16px}.upcoming-row{padding-left:15px;padding-right:15px}.upcoming-row strong{font-size:.72rem;max-width:125px}.wood-art{right:12%;width:275px}.banner-note{right:21px}.stats-grid{gap:12px}.stat-card{padding:15px}.stat-top>span{font-size:.8rem}.queue-grid{grid-template-columns:1fr 1fr}.toast{left:calc(50% + 100px)}}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:1fr}.right-rail{display:grid;grid-template-columns:1fr 1fr}.workspace-note{display:none}.pipeline-panel{height:100%}.orders-table td .muted,.orders-table td .tiny{font-size:.75rem}.orders-table td strong{font-size:.875rem}.orders-table th{font-size:.65rem}.badge{font-size:.73rem}.date-chip{display:none}.demo-description{display:none}.wood-art{right:6%;width:290px}.banner-note{display:none}.stat-top{align-items:flex-start}.stat-icon{width:27px;height:27px}.stat-top>span{font-size:.78rem}.stat-sub{font-size:.65rem}.role-grid{grid-template-columns:1fr 1fr}.topbar-actions{gap:13px}.overview-banner{padding-left:26px}.upcoming-row strong{max-width:unset;font-size:.82rem}.right-rail .panel-heading h2{font-size:.94rem}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);width:245px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-scrim{display:block;position:fixed;inset:0;background:#171b3f55;border:0;z-index:25}.main{margin-left:0}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 22px}.content{padding:22px 22px 0}.breadcrumbs{gap:10px}.topbar-actions{gap:10px}.toast{left:50%}.stats-grid{gap:12px}.stats-grid .stat-top>span{font-size:.82rem}.stat-sub{font-size:.73rem}.page-heading h1{font-size:1.8rem}.topbar-divider{display:none}.settings-grid{gap:15px}.orders-table td{height:88px}.wood-art{right:9%;width:300px}.banner-copy h2{font-size:1.8rem}}
@media(max-width:600px){.content{padding:17px 16px 0}.topbar{padding:0 14px;height:60px}.breadcrumbs{font-size:.75rem;gap:7px}.breadcrumbs>span{display:none}.breadcrumbs>svg{display:none}.topbar-actions{gap:7px}.topbar-actions>.icon-btn:nth-last-child(2){display:none}.sync-status{font-size:.65rem}.demo-banner{font-size:.66rem;padding:9px 10px;margin-bottom:23px}.demo-banner>span{gap:6px}.demo-banner a{gap:4px;font-size:.65rem}.page-heading{align-items:flex-start;margin-bottom:21px;gap:10px}.page-heading h1{font-size:1.6rem;letter-spacing:-.6px}.eyebrow{font-size:.55rem;letter-spacing:1.1px}.page-heading p{font-size:.76rem;line-height:1.6;max-width:230px;margin-top:6px}.heading-actions{padding-top:23px;flex-shrink:0}.heading-actions .btn{padding:9px 10px;font-size:.72rem;gap:5px}.overview-banner{height:189px;padding:22px 19px;margin-bottom:18px}.banner-label{font-size:.48rem;letter-spacing:1px;max-width:165px;line-height:1.6;margin-bottom:10px}.banner-copy h2{font-size:1.35rem;line-height:1.2;letter-spacing:-.5px}.banner-copy p{font-size:.66rem;max-width:170px;line-height:1.6;margin-top:8px}.banner-copy button{font-size:.65rem;margin-top:10px;gap:8px}.wood-art{width:186px;height:155px;right:-17px;top:24px;opacity:.97}.overview-banner:after{right:-30px}.stats-grid{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:21px}.stat-card{padding:15px}.stats-grid .stat-top>span{font-size:.79rem}.stat-value{font-size:1.9rem;margin-top:7px}.stat-sub{font-size:.65rem;line-height:1.5}.stat-icon{width:29px;height:29px}.stat-icon svg{width:17px}.dashboard-grid{gap:18px}.panel-heading{padding:19px 16px 13px}.panel-heading h2{font-size:.9rem}.panel-heading p{font-size:.75rem;max-width:280px;line-height:1.6}.table-toolbar{padding:0 14px}.tabs{gap:18px}.tabs button{font-size:.73rem;padding:12px 0}.filter-btn{display:none}.table-search{padding:11px 15px}.table-search input{font-size:.75rem}.table-search>span{display:none}.orders-table{min-width:695px}.orders-table th,.orders-table td{padding-left:15px;padding-right:13px}.table-footer{padding:13px 15px;font-size:.65rem}.table-footer>span:last-child{display:none}.right-rail{grid-template-columns:1fr;gap:16px}.right-rail .panel-heading{padding:19px 17px 0}.right-rail .panel-heading h2{font-size:.92rem}.rail-subtitle{font-size:.76rem;margin-left:17px}.pipeline-row{padding:10px 18px 13px}.pipeline-row>span{font-size:.82rem}.pipeline-legend{font-size:.7rem}.upcoming-row{padding:12px 18px}.upcoming-row strong{font-size:.85rem}.upcoming-row small:not(.calendar-tile small){font-size:.7rem}.calendar-tile{width:43px;height:46px}.calendar-tile small{font-size:.62rem}.calendar-tile b{font-size:1rem}.upcoming>.text-btn{font-size:.77rem}.app-footer{font-size:.61rem;padding:16px 0 22px;flex-wrap:wrap;gap:12px}.app-footer>span:last-child{display:none}.queue-grid,.role-grid,.settings-grid{grid-template-columns:1fr}.queue-toolbar{align-items:flex-start}.queue-toolbar>span{font-size:.68rem;white-space:nowrap;padding-top:14px}.queue-card{padding:21px}.queue-actions .btn{font-size:.78rem}.queue-card h3{font-size:1.08rem}.compact{max-width:100%;margin-top:7px}.panel-heading:has(.compact){align-items:flex-start;flex-direction:column}.settings-card{padding:22px}.role-grid{gap:12px}.role-card{padding:20px}.role-card p{font-size:.83rem}.attention-row{flex-wrap:wrap;padding:18px}.attention-row>div{width:calc(100% - 38px)}.attention-row .btn{margin-left:35px}.overlay{padding:0}.drawer{width:100%;max-width:100%}.drawer-head{padding:22px 18px}.drawer-head h2{font-size:1.25rem}.drawer-body{padding:22px 16px}.order-summary{grid-template-columns:1fr 1fr;gap:22px}.order-summary>div:last-child{grid-column:span 2}.detail-heading{align-items:flex-start;flex-wrap:wrap}.row-actions .btn{font-size:.68rem}.detail-item{padding:17px}.detail-item-top{display:block}.detail-item-top h3{font-size:.92rem;flex-wrap:wrap}.detail-item-top .row-actions{margin-top:14px}.item-stages{grid-template-columns:1fr;gap:10px}.stage-box{padding:14px;display:grid;grid-template-columns:1fr auto;align-items:start;gap:12px}.stage-box>p,.stage-audit,.stage-quantity{grid-column:span 2}.stage-box .text-btn{grid-column:span 2;font-size:.75rem}.stage-name{font-size:.83rem}.stage-box .badge{font-size:.73rem}.stage-quantity,.stage-audit{font-size:.74rem}.modal-overlay{padding:10px;align-items:center}.modal{max-height:94dvh;border-radius:11px}.modal-head{padding:19px 17px}.modal-head h2{font-size:1.05rem}.modal-body{padding:20px 17px}.form-grid{grid-template-columns:1fr;gap:0}.field>span{font-size:.84rem}.field input,.field select,.field textarea{font-size:1rem}.field{margin-bottom:19px}.order-form-line{grid-template-columns:20px 1fr 1fr 25px;gap:9px;padding:15px 0}.order-form-line .field:nth-child(2){grid-column:span 3}.order-form-line .field:nth-child(3){grid-column:2}.order-form-line .icon-btn{grid-column:4}.order-form-line .field>span{font-size:.72rem}.order-form-line select,.order-form-line input{font-size:.9rem}.line-number{margin-top:24px}.order-form-line .icon-btn{margin-top:20px}.order-total{font-size:.76rem;line-height:1.6}.info-note{padding:12px 13px;font-size:.79rem}.toast{bottom:16px;font-size:.78rem;min-width:260px;width:max-content;max-width:calc(100vw - 26px)}.guide-copy p{font-size:.86rem}.wrap-cell{min-width:200px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}@media print{.sidebar,.topbar,.demo-banner,.heading-actions,.right-rail,.app-footer,.toast,.overlay{display:none}.main{margin:0}.content{padding:0}.panel{border:1px solid #ddd}.table-scroll{overflow:visible}.overview-banner,.stats-grid{display:none}}
.setup-note{display:flex;align-items:center;gap:12px;padding:20px;border:1px solid #d3d5e5;background:#edeef6;border-radius:10px;margin-bottom:22px}.setup-note>div{margin-right:auto}.setup-note strong{font-size:.94rem;font-weight:600}.setup-note p{font-size:.82rem;color:#727695;margin-top:7px;line-height:1.6}.settings-card form .row-actions{flex-wrap:wrap}.factory-select strong{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.factory-select small{font-size:.6875rem}.brand small,.nav-label{font-size:.625rem}.sidebar .nav-item{font-size:.875rem}.topbar .sync-status{font-size:.75rem}
@media(max-width:600px){.setup-note{flex-wrap:wrap;padding:16px}.setup-note>div{width:100%;margin-bottom:8px}.topbar .sync-status{font-size:.65rem}.brand small{font-size:.625rem}}
.sidebar{overflow-y:auto;scrollbar-width:thin}.brand small{white-space:nowrap;font-size:.55rem;letter-spacing:1.1px}.dashboard-grid>div,.right-rail{min-width:0}.table-scroll{max-width:100%}
@media(max-height:850px){.install-card{display:none}.sidebar-bottom{padding-top:20px}}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}}

.initial-loading{min-height:100vh;display:grid;place-items:center;padding:25px;text-align:center;color:#5e6281;background:#f6f6f8;font:16px system-ui}.initial-loading h2{font-size:1.2rem;font-weight:600;margin-bottom:15px}.initial-loading p{margin-bottom:20px;line-height:1.7}.initial-loading .btn{margin:5px}
/* Category > thickness > size catalogue and searchable order controls. */
.search-select{position:relative;min-width:0;width:100%;font-size:.875rem}.select-trigger{border:1px solid #d9dae4;border-radius:8px;padding:11px 12px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:45px;width:100%;text-align:left;color:#31344c}.select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger svg{flex-shrink:0;color:#83859b}.select-trigger.placeholder{color:#7f8191}.select-trigger:focus-visible{outline:3px solid #c8cbe7;outline-offset:2px}.select-popover{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:180px;background:#fff;border:1px solid #d4d6e5;border-radius:10px;box-shadow:0 12px 35px #282b4a26;z-index:80;padding:7px}.select-search{display:flex;align-items:center;gap:7px;padding:2px 8px;border:1px solid #dfe0ea;border-radius:6px;color:#7d809c}.select-search input{border:0!important;box-shadow:none!important;outline:0;background:transparent;padding:8px 0!important;margin:0;width:100%;min-width:0;font-size:14px!important}.select-options{max-height:180px;overflow:auto;margin-top:6px;overscroll-behavior:contain}.select-options>button{background:#fff;border:0;border-radius:5px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;color:#474a67;font-size:14px}.select-options>button.highlighted,.select-options>button:hover{background:#e9eaf5}.select-options>button[aria-selected=true]{color:#202556;font-weight:600}.select-empty{font-size:13px;color:#777a94;padding:8px;margin:0}.catalogue-manager{display:grid;grid-template-columns:245px minmax(0,1fr);gap:22px;align-items:start}.catalogue-categories .panel-heading{padding:22px 20px}.category-picker{padding:0 18px 18px}.category-list{padding:0 10px 12px}.category-list>button{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;border-radius:9px;padding:13px 12px;color:#656881;margin:4px 0;font-size:14px}.category-list>button.selected{background:#e7e8f3;color:#202556}.category-list>button>span{flex:1;min-width:0;overflow-wrap:anywhere}.category-list small{display:block;font-size:12px;color:#7e819b;margin-top:5px}.catalogue-help{font-size:12px!important;line-height:1.7;color:#787b95;margin:12px 20px 23px}.catalogue-detail{min-width:0}.catalogue-detail .panel-heading{align-items:center}.catalogue-detail .eyebrow{display:block;margin-bottom:10px}.catalogue-detail .panel-heading h2{font-size:22px;margin:0}.catalogue-detail .panel-heading p{font-size:13px;margin-top:9px}.catalogue-toolbar{display:flex;gap:15px;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);align-items:center}.catalogue-toolbar .search-box{min-width:0;flex:1}.catalogue-toolbar .search-box input{min-width:0;width:100%;font-size:14px}.catalogue-toolbar .btn{white-space:nowrap}.thickness-list{padding:0 24px}.thickness-entry{padding:20px 0;border-bottom:1px solid var(--line)}.thickness-entry:last-child{border-bottom:0}.thickness-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.thickness-top>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.thickness-top .thickness-chip{font-size:14px;padding:7px 10px}.catalogue-active{font-size:12px;color:#666a92}.catalogue-active.inactive{color:#a3907f}.size-list{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:16px}.size-chip{display:flex;align-items:center;gap:5px;background:#f5f6fa;border:1px solid #dedfec;border-radius:7px;padding:5px 7px 5px 11px;color:#505476;font-size:13px}.size-chip>span{margin-right:6px}.size-chip button{border:0;background:transparent;color:#80839e;border-radius:4px;display:grid;place-items:center;min-width:28px;min-height:30px}.size-chip button:hover{color:#313557;background:#dfe1ee}.size-chip button>span{font-size:19px}.add-size{display:flex;align-items:center;gap:5px;border:1px dashed #c5c8df;border-radius:7px;background:#fff;color:#585d86;min-height:40px;padding:7px 12px;font-size:13px}.catalogue-order-line{padding:16px;background:#f5f5f9;border:1px solid #dfe0ea;border-radius:10px;margin:16px 0}.catalogue-line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.catalogue-line-head>strong{font-size:13px;color:#535675;font-weight:600}.catalogue-line-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}.catalogue-line-fields>.field{min-width:0;margin:0;grid-column:auto!important}.catalogue-line-fields>.field>span{font-size:14px}.catalogue-line-fields input{font-size:16px}.catalogue-line-fields .search-select input[type=hidden]{display:none}.catalogue-order-line .catalogue-line-fields .field>span{font-size:13px}.catalogue-order-line:focus-within{position:relative;z-index:2}.modal-head{z-index:5}.catalogue-line-fields>.field:focus-within{position:relative;z-index:4}.field>.search-select{margin-top:2px}.catalogue-detail .row-actions{flex-shrink:0}
@media(max-width:1100px){.catalogue-manager{grid-template-columns:210px minmax(0,1fr);gap:15px}.catalogue-toolbar{flex-wrap:wrap}.catalogue-toolbar .search-box{flex-basis:100%}.catalogue-categories .panel-heading{padding:20px 15px}.category-picker{padding:0 12px 15px}}
@media(max-width:760px){.catalogue-manager{grid-template-columns:minmax(0,1fr)}.category-list{display:none}.catalogue-categories .catalogue-help{margin:0 16px 18px}.catalogue-toolbar{padding:17px}.thickness-list{padding:0 17px}.catalogue-line-fields{grid-template-columns:minmax(0,1fr)}.catalogue-order-line{padding:14px}.select-trigger{font-size:16px}.select-search input{font-size:16px!important}.select-options>button{font-size:15px;padding:12px}.catalogue-detail .panel-heading{gap:8px}.catalogue-detail .panel-heading p{line-height:1.7}.size-chip button{min-width:32px;min-height:34px}}
/* Role permissions and protected read-only presentation. */
[hidden]{display:none!important}.always-signout{display:flex;align-items:center;gap:9px;color:#75778e;font-size:12px;text-decoration:none;padding:14px 12px 4px}.always-signout:hover{color:#202556}.preview-role{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.preview-role select{border:1px solid #c8cadd;border-radius:6px;padding:6px 9px;background:#fff;color:#3b3f64;font-size:12px;max-width:155px}.permission-intro{display:flex;align-items:center;gap:19px;padding:25px 28px;margin-bottom:25px;background:#eaebf5;border-color:#d0d2e5}.permission-hero-icon{display:grid;place-items:center;flex-shrink:0;width:57px;height:57px;background:#fff;border:1px solid #d3d5e8;color:#42466f;border-radius:15px}.permission-intro h2{font-size:21px;font-weight:600;margin:0 0 9px;letter-spacing:-.5px}.permission-intro p{font-size:14px;line-height:1.8;color:#646786;margin:0;max-width:700px}.permission-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}.permission-role-list{padding:23px 14px}.permission-role-list h2{font-size:14px;color:#535673;font-weight:600;margin:0 11px 18px}.permission-role-list>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;background:#fff;color:#5d607d;border-radius:8px;padding:13px 12px;margin:4px 0;text-align:left;font-size:14px}.permission-role-list>button.selected{background:#e3e4f2;color:#242958;font-weight:600}.permission-role-list p{font-size:12px;line-height:1.8;color:#7f829b;padding:17px 11px 0;border-top:1px solid #e7e8f1;margin-top:19px}.permission-editor{min-width:0}.permission-editor .panel-heading h2{font-size:23px;margin-top:9px}.permission-editor .panel-heading>svg{color:#7579a0}.permission-counts{display:flex;gap:27px;padding:0 26px 23px;color:#757892;font-size:13px}.permission-counts b{color:#353a64;font-size:17px;margin-right:5px;font-weight:600}.permission-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 26px;padding:18px 0;border-top:1px solid #e0e1ee;border-bottom:1px solid #e0e1ee}.permission-legend>span{display:grid;grid-template-columns:auto 1fr;gap:7px;color:#595d85}.permission-legend b{font-size:12px;font-weight:600}.permission-legend small{grid-column:1/-1;color:#888aa0;font-size:12px;line-height:1.7}.permission-rows{padding:0 26px}.permission-row{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:25px;align-items:center;border-bottom:1px solid #e8e9f1;padding:20px 0}.permission-row:last-child{border:0}.permission-row strong{font-size:14px;color:#373b5d;font-weight:600}.permission-row p{font-size:12px;line-height:1.8;color:#7e819b;margin:6px 0 0}.permission-row select{font-size:14px;color:#393d60;border:1px solid #d0d2e6;border-radius:7px;padding:10px 32px 10px 12px;background:#f6f6fb;min-height:43px;max-width:100%}.permission-row select:disabled{color:#686b82;background:#eff0f7}.permission-save{border-top:1px solid #dfe0ed;background:#f7f8fc;padding:22px 26px;border-radius:0 0 12px 12px;display:flex;align-items:center;justify-content:space-between;gap:18px}.permission-save p{font-size:12px;line-height:1.8;color:#7a7d9b;margin:0}.permission-save [role=status]{display:block;color:#444a7e;font-size:12px;margin-top:7px}.permission-save .row-actions{flex-wrap:wrap;flex-shrink:0}.permission-footnote{display:flex;gap:11px;align-items:flex-start;color:#7a7d9c;margin-top:24px}.permission-footnote svg{flex-shrink:0;margin-top:4px}.permission-footnote p{font-size:12px;line-height:1.9;margin:0}.correction-picker-space{height:160px}
@media(max-width:1150px){.permission-layout{grid-template-columns:190px minmax(0,1fr);gap:16px}.permission-save{align-items:flex-start;flex-direction:column}.demo-banner{flex-wrap:wrap;gap:10px}.permission-row{gap:15px}}
@media(max-width:760px){.permission-layout{grid-template-columns:minmax(0,1fr)}.permission-role-list{display:flex;flex-wrap:wrap;gap:6px;padding:17px}.permission-role-list h2{width:100%;margin:0 0 8px}.permission-role-list>button{width:auto;padding:10px 12px;font-size:13px;margin:0;border:1px solid #dadcea}.permission-role-list p{width:100%;margin:10px 0 0;padding:12px 0 0}.permission-intro{padding:20px;gap:13px}.permission-intro h2{font-size:19px}.permission-intro p{font-size:13px}.permission-hero-icon{width:45px;height:45px}.permission-counts{padding:0 18px 18px;font-size:12px;gap:16px;flex-wrap:wrap}.permission-legend{margin:0 18px;gap:12px}.permission-legend>span{display:flex;flex-wrap:wrap}.permission-legend small{display:none}.permission-legend b{font-size:11px}.permission-rows{padding:0 18px}.permission-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:18px 0}.permission-row select{width:100%;font-size:16px}.permission-row strong{font-size:15px}.permission-row p{font-size:13px}.permission-save{padding:20px 18px}.permission-save .row-actions{width:100%}.permission-save .btn{flex:1}.preview-role{font-size:11px;gap:5px}.preview-role select{font-size:13px}.always-signout{min-height:44px}}

/* Order-first correction picker: dropdowns expand within the scrolling modal. */
.correction-picker .select-popover{position:static;min-width:0;margin-top:8px;box-shadow:none;width:100%}
.correction-picker .select-options{max-height:180px;max-height:min(180px,28dvh);overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.correction-picker .select-options>button>span{min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.6}
.correction-picker .field>small{display:block;line-height:1.6;margin-top:7px}
.correction-picker .form-item-summary,.correction-context{overflow-wrap:anywhere;min-width:0}
.correction-picker .form-actions{flex-wrap:wrap}
@media(max-width:480px){.correction-picker .form-actions .btn{flex:1 1 auto}}
