:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#3b3c4b;background:#f7f9fc;font-synthesis:none;font-size:14px;--blue: #3180f6;--muted: #8b8e9b;--border: #eceef4}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2{letter-spacing:-.035em}h3{font-size:16px;font-weight:650}svg{width:18px;height:18px;flex-shrink:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #3180f680;outline-offset:3px}input,textarea,select{width:100%;border:1px solid #e0e3eb;border-radius:8px;background:#fff;color:#3b3c4b;min-height:40px;padding:9px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #3180f60d}input::placeholder,textarea::placeholder{color:#a2a5b0}select{padding-right:30px}input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:var(--blue);flex-shrink:0}textarea{resize:vertical}fieldset{border:0;padding:0;margin:0}legend{font-weight:600;margin-bottom:12px}small{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.muted{color:var(--muted);line-height:1.65}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:9px 15px;border:1px solid #e0e3eb;border-radius:8px;background:#fff;font-weight:600;font-size:13px;white-space:nowrap;transition:background .15s}.btn:hover:not(:disabled){background:#f5f7fb}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover:not(:disabled){background:#2472e8}.btn.danger{background:#ff4245;border-color:#ff4245;color:#fff}.btn.danger-outline{color:#ed3f44;border-color:#ffd2d5}.btn.danger-outline:hover{background:#fff0f1}.btn.full{width:100%;min-height:48px;justify-content:space-between}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:transparent;border-radius:8px;color:var(--muted);flex-shrink:0}.icon-btn:hover:not(:disabled){color:var(--blue);background:#f2f5fb}.text-btn{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:4px 0;color:var(--blue);font-size:12px;font-weight:600}.red-text{color:#ed3f44}.button-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 1px 4px #252a4103}.padded{padding:24px}.page-stack{display:flex;flex-direction:column;gap:22px}.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.notice{display:flex;align-items:center;gap:10px;border-radius:8px;padding:12px 15px;font-size:13px;line-height:1.6;flex-wrap:wrap}.notice.error{background:#fff0f1;color:#d93742}.notice.success{background:#e8f9ed;color:#16873b}.notice.warning{background:#fff6df;color:#a57b11}.notice .text-btn{margin-left:auto}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:5px;font-size:11px;font-weight:600;white-space:nowrap}.badge i{height:5px;width:5px;border-radius:50%;background:currentColor}.badge.green{background:#e8f9ed;color:#16a34a}.badge.red{background:#fff0f1;color:#ff4245}.badge.blue{background:#e9f1ff;color:var(--blue)}.badge.amber{background:#fff6df;color:#c29313}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;z-index:40;background:#17171f;color:#fff;border-radius:0 16px 16px 0;display:flex;flex-direction:column;padding:8px;transition:width .2s;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff20 transparent}.brand{position:relative;display:flex;align-items:center;gap:22px;padding:16px 12px 10px;min-height:90px;flex-shrink:0}.brand-mark{width:42px;height:44px;position:relative;display:block;flex-shrink:0}.brand-mark b{position:absolute;width:25px;height:25px;display:grid;place-items:center;background:var(--blue);font-size:14px;left:0;top:0}.brand-mark b+b{background:#ff4245;left:13px;top:19px}.brand-name{font-size:18px;line-height:19px;font-weight:750;letter-spacing:-.03em}.brand-name small{display:block;color:#ffffff50;font-size:9px;letter-spacing:.17em;line-height:20px}.sidebar nav{padding-top:10px;flex:1}.sidebar nav section{margin-bottom:20px}.sidebar nav h2{color:#ffffff40;text-transform:uppercase;letter-spacing:.08em;font-size:10px;padding:0 12px;margin-bottom:6px;font-weight:600}.nav-link{display:flex;align-items:center;gap:13px;padding:10px 12px;min-height:40px;color:#ffffffa6;border-radius:8px;font-size:13px;white-space:nowrap;margin-bottom:2px}.nav-link svg{width:18px;height:18px}.nav-link:hover{background:#ffffff0a;color:#fff}.nav-link.active{background:#ffffff17;color:#fff;font-weight:600}.sidebar-account{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff14;padding:16px 8px 8px;flex-shrink:0}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:var(--blue);color:#fff;font-weight:650;flex-shrink:0}.avatar.small{width:28px;height:28px;font-size:12px}.sidebar-account div{min-width:0;flex:1}.sidebar-account strong,.sidebar-account small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.sidebar-account small{margin-top:4px;color:#ffffff60;font-size:10px}.sidebar-account .icon-btn{width:28px;color:#ffffff70}.app-content{padding-left:240px;transition:padding-left .2s;min-height:100vh;display:flex;flex-direction:column}.topbar{height:65px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:20px;margin-right:24px;padding:0 24px}.topbar-title,.topbar-account{display:flex;align-items:center;gap:16px;min-width:0}.topbar-title .icon-btn{background:#fff;border:1px solid #e6e8ef;box-shadow:0 1px 3px #252a4108;width:40px;height:40px}.topbar h1{font-size:23px;font-weight:700;white-space:nowrap}.user-email{color:var(--blue);font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-content main{padding:24px;margin:0 auto;max-width:1680px;width:100%;flex:1}.app-footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#a2a5b0;padding:12px 24px 20px}.mobile-toggle,.mobile-close,.sidebar-backdrop{display:none}.collapsed .sidebar{width:64px;padding:8px 6px}.collapsed .brand{padding:16px 5px;min-height:90px}.collapsed .brand-mark{transform:scale(.8);transform-origin:left center}.collapsed .brand-name,.collapsed .sidebar h2,.collapsed .nav-link span,.collapsed .sidebar-account div,.collapsed .sidebar-account>.avatar{display:none}.collapsed .nav-link{justify-content:center;padding:10px 0}.collapsed .sidebar-account{justify-content:center;padding:12px 0}.collapsed .app-content{padding-left:64px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card{padding:20px}.stat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#747783}.stat-icon{display:grid;place-items:center;width:32px;height:32px;background:#e9f1ff;color:var(--blue);border-radius:8px}.stat-value{display:block;margin:14px 0 0;font-size:25px;letter-spacing:-.04em;font-weight:700;overflow-wrap:anywhere}.queue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.queue-card{display:flex;align-items:center;gap:14px;padding:18px 20px;transition:border-color .15s}.queue-card:hover{border-color:#b8d2fc}.queue-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#f2f5fb;color:var(--blue);flex-shrink:0}.queue-card div{flex:1;min-width:0}.queue-card strong{font-size:13px}.queue-count{font-size:22px;font-weight:650;letter-spacing:-.04em}.queue-card>svg{color:#b6bac5;width:15px}.overview-columns{display:grid;grid-template-columns:1.05fr 1fr;gap:20px}.status-chart-row{margin-bottom:15px}.status-chart-row>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:7px}.status-chart-row small{display:block;font-size:10px;margin-top:4px}.chart-track{height:5px;background:#f1f4fa;border-radius:5px;overflow:hidden}.chart-track i{display:block;height:100%;background:var(--blue);border-radius:5px}.ledger-row{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:55px;border-bottom:1px solid #f1f2f7;font-size:13px}.ledger-row:last-child{border:0}.ledger-row div{display:flex;align-items:center;gap:10px}.ledger-row strong{font-weight:500}.ledger-row>span{font-weight:600;white-space:nowrap}.ledger-dot{width:7px;height:7px;border-radius:2px;background:#3180f6}.update-note{color:#a2a5b0;font-size:11px;text-align:right}.empty-note{padding:20px 0;color:var(--muted)}.table-card{overflow:hidden}.table-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--border)}.search-input{position:relative;flex:1;min-width:220px;max-width:430px}.search-input svg{position:absolute;left:12px;top:11px;color:#a2a5b0;width:17px;height:17px}.search-input input{padding-left:38px}.filter-field{min-width:140px;max-width:190px}.filter-field input,.filter-field select{font-size:12px}.table-scroll{overflow-x:auto;width:100%}table{border-collapse:collapse;text-align:left;width:100%;font-size:12px}th{font-weight:500;color:var(--muted);padding:13px 20px;border-bottom:1px solid var(--border);background:#fcfdff;white-space:nowrap}td{padding:15px 20px;border-bottom:1px solid #f0f2f6;max-width:260px;vertical-align:middle}td>span:not(.badge){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}td.primary{font-weight:600;color:#3b3c4b}td small{display:block;margin-top:5px;color:#a2a5b0;font-size:10px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}tbody tr:hover{background:#fafbfe}tbody tr:last-child td{border-bottom:0}th.numeric,td.numeric{text-align:right;white-space:nowrap}.table-link{padding:0;border:0;background:none;text-align:left;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:12px}.table-link:hover{color:var(--blue)}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--border);font-size:11px;color:var(--muted);min-height:48px}.table-heading{padding:20px;margin:0;border-bottom:1px solid var(--border)}.table-error{margin:16px 20px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px 15px;gap:10px;color:var(--muted)}.empty svg{width:30px;height:30px;color:#c8cedb}.empty strong{font-weight:500;color:#747783}.skeleton{display:block;height:12px;width:85%;background:linear-gradient(90deg,#f1f3f8,#e8ecf5,#f1f3f8);background-size:200%;animation:shimmer 1.5s linear infinite;border-radius:4px}.skeleton.big{height:30px;margin-top:22px}.lookup-bar{display:flex;flex-wrap:wrap;align-items:center;gap:15px;padding:18px 20px}.lookup-bar label{flex:1;font-weight:600;font-size:13px}.lookup-bar input{max-width:310px}.order-panel{padding:20px}.order-panel h3{margin-bottom:14px}.order-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f2f6;padding:10px 0;font-size:12px}.order-row>strong,.order-row>div{flex:1}.order-row small{display:block;font-size:10px;margin-top:4px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#17171f66;z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:16px;width:100%;max-width:540px;max-height:90dvh;display:flex;flex-direction:column;outline:none;box-shadow:0 24px 70px #17171f30}.modal.wide{max-width:820px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--border);gap:16px}.modal-header h2{font-size:19px}.modal-body{padding:24px;overflow-y:auto}.action-form{display:flex;flex-direction:column;gap:18px}.form-field{display:flex;flex-direction:column;gap:7px}.form-field>label{font-size:12px;font-weight:600}.form-field small{font-size:11px}.checkbox-label{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5}.form-field fieldset .checkbox-label{margin-bottom:11px}.required{color:#ff4245}.form-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:18px;margin-top:4px}.selection-summary{background:#f7f9fc;padding:12px;border-radius:8px;font-size:13px;font-weight:600}.record-fields{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr);gap:14px 20px;margin:0}.record-fields dt{font-size:12px;color:var(--muted)}.record-fields dd{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.detail-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:24px}.detail-section{border-top:1px solid var(--border);margin-top:24px;padding-top:24px}.detail-section>h3{margin-bottom:18px}.detail-section summary{cursor:pointer}.detail-section pre{background:#f7f9fc;padding:15px;border-radius:8px;overflow:auto;font-size:12px}.message-list{display:flex;flex-direction:column;gap:14px;max-height:420px;overflow-y:auto;padding-right:8px}.message{background:#f7f9fc;border-radius:9px;padding:14px 16px;max-width:94%;font-size:13px}.message.mine{background:#e9f1ff;align-self:flex-end;width:94%}.message header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.message header strong{font-size:11px}.message header small{color:var(--muted);font-size:10px}.message p{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}.attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;font-size:12px;color:var(--blue)}.message-compose{display:flex;flex-direction:column;gap:12px;margin-top:20px}.message-compose button{align-self:flex-end}.bid-row{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--border);padding:14px 0;font-size:12px}.bid-row>div{flex:1;overflow-wrap:anywhere}.bid-row small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.timeline-event{display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:14px}.timeline-dot{height:8px;width:8px;background:var(--blue);border-radius:50%;flex-shrink:0}.timeline-event small{display:block;margin-top:4px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0}.settings-grid dt{font-size:11px;color:var(--muted);margin-bottom:8px}.settings-grid dd{margin:0;font-size:15px;font-weight:600}.login-page{min-height:100dvh;background:#fff;display:grid;place-items:center;padding:35px 20px}.login-card{width:100%;max-width:440px}.login-card .brand{padding:0;margin-bottom:42px;min-height:54px;justify-content:flex-start}.brand.dark .brand-name{color:#3b3c4b}.brand.dark .brand-name small{color:var(--muted)}.login-card h1{font-size:34px;margin-bottom:28px;line-height:1.2}.login-card>p{font-size:14px;margin-bottom:28px}.login-card form{display:flex;flex-direction:column;gap:22px}.login-card input{min-height:48px}.login-card .notice{margin-bottom:20px}.otp-input{text-align:center;font-size:24px;letter-spacing:.4em}.login-links{display:flex;justify-content:space-between;gap:20px}.login-footer{display:block;color:#a2a5b0;margin-top:35px;font-size:11px}.access-card{max-width:560px;padding:35px;display:flex;flex-direction:column;gap:20px}.access-icon{color:var(--blue)}.access-icon svg{width:34px;height:34px}.access-card h1{font-size:28px}.sr-only{left:0;top:0}.table-scroll{position:relative}@keyframes shimmer{to{background-position:-200% 0}}@media(min-width:1600px){.app-content main{padding-top:28px}.page-stack{gap:26px}.stat-value{font-size:30px}}@media(max-width:1200px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-value{font-size:27px}.topbar{margin-right:0}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1023px){.sidebar,.collapsed .sidebar{width:280px;transform:translate(-100%);transition:transform .2s;padding:8px}.sidebar.open{transform:translate(0)}.app-content,.collapsed .app-content{padding-left:0}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#17171f66;border:0}.mobile-toggle{display:inline-flex}.desktop-toggle{display:none}.mobile-close{display:flex;position:absolute;right:14px;top:26px}.collapsed .brand-name,.collapsed .nav-link span,.collapsed .sidebar-account div,.collapsed .sidebar-account>.avatar,.collapsed .sidebar h2{display:initial}.collapsed .sidebar h2{display:block}.collapsed .nav-link{justify-content:flex-start;padding:10px 12px}.collapsed .brand{padding:16px 12px 10px}.collapsed .brand-mark{transform:none}.collapsed .sidebar-account{justify-content:flex-start;padding:16px 8px 8px}.topbar h1{font-size:21px}}@media(max-width:640px){.app-content main{padding:20px 16px}.topbar{padding:0 16px;gap:10px}.topbar-title{gap:10px}.topbar h1{font-size:18px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.topbar-account{gap:8px}.user-email{display:none}.topbar-account>.avatar{display:none}.page-actions .button-row{width:100%;justify-content:flex-end}.page-stack{gap:18px}.stat-grid{gap:12px}.stat-card{padding:15px}.stat-head{font-size:11px;min-height:30px}.stat-icon{width:25px;height:25px}.stat-icon svg{width:15px;height:15px}.stat-value{font-size:22px}.queue-grid,.overview-columns{grid-template-columns:1fr}.queue-card{padding:16px}.table-toolbar{padding:15px;align-items:stretch}.search-input{min-width:100%;max-width:none}.filter-field{flex:1;max-width:none;min-width:120px}.table-toolbar .btn{flex:1}.table-toolbar .text-btn{padding:10px}th,td{padding-left:15px;padding-right:15px}.padded{padding:20px}.modal-backdrop{padding:10px}.modal{max-height:95dvh;border-radius:12px}.modal-header{padding:15px 18px}.modal-header h2{font-size:17px}.modal-body{padding:18px}.record-fields{grid-template-columns:1fr;gap:5px}.record-fields dd{margin-bottom:14px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lookup-bar{padding:15px}.lookup-bar label{min-width:100%}.lookup-bar input{flex:1;min-width:160px}.login-card h1{font-size:30px}.bid-row{flex-wrap:wrap}.message header{flex-wrap:wrap;gap:5px}.section-heading{flex-wrap:wrap}.app-footer{padding-left:16px;padding-right:16px}.form-footer{flex-wrap:wrap}.form-footer .btn{flex:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
