html{--ral-5005:#005387;--ral-5005-dark:#003f66;--ral-5005-soft:#d9eaf3;--ral-5005-surface:#eaf2f7;--app-bg:#f4f7fa;--line:#d8e3eb;--muted:#637382;--text:#182633;--weekend:#f4efe6;background:var(--app-bg)}body{margin:0}#root{min-height:100vh}.app-frame{grid-template-columns:248px minmax(0,1fr);height:100vh;min-height:100vh;display:grid;overflow:hidden}.sidebar{background:var(--ral-5005-dark);box-sizing:border-box;color:#f6fbff;overscroll-behavior:contain;scrollbar-width:thin;align-self:start;height:100vh;min-height:0;padding:22px 16px;position:sticky;top:0;overflow:hidden auto}.sidebar-content{height:auto;min-height:0}.sidebar-brand{flex-direction:column;align-items:center;width:100%;min-width:0;display:flex}.brand-mark{justify-content:center;align-items:center;width:100%;min-height:52px;display:flex}.brand-logo{width:100%;max-width:100%;height:auto;display:block}.sidebar-brand .brand-title{color:#fff;letter-spacing:1.151px;text-align:center;white-space:nowrap;width:100%;font-size:10px;font-weight:750;line-height:1.3;margin-top:8px!important}.sidebar-nav-toolbar{border-top:1px solid #ffffff24;flex:none;justify-content:flex-end;align-items:center;min-height:28px;padding-top:8px;display:flex}.app-workspace{grid-template-rows:auto minmax(0,1fr);min-width:0;height:100vh;display:grid;overflow:hidden}.app-topbar{border-bottom:1px solid var(--line);box-sizing:border-box;z-index:10;background:#fff;grid-template-columns:minmax(170px,220px) minmax(0,1fr) auto;align-items:center;gap:16px;min-width:0;min-height:58px;padding:8px 24px;display:grid;position:relative}.assistant-launch-button{color:#fff!important;letter-spacing:.01em!important;text-transform:none!important;background:linear-gradient(120deg,#6d28d9 0%,#2563eb 48%,#06b6d4 100%)!important;border:1px solid #ffffff73!important;padding-inline:16px!important;font-weight:800!important;transition:box-shadow .16s,transform .16s!important;box-shadow:0 8px 22px #4f46e547!important}.assistant-launch-button:hover{transform:translateY(-1px);box-shadow:0 10px 28px #2563eb61!important}.topbar-assistant-slot,.topbar-plan-slot{min-width:0}.topbar-assistant-slot{justify-self:start}.topbar-plan-slot{justify-content:center;display:flex}.topbar-plan-slot:empty{display:none}.topbar-account-actions{white-space:nowrap;justify-self:end;align-items:center;min-width:0}.assistant-drawer-paper{width:500px;max-width:100%;background:#f7f8fc!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}.assistant-panel{grid-template-rows:auto auto minmax(0,1fr) auto;height:100dvh;min-height:0;max-height:100dvh;display:grid;overflow:hidden}.assistant-panel-header{color:#fff;background:linear-gradient(135deg,#21154f 0%,#312e81 48%,#155e75 100%);grid-row:1;justify-content:space-between;align-items:center;gap:12px;min-height:76px;padding:12px 18px;display:flex}.assistant-panel-header .MuiIconButton-root{color:#ffffffe6}.assistant-panel-brand{align-items:center;gap:12px;min-width:0;display:flex}.assistant-panel-icon{background:#ffffff29;border:1px solid #ffffff47;border-radius:14px;flex:none;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.assistant-panel-title{font-size:17px!important;font-weight:800!important}.assistant-panel-subtitle{color:#ffffffb8;font-size:12px!important}.assistant-status-alert{grid-row:2;border-radius:0!important}.assistant-messages{flex-direction:column;grid-row:3;gap:12px;min-height:0;padding:18px;display:flex;overflow-y:auto}.assistant-message{box-sizing:border-box;border-radius:16px;max-width:88%;padding:11px 14px}.assistant-message .MuiTypography-root{white-space:pre-wrap;font-size:14px;line-height:1.55}.assistant-message-assistant{color:#172033;background:#fff;border:1px solid #e5e7eb;border-bottom-left-radius:5px;align-self:flex-start;box-shadow:0 5px 14px #0f172a0f}.assistant-message-user{color:#fff;background:linear-gradient(135deg,#4f46e5,#2563eb);border-bottom-right-radius:5px;align-self:flex-end}.assistant-message-pending{align-items:center;gap:10px;display:flex}.assistant-composer{z-index:1;background:#fff;border-top:1px solid #e5e7eb;flex-direction:column;grid-row:4;gap:10px;padding:14px 16px 12px;display:flex;position:relative}.assistant-input-row{align-items:flex-end;gap:8px;display:flex}.assistant-input-row .MuiOutlinedInput-root{background:#f8fafc}.assistant-send-button,.assistant-stop-button{flex:none;width:44px;height:44px;color:#fff!important}.assistant-send-button{background:linear-gradient(135deg,#4f46e5,#0891b2)!important}.assistant-send-button.Mui-disabled{background:#cbd5e1!important}.assistant-stop-button{background:#dc2626!important}.assistant-disclaimer{color:#64748b;text-align:center}.app-user-info{text-align:right;min-width:0}.app-user-profile-button{gap:10px;border-radius:12px!important;padding:5px 8px!important;transition:background-color .16s!important}.app-user-profile-button:hover{background:#f1f5f9}.app-user-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px!important;font-weight:700!important;line-height:1.25!important}.app-user-group{color:var(--muted);font-size:12px!important;line-height:1.25!important}.profile-photo-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;display:grid}.profile-photo-actions>.MuiButton-root{min-height:38px}.nav-list{flex:none;overflow:visible}.nav-list .nav-button{color:#dcecf5;white-space:nowrap;justify-content:flex-start;padding:9px 10px}.nav-edit-row{align-items:center;min-width:0;transition:background-color .14s,box-shadow .14s,opacity .14s,transform .14s;display:flex;position:relative}.nav-edit-row .nav-button{flex:auto;width:100%;min-width:0}.nav-edit-row.dragging{opacity:.72;background:#ffffff1a;border-radius:8px;transform:translate(5px)scale(.985);box-shadow:0 8px 18px #0003}.nav-edit-row.drop-target:before{content:"";z-index:2;background:#8dd8ff;border-radius:999px;height:3px;position:absolute;top:-5px;left:0;right:0;box-shadow:0 0 0 2px #8dd8ff33}.nav-edit-row.editing .nav-button .MuiButton-startIcon{visibility:hidden}.nav-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nav-drag-slot{pointer-events:none;z-index:1;justify-content:center;align-items:center;width:26px;height:30px;display:flex;position:absolute;top:50%;left:3px;transform:translateY(-50%)}.nav-drag-handle,.sidebar-action-button{color:#dcecf5!important}.nav-drag-handle{cursor:grab;pointer-events:auto;width:26px;height:26px;padding:3px!important}.nav-drag-handle svg{font-size:17px}.nav-edit-row.active .nav-drag-handle{color:var(--ral-5005-dark)!important}.nav-drag-handle:active{cursor:grabbing}.sidebar-action-button.save{color:#a8e0b4!important}.sidebar-action-button{width:28px;height:28px;padding:4px!important}.sidebar-action-button svg{font-size:17px}.nav-list .nav-button.active{color:var(--ral-5005-dark);background:#fff}.content{box-sizing:border-box;min-width:0;padding:24px;overflow:hidden auto}.topbar-plan-refresh{box-sizing:border-box;color:#4d2d00;background:#fff7df;border:1px solid #e0ad39;border-left:4px solid #d98900;border-radius:8px;flex:auto;align-items:center;gap:10px;min-width:0;max-width:760px;margin-right:0;padding:6px 8px;display:flex}.topbar-plan-refresh-icon{color:#4d2d00;flex:none;font-size:20px!important}.topbar-plan-refresh-copy{min-width:0}.topbar-plan-refresh-title{color:#4d2d00;font-weight:750!important;line-height:1.25!important}.topbar-plan-refresh-error{color:#a51f17;display:block;line-height:1.2!important}.plan-refresh-button.MuiButton-root{box-shadow:none;white-space:nowrap;background:#b86d00;flex:none;min-height:34px;font-weight:750}.plan-refresh-button.MuiButton-root:hover{box-shadow:none;background:#8f5400}.page-shell{box-sizing:border-box;min-width:0;max-width:100%;padding:20px}.table-search{width:100%;max-width:360px}.empty-state{justify-content:center;align-items:center;min-height:120px;display:flex}.data-table-wrap,.schedule-table-wrap{box-sizing:border-box;overscroll-behavior-inline:contain;width:100%;min-width:0;max-width:100%;max-height:none;overflow:auto visible}.schedule-table-wrap table{table-layout:fixed;width:100%;min-width:948px}.employee-col-size{width:174px}.day-col-size{width:23.25px}.total-col-size{width:53px}.sticky-col{z-index:3;position:sticky;left:0}thead .sticky-col{z-index:5}.employee-col{border-right:1px solid var(--line);box-sizing:border-box;background:#fff;width:174px;min-width:174px;max-width:174px;padding:3px 6px!important}thead .employee-col{background:var(--ral-5005-surface)}.day-cell{border-right:1px solid var(--line);box-sizing:border-box;width:23.25px;min-width:23.25px;padding:2px 1px!important}.hour-cell{border-right:1px solid var(--line);box-sizing:border-box;width:23.25px;min-width:23.25px;padding:0!important}.schedule-table-wrap .hour-cell .MuiCheckbox-root{padding:0}.schedule-table-wrap .hour-cell .MuiCheckbox-root .MuiSvgIcon-root{font-size:20px}.day-cell.weekend,.hour-cell.weekend{background:var(--weekend)}.hour-input{box-sizing:border-box;color:var(--text);font:inherit;text-align:center;background:0 0;border:1px solid #0000;border-radius:5px;width:22px;height:24px;padding:0;font-size:.75rem;font-weight:650;overflow:hidden}.hour-input:focus{border-color:var(--ral-5005);background:#fff;outline:none}.hour-input::-webkit-inner-spin-button{appearance:none;margin:0}.hour-input::-webkit-outer-spin-button{appearance:none;margin:0}.total-col{background:var(--ral-5005-surface);z-index:2;width:53px;min-width:53px;position:sticky;right:0;padding:4px 3px!important}thead .total-col{z-index:4}.schedule-table-wrap .MuiTableCell-root{font-size:.78rem;line-height:1.15}.schedule-table-wrap .MuiTypography-caption{font-size:.68rem;line-height:1.1}.employee-name{white-space:nowrap;max-width:162px;display:block;font-size:.82rem!important;line-height:1.12!important}.employee-profession{white-space:nowrap;max-width:134px;display:block;font-size:.74rem!important;line-height:1.15!important}.schedule-autofill-button.MuiIconButton-root{padding:1px}.schedule-autofill-button .MuiSvgIcon-root{font-size:19px}.order-line{border-bottom:1px solid var(--line);padding:8px 0}.order-line-number{color:var(--muted);text-align:center;min-width:24px;font-weight:700}.order-lines-list{min-width:280px}.order-lines-list-item{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:12px;padding:3px 0;display:grid}.order-lines-list-item:last-child{border-bottom:none}.order-lines-list-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.order-lines-list-quantity{background:var(--ral-5005-surface);text-align:center;border-radius:999px;min-width:26px;padding:1px 7px;font-weight:700}.drag-handle{color:var(--muted);cursor:grab;justify-content:center;align-items:center;width:24px;height:28px;display:inline-flex}.drag-handle:active{cursor:grabbing}.route-row.dragging{opacity:.45}.queue-order-row{box-sizing:border-box;cursor:grab;border:1px solid #d7e3ec;border-radius:8px;width:100%;min-width:0;max-width:100%;padding:0}.queue-order-row.dragging{opacity:.5}.queue-order-content{box-sizing:border-box;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-width:0;max-width:100%;padding:8px 14px;display:grid}.order-dialog-paper{position:relative}.order-dialog-content{padding-bottom:84px!important}.order-add-line-fab-wrap{z-index:3;position:absolute;bottom:76px;right:24px}.order-add-line-fab{box-shadow:0 8px 22px #00417347!important}.queue-order-position{border-right:1px solid var(--line);color:var(--muted);white-space:nowrap;flex-direction:row;justify-content:center;align-items:center;gap:6px;display:flex}.queue-order-index{color:var(--text);font-size:1rem;font-weight:850}.queue-order-summary{grid-template-columns:auto minmax(0,1fr) auto;align-self:center;align-items:center;gap:10px;min-width:0;display:grid}.queue-order-title{color:var(--ral-5005);white-space:nowrap;font-weight:800}.queue-order-client{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.95rem;font-weight:750;overflow:hidden}.queue-order-shipment{white-space:nowrap}.route-row:hover .drag-handle{color:var(--ral-5005)}.stage-time-table{min-width:980px}.stage-time-table .MuiTextField-root{min-width:0}.production-day-row{grid-template-columns:230px minmax(0,1fr);gap:18px;padding:14px;transition:background-color .14s,box-shadow .14s,transform .14s;display:grid}.production-day-row-editable{border:1px dashed #9eb9ca;min-height:92px}.production-day-row-drop-target{background:#e7f3fb;transform:translateY(-1px);box-shadow:0 0 0 3px #0059893d}.production-day-meta{border-right:1px solid var(--line);padding-right:14px}.production-task-list{min-width:0}.production-task{border:1px solid var(--line);border-left:4px solid var(--ral-5005);background:#f8fbfd;border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:12px;padding:9px 10px;transition:opacity .14s,transform .14s,box-shadow .14s;display:grid}.production-task-editable{cursor:grab;-webkit-user-select:none;user-select:none}.production-task-editable:active{cursor:grabbing}.production-task-editable:hover{transform:translateY(-1px);box-shadow:0 5px 14px #1f465c29}.production-task-dragging{opacity:.32;transform:scale(.985)}.production-task-drag-handle{flex:none;margin-top:2px}.production-day-drop-hint{color:#5d7482;border:2px dashed #a8bdca;border-radius:7px;justify-content:center;align-items:center;min-height:54px;padding:10px;font-size:13px;display:flex}.production-task .MuiTypography-root{overflow-wrap:anywhere}.fact-task-row{align-items:center}.journal-row{border:1px solid var(--line);border-left:4px solid var(--ral-5005);border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;display:grid}.print-only{display:none}.print-work-table{border-collapse:collapse;width:100%}.print-work-table th,.print-work-table td{text-align:left;vertical-align:top;border:1px solid #9aa8b3;padding:6px 7px;font-size:12px}.print-work-table th{background:#eaf2f7;font-weight:750}.month-dashboard-wrap{box-sizing:border-box;overscroll-behavior-inline:contain;width:100%;max-width:100%;overflow:auto hidden}.month-dashboard-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:720px}.unplanned-work-table{min-width:760px}.page-section-tabs{margin-top:16px}.unplanned-pagination .MuiTablePagination-toolbar{flex-wrap:wrap;justify-content:flex-end;row-gap:4px;padding-inline:0}.dashboard-order-col-size{width:clamp(180px,18vw,240px)}.dashboard-day-col-size{width:auto}.month-dashboard-table th,.month-dashboard-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);box-sizing:border-box;vertical-align:top}.dashboard-order-col{text-align:left;z-index:3;background:#fff;min-width:0;padding:8px 10px;left:0}thead .dashboard-order-col,.dashboard-day-head{background:var(--ral-5005-surface);z-index:5;position:sticky;top:0}.sticky-dashboard-col{position:sticky}thead .sticky-dashboard-col{z-index:7}.dashboard-day-head{color:var(--text);text-align:center;height:42px;padding:5px 4px;font-size:.78rem}.dashboard-day-head span,.dashboard-day-head small{line-height:1.15;display:block}.dashboard-day-head small{color:var(--muted);font-weight:600}.dashboard-day-head.weekend,.dashboard-day-cell.weekend{background:var(--weekend)}.dashboard-day-cell{background:#fff;height:82px;padding:4px}.dashboard-order-number{color:var(--ral-5005);font-weight:750}.dashboard-item-name{overflow-wrap:anywhere;margin-top:2px;font-weight:750;line-height:1.25}.dashboard-work-chip{border:1px solid var(--line);border-left:3px solid var(--ral-5005);cursor:pointer;background:#f8fbfd;border-radius:6px;gap:3px;min-height:42px;padding:4px 5px;display:grid}.dashboard-work-chip:hover{border-color:var(--ral-5005)}.dashboard-work-chip.fact-card{cursor:default}.dashboard-work-chip.status-overflow{background:#fff3e0;border-color:#ffb74d #ffb74d #ffb74d #f57c00}.dashboard-work-chip.status-done{background:#e8f5e9;border-color:#81c784 #81c784 #81c784 #2e7d32}.dashboard-work-chip.status-partial{background:#f3e5f5;border-color:#ba68c8 #ba68c8 #ba68c8 #7b1fa2}.dashboard-work-chip.requires-plan-refresh{background:#fff8e7;border-color:#e0ad39 #e0ad39 #e0ad39 #d98900}.dashboard-work-refresh-note{color:#8a5700;font-size:.68rem;font-weight:750;line-height:1.15}.dashboard-work-chip .MuiTypography-root{overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15;display:-webkit-box;overflow:hidden}.shipment-calendar-wrap{overscroll-behavior-inline:contain;max-width:100%;overflow-x:auto}.shipment-calendar-grid{border:1px solid var(--line);grid-template-columns:repeat(7,minmax(118px,1fr));min-width:826px;display:grid}.shipment-calendar-weekday{background:var(--ral-5005-surface);border-bottom:1px solid var(--line);border-right:1px solid var(--line);color:var(--text);text-align:center;padding:8px;font-size:.78rem;font-weight:750}.shipment-calendar-weekday:nth-child(7){border-right:0}.shipment-calendar-day{border-bottom:1px solid var(--line);border-right:1px solid var(--line);box-sizing:border-box;background:#fff;min-height:116px;padding:7px}.shipment-calendar-day:nth-child(7n){border-right:0}.shipment-calendar-day:nth-last-child(-n+7){border-bottom:0}.shipment-calendar-day.weekend{background:var(--weekend)}.shipment-calendar-day.outside-month{background:#f8fafc}.shipment-calendar-day-number{color:var(--muted);text-align:right;font-size:.78rem;font-weight:750;line-height:1}.shipment-calendar-day.outside-month .shipment-calendar-day-number{color:#a9b5bd}.shipment-calendar-orders{margin-top:7px}.shipment-calendar-order.MuiButton-root{text-align:left;justify-content:flex-start;align-self:stretch;width:100%;min-width:0;padding:1px 3px}.shipment-calendar-order.is-late.MuiButton-root{color:#b42318;background:#fff0f0}.shipment-order-tooltip{max-width:250px;padding:2px}.dashboard-work-chip strong{color:var(--ral-5005-dark);font-size:.7rem;line-height:1}@media (width<=860px){.app-frame{grid-template-columns:1fr;min-width:0;max-width:100%;height:auto;overflow:hidden visible}.sidebar{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;padding:14px;position:static;overflow:visible}.sidebar>.MuiStack-root{min-width:0;max-width:100%;height:auto}.brand-mark,.sidebar-brand .brand-title{max-width:216px}.nav-list{overscroll-behavior-inline:contain;flex-wrap:nowrap;flex:none;width:100%;min-width:0;max-width:100%;padding-bottom:2px;overflow:auto hidden;flex-direction:row!important}.nav-list .nav-edit-row{flex:none}.nav-list .nav-button{flex:none;width:auto}.app-workspace{height:auto;min-height:0;overflow:visible}.app-topbar{grid-template-columns:minmax(0,1fr) auto;padding:8px 14px;position:sticky;top:0}.topbar-assistant-slot{grid-area:1/1}.topbar-account-actions{grid-area:1/2}.topbar-plan-slot{grid-area:2/1/auto/-1}.content{box-sizing:border-box;min-width:0;max-width:100%;padding:14px;overflow:hidden visible}.topbar-plan-refresh{width:100%;max-width:none}.data-table-wrap,.schedule-table-wrap{max-height:none}.production-day-row{grid-template-columns:1fr}.queue-order-content{grid-template-columns:62px minmax(0,1fr);padding-inline:10px}.queue-order-summary{gap:6px}.production-day-meta{border-right:none;border-bottom:1px solid var(--line);padding-bottom:12px;padding-right:0}.month-dashboard-wrap{max-height:none}}@media (width<=560px){.assistant-drawer-paper{width:100%!important}.assistant-panel-header{padding-inline:14px}.assistant-panel-subtitle{display:none}.assistant-messages{padding:14px}.profile-photo-actions{grid-template-columns:minmax(0,1fr)}}@media print{@page{margin:12mm;size:A4 portrait}html,body,#root,.app-frame,.content,.production-day-page{background:#fff;height:auto!important;min-height:0!important}.app-frame{display:block}.app-workspace{display:block;overflow:visible;height:auto!important}.sidebar{display:none}.content{padding:0;overflow:visible}.topbar-plan-refresh,.app-topbar{display:none}.production-day-page>:not(.print-work-orders){display:none!important}.print-work-orders{box-sizing:border-box;width:100%;padding:0;position:static;display:block!important}.print-work-sheet{break-after:page;box-sizing:border-box;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#000;page-break-after:always;min-height:0;padding:12mm}.print-work-sheet:last-child{break-after:auto;page-break-after:auto}.print-work-table thead{display:table-header-group}.print-work-table tr{break-inside:avoid;page-break-inside:avoid}}
