:root{--ink:#102448;--muted:#8393b1;--line:#dce4ef;--green:#00a873;--pale:#f6f8fc;--sidebar:#536b8f}*{box-sizing:border-box}body{margin:0;font:14px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#102448;background:var(--pale)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.login-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#526b90 0 42%,#f4f7fb 42%)}.card{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 4px #18345b10}.login-card,.installer{width:min(100%,480px);padding:34px}.installer{width:min(100%,760px)}.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.brand>b{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#294266;color:#fff;letter-spacing:2px}.brand span{font-weight:750;color:var(--ink)}.brand small{display:block;font-weight:400;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:20px;letter-spacing:-.3px}h2{font-size:16px}.role-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.role-tabs a{padding:10px;text-align:center;border:1px solid var(--line);border-radius:8px}.role-tabs a.active{background:#edf3fc;border-color:#9eb0ce;color:#27466f;font-weight:700}label{display:grid;gap:7px;font-weight:650;color:#38506f}input,select,textarea{width:100%;padding:11px 13px;border:1px solid #d2dce9;border-radius:8px;background:#fff;color:#102448;outline:none}input:focus,select:focus,textarea:focus{border-color:#5a79a5;box-shadow:0 0 0 3px #5a79a520}textarea{min-height:110px;resize:vertical}.form-stack{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .wide{grid-column:1/-1}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:0;border-radius:8px;padding:9px 14px;font-weight:650;cursor:pointer}.btn.small{padding:6px 12px;font-size:12px}.btn.primary{background:#294f85;color:#fff}.btn.dark{background:#18345b;color:#fff}.btn.light{background:#fff;color:#18345b;border:1px solid #d7e0ed}.btn.danger{background:#fff0ed;color:#b83820}.layout{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}.sidebar{height:100vh;position:sticky;top:0;overflow-y:auto;background:var(--sidebar);color:#fff;padding:18px 10px;display:flex;flex-direction:column}.side-brand{padding:0 8px;margin-bottom:26px}.side-brand>b{display:none}.sidebar .brand span{color:#fff;font-size:18px}.sidebar .brand small{color:#c5d1e4;font-size:11px;letter-spacing:1px}.nav{display:grid;gap:3px}.nav-label{padding:12px 10px 5px;color:#aec0db;font-size:10px;font-weight:800;letter-spacing:1.4px}.nav a{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:8px;color:#eef3fa;font-weight:600}.nav a i{width:16px;text-align:center;color:#e5edf8;font-style:normal}.nav a:hover,.nav a.active{background:#768baa;color:#fff}.sidebar-foot{margin-top:auto;display:flex;align-items:center;gap:9px;padding:15px 8px 2px;color:#fff;border-top:1px solid #ffffff1f}.sidebar-foot div{min-width:0;flex:1}.sidebar-foot b,.sidebar-foot small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-foot small{color:#c6d3e5}.user-dot,.activity-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#8ba0bd;color:#fff;font-size:11px;font-weight:800}.content{min-width:0}.topbar{height:66px;display:flex;justify-content:space-between;align-items:center;padding:0 20px 0 30px;margin:0;background:#fff;border-bottom:1px solid var(--line)}.topbar h1{margin:0}.top-actions{display:flex;align-items:center;gap:10px}.today{margin-left:8px;color:#8998b3;font-size:12px}.page-body{padding:23px 30px}.badge,.pill{display:inline-flex;padding:4px 10px;border-radius:999px;background:#eef2f7;color:#29466e;font-size:11px;font-weight:650;text-transform:capitalize}.badge.rush,.badge.revision{background:#fff0c7;color:#a56500}.badge.completed,.badge.approved{background:#cdf7e4;color:#007e55}.badge.proof_ready{background:#eaf0ff;color:#1e4ca3}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.admin-stats{grid-template-columns:repeat(8,minmax(125px,1fr))}.stat{min-height:104px;padding:17px;display:flex;align-items:center;gap:14px}.stat strong{font-size:24px;line-height:1.1;display:block;color:#071d42}.stat-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:9px;font-weight:800;background:#eaf2ff;color:#2161d0}.stat.amber .stat-icon{background:#fff0bf;color:#cf7b00}.stat.green .stat-icon{background:#cdf5e3;color:#008c61}.stat.red .stat-icon{background:#ffeaec;color:#d52b3d}.stat.slate .stat-icon{background:#e9eef5;color:#536b8f}.muted{color:var(--muted)}.toolbar{display:flex;gap:10px;justify-content:space-between;margin-bottom:15px}.table-wrap{overflow:auto}.table-card{padding:8px 14px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,3.2fr) minmax(310px,1fr);gap:20px}.dashboard-card,.activity-card{overflow:hidden}.section-title{height:63px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.section-title h2{margin:0}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid #e5ebf3;white-space:nowrap}th{font-size:11px;text-transform:uppercase;color:#536b8f;background:#fbfcfe}td{font-size:12px}.order-title{font-weight:750;color:#214b83}.order-title small,td>small{display:block;color:#8a9aba;font-weight:400}.activity-row{display:flex;gap:11px;padding:12px 15px;border-bottom:1px solid #e5ebf3}.activity-avatar{background:#edf1f6;color:#4f678c}.activity-row b,.activity-row small{display:block}.activity-row b{font-size:12px;font-weight:500}.activity-row small{font-size:11px;color:#8b9bb6}.alert{padding:12px 14px;border-radius:8px;margin-bottom:16px;background:#dff7ed;color:#087c5b}.alert.error{background:#fff0ed;color:#b83820}.detail-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:18px}.panel{padding:22px;margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:start;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:18px}.meta{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.meta div{background:#f7f9fc;padding:12px;border-radius:8px}.meta small{display:block;color:var(--muted)}.timeline{display:grid;gap:12px}.message{padding:13px;border-radius:10px;background:#f2f5f9}.message.mine{background:#e9f1fb}.message small{display:block;color:var(--muted);margin-bottom:4px}.file{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1ef}.actions{display:flex;flex-wrap:wrap;gap:8px}.empty{text-align:center;padding:45px;color:var(--muted)}@media(max-width:1500px){.admin-stats{grid-template-columns:repeat(4,1fr)}}@media(max-width:1000px){.layout{grid-template-columns:205px minmax(0,1fr)}.dashboard-grid{grid-template-columns:1fr}.admin-stats{grid-template-columns:repeat(2,1fr)}.top-actions .today{display:none}.detail-grid{grid-template-columns:1fr}.meta{grid-template-columns:1fr 1fr}}@media(max-width:700px){.layout{display:block}.sidebar{height:auto;position:static}.nav{grid-template-columns:1fr 1fr}.nav-label{grid-column:1/-1}.sidebar-foot{display:none}.page-body{padding:16px}.topbar{height:auto;min-height:66px;padding:12px 16px;align-items:flex-start;gap:10px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.stats,.admin-stats{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.toolbar{flex-direction:column}.meta{grid-template-columns:1fr}.login-card,.installer{padding:24px}.login-body{background:#f4f7fb}}

/* Focused Pro dashboard */
:root{--sidebar:#18243a;--pale:#f5f7fb;--ink:#12203a;--muted:#71809b;--line:#dfe5ee}.layout{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:21px 13px;background:#18243a}.side-brand{margin-bottom:19px}.sidebar .brand span{font-size:17px;font-weight:650}.sidebar .brand small{color:#9dacbf}.nav-label{color:#74849d;margin-top:5px}.nav a{padding:9px 10px;color:#c6d0df;font-weight:500}.nav a:hover,.nav a.active{background:#2b3952}.nav a i{color:#aebbd0}.sidebar-foot{padding-bottom:4px}.user-dot{border-radius:9px;background:#324563}.topbar{height:70px;padding:0 25px;background:#fff}.topbar h1{font-size:18px}.top-subtitle{display:block;margin-top:2px;color:#7d8ca5;font-size:11px}.btn.primary{background:#2563eb}.page-body{padding:20px 24px}.admin-stats{grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-bottom:16px}.stat{min-height:92px;padding:14px}.stat strong{font-size:22px}.stat-icon{width:36px;height:36px;flex-basis:36px}.dashboard-grid{grid-template-columns:minmax(0,2.7fr) minmax(260px,1fr);gap:14px}.section-title{height:54px;padding:0 16px}.card{border-radius:11px;box-shadow:0 2px 4px #18345b0a}.activity-row{padding:11px 14px}.activity-card .empty{padding:55px 20px}.activity-card .empty b{color:#44536b}.activity-card .empty span{font-size:11px}.dashboard-card th,.dashboard-card td{padding:11px 12px}.dashboard-card th{background:#fbfcfe}.order-title{color:#1f4f95}@media(max-width:1100px){.admin-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.admin-stats{grid-template-columns:1fr}.top-subtitle{display:none}}

/* Users and accounts */
.accounts-toolbar{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:19px;border-bottom:1px solid var(--line)}.account-tabs{display:flex;gap:5px}.account-tabs a{padding:12px 22px;color:#8492aa;font-weight:650;border-bottom:2px solid transparent}.account-tabs a.active{color:#294f85;border-bottom-color:#294f85}.accounts-toolbar>.btn{margin-bottom:10px}.accounts-table{overflow:hidden}.accounts-table table{min-width:900px}.account-name{font-weight:700}.row-actions{display:flex;gap:5px}.modal-open{overflow:hidden}.modal-backdrop{position:fixed;z-index:1000;inset:0;background:#11182788;display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.account-modal{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:11px;box-shadow:0 24px 70px #0d172b55}.account-modal>header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--line)}.account-modal>header h2{margin:0}.modal-close{border:0;background:transparent;color:#91a0b7;font-size:30px;font-weight:300;line-height:1;cursor:pointer}.modal-body{padding:24px 22px}.account-modal textarea{min-height:90px}.credential-check{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:9px;margin-top:20px;font-weight:500}.credential-check input{width:auto}.info-box{margin-top:16px;padding:14px 16px;border:1px solid #a9cbff;border-radius:7px;background:#edf5ff;color:#2356ad;line-height:1.7}.account-modal footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--line)}@media(max-width:600px){.accounts-toolbar{align-items:center}.account-tabs a{padding:10px}.modal-body{padding:18px}.account-modal>header,.account-modal footer{padding-left:18px;padding-right:18px}}
.row-actions form{display:inline}.btn.warning{background:#fff;color:#d37400;border:1px solid #d8e1ec}.salary-modal{width:min(560px,100%)}.salary-modal label:nth-child(2){max-width:260px}.badge.revision{background:#fff0ee;color:#c33b2f}
.list-heading{display:grid;gap:3px;padding-bottom:11px}.list-heading b{font-size:14px}.list-heading span{color:var(--muted);font-size:11px}.account-name small{display:block;color:var(--muted);font-weight:400;margin-top:2px}

/* Invoices */
.invoice-summary{display:flex;gap:18px;margin-bottom:24px}.invoice-stat{width:220px;padding:20px 24px;display:grid;gap:4px}.invoice-stat small{color:#8796b2;text-transform:uppercase;font-weight:650}.invoice-stat strong{font-size:29px;color:#101f38}.invoice-stat span{color:#8a9aba;font-size:12px}.red-text,.invoice-stat strong.red-text{color:#dc2626}.invoice-create,.invoice-tracker{overflow:hidden;margin-bottom:24px}.invoice-create>header,.invoice-tracker>header,.invoice-edit-card>header{min-height:61px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.invoice-create h2,.invoice-tracker h2,.invoice-edit-card h2{margin:0}.invoice-create form{padding:25px}.invoice-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.invoice-form-grid .customer-field{grid-column:span 2}.invoice-form-grid .notes-field{grid-column:1/-1}.invoice-form-grid textarea{min-height:60px}.invoice-submit{display:flex;align-items:center;gap:12px;margin-top:24px}.invoice-submit span{font-size:12px;color:#8b9ab6}.invoice-tabs{display:flex;gap:2px;padding:0 24px;border-bottom:1px solid var(--line)}.invoice-tabs a{padding:11px 25px;color:#5f6f89;border-bottom:2px solid transparent}.invoice-tabs a.active{color:#294f85;border-color:#294f85}.invoice-tracker table{min-width:1060px}.invoice-amount{font-weight:750;color:#dc2626}.btn.paid{background:#009b6b;color:#fff}.invoice-edit-card{max-width:900px;margin:0 auto;overflow:hidden}.invoice-edit-card>header{padding-top:16px;padding-bottom:16px}.invoice-edit-card>header p{margin:4px 0 0;color:var(--muted)}.invoice-edit-card>form{padding:26px}.edit-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px}@media(max-width:900px){.invoice-form-grid{grid-template-columns:1fr 1fr}.invoice-form-grid .customer-field{grid-column:1/-1}}@media(max-width:600px){.invoice-summary{display:grid}.invoice-stat{width:auto}.invoice-form-grid{grid-template-columns:1fr}.invoice-form-grid .customer-field{grid-column:auto}.invoice-submit{align-items:stretch;flex-direction:column}}
.btn.received{background:#2563eb;color:#fff}.received-amount,.green-text{color:#009b6b;font-weight:750}.balance-amount{color:#dc2626;font-weight:750}.badge.partial{background:#fff0bf;color:#a56500}.payment-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line)}.payment-summary>div{padding:18px 26px;background:#fbfcfe;display:grid;gap:4px}.payment-summary small{color:var(--muted);font-weight:650;text-transform:uppercase}.payment-summary strong{font-size:22px}.field-help{color:var(--muted);font-weight:400}.receive-card .edit-actions{align-items:center}.payment-history{margin-top:20px}.payment-history table{min-width:760px}.payment-history td{white-space:normal}.invoice-tracker .row-actions{flex-wrap:nowrap}@media(max-width:600px){.payment-summary{grid-template-columns:1fr}.edit-actions{flex-wrap:wrap}.invoice-edit-card>header{align-items:flex-start;gap:12px}}

/* =========================================================
   Haze-inspired PHP CRM theme — visual layer only
   ========================================================= */
:root{
  --ink:#2b3150;--muted:#8c94ad;--line:#e9ebf3;--pale:#f6f7fb;
  --sidebar:#34314f;--accent:#6f63e9;--accent2:#8a7cf0;--success:#2dbb8a;
}
body{background:#f6f7fb;color:var(--ink);font-size:13px}
.layout{grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.sidebar{padding:24px 16px 18px;background:linear-gradient(180deg,#34314f 0%,#2d2a45 100%);box-shadow:8px 0 28px rgba(39,36,64,.08)}
.side-brand{padding:0 12px 18px;margin:0 0 14px;border-bottom:1px solid rgba(255,255,255,.09)}
.sidebar .brand span{font-size:18px;font-weight:700;letter-spacing:-.2px;color:#fff}.sidebar .brand small{margin-top:3px;color:#aaa6c7;font-size:10px;letter-spacing:1.25px}
.nav{gap:5px}.nav-label{padding:16px 12px 6px;color:#85819f;font-size:9px;letter-spacing:1.55px}.nav a{position:relative;padding:11px 12px;border-radius:8px;color:#c8c5d8;font-weight:500;transition:.18s ease}.nav a i{width:19px;color:#a9a4c1;font-size:15px}.nav a:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(2px)}.nav a.active{background:linear-gradient(90deg,#7569e8,#6659d9);color:#fff;box-shadow:0 8px 18px rgba(85,73,202,.28)}.nav a.active i{color:#fff}.nav a.active:before{content:"";position:absolute;left:-16px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#a99fff}
.sidebar-foot{margin-top:auto;padding:18px 10px 2px;border-top:1px solid rgba(255,255,255,.09);color:#fff}.sidebar-foot small{color:#9f9bb9}.user-dot{border-radius:50%;background:linear-gradient(135deg,#8276ee,#6255d4);box-shadow:0 5px 15px rgba(72,61,180,.3)}
.content{background:#f6f7fb}.topbar{height:78px;padding:0 32px;background:#fff;border-bottom:0;box-shadow:0 1px 0 #eceef4;position:sticky;top:0;z-index:20}.topbar h1{font-size:20px;font-weight:650;letter-spacing:-.35px;color:#303651}.top-subtitle{margin-top:4px;color:#9aa1b5;font-size:11px}.page-body{padding:28px 32px 40px;max-width:1700px;margin:0 auto;width:100%}
.card{border:0;border-radius:12px;background:#fff;box-shadow:0 5px 24px rgba(43,49,80,.055)}
.btn{min-height:36px;border-radius:7px;padding:8px 14px;font-weight:600;transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn.primary,.btn.received{background:linear-gradient(135deg,#7669e8,#6558d8);color:#fff;box-shadow:0 5px 14px rgba(101,88,216,.2)}.btn.dark{background:#34314f}.btn.light{background:#fff;border:1px solid #e3e5ed;color:#555d78}.btn.danger{background:#fff2f2;color:#d75555}.btn.paid{background:#2dbb8a}
input,select,textarea{border:1px solid #e1e4ec;border-radius:7px;background:#fff;color:#343a55;padding:10px 12px;box-shadow:none}input:focus,select:focus,textarea:focus{border-color:#8c81ec;box-shadow:0 0 0 3px rgba(111,99,233,.10)}label{color:#555d77;font-weight:600;font-size:12px}
.admin-stats{gap:18px;margin-bottom:22px}.stat{min-height:108px;padding:19px 20px;gap:16px}.stat strong{font-size:25px;font-weight:650;color:#343a55}.stat .muted{font-size:11px}.stat-icon{width:43px;height:43px;flex-basis:43px;border-radius:10px;background:#efedff;color:#6f63e9}.stat.amber .stat-icon{background:#fff5df;color:#e6a43a}.stat.green .stat-icon{background:#e8f9f3;color:#2dbb8a}.stat.red .stat-icon{background:#fff0f1;color:#e05d68}.stat.slate .stat-icon{background:#eff2f7;color:#707b94}
.dashboard-grid{gap:20px}.section-title{height:62px;padding:0 20px;border-bottom:1px solid #f0f1f5}.section-title h2,.panel h2,.invoice-create h2,.invoice-tracker h2,.invoice-edit-card h2{font-size:14px;font-weight:650;color:#363c57}
table{background:#fff}th,td{border-bottom:1px solid #f0f1f5;padding:13px 15px}th{background:#fafbfc;color:#8d94a9;font-size:9px;font-weight:700;letter-spacing:.55px}td{color:#596079;font-size:12px}.order-title{color:#6257cc}.order-title small,td>small{color:#9ba2b5}.table-card,.accounts-table,.invoice-tracker{border-radius:12px}
.badge,.pill{background:#f0effb;color:#655bc7;border-radius:20px;font-size:10px;font-weight:650}.badge.completed,.badge.approved{background:#e7f8f1;color:#249b73}.badge.rush,.badge.revision,.badge.partial{background:#fff4df;color:#c88725}
.activity-row{padding:14px 17px;border-bottom:1px solid #f0f1f5}.activity-avatar{background:#efedff;color:#6f63e9}.panel{padding:24px}.panel-head{border-bottom:1px solid #f0f1f5}.meta div{background:#fafafe;border:1px solid #f1f1f6}.message{background:#f7f7fb}.message.mine{background:#f0effd}
.accounts-toolbar{border-bottom:0;margin-bottom:18px}.list-heading b{font-size:15px;color:#343a55}.list-heading span{margin-top:2px}.account-tabs a.active,.invoice-tabs a.active{color:#6f63e9;border-color:#6f63e9}.invoice-summary{gap:18px}.invoice-stat{border-left:3px solid #7569e8}.invoice-stat strong{color:#343a55}.invoice-create>header,.invoice-tracker>header,.invoice-edit-card>header{border-bottom:1px solid #f0f1f5}.payment-summary{background:#f0f1f5}.payment-summary>div{background:#fafafe}.alert{border:1px solid #d9f2e9;background:#effaf6;color:#278568}.alert.error{border-color:#f6dddd;background:#fff4f4;color:#c54c4c}
.modal-backdrop{background:rgba(35,32,55,.55);backdrop-filter:blur(3px)}.account-modal{border-radius:13px;box-shadow:0 25px 70px rgba(33,29,63,.24)}
.login-body{background:linear-gradient(135deg,#312e4b 0 48%,#f6f7fb 48%)}.login-card{border-top:3px solid #7468e5}.role-tabs a.active{background:#efedff;border-color:#dcd8ff;color:#6257cc}
@media(max-width:1000px){.layout{grid-template-columns:215px minmax(0,1fr)}.page-body{padding:22px}.topbar{padding:0 22px}}
@media(max-width:700px){.layout{display:block}.sidebar{position:static;height:auto}.topbar{position:static}.page-body{padding:16px}.nav a.active:before{display:none}}

/* Separate portal login pages */
.login-body{background:#fff!important;min-height:100vh}
.login-card{border:1px solid #eceef4!important;border-top:3px solid #7468e5!important;box-shadow:0 12px 38px rgba(43,49,80,.08);padding:38px}
.login-card .brand{margin-bottom:30px}.login-card h1{font-size:22px;margin-bottom:8px}.login-card>.muted{margin-bottom:25px}
.portal-kicker{display:inline-flex;margin:0 0 10px;padding:5px 9px;border-radius:999px;background:#f0effd;color:#665bd0;font-size:10px;font-weight:750;letter-spacing:.65px;text-transform:uppercase}
.login-card .btn.primary{width:100%;min-height:42px;margin-top:2px}
@media(max-width:700px){.login-body{padding:18px}.login-card{padding:28px 22px}}

/* Customer portal */
.customer-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 28px;margin-bottom:20px}.customer-welcome h2{font-size:20px;margin:4px 0 6px}.customer-welcome p{margin:0;color:var(--muted);max-width:720px}.customer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.dashboard-customer-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.customer-stat{padding:20px 22px;display:grid;gap:6px}.customer-stat span{color:var(--muted);font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.35px}.customer-stat strong{font-size:24px;color:#343a55}.new-order-card,.account-page{max-width:980px;margin:0 auto;padding:0;overflow:hidden}.section-intro{padding:22px 25px;border-bottom:1px solid #f0f1f5}.section-intro h2{margin:0 0 5px;font-size:16px}.section-intro p{margin:0;color:var(--muted)}.new-order-card form,.account-page form{padding:25px}.upload-zone{padding:18px;border:1px dashed #c9c5ef;border-radius:10px;background:#faf9ff}.upload-zone input{background:#fff}.upload-zone span,.account-divider span{font-size:11px;color:var(--muted);font-weight:400}.account-divider{display:grid;gap:3px;margin-top:8px;padding-top:20px;border-top:1px solid #eff0f4}.account-actions{display:flex;justify-content:flex-end}.account-page .field-help{font-size:10px}.sidebar .nav a[href*="customer-invoices"],.sidebar .nav a[href*="account"]{margin-top:1px}@media(max-width:900px){.dashboard-customer-stats,.customer-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.customer-welcome{align-items:flex-start;flex-direction:column}.dashboard-customer-stats,.customer-summary{grid-template-columns:1fr}.new-order-card form,.account-page form{padding:18px}}

/* =========================================================
   Dynamic Digitizing — Professional Blue CRM Theme
   Approved visual direction: Theme 4 / Corporate Blue
   ========================================================= */
:root{--ink:#12233f;--muted:#7385a1;--line:#e4ebf4;--pale:#f5f8fc;--sidebar:#063a72;--accent:#1473d2;--accent2:#2494e8;--success:#20b486}
body{background:#f5f8fc;color:var(--ink)}
.layout{grid-template-columns:228px minmax(0,1fr)}
.sidebar{padding:0 12px 16px;background:linear-gradient(180deg,#073d76 0%,#064984 52%,#043565 100%);box-shadow:5px 0 20px rgba(13,54,97,.08)}
.side-brand{min-height:78px;margin:0 -12px 10px;padding:16px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(2,39,78,.24)}
.side-brand>b{display:grid!important;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#fff;color:#0a4d8d;font-size:15px;letter-spacing:1px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.sidebar .brand span{font-size:15px;font-weight:700;line-height:1.2}.sidebar .brand small{font-size:9px;color:#b8d4ee;letter-spacing:.45px;margin-top:2px}
.nav{gap:4px}.nav-label{display:none}.nav a{padding:10px 12px;color:#d8e8f7;border-radius:7px;font-weight:550}.nav a i{color:#b9d7f1}.nav a:hover{background:rgba(255,255,255,.09);transform:none}.nav a.active{background:linear-gradient(90deg,#1477d5,#258fe4);box-shadow:0 5px 14px rgba(0,31,75,.22)}.nav a.active:before{display:none}.nav a.active i{color:#fff}
.sidebar-foot{border-top:1px solid rgba(255,255,255,.13);padding:16px 8px 2px}.sidebar-foot small{color:#b8d4ee}.user-dot{background:#fff;color:#0b5ca8;box-shadow:none}
.content{background:#f5f8fc}.topbar{height:70px;padding:0 26px;background:#fff;border-bottom:1px solid #e7edf5;box-shadow:none}.topbar h1{font-size:18px;color:#132845}.top-subtitle{color:#8291a8}.page-body{padding:22px 26px 40px;max-width:1680px}
.card{border:1px solid #e5ecf4;border-radius:9px;box-shadow:0 3px 13px rgba(23,62,105,.045)}
.btn{border-radius:7px}.btn.primary,.btn.received{background:linear-gradient(135deg,#1474d2,#258fe4);box-shadow:0 4px 12px rgba(20,116,210,.18)}.btn.dark{background:#064984}.btn.light{border-color:#dbe5f0;color:#315475}.btn.paid{background:#20ad80}
input,select,textarea{border-color:#d8e3ef;border-radius:7px}input:focus,select:focus,textarea:focus{border-color:#3d92df;box-shadow:0 0 0 3px rgba(31,132,220,.1)}
.stat{min-height:94px;padding:16px 18px}.stat strong{font-size:23px;color:#12233f}.stat-icon{border-radius:8px;background:#e9f3ff;color:#1474d2}.stat.amber .stat-icon{background:#fff4df;color:#e99516}.stat.green .stat-icon{background:#e6f8f2;color:#19a879}.stat.red .stat-icon{background:#ffedf0;color:#e3455d}.stat.slate .stat-icon{background:#edf2f8;color:#57708c}
.section-title{height:54px;border-bottom-color:#e9eef5}.section-title h2,.panel h2,.invoice-create h2,.invoice-tracker h2,.invoice-edit-card h2{color:#183150}
th{background:#f8fafc;color:#72839a}td{color:#405773}.order-title{color:#0e68bd}.badge,.pill{background:#eaf3ff;color:#1769b1}.badge.completed,.badge.approved{background:#e1f7ef;color:#148a64}.badge.rush,.badge.revision,.badge.partial{background:#fff2df;color:#c47a0d}
.accounts-toolbar{margin-bottom:14px}.list-heading b{color:#183150}.account-tabs a.active,.invoice-tabs a.active{color:#1474d2;border-color:#1474d2}.invoice-stat{border-left-color:#1474d2}.activity-avatar{background:#e8f3ff;color:#1474d2}
/* customer dashboard hero */
.customer-welcome{position:relative;overflow:hidden;min-height:128px;padding:25px 30px;color:#fff;border:0;background:linear-gradient(105deg,#064986 0%,#1469b5 50%,#77a9d4 100%);box-shadow:0 7px 20px rgba(15,85,150,.13)}
.customer-welcome:after{content:"DD";position:absolute;right:125px;top:-43px;font-size:150px;font-weight:900;font-style:italic;letter-spacing:-18px;color:rgba(255,255,255,.09);transform:rotate(-8deg);pointer-events:none}
.customer-welcome .portal-kicker{display:none}.customer-welcome h2{position:relative;z-index:1;margin:0 0 5px;color:#fff;font-size:21px}.customer-welcome p{position:relative;z-index:1;color:#e5f2ff}.customer-welcome .btn{position:relative;z-index:1;background:#fff;color:#0e65b4;box-shadow:0 5px 16px rgba(0,40,80,.15)}
.customer-stat{padding:17px 19px}.customer-stat span{color:#7789a3}.customer-stat strong{color:#142944}.dashboard-customer-stats{gap:12px}.customer-summary{gap:12px}
.new-order-card,.account-page{max-width:1050px}.upload-zone{border-color:#a9cce9;background:#f5faff}.portal-kicker{background:#eaf4ff;color:#1167b6}
.impersonation-bar{border:1px solid #cfe3f6;background:#eef7ff;color:#24577f}
.login-card{border-top-color:#1474d2!important}.login-card .btn.primary{background:linear-gradient(135deg,#126cc4,#218ce1)}
@media(max-width:1000px){.layout{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:700px){.layout{display:block}.sidebar{padding-top:0}.side-brand{margin:0 -12px 10px}.customer-welcome:after{right:35px}.topbar{padding:12px 16px}}

/* Approved dark-navy grouped navigation + larger charcoal typography */
:root{--sidebar:#071d3d;--ink:#2f3948;--muted:#6f7b8e;--accent:#1479df}
body{color:#343d4b;font-size:15px}.layout{grid-template-columns:252px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#071b38 0%,#08274e 54%,#061a36 100%);padding:0 14px 18px}
.side-brand{min-height:86px;margin:0 -14px 12px;padding:17px 20px;background:transparent;border-bottom:1px solid rgba(255,255,255,.10)}
.side-brand>b.dd-mark{display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;padding:0;background:#fff;border-radius:9px;overflow:hidden;letter-spacing:-8px;box-shadow:none}
.dd-mark span{font-size:25px;font-weight:900;font-style:italic;line-height:1}.dd-mark span:first-child{color:#153f77}.dd-mark span:last-child{color:#16a0ed;transform:translateX(-5px)}
.sidebar .brand span{font-size:16px;font-weight:750;color:#fff}.sidebar .brand small{font-size:10px;color:#aebed3;letter-spacing:0;margin-top:3px}
.grouped-nav{display:block}.grouped-nav>.nav-main,.nav-parent{display:flex;align-items:center;gap:12px;min-height:43px;padding:10px 12px;border-radius:8px;color:#eef5ff;font-size:14px;font-weight:650;cursor:pointer}.grouped-nav>.nav-main i,.nav-parent i{width:19px;color:#b9d2ed;font-size:16px;font-style:normal;text-align:center}.nav-parent span{flex:1}.nav-parent em{font-style:normal;color:#91a9c3;font-size:13px}.nav-group{margin:3px 0}.nav-group:hover>.nav-parent,.nav-group.open>.nav-parent{background:rgba(255,255,255,.055)}
.grouped-nav>.nav-main.active{background:linear-gradient(90deg,#1375da,#1e8dec);box-shadow:0 5px 14px rgba(0,0,0,.18);color:#fff}.grouped-nav>.nav-main.active i{color:#fff}
.nav-sub{display:grid;gap:0;margin:1px 0 5px 42px;padding-left:10px;border-left:1px solid rgba(174,202,232,.18)}.nav-sub a{padding:5px 8px!important;min-height:0;border-radius:5px!important;background:transparent!important;color:#aebed2!important;font-size:12px!important;font-weight:500!important}.nav-sub a:hover,.nav-sub a.active-sub{color:#fff!important;background:rgba(255,255,255,.07)!important}.nav-sub a.active-sub{box-shadow:inset 2px 0 #2b98f0}
.sidebar-foot{font-size:13px}.sidebar-foot b{font-size:13px}.sidebar-foot small{font-size:11px}.user-dot{width:34px;height:34px;flex-basis:34px}
.topbar h1{font-size:21px;color:#2d3746;font-weight:750}.top-subtitle{font-size:12px;color:#758298}.page-body{padding:25px 28px 42px}.card{border-color:#e1e7ef}.section-title h2,.panel h2,.invoice-create h2,.invoice-tracker h2,.invoice-edit-card h2{font-size:16px;color:#343d4b}.stat strong{font-size:26px;color:#303a48}.stat{font-size:14px}.stat .muted{font-size:12px}th{font-size:11px;color:#667487}td{font-size:13px;color:#3f4a59}.order-title{font-size:13px}.btn{font-size:13px}.activity-row b{font-size:13px;color:#3a4452}.activity-row small{font-size:11px}.list-heading b{font-size:17px;color:#343d4b}label{color:#465160;font-size:13px}input,select,textarea{font-size:14px;color:#343d4b}
@media(max-width:1000px){.layout{grid-template-columns:225px minmax(0,1fr)}}
/* Order workflow: designer assignment + files/version timeline */
.order-topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 18px}.order-title-row{display:flex;align-items:center;gap:14px}.order-title-row h1{font-size:26px;color:#263246;margin:0 0 5px}.order-title-row p{margin:0;color:#66758c;font-size:14px}.order-square{width:52px;height:52px;border-radius:10px;background:#1677ff;color:#fff;display:grid;place-items:center;font-size:24px}.assign-designer{display:flex;align-items:flex-end;gap:9px}.assign-designer label{min-width:230px;font-size:12px;color:#5f6d82}.assign-designer select{margin-top:5px}.timeline-layout{grid-template-columns:minmax(0,1fr) 310px}.instruction-box{margin-top:18px;padding:16px 18px;border-radius:10px;background:#f7f9fc;border:1px solid #e7edf5}.instruction-box h3{margin:0 0 7px}.instruction-box p{margin:0;color:#34435a}.files-version-panel{overflow:hidden}.version-timeline{position:relative;margin:18px 0 4px;padding-left:26px}.version-timeline:before{content:"";position:absolute;left:7px;top:5px;bottom:5px;width:2px;background:#dce8f6}.version-event{position:relative;margin:0 0 16px}.timeline-dot{position:absolute;left:-26px;top:18px;width:16px;height:16px;border:4px solid #1677ff;background:#fff;border-radius:50%;z-index:2}.version-card{border:1px solid #e2e9f2;border-radius:11px;padding:14px 16px;background:#fff}.version-head{display:flex;align-items:center;gap:10px}.version-head>div:nth-child(2){flex:1}.version-head small{display:block;color:#75849a;margin-top:3px}.avatar-mini{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e5efff;color:#1267d8;font-weight:800}.timeline-file{margin-top:12px;background:#f8fafc;border:1px solid #edf1f6;border-radius:8px;padding:10px 12px}.timeline-file small{display:block;margin-top:2px}.timeline-upload{margin-top:18px;padding-top:18px;border-top:1px solid #e7edf5}.timeline-upload h3{margin:0 0 12px;color:#27344a}.info-list>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #edf1f6}.info-list>div:last-child{border-bottom:0}.info-list span{color:#708097}.info-list b{text-align:right;color:#2e3a4e}@media(max-width:900px){.order-topbar{align-items:stretch;flex-direction:column}.assign-designer{align-items:stretch}.assign-designer label{min-width:0;flex:1}.timeline-layout{grid-template-columns:1fr}}

/* Files & Versions v3: thumbnails, latest-first, customer left / team right */
.upload-limit-note{font-size:12px;color:#6f8099;white-space:nowrap}.split-version-timeline{position:relative;padding:18px 0 6px}.split-version-timeline:before{content:"";position:absolute;left:50%;top:8px;bottom:8px;width:2px;background:#d9e7f7;transform:translateX(-1px)}.split-event{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);align-items:start;margin-bottom:18px;min-height:130px}.split-card{border:1px solid #d9e5f3;border-radius:12px;padding:14px;background:#fff;box-shadow:0 2px 8px rgba(21,55,93,.04)}.split-event.customer-side .split-card{grid-column:1;background:#f8fbff;border-color:#cfe1f7}.split-event.team-side .split-card{grid-column:3;background:#f7fffb;border-color:#ccecdf}.center-stamp{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;text-align:center;color:#667995;font-size:10px;padding-top:15px;z-index:2}.center-stamp .timeline-dot{position:static;width:18px;height:18px;border:4px solid #1677ff;background:#fff;border-radius:50%;margin-bottom:6px}.team-side .center-stamp .timeline-dot{border-color:#19ae72}.file-preview-card{margin-top:12px;display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid #e6edf5;border-radius:9px;padding:9px}.thumb-link{display:block;width:112px;height:76px;border-radius:7px;overflow:hidden;background:#eef3f8;border:1px solid #e0e7f0}.thumb-link img{width:100%;height:100%;object-fit:contain;display:block}.generic-file-preview{width:112px;height:76px;border-radius:7px;background:#eef3f8;border:1px solid #e0e7f0;display:grid;place-items:center;color:#35547b;font-weight:800}.generic-file-preview small{font-size:10px;margin-top:-18px}.preview-meta{min-width:0}.preview-meta b,.preview-meta small{display:block}.preview-meta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#173052}.preview-meta small{color:#75849a;margin-top:4px}.customer-upload,.team-upload{border:1px dashed #9ec8f7;border-radius:12px;padding:18px;margin-top:18px}.team-upload{border-color:#8ddbbd;background:#fbfffd}.timeline-upload h3{margin-bottom:4px}.timeline-upload>p{margin-bottom:14px}@media(max-width:1000px){.split-version-timeline:before{left:14px}.split-event{display:block;padding-left:34px}.split-event .split-card{width:100%}.center-stamp{position:absolute;left:5px;top:0;padding:14px 0 0}.center-stamp small{display:none}.file-preview-card{grid-template-columns:92px minmax(0,1fr) auto}.thumb-link,.generic-file-preview{width:92px;height:66px}}@media(max-width:620px){.section-title{height:auto;min-height:63px;gap:8px;align-items:flex-start;padding-top:14px;padding-bottom:14px}.upload-limit-note{white-space:normal;text-align:right}.file-preview-card{grid-template-columns:1fr}.thumb-link,.generic-file-preview{width:100%;height:150px}.file-preview-card .btn{justify-self:start}}

/* Files, Versions & Chat — unified order correspondence timeline */
.combined-activity-timeline .chat-event{min-height:104px}.chat-card{padding:14px 16px}.chat-card .version-head{align-items:flex-start}.chat-label{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#e8f2ff;color:#1166cc;font-size:11px;font-weight:750}.team-side .chat-label{background:#dcf8eb;color:#087a55}.chat-text{margin-top:10px;padding:12px 14px;border-radius:9px;background:#edf5ff;color:#263b59;line-height:1.55;font-size:14px;border:1px solid #d9e9fb}.team-side .chat-text{background:#eafaf3;border-color:#d3f0e3}.center-stamp .chat-dot{display:grid;place-items:center;color:#fff;background:#1677ff;border:0;width:28px;height:28px;font-size:11px;letter-spacing:1px}.team-side .center-stamp .chat-dot{background:#19ae72}.inline-chat-composer{margin-top:20px;padding:16px 18px;border:1px solid #cfe1f7;border-radius:12px;background:#f8fbff}.inline-chat-composer.team-composer{border-color:#ccecdf;background:#f7fffb}.composer-title{display:flex;gap:11px;align-items:center;margin-bottom:12px}.composer-title h3{margin:0 0 2px;color:#173052}.composer-title p{margin:0}.chat-compose-form textarea{min-height:86px;resize:vertical;background:#fff}.chat-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.chat-compose-actions label{display:flex;align-items:center;gap:7px;color:#64758d;font-size:12px}.chat-compose-actions input[type=checkbox]{width:auto;margin:0}@media(max-width:620px){.chat-compose-actions{align-items:stretch;flex-direction:column}.chat-compose-actions .btn{width:100%}}

/* v5 order workflow: keep working controls at the top, history in the middle, specifications at the bottom */
.order-workspace-top{margin-bottom:18px}
.order-workspace-top .inline-chat-composer{margin-top:0}
.order-workspace-top .timeline-upload{margin-top:18px}
.files-version-panel{margin-bottom:18px}
.order-details-bottom{margin-top:0}
@media (max-width:900px){.order-workspace-top,.files-version-panel,.order-details-bottom{margin-left:0;margin-right:0}}

/* v6 compact two-column order workspace */
.order-workspace-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:stretch;padding:18px}
.order-workspace-top .inline-chat-composer,.order-workspace-top .timeline-upload{margin:0;height:100%;box-sizing:border-box}
.order-workspace-top .inline-chat-composer{padding:16px 18px;display:flex;flex-direction:column}
.order-workspace-top .chat-compose-form{display:flex;flex-direction:column;flex:1}
.order-workspace-top .chat-compose-form textarea{min-height:108px;height:108px}
.order-workspace-top .chat-compose-actions{margin-top:auto;padding-top:10px}
.order-workspace-top .timeline-upload{padding:16px 18px;border-top:0}
.order-workspace-top .timeline-upload>p{margin:2px 0 12px}
.order-workspace-top .timeline-upload .form-grid{grid-template-columns:1fr;gap:10px}
.order-workspace-top .timeline-upload .form-grid label{margin:0}
.order-workspace-top .timeline-upload .upload-zone{padding:13px 14px}
.order-workspace-top .timeline-upload .upload-zone input{margin-top:8px}
.order-workspace-top .timeline-upload .btn.wide{min-height:40px}
@media(max-width:980px){.order-workspace-top{grid-template-columns:1fr}.order-workspace-top .inline-chat-composer,.order-workspace-top .timeline-upload{height:auto}}

/* v7 approved order workspace mockup */
.order-topbar{align-items:center;background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:14px 16px;margin-bottom:16px;box-shadow:0 2px 8px rgba(18,49,83,.04)}
.order-header-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.order-header-controls form{display:flex;align-items:flex-end;gap:8px;margin:0}
.order-header-controls label{min-width:190px;font-size:12px}
.order-header-controls select{margin-top:5px;min-height:42px}
.order-header-controls .btn{min-height:42px;white-space:nowrap}
.order-workspace-top.card.panel{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;gap:16px !important;padding:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important}
.order-workspace-top .inline-chat-composer,.order-workspace-top .timeline-upload{min-width:0;margin:0 !important;border-radius:12px;padding:18px !important;background:#fff;box-shadow:0 2px 8px rgba(18,49,83,.04)}
.order-workspace-top .inline-chat-composer{border:1px solid #dce7f4}
.order-workspace-top .timeline-upload{border:1px solid #dce7f4 !important}
.order-workspace-top .chat-compose-form textarea{height:92px;min-height:92px}
.order-workspace-top .timeline-upload .upload-zone{background:#f8fbff;border:1px dashed #9fc9f7;border-radius:10px}
.order-workspace-top .timeline-upload .btn.wide{margin-top:0}
@media(max-width:1100px){.order-topbar{align-items:flex-start;flex-direction:column}.order-header-controls{width:100%;justify-content:flex-start}.order-header-controls form{flex:1}.order-header-controls label{flex:1;min-width:150px}}
@media(max-width:900px){.order-workspace-top.card.panel{grid-template-columns:1fr !important}.order-header-controls{display:grid;grid-template-columns:1fr}.order-header-controls form{width:100%}.order-header-controls label{flex:1}.order-header-controls .btn{align-self:flex-end}}

/* v9: Sidebar accordion - all groups start collapsed */
.nav-group>.nav-sub{display:none}
.nav-group.open>.nav-sub{display:grid}
.nav-parent em{transition:transform .18s ease}
.nav-group.open>.nav-parent em{transform:rotate(180deg)}
.nav-parent{user-select:none}

/* v12 dashboard order controls */
.orders-live-table .rush-order-row > td { background:#fff8d9 !important; }
.orders-live-table .rush-order-row:hover > td { background:#fff4c2 !important; }
.inline-live-form { margin:0; min-width:150px; }
.inline-live-form select { width:100%; min-width:145px; height:38px; padding:7px 34px 7px 11px; border:1px solid #d4deec; border-radius:8px; background:#fff; color:#26384d; font:inherit; font-weight:600; }
.orders-live-table td { vertical-align:middle; }
/* v13 live design/priority controls */
.design-name-live input{width:100%;min-width:170px;height:38px;padding:7px 11px;border:1px solid #d4deec;border-radius:8px;background:#fff;color:#26384d;font:inherit;font-weight:600}
.inline-priority-form{margin:0}.priority-toggle{min-width:76px;height:36px;border-radius:18px;border:1px solid #d4deec;padding:0 16px;font-weight:700;cursor:pointer}.priority-toggle.rush-action{background:#ffb514;border-color:#ffb514;color:#3f3100}.priority-toggle.normal-action{background:#fff;border-color:#d4deec;color:#26384d}
.order-header-controls{flex-wrap:wrap}.header-design-form,.header-priority-form{display:flex;align-items:flex-end;gap:8px}.header-design-form label,.header-priority-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#52657c}.header-design-form input{height:42px;min-width:180px;padding:8px 11px;border:1px solid #d4deec;border-radius:8px;font:inherit}.priority-state{display:flex;align-items:center;justify-content:center;height:42px;min-width:74px;padding:0 14px;border-radius:21px;background:#eef3f8;color:#31445b;font-weight:700}.priority-state.rush{background:#fff0b8;color:#7a5700}
/* v13 editable design name and rush controls */
.design-name-live input{width:100%;min-width:170px;height:38px;padding:7px 11px;border:1px solid #d4deec;border-radius:8px;background:#fff;color:#26384d;font:inherit;font-weight:600}.inline-priority-form{margin:0}.priority-toggle{min-width:76px;height:36px;border-radius:18px;border:1px solid #d4deec;padding:0 16px;font-weight:700;cursor:pointer}.priority-toggle.rush-action{background:#ffb514;border-color:#ffb514;color:#3f3100}.priority-toggle.normal-action{background:#fff;border-color:#d4deec;color:#26384d}.order-header-controls{flex-wrap:wrap}.header-design-form,.header-priority-form{display:flex;align-items:flex-end;gap:8px}.header-design-form label,.header-priority-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#52657c}.header-design-form input{height:42px;min-width:175px;padding:8px 11px;border:1px solid #d4deec;border-radius:8px;font:inherit}.priority-state{display:flex;align-items:center;justify-content:center;height:42px;min-width:74px;padding:0 14px;border-radius:21px;background:#eef3f8;color:#31445b;font-weight:700}.priority-state.rush{background:#fff0b8;color:#7a5700}
/* v14 dashboard direct controls */
.inline-design-form{display:flex;align-items:center;gap:6px;min-width:220px}.inline-design-form input{width:100%;min-width:150px;height:42px;padding:0 11px;border:1px solid #d6e0ec;border-radius:8px;background:#fff;color:#1f2937;font:inherit;font-weight:600}.inline-save{height:36px;padding:0 10px;border:1px solid #cbd9e8;border-radius:7px;background:#fff;color:#0b4b83;cursor:pointer;font-weight:700}.priority-toggle{min-width:76px;height:38px;padding:0 15px;border-radius:20px;border:1px solid #d5dfeb;font-weight:700;cursor:pointer}.rush-toggle{background:#fff2c7;color:#9a5a00;border-color:#ffd56a}.normal-toggle{background:#fff;color:#344054}.rush-order-row>td{background:#fff8d9!important}.header-design-form,.header-priority-form{display:flex;align-items:flex-end;gap:8px}.header-design-form label,.header-priority-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}.header-design-form input{height:43px;min-width:190px;padding:0 12px;border:1px solid #d6e0ec;border-radius:8px}.priority-state{display:flex;align-items:center;height:43px;padding:0 15px;border-radius:8px;background:#f5f7fa;border:1px solid #d6e0ec;font-weight:700}.priority-state.is-rush{background:#fff4c9;color:#8a5600}.rush-btn{background:#ffb800!important;color:#332000!important;border-color:#ffb800!important}.order-header-controls{flex-wrap:wrap}
/* v15 dashboard due date + attachment controls */
.inline-due-form input[type="date"]{width:155px;min-height:40px;border:1px solid #d7e1ee;border-radius:8px;background:#fff;padding:7px 10px;color:#26384f;font:inherit}.row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.orders-live-table th:nth-last-child(2),.orders-live-table td:nth-last-child(2){white-space:nowrap}

/* v16 Option 1 - Clean & Modern dashboard */
body{background:#f4f8fd}.content{background:linear-gradient(180deg,#f8fbff 0,#f3f7fc 210px,#f4f8fd 100%)}
.topbar{border-bottom:1px solid #e7edf5;box-shadow:0 1px 0 #fff}.topbar h1{font-size:21px;color:#152846;font-weight:800;letter-spacing:-.35px}
.page-body{padding:22px 26px}.admin-stats{gap:12px;margin-bottom:18px}.admin-stats .stat{min-height:94px;border-color:#e3eaf3;box-shadow:0 5px 18px #23466f0b}.admin-stats .stat-icon{width:44px;height:44px;flex-basis:44px;border-radius:10px}.admin-stats .stat strong{font-size:25px}.admin-stats .muted{font-size:12px}
.modern-priority-card{border-color:#e1e9f3;box-shadow:0 7px 22px #23466f0c;overflow:hidden}.priority-title{height:auto;min-height:68px;padding:12px 16px}.priority-title>div{display:grid;gap:1px}.priority-title h2{font-size:16px;font-weight:800;color:#172943}.priority-title p{margin:0;color:#7587a3;font-size:11px}.priority-star{color:#ff365d;margin-right:7px}.view-orders-btn{border-radius:8px;font-weight:700}
.orders-live-table th{padding:10px 13px;background:#f9fbfe;color:#526681;font-size:10px;letter-spacing:.25px}.orders-live-table td{padding:9px 13px;height:58px}.orders-live-table .order-title{font-size:13px;color:#0861b9}.orders-live-table .order-title small{margin-top:1px}.orders-live-table td>small{font-size:10px}
.inline-live-form select{height:38px;border-color:#d9e4f0;border-radius:7px;font-weight:500;box-shadow:0 1px 2px #173b6710}.inline-design-form{min-width:190px}.inline-design-form input{height:38px;min-width:135px;border-color:#d9e4f0;border-radius:7px;font-weight:500;box-shadow:0 1px 2px #173b6710}.inline-save.pencil-save{width:32px;height:32px;padding:0;border:0;background:transparent;color:#0d67bd;font-size:16px;margin-left:-40px;z-index:1}.inline-design-form input{padding-right:38px}
.inline-due-form input[type="date"]{height:38px;min-height:38px;width:154px;border-color:#d9e4f0;border-radius:7px;box-shadow:0 1px 2px #173b6710}.priority-toggle{height:34px;min-width:74px;border-radius:18px}.rush-toggle{background:#fff0cd;color:#ef6b00;border-color:#ffe0a0}.normal-toggle{background:#edf2f7;color:#26384f;border-color:#e0e7ef}.rush-order-row>td{background:#fff7cf!important}.rush-order-row:hover>td{background:#fff2bd!important}
.row-actions{gap:7px;flex-wrap:nowrap}.row-actions .btn{height:34px;padding:6px 12px;border-radius:7px}.row-actions .btn:first-child{background:#08a967;border-color:#08a967;color:#fff}.row-actions .btn:first-child:before{content:'◉';font-size:9px}.row-actions .btn:last-child:before{content:'↓';font-weight:800}.orders-live-table td:last-child{min-width:155px}
@media(max-width:1250px){.orders-live-table{min-width:1180px}}
.revision-source-picker{display:grid;gap:7px;max-width:760px;margin:18px 0 20px;font-weight:700}.revision-source-picker select{min-height:46px}.revision-source-summary{display:flex;flex-direction:column;gap:4px;padding:14px 16px;margin:0 0 18px;border:1px solid #dbe7f5;border-radius:10px;background:#f7fbff}.revision-source-summary span{color:#64748b;font-size:13px}.revision-btn{border-color:#c7d9ef!important;background:#f4f8ff!important;color:#0b5cab!important}

/* v19 revision workspace */
.revision-workspace{display:grid;gap:18px;max-width:1320px;margin:0 auto}.revision-step{padding:0;overflow:hidden;border-color:#e0e9f4;box-shadow:0 7px 24px rgba(23,59,103,.06)}.revision-step-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;border-bottom:1px solid #e8eef6}.step-title{display:flex;align-items:center;gap:13px}.step-number{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#1487ed;color:#fff;font-size:18px;font-weight:800;box-shadow:0 5px 12px #1687ed35}.step-title h2{margin:0 0 3px;font-size:18px;color:#172943}.step-title p{margin:0;color:#73839b;font-size:13px}.revision-info-note{max-width:390px;padding:10px 13px;border:1px solid #cce2fa;border-radius:8px;background:#edf7ff;color:#315c87;font-size:11px;line-height:1.45}.revision-filters{display:grid;grid-template-columns:minmax(300px,1.6fr) minmax(180px,.7fr) minmax(190px,.7fr);gap:12px;padding:16px 20px}.revision-filters label{display:flex;flex-direction:column;font-size:11px;color:#536985;font-weight:700}.revision-filter-label{display:block;height:16px;line-height:16px;margin-bottom:5px}.revision-filters input,.revision-filters select{box-sizing:border-box;width:100%;height:42px;margin:0;border:1px solid #d6e3f0;border-radius:8px;background:#fff;color:#253a55}.revision-search-field{position:relative}.revision-search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#7188a4;font-size:18px;line-height:1;pointer-events:none}.revision-search input{padding-left:38px}.revision-results{padding:0 20px 10px;display:grid;gap:9px}.revision-result{display:grid;grid-template-columns:92px minmax(210px,1.35fr) minmax(180px,1fr) minmax(160px,.9fr) 150px;gap:16px;align-items:center;padding:10px;border:1px solid #dfe9f4;border-radius:10px;background:#fff;transition:.15s}.revision-result:hover,.revision-result.selected{border-color:#a9d1fb;background:#f5faff;box-shadow:0 3px 12px #176fbe12}.revision-thumb{width:86px;height:72px;border-radius:8px;overflow:hidden;background:#0f2744;display:grid;place-items:center;color:#fff;font-weight:800}.revision-thumb img{width:100%;height:100%;object-fit:cover}.revision-design,.revision-meta{display:grid;gap:3px;min-width:0}.revision-design .result-top{display:flex;align-items:center;gap:8px}.revision-design a{font-weight:800;color:#0a63b7}.revision-design strong{font-size:15px;color:#172943}.revision-design small,.revision-meta small,.revision-meta span{color:#74869e;font-size:11px}.revision-meta b{font-size:13px;color:#263b56}.completed-chip{padding:3px 8px;border-radius:999px;background:#ddf8e9;color:#0a8c58;font-size:10px;font-weight:800}.revision-result-actions{display:grid;gap:7px}.revision-result-actions .btn{text-align:center;justify-content:center}.revision-no-results{margin:0 20px 18px;padding:28px;text-align:center;color:#6c7f98;background:#f8fbff;border:1px dashed #cdddec;border-radius:10px}.revision-source-grid{display:grid;grid-template-columns:1.55fr .9fr;gap:14px;padding:16px 20px 6px}.original-design-card,.revision-guidance{border:1px solid #dbe7f3;border-radius:10px;background:#f8fbff;padding:14px}.source-card-title{font-weight:800;color:#1c3350;margin-bottom:11px}.source-card-body{display:grid;grid-template-columns:100px 1fr auto;gap:14px;align-items:center}.source-card-body img,.source-placeholder{width:100px;height:88px;object-fit:cover;border-radius:8px;background:#102b4a;color:#fff;display:grid;place-items:center;font-weight:800}.source-card-body>div:not(.source-links){display:grid;gap:4px}.source-card-body strong{font-size:15px;color:#172943}.source-card-body span,.source-card-body small{font-size:11px;color:#667b95}.source-links{display:grid;gap:8px;text-align:right}.source-links a:not(.btn){font-size:11px;font-weight:700;color:#0b6bc5}.revision-guidance{background:#effbf6;border-color:#c9eedc;display:grid;gap:7px;color:#247251;font-size:11px}.revision-guidance b{font-size:13px;color:#166744;margin-bottom:2px}.revision-form{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:14px 20px 20px}.revision-form label{font-size:11px;font-weight:700;color:#526881}.revision-form input,.revision-form select,.revision-form textarea{margin-top:6px}.revision-form textarea{min-height:88px}.revision-form .wide{grid-column:1/-1}.revision-upload{padding:12px 14px;border:1px dashed #b8d5ef;border-radius:9px;background:#f8fbff}.revision-upload span{display:block;margin-top:7px;font-weight:400;color:#73859d}.revision-form-actions{display:flex;justify-content:flex-end;gap:9px}.revision-form-actions .btn{min-width:120px;justify-content:center}.revision-details-card{scroll-margin-top:16px}
@media(max-width:1050px){.revision-result{grid-template-columns:78px 1.3fr 1fr 140px}.revision-result .revision-meta:nth-of-type(4){display:none}.revision-source-grid{grid-template-columns:1fr}.revision-form{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.revision-step-head{align-items:flex-start;flex-direction:column}.revision-info-note{max-width:none}.revision-filters{grid-template-columns:1fr}.revision-result{grid-template-columns:72px 1fr}.revision-result .revision-meta{display:none}.revision-result-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.revision-form{grid-template-columns:1fr}.revision-form .wide{grid-column:auto}.source-card-body{grid-template-columns:80px 1fr}.source-card-body img,.source-placeholder{width:80px;height:72px}.source-links{grid-column:1/-1;grid-template-columns:1fr 1fr;text-align:left}}

/* v24 order delete controls */
.orders-live-table .order-select-col{width:42px;text-align:center;padding-left:14px;padding-right:8px}
.orders-live-table .order-select{width:16px;height:16px;cursor:pointer;accent-color:#167ee6}
.bulk-order-delete-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid #e7edf5;background:#fbfdff}
.bulk-order-delete-bar[hidden]{display:none!important}
.bulk-order-delete-bar .selected-count{font-size:12px;color:#667b95;font-weight:700}
.order-delete-x{width:34px!important;min-width:34px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;font-size:20px!important;line-height:1!important;color:#c53030!important;border-color:#f0c9c9!important;background:#fff!important;font-weight:500!important}
.order-delete-x:hover{background:#fff1f1!important;border-color:#e9a9a9!important;color:#a61b1b!important}
/* Dimensions + Unit compact pair */
.dimension-unit-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end;width:100%}
.dimension-unit-field label{min-width:0}
@media(max-width:700px){.dimension-unit-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}}
.customer-welcome-actions{position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.customer-welcome-actions .btn{white-space:nowrap}
@media(max-width:700px){.customer-welcome-actions{width:100%;justify-content:flex-start}}

/* Dashboard order action refinements */
.order-date{display:flex;flex-direction:column;gap:2px;white-space:nowrap;line-height:1.2}.order-date>span{font-weight:500}.order-date>small{display:block;color:#7b8ca5;font-size:11px;font-weight:500}.row-actions .action-icon-btn{width:34px;min-width:34px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:800}.row-actions .download-icon-btn:before,.row-actions .order-delete-x:before{content:none!important}.row-actions .download-icon-btn{color:#0b4b83;background:#fff;border-color:#cfdaea}.row-actions .download-icon-btn:hover{background:#eef6ff;border-color:#aac8ed}.row-actions .order-delete-x{font-size:20px!important}

/* Order creation / revision modal workspace */
.order-workflow-modal[hidden]{display:none!important}.order-workflow-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(8,27,56,.58);backdrop-filter:blur(2px)}.order-workflow-dialog{width:min(1180px,96vw);height:min(880px,92vh);background:#f5f8fc;border-radius:14px;box-shadow:0 24px 70px rgba(5,24,49,.32);overflow:hidden;display:flex;flex-direction:column}.order-workflow-head{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 22px;background:#fff;border-bottom:1px solid #dfe7f1}.order-workflow-head strong{font-size:16px;color:#142945}.order-workflow-close{width:36px;height:36px;border:1px solid #d8e2ee;border-radius:8px;background:#fff;color:#52657e;font-size:23px;line-height:1;cursor:pointer}.order-workflow-close:hover{background:#f3f7fb;color:#152846}.order-workflow-frame{width:100%;height:100%;border:0;background:#f5f8fc}.modal-open{overflow:hidden}
body.embedded-order-workflow{background:#f5f8fc}body.embedded-order-workflow .layout{display:block;min-height:0}body.embedded-order-workflow .sidebar,body.embedded-order-workflow .topbar{display:none!important}body.embedded-order-workflow .content{min-height:100vh;background:#f5f8fc}body.embedded-order-workflow .page-body{max-width:none;padding:20px 24px 32px}body.embedded-order-workflow .new-order-card,body.embedded-order-workflow .revision-workspace{max-width:1100px}body.embedded-order-workflow .impersonation-bar{display:none}
@media(max-width:700px){.order-workflow-modal{padding:8px}.order-workflow-dialog{width:100%;height:96vh;border-radius:10px}.order-workflow-head{height:52px;flex-basis:52px;padding:0 12px 0 15px}body.embedded-order-workflow .page-body{padding:12px}}
\n\n/* ===== Dynamic Digitizing responsive CRM / mobile shell ===== */
.mobile-menu-toggle,.mobile-sidebar-overlay{display:none}
@media (max-width: 820px){
  html,body{max-width:100%;overflow-x:hidden}
  body.mobile-nav-open{overflow:hidden}
  .layout{display:block!important;min-height:100vh}
  .content{width:100%;min-width:0;margin:0!important}
  .sidebar{position:fixed!important;z-index:1200;left:0;top:0;bottom:0;width:min(84vw,300px)!important;height:100dvh!important;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto;padding:0 12px 18px!important;box-shadow:14px 0 35px rgba(4,25,54,.24)}
  body.mobile-nav-open .sidebar{transform:translateX(0)}
  .mobile-sidebar-overlay{display:block;position:fixed;z-index:1190;inset:0;background:rgba(7,29,61,.42);opacity:0;visibility:hidden;transition:.2s}
  body.mobile-nav-open .mobile-sidebar-overlay{opacity:1;visibility:visible}
  .sidebar-foot{display:flex!important;margin-top:24px}
  .grouped-nav{display:grid!important;grid-template-columns:1fr!important}
  .nav-label{grid-column:auto!important}
  .topbar{position:sticky!important;z-index:900;top:0;min-height:64px!important;height:auto!important;padding:10px 12px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;align-items:center!important;gap:8px;border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(20,45,80,.05)}
  .mobile-menu-toggle{display:grid;width:38px;height:38px;place-items:center;border:1px solid #dce5f0;border-radius:9px;background:#fff;color:#173b68;font-size:21px;line-height:1;cursor:pointer}
  .topbar-title{min-width:0}
  .topbar h1{font-size:17px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-subtitle{display:none!important}
  .top-actions{gap:6px!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
  .top-actions .btn{padding:8px 10px!important;font-size:11px;white-space:nowrap}
  .page-body{padding:12px!important}
  .stats,.admin-stats,.dashboard-customer-stats,.customer-summary{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .stat{min-height:82px!important;padding:12px!important}.stat strong{font-size:20px!important}
  .dashboard-grid,.detail-grid{grid-template-columns:1fr!important;gap:12px!important}
  .card,.panel{border-radius:10px}
  .panel{padding:15px!important;margin-bottom:12px!important}
  .section-title{height:auto!important;min-height:52px;padding:10px 12px!important;gap:8px}
  .section-title h2{font-size:15px}
  .form-grid{grid-template-columns:1fr!important;gap:12px!important}.form-grid .wide{grid-column:auto!important}
  .new-order-card,.account-page{max-width:100%!important}.new-order-card form,.account-page form{padding:15px!important}.section-intro{padding:16px!important}
  .meta{grid-template-columns:1fr!important;gap:8px!important}
  .toolbar{flex-direction:column!important;align-items:stretch!important}.toolbar>*{width:100%}
  .table-wrap{width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;border-radius:0 0 10px 10px}
  .table-wrap table,.dashboard-card table{min-width:900px}
  th,td{padding:10px 9px!important}
  .actions{gap:5px}.actions .btn{padding:7px 9px}
  .customer-welcome{padding:18px!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important}
  .customer-welcome .actions,.customer-welcome .customer-order-actions{width:100%;display:flex;gap:8px;flex-wrap:wrap}
  .impersonation-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .order-workflow-dialog{width:calc(100% - 16px)!important;height:calc(100dvh - 16px)!important;max-width:none!important;max-height:none!important;margin:8px!important;border-radius:12px!important}
  .order-workflow-head{padding:10px 12px!important}.order-workflow-frame{height:calc(100dvh - 64px)!important}
  body.embedded-order-workflow .sidebar,body.embedded-order-workflow .topbar{display:none!important}
  body.embedded-order-workflow .page-body{padding:10px!important}
  body.embedded-order-workflow .layout{display:block!important}
  body.embedded-order-workflow .content{width:100%!important}
  input,select,textarea{font-size:16px} /* prevents iOS form zoom */
}
@media (max-width: 520px){
  .stats,.admin-stats,.dashboard-customer-stats,.customer-summary{grid-template-columns:1fr!important}
  .topbar{grid-template-columns:40px minmax(0,1fr)!important}
  .top-actions{grid-column:1/-1;width:100%;justify-content:flex-end!important;border-top:1px solid #edf1f6;padding-top:8px}
  .top-actions .btn{flex:1;max-width:160px}
  .page-body{padding:10px!important}
  .panel-head{flex-direction:column!important}
  .file{align-items:flex-start;flex-direction:column}
}
