/* Nestway Workspace — midnight blue, champagne and clear working surfaces. */
:root{color-scheme:dark;--bg:#0b1526;--paper:#132137;--ink:#f2f5fa;--muted:#a8b7ca;--line:#293b54;--green:#edc783;--mint:#26374d;--shadow:0 12px 32px #03091420}
html{scroll-behavior:smooth;scroll-padding-top:28px}body{font-size:16px;background:radial-gradient(ellipse at 90% 0,#213655 0,transparent 45%),#0b1526;background-attachment:fixed;color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #edc783;outline-offset:4px}h1,h2,h3{color:var(--ink)}
.shell{max-width:1440px;padding:32px 36px 56px 256px;position:relative}.workspace-nav{position:fixed;top:32px;bottom:32px;width:192px;margin-left:-224px;display:flex;flex-direction:column;gap:10px;padding:28px 14px;background:#0d1a2b;border:1px solid #24364b;border-radius:24px}.workspace-label{font-size:20px;letter-spacing:3px;color:#edc783;font-weight:750;padding:0 10px 32px}.workspace-label small{display:block;font-size:12px;letter-spacing:3px;color:#a8b7ca;margin-top:8px;font-weight:500}.workspace-nav a{display:block;text-decoration:none;border-radius:12px;padding:15px 12px;font-size:14px;font-weight:600}.workspace-nav a:hover,.workspace-nav a:focus{background:#1c304a;color:#edc783}.workspace-nav a:first-of-type{background:#21334a;border-left:3px solid #edc783}.top{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 22px;box-shadow:none;margin-bottom:30px;gap:16px}.top .brand{background:#f8f6ef;border-radius:14px;padding:8px 16px}.top .brand-logo{height:54px;width:104px}.top .pill{background:#1c2d44;color:#d4deec;font-size:14px}.avatar{background:#2b405c;color:#edc783}.top .link,.link{color:#edc783;font-size:14px;min-height:44px}.right{flex-wrap:wrap;justify-content:flex-end}.heading h1{font-size:clamp(28px,3vw,40px);letter-spacing:-1.3px}.heading .sub{font-size:14px;margin-top:8px}.heading{gap:20px;align-items:center}.periods,.view-tabs,.auth-tabs{background:#0c182a;border:1px solid #2a3a50;padding:5px;border-radius:13px}.periods button{font-size:14px;min-height:42px;color:#b4c2d4}.periods button.active,.view-tabs button.active,.auth-tabs button.active{background:#edc783;color:#17263a;box-shadow:none}.view-tabs button,.auth-tabs button{color:#c8d4e4}.status-line{font-size:13px}.card{background:linear-gradient(125deg,#17263d,#122035);border:1px solid #2a3a52;border-radius:22px;box-shadow:var(--shadow);padding:24px}.card h2{font-size:18px;letter-spacing:-.3px}.hint{color:#a8b7ca;font-size:13px;line-height:1.5}.agent-picker label{font-size:14px;color:#c9d4e3}.agent-picker select{background:#17273e;border-color:#344761;color:#f2f5fa}.weekly-goal{background:linear-gradient(110deg,#224262,#192c44);border:1px solid #41607a;margin-top:22px}.goal-target{background:#edc783;color:#17263a;font-size:14px}.goal-summary strong{font-size:40px}.goal-summary span{font-size:15px}.weekly-goal .hint{color:#bdcede}.weekly-goal::after{right:-30px;top:-130px}.daily-panel{margin:26px 0}.daily-heading h2{font-size:22px}.daily-heading span{font-size:14px}.quick-actions{gap:16px;align-items:stretch}.counter-tile,.counter-tile:nth-child(2),.counter-tile:nth-child(3){background:linear-gradient(145deg,#1c3049,#142339);border:1px solid #344862;border-radius:22px;padding:22px;display:flex;flex-direction:column;align-items:center}.counter-tile:nth-child(3){border-color:#7a694c;background:linear-gradient(145deg,#33382f,#192a3c)}.counter-tile h3{color:#ced9e7;font-size:16px}.counter-value{font-size:56px;font-weight:650;letter-spacing:-2px;color:#fff;margin:18px 0}.counter-controls{margin-top:auto;padding-top:14px}.counter-controls button{background:#233b56;border:1px solid #446080;color:#f1f5fa;border-radius:14px;width:54px;height:54px;flex-basis:54px}.counter-controls [data-quick],.counter-tile:last-child [data-quick]{background:#edc783;border-color:#edc783;color:#142239;box-shadow:0 4px 16px #edc78316}.counter-controls button:hover:not(:disabled){filter:brightness(1.15)}#openCallBatch{font-size:14px;line-height:1.4;padding:4px 0}.quick-caption{font-size:14px}.results-heading{font-size:18px;margin:28px 0 16px}.metrics{gap:14px}.metric-card{background:#15253b;padding:22px;border:1px solid #2b3f5b;position:relative;overflow:hidden}.metric-card::before{content:"";position:absolute;left:22px;top:0;width:32px;height:3px;background:#89baf0;border-radius:0 0 5px 5px}.metric-card:nth-child(n+3)::before{background:#edc783}.metric-label{font-size:14px;color:#b5c5d8}.metric-card .value{font-size:38px;letter-spacing:-1px;color:#f2f5fa;font-variant-numeric:tabular-nums}.metric-card.selected{background:#24354a;border:1px solid #edc783}.trend-panel{margin-top:22px;padding:26px}.chart-legend{font-size:14px;color:#c4d0e0}.legend-phone{background:#87baf0}.legend-contract{background:#edc783}.chart-details summary{font-size:14px;color:#edc783}.trend-chart svg{overflow:visible}.bar{background:#293c55}.fill{background:linear-gradient(90deg,#739ed0,#b6d3f3)}.funnel-row{font-size:14px}.person-name,.person-count,.activity-title{font-size:14px}.person-meta,.activity-time{font-size:13px}.person-button:hover,.person-button.selected{background:#253b56}.activity-type{background:#283e58;color:#bdd7f6}.activity-result{background:#354033;color:#edcf98}.activity-row{gap:14px}.rank-card,.rank-1{background:linear-gradient(110deg,#293446,#1a2b41);border:1px solid #766548}.rank-person span{color:#c6d2df}.rank-badge{background-image:linear-gradient(110deg,#e7be79 20%,#ffeac2 45%,#fff 50%,#e7be79 65%,#d6ac67 80%);color:#edc783}.monthly-ranking{margin-top:22px}.quarter-champion{border-left:3px solid #edc783}.quarter-champion h2{font-size:16px}.goal-person{color:var(--ink)}.goal-person progress{accent-color:#edc783}.goal-person progress::-webkit-progress-bar{background:#293d54}.goal-person progress::-webkit-progress-value{background:#edc783}
.auth{max-width:460px;margin:6vh auto;background:linear-gradient(145deg,#1a2d46,#101e33);border:1px solid #38506d;padding:34px;box-shadow:0 28px 100px #0005}.auth .brand-logo{background:#f8f6ef;border-radius:16px;padding:14px;width:172px;height:116px}.auth .brand{justify-content:center}.auth h1{font-size:30px}.auth input,.field input,.field select,.team-dialog input,.team-dialog select,input,select,textarea,#notesPanel textarea,#commentDialog textarea,#reviewBody{background:#0d1c30;color:#f2f5fa;border:1px solid #3c506b;border-radius:12px;min-height:48px;padding:12px}input::placeholder,textarea::placeholder{color:#a2b2c7}.field label{color:#b8c7d9;font-size:14px}.primary{background:#edc783;color:#16253a;border-radius:12px;min-height:50px}.primary:hover{background:#f9d9a2}.secondary{color:#c4d1e1;font-size:14px}.install-entry{border-color:#34465e}.install-entry .secondary{color:#edc783}.modal,.team-dialog{background:#14243a;color:#f2f5fa;border:1px solid #40536c}.modal p,.team-dialog p{font-size:14px;color:#b7c6d9}.close{background:#293e58;color:#e5edf7;width:40px;height:40px}.type-btn{background:#172d47;color:#c6d7eb}.type-btn.active{background:#edc783;color:#19283c;border-color:#edc783}.notice,.note-response{background:#24384e;color:#c7d5e5}.note-card{border-color:#34465e}.note-card time{color:#a8b7ca}.toast{background:#edc783;color:#15263d;border:1px solid #ffe2b1;box-shadow:0 12px 50px #0005}.toast button{background:#172b43;color:#edc783}.leader-celebration{background:#21374f;color:#fff;border-color:#edc783}.leader-celebration strong{color:#edc783}.utility-panel{background:transparent;box-shadow:none}.empty{font-size:14px}.status-line.error{color:#ffa6a6}#reportPreview{color:#e7eef8}#reportPreview td,#reportPreview th{border-color:#34465e}.daily-panel,.metrics{animation:workspaceArrival .4s ease-out}@keyframes workspaceArrival{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1100px){.monthly-ranking{display:inline-block;width:calc(58% - 10px);vertical-align:top;margin-right:16px}.quarter-champion{display:inline-block;width:calc(42% - 10px);vertical-align:top;margin-top:22px;min-height:130px}}
@media(max-width:1100px){.shell{padding:24px;max-width:1000px}.workspace-nav{position:static;flex-direction:row;align-items:center;flex-wrap:wrap;width:auto;margin:0 0 22px;padding:10px;border-radius:16px}.workspace-label{font-size:14px;letter-spacing:2px;padding:0 14px}.workspace-label small{display:none}.workspace-nav a{font-size:14px;padding:12px}.workspace-nav a:first-of-type{border:0}.heading{flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.shell{padding:14px 14px calc(24px + env(safe-area-inset-bottom))}.workspace-nav{gap:3px;padding:5px;margin-bottom:18px;justify-content:space-between}.workspace-label{display:none}.workspace-nav a{padding:12px 8px;font-size:13px}.top{padding-bottom:18px;margin-bottom:22px}.top .brand{padding:5px 9px}.top .brand-logo{height:42px;width:76px}.top .link{font-size:14px;padding:0 7px}.right{gap:0}.top .rank-badge{font-size:18px}.heading h1{font-size:30px}.periods{width:100%;justify-content:space-between}.periods button{padding:9px 10px;font-size:14px;flex:1}.card{padding:18px;border-radius:18px}.card h2{font-size:17px}.quick-actions{gap:9px}.counter-tile,.counter-tile:nth-child(2),.counter-tile:nth-child(3){padding:16px 7px;border-radius:17px}.counter-tile h3{font-size:14px;gap:4px}.counter-icon{width:16px}.counter-value{font-size:42px;margin:16px 0}.counter-controls{gap:6px;padding-top:10px}.counter-controls button{width:44px;height:46px;flex-basis:44px;font-size:28px;border-radius:11px}#openCallBatch{font-size:12px;min-height:36px}.daily-heading span{font-size:12px}.quick-caption{font-size:13px}.metric-card .value{font-size:32px}.metric-label{font-size:14px}.goal-summary strong{font-size:34px}.goal-target{font-size:13px}.weekly-goal>.hint{font-size:12px}.goal-summary span{font-size:14px}.panel-head{flex-wrap:wrap;gap:8px}.chart-legend{font-size:13px}.chart-details summary{font-size:14px}.trend-panel{padding:18px}.trend-chart svg{min-height:140px}.auth{width:calc(100% - 28px);margin:24px auto;padding:24px}.auth .brand-logo{width:150px;height:100px}.funnel-row{grid-template-columns:105px 1fr 35px;font-size:13px}.activity-result{font-size:12px}.workspace-nav~.top{margin-top:0}.agent-picker select{width:100%}.utility-actions{gap:4px 12px}.goal-summary{flex-wrap:wrap}}
@media(max-width:380px){.quick-actions{grid-template-columns:1fr}.counter-tile,.counter-tile:nth-child(2),.counter-tile:nth-child(3){display:grid;grid-template-columns:1fr auto auto;gap:10px;width:100%}.counter-tile h3{justify-content:flex-start}.counter-value{font-size:30px;margin:0}.counter-controls{padding:0}.counter-tile #openCallBatch{grid-column:1/-1;grid-row:2;text-align:left}.workspace-nav a{font-size:12px;padding:12px 6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.daily-panel,.metrics{animation:none}.rank-badge{background:none;color:#edc783;-webkit-text-fill-color:currentColor}}
@media print{body.printing-report{background:white;color:#172f50}#printArea h1,#printArea h2{color:#172f50}}

.chart-mode{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.chart-mode button{border:1px solid #3a516e;border-radius:10px;background:#122035;color:#c4d3e5;min-height:44px;padding:10px 16px;font-size:14px}.chart-mode button.active{background:#293f59;color:#fff;border-color:#87baf0}.danger-link{color:#ffb0a8!important}.managed-member{border-color:#34465e}.managed-member small{color:#a8b7ca}.danger-button{background:#ae3636!important;color:white}#teamDialog{width:min(600px,calc(100vw - 24px))}

/* Quarterly honours and sales workspace */
.monthly-ranking{display:block;width:100%;margin-right:0}.ranking-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rank-card .rank-badge{font-size:20px;line-height:1.4;max-width:100%}#myLeaderBadge{font-size:13px;line-height:1.4;max-width:245px}.sales-panel{margin-top:22px}.compact-primary{width:auto;padding:10px 18px;margin:0}.sales-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.sales-filters label{display:grid;gap:6px;font-size:14px}.sales-row{display:grid;grid-template-columns:1fr auto;gap:16px;padding:20px 0;border-top:1px solid var(--line)}.sales-row h3{font-size:16px;margin:0 0 6px;overflow-wrap:anywhere}.sales-row p{margin:5px 0}.sale-side{text-align:right}.sale-status{display:inline-block;padding:5px 9px;border-radius:8px;background:#293c55;font-size:13px;color:#c9d8ec}.sale-status.closed{background:#233e39;color:#a4e2c5}.sale-status.cancelled{color:#f2c3ba;background:#493337}.sales-amount{font-size:19px;font-weight:650}.sales-row small{display:block;color:var(--muted)}#salesMessage{color:var(--muted);font-size:14px}@media(max-width:600px){.ranking-cards{grid-template-columns:1fr}.sales-filters label{flex:1;min-width:120px}.sales-row{grid-template-columns:1fr}.sale-side{text-align:left;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.sales-panel .compact-primary{width:100%}#myLeaderBadge{max-width:140px;font-size:12px}.workspace-nav{justify-content:flex-start}.workspace-nav a{flex:1;text-align:center;min-width:70px}.rank-card .rank-badge{font-size:18px}}

.silver-card{background:linear-gradient(125deg,#304156,#1a293f);border-color:#8b9aad}.rank-badge.silver-badge{color:#dce5ef;background-image:linear-gradient(110deg,#aebac9 20%,#e1e8f0 40%,#fff 50%,#bac8d9 60%,#9caebe 80%)}#myMonthlyBadge{font-size:13px;line-height:1.4;max-width:245px}@media(max-width:600px){#myMonthlyBadge{font-size:12px;max-width:140px}}@media(prefers-reduced-motion:reduce){.rank-badge.silver-badge{background:none;color:#dce5ef;-webkit-text-fill-color:currentColor}}

.ranking-cards>.rank-card:only-child{grid-column:1/-1}
