/* Real workflow surfaces. Cashier and inspection keep their own established theme. */
/* Office palette is shared by every role. */
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .content{max-width:1800px;padding-top:18px}
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .topbar{background:var(--cf-shell-card);color:var(--cf-shell-text)}
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .topbar .crumb,html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .topbar small{color:var(--cf-shell-muted)}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders)>.head{background:var(--cf-shell-card);border:0;border-left:3px solid #f3424d;border-radius:0;padding:16px 20px;margin-bottom:18px}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders)>.head h1{font-size:28px}
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .cf-shell-navigation{background:var(--cf-shell-card);border-color:var(--cf-shell-line);color:var(--cf-shell-text);padding:10px 14px}
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .cf-shell-navigation :is(label,input){color:var(--cf-shell-muted)}
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .cf-shell-navigation input{background:var(--cf-shell-card);border-color:var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal){--line:var(--cf-shell-line);--muted:var(--cf-shell-muted);color:var(--cf-shell-text)}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) :is(.wb-panel,.wb-metric,.metric,.card,.crm-panel,.order-workspace-summary,.order-workspace-pane,.order-item,.modal,.modal-head,.modal-foot){background:var(--cf-shell-card);color:var(--cf-shell-text);border-color:var(--cf-shell-line);box-shadow:none}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) :is(.btn,button:not(.primary):not(.close):not(.status)){background:var(--cf-shell-raised);color:var(--cf-shell-text);border-color:var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) .primary{background:#bd2534;color:white;border-color:#bd2534}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) :is(small,.wb-note,.wb-eyebrow,.wb-statusline,.eyebrow,.wb-empty,.field>label){color:var(--cf-shell-muted)}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-metrics{gap:10px}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-metrics>*{background:var(--cf-shell-card);border:1px solid var(--cf-shell-line);border-radius:12px;padding:16px 18px}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-metrics strong{font-size:34px;letter-spacing:-1px}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-home-grid{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:16px}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-order{padding:15px 18px;border-bottom:1px solid var(--cf-shell-line);background:transparent!important}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-order:hover{background:var(--cf-shell-raised)!important}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-panel-head{padding:18px;border-color:var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] #workspace-overview .wb-flow button{border-color:var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] [data-owner-section-nav]{border-bottom:1px solid var(--cf-shell-line);margin-bottom:18px;gap:4px;padding-bottom:0}
html[data-copyfoto-shell="v2"] [data-owner-section-nav] button{border:0!important;border-radius:8px 8px 0 0;padding:14px 22px;background:transparent!important;color:var(--cf-shell-muted)!important}
html[data-copyfoto-shell="v2"] [data-owner-section-nav] button[aria-current="page"]{background:var(--cf-shell-card)!important;color:var(--ink)!important;box-shadow:inset 0 -3px #f3424d}
html[data-copyfoto-shell="v2"] #orders .data-card{overflow:auto;border-radius:12px}
html[data-copyfoto-shell="v2"] #orders .data-head{padding:18px;align-items:start;gap:16px}
html[data-copyfoto-shell="v2"] #orders :is(th,td){padding:12px 14px;border-color:var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] #orders tbody tr:hover{background:var(--cf-shell-raised)}
html[data-copyfoto-shell="v2"] #orders th{background:var(--cf-shell-card);white-space:nowrap}
html[data-copyfoto-shell="v2"] #orders input,html[data-copyfoto-shell="v2"] #orders select{min-height:42px}
html[data-copyfoto-shell="v2"] #order-modal.open{justify-content:flex-end;padding:0;background:rgba(10,13,19,.5)}
html[data-copyfoto-shell="v2"] #order-modal .order-workspace-modal{width:min(100%,1100px);max-width:1100px;height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;border-left:1px solid var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] #order-form{height:100%;display:flex;flex-direction:column;min-height:0}
html[data-copyfoto-shell="v2"] #order-form>.modal-body{flex:1;min-height:0;overflow:auto;padding:20px 24px}
html[data-copyfoto-shell="v2"] #order-form>.modal-head,html[data-copyfoto-shell="v2"] #order-form>.modal-foot{flex:none;padding:16px 24px;border-color:var(--cf-shell-line)}
html[data-copyfoto-shell="v2"] #order-form .order-workspace-tabs{position:sticky;top:-20px;z-index:2;background:var(--cf-shell-card);padding:12px 0;border-bottom:1px solid var(--cf-shell-line);display:flex;flex-wrap:wrap;gap:6px}
.cf-workspace-hint{padding:12px 16px;background:var(--cf-shell-card);border-left:3px solid #8193aa;border-radius:6px;margin:12px 0;color:var(--cf-shell-muted);font-size:13px;line-height:1.5}
@media(max-width:900px){html[data-copyfoto-shell="v2"] #workspace-overview .wb-home-grid{grid-template-columns:minmax(0,1fr)}html[data-copyfoto-shell="v2"] #order-modal .order-workspace-modal{border-radius:0;width:100%}}
@media(max-width:600px){html[data-copyfoto-shell="v2"] #workspace-overview .wb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-copyfoto-shell="v2"] #orders .data-head{display:grid;grid-template-columns:minmax(0,1fr)}html[data-copyfoto-shell="v2"] #order-form>.modal-body{padding:14px}html[data-copyfoto-shell="v2"] [data-owner-section-nav] button{padding:12px 6px}html[data-copyfoto-shell="v2"] #orders .order-journal-filters{display:grid;grid-template-columns:minmax(0,1fr);width:100%}}
/* Existing reference theme uses !important; override only verified workflow surfaces. */
html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) body{background:var(--cf-shell-bg)!important}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal){--ink:var(--cf-shell-text);--muted:var(--cf-shell-muted);--card:var(--cf-shell-card);--bg:var(--cf-shell-bg)}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders)>.head :is(h1,h2),html[data-copyfoto-shell="v2"]:has(:is(#dashboard,#orders).active) .topbar :is(b,#user-name){color:var(--cf-shell-text)!important}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) :is(.wb-panel,.wb-metrics>button,.card,.crm-panel,.modal,.modal-head,.modal-foot){background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) :is(h2,h3,b,strong){color:var(--cf-shell-text)}
html[data-copyfoto-shell="v2"] #workspace-overview :is(.wb-quick i,.wb-empty,.wb-note){background:transparent;color:var(--cf-shell-muted)}
html[data-copyfoto-shell="v2"] :is(#dashboard,#orders,#order-modal) .btn:not(.primary){background:var(--cf-shell-raised)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] #workspace-overview [data-owner-section-errors]{background:#442d35;border-radius:8px;color:#ffdce1}
html[data-copyfoto-shell="v2"] #orders :is(th,td){background:transparent!important;color:var(--cf-shell-text)!important}
html[data-copyfoto-shell="v2"] .workspace:has(:is(#dashboard,#orders).active){background:var(--cf-shell-bg)!important}
html[data-copyfoto-shell="v2"] #orders :is(#order-journal-summary,#order-journal-summary>div,.data-table,.oj-bulk,.oj-column,.oj-order-card,.oj-board,.oj-column>header>span){background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] #orders :is(input:not([type=checkbox]),select,textarea){background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] #orders .status{color:var(--cf-shell-text)!important}
html[data-copyfoto-shell="v2"] #orders .order-warning{color:var(--cf-shell-warning)!important}
html[data-copyfoto-shell="v2"] #orders .data-table tr:hover{background:var(--cf-shell-raised)!important}
html[data-copyfoto-shell="v2"] :is(#orders,#order-modal){color-scheme:var(--cf-color-scheme)}
html[data-copyfoto-shell="v2"] #order-modal :is(details,.fields,.order-main-fields,.op-proposal-field,.privacy-note){background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] #order-modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] #order-modal :is(summary,.close){color:var(--cf-shell-text)!important;background:var(--cf-shell-raised)!important}
html[data-copyfoto-shell="v2"] #order-modal .field small{color:var(--cf-shell-muted)!important}
html[data-copyfoto-shell="v2"] :is(#orders,#order-modal) option{background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important}
html[data-copyfoto-shell="v2"] :is(#orders,#order-modal) select{-webkit-text-fill-color:var(--cf-shell-text)!important}
@media(max-width:600px){html[data-copyfoto-shell="v2"] #order-modal .order-client-picker{display:flex;flex-direction:column;align-items:stretch}html[data-copyfoto-shell="v2"] #order-modal .order-client-picker>*{width:100%;min-width:0}}
.cf-v3-brand{display:none}
html[data-copyfoto-shell="v2"] #sidebar .brand{position:relative;min-height:86px;display:block!important;padding:8px 5px 18px!important}
html[data-copyfoto-shell="v2"] #sidebar .brand>.cf-v3-brand{display:block!important;width:172px!important;height:58px!important;object-fit:contain}
html[data-copyfoto-shell="v2"] #sidebar .brand>div{display:none!important}
html[data-copyfoto-shell="v2"] #workspace-overview{display:flex;flex-direction:column}
html[data-copyfoto-shell="v2"] #workspace-overview>.wb-statusline{order:0}
html[data-copyfoto-shell="v2"] #workspace-overview>[data-owner-section-nav]{order:1}
html[data-copyfoto-shell="v2"] #workspace-overview>[data-owner-section-errors]{order:2}
html[data-copyfoto-shell="v2"] #workspace-overview>.wb-metrics{order:3}
html[data-copyfoto-shell="v2"] #workspace-overview>.wb-home-grid{order:4}
html[data-copyfoto-shell="v2"] #workspace-overview>.wb-control{order:5}
html[data-copyfoto-shell="v2"] #workspace-overview>.wb-quick{order:6;margin-top:18px}
html[data-copyfoto-shell="v2"] #workspace-overview>.wb-bottom-links{order:7}
html[data-copyfoto-shell="v2"] #workspace-overview>[data-owner-section]:not(.wb-metrics):not(.wb-home-grid):not(.wb-control):not(.wb-quick):not(.wb-bottom-links){order:4}

html[data-copyfoto-shell="v2"] #sidebar .brand>.logo{display:none!important}
html[data-copyfoto-shell="v2"] #order-modal :is(.modal-body,.oc-essentials,.oc-nav,.oc-card,.settings-box){background:var(--cf-shell-card)!important;color:var(--cf-shell-text)!important;border-color:var(--cf-shell-line)!important}
html[data-copyfoto-shell="v2"] #order-modal :is(input,textarea){-webkit-text-fill-color:var(--cf-shell-text)!important}
html[data-copyfoto-shell="v2"] #order-modal :is(.oc-intro span,.oc-intro small,.oc-card p,.crm-empty){color:var(--cf-shell-muted)!important}
html[data-copyfoto-shell="v2"] #order-modal .error{color:var(--cf-shell-warning)!important}
html[data-copyfoto-shell="v2"] body:not(.copycenter-role) #sidebar .brand>.logo,html[data-copyfoto-shell="v2"] body:not(.copycenter-role) #sidebar .brand>div{display:none!important}
html[data-copyfoto-shell="v2"] #order-modal .oc-essentials input{color-scheme:var(--cf-color-scheme)}

/* Author-owned hidden states always win presentation layout. */
html[data-copyfoto-shell="v2"] #workspace-overview[hidden],html[data-copyfoto-shell="v2"] #sidebar .brand[hidden],html[data-copyfoto-shell="v2"] #sidebar .brand>.cf-v3-brand[hidden]{display:none!important}

[data-v3-hint]{display:none}
html[data-copyfoto-shell="v2"] #orders [data-v3-hint]:not([hidden]){display:block}

/* Shared toolbar and page rhythm for the remaining office workspaces. */
html[data-copyfoto-shell="v2"] :is(#tasks,#clients,#production,#inventory,#needs,#quotes,#staff) > .head {
  padding: 10px 0 14px;
  margin-bottom: 14px;
  align-items: center;
}
html[data-copyfoto-shell="v2"] :is(#tasks,#clients,#production,#inventory,#needs,#quotes,#staff) > .head h1 {
  margin: 0;
}
html[data-copyfoto-shell="v2"] :is(#tasks,#clients,#production,#inventory,#needs,#quotes,#staff) > .head p {
  margin: 4px 0 0;
}
html[data-copyfoto-shell="v2"] :is(#tasks,#clients,#production,#inventory,#needs,#quotes,#staff) .data-card {
  min-width: 0;
  overflow-x: auto;
}
html[data-copyfoto-shell="v2"] :is(#tasks,#clients,#production,#inventory,#needs,#quotes,#staff) .data-head {
  flex-wrap: wrap;
  gap: 8px 16px;
}
@media (max-width: 600px) {
  html[data-copyfoto-shell="v2"] :is(#tasks,#clients,#production,#inventory,#needs,#quotes,#staff) > .head {
    flex-wrap: wrap;
  }
}
