/* ServiceGate customer workspace: locations, machines and people. */
#dashboard.customer-workspace{background:#f4f6fa;min-height:100vh;color:#15243b;font-family:Inter,"Segoe UI",sans-serif}
.customer-workspace .primary-button{width:auto;display:inline-flex;align-items:center;justify-content:center;min-width:0}
.customer-workspace .machine-heading>div{flex:1;min-width:0}
.customer-workspace .app-header{background:#fff;border-bottom:1px solid #e3e8f0;max-width:none;padding:20px 38px;position:relative}
.customer-workspace .app-header .brand img{width:170px;height:auto}
.customer-workspace .app-content{max-width:1560px;margin:0 auto;padding:34px 32px 70px;display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px 30px;align-items:start}
.customer-workspace .app-content>*{grid-column:2;min-width:0;margin-top:0}
.customer-workspace .workspace-nav{grid-column:1;grid-row:1 / span 6;position:sticky;top:24px;display:flex;flex-direction:column;gap:8px;padding:8px 0;margin:0}
.customer-workspace .workspace-nav button{text-align:left;border:0;background:transparent;padding:15px 16px;color:#637089;border-radius:10px;line-height:1.5;font-size:13px;font-weight:600}
.customer-workspace .workspace-nav button[aria-pressed=true]{background:#e6edff;color:#204ce5;box-shadow:inset 3px 0 #2454ed}
.customer-workspace .workspace-heading{margin:0;align-items:center;padding:4px 0 2px}
.customer-workspace .workspace-heading h1{font-size:34px;font-weight:700;letter-spacing:-1.1px;margin:10px 0}
.customer-workspace .workspace-heading .eyebrow{font-size:10px;letter-spacing:1.8px;color:#6a7d9b}
.customer-workspace .workspace-heading .intro{font-size:14px;color:#6b7890;max-width:670px;line-height:1.7}
.customer-workspace .stats{gap:18px;margin-bottom:0;display:flex;flex-wrap:wrap}
.customer-workspace .stat{flex:1;min-width:170px;background:#fff;border:1px solid #e2e8f1;border-radius:14px;box-shadow:none;padding:22px 24px}
.customer-workspace .stat strong{font-size:30px;letter-spacing:-1px;color:#1a365a;margin:6px 0}
.customer-workspace .stat small{font-size:11px;color:#8b96a7}
.customer-workspace .panel{border:1px solid #e0e6ef;border-radius:16px;background:#fff;box-shadow:0 3px 12px #16345b04;padding:24px}
.customer-workspace .management-grid{grid-template-columns:255px minmax(0,1fr);gap:20px;align-items:start}
.customer-workspace .router-panel{padding:20px 16px}
.customer-workspace .router-panel .panel-heading h2{font-size:17px}
.customer-workspace .router-panel .panel-heading>.small{display:none}
.customer-workspace .device-card{border:1px solid transparent;background:#f8f9fc;border-radius:12px;padding:16px 13px;box-shadow:none;margin-bottom:9px}
.customer-workspace .device-card.selected{background:#eef3ff;border-color:#bdd0ff;box-shadow:none}
.customer-workspace .device-card-top{flex-direction:column;align-items:flex-start;gap:9px}
.customer-workspace .device-card-top strong{font-size:14px;line-height:1.5}
.customer-workspace .status-pill{font-size:10px;padding:5px 9px;border-radius:20px}
.customer-workspace .device-card-serial{font-size:11px;color:#7d8b9f;margin-top:11px}
.customer-workspace .device-card-seen{font-size:10px;line-height:1.5}
.customer-workspace .editor-panel{padding:26px;min-height:520px}
.customer-workspace #device-title{font-size:25px;letter-spacing:-.6px}
.customer-workspace #device-platform{font-size:10px;color:#7b8ba4;letter-spacing:1.3px}
.customer-workspace .router-tabs{gap:3px;margin:18px 0 26px}
.customer-workspace .router-tabs button{font-size:12px;padding:13px 10px}
.customer-workspace .pc-connection-status{font-size:11px;margin-bottom:10px;padding:10px 12px;border-radius:9px}
.machine-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:6px 0 22px}
.machine-heading h3{font-size:22px;letter-spacing:-.4px;margin:8px 0 9px}.machine-heading .eyebrow{font-size:9px;color:#7889a2;letter-spacing:1px}.machine-heading p{font-size:12px;line-height:1.7;margin:0;max-width:420px}
.machine-heading>button{white-space:nowrap;padding:12px 15px;font-size:11px;flex-shrink:0}
.machine-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.machine-card{border:1px solid #dee6f0;border-radius:14px;padding:20px;background:linear-gradient(150deg,#fff 70%,#f8faff);overflow:hidden}
.machine-card-heading{display:flex;align-items:center;gap:13px}.machine-symbol{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:25px;background:#edf2ff;color:#2d56df;flex-shrink:0}.machine-kicker{display:block;font-size:9px;letter-spacing:1.3px;font-weight:700;color:#8493a9;margin-bottom:6px}.machine-card h4{font-size:17px;margin:0;letter-spacing:-.25px;overflow-wrap:anywhere}
.machine-card>.small{font-size:11px;margin:17px 0;color:#7a8aa1}.machine-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:19px}.machine-actions button{font-size:10px;padding:10px 12px}.machine-actions .text-button{padding:8px 0;margin-left:2px}
.component-row{padding:13px 0;border-top:1px solid #edf0f5;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.component-row>div{flex:1;min-width:100px}.component-row strong{font-size:12px;font-weight:600}.component-row .machine-kicker{font-size:8px;margin-bottom:5px}.component-row .text-button{font-size:10px;padding:3px 0}.component-edit{color:#7c8aa1!important}
.machine-connection-details{font-size:10px;border-top:1px solid #edf0f5;margin-top:18px;padding-top:14px}.machine-connection-details summary{color:#8694a8;cursor:pointer}.machine-connection-details p{white-space:pre-line;font-family:Consolas,monospace;line-height:1.7}
.machine-empty{padding:38px 24px;background:#f7f9fd;border:1px dashed #cad6e6;border-radius:14px;text-align:center;margin:10px 0 25px}.machine-empty strong{font-size:16px;color:#284463}.machine-empty p{font-size:12px;line-height:1.8;color:#8491a4;max-width:370px;margin:12px auto 0}
.customer-workspace #vpn-session-panel{margin-top:26px;background:#f5f8fe;border:1px solid #dfe8f7;border-radius:13px;padding:19px}.customer-workspace #vpn-session-panel h3{font-size:16px}.customer-workspace #vpn-session-panel button{font-size:11px}.location-name-details{border-top:1px solid #e8edf4;margin-top:26px;padding-top:20px}.customer-workspace details>summary{font-size:12px;font-weight:600;color:#5c7190;cursor:pointer;padding:8px 0}.customer-workspace #panel-access>details{border-top:1px solid #e8edf4;margin-top:25px;padding-top:16px}.customer-workspace #invitation-details{margin-top:22px}.customer-workspace .access-form{padding:20px;border-color:#e1e7f0;background:#fff}.customer-workspace .access-form h4{font-size:16px}.customer-workspace #technical-user-rules{font-weight:400}.customer-workspace #technical-user-rules label{margin-top:14px}.customer-workspace #technical-user-rules small{font-size:10px;font-weight:400;line-height:1.7;display:block;margin-top:8px}.customer-workspace #technical-user-rules textarea{font-size:11px}
.rights-row{display:grid;grid-template-columns:minmax(100px,1fr) 65px 65px;align-items:center;gap:6px;padding:11px 4px;border-bottom:1px solid #edf0f5;font-size:12px}.rights-row>label{text-align:center;display:block;margin:0}.rights-row input[type=checkbox]{width:17px;height:17px;accent-color:#2454ed;cursor:pointer}.rights-head{font-size:9px;letter-spacing:.5px;color:#8391a6;font-weight:600}.rights-head>span:not(:first-child){text-align:center}.rights-component>span{padding-left:14px;color:#7a899f;font-size:11px}
.customer-workspace-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin:24px 0}.customer-card{border:1px solid #e0e7f0;border-radius:14px;padding:24px;background:#fcfdff}.customer-card h3{font-size:21px;letter-spacing:-.4px;margin:11px 0}.customer-card p{font-size:12px;line-height:1.7}.customer-card select{width:100%;padding:11px;border:1px solid #dce5f1;border-radius:8px;background:white;font:12px inherit;color:#3d516d;margin:12px 0}.customer-card>button{width:100%;font-size:11px;padding:12px}.customer-card .small{font-size:10px}.customer-view-banner{background:#fff0ce;border-bottom:1px solid #efd7a5;padding:13px 32px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#6f4d13}.customer-view-banner[hidden]{display:none}.customer-view-banner button{background:white;border-color:#e4cb98;font-size:11px;white-space:nowrap}.workspace-dialog{max-width:490px}.workspace-dialog label{display:grid;gap:7px;font-size:12px;font-weight:600}.workspace-dialog p{font-size:12px;line-height:1.8;color:#74849b}.workspace-dialog input,.workspace-dialog select,.workspace-dialog textarea{width:100%;border:1px solid #dce4ef;border-radius:8px;padding:12px;font:13px inherit;background:white;color:#1c3457}.workspace-dialog .error{color:#bd3445}.customer-workspace button:disabled{opacity:.48;cursor:not-allowed}.customer-workspace #customer-admin>h2{font-size:23px}.customer-workspace #users-admin>h2{font-size:23px}
@media(min-width:1450px){.customer-workspace .management-grid{grid-template-columns:265px minmax(0,1fr)}}
@media(max-width:1150px){.customer-workspace .app-content{grid-template-columns:160px minmax(0,1fr);gap:20px;padding:25px 20px}.customer-workspace .management-grid{grid-template-columns:220px minmax(0,1fr);gap:16px}.customer-workspace .editor-panel{padding:20px}.machine-heading{flex-wrap:wrap}.customer-workspace .router-tabs button{padding:12px 7px;font-size:10px}.customer-workspace .workspace-nav button{padding:14px 10px;font-size:12px}}
@media(max-width:900px){.customer-workspace .app-content{display:block}.customer-workspace .workspace-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;margin:18px 0 22px}.customer-workspace .stats{margin:20px 0}.customer-workspace .app-header{padding:18px 22px}.customer-workspace .app-header .brand img{width:145px}.customer-workspace .environment{font-size:10px}.customer-workspace .workspace-nav button[aria-pressed=true]{box-shadow:none}.customer-workspace .management-grid{grid-template-columns:220px minmax(0,1fr)}.customer-workspace .panel{margin-bottom:18px}.customer-view-banner{padding:12px 20px;flex-wrap:wrap;gap:10px}}
@media(max-width:680px){.customer-workspace .app-content{padding:22px 14px 50px}.customer-workspace .management-grid{display:block}.customer-workspace .workspace-heading h1{font-size:29px}.customer-workspace .workspace-heading{align-items:flex-start}.customer-workspace .workspace-heading>button{font-size:10px;padding:9px}.customer-workspace .stats{gap:10px}.customer-workspace .stat{padding:16px;min-width:130px}.customer-workspace .stat strong{font-size:25px}.customer-workspace .stat small{font-size:9px}.customer-workspace .device-list{display:flex;overflow-x:auto;gap:10px;padding-bottom:5px}.customer-workspace .device-card{min-width:190px;max-width:230px;flex-shrink:0;margin:0}.customer-workspace .router-panel{padding:16px}.customer-workspace .router-filters{grid-template-columns:1fr 1fr;gap:7px}.customer-workspace .router-filters label{grid-column:auto}.customer-workspace #router-search{grid-column:1}.customer-workspace #router-scope{grid-column:2;grid-row:2}.customer-workspace #router-filter-count{grid-column:1 / -1}.customer-workspace .editor-panel{padding:18px}.customer-workspace .router-tabs button{font-size:11px;padding:12px 9px}.machine-heading h3{font-size:20px}.machine-grid{grid-template-columns:1fr}.customer-workspace #vpn-session-panel .panel-heading{flex-wrap:wrap;gap:12px}.customer-workspace .app-header{padding:16px;gap:12px}.customer-workspace .app-header-actions{gap:7px}.customer-workspace .app-header-actions button{font-size:10px;padding:8px}.customer-workspace .environment{max-width:170px;overflow-wrap:anywhere}.customer-workspace .workspace-nav button{font-size:11px;padding:11px}.customer-workspace .access-form{padding:15px}.rights-row{grid-template-columns:minmax(90px,1fr) 57px 57px}.customer-workspace .workspace-heading .intro{font-size:12px}}

@media(max-width:680px){.customer-workspace .app-header{height:auto;flex-wrap:wrap}.customer-workspace .app-header .brand{width:145px;height:48px}.customer-workspace .app-header .brand img{width:145px;transform:none}.customer-workspace .app-header-actions{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.customer-workspace .app-header-actions .environment{max-width:130px}}

@media(max-width:680px){.machine-heading{flex-direction:column}.machine-heading>div{width:100%}.machine-heading>button{align-self:flex-start}}
