body.factory-messages-open #new-order-root{display:none!important}
/* Shared application shell: full-height navigation and a central workspace. */
:root{--app-sidebar-width:174px;--app-frame-gap:12px}
html:has(.app-sidebar),body:has(.app-sidebar){height:100%;overflow:hidden;overscroll-behavior:none;background:#eaeaec}
body:has(.app-sidebar) #app{height:100dvh;overflow:hidden}
body .production-shell:has(>.app-sidebar){display:grid;grid-template-columns:var(--app-sidebar-width) minmax(0,1fr);grid-template-rows:minmax(0,1fr);direction:rtl;height:calc(100dvh - 24px);min-height:0;width:calc(100% - 24px);margin:12px;padding:0;border:1px solid #e1e1e4;border-radius:14px;background:#f5f5f6;overflow:hidden}
.production-shell>.app-sidebar{grid-column:1;grid-row:1;position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;height:100%;min-height:0;max-height:none;padding:24px 12px 14px;background:#fbfbfc;border:0;border-inline-end:1px solid #e5e5e8;direction:rtl}
.production-shell>.app-sidebar .brand-header{width:112px;height:23px;align-self:center;justify-content:center;margin:0 0 35px;flex-shrink:0}
.production-shell>.app-sidebar .brand-header .official-logo{width:112px;height:auto;transform:none}
.production-shell>.app-sidebar .app-nav-caption{display:block;margin:0 12px 12px;color:#a0a0a5;font-size:10px;letter-spacing:.3px}
.production-shell>.app-sidebar .production-nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;width:100%;direction:rtl}
.production-shell>.app-sidebar .production-nav a{display:flex;align-items:center;gap:10px;min-height:39px;padding:10px 12px;font-size:12px;color:#6e6e77;border:0;border-radius:7px;background:transparent;line-height:1.4;white-space:nowrap;transition:background .15s,color .15s}
.production-shell>.app-sidebar .production-nav a svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.production-shell>.app-sidebar .production-nav a[aria-current=page]{background:#f2e6d8;color:#8b5a28;font-weight:500}
.production-shell>.app-sidebar .production-nav a:hover{background:#eeeef1;color:#333}
.production-shell>.app-sidebar .factory-messages-nav{position:relative;inset:auto;display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:39px;min-height:39px;margin-top:6px;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:#6e6e77;font-size:12px;order:2}
.production-shell>.app-sidebar .factory-messages-nav::after{content:'שיחות'}
.production-shell>.app-sidebar .factory-messages-nav svg{width:17px;height:17px;flex-shrink:0;stroke-width:1.5}
.production-shell>.app-sidebar .factory-messages-nav:hover{background:#eeeef1;color:#333}
.production-shell>.app-sidebar .factory-messages-badge{top:7px;right:auto;left:8px;height:17px;min-width:17px}
.production-shell>.app-sidebar .account-trigger{order:4;margin: auto 0 0!important;min-height:46px;padding:12px 5px 0;gap:9px;border-top:1px solid #e8e8eb;direction:rtl;width:100%;justify-content:flex-start}
.production-shell>.app-sidebar .account-trigger>svg{width:30px;height:30px;flex-basis:30px;padding:6px;background:#f0f0f2;border-color:transparent;border-radius:7px;color:#777}
.production-shell>.app-sidebar .account-copy{display:grid;gap:4px}
.production-shell>.app-sidebar .account-copy strong{font-size:11px;font-weight:500;max-width:100px;overflow:hidden;text-overflow:ellipsis}
.production-shell>.app-sidebar .account-copy small{font-size:9px;color:#a0a0a5}
.production-shell>.app-sidebar .user-menu{position:absolute;top:auto;bottom:14px;left:auto;right:calc(100% + 8px);width:240px;z-index:900;box-shadow:0 8px 32px #0002}
body .production-shell:has(>.app-sidebar)>#new-order-root{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
body .production-shell:has(>.app-sidebar)>.workspace{grid-column:2;grid-row:1;width:100%;min-width:0;min-height:0;height:100%;margin:0;padding:24px;overflow:hidden}
body .production-shell:has(>.app-sidebar)>.factory-messages-page,body .production-shell:has(>.app-sidebar)>.production-project-page{grid-column:2;grid-row:1;height:100%;min-height:0;min-width:0;width:100%;margin:0}
body .production-shell:has(>.app-sidebar)>.factory-messages-page{padding:20px}
body.factory-messages-open .app-sidebar .production-nav a[aria-current=page]{background:transparent;color:#6e6e77}
body.factory-messages-open .production-shell>.app-sidebar .factory-messages-nav{background:#f2e6d8;color:#8b5a28}
body:has(.app-sidebar) .so-loading{inset:12px calc(var(--app-sidebar-width) + 12px) 12px 12px;border-radius:0 0 12px 12px;background:#f5f5f680}
body:has(.app-sidebar) .heading h1{font-size:23px;font-weight:500}
body:has(.app-sidebar) .heading p{font-size:12px}
body:has(.app-sidebar) .status-overview,body:has(.app-sidebar) .work-board{border-radius:9px;box-shadow:0 2px 8px #00000003;border-color:#e6e6e9}
body:has(.app-sidebar) .job{border-radius:7px;box-shadow:none}
body:has(.app-sidebar) .client-overview{border-radius:7px;box-shadow:none}
@media(max-width:1100px){:root{--app-sidebar-width:152px}.production-shell>.app-sidebar{padding:22px 9px 12px}.production-shell>.app-sidebar .brand-header{width:104px}.production-shell>.app-sidebar .brand-header .official-logo{width:104px}body .production-shell:has(>.app-sidebar)>.workspace{padding:18px}}
@media(max-width:700px){:root{--app-sidebar-width:64px}.production-shell>.app-sidebar{padding:20px 8px 12px;align-items:stretch}.production-shell>.app-sidebar .brand-header{width:46px;height:12px;margin-bottom:30px}.production-shell>.app-sidebar .brand-header .official-logo{width:46px}.production-shell>.app-sidebar .app-nav-caption,.production-shell>.app-sidebar .production-nav a span,.production-shell>.app-sidebar .account-copy,.production-shell>.app-sidebar .factory-messages-nav::after{display:none}.production-shell>.app-sidebar .production-nav a,.production-shell>.app-sidebar .factory-messages-nav{justify-content:center;padding:11px 0;min-height:42px}.production-shell>.app-sidebar .account-trigger{justify-content:center;padding-inline:0}.production-shell>.app-sidebar .factory-messages-badge{right:0;left:auto;top:0}body .production-shell:has(>.app-sidebar)>.workspace{padding:12px}.production-shell>.app-sidebar .user-menu{right:calc(100% + 6px)}}
@media(prefers-reduced-motion:reduce){::view-transition-group(*){animation-duration:.01ms!important}}

/* Edge-to-edge application surfaces. */
body .production-shell:has(>.app-sidebar){width:100%;height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none}
body:has(.app-sidebar) .production-shell>.app-sidebar{border:0;border-radius:0}
body:has(.app-sidebar) .production-shell>.workspace,body:has(.app-sidebar) .production-shell>.factory-messages-page{padding:0}
body:has(.app-sidebar) :is(.workspace,.factory-messages-page,.production-project-page) :is(section,article,.client-overview,.status-overview,.work-board,.job,.production-project-card,.factory-messages-layout,.factory-message-bubble){border:0;border-radius:0;box-shadow:none}
body:has(.app-sidebar) :is(.heading,.status-overview,.work-board,.production-project-heading,.production-project-sections,.production-project-sidebar,.factory-messages-header){margin:0;border:0;border-radius:0;box-shadow:none}
body:has(.app-sidebar) :is(.heading,.job-grid,.production-project-layout,.factory-messages-layout){gap:0}
body:has(.app-sidebar) .production-shell>.app-sidebar :is(.production-nav a,.factory-messages-nav,.account-trigger>svg,.user-menu){border:0;border-radius:0;box-shadow:none}
body:has(.app-sidebar) .so-loading{inset:0 var(--app-sidebar-width) 0 0;border-radius:0}

body.factory-messages-open .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace,body.production-project-open .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace{display:none}

/* Restore the original production status strip and job cards. */
.production-shell>.app-sidebar .production-nav a,.production-shell>.app-sidebar .production-nav a:hover,.production-shell>.app-sidebar .production-nav a:focus,.production-shell>.app-sidebar .production-nav a[aria-current=page]{text-decoration:none}
body .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:18px;padding:20px;min-height:0;height:100%;background:#f5f5f5;overflow:hidden}
body:has(.app-sidebar) .jobs-workspace .heading{gap:18px;margin:0}
body:has(.app-sidebar) .jobs-workspace .heading h1{font-size:24px;font-weight:600}
body:has(.app-sidebar) .jobs-workspace .client-overview{padding:10px 12px;background:#fff}
body:has(.app-sidebar) .jobs-workspace .status-overview{margin:0;padding:18px 20px 16px;background:#fff}
body:has(.app-sidebar) .jobs-workspace .status-flow{gap:0;min-width:0}
body:has(.app-sidebar) .jobs-workspace .status-bar{gap:3px;min-width:0}
body:has(.app-sidebar) .jobs-workspace .work-board{display:flex;flex-direction:column;min-height:0;margin:0;padding:18px;background:#fff}
body:has(.app-sidebar) .jobs-workspace .job-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:0}
body:has(.app-sidebar) .jobs-workspace .job{display:flex;flex-direction:column;width:100%;min-height:148px;padding:13px;text-align:right;border:1px solid color-mix(in srgb,var(--status-color),#fff 38%);border-right:4px solid var(--status-color);border-radius:0;background:color-mix(in srgb,var(--status-color),#fff 92%);color:var(--ink);box-shadow:none;cursor:pointer}
body:has(.app-sidebar) .jobs-workspace .job:hover,body:has(.app-sidebar) .jobs-workspace .job:focus-visible{border-color:var(--status-color);background:color-mix(in srgb,var(--status-color),#fff 82%);outline:none}
body:has(.app-sidebar) .jobs-workspace .job-status{background:color-mix(in srgb,var(--status-color),#fff 72%)}
body:has(.app-sidebar) .jobs-workspace .pagination{margin-top:auto;padding-top:16px}
body:has(.app-sidebar) .jobs-workspace .board-toolbar{margin-bottom:15px}
body.factory-messages-open .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace,body.production-project-open .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace{display:none}
.workspace-loading{display:grid;place-items:center;height:100%;color:#999;font-size:13px}
@media(max-width:1100px){body:has(.app-sidebar) .jobs-workspace .job-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace{padding:16px;gap:14px}body:has(.app-sidebar) .jobs-workspace .job{min-height:132px}}
@media(max-width:700px){body:has(.app-sidebar) .jobs-workspace .job-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .production-shell:has(>.app-sidebar)>.workspace.jobs-workspace{padding:12px;gap:12px}}

/* Planning submenu, compact draggable rows and modern outline icons. */

.production-shell>.app-sidebar .production-nav a svg{stroke-width:1.65}


.production-shell>.app-sidebar .so-planner-submenu{position:static;top:auto;display:flex;flex-direction:column;gap:10px;max-height:none;overflow:hidden;margin:3px 0 7px;padding:10px 4px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}
.so-planner-submenu button{font:inherit;cursor:pointer}
.so-planner-submenu .so-submenu-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;flex-wrap:nowrap}
.production-shell>.app-sidebar .so-submenu-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:33px;padding:7px 6px;font-size:11px;border:0;border-radius:5px!important;background:#f3eee7;color:#8c7861;box-shadow:none}
.production-shell>.app-sidebar .so-submenu-actions button.so-action-primary{background:#b26f2d;color:#fff}
.production-shell>.app-sidebar .so-submenu-actions button:disabled{opacity:.4;cursor:default}
.so-submenu-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.so-planner-submenu .so-library-tabs{display:flex;gap:3px;padding:3px;background:#f0eeeb;border-radius:6px}
.production-shell>.app-sidebar .so-library-tabs button{flex:1;min-height:29px;padding:6px 5px;background:transparent;border:0;border-radius:4px!important;color:#92908b;font-size:11px;line-height:1.3}
.production-shell>.app-sidebar .so-library-tabs button[aria-pressed=true]{background:#fff;color:#975c23}
.so-planner-submenu [data-library-status]{font-size:11px;line-height:1.5;color:#ae624f;margin:0}
.so-planner-submenu [data-library-status]:empty{display:none}
.so-planner-submenu [data-library-items]{min-height:0;overflow:hidden}
.so-planner-submenu .so-library-group{margin:8px 7px 6px;padding:0;font-size:10px;color:#94877b}
.production-shell>.app-sidebar .so-planner-submenu .so-library-item{display:flex;align-items:center;gap:6px;min-height:50px;margin:0 0 5px;padding:8px 5px;border:0;border-radius:5px!important;background:#fff;box-shadow:none;cursor:grab;transition:background .15s}
.production-shell>.app-sidebar .so-planner-submenu .so-library-item:hover{background:#f6eee4}
.so-planner-submenu .so-library-grip{display:grid;place-items:center;width:15px;flex:0 0 15px;color:#c9c1b8}
.so-library-grip svg{width:14px;height:19px;fill:none;stroke:currentColor;stroke-width:3.3;stroke-linecap:round}
.so-planner-submenu .so-library-card-info{min-width:0;flex:1}
.so-planner-submenu .so-library-card-info strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;line-height:1.5;color:#514b44}
.so-planner-submenu .so-library-card-info small{display:block;font-size:10px;color:#a49a8e;margin-top:2px;white-space:nowrap}
.production-shell>.app-sidebar .so-planner-submenu .so-library-pencil{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:6px;border:0;border-radius:4px!important;background:transparent;color:#a58a6e}
.so-library-pencil svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.production-shell>.app-sidebar .so-planner-submenu .so-library-pencil:hover{background:#f0e2d0;color:#975c23}
.so-planner-submenu .so-library-note{font-size:11px;line-height:1.7;color:#a0978b;padding:10px 7px;margin:0}
.so-planner-submenu .so-library-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 0;padding:0;border:0;color:#aaa;font-size:10px}
.so-planner-submenu .so-library-pagination[hidden]{display:none}
.so-planner-submenu .so-library-pagination button{border:0;background:transparent;color:#9b8268;min-height:24px;padding:2px 8px;font-size:15px}
.so-planner-submenu .so-library-pagination button:disabled{opacity:.3;cursor:default}
@media(max-width:700px){.production-shell>.app-sidebar:has(.so-planner-submenu) .production-nav a span{display:inline}.production-shell>.app-sidebar:has(.so-planner-submenu) .production-nav a{justify-content:flex-start;padding:9px 10px}}

/* Shared production navigation sizing and neutral planning controls. */
.production-shell>.app-sidebar .so-submenu-actions{grid-template-columns:1fr}
.production-shell>.app-sidebar .so-planner-submenu{padding-inline:0;gap:8px}
.production-shell>.app-sidebar .so-library-tabs{flex-direction:column;gap:2px}
.production-shell>.app-sidebar .so-planner-submenu .so-library-item{gap:4px;padding:6px 2px;min-height:46px}
.so-planner-submenu .so-library-card-info strong{font-size:11px}
.so-planner-submenu .so-library-card-info small{font-size:9px}
.production-shell>.app-sidebar .so-planner-submenu .so-library-pencil{flex-basis:24px;width:24px;padding:5px}

/* Shared contrasting navigation in both workspaces. */
.production-shell>.app-sidebar{background:#303235;color:#f2f0ed}
.production-shell>.app-sidebar .app-nav-caption{color:#999b9e}
.production-shell>.app-sidebar .brand-header .official-logo{filter:grayscale(1) brightness(0) invert(1)}
.production-shell>.app-sidebar .production-nav a{color:#d0d0d2;background:transparent}
.production-shell>.app-sidebar .production-nav a[aria-current=page]{background:#715638;color:#fff0dd}
.production-shell>.app-sidebar .production-nav a:hover{background:#414348;color:#fff}
.production-shell>.app-sidebar .factory-messages-nav{color:#d0d0d2;background:transparent}
.production-shell>.app-sidebar .factory-messages-nav:hover{background:#414348;color:#fff}
body.factory-messages-open .app-sidebar .production-nav a[aria-current=page]{color:#d0d0d2;background:transparent}
body.factory-messages-open .production-shell>.app-sidebar .factory-messages-nav{background:#715638;color:#fff0dd}
.production-shell>.app-sidebar .account-trigger{color:#eee;border-top-color:#47494c}
.production-shell>.app-sidebar .account-trigger>svg{background:#44464a;color:#ddd}
.production-shell>.app-sidebar .account-copy strong{color:#eee}
.production-shell>.app-sidebar .account-copy small{color:#a0a1a4}
.production-shell>.app-sidebar .so-library-tabs{background:#3b3d41}
.production-shell>.app-sidebar .so-library-tabs button{color:#bcbab6}
.production-shell>.app-sidebar .so-library-tabs button[aria-pressed=true]{background:#56504a;color:#fff0dd}
.production-shell>.app-sidebar .so-submenu-actions button{background:#44464a;color:#dbd6ce}
.production-shell>.app-sidebar .so-submenu-actions button.so-action-primary{background:#a77b47;color:#fff}
.production-shell>.app-sidebar .so-planner-submenu .so-library-item{background:#3b3d41}
.production-shell>.app-sidebar .so-planner-submenu .so-library-item:hover{background:#4c4741}
.production-shell>.app-sidebar .so-library-card-info strong{color:#e4e1dc}
.production-shell>.app-sidebar .so-library-card-info small{color:#aaa7a2}
.production-shell>.app-sidebar .so-library-group{color:#b9aa97}
.production-shell>.app-sidebar .so-library-grip{color:#77787b}
.production-shell>.app-sidebar .so-planner-submenu .so-library-pencil{color:#c8b396}
.production-shell>.app-sidebar .so-planner-submenu .so-library-pencil:hover{background:#5b4e3f;color:#fff0dd}
.production-shell>.app-sidebar .so-library-note{color:#aaa7a2}
.production-shell>.app-sidebar .so-library-pagination,.production-shell>.app-sidebar .so-library-pagination button{color:#bdb5aa}

/* Narrow primary rail, with an overlay expansion that does not shift the stage. */
:root{--app-sidebar-width:174px}
body .production-shell:has(>.app-sidebar.is-compact){grid-template-columns:58px minmax(0,1fr)}
.production-shell>.app-sidebar{padding:20px 9px 12px;z-index:500;box-sizing:border-box;overflow:visible}
.production-shell>.app-sidebar.is-compact{width:58px;padding-inline:7px;transition:width .18s ease}
.production-shell>.app-sidebar.is-compact.is-expanded{width:174px;box-shadow:-8px 0 24px #00000012}
.production-shell>.app-sidebar.is-compact:not(.is-expanded) .production-nav a span,.production-shell>.app-sidebar.is-compact:not(.is-expanded) .account-copy,.production-shell>.app-sidebar.is-compact:not(.is-expanded) .app-nav-caption,.production-shell>.app-sidebar.is-compact:not(.is-expanded) .factory-messages-nav::after{display:none}
.production-shell>.app-sidebar.is-compact:not(.is-expanded) .production-nav a,.production-shell>.app-sidebar.is-compact:not(.is-expanded) .factory-messages-nav,.production-shell>.app-sidebar.is-compact:not(.is-expanded) .account-trigger{justify-content:center;padding-inline:0}
.production-shell>.app-sidebar.is-compact:not(.is-expanded) .brand-header{width:32px;overflow:hidden;align-self:center;justify-content:flex-start}
.production-shell>.app-sidebar.is-compact:not(.is-expanded) .brand-header .official-logo{width:112px;max-width:none;flex:none;object-fit:cover;object-position:left}
.production-shell>.app-sidebar.is-compact.is-expanded .production-nav a span{display:inline}
.production-shell>.app-sidebar.is-compact.is-expanded .account-copy{display:grid}
.production-shell>.app-sidebar.is-compact.is-expanded .app-nav-caption{display:block}
.production-shell>.app-sidebar.is-compact.is-expanded .factory-messages-nav::after{display:inline}

/* The customer directory keeps the same inset, rounded controls as the editors. */
body .production-shell:has(>.app-sidebar)>.workspace.cp-workspace{display:block;box-sizing:border-box;padding:28px 32px;overflow:auto;background:#f2f3f5;min-width:0;scrollbar-gutter:stable}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-heading{margin:0 0 22px;padding:0;gap:18px;align-items:center;flex-wrap:wrap}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-heading h1{font-size:25px;line-height:1.35;margin:0 0 7px;color:#343b43}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-heading p{color:#8493a5;line-height:1.6}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-card{padding:22px 24px;margin:0 0 20px;border:1px solid #d9dfe6;border-radius:10px;box-shadow:none;background:#f9fafb}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-section-heading{gap:16px;margin:0 0 20px}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-card h2{color:#a47843;font-size:18px;line-height:1.5}
body:has(.app-sidebar) .production-shell>.cp-workspace button{min-height:36px;padding:8px 14px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#61748a;font-size:13px;font-weight:400;line-height:1.4;box-shadow:none}
body:has(.app-sidebar) .production-shell>.cp-workspace button:hover{background:#f1f3f6;border-color:#c6ced9}
body:has(.app-sidebar) .production-shell>.cp-workspace button.cp-primary,body:has(.app-sidebar) .production-shell>.cp-workspace button[data-add],body:has(.app-sidebar) .production-shell>.cp-workspace button[data-new-shape]{background:#f1e8dc;border-color:#bc945e;color:#946f41}
body:has(.app-sidebar) .production-shell>.cp-workspace button.cp-primary:hover,body:has(.app-sidebar) .production-shell>.cp-workspace button[data-add]:hover,body:has(.app-sidebar) .production-shell>.cp-workspace button[data-new-shape]:hover{background:#eadcc9;border-color:#a47843}
body:has(.app-sidebar) .production-shell>.cp-workspace button[data-back]{background:#343b43;border-color:#343b43;color:#fff}
body:has(.app-sidebar) .production-shell>.cp-workspace button[data-back]:hover{background:#454d57}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-filters button[aria-pressed=true]{background:#f1e8dc;border-color:#bc945e;color:#946f41}
body:has(.app-sidebar) .production-shell>.cp-workspace input,body:has(.app-sidebar) .production-shell>.cp-workspace select{border:1px solid #d9dfe6;border-radius:6px!important;color:#405c7a;background:#fff;min-height:38px}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-table-wrap{border:1px solid #e0e5ec;border-radius:8px;overflow:auto;background:#fff}
body:has(.app-sidebar) .production-shell>.cp-workspace th{background:#f0f2f5;color:#8493a5;font-weight:400;padding:15px 18px}
body:has(.app-sidebar) .production-shell>.cp-workspace td{padding:16px 18px;color:#586674}
body:has(.app-sidebar) .production-shell>.cp-workspace tr:last-child td{border-bottom:0}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-text-button{min-height:0;padding:0;border:0;background:transparent;color:#586674;text-align:right;font-weight:500}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-text-button:hover{background:transparent;color:#946f41}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-project-tools{gap:14px;margin-bottom:18px}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-badge{border-radius:5px;background:#eee7db;color:#946f41}
@media(max-width:1100px){body .production-shell:has(>.app-sidebar)>.workspace.cp-workspace{padding:24px}body:has(.app-sidebar) .production-shell>.cp-workspace .cp-card{padding:20px}}
@media(max-width:700px){body .production-shell:has(>.app-sidebar)>.workspace.cp-workspace{padding:18px 14px}body:has(.app-sidebar) .production-shell>.cp-workspace .cp-card{padding:16px 14px}body:has(.app-sidebar) .production-shell>.cp-workspace .cp-heading h1{font-size:22px}body:has(.app-sidebar) .production-shell>.cp-workspace th,body:has(.app-sidebar) .production-shell>.cp-workspace td{padding:13px 14px}}

/* One shared loading treatment for every Production page. */
.cutplus-loading{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;width:100%;min-height:200px;height:100%;padding:28px;background:#f2f3f5;color:#8493a5;text-align:center;font:inherit;font-size:13px;line-height:1.6;direction:rtl}
.cutplus-loading-label{display:block;max-width:380px}.cutplus-loading-spinner{display:block;flex:none;box-sizing:border-box;width:38px;height:38px;border:3px solid #e0e0e0;border-top-color:#a77946;border-radius:50%!important;box-shadow:0 0 0 10px #ffffffa0;animation:cutplus-loading-spin .7s linear infinite,cutplus-loading-appear .12s .2s both}
.cutplus-loading-overlay{position:absolute;inset:0;z-index:390;width:100%;height:100%;min-height:0;background:#f2f3f5}
.cutplus-is-loading{position:relative!important;isolation:isolate;background:#f2f3f5!important}.cutplus-is-loading>:not(.cutplus-loading-overlay){visibility:hidden!important;pointer-events:none!important}
#shape-workspace>.cutplus-loading,#new-order-root>.cutplus-loading{min-height:100%;flex:1}
.production-project-content>.cutplus-loading{min-height:55dvh}
@keyframes cutplus-loading-spin{to{transform:rotate(360deg)}}@keyframes cutplus-loading-appear{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.cutplus-loading-spinner{animation-duration:1.8s,.01ms;animation-delay:0s,0s}}

/* Shared project/file menu reserves its own row above every workspace. */
body .production-shell:has(>.app-sidebar){grid-template-rows:46px minmax(0,1fr)}
body .production-shell:has(>.app-sidebar)>.app-sidebar{grid-row:1 / span 2}
body .production-shell:has(>.app-sidebar)>:is(.workspace,#shape-workspace,#new-order-root,.factory-messages-page,.production-project-page){grid-row:2!important;min-height:0}
.cp-project-bar{grid-column:2;grid-row:1;position:relative;z-index:420;display:flex;align-items:center;gap:14px;padding:6px 16px;min-width:0;background:#f2f3f5;border-bottom:1px solid #e0e4e9;color:#61748a;font:inherit;font-size:12px}
.cp-project-menu{position:relative}.cp-project-menu>summary{display:flex;align-items:center;gap:8px;min-height:32px;box-sizing:border-box;padding:6px 12px;border:1px solid #dfd4c3;border-radius:6px;background:#eee7db;color:#a47843;cursor:pointer;list-style:none}.cp-project-menu summary::-webkit-details-marker{display:none}
.cp-project-menu svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cp-project-menu-panel{position:absolute;top:calc(100% + 8px);right:0;box-sizing:border-box;width:290px;max-width:calc(100vw - 90px);max-height:calc(100dvh - 80px);overflow:auto;padding:8px;border:1px solid #d9dfe6!important;border-radius:8px!important;background:#f9fafb;box-shadow:0 8px 24px #26333f1c!important}
.cp-project-menu-panel button,.cp-menu-new>summary{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;min-height:36px;padding:9px 11px;font:inherit;font-size:12px;color:#61748a;background:transparent;border:0;border-radius:5px!important;text-align:right;cursor:pointer;list-style:none}
.cp-project-menu-panel button:hover,.cp-menu-new>summary:hover{background:#eee7db;color:#946f41}.cp-project-menu-panel [hidden]{display:none!important}.cp-menu-new>div{padding:0 26px 6px 0}.cp-menu-new[open]>summary{color:#946f41}
.cp-menu-recent-heading{padding:12px 11px 7px;margin-top:6px;border-top:1px solid #dfe3e9;color:#a47843;font-size:11px}.cp-project-menu-panel strong{font-weight:400;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:218px}.cp-project-menu-panel small{font-size:10px;color:#94a0af;display:block;margin-top:3px}.cp-menu-empty{padding:12px;color:#8493a5;font-size:11px;margin:0}.cp-project-menu-panel .cutplus-loading{height:150px;min-height:150px;padding:18px;font-size:12px}.cp-project-bar [data-menu-feedback]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;color:#a47843}
.cp-project-menu summary:focus-visible,.cp-project-menu button:focus-visible{outline:2px solid #a47843;outline-offset:2px}

.cp-project-bar [data-menu-feedback]:not(:empty){position:absolute;top:calc(100% + 6px);right:12px;max-width:min(460px,90vw);padding:7px 10px;border:1px solid #dfd4c3;border-radius:6px;background:#f8f4ed;white-space:normal;z-index:450}

/* Customer page actions share the same top-left action row as the editors. */
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-customer-header-actions{position:fixed;top:var(--cp-stage-top,7px);left:var(--cp-stage-left,12px);right:auto;z-index:430;display:flex;align-items:center;gap:8px;margin:0;flex-wrap:nowrap}
body:has(.app-sidebar) .production-shell>.cp-workspace .cp-customer-header-actions button{min-height:32px;height:32px;padding:6px 12px;white-space:nowrap}

/* Keep natural control widths; additional rows reserve real space rather than clipping labels. */
body .production-shell:has(>.app-sidebar){grid-template-rows:var(--cp-project-row-height,46px) minmax(0,1fr)}
.cp-project-bar{align-items:flex-start;padding-block:7px}
.cp-project-menu>summary{box-sizing:border-box;height:32px;min-height:32px;padding-block:5px;line-height:20px}
@media(max-width:560px){.cp-project-menu>summary>span{display:none}.cp-project-menu>summary{padding-inline:8px}}

.cp-open-project{display:block;flex:0 1 auto;max-width:clamp(120px,24vw,300px);height:32px;line-height:32px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#61748a;font-size:12px;direction:rtl}.cp-open-project:empty{display:none}
.cp-project-menu-panel .cp-menu-save{padding:12px 10px;margin:6px 0 8px;border:1px solid #d9dfe6;border-radius:6px;background:#f2f3f5}.cp-menu-save h3{margin:0 0 10px;font-size:13px;font-weight:400;color:#a47843}.cp-menu-save label{display:flex;flex-direction:column;gap:5px;margin:8px 0;color:#61748a;font-size:12px}.cp-menu-save :is(input,select){box-sizing:border-box;width:100%;min-height:34px;padding:6px 8px;border:1px solid #d9dfe6;border-radius:6px;background:#fff;color:#405c7a;font:inherit;font-size:12px}.cp-menu-save>div{display:flex;gap:8px}.cp-menu-save>div>button{justify-content:center;border:1px solid #d9dfe6;background:#fff}.cp-menu-save>div>button[type=submit]{background:#f1e8dc;border-color:#bc945e;color:#946f41}.cp-menu-save p{margin:8px 0;font-size:11px;color:#a47843}.cp-menu-save .cutplus-loading{height:130px;min-height:130px;padding:12px}

/* Stable project-management area on the right, independent of title length. */
.cp-project-bar .cp-open-project{flex:0 0 auto;max-width:none;min-width:0}
.cp-project-bar::after{content:"";position:absolute;right:calc(var(--cp-management-width,340px) - 6px);top:10px;height:26px;border-left:1px solid #d9dfe6;pointer-events:none}
.cp-project-bar.cp-bar-loading{visibility:hidden;pointer-events:none}

#carpenter-content{grid-column:2;grid-row:1 / span 2;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#carpenter-content #live-stage{flex:1;width:100%;margin:0;overflow:auto}

.carpenter-pilot :is([data-shape-mode="cam"],[data-layout-tool="nest"],[data-layout-form="nest"]){display:none!important}

.production-shell>.app-sidebar .production-nav{min-height:0;overflow:auto;scrollbar-width:thin;gap:12px}
.production-shell>.app-sidebar .pn-group{display:grid;gap:3px}
.pn-group-title{padding-inline:10px;color:#a9a9ad;font-size:10px;line-height:1.5}
.app-sidebar.is-compact:not(.is-expanded) .pn-group-title{display:none}
.pd-home{direction:rtl;width:100%;max-width:1600px;margin-inline:auto}
.pd-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:24px}
.pd-heading h1{margin:0 0 6px;color:#343b43;font-size:clamp(24px,3vw,34px)}
.pd-heading p,.pd-empty{margin:0;color:#64758a}
.pd-actions{display:flex;flex-wrap:wrap;gap:8px}
.pd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pd-panel{min-width:0;display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid #d9dfe6;border-radius:10px;background:#f9fafb}
.pd-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pd-panel h2{margin:0;color:#343b43;font-size:17px}
.pd-count{border-radius:6px;background:#eee7db;color:#79572e;padding:3px 10px;font-variant-numeric:tabular-nums}
.pd-panel ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}
body:has(.app-sidebar) .production-shell>.cp-workspace .pd-panel li button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:start}
.pd-panel li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-panel li small{flex:none;color:#64758a}
.pd-panel .pd-more{align-self:flex-start;margin-top:auto}
@media(max-width:800px){.pd-grid{grid-template-columns:minmax(0,1fr)}.pd-heading{margin-bottom:16px}.pd-panel{padding:14px}}

.support-shell-content{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto}
.support-shell-content #live-stage{flex:1;width:100%;margin:0}
.pd-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:12px;margin-bottom:22px}
body:has(.app-sidebar) .production-shell>.cp-workspace .pd-kpi{display:grid;gap:5px;text-align:start;padding:14px 17px;border:0;border-inline-start:3px solid #b79565;background:#edeef0;color:#343b43}
.pd-kpi small{color:#586674;font-size:13px}
.pd-kpi strong{font-size:28px;line-height:1.15;font-variant-numeric:tabular-nums}
.pd-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.pd-panel{border:0;background:#f9fafb;padding:20px}
body:has(.app-sidebar) .production-shell>.cp-workspace .pd-panel li button{border:0;border-bottom:1px solid #e5e6e9;border-radius:0!important;background:transparent;padding:12px 5px}
.pd-panel li small{padding:3px 8px;background:#eee7db;color:#79572e;border-radius:5px}
@media(max-width:800px){.pd-grid{grid-template-columns:minmax(0,1fr)}}

body.production-project-open .production-shell:has(>.app-sidebar)>:is(.workspace,#new-order-root,#shape-workspace,.cp-project-bar){display:none!important}
body.factory-messages-open .production-shell:has(>.app-sidebar)>:is(.workspace,#new-order-root,#shape-workspace,.cp-project-bar){display:none!important}
