/* ===== Base ===== */
*{box-sizing:border-box}
body{margin:0;background:#f6f8fc;color:#152238;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
button,input,select,textarea{font-family:inherit}
a{color:inherit}

/* ===== App topbar / nav ===== */
.app-header{position:sticky;top:0;z-index:1000;background:#fff;box-shadow:0 4px 18px rgba(20,32,51,.06)}
.topbar{height:76px;background:#fff;border-bottom:1px solid #e6eaf0;display:flex;align-items:center;gap:30px;padding:0 32px}
.brand{display:flex;align-items:center;text-decoration:none;flex:0 0 auto}
.brand-logo{height:42px;width:auto;display:block}
.search{flex:1;max-width:560px;margin:auto;position:relative;color:#96a1b3}
.search i{position:absolute;left:14px;top:50%;transform:translateY(-50%)}
.search input{width:100%;padding:12px 16px 12px 42px;border:1px solid #e1e6ee;border-radius:10px;background:#fff;font:inherit;font-size:14.5px;color:#152238}
.search input::placeholder{color:#8a96a8}
.search input:focus{outline:2px solid #bfd3ff;border-color:#2563eb}
.top-actions{display:flex;align-items:center;gap:20px;flex:0 0 auto}
.top-actions .bell{color:#5b687c;font-size:19px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;cursor:pointer}
.top-actions .bell:hover{background:#f1f4f9}
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:600;font-size:13.5px;letter-spacing:.2px}
.navbar{height:58px;background:#fff;border-bottom:1px solid #e6eaf0;padding:0 24px;display:flex;align-items:stretch;gap:6px;overflow-x:auto}
.navbar a{display:flex;align-items:center;padding:0 16px;color:#4b586b;text-decoration:none;font-weight:500;font-size:15px;white-space:nowrap;border-bottom:3px solid transparent;margin-bottom:-1px;transition:color .12s,border-color .12s}
.navbar a:hover{color:#2563eb}
.navbar a.active{color:#2563eb;font-weight:600;border-bottom-color:#2563eb}

/* ===== Layout / cards ===== */
.container{max-width:1500px;margin:auto;padding:30px}
.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.heading h1{margin:0 0 5px}
.card{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:22px;margin-bottom:18px;box-shadow:0 5px 20px rgba(20,32,51,.04)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:#2563eb;color:#fff;padding:11px 17px;border-radius:9px;font-weight:700;text-decoration:none;cursor:pointer;font-size:15px}
.btn.full{width:100%}
.btn.ghost{background:#eef2ff;color:#2563eb;font-weight:650}
.link-btn,.link-danger{border:0;background:none;cursor:pointer;padding:0;font:inherit}
.link-btn{color:#2563eb}
.link-danger,.danger{color:#dc2626}
.danger{background:#fff;border:1px solid #fecaca;padding:9px 13px;border-radius:8px;cursor:pointer}
.danger-form{margin-top:20px}
.inline{display:inline}

/* ===== Forms (app pages) ===== */
.form-card{max-width:980px}
.form-card label{display:block;font-weight:650;margin-bottom:16px}
.form-card input:not([type=checkbox]):not([type=file]),.form-card textarea,.form-card select{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;font:inherit}
.form-card textarea{min-height:100px;resize:vertical}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.checks{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.checks label{margin:0}

/* ===== Tables ===== */
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:700px}
th,td{text-align:left;padding:14px 12px;border-bottom:1px solid #edf0f4}
th{font-size:13px;color:#667388;text-transform:uppercase}

/* ===== Alerts / misc ===== */
.alert{padding:12px 15px;border-radius:9px;margin-bottom:18px}
.success{background:#ecfdf3;color:#166534}
.error{background:#fef2f2;color:#991b1b}
.muted{color:#6c7789}
.center{text-align:center;margin-left:auto;margin-right:auto}
.footer{padding:20px 30px;text-align:center;color:#7a8596}
.empty{text-align:center;padding:100px}

/* ===== Dashboard widgets ===== */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin-bottom:18px}
.stats .card{display:flex;flex-direction:column;gap:8px}
.stats b{font-size:28px}
.stat-card{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(20,32,51,.08)}
.stat-icon{font-size:26px;width:48px;height:48px;display:grid;place-items:center;background:#eaf1ff;border-radius:12px;flex-shrink:0}
.empty-stat{grid-column:1/-1;text-align:center;padding:36px}
.quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.activity-list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.activity-list li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #f0f2f6}
.activity-list li:last-child{border-bottom:0}
.activity-icon{font-size:20px;width:38px;height:38px;display:grid;place-items:center;background:#f4f6fb;border-radius:10px;flex-shrink:0}
.activity-list li>div{flex:1;display:flex;flex-direction:column;gap:2px}
.activity-list time{font-size:12px}

/* ===== Login page ===== */
.login-page{background:#f4f7fb}
.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr}

/* Left brand panel */
.login-side{position:relative;overflow:hidden;background:linear-gradient(160deg,#eef3ff 0%,#f7f9fd 55%,#fff 100%);padding:56px 64px;display:flex;align-items:center}
.login-side-inner{max-width:560px;position:relative;z-index:2}
.deco-circle{position:absolute;border-radius:50%;filter:blur(2px);opacity:.9;z-index:1}
.deco-blue{width:230px;height:230px;background:#2563eb;top:-90px;right:120px}
.deco-orange{width:170px;height:170px;background:#f97316;top:70px;right:20px}

.brand-mark{display:flex;align-items:center;gap:12px;margin-bottom:36px}
.brand-mark img{height:44px;width:auto}
.brand-mark .brand-name{display:block;font-size:22px;font-weight:800;color:#13213a}
.brand-mark small{display:block;color:#6c7789;font-size:13px;margin-top:2px}

.login-side h2{font-size:34px;line-height:1.25;margin:0 0 14px;color:#0f1c33}
.login-side>.login-side-inner>p{max-width:460px;margin-bottom:32px}

.feature-list{display:flex;flex-direction:column;gap:20px;margin-bottom:36px}
.feature-row{display:flex;gap:16px;align-items:flex-start}
.feature-row b{display:block;margin-bottom:2px;font-size:15px}
.feature-row p{margin:0;font-size:13.5px}
.feature-icon{width:44px;height:44px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:17px;color:#fff}
.feature-icon.blue{background:#3b82f6}
.feature-icon.orange{background:#f97316}
.feature-icon.green{background:#16a34a}
.feature-icon.purple{background:#7c3aed}

/* Mock dashboard preview card */
.mock-dashboard{display:flex;background:#fff;border-radius:16px;box-shadow:0 20px 50px rgba(20,32,51,.12);overflow:hidden;margin-bottom:32px;border:1px solid #eef1f6}
.mock-sidebar{width:130px;background:#101a30;color:#c6cede;padding:16px 10px;flex-shrink:0}
.mock-brand{font-weight:800;color:#fff;font-size:13px;margin-bottom:16px;padding:0 6px}
.mock-nav-item{display:flex;align-items:center;gap:8px;font-size:11.5px;padding:8px 6px;border-radius:7px;margin-bottom:2px}
.mock-nav-item.active{background:#2563eb;color:#fff}
.mock-main{flex:1;padding:16px 18px;min-width:0}
.mock-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.mock-stats>div{display:flex;flex-direction:column;gap:2px}
.mock-stats b{font-size:18px}
.mock-stats small.up{color:#16a34a;font-size:11px}
.mock-stats span.muted{font-size:11px}
.mock-chart{margin-bottom:14px}
.mock-chart span.muted{font-size:11px;display:block;margin-bottom:4px}
.mock-chart svg{width:100%;height:50px;display:block}
.mock-activity span.muted{font-size:11px;display:block;margin-bottom:6px}
.mock-activity div{display:flex;align-items:center;gap:8px;font-size:12px;padding:5px 0;color:#334155}
.mock-activity i.blue{color:#3b82f6}
.mock-activity i.orange{color:#f97316}
.mock-activity i.green{color:#16a34a}

.trust-row{display:flex;gap:26px;flex-wrap:wrap;font-size:13px;color:#566276;font-weight:600}
.trust-row i{color:#2563eb;margin-right:6px}

/* Right form panel */
.login-form-side{display:flex;align-items:center;justify-content:center;padding:40px;background:#fff}
.login-card{width:min(430px,100%)}
.login-logo{height:34px;margin-bottom:22px;display:block}
.login-card h1{margin:0 0 6px;font-size:28px}
.login-card>p.muted{margin-top:0;margin-bottom:26px}
.login-card label{display:block;font-weight:650;margin:18px 0 0;font-size:14px}
.input-icon{position:relative;margin-top:7px}
.input-icon>i:first-child{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#96a1b3}
.input-icon input{width:100%;padding:12px 14px 12px 40px;border:1px solid #dfe5ed;border-radius:9px;font:inherit}
.pwd-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:none;cursor:pointer;color:#96a1b3;padding:4px}
.forgot-row{text-align:right;margin:10px 0 20px}
.link-muted{color:#2563eb;font-size:13.5px;font-weight:600;cursor:default}
.or-divider{display:flex;align-items:center;gap:14px;color:#96a1b3;font-size:12px;font-weight:700;margin:22px 0}
.or-divider::before,.or-divider::after{content:"";flex:1;height:1px;background:#e6eaf0}
.google-btn{width:100%;background:#fff;color:#152238;border:1px solid #dfe5ed;font-weight:650}
.google-btn i{color:#ea4335}
.demo-hint{display:block;text-align:center;margin-top:22px}

@media(max-width:960px){
  .login-wrap{grid-template-columns:1fr}
  .login-side{display:none}
}

/* ===== Responsive ===== */
@media(max-width:900px){
  .topbar{padding:12px 18px;flex-wrap:wrap;height:auto}
  .search{order:3;flex-basis:100%}
  .navbar{padding:0 18px}
  .container{padding:20px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
}
@media(max-width:560px){
  .stats{grid-template-columns:1fr}
  .top-actions strong{display:none}
  .grid2{grid-template-columns:1fr}
}

/* ===== CRM modules ===== */
.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.fields-grid label{display:block;font-weight:650;margin-bottom:16px;font-size:14px}
.fields-grid label.span2{grid-column:1/-1}
.fields-grid input:not([type=checkbox]):not([type=file]),.fields-grid textarea,.fields-grid select{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;font:inherit;font-weight:400}
.fields-grid input:focus,.fields-grid select:focus,.fields-grid textarea:focus,.input-icon input:focus{outline:2px solid #bfd3ff;border-color:#2563eb}
.fields-grid textarea{min-height:100px;resize:vertical}
.fields-grid select[multiple]{min-height:110px}
.fields-grid small{display:block;margin-top:6px;font-weight:400}
.fields-grid input[type=checkbox]{margin-top:10px;width:18px;height:18px}
.req{color:#dc2626;font-style:normal}
.form-section{margin:0 0 18px;font-size:16px;color:#13213a;padding-bottom:10px;border-bottom:1px solid #edf0f4}
.form-actions{display:flex;align-items:center;gap:12px;margin:4px 0 30px;max-width:980px}
.push-right{margin-left:auto}
.toolbar{display:flex;align-items:center;gap:16px;margin-bottom:14px;flex-wrap:wrap}
.search-box{position:relative;flex:1;max-width:380px;color:#96a1b3}
.search-box i{position:absolute;left:13px;top:50%;transform:translateY(-50%)}
.search-box input{width:100%;padding:10px 14px 10px 38px;border:1px solid #e1e6ee;border-radius:9px;font:inherit;background:#fafbfe}
.row-title{font-weight:700;color:#1d4ed8;text-decoration:none}
.row-title:hover{text-decoration:underline}
.row-actions{white-space:nowrap;text-align:right}
.row-actions a{color:#2563eb;text-decoration:none;margin-right:10px}
.head-actions{display:flex;align-items:center;gap:10px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 30px;margin-top:14px}
.detail-item.span2{grid-column:1/-1}
.detail-item>span{display:block;font-size:12.5px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px}
.detail-item>div{font-weight:600;word-break:break-word}
.detail-item a{color:#1d4ed8}
.related-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.related-head h2{margin:0}
.convert-box{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;border-color:#bfd3ff;background:#f5f8ff}
.convert-box h2,.setup-banner h2{margin:0 0 4px;font-size:18px}
.convert-box p,.setup-banner p{margin:0}
.convert-box form{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.check-line{display:flex;align-items:center;gap:8px;font-weight:600}
.setup-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#fff7ed;border-color:#fdba74}
.badge{display:inline-block;padding:3px 9px;border-radius:99px;background:#eaf1ff;color:#1d4ed8;font-size:12px;font-weight:700}
.badge.custom{background:#fff1e6;color:#c2410c}
code{background:#f1f4f9;padding:2px 6px;border-radius:5px;font-size:12.5px}
.pipe-totals{display:flex;gap:40px;margin:12px 0 18px}
.pipe-totals div{display:flex;flex-direction:column;gap:2px}
.pipe-totals b{font-size:24px}
.pipe-totals b.won{color:#16a34a}
.bar-row{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:12px;padding:7px 0;font-size:14px}
.bar{height:9px;background:#eef2f8;border-radius:99px;overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#60a5fa);border-radius:99px}
.alert a{color:inherit;font-weight:700}
@media(max-width:700px){.fields-grid,.detail-grid{grid-template-columns:1fr}.bar-row{grid-template-columns:1fr}.head-actions{flex-wrap:wrap}}

/* ---- modal (lead convert) ---- */
.modal[hidden]{display:none}
.modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px}
.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}
.modal-dialog{position:relative;background:#fff;border-radius:16px;width:100%;max-width:560px;max-height:calc(100vh - 36px);display:flex;flex-direction:column;box-shadow:0 24px 60px rgba(15,23,42,.3);animation:modalIn .16s ease-out}
@keyframes modalIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e5eaf1}
.modal-head h2{margin:0;font-size:19px}
.modal-x{border:0;background:transparent;font-size:18px;color:#64748b;cursor:pointer;width:34px;height:34px;border-radius:8px}
.modal-x:hover{background:#f1f5f9}
.modal-body{padding:20px 22px 6px;overflow-y:auto}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #e5eaf1;background:#f8fafc;border-radius:0 0 16px 16px}
.modal-foot .btn[disabled]{opacity:.6;cursor:wait}
.convert-steps{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:8px}
.convert-steps li{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e5eaf1;border-radius:10px;background:#f8fafc}
.convert-steps li>i{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eef2ff;color:#2563eb}
.convert-steps span{display:flex;flex-direction:column}
.convert-steps small{color:#64748b}
.convert-note{margin:0 0 14px;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:9px 12px;font-size:14px}
body.modal-open{overflow:hidden}
@media(max-width:700px){.modal-foot{flex-direction:column-reverse}.modal-foot .btn{width:100%}}

/* ===== Dashboard (dx-) ===== */
.dx-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.dx-head h1{margin:0 0 4px;font-size:28px}
.dx-head p{margin:0}
.dx-head-actions{display:flex;align-items:center;gap:12px}
.dx-range{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid #e1e6ee;border-radius:10px;padding:10px 15px;font-weight:600;font-size:14px;color:#33415a}
.dx-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:18px}
.dx-stat{display:flex;flex-direction:column;gap:14px;margin:0;text-decoration:none;color:inherit;transition:transform .12s,box-shadow .12s}
.dx-stat:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(20,32,51,.08)}
.dx-stat-top{display:flex;align-items:center;gap:14px}
.dx-stat-label{display:block;color:#566276;font-size:14px}
.dx-stat-value{display:block;font-size:30px;line-height:1.15;margin-top:2px}
.dx-stat-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.dx-trend{font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.dx-trend small{font-weight:500;color:#6c7789;font-size:13px}
.dx-trend.up{color:#16a34a}.dx-trend.down{color:#dc2626}.dx-trend.flat{color:#6c7789}
.dx-spark{width:120px;height:44px;flex:0 0 auto}
.dx-icon{width:50px;height:50px;border-radius:13px;display:grid;place-items:center;font-size:20px;flex:0 0 auto}
.dx-icon.sm{width:36px;height:36px;font-size:15px;border-radius:10px}
.dx-icon.blue,.dx-icon.f-leads{background:#e8f0ff;color:#2563eb}
.dx-icon.green,.dx-icon.f-accounts{background:#e4f6ea;color:#16a34a}
.dx-icon.purple,.dx-icon.f-contacts{background:#efe9ff;color:#7c3aed}
.dx-icon.amber,.dx-icon.f-opportunities{background:#fff2d9;color:#d97706}
.dx-icon.f-tasks{background:#e0f5f5;color:#0d9488}
.dx-icon.f-converted{background:#fde8f1;color:#db2777}
.dx-row{display:grid;gap:18px;margin-bottom:18px}
.dx-row .card{margin:0;min-width:0}
.dx-row-main{grid-template-columns:1.45fr 1fr .9fr}
.dx-row-3{grid-template-columns:1fr 1fr 1fr}
.dx-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.dx-card-head h2{margin:0;font-size:17px}
.dx-card-head a{font-size:13px;font-weight:600;color:#2563eb;text-decoration:none}
.dx-card-head a:hover{text-decoration:underline}
.dx-chip{border:1px solid #e1e6ee;border-radius:8px;padding:6px 12px;font-size:13px;font-weight:600;color:#33415a;background:#fff}
.dx-chart{width:100%;height:auto;display:block}
.dx-axis{font-size:13px;fill:#6c7789;font-family:inherit}
.dx-list{list-style:none;margin:0;padding:0}
.dx-list li{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #eef1f6}
.dx-list li:last-child{border-bottom:0}
.dx-list time{margin-left:auto;font-size:13px;color:#6c7789;white-space:nowrap}
.dx-list a{text-decoration:none}
.dx-person{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.dx-person-text{display:flex;flex-direction:column;min-width:0}
.dx-person-text strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx-person-text small{color:#6c7789;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;flex:0 0 auto}
.dx-avatar.t0{background:#e8f0ff;color:#2563eb}.dx-avatar.t1{background:#e4f6ea;color:#16a34a}.dx-avatar.t2{background:#efe9ff;color:#7c3aed}.dx-avatar.t3{background:#fff2d9;color:#d97706}.dx-avatar.t4{background:#fde8f1;color:#db2777}
.dx-pill{padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.dx-pill.green{background:#e4f6ea;color:#15803d}.dx-pill.blue{background:#e8f0ff;color:#1d4ed8}.dx-pill.amber{background:#fff2d9;color:#b45309}.dx-pill.purple{background:#efe9ff;color:#6d28d9}.dx-pill.grey{background:#eef1f6;color:#566276}
.dx-list li .dx-pill + time{margin-left:8px;min-width:54px;text-align:right}
.dx-pipeline{display:grid;gap:8px}
.dx-stage{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:11px;padding:11px 14px}
.dx-stage strong{display:block;font-size:14px}
.dx-stage small{color:#566276;font-size:12.5px}
.dx-count{background:#fff;border:1px solid rgba(20,32,51,.08);border-radius:8px;min-width:44px;text-align:center;padding:6px 10px;font-weight:700;font-size:14px}
.dx-stage.blue{background:#eaf1ff}.dx-stage.green{background:#e9f7ee}.dx-stage.amber{background:#fff5df}.dx-stage.purple{background:#f0ebff}.dx-stage.teal{background:#e3f6f5}.dx-stage.red{background:#fdecec}.dx-stage.grey{background:#f1f4f8}
.dx-task{display:flex;align-items:center;gap:12px;flex:1;min-width:0;font-size:14px;font-weight:600}
.dx-task span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;background:#94a3b8}
.dx-dot.high{background:#dc2626}.dx-dot.normal{background:#f59e0b}.dx-dot.low{background:#22c55e}
.dx-tasks time.overdue,.dx-tasks time.today{color:#dc2626;font-weight:600}
.dx-feed li a,.dx-feed li>span:not(.dx-icon){font-size:14px;flex:1;min-width:0}
.dx-feed li a:hover{color:#2563eb}
@media(max-width:1200px){.dx-stats{grid-template-columns:repeat(2,1fr)}.dx-row-main{grid-template-columns:1fr 1fr}.dx-row-main>.card:first-child{grid-column:1/-1}.dx-row-3{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.dx-stats,.dx-row-main,.dx-row-3{grid-template-columns:1fr}.dx-head h1{font-size:24px}}
.dx-chart{max-height:340px;margin:0 auto}

/* ===== user menu (top right) ===== */
.user-menu{position:relative}
.user-menu summary{list-style:none;display:flex;align-items:center;gap:11px;cursor:pointer;padding:5px 8px 5px 5px;border-radius:99px;user-select:none}
.user-menu summary::-webkit-details-marker{display:none}
.user-menu summary:hover,.user-menu[open] summary{background:#f1f4f9}
.user-name{font-weight:600;font-size:15px;color:#152238}
.chev{width:7px;height:7px;border-right:2px solid #5b687c;border-bottom:2px solid #5b687c;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.user-menu[open] .chev{transform:rotate(-135deg) translateY(-2px)}
.user-dropdown{position:absolute;right:0;top:calc(100% + 10px);min-width:230px;background:#fff;border:1px solid #e5eaf1;border-radius:12px;box-shadow:0 14px 38px rgba(20,32,51,.14);padding:6px;z-index:500}
.ud-head{display:flex;flex-direction:column;gap:2px;padding:10px 12px 12px;border-bottom:1px solid #eef1f6;margin-bottom:6px;align-items:flex-start}
.ud-head small{color:#6c7789;font-size:13px}
.ud-head .badge{margin-top:6px}
.ud-item{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:10px 12px;border-radius:8px;font:inherit;font-weight:500;color:#dc2626;cursor:pointer;text-align:left}
.ud-item:hover{background:#fef2f2}
@media(max-width:760px){.user-name{display:none}.topbar{gap:14px;padding:0 16px}.search{display:none}.top-actions{margin-left:auto}}

/* ===== global search ===== */
.search input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
.search-dd{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #e5eaf1;border-radius:12px;box-shadow:0 16px 42px rgba(20,32,51,.16);max-height:min(70vh,520px);overflow-y:auto;padding:6px;z-index:600;color:#152238}
.search-dd[hidden]{display:none}
.dd-group{padding:10px 12px 4px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7a8698}
.search-dd a{display:flex;flex-direction:column;gap:1px;padding:9px 12px;border-radius:8px;text-decoration:none;color:inherit}
.search-dd a:hover,.search-dd a.active{background:#eef3ff}
.dd-title{font-weight:600;font-size:14.5px}
.dd-sub{font-size:12.5px;color:#6c7789;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd-mod{flex-direction:row!important;gap:6px!important;font-size:14px;color:#2563eb!important}
.dd-all{margin-top:4px;border-top:1px solid #eef1f6;border-radius:0 0 8px 8px!important;color:#2563eb!important;font-weight:600;font-size:14px;padding-top:11px!important}
.dd-empty{padding:16px 12px;color:#6c7789;font-size:14px}
mark{background:#fff2b3;color:inherit;border-radius:3px;padding:0 1px}
/* results page */
.sr-modules{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.sr-module{background:#eef3ff;color:#2563eb;border-radius:10px;padding:9px 14px;text-decoration:none;font-size:14px}
.sr-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.sr-chip{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e1e6ee;border-radius:99px;padding:7px 14px;font-size:14px;font-weight:500;color:#33415a;text-decoration:none}
.sr-chip span{background:#eef1f6;border-radius:99px;padding:0 8px;font-size:12px;font-weight:700}
.sr-chip.on{background:#2563eb;border-color:#2563eb;color:#fff}
.sr-chip.on span{background:rgba(255,255,255,.22)}
.sr-empty{text-align:center;padding:44px 22px}
.sr-empty h2{margin:0 0 6px}

/* ===== Leads: modern top-navigation CRM workspace ===== */
.lead-page{padding-bottom:22px}.lead-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:24px}.lead-heading h1{margin:7px 0 4px;font-size:31px;line-height:1.15;letter-spacing:-.035em;color:#14213a}.lead-heading p{margin:0;color:#748198;font-size:14px}.breadcrumb{display:flex;align-items:center;gap:8px;color:#8b96a8;font-size:12.5px}.breadcrumb a{color:#5d6a7e;text-decoration:none}.breadcrumb i{font-size:9px}.lead-heading-actions{display:flex;gap:10px}.lead-heading-actions .btn{height:44px;padding:0 16px;border-radius:9px}.lead-secondary-btn{background:#fff;color:#33415a;border:1px solid #dfe5ee}.lead-secondary-btn:hover{background:#f8fafc}.lead-primary-btn{background:#4f46e5;box-shadow:0 7px 16px rgba(79,70,229,.18)}.lead-primary-btn:hover{background:#4338ca}.lead-btn-caret{font-size:10px;margin-left:5px}.lead-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.lead-stat-card{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:18px 19px;display:flex;align-items:center;gap:14px;min-height:112px;box-shadow:0 5px 18px rgba(20,32,51,.035)}.lead-stat-icon{width:43px;height:43px;border-radius:11px;display:grid;place-items:center;font-size:18px;flex:0 0 auto}.lead-stat-icon.purple{background:#eeecff;color:#5146d9}.lead-stat-icon.blue{background:#eaf3ff;color:#2773df}.lead-stat-icon.orange{background:#fff4df;color:#e79a17}.lead-stat-icon.green{background:#eaf9f0;color:#25a35a}.lead-stat-card span{display:block;color:#657287;font-size:12.5px;margin-bottom:2px}.lead-stat-card strong{display:block;font-size:24px;line-height:1.15;color:#17243a;letter-spacing:-.02em}.lead-stat-card small{display:block;color:#7e899a;font-size:11.5px;margin-top:6px}.lead-stat-card small i{margin-right:4px}.lead-table-card{background:#fff;border:1px solid #e5eaf1;border-radius:13px;box-shadow:0 6px 22px rgba(20,32,51,.045);overflow:visible}.lead-toolbar{min-height:76px;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #edf0f5}.lead-toolbar-left,.lead-toolbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lead-search{width:220px;position:relative}.lead-search i,.lead-columns-search i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#98a3b4;font-size:13px}.lead-search input,.lead-columns-search input{width:100%;height:38px;border:1px solid #dfe5ed;border-radius:8px;background:#fff;color:#17243a;padding:0 12px 0 35px;font-size:13px;outline:none}.lead-search input:focus,.lead-columns-search input:focus{border-color:#a9a4ff;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.lead-select,.lead-filter-btn,.lead-control-btn{height:38px;border:1px solid #dfe5ed;background:#fff;border-radius:8px;color:#4b586b;font-size:12.5px;padding:0 11px;cursor:pointer}.lead-select{min-width:92px}.lead-filter-btn,.lead-control-btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.lead-filter-btn i:first-child,.lead-control-btn i:first-child{color:#657287}.lead-control-btn.active{color:#4f46e5;border-color:#c9c6ff;background:#faf9ff}.lead-icon-btn{height:38px;width:38px;border:1px solid #dfe5ed;background:#fff;color:#657287;border-radius:8px;cursor:pointer}.lead-icon-btn:hover,.lead-filter-btn:hover,.lead-control-btn:hover{background:#f8fafc}.lead-sort-wrap,.lead-column-wrap{position:relative}.lead-sort-menu,.lead-columns-menu{position:absolute;z-index:80;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #e2e7ef;border-radius:11px;box-shadow:0 18px 45px rgba(18,31,52,.16)}.lead-sort-menu{width:190px;padding:6px}.lead-sort-menu button{width:100%;border:0;background:transparent;text-align:left;padding:10px 11px;border-radius:7px;color:#33415a;font:inherit;font-size:13px;cursor:pointer;display:flex;justify-content:space-between}.lead-sort-menu button:hover{background:#f2f4ff;color:#4f46e5}.lead-columns-menu{width:285px}.lead-columns-head{display:flex;justify-content:space-between;align-items:center;padding:14px 14px 11px;border-bottom:1px solid #edf0f5}.lead-columns-head strong{font-size:13px;color:#243249}.lead-columns-head button{border:0;background:none;font-size:21px;line-height:1;color:#8994a6;cursor:pointer}.lead-columns-search{position:relative;padding:11px}.lead-column-list{max-height:280px;overflow:auto;padding:0 8px 8px}.lead-column-item{display:flex;align-items:center;gap:8px;padding:8px 7px;border-radius:7px;font-size:12.5px;color:#344157;cursor:pointer}.lead-column-item:hover{background:#f7f8fb}.lead-column-item input{accent-color:#4f46e5;width:15px;height:15px}.drag-dots{color:#a1a9b8;letter-spacing:-2px;font-size:13px;cursor:grab}.lead-columns-foot{display:flex;justify-content:flex-end;gap:8px;padding:11px;border-top:1px solid #edf0f5}.lead-reset-btn{height:35px;border:1px solid #dfe5ed;background:#fff;border-radius:7px;padding:0 13px;color:#4b586b;cursor:pointer}.lead-apply-btn{height:35px;padding:0 15px;border-radius:7px;background:#4f46e5;font-size:12px}.lead-active-filters{display:flex;gap:7px;flex-wrap:wrap;padding:10px 18px;border-bottom:1px solid #edf0f5;background:#fbfcfe}.lead-active-filters .filter-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #dfe4ed;background:#fff;border-radius:99px;color:#526075;font-size:11.5px}.lead-active-filters button{border:0;background:none;color:#8c97a7;cursor:pointer;padding:0}.lead-table-wrap{overflow-x:auto}.lead-data-table{min-width:1080px;border-collapse:separate;border-spacing:0}.lead-data-table th,.lead-data-table td{padding:13px 12px;border-bottom:1px solid #eef1f5;white-space:nowrap;vertical-align:middle}.lead-data-table th{height:46px;background:#fbfcfe;color:#748095;text-transform:none;font-size:11.5px;font-weight:700;letter-spacing:.01em}.lead-data-table th:first-child,.lead-data-table td:first-child{padding-left:18px}.lead-data-table tbody tr{transition:background .12s}.lead-data-table tbody tr:hover{background:#fbfcff}.lead-data-table td{font-size:12.5px;color:#445167}.lead-data-table .check-col{width:38px}.lead-data-table .actions-col{width:44px;text-align:center}.lead-data-table input[type=checkbox]{width:15px;height:15px;accent-color:#4f46e5;cursor:pointer}.th-sort{border:0;background:none;color:#a0a9b7;padding:0 0 0 4px;font-size:11px;cursor:pointer}.th-sort:hover{color:#4f46e5}.lead-person{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;min-width:185px}.lead-person strong{display:block;color:#1b2940;font-size:12.5px;font-weight:700}.lead-person small{display:block;color:#8a95a5;font-size:11px;margin-top:2px}.lead-avatar{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#eef0ff;color:#4f46e5;font-size:10px;font-weight:800;flex:0 0 auto}.lead-data-table td a:not(.lead-person){color:#4f46e5;text-decoration:none}.lead-status-cell span,.lead-status-cell .status-badge{display:inline-flex;align-items:center}.lead-status-cell{font-weight:600}.lead-data-table .created-cell{color:#657287}.row-more{width:30px;height:30px;border-radius:7px;display:inline-grid;place-items:center;color:#8792a4!important}.row-more:hover{background:#f0f2f7;color:#4f46e5!important}.lead-empty{text-align:center;padding:55px 20px}.lead-empty>i{font-size:34px;color:#a5afbf}.lead-empty h3{margin:10px 0 4px}.lead-empty p{margin:0 0 16px;color:#788497}.lead-pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 18px;min-height:67px}.lead-pagination-info{font-size:12px;color:#7b8798}.lead-pagination-info strong{color:#3f4d62}.lead-pagination-controls{display:flex;align-items:center;gap:5px}.lead-page-size{height:34px;border:1px solid #dfe5ed;border-radius:7px;background:#fff;color:#4b586b;font-size:12px;padding:0 9px;margin-right:5px}.page-btn,.page-number{width:33px;height:33px;border:1px solid #e0e5ec;background:#fff;border-radius:7px;color:#657287;cursor:pointer;font-size:13px}.page-btn:hover,.page-number:hover{border-color:#c7c3ff;color:#4f46e5;background:#faf9ff}.page-btn:disabled{opacity:.4;cursor:not-allowed}.page-number.active{background:#4f46e5;border-color:#4f46e5;color:#fff}.page-numbers{display:flex;gap:5px}.page-ellipsis{width:24px;display:grid;place-items:center;color:#8c97a7;font-size:12px}
@media(max-width:1100px){.lead-stat-grid{grid-template-columns:repeat(2,1fr)}.lead-toolbar{align-items:flex-start}.lead-toolbar-left,.lead-toolbar-right{width:100%}.lead-toolbar-right{justify-content:flex-end}}@media(max-width:700px){.lead-heading{align-items:flex-start;flex-direction:column}.lead-heading-actions{width:100%}.lead-heading-actions .btn{flex:1}.lead-stat-grid{grid-template-columns:1fr}.lead-pagination{align-items:flex-start;flex-direction:column}.lead-pagination-controls{width:100%;justify-content:flex-end}.lead-search{width:100%}.lead-toolbar-left{display:grid;grid-template-columns:1fr 1fr}.lead-search{grid-column:1/-1}.lead-columns-menu{right:-50px}}

.lead-status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:700;line-height:1}.lead-status-pill>span{width:6px;height:6px;border-radius:50%;background:currentColor}.status-new{background:#edf3ff;color:#3974d8}.status-contacted{background:#fff5df;color:#c78917}.status-qualified{background:#eaf8ef;color:#29945a}.status-unqualified{background:#f1f3f6;color:#7d8795}

/* Accounts / Contacts directory refinements */
.directory-page .directory-title-icon{font-size:23px;color:#4f46e5;margin-right:5px}.directory-page .lead-person{min-width:190px}.directory-page .lead-data-table{min-width:1180px}.directory-page .lead-stat-card{min-height:108px}.directory-page .lead-stat-card strong{font-variant-numeric:tabular-nums}.directory-page .lead-data-table td{max-width:280px;overflow:hidden;text-overflow:ellipsis}.directory-page .lead-data-table td[data-column="account_name"],.directory-page .lead-data-table td[data-column="first_name"],.directory-page .lead-data-table td[data-column="last_name"]{overflow:visible}.directory-page .lead-data-table th{position:relative}.directory-page .lead-data-table tbody tr{cursor:default}
@media(max-width:850px){.directory-page .lead-toolbar-left{grid-template-columns:1fr 1fr}.directory-page .lead-select,.directory-page .lead-filter-btn{width:100%}}
/* Opportunity stage pills - same visual language as Lead status pills. */
.status-prospecting,.status-qualification,.status-needs-analysis,.status-proposal,.status-negotiation{background:#edf3ff;color:#3974d8}
.status-closed-won{background:#eaf8ef;color:#29945a}
.status-closed-lost{background:#f1f3f6;color:#7d8795}

/* Inline record actions for Leads, Accounts, Contacts and Opportunities */
.row-actions-inline{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:190px;white-space:nowrap}.row-actions-inline .row-delete-form{display:inline-flex;margin:0}.row-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:30px;padding:0 8px;border:1px solid #e1e6ee;border-radius:7px;background:#fff;color:#5c687b;text-decoration:none;font:inherit;font-size:11.5px;font-weight:600;line-height:1;cursor:pointer;transition:all .15s ease}.row-action-btn i{font-size:11px}.row-action-view:hover{background:#f4f7ff;border-color:#cdd8f5;color:#4f46e5}.row-action-edit:hover{background:#f5f8ff;border-color:#c8d9f8;color:#2563eb}.row-action-delete{color:#d34b5a}.row-action-delete:hover{background:#fff4f5;border-color:#f2c6cb;color:#c6283d}.lead-data-table .actions-col{width:205px;min-width:205px;padding-right:16px}.lead-data-table tbody tr:hover .row-action-btn{border-color:#d9dfeb}.directory-page .lead-data-table{min-width:1350px}
@media(max-width:1050px){.row-actions-inline{min-width:170px}.row-action-btn{padding:0 7px}.row-action-btn span{display:none}.row-action-btn{width:30px;padding:0}.lead-data-table .actions-col{width:125px;min-width:125px}}

/* ===== Create / Edit record drawer ===== */
.crm-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(2px);z-index:1099}
.crm-drawer{position:fixed;z-index:1100;top:0;right:0;width:min(820px,100vw);height:100vh;height:100dvh;background:#fff;box-shadow:-18px 0 50px rgba(15,23,42,.18);display:flex;flex-direction:column;overflow:hidden}
.crm-drawer-head{height:104px;min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 28px;border-bottom:1px solid #e7ebf1;background:#fff}
.crm-drawer-title-wrap{display:flex;align-items:center;gap:15px;min-width:0}
.crm-drawer-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#eaf1ff;color:#2563eb;font-size:19px}
.crm-drawer-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#7a8799;margin-bottom:1px}
.crm-drawer h1{font-size:22px;line-height:1.25;margin:0;color:#14213a}
.crm-drawer-head p{margin:3px 0 0;color:#778398;font-size:13px}
.crm-drawer-close{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;color:#68758a;text-decoration:none;flex:0 0 auto;font-size:18px}
.crm-drawer-close:hover{background:#f2f5f9;color:#152238}
.crm-drawer-form{display:flex;flex-direction:column;min-height:0;flex:1}
.crm-drawer-body{overflow-y:auto;flex:1;padding:26px 28px 34px;background:#f7f9fc;scroll-behavior:smooth}
.crm-form-section{background:#fff;border:1px solid #e3e8ef;border-radius:14px;padding:22px;margin-bottom:18px;box-shadow:0 4px 16px rgba(20,32,51,.035)}
.crm-form-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:17px;margin-bottom:20px;border-bottom:1px solid #edf0f4}
.crm-form-section-head h2{font-size:16px;margin:0 0 3px;color:#1b2940}
.crm-form-section-head p{font-size:12.5px;color:#7a8799;margin:0}
.crm-section-count{white-space:nowrap;background:#f1f4f9;color:#667388;border-radius:99px;padding:5px 10px;font-size:11.5px;font-weight:700}
.crm-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.crm-drawer .drawer-field{display:block;font-weight:650;color:#27364d;font-size:13px;margin:0 0 18px}
.crm-drawer .drawer-field-wide{grid-column:1/-1}
.crm-drawer .drawer-field input:not([type=checkbox]):not([type=file]),.crm-drawer .drawer-field textarea,.crm-drawer .drawer-field select{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dbe2eb;border-radius:9px;background:#fff;color:#1d2a3e;font:inherit;font-size:13.5px;transition:border-color .15s,box-shadow .15s}
.crm-drawer .drawer-field input:not([type=checkbox]):not([type=file]):focus,.crm-drawer .drawer-field textarea:focus,.crm-drawer .drawer-field select:focus{outline:0;border-color:#78a6ff;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
.crm-drawer .drawer-field textarea{min-height:112px;resize:vertical}
.crm-drawer .drawer-field select[multiple]{min-height:112px}
.crm-drawer .drawer-field input[type=file]{display:block;width:100%;padding:9px;border:1px dashed #cfd7e3;border-radius:9px;background:#fafbfd;margin-top:7px;font-size:13px}
.crm-drawer .drawer-field input[type=checkbox]{width:17px;height:17px;accent-color:#2563eb}
.crm-checkbox{display:flex;align-items:center}
.drawer-checkbox{display:flex;align-items:center;gap:8px;margin-top:11px;color:#526076;font-weight:500}
.drawer-help{display:block;color:#7a8799;font-size:11.5px;font-weight:400;margin-top:6px}
.drawer-help a{color:#2563eb;font-weight:600}
.req{color:#dc2626;font-style:normal}
.crm-drawer-note{display:flex;align-items:center;gap:9px;color:#788599;font-size:12px;padding:4px 3px 0}
.crm-drawer-note i{color:#7b8ba4}
.crm-drawer-foot{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 28px;border-top:1px solid #e3e8ef;background:#fff;box-shadow:0 -8px 22px rgba(20,32,51,.045)}
.crm-drawer-foot-left{min-width:0}
.crm-drawer-foot-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.crm-add-field{display:inline-flex;align-items:center;gap:7px;color:#2563eb;text-decoration:none;font-size:13px;font-weight:650}
.crm-add-field:hover{text-decoration:underline}
.crm-save-btn{min-width:150px;box-shadow:0 5px 14px rgba(37,99,235,.18)}
.crm-drawer .btn{font-size:13.5px;padding:10px 15px}
@media(max-width:700px){
  .crm-drawer-head{height:92px;min-height:92px;padding:15px 18px}
  .crm-drawer-body{padding:18px 14px 24px}
  .crm-drawer-foot{padding:12px 14px;min-height:72px}
  .crm-drawer-foot-left{display:none}
  .crm-drawer-foot-actions{width:100%}
  .crm-drawer-foot-actions .btn{flex:1}
  .crm-fields-grid{grid-template-columns:1fr}
  .crm-drawer .drawer-field-wide{grid-column:auto}
  .crm-form-section{padding:17px 15px}
  .crm-drawer-title-wrap{gap:10px}
  .crm-drawer-icon{width:40px;height:40px;border-radius:11px}
  .crm-drawer h1{font-size:18px}
  .crm-drawer-head p{display:none}
}
@media(max-width:420px){
  .crm-drawer-kicker{font-size:9.5px}
  .crm-drawer h1{font-size:17px}
  .crm-drawer-close{width:34px;height:34px}
  .crm-form-section-head{gap:8px}
  .crm-section-count{font-size:10px;padding:4px 7px}
}

/* ===== CRM record detail pages ===== */
.record-page{padding:4px 0 34px}.record-breadcrumb{display:flex;align-items:center;gap:9px;color:#8994a6;font-size:12.5px;margin:4px 0 15px}.record-breadcrumb a{color:#647187;text-decoration:none;font-weight:600}.record-breadcrumb a:hover{color:#4f46e5}.record-breadcrumb strong{color:#8a95a7;font-weight:500;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-breadcrumb i{font-size:11px;margin-right:4px}
.record-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#fff;border:1px solid #e3e8f0;border-radius:16px;padding:23px 24px;box-shadow:0 7px 25px rgba(20,32,51,.045)}.record-hero-main{display:flex;align-items:center;gap:16px;min-width:0}.record-avatar{width:68px;height:68px;border-radius:17px;background:linear-gradient(135deg,#4f46e5,#2563eb);color:#fff;display:grid;place-items:center;flex:0 0 auto;box-shadow:0 9px 20px rgba(79,70,229,.18)}.record-avatar span{font-size:21px;font-weight:800;letter-spacing:.03em}.record-hero-copy{min-width:0}.record-type{font-size:11.5px;color:#778397;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}.record-hero h1{margin:0;color:#17243a;font-size:28px;line-height:1.15;letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-subline{display:flex;align-items:center;gap:8px;margin-top:8px;color:#8a95a6;font-size:12px}.record-dot{color:#c4cbd5}.status-pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700}.status-pill.success{background:#eaf8ef;color:#21864b}.status-pill.danger{background:#fff0f1;color:#c53b4b}.status-pill.warning{background:#fff5e6;color:#b66b00}.status-pill.neutral{background:#eef2ff;color:#4f46e5}.record-hero-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.record-hero-actions .btn{height:40px;padding:0 14px;font-size:13px}.record-delete-btn{height:40px;padding:0 14px;border:1px solid #f0cbd0;background:#fff5f6;color:#c53b4b;border-radius:9px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.record-delete-btn:hover{background:#ffecef;border-color:#eeb7bf}
.record-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:13px 0 18px}.record-meta-card{min-height:78px;background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:13px 14px;display:flex;align-items:center;gap:11px;box-shadow:0 4px 15px rgba(20,32,51,.025);min-width:0}.record-meta-icon{width:35px;height:35px;border-radius:9px;background:#eef1ff;color:#4f46e5;display:grid;place-items:center;flex:0 0 auto;font-size:13px}.record-meta-card>div:last-child{min-width:0}.record-meta-card span{display:block;color:#8994a6;font-size:10.5px;text-transform:uppercase;letter-spacing:.045em;margin-bottom:3px}.record-meta-card strong{display:block;color:#243249;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-meta-card strong a{color:#4f46e5;text-decoration:none}.record-money-card .record-meta-icon{background:#eaf9f0;color:#21864b}
.record-convert-banner{display:flex;align-items:center;gap:13px;background:linear-gradient(90deg,#f5f7ff,#fafbff);border:1px solid #dfe4ff;border-radius:13px;padding:13px 15px;margin-bottom:18px}.record-convert-icon{width:39px;height:39px;border-radius:10px;background:#e8e8ff;color:#5146d9;display:grid;place-items:center;flex:0 0 auto}.record-convert-copy{flex:1;min-width:0}.record-convert-copy strong{display:block;color:#26344b;font-size:13px;margin-bottom:2px}.record-convert-copy span{display:block;color:#7a8799;font-size:11.5px}.record-convert-banner .btn{height:38px;font-size:12.5px;padding:0 13px;white-space:nowrap}
.record-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}.record-main-column{min-width:0}.record-side-column{display:flex;flex-direction:column;gap:14px;position:sticky;top:16px}.record-section-card,.record-side-card{background:#fff;border:1px solid #e3e8f0;border-radius:14px;box-shadow:0 5px 20px rgba(20,32,51,.035);margin-bottom:16px;overflow:hidden}.record-section-card{padding:20px}.record-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:14px;margin-bottom:4px;border-bottom:1px solid #edf0f5}.record-section-head h2{margin:2px 0 0;color:#1d2a40;font-size:17px;letter-spacing:-.01em}.record-section-head>i{color:#a3adbc;font-size:15px}.record-section-kicker{display:block;color:#8994a6;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.record-section-head h2 small{font-size:11px;color:#909aab;font-weight:500}.record-section-link{display:inline-flex;align-items:center;gap:6px;color:#4f46e5;text-decoration:none;font-size:12px;font-weight:700}.record-section-link:hover{text-decoration:underline}.record-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.record-detail-item{padding:14px 0;border-bottom:1px solid #f0f2f6;min-width:0}.record-detail-item.wide{grid-column:1/-1}.record-detail-item>span{display:block;color:#8994a6;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.035em;margin-bottom:6px}.record-detail-item>div{color:#28364d;font-size:13px;font-weight:600;line-height:1.5;word-break:break-word}.record-detail-item>div a{color:#4f46e5;text-decoration:none}.record-detail-item>div a:hover{text-decoration:underline}.record-description{padding:15px 2px 3px;color:#526075;font-size:13px;line-height:1.7;min-height:44px}.record-description .muted{font-weight:500}
.record-side-card{padding:17px;margin-bottom:0}.record-side-head{display:flex;justify-content:space-between;align-items:center;color:#26344b;font-size:13px;font-weight:800;padding-bottom:12px;border-bottom:1px solid #edf0f5}.record-side-head i{color:#9aa4b4;font-size:13px}.record-side-list>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f0f2f6}.record-side-list>div:last-child{border-bottom:0;padding-bottom:0}.record-side-list span{color:#8a95a6;font-size:11px}.record-side-list strong{color:#354259;font-size:11.5px;text-align:right}.record-status-card .record-section-kicker{margin-bottom:10px}.record-status-large{display:flex;align-items:center;gap:8px;padding:3px 0 13px}.record-status-large strong{color:#26344b;font-size:15px}.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#94a3b8}.status-dot.success{background:#29a85c}.status-dot.danger{background:#d64d5b}.status-dot.warning{background:#e39a25}.status-dot.neutral{background:#4f46e5}.probability-row{display:flex;justify-content:space-between;color:#7d889a;font-size:11px;margin-top:4px}.probability-row strong{color:#33415a}.probability-bar{height:6px;background:#edf0f5;border-radius:99px;overflow:hidden;margin-top:7px}.probability-bar span{display:block;height:100%;background:#4f46e5;border-radius:99px}.deal-snapshot>div{padding:11px 0;border-bottom:1px solid #f0f2f6}.deal-snapshot>div:last-child{border-bottom:0;padding-bottom:0}.deal-snapshot span{display:block;color:#8994a6;font-size:10.5px;margin-bottom:3px}.deal-snapshot strong{display:block;color:#33415a;font-size:12px;line-height:1.45}.deal-snapshot strong a{color:#4f46e5;text-decoration:none}
.related-records-card{padding-bottom:0}.related-table-wrap{overflow:auto;margin:0 -20px}.related-table{width:100%;border-collapse:collapse;min-width:620px}.related-table th,.related-table td{padding:11px 14px;border-bottom:1px solid #eef1f5;text-align:left;white-space:nowrap;font-size:11.5px}.related-table th{background:#fafbfc;color:#7e899a;text-transform:uppercase;font-size:9.5px;letter-spacing:.04em}.related-table th:first-child,.related-table td:first-child{padding-left:20px}.related-table td{color:#526075}.related-table a{color:#4f46e5;text-decoration:none}.related-title{font-weight:700}.related-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px 15px;color:#7f8a9b}.related-empty i{font-size:27px;color:#b1bac7;margin-bottom:9px}.related-empty strong{color:#455269;font-size:12.5px}.related-empty span{font-size:11.5px;margin-top:3px}
@media(max-width:1100px){.record-content-grid{grid-template-columns:1fr}.record-side-column{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.record-side-card{height:100%}.record-meta-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.record-hero{align-items:flex-start;flex-direction:column;padding:18px}.record-hero-main{width:100%}.record-hero h1{font-size:23px}.record-hero-actions{width:100%}.record-hero-actions .btn,.record-hero-actions form,.record-delete-btn{flex:1}.record-hero-actions .btn,.record-delete-btn{width:100%}.record-meta-grid{grid-template-columns:1fr}.record-detail-grid{grid-template-columns:1fr}.record-detail-item.wide{grid-column:auto}.record-side-column{grid-template-columns:1fr}.record-convert-banner{align-items:flex-start;flex-wrap:wrap}.record-convert-copy{min-width:calc(100% - 52px)}.record-convert-banner .btn{width:100%}.record-section-card{padding:16px}.related-table-wrap{margin:0 -16px}.related-table th:first-child,.related-table td:first-child{padding-left:16px}}

/* ===== Tasks workspace ===== */
.task-drawer-badge{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:6px 10px;border:1px solid #dbe4f0;border-radius:999px;background:#f7f9fc;color:#526176;font-size:12px;font-weight:700;width:max-content}
.task-drawer-badge i{font-size:11px}
.record-type i{margin-right:6px}
.task-priority-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700}
.task-priority-pill.high{background:#fff1f2;color:#be123c}
.task-priority-pill.normal{background:#fff7ed;color:#c2410c}
.task-priority-pill.low{background:#ecfdf5;color:#047857}
.task-side-card .deal-snapshot>div{padding:10px 0;border-bottom:1px solid #eef2f7}
.task-side-card .deal-snapshot>div:last-child{border-bottom:0}
@media (max-width:700px){.task-drawer-badge{margin-top:8px}.task-priority-pill{font-size:11px}}

/* ===== Task Kanban workspace ===== */
.task-board-page{padding:30px 34px 46px;max-width:1600px;margin:0 auto}.task-board-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}.task-board-title-row{display:flex;align-items:center;gap:14px}.task-board-title-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:#eef2ff;color:#315fe9;border:1px solid #dce4ff;font-size:21px}.task-board-title-row h1{margin:0;color:#17243a;font-size:28px;letter-spacing:-.025em}.task-board-title-row p{margin:5px 0 0;color:#7d899d;font-size:13px}.task-board-heading-actions{display:flex;gap:9px;align-items:center}.task-board-secondary{height:42px;border:1px solid #dfe5ee;background:#fff;color:#526176;border-radius:9px;padding:0 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.task-board-secondary:hover{background:#f8fafc}.task-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.task-stat-card{background:#fff;border:1px solid #e3e8f0;border-radius:13px;padding:15px 16px;display:flex;align-items:center;gap:12px;box-shadow:0 5px 18px rgba(20,32,51,.035)}.task-stat-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-size:15px;flex:0 0 auto}.task-stat-icon.blue{background:#edf3ff;color:#3266ea}.task-stat-icon.orange{background:#fff5e8;color:#c87917}.task-stat-icon.red{background:#fff0f1;color:#d34b59}.task-stat-icon.green{background:#ebf9f0;color:#249052}.task-stat-card span{display:block;color:#8a95a6;font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;font-weight:700}.task-stat-card strong{display:block;color:#25334a;font-size:20px;line-height:1.2;margin:2px 0}.task-stat-card small{color:#98a2b1;font-size:10.5px}.task-board-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#fff;border:1px solid #e3e8f0;border-radius:13px;padding:12px;margin-bottom:15px;box-shadow:0 5px 18px rgba(20,32,51,.03)}.task-board-search{height:39px;min-width:270px;flex:1;max-width:410px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #dfe5ee;border-radius:9px;background:#fbfcfe}.task-board-search i{color:#9aa6b8;font-size:13px}.task-board-search input{border:0;outline:0;background:transparent;width:100%;font:inherit;font-size:12.5px;color:#354259}.task-board-search input::placeholder{color:#9aa5b6}.task-board-select{height:39px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;padding:0 30px 0 11px;color:#526176;font:inherit;font-size:12px;outline:0}.task-board-clear{height:39px;border:0;background:#f5f7fb;border-radius:9px;padding:0 11px;color:#68758a;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.task-board-hint{margin-left:auto;color:#8b96a7;font-size:11.5px;display:flex;align-items:center;gap:6px}.task-kanban{display:grid;grid-template-columns:repeat(5,minmax(250px,1fr));gap:12px;align-items:start;overflow-x:auto;padding-bottom:8px}.task-column{background:#f4f6fa;border:1px solid #e1e6ee;border-radius:13px;min-height:420px;overflow:hidden}.task-column-head{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid #e3e7ee;background:#fff}.task-column-title{display:flex;align-items:center;gap:8px;color:#344158;font-size:12px}.task-column-title strong{font-size:12.5px}.task-column-count{min-width:22px;height:21px;padding:0 6px;border-radius:99px;background:#eef1f5;color:#738095;display:inline-grid;place-items:center;font-size:10.5px;font-weight:800}.task-status-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.task-status-dot.not-started{background:#8b97aa}.task-status-dot.progress{background:#3f72ed}.task-status-dot.waiting{background:#df9425}.task-status-dot.deferred{background:#8c63d9}.task-status-dot.completed{background:#2a9c5c}.task-column-add{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;color:#718097;text-decoration:none}.task-column-add:hover{background:#edf1f6;color:#315fe9}.task-drop-zone{padding:10px;min-height:365px;transition:background .15s,box-shadow .15s}.task-drop-zone.drag-over{background:#eaf0ff;box-shadow:inset 0 0 0 2px #a9bcf8}.task-card{background:#fff;border:1px solid #e1e6ee;border-radius:11px;padding:12px;margin-bottom:9px;box-shadow:0 4px 13px rgba(20,32,51,.045);cursor:grab;transition:transform .12s,box-shadow .12s,border-color .12s}.task-card:hover{border-color:#cfd8e6;box-shadow:0 7px 18px rgba(20,32,51,.07);transform:translateY(-1px)}.task-card.dragging{opacity:.55;transform:rotate(1deg);box-shadow:0 15px 30px rgba(20,32,51,.14)}.task-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.task-priority{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:99px;font-size:9.5px;font-weight:800}.task-priority.high{background:#fff0f2;color:#c23d50}.task-priority.normal{background:#fff5e7;color:#bb7116}.task-priority.low{background:#eaf9f0;color:#25864d}.task-card-grip{border:0;background:transparent;color:#a2adbc;padding:2px 3px;cursor:grab}.task-card-title{display:block;color:#26354c;text-decoration:none;font-size:13px;font-weight:800;line-height:1.4;margin-bottom:6px}.task-card-title:hover{color:#315fe9}.task-card-description{margin:0 0 9px;color:#7b8799;font-size:10.5px;line-height:1.5}.task-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #f0f2f6;color:#778398;font-size:10.5px}.task-card-meta>span{display:flex;align-items:center;gap:5px;min-width:0}.task-card-meta .overdue{color:#c94352;font-weight:800}.task-avatar{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;background:#e9efff;color:#315fe9;font-size:8px;font-weight:800}.muted-avatar{background:#f0f2f5;color:#8e99aa}.task-card-links{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 9px}.task-card-links a{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:6px;background:#f6f8fb;color:#667389;text-decoration:none;font-size:9.5px;font-weight:700}.task-card-links a:hover{background:#eef2ff;color:#315fe9}.task-card-actions{display:flex;align-items:center;gap:9px;border-top:1px solid #f0f2f6;padding-top:8px}.task-card-actions a,.task-card-actions button{border:0;background:none;padding:0;color:#6b788d;text-decoration:none;font:inherit;font-size:9.5px;font-weight:700;cursor:pointer}.task-card-actions a:hover{color:#315fe9}.task-card-actions button:hover{color:#d04755}.task-card-actions i{margin-right:3px}.task-column-empty{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a2adbb;gap:7px;font-size:10.5px}.task-column-empty i{font-size:21px;color:#c1c8d2}.task-board-empty{background:#fff;border:1px dashed #d7dee8;border-radius:13px;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8a96a8}.task-board-empty i{font-size:27px;margin-bottom:10px;color:#b2bcc9}.task-board-empty strong{color:#46546b;font-size:13px}.task-board-empty span{font-size:11.5px;margin-top:4px}@media(max-width:1200px){.task-kanban{grid-template-columns:repeat(5,280px)}.task-stat-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.task-board-page{padding:22px 16px 35px}.task-board-heading{align-items:flex-start;flex-direction:column}.task-board-heading-actions{width:100%}.task-board-heading-actions>*{flex:1}.task-board-title-row h1{font-size:24px}.task-stat-grid{grid-template-columns:1fr 1fr}.task-board-toolbar{align-items:stretch}.task-board-search{min-width:100%;max-width:none}.task-board-select,.task-board-clear{flex:1}.task-board-hint{width:100%;margin-left:0}.task-kanban{grid-template-columns:repeat(5,275px)} }

/* ===== Setup / Users & Roles ===== */
.setup-page{padding-bottom:44px}.setup-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 24px}.setup-hero h1{margin:5px 0 6px;font-size:32px;letter-spacing:-.5px}.setup-hero p{margin:0}.setup-hero-icon{width:58px;height:58px;border-radius:16px;background:#eaf1ff;color:#2563eb;display:grid;place-items:center;font-size:22px}.eyebrow{display:inline-flex;align-items:center;gap:7px;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800;color:#64748b}.setup-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}.setup-sidebar{position:sticky;top:20px;background:#fff;border:1px solid #e1e6ee;border-radius:14px;padding:8px;box-shadow:0 5px 18px rgba(20,32,51,.04)}.setup-nav{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:9px;text-decoration:none;color:#526075;font-size:14px;font-weight:600;margin:2px 0}.setup-nav:hover{background:#f5f7fb;color:#2563eb}.setup-nav.active{background:#eaf1ff;color:#2563eb}.setup-nav i:first-child{width:18px;text-align:center}.setup-nav b{margin-left:auto;background:#eef2f7;color:#64748b;border-radius:99px;padding:2px 7px;font-size:11px}.setup-nav.active b{background:#fff;color:#2563eb}.setup-external{margin-left:auto!important;font-size:10px}.setup-main{min-width:0}.setup-section{scroll-margin-top:20px;margin-bottom:28px}.setup-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:14px}.setup-section-head h2{margin:4px 0;font-size:21px}.setup-section-head p{margin:0}.setup-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.setup-stat{background:#fff;border:1px solid #e1e6ee;border-radius:13px;padding:16px;display:flex;align-items:center;gap:12px}.setup-stat-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center}.setup-stat-icon.blue{background:#eaf1ff;color:#2563eb}.setup-stat-icon.purple{background:#f0ebff;color:#7c3aed}.setup-stat-icon.green{background:#e9f7ee;color:#16a34a}.setup-stat-icon.amber{background:#fff4df;color:#d97706}.setup-stat small{display:block;color:#64748b;font-size:12px}.setup-stat strong{font-size:24px;line-height:1.2}.setup-table-wrap{background:#fff;border:1px solid #e1e6ee;border-radius:14px;overflow:auto}.setup-table{width:100%;border-collapse:collapse;min-width:720px}.setup-table th{padding:13px 16px;text-align:left;color:#718096;font-size:12px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #e8edf3}.setup-table td{padding:13px 16px;border-bottom:1px solid #edf0f4;font-size:14px;color:#26364f}.setup-table tbody tr:last-child td{border-bottom:0}.setup-user{display:flex;align-items:center;gap:11px}.setup-user>div{display:flex;flex-direction:column}.setup-user small{color:#718096;font-size:12px;margin-top:2px}.setup-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e8f0ff;color:#2563eb;font-weight:800}.role-chip,.status-chip{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:700}.role-chip{background:#f0ebff;color:#6d28d9}.status-chip.active{background:#e9f7ee;color:#15803d}.status-chip.inactive{background:#f1f4f8;color:#64748b}.status-chip i{font-size:7px}.setup-actions{display:flex;justify-content:flex-end;gap:6px}.icon-action{width:34px;height:34px;border:1px solid #e2e7ee;background:#fff;border-radius:8px;color:#526075;cursor:pointer}.icon-action:hover{background:#f5f7fb;color:#2563eb}.icon-action.danger:hover{color:#dc2626}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.role-card{background:#fff;border:1px solid #e1e6ee;border-radius:14px;padding:17px;box-shadow:0 5px 18px rgba(20,32,51,.035)}.role-card-head{display:flex;align-items:center;gap:11px;min-width:0}.role-card-head h3{margin:0 0 2px;font-size:16px}.role-slug{font-size:12px;color:#94a3b8}.role-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#eaf1ff;color:#2563eb;flex:0 0 auto}.role-icon.system{background:#f0ebff;color:#7c3aed}.system-badge{margin-left:auto;background:#f1f4f8;color:#64748b;border-radius:99px;padding:4px 8px;font-size:10px;font-weight:800;text-transform:uppercase}.role-card p{font-size:13px;color:#64748b;line-height:1.55;min-height:40px;margin:14px 0}.role-meta{display:flex;gap:14px;color:#64748b;font-size:12px;padding:10px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}.role-meta span{display:inline-flex;gap:6px;align-items:center}.permission-preview{display:flex;flex-wrap:wrap;gap:5px;padding:12px 0;min-height:60px}.permission-preview span{background:#f6f8fb;border:1px solid #e7ebf1;border-radius:6px;padding:4px 7px;font-size:11px;color:#526075}.role-card-foot{display:flex;justify-content:space-between;align-items:center}.text-btn{border:0;background:transparent;padding:5px 0;color:#2563eb;font-weight:700;font-size:12px;cursor:pointer}.text-btn.danger{color:#dc2626}.text-btn+.text-btn{margin-left:auto}.role-card-foot form{margin:0}.setup-drawer[hidden]{display:none}.setup-drawer{position:fixed;inset:0;z-index:1200;display:flex;justify-content:flex-end}.setup-drawer-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}.setup-drawer-panel{position:relative;width:min(620px,100vw);height:100%;background:#fff;display:flex;flex-direction:column;box-shadow:-18px 0 45px rgba(15,23,42,.18);animation:setupDrawerIn .18s ease-out}.setup-drawer-panel>header{display:flex;align-items:center;justify-content:space-between;padding:19px 23px;border-bottom:1px solid #e5eaf1;flex:0 0 auto}.setup-drawer-panel h2{margin:4px 0 0;font-size:19px}.setup-drawer-panel h2 i{color:#2563eb;margin-right:7px}.drawer-kicker{display:block;color:#64748b;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.08em}.drawer-close{width:34px;height:34px;border:0;background:#f5f7fa;border-radius:9px;color:#64748b;cursor:pointer}.drawer-close:hover{background:#eaf1ff;color:#2563eb}.setup-drawer-body{overflow-y:auto;padding:20px 23px 30px;flex:1}.drawer-section{padding:0 0 22px}.drawer-section+h3,.drawer-section:not(:first-child){border-top:1px solid #edf0f4;padding-top:20px}.drawer-section h3{font-size:14px;margin:0 0 13px}.drawer-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.drawer-grid label{display:flex;flex-direction:column;gap:6px;color:#34435a;font-size:13px;font-weight:600}.drawer-grid label>span{color:#dc2626}.drawer-grid label small{font-weight:400;color:#94a3b8;margin-left:4px}.drawer-grid .full{grid-column:1/-1}.drawer-grid input,.drawer-grid select,.drawer-grid textarea{font:inherit;font-weight:400;color:#1f2d43;background:#fff;border:1px solid #dce3ec;border-radius:9px;padding:10px 11px;outline:none}.drawer-grid input:focus,.drawer-grid select:focus,.drawer-grid textarea:focus{border-color:#7aa2f7;box-shadow:0 0 0 3px rgba(37,99,235,.09)}.setup-drawer-panel>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 23px;border-top:1px solid #e5eaf1;background:#f8fafc;flex:0 0 auto}.btn.secondary{background:#fff;color:#475569;border:1px solid #dce3ec}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.permission-check{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e5eaf1;border-radius:9px;cursor:pointer}.permission-check:has(input:checked){border-color:#9dbcf8;background:#f5f8ff}.permission-check input{margin-top:3px;accent-color:#2563eb}.permission-check span{display:flex;flex-direction:column;gap:2px}.permission-check strong{font-size:12px}.permission-check small{font-size:10px;color:#94a3b8}.drawer-open{overflow:hidden}@keyframes setupDrawerIn{from{transform:translateX(18px);opacity:.7}to{transform:none;opacity:1}}
@media(max-width:1100px){.setup-stats{grid-template-columns:repeat(2,1fr)}.role-grid{grid-template-columns:1fr 1fr}}@media(max-width:800px){.setup-layout{grid-template-columns:1fr}.setup-sidebar{position:static;display:flex;overflow:auto}.setup-nav{white-space:nowrap}.setup-nav span{display:inline}.role-grid{grid-template-columns:1fr}}@media(max-width:600px){.setup-hero{align-items:flex-start}.setup-stats{grid-template-columns:1fr 1fr}.drawer-grid,.permission-grid{grid-template-columns:1fr}.drawer-grid .full{grid-column:auto}.setup-drawer-panel>header,.setup-drawer-body,.setup-drawer-panel>footer{padding-left:16px;padding-right:16px}.setup-section-head{align-items:flex-start;flex-direction:column}.setup-section-head .btn{width:100%}}

/* Setup > Top Menu */
.nav-item-icon{margin-right:7px;font-size:13px;opacity:.8}
.nav-settings-card{background:#fff;border:1px solid #e1e6ee;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px rgba(20,32,51,.035)}
.nav-settings-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-bottom:1px solid #e8edf3}
.nav-settings-head strong{display:block;color:#26364f;font-size:15px;margin-bottom:3px}.nav-settings-head span{display:block;color:#718096;font-size:12px}
.nav-settings-list{padding:8px}.nav-setting-row{display:flex;align-items:center;gap:12px;padding:12px 11px;border:1px solid transparent;border-radius:10px;background:#fff;transition:.12s;user-select:none}.nav-setting-row+.nav-setting-row{margin-top:5px}.nav-setting-row:hover{background:#f8fafc;border-color:#e7ebf1}.nav-setting-row.dragging{opacity:.55}.nav-setting-row.drag-over{border-color:#7aa2f7;background:#f5f8ff}
.nav-drag{width:22px;color:#a1adbd;text-align:center;cursor:grab}.nav-drag:active{cursor:grabbing}.nav-setting-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#eaf1ff;color:#2563eb;flex:0 0 auto}.nav-setting-copy{min-width:0;flex:1}.nav-setting-copy strong{display:block;font-size:14px;color:#26364f}.nav-setting-copy small{display:block;color:#94a3b8;font-size:11px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.switch{display:flex;align-items:center;gap:8px;cursor:pointer;flex:0 0 auto}.switch input{position:absolute;opacity:0;pointer-events:none}.switch span{width:40px;height:23px;border-radius:99px;background:#cbd5e1;position:relative;transition:.15s}.switch span:after{content:"";position:absolute;width:17px;height:17px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s}.switch input:checked+span{background:#2563eb}.switch input:checked+span:after{transform:translateX(17px)}.switch em{font-style:normal;font-size:11px;font-weight:700;color:#64748b;min-width:28px}.nav-settings-note{display:flex;gap:9px;align-items:flex-start;padding:13px 18px;border-top:1px solid #edf0f4;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.5}.nav-settings-note i{color:#2563eb;margin-top:2px}.nav-settings-note strong{color:#475569}
@media(max-width:600px){.nav-settings-head{align-items:flex-start;flex-direction:column}.nav-setting-row{gap:8px}.nav-setting-copy small{max-width:120px}.switch em{display:none}}

/* ===== CRM Activities & Follow-up ===== */
.activity-subtitle{margin:4px 0 0;color:#7a8799;font-size:12px}.activity-head{align-items:flex-start}.activity-add-btn{height:36px;padding:0 12px;font-size:12px;white-space:nowrap}.activity-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:38px 20px 30px;color:#788599}.activity-empty-icon{width:48px;height:48px;border-radius:14px;background:#eef3ff;color:#4f46e5;display:grid;place-items:center;font-size:18px;margin-bottom:10px}.activity-empty strong{color:#2a3850;font-size:14px;margin-bottom:4px}.activity-empty span{font-size:12px;max-width:430px;line-height:1.6;margin-bottom:14px}.activity-empty .btn{font-size:12px;padding:9px 12px}.activity-timeline{position:relative;padding:4px 0 4px 4px}.activity-timeline:before{content:"";position:absolute;left:19px;top:18px;bottom:18px;width:1px;background:#e4e9f1}.activity-item{position:relative;display:flex;gap:14px;padding:14px 2px}.activity-marker{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 32px;background:#eef2ff;color:#4f46e5;border:3px solid #fff;box-shadow:0 0 0 1px #e2e7f0;z-index:1;font-size:12px}.activity-call{background:#edf7ff;color:#1477b8}.activity-meeting{background:#f4efff;color:#7c3aed}.activity-note{background:#fff8df;color:#b77900}.activity-email{background:#eefbf3;color:#21864b}.activity-follow_up{background:#eef2ff;color:#4f46e5}.activity-reminder{background:#fff0f2;color:#c53b4b}.activity-body{min-width:0;flex:1;background:#fbfcfe;border:1px solid #edf0f5;border-radius:11px;padding:11px 12px}.activity-item:hover .activity-body{border-color:#dfe5ef;background:#fff}.activity-item.is-complete .activity-body{opacity:.78}.activity-item.is-overdue .activity-body{border-color:#f1cbd0;background:#fffafb}.activity-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.activity-topline>div:first-child{display:flex;align-items:center;gap:6px;min-width:0}.activity-type{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#667388}.activity-topline time{font-size:10px;color:#9aa4b3}.activity-dot{color:#c7cdd6}.activity-body h3{margin:6px 0 3px;color:#25344c;font-size:13.5px}.activity-body p{margin:0;color:#647187;font-size:12px;line-height:1.6;white-space:normal}.activity-meta{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:9px;color:#8490a1;font-size:10.5px}.activity-meta>span{display:inline-flex;align-items:center;gap:5px}.activity-meta i{font-size:10px}.activity-due.overdue{color:#c53b4b;font-weight:700}.activity-priority{padding:3px 7px;border-radius:99px;background:#f1f4f8;color:#667388}.activity-priority.priority-high{background:#fff0f1;color:#c53b4b}.activity-priority.priority-low{background:#eaf8ef;color:#21864b}.activity-actions{display:flex;gap:4px;flex:0 0 auto}.activity-actions form{margin:0}.activity-icon-btn{width:27px;height:27px;border:1px solid #e3e8ef;background:#fff;color:#718096;border-radius:7px;display:grid;place-items:center;cursor:pointer}.activity-icon-btn:hover{border-color:#cbd6e5;color:#4f46e5;background:#f7f9ff}.activity-icon-btn.danger:hover{border-color:#f0c7cd;color:#c53b4b;background:#fff5f6}
.activity-drawer-backdrop[hidden]{display:none}.activity-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(2px);z-index:940}.activity-drawer{position:fixed;z-index:941;top:0;right:0;width:min(560px,100vw);height:100vh;background:#fff;box-shadow:-18px 0 50px rgba(15,23,42,.18);display:flex;flex-direction:column;transform:translateX(102%);transition:transform .2s ease}.activity-drawer.is-open{transform:translateX(0)}.activity-drawer-head{min-height:92px;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e7ebf1}.activity-drawer-title{display:flex;align-items:center;gap:12px}.activity-drawer-icon{width:44px;height:44px;border-radius:12px;background:#eef2ff;color:#4f46e5;display:grid;place-items:center}.activity-drawer-title>div:last-child>span{display:block;color:#7d899a;text-transform:uppercase;letter-spacing:.07em;font-size:9.5px;font-weight:800}.activity-drawer-title h2{margin:2px 0 0;color:#1b2940;font-size:19px}.activity-drawer-close{width:36px;height:36px;border:0;background:transparent;border-radius:8px;color:#6c788b;cursor:pointer;font-size:17px}.activity-drawer-close:hover{background:#f2f5f9}.activity-drawer-form{display:flex;flex-direction:column;min-height:0;flex:1}.activity-drawer-body{flex:1;overflow-y:auto;background:#f7f9fc;padding:22px}.activity-form-card{background:#fff;border:1px solid #e3e8ef;border-radius:14px;padding:20px;box-shadow:0 4px 16px rgba(20,32,51,.035)}.activity-form-heading{padding-bottom:15px;margin-bottom:18px;border-bottom:1px solid #edf0f4}.activity-form-heading strong{display:block;color:#1d2a40;font-size:15px}.activity-form-heading span{display:block;color:#7c8798;font-size:11.5px;margin-top:3px}.activity-form-card label{display:block;color:#27364d;font-size:12.5px;font-weight:650;margin-bottom:16px}.activity-form-card label em{color:#dc2626;font-style:normal}.activity-form-card input,.activity-form-card textarea,.activity-form-card select{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dbe2eb;border-radius:9px;background:#fff;color:#1d2a3e;font:inherit;font-size:13px}.activity-form-card textarea{min-height:130px;resize:vertical}.activity-form-card input:focus,.activity-form-card textarea:focus,.activity-form-card select:focus{outline:0;border-color:#78a6ff;box-shadow:0 0 0 3px rgba(37,99,235,.09)}.activity-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.activity-drawer-tip{display:flex;gap:9px;margin-top:12px;padding:12px 13px;border:1px solid #dfe5ff;background:#f7f8ff;border-radius:10px;color:#69768a;font-size:11.5px;line-height:1.55}.activity-drawer-tip i{color:#4f46e5;margin-top:2px}.activity-drawer-foot{min-height:76px;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 22px;border-top:1px solid #e3e8ef;background:#fff;box-shadow:0 -8px 22px rgba(20,32,51,.045)}body.activity-open{overflow:hidden}
@media(max-width:700px){.activity-section-card{}.activity-head{flex-direction:column}.activity-add-btn{width:100%}.activity-topline{align-items:flex-start}.activity-drawer{width:100%}.activity-drawer-head{padding:15px 18px}.activity-drawer-body{padding:16px 14px}.activity-drawer-foot{padding:12px 14px}.activity-drawer-foot .btn{flex:1}.activity-form-grid{grid-template-columns:1fr}.activity-body{padding:10px}.activity-timeline:before{left:19px}}

/* CRM dashboard 2.0 */
.dx-row-2{grid-template-columns:1.35fr .65fr}
.dx-card-sub{margin:3px 0 0;font-size:12px}
.dx-health-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 18px}
.dx-health-card{display:flex;align-items:center;gap:13px;padding:18px 20px}
.dx-health-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:16px;flex:0 0 auto}
.dx-health-icon.blue{background:#e8f0ff;color:#2563eb}.dx-health-icon.purple{background:#efe9ff;color:#7c3aed}.dx-health-icon.amber{background:#fff2d9;color:#d97706}.dx-health-icon.green{background:#e4f6ea;color:#16a34a}
.dx-health-card small,.dx-health-card span{display:block;color:#667085;font-size:12px}.dx-health-card strong{display:block;font-size:23px;line-height:1.25;margin:2px 0}
.dx-team-table{display:grid;gap:2px}.dx-team-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f5}.dx-team-row:last-child{border-bottom:0}.dx-team-name{flex:1;min-width:0}.dx-team-name strong,.dx-team-name small{display:block}.dx-team-name small{font-size:12px;color:#667085;margin-top:2px}.dx-team-won{font-size:13px}.dx-health-bars{display:grid;gap:20px;margin:14px 0 20px}.dx-health-bars>div>span{display:flex;justify-content:space-between;margin-bottom:7px;font-size:13px}.dx-health-bars>div>span strong{font-weight:700}.dx-health-bars i{display:block;height:9px;background:#eef1f6;border-radius:99px;overflow:hidden}.dx-health-bars em{display:block;height:100%;background:#2563eb;border-radius:99px}.dx-health-bars em.done{background:#16a34a}.dx-health-bars em.danger{background:#dc2626}.danger-text{color:#dc2626!important}.dx-health-foot{display:flex;justify-content:space-between;border-top:1px solid #edf0f5;padding-top:13px;color:#667085;font-size:13px}.dx-health-foot strong{color:#142033}
@media(max-width:1200px){.dx-health-grid{grid-template-columns:repeat(2,1fr)}.dx-row-2{grid-template-columns:1fr}}
@media(max-width:760px){.dx-health-grid{grid-template-columns:1fr}.dx-health-card{padding:15px}}

/* ===== Notification center ===== */
.notification-menu{position:relative;display:block}
.notification-menu>summary{list-style:none;cursor:pointer}
.notification-menu>summary::-webkit-details-marker{display:none}
.bell{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;color:#5f6b7a;background:#f7f8fa;transition:.18s ease}
.bell:hover{background:#eef1f5;color:#111827}
.notification-count{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.notification-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:390px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #e7eaf0;border-radius:16px;box-shadow:0 20px 50px rgba(15,23,42,.14);overflow:hidden;z-index:1200}
.notification-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #edf0f4;background:#fbfcfd}
.notification-head strong{display:block;font-size:14px;color:#111827}.notification-head small{display:block;color:#8a94a3;margin-top:3px;font-size:11px}.notification-mark{border:0;background:transparent;color:#2563eb;font-size:11px;font-weight:700;cursor:pointer}
.notification-list{max-height:430px;overflow:auto}.notification-item{margin:0;border-bottom:1px solid #f0f2f5}.notification-item:last-child{border-bottom:0}.notification-item button{width:100%;display:flex;gap:11px;align-items:flex-start;padding:14px 16px;border:0;background:#fff;text-align:left;cursor:pointer;position:relative}.notification-item button:hover{background:#f8fafc}.notification-item.unread button{background:#f7fbff}.notification-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#eef4ff;color:#3567d6;display:flex;align-items:center;justify-content:center;font-size:13px}.notification-copy{min-width:0;display:block;padding-right:8px}.notification-copy strong{display:block;color:#1f2937;font-size:12px;line-height:1.4}.notification-copy small{display:block;color:#687385;font-size:11px;margin-top:3px;line-height:1.45}.notification-copy em{display:block;color:#9aa3af;font-size:10px;font-style:normal;margin-top:5px}.notification-dot{width:7px;height:7px;border-radius:50%;background:#2563eb;position:absolute;right:15px;top:18px}.notification-empty{padding:40px 20px;text-align:center;color:#8a94a3}.notification-empty i{font-size:26px;display:block;margin-bottom:10px;color:#b4bcc7}.notification-empty strong{display:block;color:#374151;font-size:13px}.notification-empty span{display:block;font-size:11px;margin-top:4px}
@media(max-width:600px){.notification-dropdown{position:fixed;right:12px;left:12px;top:68px;width:auto;max-width:none}.notification-list{max-height:calc(100vh - 145px)}}

/* ===== CSV Import Drawer ===== */
.crm-import-drawer[hidden]{display:none!important}
body.import-drawer-open{overflow:hidden}
.import-check{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;margin-top:4px;color:#2b3a51;font-size:13px}
.import-check input{width:17px;height:17px;margin-top:1px;accent-color:#2563eb;flex:0 0 auto}
.import-check span{display:flex;flex-direction:column;gap:3px}
.import-check small{color:#7a8799;font-size:11.5px;font-weight:400;line-height:1.45}
.import-field-list{border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden}
.import-field-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,1fr) auto;align-items:center;gap:12px;padding:10px 13px;border-bottom:1px solid #edf1f5;font-size:12.5px}
.import-field-row:last-child{border-bottom:0}
.import-field-row code{font-size:11px;color:#64748b;background:#f5f7fa;border:1px solid #e8edf2;padding:3px 6px;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.import-required{font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;color:#b45309;background:#fff7ed;border:1px solid #fed7aa;padding:3px 6px;border-radius:999px}
.import-example-box ul{margin:0;padding-left:19px;color:#66758b;font-size:12.5px;line-height:1.75}
.import-example-box li::marker{color:#2563eb}
@media(max-width:680px){.import-field-row{grid-template-columns:1fr;gap:5px}.import-required{width:max-content}}
/* Global search 2.0 */
.dd-group{display:flex;align-items:center;gap:7px}
.dd-group:before{content:'⌕';font-size:13px;color:#8b96a8}

/* Advanced filters / saved views */
.crm-filter-drawer .crm-drawer{max-width:720px}.advanced-condition-list{display:flex;flex-direction:column;gap:10px}.advanced-condition-row{display:grid;grid-template-columns:1.15fr 1fr 1.2fr 38px;gap:8px;align-items:center}.advanced-condition-row select,.advanced-condition-row input,.advanced-sort-grid select{height:40px;border:1px solid #dfe5ed;border-radius:8px;background:#fff;color:#243249;padding:0 11px;font-size:13px;outline:none}.advanced-condition-row select:focus,.advanced-condition-row input:focus,.advanced-sort-grid select:focus{border-color:#a9a4ff;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.advanced-condition-row input:disabled{background:#f5f7fa;color:#9aa4b4}.advanced-remove{width:38px;height:38px;border:1px solid #e3e7ee;background:#fff;border-radius:8px;color:#8b96a8;cursor:pointer}.advanced-remove:hover{color:#dc3d56;background:#fff5f6;border-color:#f1c5cd}.advanced-sort-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.saved-view-list{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.saved-view-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 13px;border:1px solid #e2e7ef;border-radius:10px;background:#fbfcfe}.saved-view-copy{min-width:0}.saved-view-copy strong{display:block;color:#243249;font-size:13px}.saved-view-copy small{display:block;color:#8a95a5;font-size:11.5px;margin-top:3px}.saved-view-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.saved-view-actions .btn{height:34px;padding:0 12px;font-size:12px}.saved-view-delete{width:34px;height:34px;border:1px solid #e3e7ee;background:#fff;border-radius:7px;color:#8c97a7;cursor:pointer}.saved-view-delete:hover{color:#d53b52;border-color:#f0c8cf;background:#fff6f7}.saved-view-empty{border:1px dashed #dfe5ed;border-radius:10px;padding:28px 18px;text-align:center;color:#8994a6}.saved-view-empty i{font-size:22px;display:block;margin-bottom:8px}.saved-view-empty strong{display:block;color:#4b586b;font-size:13px}.saved-view-empty span{display:block;font-size:12px;margin-top:4px}@media(max-width:700px){.advanced-condition-row{grid-template-columns:1fr}.advanced-remove{width:100%}.advanced-sort-grid{grid-template-columns:1fr}.saved-view-item{align-items:flex-start;flex-direction:column;width:100%}}
.assignment-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:18px}.assignment-card{background:#fff;border:1px solid #e7eaf0;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(20,30,50,.04)}.assignment-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}.assignment-card-head strong{font-size:15px}.assignment-card-head span{font-size:12px;color:#89919f}.assignment-form{display:grid;gap:12px}.assignment-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#4c5563}.assignment-form input,.assignment-form select{width:100%;padding:10px 11px;border:1px solid #dfe3ea;border-radius:9px;background:#fff;font:inherit;font-weight:400}.assignment-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.assignment-rule-list{display:grid;gap:9px}.assignment-rule-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #edf0f4;border-radius:12px;padding:12px}.assignment-rule-row>div:first-child{min-width:0}.assignment-rule-row strong,.assignment-rule-row small{display:block}.assignment-rule-row small{color:#7b8491;margin-top:4px;line-height:1.45}.assignment-rule-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.assignment-empty{min-height:180px;display:grid;place-items:center;text-align:center;color:#89919f;gap:5px}.assignment-empty i{font-size:28px}.assignment-empty strong{color:#4c5563}@media(max-width:900px){.assignment-grid{grid-template-columns:1fr}}@media(max-width:560px){.assignment-two{grid-template-columns:1fr}.assignment-rule-row{align-items:flex-start;flex-direction:column}.assignment-rule-actions{width:100%;justify-content:flex-end}}
.assignment-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:18px}.assignment-card{background:#fff;border:1px solid #e7eaf0;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(20,30,50,.04)}.assignment-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}.assignment-card-head strong{font-size:15px}.assignment-card-head span{font-size:12px;color:#89919f}.assignment-form{display:grid;gap:12px}.assignment-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#4c5563}.assignment-form input,.assignment-form select{width:100%;padding:10px 11px;border:1px solid #dfe3ea;border-radius:9px;background:#fff;font:inherit;font-weight:400}.assignment-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.assignment-rule-list{display:grid;gap:9px}.assignment-rule-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #edf0f4;border-radius:12px;padding:12px}.assignment-rule-row>div:first-child{min-width:0}.assignment-rule-row strong,.assignment-rule-row small{display:block}.assignment-rule-row small{color:#7b8491;margin-top:4px;line-height:1.45}.assignment-rule-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.assignment-empty{min-height:180px;display:grid;place-items:center;text-align:center;color:#89919f;gap:5px}.assignment-empty i{font-size:28px}.assignment-empty strong{color:#4c5563}@media(max-width:900px){.assignment-grid{grid-template-columns:1fr}}@media(max-width:560px){.assignment-two{grid-template-columns:1fr}.assignment-rule-row{align-items:flex-start;flex-direction:column}.assignment-rule-actions{width:100%;justify-content:flex-end}}
/* ===== Setup dedicated pages ===== */
.setup-sidebar-title{display:flex;align-items:center;gap:9px;padding:12px 12px 13px;border-bottom:1px solid #edf0f4;margin-bottom:4px;color:#1f2d43;font-size:13px;font-weight:800}.setup-sidebar-title i{color:#2563eb}.setup-stat-link{text-decoration:none;color:inherit;position:relative;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.setup-stat-link:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(20,32,51,.07);border-color:#cfd9e8}.setup-stat-link>div{min-width:0;flex:1}.setup-stat-link em{display:block;font-style:normal;color:#94a3b8;font-size:11px;margin-top:2px}.setup-stat-link>i{color:#94a3b8;font-size:12px}.setup-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.setup-quick-card{display:flex;align-items:center;gap:13px;padding:16px;background:#fff;border:1px solid #e1e6ee;border-radius:13px;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.setup-quick-card:hover{border-color:#cbd8ee;box-shadow:0 8px 24px rgba(20,32,51,.06);transform:translateY(-1px)}.setup-quick-card>span{width:40px;height:40px;border-radius:11px;background:#eaf1ff;color:#2563eb;display:grid;place-items:center;flex:0 0 auto}.setup-quick-card>div{min-width:0;flex:1}.setup-quick-card strong{display:block;font-size:14px}.setup-quick-card small{display:block;color:#718096;font-size:12px;line-height:1.45;margin-top:3px}.setup-quick-card>i{color:#94a3b8;font-size:12px}.setup-page-actions{display:flex;gap:8px;align-items:center}.setup-empty{padding:42px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;color:#64748b}.setup-empty i{font-size:25px;color:#94a3b8;margin-bottom:3px}.setup-empty strong{color:#334155}.setup-empty span{font-size:12px}@media(max-width:1000px){.setup-layout{grid-template-columns:190px minmax(0,1fr)}.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.setup-hero{align-items:flex-start}.setup-hero .btn{margin-top:2px}.setup-layout{grid-template-columns:1fr}.setup-sidebar{position:static;display:flex;overflow-x:auto;gap:4px;padding:6px}.setup-sidebar-title{display:none}.setup-nav{white-space:nowrap;flex:0 0 auto;margin:0}.setup-nav b{display:none}.setup-main{min-width:0}.setup-stats{grid-template-columns:repeat(2,1fr)}.setup-quick-grid,.role-grid{grid-template-columns:1fr}.setup-section-head{align-items:flex-start;flex-direction:column}.setup-page-actions{width:100%}}@media(max-width:520px){.setup-stats{grid-template-columns:1fr}.setup-hero{flex-direction:column}.setup-hero-icon{display:none}}


/* Opportunity communication actions */
.opportunity-quick-actions{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid var(--border,#e7eaf0);border-radius:12px;background:var(--surface,#fff);box-shadow:0 4px 14px rgba(15,23,42,.05)}
.opportunity-quick-label{display:inline-flex;align-items:center;gap:6px;padding:0 7px;color:var(--muted,#667085);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.quick-action-btn{border:1px solid transparent;border-radius:8px;background:#f8fafc;color:#344054;display:inline-flex;align-items:center;gap:6px;padding:8px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:.18s ease}
.quick-action-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,23,42,.08)}
.quick-action-btn.call:hover:not(:disabled){background:#eefbf3;border-color:#b7ebc8;color:#16733d}
.quick-action-btn.whatsapp:hover:not(:disabled){background:#edfdf5;border-color:#b7efd0;color:#12804b}
.quick-action-btn.email:hover:not(:disabled){background:#eef6ff;border-color:#bfdcff;color:#155eaa}
.quick-action-btn.sms:hover:not(:disabled){background:#f5f1ff;border-color:#ddd0ff;color:#6541b8}
.quick-action-btn:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.record-hero-actions{flex-wrap:wrap}.opportunity-quick-actions{order:3;width:100%;overflow:auto}.opportunity-quick-label{display:none}.quick-action-btn{padding:8px 11px}}
@media(max-width:560px){.quick-action-btn span{display:none}.quick-action-btn{width:36px;height:36px;justify-content:center;padding:0}.opportunity-quick-actions{gap:5px}}

/* Project Management */
.pm-page,.pm-detail-page{max-width:1480px;margin:0 auto;padding:28px 0 60px}.pm-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:24px}.pm-kicker,.pm-card-kicker{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:11px;font-weight:800;color:#7b8794;margin-bottom:6px}.pm-kicker i{margin-right:6px}.pm-head h1{margin:0;font-size:30px;letter-spacing:-.03em}.pm-head p{margin:7px 0 0;color:#718096}.pm-head-actions{display:flex;gap:10px}.pm-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px}.pm-kpi,.pm-card,.pm-detail-kpis>div{background:#fff;border:1px solid #e7ebf0;border-radius:16px;box-shadow:0 5px 18px rgba(30,41,59,.04)}.pm-kpi{padding:18px}.pm-kpi span,.pm-kpi small{display:block;color:#778394;font-size:12px}.pm-kpi strong{display:block;font-size:25px;margin:8px 0 4px;letter-spacing:-.03em}.pm-kpi small i{margin-right:5px}.pm-kpi.danger strong,.pm-task-health .danger strong{color:#d64545}.pm-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.pm-card-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 22px;border-bottom:1px solid #edf0f3}.pm-card-head h2{margin:0;font-size:18px}.pm-card-head a{font-size:13px;font-weight:700;color:#5666d8;text-decoration:none}.pm-card-head a i{margin-left:5px}.pm-task-health{display:grid;grid-template-columns:repeat(4,1fr);padding:24px}.pm-task-health div{padding:6px 14px;border-right:1px solid #edf0f3}.pm-task-health div:last-child{border-right:0}.pm-task-health strong{display:block;font-size:25px}.pm-task-health span{font-size:12px;color:#7a8795}.pm-big-progress{padding:26px 24px}.pm-big-progress>strong{font-size:34px;letter-spacing:-.04em}.pm-big-progress small{display:block;color:#7b8794;margin-top:10px}.pm-progress{height:8px;background:#edf1f5;border-radius:999px;overflow:hidden}.pm-progress span{display:block;height:100%;border-radius:inherit;background:#5868dc}.pm-big-progress .pm-progress{margin-top:12px}.pm-outline{border:1px solid #dfe4ea;padding:8px 12px;border-radius:9px!important;color:#495466!important}.pm-project-table-wrap{overflow:auto}.pm-project-table{width:100%;border-collapse:collapse;min-width:1080px}.pm-project-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#87919d;text-align:left;padding:12px 16px;background:#fafbfc;border-bottom:1px solid #edf0f3}.pm-project-table td{padding:15px 16px;border-bottom:1px solid #edf0f3;font-size:13px;vertical-align:middle}.pm-project-table tbody tr:hover{background:#fbfcfe}.pm-project-name{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1f2937}.pm-project-name small{display:block;color:#8a95a2;font-size:11px;margin-top:3px}.pm-project-icon,.pm-folder-avatar{display:grid;place-items:center;background:#eef1ff;color:#5666d8}.pm-project-icon{width:34px;height:34px;border-radius:9px}.pm-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 9px;background:#f2f4f7;font-size:11px;font-weight:700;white-space:nowrap}.pm-status i{width:6px;height:6px;border-radius:50%;background:#8b95a3}.pm-status.in-progress i,.pm-status.planning i{background:#5666d8}.pm-status.completed i{background:#2ca56a}.pm-status.on-hold i{background:#d39b2a}.pm-status.cancelled i{background:#d64545}.pm-dates{white-space:nowrap;color:#687585;font-size:12px}.pm-row-progress{display:flex;align-items:center;gap:8px;min-width:125px}.pm-row-progress .pm-progress{width:85px}.pm-row-progress strong{font-size:11px}.pm-view{color:#5666d8;font-weight:700;text-decoration:none;white-space:nowrap}.pm-empty{text-align:center;padding:50px 20px;color:#7a8795}.pm-empty i{font-size:34px;color:#a1aab6}.pm-empty h3{margin:12px 0 5px;color:#263244}.pm-empty p{margin:0 0 16px}.pm-empty.compact{padding:36px}.pm-breadcrumb{display:flex;gap:10px;align-items:center;color:#8a95a2;font-size:13px;margin-bottom:18px}.pm-breadcrumb a{color:#5967d7;text-decoration:none;font-weight:700}.pm-detail-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 28px;background:#fff;border:1px solid #e7ebf0;border-radius:18px;box-shadow:0 5px 18px rgba(30,41,59,.04)}.pm-detail-title{display:flex;align-items:center;gap:16px}.pm-folder-avatar{width:58px;height:58px;border-radius:15px;font-size:24px}.pm-detail-title>div:last-child>span:first-child{font-size:10px;letter-spacing:.09em;font-weight:800;color:#8994a1}.pm-detail-title h1{margin:5px 0 7px;font-size:28px;letter-spacing:-.03em}.pm-detail-sub{display:flex;align-items:center;gap:9px;color:#778394;font-size:12px}.pm-detail-actions{display:flex;gap:10px}.pm-detail-kpis{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:14px;margin:18px 0}.pm-detail-kpis>div{padding:18px 20px}.pm-detail-kpis span,.pm-detail-kpis small{display:block;color:#7b8794;font-size:11px}.pm-detail-kpis strong{display:block;font-size:22px;margin:6px 0}.pm-detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:18px}.pm-task-list{padding:4px 0}.pm-task-row{display:flex;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #edf0f3;text-decoration:none;color:#273244}.pm-task-row:last-child{border-bottom:0}.pm-task-row:hover{background:#fafbff}.pm-task-check{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f0f2f5;color:#7b8794}.pm-task-check.done{background:#e9f7f0;color:#2ca56a}.pm-task-copy{flex:1;min-width:0}.pm-task-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-task-copy small{display:block;color:#8994a1;margin-top:3px}.pm-task-copy small::first-letter{}.pm-task-status{font-size:11px;font-weight:700;padding:6px 9px;border-radius:999px;background:#f1f3f6;white-space:nowrap}.pm-task-status.completed{background:#e9f7f0;color:#278b5b}.pm-task-status.in-progress{background:#eef1ff;color:#5363d5}.pm-task-status.deferred,.pm-task-status.waiting{background:#fff6e6;color:#a16f16}.pm-task-arrow{color:#a0a8b2;font-size:11px}.pm-info-list{padding:6px 20px 15px}.pm-info-list>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #edf0f3}.pm-info-list>div:last-child{border-bottom:0}.pm-info-list span{color:#87919d;font-size:12px}.pm-info-list strong{text-align:right;font-size:12px;max-width:60%;word-break:break-word}.pm-open-record{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;padding:13px;border:1px dashed #cfd5de;border-radius:12px;text-decoration:none;color:#5666d8;font-weight:700;font-size:13px;background:#fff}.pm-open-record:hover{background:#fafbff}
@media (max-width:1200px){.pm-kpis{grid-template-columns:repeat(3,1fr)}}
@media (max-width:800px){.pm-page,.pm-detail-page{padding:20px 0 45px}.pm-head,.pm-detail-hero{align-items:flex-start;flex-direction:column}.pm-head-actions,.pm-detail-actions{width:100%;flex-wrap:wrap}.pm-head-actions .btn,.pm-detail-actions .btn{flex:1}.pm-kpis{grid-template-columns:repeat(2,1fr)}.pm-grid-two,.pm-detail-grid{grid-template-columns:1fr}.pm-detail-kpis{grid-template-columns:1fr 1fr}.pm-detail-title h1{font-size:23px}.pm-task-status{display:none}}
@media (max-width:520px){.pm-kpis,.pm-detail-kpis{grid-template-columns:1fr}.pm-task-health{grid-template-columns:1fr 1fr;gap:15px}.pm-task-health div{border-right:0}.pm-detail-actions .btn{flex:1 1 100%}}
/* Custom Reports & Report Dashboards */
.report-page{padding:24px 0 48px}.report-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px}.report-hero.compact{align-items:center}.report-hero h1{margin:4px 0 6px;font-size:30px;letter-spacing:-.5px}.report-hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.report-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-info-card{background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:18px;display:flex;align-items:center;gap:13px;box-shadow:0 6px 20px rgba(15,23,42,.04)}.report-info-card>span{width:42px;height:42px;border-radius:12px;background:#f1f5f9;display:grid;place-items:center;color:#2563eb}.report-info-card small,.report-info-card strong{display:block}.report-info-card small{color:#64748b;font-size:12px}.report-info-card strong{font-size:22px;margin-top:2px}.report-card,.report-result-card,.report-builder-card{background:#fff;border:1px solid #e7ebf1;border-radius:18px;box-shadow:0 8px 28px rgba(15,23,42,.045);margin-bottom:18px}.report-card{padding:22px}.report-card-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:16px}.report-card-head h2{margin:0 0 4px;font-size:18px}.report-list{border-top:1px solid #edf0f4}.report-list-item,.dashboard-list-item{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid #edf0f4}.report-list-item:last-child,.dashboard-list-item:last-child{border-bottom:0}.report-list-icon,.dashboard-list-icon{width:42px;height:42px;border-radius:12px;background:#eff6ff;color:#2563eb;display:grid;place-items:center}.report-list-copy p,.dashboard-list-item p{margin:5px 0;color:#64748b;font-size:13px}.report-list-copy small,.dashboard-list-item small{color:#94a3b8}.report-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-title-row a{font-weight:700;color:#0f172a;text-decoration:none}.report-title-row a:hover{color:#2563eb}.report-badge{font-size:11px;border-radius:999px;padding:4px 8px;background:#eef2ff;color:#4338ca}.report-badge.shared{background:#ecfdf5;color:#047857}.report-list-actions{display:flex;gap:10px}.text-btn{color:#475569;text-decoration:none;font-size:13px;font-weight:600}.text-btn:hover{color:#2563eb}.report-empty,.dashboard-empty{text-align:center;padding:52px 20px;color:#64748b}.report-empty i,.dashboard-empty i{font-size:30px;color:#94a3b8;display:block;margin-bottom:12px}.report-empty strong,.report-empty span,.dashboard-empty strong,.dashboard-empty span{display:block}.report-empty strong,.dashboard-empty strong{color:#0f172a;font-size:16px}.report-empty span,.dashboard-empty span{margin:6px auto 16px;max-width:560px;font-size:13px}.report-empty.small{padding:28px}.report-builder{max-width:1100px;margin:0 auto}.report-builder-card{padding:24px}.builder-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px}.builder-head>span{width:32px;height:32px;border-radius:10px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:12px;font-weight:800}.builder-head h2{margin:0 0 4px;font-size:18px}.builder-head p{margin:0;color:#64748b;font-size:13px}.builder-head>.btn{margin-left:auto}.builder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.builder-grid label,.dashboard-widget-form label{display:flex;flex-direction:column;gap:7px;color:#334155;font-size:13px;font-weight:600}.builder-grid label b{color:#dc2626}.builder-grid input,.builder-grid select,.builder-grid textarea,.dashboard-widget-form input,.dashboard-widget-form select{width:100%;box-sizing:border-box;border:1px solid #dbe1e8;border-radius:10px;background:#fff;padding:11px 12px;color:#0f172a;font:inherit;outline:none}.builder-grid input:focus,.builder-grid select:focus,.dashboard-widget-form input:focus,.dashboard-widget-form select:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.builder-grid .full{grid-column:1/-1}.builder-check{flex-direction:row!important;align-items:center;gap:10px!important;padding:13px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}.builder-check input{width:auto}.builder-check span strong,.builder-check span small{display:block}.builder-check span small{font-weight:400;color:#64748b;margin-top:2px}.report-filters{display:grid;gap:10px}.report-filter-row{display:grid;grid-template-columns:1.1fr .9fr 1fr 40px;gap:9px;align-items:center}.report-filter-row select,.report-filter-row input{width:100%;box-sizing:border-box;border:1px solid #dbe1e8;border-radius:10px;padding:10px;background:#fff}.icon-btn{border:0;background:#f8fafc;width:38px;height:38px;border-radius:10px;cursor:pointer}.icon-btn.danger{color:#dc2626}.report-builder-footer{display:flex;justify-content:flex-end;gap:10px;padding:4px 0 20px}.btn.small{padding:8px 12px;font-size:12px}.report-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-kpi{background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:18px}.report-kpi small,.report-kpi span{display:block;color:#64748b;font-size:12px}.report-kpi strong{display:block;font-size:24px;margin:6px 0}.report-result-card{padding:22px}.report-chart{display:grid;gap:13px;padding:10px 2px 4px}.report-chart-row{display:grid;grid-template-columns:minmax(120px,190px) 1fr 100px;align-items:center;gap:12px}.report-chart-label{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-chart-track{height:12px;background:#edf2f7;border-radius:999px;overflow:hidden}.report-chart-track span{display:block;height:100%;border-radius:999px;background:#2563eb}.report-chart-row>strong{text-align:right;font-size:13px}.report-big-kpi{padding:35px;text-align:center}.report-big-kpi strong{font-size:48px;display:block;color:#0f172a}.report-big-kpi span{color:#64748b}.report-table-wrap{overflow:auto}.report-table{width:100%;border-collapse:collapse}.report-table th,.report-table td{padding:12px;border-bottom:1px solid #edf0f4;text-align:left;font-size:13px}.report-table th{color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.report-danger-card{display:flex;justify-content:space-between;align-items:center;gap:20px}.btn.danger{background:#dc2626;color:#fff;border-color:#dc2626}.dashboard-list-item{grid-template-columns:auto 1fr auto}.dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-widget{grid-column:span 6;background:#fff;border:1px solid #e7ebf1;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(15,23,42,.045);min-width:0}.dashboard-widget.width-3{grid-column:span 3}.dashboard-widget.width-4{grid-column:span 4}.dashboard-widget.width-6{grid-column:span 6}.dashboard-widget.width-8{grid-column:span 8}.dashboard-widget.width-12{grid-column:span 12}.dashboard-widget>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}.widget-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.dashboard-widget h3{margin:3px 0 0;font-size:16px}.widget-actions{display:flex;gap:8px}.widget-actions a,.widget-actions button{border:0;background:transparent;color:#64748b;cursor:pointer;text-decoration:none}.widget-kpi{text-align:center;padding:24px 10px}.widget-kpi strong{display:block;font-size:38px}.widget-kpi span{color:#64748b;font-size:12px}.widget-chart{display:grid;gap:11px}.widget-bar{display:grid;grid-template-columns:120px 1fr 70px;align-items:center;gap:9px;font-size:12px}.widget-bar>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.widget-bar>div{height:10px;background:#edf2f7;border-radius:999px;overflow:hidden}.widget-bar i{display:block;height:100%;background:#2563eb;border-radius:999px}.widget-bar b{text-align:right}.widget-table{overflow:auto}.widget-table table{width:100%;border-collapse:collapse}.widget-table th,.widget-table td{padding:9px;border-bottom:1px solid #edf0f4;text-align:left;font-size:12px}.dashboard-editor{background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:18px;margin-bottom:18px}.dashboard-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.dashboard-widget-form{display:grid;grid-template-columns:1.3fr 1fr .8fr .6fr auto;gap:10px;align-items:end}.dashboard-add-card{padding-bottom:20px}
@media(max-width:900px){.report-info-grid,.report-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-widget.width-3,.dashboard-widget.width-4,.dashboard-widget.width-6,.dashboard-widget.width-8,.dashboard-widget.width-12{grid-column:span 12}.dashboard-widget-form{grid-template-columns:1fr 1fr}.dashboard-widget-form button{grid-column:1/-1}.report-hero{align-items:flex-start;flex-direction:column}.report-filter-row{grid-template-columns:1fr 1fr}.report-filter-row .filter-value{grid-column:1/-1}.report-filter-row .filter-remove{grid-column:2;justify-self:end}}
@media(max-width:600px){.report-info-grid,.report-result-grid,.builder-grid{grid-template-columns:1fr}.report-hero h1{font-size:25px}.report-card,.report-result-card,.report-builder-card{padding:16px}.report-list-item,.dashboard-list-item{grid-template-columns:auto 1fr}.report-list-actions{grid-column:2}.report-danger-card{flex-direction:column;align-items:flex-start}.dashboard-widget-form{grid-template-columns:1fr}.report-chart-row{grid-template-columns:90px 1fr 65px}.widget-bar{grid-template-columns:85px 1fr 60px}.report-builder-footer{position:sticky;bottom:0;background:#fff;padding:12px;border-top:1px solid #e7ebf1;z-index:5}}
/* Reports 2.0 - simple charts */
.simple-card h2{margin:0 0 16px;font-size:17px}.label-help{font-size:11px;font-weight:400;color:#94a3b8}.simple-hint{margin-top:14px;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:12px}.simple-filter-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.simple-filter-card .report-filters:empty{display:none}.simple-filter-card #showFilters{margin-top:12px;background:none;border:0;padding:0}.simple-filter-card #addFilter{display:none}.advanced-report-options summary{cursor:pointer;font-weight:700;color:#334155}.advanced-report-options[open] summary{margin-bottom:18px}.report-bar-chart{display:grid;gap:16px;padding:8px 2px}.report-bar-row{display:grid;grid-template-columns:minmax(120px,190px) 1fr 90px;align-items:center;gap:14px}.report-bar-label{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-bar-track{height:18px;background:#edf2f7;border-radius:999px;overflow:hidden}.report-bar-track span{display:block;height:100%;background:#2563eb;border-radius:999px}.report-bar-row>strong{text-align:right;font-size:13px}.report-line-chart{padding:8px 0}.report-line-chart svg{width:100%;height:330px;display:block}.line-label{font-size:11px;fill:#64748b}.report-donut-wrap{display:flex;align-items:center;justify-content:center;gap:36px;padding:10px 20px}.report-donut{width:240px;height:240px}.donut-total{font-size:18px;font-weight:800;fill:#0f172a}.report-legend{display:grid;gap:10px;min-width:220px}.report-legend>div{display:grid;grid-template-columns:14px 1fr auto;gap:8px;align-items:center;font-size:13px}.legend-dot{width:10px;height:10px;border-radius:50%}.report-builder.report-simple-builder{max-width:900px}.report-simple-builder .builder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-simple-builder .builder-check{grid-column:1/-1}.report-filter-row{background:#f8fafc;padding:8px;border-radius:12px}.report-filter-row .filter-value[style*="display: none"]{display:none!important}
@media(max-width:700px){.report-bar-row{grid-template-columns:90px 1fr 60px;gap:8px}.report-donut-wrap{flex-direction:column}.report-simple-builder .builder-grid{grid-template-columns:1fr}.report-simple-builder .builder-check{grid-column:auto}.simple-filter-head{flex-direction:column}.report-line-chart svg{height:260px}}
.widget-donut-wrap{display:flex;align-items:center;justify-content:center;gap:18px}.widget-donut{width:150px;height:150px}.widget-donut-total{font-size:14px;font-weight:800;fill:#0f172a}.widget-mini-legend{display:grid;gap:7px;font-size:11px;max-height:150px;overflow:auto}.widget-mini-legend>div{display:flex;align-items:center;gap:6px}.widget-line svg{width:100%;height:220px;display:block}.dashboard-widget .widget-actions a{font-size:12px}.dashboard-widget .widget-actions form{display:inline}.dashboard-widget .widget-actions button{font-size:18px;padding:0 4px}.dashboard-widget .widget-actions{align-items:center}

/* Reports 2.1 clean workspace */
.report-page{max-width:1280px;margin:0 auto;padding:30px 24px 56px}
.report-hero{background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);border:1px solid #e6ebf2;border-radius:22px;padding:26px 28px;margin-bottom:20px;box-shadow:0 8px 30px rgba(15,23,42,.04)}
.report-hero.compact{padding:22px 26px}
.report-hero .eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.report-hero h1{font-size:32px;margin:6px 0 6px;color:#0f172a}
.report-hero p{margin:0;max-width:720px}
.report-info-grid{grid-template-columns:repeat(3,1fr)}
.report-card,.report-result-card,.report-builder-card{border-radius:20px;box-shadow:0 5px 24px rgba(15,23,42,.035)}
.report-builder{max-width:920px}
.report-simple-builder .simple-card{padding:22px 24px}
.simple-card h2{font-size:16px;margin:0 0 16px;color:#0f172a}
.simple-card .builder-grid{gap:14px}
.label-help{font-size:11px;color:#94a3b8;font-weight:500}
.simple-hint{margin-top:12px;padding:11px 13px;background:#f8fafc;border-radius:10px;color:#64748b;font-size:12px}
.simple-filter-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}
.simple-filter-head h2{margin-bottom:4px}
.simple-filter-head p{margin:0;font-size:12px}
#showFilters{margin-top:10px}
.advanced-report-options summary{cursor:pointer;font-weight:700;color:#334155;list-style:none}
.advanced-report-options summary::-webkit-details-marker{display:none}
.advanced-report-options summary:after{content:'+';float:right;font-size:18px;color:#64748b}
.advanced-report-options[open] summary:after{content:'−'}
.report-builder-footer{position:sticky;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid #edf0f4;padding:14px 0 0;margin-top:2px}
.dashboard-list-item{padding:18px 0}
.dashboard-grid{align-items:start}
.dashboard-editor{border-radius:20px}
.dashboard-add-card .report-card-head{padding-bottom:12px}
@media(max-width:900px){.report-page{padding:20px 14px 40px}.report-info-grid,.report-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-hero{flex-direction:column;align-items:flex-start}.report-hero-actions{width:100%}.dashboard-widget,.dashboard-widget.width-3,.dashboard-widget.width-4,.dashboard-widget.width-6,.dashboard-widget.width-8,.dashboard-widget.width-12{grid-column:span 12}.dashboard-widget-form{grid-template-columns:1fr 1fr}.dashboard-widget-form .btn{width:max-content}.report-filter-row{grid-template-columns:1fr 1fr}.report-filter-row input{grid-column:1/-1}.report-filter-row .filter-remove{grid-column:2;justify-self:end}}
@media(max-width:600px){.report-info-grid,.report-result-grid,.builder-grid{grid-template-columns:1fr}.report-hero{padding:20px}.report-hero h1{font-size:26px}.report-card,.report-result-card,.report-builder-card{border-radius:16px;padding:18px}.report-list-item,.dashboard-list-item{grid-template-columns:auto 1fr}.report-list-actions{grid-column:2}.dashboard-widget-form{grid-template-columns:1fr}.report-filter-row{grid-template-columns:1fr}.report-filter-row input{grid-column:auto}.report-filter-row .filter-remove{grid-column:auto;justify-self:end}.report-builder-footer{position:static}.report-danger-card{flex-direction:column;align-items:flex-start}}


/* Reports 3.0 - match CRM module/list design */
.report-page{width:100%;max-width:none;margin:0;padding:0 0 28px}
.report-page .report-hero{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0 0 22px}
.report-page .report-hero.compact{padding:0;margin-bottom:22px}
.report-page .report-hero h1{font-size:31px;line-height:1.15;letter-spacing:-.035em;margin:7px 0 4px;color:#14213a}
.report-page .report-hero p{margin:0;color:#748198;font-size:14px;max-width:760px}
.report-page .report-hero .eyebrow{font-size:12.5px;letter-spacing:0;text-transform:none;font-weight:500;color:#8b96a8}
.report-page .report-hero .eyebrow i{margin-right:6px;color:#4f46e5}
.report-page .report-hero-actions{gap:10px}
.report-page .report-hero-actions .btn{height:44px;padding:0 16px;border-radius:9px}
.report-page .report-info-grid{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.report-page .report-info-card{border:1px solid #e5eaf1;border-radius:12px;box-shadow:0 5px 18px rgba(20,32,51,.035);padding:18px 19px;min-height:108px}
.report-page .report-info-card>span{width:43px;height:43px;border-radius:11px;background:#eeecff;color:#5146d9}
.report-page .report-card,.report-page .report-result-card,.report-page .report-builder-card{border:1px solid #e5eaf1;border-radius:13px;box-shadow:0 6px 22px rgba(20,32,51,.045);margin-bottom:18px}
.report-page .report-card{padding:0;overflow:visible}
.report-page .report-card-head{min-height:68px;padding:15px 18px;border-bottom:1px solid #edf0f5}
.report-page .report-card-head h2{font-size:15px;color:#243249}
.report-page .report-card-head p{font-size:12px}
.report-page .report-list{border-top:0;padding:0 18px}
.report-page .report-list-item,.report-page .dashboard-list-item{padding:15px 0;border-bottom:1px solid #edf0f5}
.report-page .report-list-item:last-child,.report-page .dashboard-list-item:last-child{border-bottom:0}
.report-page .report-list-icon,.report-page .dashboard-list-icon{width:38px;height:38px;border-radius:9px;background:#eef0ff;color:#4f46e5}
.report-page .report-list-copy p,.report-page .dashboard-list-item p{font-size:12px;margin:4px 0}
.report-page .report-list-actions{gap:6px}
.report-page .text-btn{height:31px;padding:0 10px;border:1px solid #dfe5ed;border-radius:7px;display:inline-flex;align-items:center;background:#fff;font-size:11.5px}
.report-page .report-empty,.report-page .dashboard-empty{padding:48px 20px}
.report-page .report-builder{max-width:none;margin:0}
.report-page .report-builder-card{padding:20px}
.report-page .report-simple-builder .simple-card{padding:20px}
.report-page .builder-head>span{background:#eeecff;color:#5146d9}
.report-page .report-builder-footer{border-top:0;position:static;padding:0 0 20px;margin:0;justify-content:flex-end}
.report-page .dashboard-grid{margin-bottom:18px}
.report-page .dashboard-widget{border:1px solid #e5eaf1;border-radius:13px;box-shadow:0 6px 22px rgba(20,32,51,.045)}
.report-page .dashboard-editor{border:1px solid #e5eaf1;border-radius:13px;box-shadow:0 6px 22px rgba(20,32,51,.045)}
.report-page .dashboard-add-card{padding:0 0 18px}
.report-page .dashboard-add-card .report-card-head{padding:15px 18px}
.report-page .dashboard-widget-form{padding:0 18px}
.report-page .report-danger-card{padding:18px}
.report-page .report-big-kpi{padding:42px}
.report-page .report-result-grid{margin-bottom:18px}
.report-page .report-kpi{border:1px solid #e5eaf1;border-radius:12px;box-shadow:0 5px 18px rgba(20,32,51,.035)}
.report-page .report-result-card{padding:20px}
@media(max-width:900px){.report-page .report-info-grid{grid-template-columns:repeat(2,1fr)}.report-page .report-hero{align-items:flex-start;flex-direction:column}.report-page .report-hero-actions{width:100%}}
@media(max-width:600px){.report-page .report-info-grid{grid-template-columns:1fr}.report-page .report-hero h1{font-size:26px}.report-page .report-hero-actions .btn{flex:1}.report-page .report-card-head{align-items:flex-start;flex-direction:column}.report-page .report-list-item,.report-page .dashboard-list-item{grid-template-columns:auto 1fr}.report-page .report-list-actions{grid-column:2}.report-page .report-builder-card{padding:16px}.report-page .report-info-card{min-height:96px}}

/* Quote / Invoice module */
.billing-page{width:100%;max-width:none}.crm-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}.crm-page-head h1{margin:3px 0 5px;font-size:30px;letter-spacing:-.03em}.crm-page-head p{margin:0;color:#697386}.crm-kicker{display:block;text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:800;color:#7c3aed}.billing-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.billing-kpis>div{background:#fff;border:1px solid #e6e9ef;border-radius:14px;padding:18px 20px}.billing-kpis span{display:block;color:#6b7280;font-size:12px;font-weight:600}.billing-kpis strong{display:block;font-size:22px;margin-top:7px}.crm-card{background:#fff;border:1px solid #e6e9ef;border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.crm-card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.crm-card-head h2{margin:3px 0 0;font-size:18px}.billing-table-wrap{overflow:auto}.billing-table{width:100%;border-collapse:collapse;min-width:820px}.billing-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#7b8494;text-align:left;background:#f8f9fb}.billing-table th,.billing-table td{padding:13px 14px;border-bottom:1px solid #edf0f4;vertical-align:middle}.billing-title{display:flex;flex-direction:column;gap:3px;color:#202735;text-decoration:none}.billing-title small{color:#7a8494;font-size:12px}.billing-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f2f4f7;font-size:11px;font-weight:700}.billing-status.accepted,.billing-status.paid{background:#eaf8ef;color:#197a43}.billing-status.sent,.billing-status.partially-paid{background:#eef4ff;color:#315eaa}.billing-status.rejected,.billing-status.expired,.billing-status.overdue,.billing-status.cancelled{background:#fff0f0;color:#b42318}.billing-status.draft{background:#f3f4f6;color:#596273}.table-link{color:#6d28d9;font-weight:700;text-decoration:none}.danger-link{color:#b42318;background:none;border:0;cursor:pointer}.billing-empty{text-align:center;padding:65px 20px;color:#7b8494}.billing-empty i{font-size:32px}.billing-empty h3{margin:12px 0 5px;color:#242b38}.billing-form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.billing-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.billing-fields label,.payment-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#4f5868}.billing-fields .full{grid-column:1/-1}.billing-fields input,.billing-fields select,.billing-fields textarea,.payment-form input,.payment-form select,.payment-form textarea,.line-row input{width:100%;border:1px solid #dfe3ea;border-radius:9px;padding:10px 11px;background:#fff;color:#222;font:inherit;font-size:13px;box-sizing:border-box}.line-items{overflow:auto}.line-head,.line-row{display:grid;grid-template-columns:minmax(240px,2fr) 90px 130px 110px 90px 35px;gap:8px;align-items:center;min-width:790px}.line-head{padding:0 4px 8px;color:#7b8494;text-transform:uppercase;font-size:10px;font-weight:800}.line-row{margin-bottom:8px}.line-remove{border:0;background:#f8e9e9;color:#b42318;width:30px;height:30px;border-radius:7px;cursor:pointer}.billing-note{font-size:12px;color:#7b8494;margin-top:10px}.billing-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.billing-head-actions{display:flex;gap:9px;align-items:center}.billing-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px}.billing-info{display:grid;gap:0}.billing-info>div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #edf0f4}.billing-info span{color:#7b8494;font-size:12px}.billing-info strong{text-align:right;font-size:13px}.billing-notes{color:#596273;line-height:1.7}.totals{display:flex;flex-direction:column;gap:8px;margin:18px 0 0 auto;max-width:320px;font-size:13px}.totals span{display:flex;justify-content:space-between;color:#697386}.totals strong{color:#202735}.totals .grand{border-top:1px solid #e7e9ee;padding-top:12px;font-size:17px;font-weight:700}.payment-form{display:grid;gap:12px}.payment-form .btn{width:100%}@media(max-width:900px){.billing-kpis{grid-template-columns:repeat(2,1fr)}.billing-detail-grid{grid-template-columns:1fr}.billing-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.crm-page-head{align-items:flex-start;flex-direction:column}.billing-kpis{grid-template-columns:1fr}.billing-fields{grid-template-columns:1fr}.billing-fields .full{grid-column:auto}.billing-actions{justify-content:stretch}.billing-actions .btn{flex:1}.billing-head-actions{width:100%}.billing-head-actions .btn,.billing-head-actions form{flex:1}.billing-head-actions form .btn{width:100%}}

/* ===== Modern CRM login redesign ===== */
.login-modern{background:#f5f7fb;color:#172033;min-height:100vh}
.login-modern-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);overflow:hidden}
.login-visual{position:relative;overflow:hidden;background:linear-gradient(145deg,#0b1020 0%,#15172d 52%,#221542 100%);color:#fff;padding:48px clamp(32px,6vw,88px);display:flex;align-items:center}
.login-visual-inner{width:min(670px,100%);margin:auto;position:relative;z-index:2}
.login-brand-chip{display:inline-flex;background:#fff;border-radius:12px;padding:8px 13px;box-shadow:0 10px 35px rgba(0,0,0,.2)}
.login-brand-chip img{display:block;width:auto;height:34px;max-width:220px}
.login-glow{position:absolute;border-radius:50%;filter:blur(5px);pointer-events:none}
.login-glow-one{width:430px;height:430px;background:rgba(99,102,241,.20);right:-170px;top:-180px}
.login-glow-two{width:330px;height:330px;background:rgba(168,85,247,.13);left:-180px;bottom:-170px}
.login-visual-copy{margin:55px 0 30px;max-width:610px}
.login-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#c4b5fd;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;margin-bottom:15px}
.login-visual-copy h2{font-size:clamp(34px,4vw,52px);line-height:1.08;letter-spacing:-.045em;margin:0 0 18px;color:#fff;max-width:650px}
.login-visual-copy p{margin:0;color:#b7bdd0;font-size:15px;line-height:1.75;max-width:560px}
.login-preview{background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.13);border-radius:18px;padding:20px;backdrop-filter:blur(18px);box-shadow:0 24px 70px rgba(0,0,0,.24);max-width:620px}
.preview-top{display:flex;justify-content:space-between;align-items:center;gap:15px}
.preview-top strong{display:block;font-size:13px;color:#fff}.preview-top span:not(.preview-pill){display:block;color:#8e96ac;font-size:10px;margin-top:3px}
.preview-pill{display:inline-flex!important;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(34,197,94,.12);color:#86efac!important;font-size:10px!important;font-weight:700}
.preview-chart{height:160px;display:flex;align-items:stretch;margin-top:18px}.preview-chart svg{width:100%;height:100%}.chart-y{width:38px;display:flex;flex-direction:column;justify-content:space-between;padding:3px 0 18px;color:#69728a;font-size:9px}
.preview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.preview-stats div{border-top:1px solid rgba(255,255,255,.09);padding-top:11px}.preview-stats span{display:block;color:#8e96ac;font-size:9px}.preview-stats b{display:block;color:#fff;font-size:16px;margin-top:4px}
.login-trust{display:flex;gap:22px;flex-wrap:wrap;margin-top:22px;color:#8992a8;font-size:10px;font-weight:600}.login-trust i{color:#a78bfa;margin-right:5px}
.login-panel{background:#fff;display:flex;align-items:center;justify-content:center;padding:50px 7vw}
.login-form-wrap{width:min(430px,100%)}
.mobile-brand{display:none}.login-heading{margin-bottom:27px}.login-form-kicker{display:block;color:#6d4df5;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;margin-bottom:9px}.login-heading h1{font-size:31px;letter-spacing:-.035em;margin:0 0 7px;color:#161c2a}.login-heading p{margin:0;color:#7a8394;font-size:13.5px}
.login-alert{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-radius:10px;background:#fff1f1;border:1px solid #ffd8d8;color:#b42318;font-size:12px;margin-bottom:18px}.login-alert i{margin-top:1px}
.login-modern-form{display:flex;flex-direction:column;gap:17px}.login-field{display:flex;flex-direction:column;gap:7px}.login-field>span{font-size:12px;font-weight:750;color:#394256}.login-input-wrap{position:relative}.login-input-wrap>i:first-child{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#9aa3b4;font-size:13px}.login-input-wrap input{width:100%;height:48px;box-sizing:border-box;padding:0 43px 0 40px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;color:#1b2332;font:inherit;font-size:13px;outline:none;transition:.18s}.login-input-wrap input::placeholder{color:#a8afbc}.login-input-wrap input:focus{border-color:#8b74f7;box-shadow:0 0 0 3px rgba(109,77,245,.10)}.login-password-toggle{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:31px;height:31px;border:0;background:transparent;color:#929aaa;cursor:pointer;border-radius:7px}.login-password-toggle:hover{background:#f3f4f7;color:#555e6f}
.login-options{display:flex;justify-content:space-between;align-items:center;margin-top:-2px}.remember-check{display:flex;align-items:center;gap:7px;color:#697386;font-size:12px;cursor:pointer}.remember-check input{width:14px;height:14px;accent-color:#6d4df5}.login-forgot{font-size:12px;color:#6d4df5;font-weight:650}
.login-submit{height:48px;border:0;border-radius:10px;background:linear-gradient(135deg,#6d4df5,#7c3aed);color:#fff;font:inherit;font-size:13px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 9px 22px rgba(109,77,245,.22);transition:transform .16s,box-shadow .16s}.login-submit:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(109,77,245,.27)}
.login-divider{display:flex;align-items:center;gap:13px;color:#a0a7b5;font-size:11px;margin:22px 0}.login-divider:before,.login-divider:after{content:"";height:1px;background:#edf0f4;flex:1}.login-google{width:100%;height:46px;border:1px solid #dfe3eb;background:#fff;border-radius:10px;color:#303746;font:inherit;font-size:12.5px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}.login-google:hover{background:#fafbfc}.google-letter{font-size:17px;font-weight:800;color:#4285f4}
.login-footer-note{display:flex;justify-content:center;align-items:center;gap:7px;color:#8b94a4;font-size:10.5px;margin-top:24px}.login-footer-note i{font-size:10px}.login-demo{display:block;text-align:center;color:#a1a8b5;font-size:9.5px;margin-top:10px}
@media(max-width:1050px){.login-modern-shell{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh;padding:35px 25px}.mobile-brand{display:block;text-align:center;margin-bottom:35px}.mobile-brand img{height:38px;max-width:240px}}
@media(max-width:520px){.login-panel{padding:28px 20px}.login-form-wrap{width:100%}.login-heading h1{font-size:27px}.login-options{align-items:flex-start;gap:12px}.login-forgot{white-space:nowrap}}

/* ===== Field Service Management ===== */
.fsm-page{max-width:1480px;margin:0 auto;padding:28px 0 60px}.fsm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}.fsm-kicker,.fsm-card-kicker{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:10.5px;font-weight:800;color:#7b8794;margin-bottom:6px}.fsm-kicker i{margin-right:6px}.fsm-head h1{margin:0;font-size:30px;letter-spacing:-.035em;color:#1f2937}.fsm-head p{margin:7px 0 0;color:#718096;max-width:820px}.fsm-head-actions{display:flex;gap:10px;flex-wrap:wrap}.fsm-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:18px}.fsm-kpi{display:block;text-decoration:none;background:#fff;border:1px solid #e7ebf0;border-radius:15px;padding:17px 18px;box-shadow:0 5px 18px rgba(30,41,59,.04);color:#263244}.fsm-kpi:hover{border-color:#cfd5e3;transform:translateY(-1px)}.fsm-kpi span,.fsm-kpi small{display:block;color:#7b8794;font-size:11.5px}.fsm-kpi strong{display:block;font-size:25px;letter-spacing:-.03em;margin:7px 0 4px}.fsm-kpi small i{margin-right:5px}.fsm-kpi.danger strong{color:#d64545}.fsm-module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.fsm-module-card{display:flex;align-items:center;gap:13px;padding:18px;background:#fff;border:1px solid #e7ebf0;border-radius:15px;box-shadow:0 5px 18px rgba(30,41,59,.04);text-decoration:none;color:#263244}.fsm-module-card:hover{border-color:#cdd4e4;background:#fbfcff}.fsm-module-card>i{margin-left:auto;color:#a0a8b4;font-size:12px}.fsm-module-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#eef1ff;color:#5666d8;flex:0 0 auto}.fsm-module-icon.small{width:34px;height:34px;border-radius:9px}.fsm-module-card strong{font-size:14px}.fsm-module-card p{margin:4px 0 0;color:#87919f;font-size:11.5px;line-height:1.45}.fsm-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.fsm-card{background:#fff;border:1px solid #e7ebf0;border-radius:16px;box-shadow:0 5px 18px rgba(30,41,59,.04);overflow:hidden;margin-bottom:18px}.fsm-card:last-child{margin-bottom:0}.fsm-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 21px;border-bottom:1px solid #edf0f3}.fsm-card-head h2{margin:0;font-size:18px;letter-spacing:-.02em;color:#253044}.fsm-card-head a{color:#5666d8;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}.fsm-table-note{color:#8994a2;font-size:11px}.fsm-list{padding:4px 0}.fsm-list-row{display:flex;align-items:center;gap:12px;padding:14px 19px;border-bottom:1px solid #edf0f3;text-decoration:none;color:#273244}.fsm-list-row:last-child{border-bottom:0}.fsm-list-row:hover{background:#fbfcff}.fsm-time{font-size:12px;font-weight:800;color:#5967d7;min-width:78px}.fsm-list-copy{flex:1;min-width:0}.fsm-list-copy strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fsm-list-copy small{display:block;color:#8a95a3;margin-top:3px;font-size:11px}.fsm-alert-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#fff2f2;color:#d64545}.fsm-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;background:#f1f3f6;color:#687383;font-size:10.5px;font-weight:800;white-space:nowrap}.fsm-pill.new,.fsm-pill.planned,.fsm-pill.draft,.fsm-pill.active{background:#eef1ff;color:#5363d5}.fsm-pill.scheduled,.fsm-pill.confirmed,.fsm-pill.submitted,.fsm-pill.approved{background:#fff7e8;color:#a46d15}.fsm-pill.in-progress{background:#edf4ff;color:#3e6cc4}.fsm-pill.completed{background:#e9f7f0;color:#278b5b}.fsm-pill.cancelled,.fsm-pill.danger,.fsm-pill.inactive{background:#fff0f1;color:#c13b4d}.fsm-pill.on-hold,.fsm-pill.paused{background:#f4f0ff;color:#7659bf}.fsm-empty{text-align:center;padding:34px 20px;color:#8994a2}.fsm-empty.large{padding:62px 20px}.fsm-empty i{font-size:29px;margin-bottom:10px;color:#a2abb7}.fsm-empty strong{display:block;color:#344052;font-size:13px}.fsm-empty span{display:block;font-size:11.5px;margin:5px 0 15px}.fsm-table-wrap{overflow:auto}.fsm-table{width:100%;border-collapse:collapse;min-width:980px}.fsm-table th{text-align:left;background:#fafbfc;color:#87919e;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;padding:12px 15px;border-bottom:1px solid #edf0f3;white-space:nowrap}.fsm-table td{padding:14px 15px;border-bottom:1px solid #edf0f3;font-size:12.5px;vertical-align:middle;color:#4d5a6d}.fsm-table tbody tr:hover{background:#fbfcff}.fsm-title{display:block;text-decoration:none;color:#273244;font-weight:800;min-width:150px}.fsm-title small{display:block;color:#8b96a5;font-weight:500;font-size:10.5px;margin-top:3px;max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fsm-priority{font-size:10.5px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f1f3f6;color:#687383}.fsm-priority.high{background:#fff6e5;color:#a26d14}.fsm-priority.urgent{background:#fff0f1;color:#c13b4d}.fsm-priority.low{background:#eaf8f1;color:#278b5b}.fsm-row-actions{display:flex;gap:5px;align-items:center;white-space:nowrap}.fsm-action{border:1px solid #dfe4ea;background:#fff;color:#5666d8;text-decoration:none;padding:6px 9px;border-radius:7px;font-size:10.5px;font-weight:800;cursor:pointer}.fsm-action:hover{background:#f8f9ff;border-color:#cdd4e7}.fsm-action.danger{color:#c13b4d}.fsm-search{display:flex;align-items:center;gap:8px;flex:1;max-width:760px}.fsm-search>i{margin-left:12px;color:#8b96a4}.fsm-search input{height:40px;flex:1;border:0;outline:0;background:transparent;font-size:13px;color:#263244}.fsm-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;border:1px solid #e7ebf0;border-radius:13px;padding:7px 8px;margin-bottom:16px;box-shadow:0 4px 15px rgba(30,41,59,.03)}.fsm-search{border:1px solid #e0e5ec;border-radius:9px;height:40px}.fsm-status-filter select{height:40px;border:1px solid #e0e5ec;border-radius:9px;padding:0 12px;color:#455265;background:#fff;outline:0}.fsm-breadcrumb{display:flex;align-items:center;gap:9px;color:#8994a2;font-size:12px;margin-bottom:15px}.fsm-breadcrumb a{color:#5967d7;text-decoration:none;font-weight:700}.fsm-breadcrumb i{font-size:10px}.fsm-form-page{max-width:1120px}.fsm-form-shell{background:#f8fafc}.fsm-form-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:18px}.fsm-form-head h1{margin:0;font-size:27px;letter-spacing:-.03em}.fsm-form-head p{margin:6px 0 0;color:#788494;font-size:12.5px}.fsm-form-card{background:#fff;border:1px solid #e7ebf0;border-radius:16px;box-shadow:0 5px 18px rgba(30,41,59,.04);overflow:hidden;margin-bottom:16px}.fsm-form-card-head{display:flex;align-items:center;justify-content:space-between;padding:19px 22px;border-bottom:1px solid #edf0f3}.fsm-form-card-head span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;color:#8994a2}.fsm-form-card-head h2{margin:4px 0 0;font-size:18px}.fsm-form-card-head>i{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#eef1ff;color:#5666d8}.fsm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:21px}.fsm-fields label{display:flex;flex-direction:column;gap:6px;color:#5b6879;font-size:11.5px;font-weight:700}.fsm-fields label.wide{grid-column:1/-1}.fsm-fields label em{color:#d64545;font-style:normal}.fsm-fields input,.fsm-fields select,.fsm-fields textarea{width:100%;box-sizing:border-box;border:1px solid #dfe5ed;border-radius:9px;background:#fff;color:#263244;padding:10px 11px;font:inherit;font-weight:500;outline:0}.fsm-fields input,.fsm-fields select{height:40px}.fsm-fields textarea{resize:vertical;min-height:88px;line-height:1.5}.fsm-fields input:focus,.fsm-fields select:focus,.fsm-fields textarea:focus{border-color:#a9a4ff;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.fsm-help{font-size:10.5px;color:#8b96a4;font-weight:500}.fsm-form-tip{margin:0 21px 21px;padding:11px 13px;background:#f7f8fc;border:1px dashed #d8deea;border-radius:9px;color:#707d8e;font-size:11px}.fsm-form-tip i{color:#5666d8;margin-right:6px}.fsm-form-footer{display:flex;justify-content:flex-end;gap:9px;padding:3px 0 10px}.fsm-detail-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid #e7ebf0;border-radius:18px;padding:24px 27px;box-shadow:0 5px 18px rgba(30,41,59,.04)}.fsm-detail-title{display:flex;align-items:center;gap:15px;min-width:0}.fsm-detail-avatar{width:58px;height:58px;border-radius:15px;background:#eef1ff;color:#5666d8;display:grid;place-items:center;font-size:22px;flex:0 0 auto}.fsm-detail-title>div:last-child>span:first-child{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#8994a2}.fsm-detail-title h1{margin:5px 0 6px;font-size:27px;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fsm-detail-sub{display:flex;align-items:center;gap:8px;color:#7b8795;font-size:11.5px}.fsm-detail-sub a{color:#5666d8;text-decoration:none;font-weight:700}.fsm-detail-actions{display:flex;gap:9px;flex-wrap:wrap}.fsm-detail-kpis{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:13px;margin:16px 0}.fsm-detail-kpis>div{background:#fff;border:1px solid #e7ebf0;border-radius:14px;padding:16px 18px;box-shadow:0 5px 18px rgba(30,41,59,.04)}.fsm-detail-kpis span,.fsm-detail-kpis small{display:block;color:#7f8a98;font-size:10.5px}.fsm-detail-kpis strong{display:block;color:#263244;font-size:19px;margin:6px 0 3px;word-break:break-word}.fsm-detail-kpis strong a{color:#5666d8;text-decoration:none}.fsm-detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:17px}.fsm-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}.fsm-info-grid>div{padding:14px 19px;border-bottom:1px solid #edf0f3}.fsm-info-grid>div.wide{grid-column:1/-1}.fsm-info-grid span,.fsm-info-list span{display:block;color:#8994a2;font-size:10.5px;margin-bottom:4px}.fsm-info-grid strong,.fsm-info-list strong{display:block;color:#344052;font-size:12px;line-height:1.45}.fsm-info-list{padding:6px 19px 15px}.fsm-info-list>div{padding:12px 0;border-bottom:1px solid #edf0f3}.fsm-info-list>div:last-child{border-bottom:0}.fsm-notes,.fsm-richtext{padding:19px;color:#536073;font-size:12.5px;line-height:1.7}.fsm-job-summary{padding:21px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.fsm-job-summary strong{font-size:17px}.fsm-job-summary small{color:#8994a2}.fsm-checklist{padding:8px 19px 15px}.fsm-check{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f3}.fsm-check:last-child{border-bottom:0}.fsm-check>span{width:25px;height:25px;border-radius:7px;background:#f1f3f6;color:#9aa4b0;display:grid;place-items:center;font-size:10px}.fsm-check.done>span{background:#e9f7f0;color:#278b5b}.fsm-check strong{font-size:12px;color:#465366}.fsm-complete-card{padding:22px;text-align:center}.fsm-complete-card>i{font-size:29px;color:#2ca56a}.fsm-complete-card h2{margin:10px 0 5px;font-size:17px}.fsm-complete-card p{color:#7d8998;font-size:11.5px;line-height:1.55;margin:0 0 15px}.fsm-form-card + .fsm-form-card{}.inline{display:inline}.muted{color:#9aa3af!important}
@media(max-width:1100px){.fsm-kpis{grid-template-columns:repeat(3,1fr)}.fsm-module-grid{grid-template-columns:repeat(2,1fr)}.fsm-detail-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.fsm-page{padding:20px 0 45px}.fsm-head,.fsm-form-head,.fsm-detail-hero{align-items:flex-start;flex-direction:column}.fsm-head-actions,.fsm-detail-actions{width:100%}.fsm-head-actions .btn,.fsm-detail-actions .btn{flex:1}.fsm-kpis{grid-template-columns:repeat(2,1fr)}.fsm-module-grid,.fsm-two-col,.fsm-detail-grid{grid-template-columns:1fr}.fsm-toolbar{align-items:stretch;flex-direction:column}.fsm-search{max-width:none}.fsm-status-filter select{width:100%}.fsm-fields{grid-template-columns:1fr;padding:17px}.fsm-fields label.wide{grid-column:auto}.fsm-form-footer{padding-bottom:5px}.fsm-form-footer .btn{flex:1}.fsm-detail-title h1{font-size:22px;white-space:normal}.fsm-detail-kpis{grid-template-columns:1fr 1fr}.fsm-info-grid{grid-template-columns:1fr}.fsm-info-grid>div.wide{grid-column:auto}}
@media(max-width:520px){.fsm-kpis{grid-template-columns:1fr}.fsm-module-grid{grid-template-columns:1fr}.fsm-detail-kpis{grid-template-columns:1fr}.fsm-head h1{font-size:25px}.fsm-card-head{padding:16px}.fsm-list-row{padding:12px 14px}.fsm-pill{font-size:9.5px}.fsm-form-head h1{font-size:23px}}
/* ===== Human Resources workspace ===== */
.hr-page{max-width:1480px;margin:0 auto;padding:28px 0 60px}.hr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}.hr-kicker,.hr-card-kicker{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:10.5px;font-weight:800;color:#7b8794;margin-bottom:6px}.hr-kicker i{margin-right:6px}.hr-head h1{margin:0;font-size:30px;letter-spacing:-.035em;color:#1f2937}.hr-head p{margin:7px 0 0;color:#718096;max-width:860px}.hr-head-actions{display:flex;gap:10px;flex-wrap:wrap}.hr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.hr-kpi{display:block;text-decoration:none;background:#fff;border:1px solid #e7ebf0;border-radius:15px;padding:17px 18px;box-shadow:0 5px 18px rgba(30,41,59,.04);color:#263244}.hr-kpi:hover{border-color:#cfd5e3;transform:translateY(-1px)}.hr-kpi span,.hr-kpi small{display:block;color:#7b8794;font-size:11.5px}.hr-kpi strong{display:block;font-size:25px;letter-spacing:-.03em;margin:7px 0 4px}.hr-kpi small i{margin-right:5px}.hr-module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.hr-module-card{display:flex;align-items:center;gap:13px;padding:18px;background:#fff;border:1px solid #e7ebf0;border-radius:15px;box-shadow:0 5px 18px rgba(30,41,59,.04);text-decoration:none;color:#263244}.hr-module-card:hover{border-color:#cdd4e4;background:#fbfcff}.hr-module-card>i{margin-left:auto;color:#a0a8b4;font-size:12px}.hr-module-icon,.hr-list-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#eef1ff;color:#5666d8;flex:0 0 auto}.hr-module-card strong{font-size:14px}.hr-module-card p{margin:4px 0 0;color:#87919f;font-size:11.5px;line-height:1.45}.hr-card{background:#fff;border:1px solid #e7ebf0;border-radius:16px;box-shadow:0 5px 18px rgba(30,41,59,.04);overflow:hidden;margin-bottom:18px}.hr-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 21px;border-bottom:1px solid #edf0f3}.hr-card-head h2{margin:0;font-size:18px;letter-spacing:-.02em;color:#253044}.hr-list{padding:4px 0}.hr-list-row{display:flex;align-items:center;gap:12px;padding:14px 19px;border-bottom:1px solid #edf0f3;text-decoration:none;color:#273244}.hr-list-row:last-child{border-bottom:0}.hr-list-row:hover{background:#fbfcff}.hr-list-copy{flex:1;min-width:0}.hr-list-copy strong{display:block;font-size:13px}.hr-list-copy small{display:block;color:#8a95a3;margin-top:3px;font-size:11px}.hr-list-row>i{color:#a0a8b4;font-size:11px}.hr-breadcrumb{display:flex;align-items:center;gap:9px;color:#8994a2;font-size:12px;margin-bottom:15px}.hr-breadcrumb a{color:#5967d7;text-decoration:none;font-weight:700}.hr-breadcrumb i{font-size:10px}.hr-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;border:1px solid #e7ebf0;border-radius:13px;padding:7px 8px;margin-bottom:16px;box-shadow:0 4px 15px rgba(30,41,59,.03)}.hr-search{display:flex;align-items:center;gap:8px;flex:1;max-width:760px;border:1px solid #e0e5ec;border-radius:9px;height:40px}.hr-search>i{margin-left:12px;color:#8b96a4}.hr-search input{height:38px;flex:1;border:0;outline:0;background:transparent;font-size:13px;color:#263244}.hr-toolbar select{height:40px;border:1px solid #e0e5ec;border-radius:9px;padding:0 12px;color:#455265;background:#fff;outline:0}.hr-table-wrap{overflow:auto}.hr-table{width:100%;border-collapse:collapse;min-width:1000px}.hr-table th{text-align:left;background:#fafbfc;color:#87919e;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;padding:12px 15px;border-bottom:1px solid #edf0f3;white-space:nowrap}.hr-table td{padding:14px 15px;border-bottom:1px solid #edf0f3;font-size:12.5px;vertical-align:middle;color:#4d5a6d}.hr-table tbody tr:hover{background:#fbfcff}.hr-title{display:block;text-decoration:none;color:#273244;font-weight:800;min-width:140px}.hr-title small{display:block;color:#8b96a5;font-weight:500;font-size:10.5px;margin-top:3px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hr-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;background:#f1f3f6;color:#687383;font-size:10.5px;font-weight:800;white-space:nowrap}.hr-pill.active,.hr-pill.paid,.hr-pill.published,.hr-pill.signed,.hr-pill.completed,.hr-pill.available,.hr-pill.reimbursed{background:#e9f7f0;color:#278b5b}.hr-pill.draft,.hr-pill.open,.hr-pill.scheduled,.hr-pill.sent,.hr-pill.submitted,.hr-pill.processing,.hr-pill.assigned{background:#eef1ff;color:#5363d5}.hr-pill.pending-approval,.hr-pill.viewed,.hr-pill.confirmed,.hr-pill.on-assignment,.hr-pill.applied{background:#fff7e8;color:#a46d15}.hr-pill.inactive,.hr-pill.cancelled,.hr-pill.rejected,.hr-pill.declined,.hr-pill.expired,.hr-pill.terminated,.hr-pill.unavailable{background:#fff0f1;color:#c13b4d}.hr-pill.on-leave,.hr-pill.on-hold,.hr-pill.archived{background:#f4f0ff;color:#7659bf}.hr-pill.stage{background:#f3f5f8;color:#657184}.hr-actions{display:flex;gap:5px;align-items:center;white-space:nowrap}.hr-action{border:1px solid #dfe4ea;background:#fff;color:#5666d8;text-decoration:none;padding:6px 9px;border-radius:7px;font-size:10.5px;font-weight:800;cursor:pointer}.hr-action.danger{color:#c13b4d}.inline{display:inline}.hr-empty{text-align:center;padding:36px 20px;color:#8994a2}.hr-empty.large{padding:62px 20px}.hr-empty i{font-size:29px;margin-bottom:10px;color:#a2abb7}.hr-empty strong{display:block;color:#344052;font-size:13px}.hr-empty span{display:block;font-size:11.5px;margin:5px 0 15px}.hr-form-page{max-width:1120px}.hr-form-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.hr-form-head h1{margin:0;font-size:27px;letter-spacing:-.03em}.hr-form-head p{margin:6px 0 0;color:#788494;font-size:12.5px}.hr-form-card{background:#fff;border:1px solid #e7ebf0;border-radius:16px;box-shadow:0 5px 18px rgba(30,41,59,.04);overflow:hidden;margin-bottom:16px}.hr-form-card-head{display:flex;align-items:center;justify-content:space-between;padding:19px 22px;border-bottom:1px solid #edf0f3}.hr-form-card-head span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;color:#8994a2}.hr-form-card-head h2{margin:4px 0 0;font-size:18px}.hr-form-card-head>i{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#eef1ff;color:#5666d8}.hr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:21px}.hr-fields label{display:flex;flex-direction:column;gap:6px;color:#5b6879;font-size:11.5px;font-weight:700}.hr-fields label.wide{grid-column:1/-1}.hr-fields label em{color:#d64545;font-style:normal}.hr-fields input,.hr-fields select,.hr-fields textarea{width:100%;box-sizing:border-box;border:1px solid #dfe5ed;border-radius:9px;background:#fff;color:#263244;padding:10px 11px;font:inherit;font-weight:500;outline:0}.hr-fields input,.hr-fields select{height:40px}.hr-fields textarea{resize:vertical;min-height:88px;line-height:1.5}.hr-fields input:focus,.hr-fields select:focus,.hr-fields textarea:focus{border-color:#a9a4ff;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.hr-form-footer{display:flex;justify-content:flex-end;gap:9px;padding:3px 0 10px}.hr-calc{border:1px dashed #d9deea;background:#f8f9fc;border-radius:10px;padding:10px 13px;display:flex;flex-direction:column;justify-content:center}.hr-calc span,.hr-calc small{font-size:10.5px;color:#87919e}.hr-calc strong{font-size:19px;color:#263244;margin:3px 0}.hr-detail-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid #e7ebf0;border-radius:18px;padding:24px 27px;box-shadow:0 5px 18px rgba(30,41,59,.04)}.hr-detail-title{display:flex;align-items:center;gap:15px;min-width:0}.hr-detail-avatar{width:58px;height:58px;border-radius:15px;background:#eef1ff;color:#5666d8;display:grid;place-items:center;font-size:22px;flex:0 0 auto}.hr-detail-title>div:last-child>span:first-child{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#8994a2}.hr-detail-title h1{margin:5px 0 6px;font-size:27px;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hr-detail-sub{display:flex;align-items:center;gap:8px;color:#7b8795;font-size:11.5px}.hr-detail-actions{display:flex;gap:9px;flex-wrap:wrap}.hr-detail-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:16px 0}.hr-detail-kpis>div{background:#fff;border:1px solid #e7ebf0;border-radius:14px;padding:16px 18px;box-shadow:0 5px 18px rgba(30,41,59,.04)}.hr-detail-kpis span,.hr-detail-kpis small{display:block;color:#7f8a98;font-size:10.5px}.hr-detail-kpis strong{display:block;color:#263244;font-size:18px;margin:6px 0 3px;word-break:break-word}.hr-detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:17px}.hr-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}.hr-info-grid>div{padding:14px 19px;border-bottom:1px solid #edf0f3}.hr-info-grid>div.wide{grid-column:1/-1}.hr-info-grid span{display:block;color:#8994a2;font-size:10.5px;margin-bottom:4px}.hr-info-grid strong{display:block;color:#344052;font-size:12px;line-height:1.5;font-weight:600}.hr-side-actions{padding:19px;display:flex;flex-direction:column;gap:9px}.danger-btn{background:#fff0f1!important;color:#c13b4d!important;border-color:#f1c8cf!important}
@media(max-width:1100px){.hr-kpis{grid-template-columns:repeat(4,1fr)}.hr-module-grid{grid-template-columns:repeat(2,1fr)}.hr-detail-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.hr-page{padding:20px 0 45px}.hr-head,.hr-form-head,.hr-detail-hero{align-items:flex-start;flex-direction:column}.hr-head-actions,.hr-detail-actions{width:100%}.hr-head-actions .btn,.hr-detail-actions .btn{flex:1}.hr-kpis{grid-template-columns:repeat(2,1fr)}.hr-toolbar{align-items:stretch;flex-direction:column}.hr-search{max-width:none}.hr-fields{grid-template-columns:1fr;padding:17px}.hr-fields label.wide{grid-column:auto}.hr-form-footer .btn{flex:1}.hr-detail-title h1{font-size:22px;white-space:normal}.hr-detail-grid{grid-template-columns:1fr}.hr-info-grid{grid-template-columns:1fr}.hr-info-grid>div.wide{grid-column:auto}}
@media(max-width:520px){.hr-kpis,.hr-module-grid,.hr-detail-kpis{grid-template-columns:1fr}.hr-head h1{font-size:25px}.hr-card-head{padding:16px}.hr-detail-actions{flex-direction:column}.hr-detail-actions .btn{width:100%}}

/* ===== HR create/edit drawer ===== */
body:has(.hr-drawer-page){overflow:hidden}
.hr-drawer-page{position:fixed;inset:0;z-index:1098}
.hr-drawer-page .crm-drawer-backdrop{display:block;position:fixed;inset:0}
.hr-drawer-page .crm-drawer{width:min(820px,100vw);height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.hr-drawer-page .crm-drawer-form{height:auto;min-height:0;display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden}
.hr-drawer-page .crm-drawer-body{padding-bottom:34px;min-height:0;flex:1 1 auto;overflow-y:auto}
.hr-drawer-page .crm-drawer-foot{position:relative;z-index:10;display:flex;flex:0 0 78px;min-height:78px;visibility:visible;opacity:1;box-sizing:border-box}
.hr-drawer-page .crm-drawer-foot-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;visibility:visible;opacity:1;flex:0 0 auto}
.hr-drawer-page .crm-inline-summary{display:flex;flex-direction:column;justify-content:center;min-height:76px;padding:13px 14px;margin:0 0 18px;border:1px solid #dfe5ff;border-radius:10px;background:#f7f8ff;grid-column:span 2}
.hr-drawer-page .crm-inline-summary span{font-size:10.5px;color:#7a8799;text-transform:uppercase;letter-spacing:.05em;font-weight:700}
.hr-drawer-page .crm-inline-summary strong{font-size:18px;color:#26344b;margin-top:4px}
.hr-drawer-page .crm-inline-summary small{font-size:11px;color:#8a95a6;margin-top:3px}
@media(max-width:700px){.hr-drawer-page .crm-inline-summary{grid-column:auto}}

/* ===== HR drawer footer hard fix v40 ===== */
.hr-drawer-page .crm-drawer{height:100dvh;max-height:100dvh;overflow:hidden;box-sizing:border-box}
.hr-drawer-page .crm-drawer-head{flex:0 0 104px;box-sizing:border-box}
.hr-drawer-page .crm-drawer-form{height:auto !important;min-height:0 !important;flex:1 1 0 !important;display:flex !important;flex-direction:column !important;overflow:hidden !important}
.hr-drawer-page .crm-drawer-body{min-height:0 !important;flex:1 1 0 !important;overflow-y:auto !important;overflow-x:hidden !important}
.hr-drawer-page .crm-drawer-foot{display:flex !important;flex:0 0 78px !important;height:78px !important;min-height:78px !important;box-sizing:border-box !important;position:relative !important;z-index:20 !important;visibility:visible !important;opacity:1 !important}
.hr-drawer-page .crm-drawer-foot-actions{display:flex !important;visibility:visible !important;opacity:1 !important;align-items:center !important;justify-content:flex-end !important;gap:10px !important}
.hr-drawer-page .crm-drawer-foot-actions .btn{display:inline-flex !important;align-items:center !important;justify-content:center !important;visibility:visible !important;opacity:1 !important;position:relative !important;z-index:21 !important}
@media(max-width:700px){.hr-drawer-page .crm-drawer-head{flex-basis:92px;height:92px;min-height:92px}.hr-drawer-page .crm-drawer-foot{flex-basis:72px !important;height:72px !important;min-height:72px !important}.hr-drawer-page .crm-drawer-foot-actions{width:100% !important}.hr-drawer-page .crm-drawer-foot-actions .btn{flex:1 1 0 !important}}

/* ===== HR DRAWER FOOTER v42 — viewport-level, outside drawer overflow ===== */
.hr-drawer-page{position:fixed !important;inset:0 !important;z-index:1098 !important;pointer-events:none !important}
.hr-drawer-page .crm-drawer{pointer-events:auto !important}
.hr-drawer-page .crm-drawer-backdrop{pointer-events:auto !important}
.hr-drawer-page .crm-drawer-body{padding-bottom:130px !important}
.hr-drawer-page .hr-drawer-fixed-footer{
  position:fixed !important;
  right:0 !important;
  bottom:0 !important;
  width:min(820px,100vw) !important;
  height:78px !important;
  min-height:78px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  padding:14px 28px !important;
  margin:0 !important;
  background:#fff !important;
  border-top:1px solid #dfe5ec !important;
  box-shadow:0 -10px 28px rgba(15,23,42,.12) !important;
  z-index:1205 !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
.hr-drawer-page .hr-drawer-fixed-footer .crm-drawer-foot-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  width:auto !important;
  visibility:visible !important;
  opacity:1 !important;
}
.hr-drawer-page .hr-drawer-fixed-footer .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  height:42px !important;
  padding:0 16px !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  transform:none !important;
}
.hr-drawer-page .hr-drawer-fixed-footer .crm-save-btn{min-width:155px !important}
@media(max-width:700px){
  .hr-drawer-page .crm-drawer-body{padding-bottom:110px !important}
  .hr-drawer-page .hr-drawer-fixed-footer{width:100vw !important;height:72px !important;min-height:72px !important;padding:12px 14px !important}
  .hr-drawer-page .hr-drawer-fixed-footer .crm-drawer-foot-left{display:none !important}
  .hr-drawer-page .hr-drawer-fixed-footer .crm-drawer-foot-actions{width:100% !important}
  .hr-drawer-page .hr-drawer-fixed-footer .btn{flex:1 1 0 !important}
}



/* ===== Field Service forms -> CRM drawer v46 ===== */
.fsm-drawer-page{position:fixed;inset:0;z-index:1101;pointer-events:none}
.fsm-drawer-page .crm-drawer-backdrop{display:block;pointer-events:auto;z-index:1099}
.fsm-drawer-page .fsm-drawer{pointer-events:auto;z-index:1100}
.fsm-drawer .crm-drawer-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;overflow:hidden}
.fsm-drawer .fsm-drawer-body{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:26px 28px 34px;background:#f7f9fc}
.fsm-drawer .fsm-form-card{margin-bottom:16px}
.fsm-drawer .fsm-form-card:last-child{margin-bottom:0}
.fsm-drawer .fsm-form-footer{display:none}
.fsm-drawer .crm-drawer-foot{flex:0 0 78px;min-height:78px;display:flex;align-items:center;justify-content:space-between}
.fsm-drawer .crm-drawer-foot-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.fsm-drawer .crm-drawer-foot .btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px){
  .fsm-drawer .crm-drawer-head{height:92px;min-height:92px;padding:15px 18px}
  .fsm-drawer .fsm-drawer-body{padding:18px 14px 28px}
  .fsm-drawer .crm-drawer-foot{flex-basis:72px;min-height:72px;padding:12px 14px}
  .fsm-drawer .crm-drawer-foot-left{display:none}
  .fsm-drawer .crm-drawer-foot-actions{width:100%}
  .fsm-drawer .crm-drawer-foot-actions .btn{flex:1 1 0}
}

/* ===== CSV import template helper ===== */
.import-template-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #dbe5f0;border-radius:11px;background:#f8fbff;margin-top:10px}
.import-template-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.import-template-copy strong{font-size:13px;color:#25354d}
.import-template-copy strong i{margin-right:6px}
.import-template-copy span{font-size:11.5px;line-height:1.5;color:#718096}
.import-template-btn{white-space:nowrap;flex:0 0 auto}
.import-field-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.import-field-meta small{font-size:10.5px;color:#718096;line-height:1.35;text-align:right}
.crm-drawer-foot-left{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
@media(max-width:680px){.import-template-card{align-items:flex-start;flex-direction:column}.import-template-btn{width:100%;justify-content:center}.import-field-meta{justify-content:flex-start;flex-wrap:wrap}.import-field-meta small{text-align:left}.crm-drawer-foot-left{display:none}}

/* ===== CRM AI Agent v50 ===== */
.ai-agent-root{position:fixed;right:24px;bottom:24px;z-index:5000;font-family:Inter,system-ui,sans-serif}
.ai-agent-launcher{width:58px;height:58px;border:0;border-radius:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#17233a;color:#fff;box-shadow:0 14px 35px rgba(15,23,42,.24);font-size:21px;transition:transform .18s ease,box-shadow .18s ease}
.ai-agent-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.3)}
.ai-agent-launcher .ai-agent-pulse{position:absolute;right:-1px;top:-1px;width:12px;height:12px;border-radius:50%;background:#36c78b;border:2px solid #fff}
.ai-agent-panel{position:absolute;right:0;bottom:72px;width:min(430px,calc(100vw - 28px));height:min(680px,calc(100vh - 110px));background:#fff;border:1px solid #dce5f0;border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.22);overflow:hidden;display:flex;flex-direction:column}
.ai-agent-panel[hidden]{display:none}
.ai-agent-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #e7edf5;background:linear-gradient(180deg,#fbfdff,#f7faff)}
.ai-agent-brand{display:flex;align-items:center;gap:11px;min-width:0}
.ai-agent-logo{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#17233a;color:#fff;font-size:16px;box-shadow:0 7px 18px rgba(23,35,58,.16)}
.ai-agent-title{display:flex;flex-direction:column;gap:2px;min-width:0}.ai-agent-title strong{font-size:14px;color:#17233a}.ai-agent-title span{font-size:11px;color:#738197;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-agent-close{width:34px;height:34px;border:0;border-radius:10px;background:#edf2f8;color:#53627a;cursor:pointer}.ai-agent-close:hover{background:#e5ebf3}
.ai-agent-messages{flex:1;min-height:0;overflow:auto;padding:16px;background:#f6f8fb;display:flex;flex-direction:column;gap:12px}
.ai-agent-welcome{background:#fff;border:1px solid #e1e8f1;border-radius:15px;padding:14px 15px;box-shadow:0 5px 15px rgba(15,23,42,.04)}
.ai-agent-welcome strong{display:block;color:#17233a;font-size:13px;margin-bottom:5px}.ai-agent-welcome span{font-size:12px;line-height:1.55;color:#6d7b91}
.ai-agent-msg{max-width:90%;padding:11px 13px;border-radius:15px;font-size:12.5px;line-height:1.55;white-space:normal;word-break:break-word}
.ai-agent-msg.user{align-self:flex-end;background:#17233a;color:#fff;border-bottom-right-radius:5px}.ai-agent-msg.assistant{align-self:flex-start;background:#fff;color:#2c3a50;border:1px solid #e1e8f1;border-bottom-left-radius:5px;box-shadow:0 4px 12px rgba(15,23,42,.035)}
.ai-agent-msg.assistant h3{font-size:13px;margin:0 0 7px;color:#17233a}.ai-agent-msg.assistant p{margin:0 0 7px}.ai-agent-msg.assistant ul{margin:5px 0 7px 17px;padding:0}.ai-agent-msg.assistant li{margin:3px 0}.ai-agent-msg.assistant strong{color:#17233a}
.ai-agent-meta{font-size:10px;color:#8a96a8;margin-top:5px}
.ai-agent-quick{display:flex;gap:7px;overflow:auto;padding:9px 12px;border-top:1px solid #e7edf5;background:#fff}.ai-agent-quick button{white-space:nowrap;border:1px solid #dce5ef;background:#f8fafc;border-radius:10px;padding:7px 9px;font-size:10.5px;color:#4a5970;cursor:pointer}.ai-agent-quick button:hover{background:#f0f4f9}
.ai-agent-form{display:flex;align-items:flex-end;gap:8px;padding:11px 12px;border-top:1px solid #e7edf5;background:#fff}.ai-agent-input{flex:1;min-height:42px;max-height:110px;resize:none;border:1px solid #d8e1ec;border-radius:12px;padding:10px 11px;font:inherit;font-size:12px;outline:none}.ai-agent-input:focus{border-color:#9db0c9;box-shadow:0 0 0 3px rgba(55,86,122,.08)}.ai-agent-send{width:42px;height:42px;border:0;border-radius:12px;background:#17233a;color:#fff;cursor:pointer}.ai-agent-send:disabled{opacity:.55;cursor:wait}
.ai-agent-typing{display:inline-flex;gap:4px;align-items:center}.ai-agent-typing i{width:5px;height:5px;border-radius:50%;background:#8996a8;animation:aiDot 1s infinite ease-in-out}.ai-agent-typing i:nth-child(2){animation-delay:.15s}.ai-agent-typing i:nth-child(3){animation-delay:.3s}@keyframes aiDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
@media(max-width:600px){.ai-agent-root{right:14px;bottom:14px}.ai-agent-panel{right:-6px;bottom:70px;width:calc(100vw - 28px);height:min(680px,calc(100vh - 92px));border-radius:17px}.ai-agent-launcher{width:54px;height:54px;border-radius:17px}}
