:root{
  --navy:#0f1b33;
  --navy-2:#162744;
  --blue:#2563eb;
  --blue-2:#3b82f6;
  --blue-soft:#eff6ff;
  --text:#172033;
  --muted:#6b7890;
  --border:#e5eaf2;
  --bg:#f5f7fb;
  --white:#ffffff;
  --success:#15803d;
  --danger:#dc2626;
  --shadow:0 10px 30px rgba(15,27,51,.06);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}
a{text-decoration:none}
.btn{border-radius:10px;font-weight:650;padding:.62rem .95rem;box-shadow:none}
.btn-primary{background:var(--blue);border-color:var(--blue)}
.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.btn-light{background:#fff;border:1px solid rgba(255,255,255,.65);color:var(--navy);font-weight:700}
.btn-outline-primary{color:var(--blue);border-color:#c9d8f8}
.btn-outline-primary:hover{background:var(--blue);border-color:var(--blue)}
.btn-outline-secondary{border-color:#d7deea;color:#455269;background:#fff}
.form-control,.form-select{border:1px solid #dbe2ed;border-radius:10px;padding:.68rem .8rem;color:var(--text);background:#fff;box-shadow:none}
.form-control:focus,.form-select:focus{border-color:#93b4f6;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
label{display:block;font-size:12px;font-weight:700;color:#43506a;margin:0 0 6px}

/* Login */
.login-page{background:linear-gradient(135deg,#eef4ff 0%,#f7f9fc 55%,#eef2f8 100%);display:flex;align-items:center;justify-content:center;padding:30px;min-height:100vh}
.login-shell{width:min(460px,100%);text-align:center}
.login-brand{font-size:22px;letter-spacing:.12em;color:var(--navy);font-weight:700;margin-bottom:22px}
.login-brand b{background:var(--navy);color:#fff;padding:7px 10px;border-radius:10px;letter-spacing:0;font-size:16px;margin-left:4px}
.login-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:34px;text-align:left;box-shadow:0 20px 60px rgba(15,27,51,.10)}
.login-card h1{font-size:30px;margin:6px 0 8px;letter-spacing:-.03em}
.login-card p{color:var(--muted);margin-bottom:24px}
.login-card label{margin-top:15px}
.login-foot{color:#7a879b;font-size:12px;margin-top:16px}
.eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:#6d86ad;margin-bottom:7px}

/* Application shell */
.app{min-height:100vh;display:flex;background:var(--bg)}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:274px;background:var(--navy);color:#dce6f8;padding:25px 18px 18px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}
.brand{font-size:20px;font-weight:500;letter-spacing:.02em;color:#fff;padding:0 14px 24px;display:flex;align-items:center;gap:7px}
.brand span{background:#fff;color:var(--navy);font-weight:800;font-size:16px;padding:8px 9px;border-radius:11px;letter-spacing:0}
.workspace{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);border-radius:14px;padding:13px 12px;display:flex;gap:11px;align-items:center;margin-bottom:24px}
.ws-icon{width:38px;height:38px;border-radius:11px;background:#2e5aa7;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto}
.workspace small{display:block;color:#8191ad;font-size:9px;letter-spacing:.13em;font-weight:800;margin-bottom:2px}
.workspace strong{display:block;color:#fff;font-size:13px;line-height:1.35;max-width:170px;overflow:hidden;text-overflow:ellipsis}
.sidebar nav{display:flex;flex-direction:column;gap:5px}
.sidebar nav a,.sidebar-bottom a{display:flex;align-items:center;gap:12px;color:#aebbd0;border-radius:11px;padding:11px 13px;font-size:14px;font-weight:600;transition:.15s ease}
.sidebar nav a:hover,.sidebar-bottom a:hover{background:rgba(255,255,255,.07);color:#fff}
.sidebar nav a.active{background:#24334d;color:#fff;box-shadow:inset 3px 0 0 #60a5fa}
.sidebar nav a:first-letter{font-size:15px}
.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.10);padding-top:15px}
.sidebar-bottom a{justify-content:center;color:#b9c6da}
.main{margin-left:274px;min-width:0;width:calc(100% - 274px);min-height:100vh}
.topbar{height:76px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,4vw,54px);position:sticky;top:0;z-index:10;backdrop-filter:blur(10px)}
.topbar h5{margin:0;color:#18243a;font-size:15px;font-weight:750}
.topbar span{font-size:12px;color:#7b879a}
.profile{display:flex;align-items:center;gap:10px}
.avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8f0ff;color:#2455a6;font-weight:800}
.profile strong,.profile small{display:block;line-height:1.2}.profile strong{font-size:13px}.profile small{color:#7b879a;font-size:11px;margin-top:3px}
.content{width:100%;max-width:1450px;margin:0 auto;padding:34px clamp(22px,4vw,54px) 60px}
.alert{border:0;border-radius:12px;font-weight:600;margin-bottom:20px}

/* Dashboard */
.hero{min-height:245px;border-radius:24px;padding:38px 40px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:linear-gradient(135deg,#142844 0%,#223c61 100%);color:#fff;box-shadow:0 16px 36px rgba(15,27,51,.12);overflow:hidden;position:relative}
.hero:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(255,255,255,.07);border-radius:50%;right:-100px;top:-130px;box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.018)}
.hero>div{position:relative;z-index:1;max-width:850px}
.hero .eyebrow{color:#9fb4d4}.hero h1{font-size:clamp(31px,3.2vw,48px);letter-spacing:-.045em;line-height:1.05;margin:0 0 13px;font-weight:800}.hero p{margin:0;color:#c4d0e2;font-size:16px;max-width:720px}
.hero>.btn{position:relative;z-index:2;white-space:nowrap;min-width:145px;text-align:center}
.metric{height:100%;min-height:145px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:23px 25px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center}
.metric span{color:#718099;font-size:12px;font-weight:650}.metric b{font-size:29px;line-height:1.15;margin:6px 0 4px;color:#12203a}.metric small{color:#8a96a8;font-size:12px}.text-sm{font-size:17px!important;line-height:1.35!important}
.panel{background:#fff;border:1px solid var(--border);border-radius:18px;padding:24px;box-shadow:var(--shadow)}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-head h5,.panel h5{margin:0;font-size:17px;font-weight:800;color:#142039}.panel-head small,.panel-subtitle{color:#8490a3;font-size:12px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-grid a{border:1px solid #e8edf4;border-radius:14px;padding:17px;display:grid;grid-template-columns:38px 1fr;column-gap:12px;align-items:center;transition:.15s ease;background:#fff}.quick-grid a:hover{border-color:#c7d8f7;transform:translateY(-1px);box-shadow:0 7px 20px rgba(15,27,51,.06)}.quick-grid b{grid-row:span 2;width:38px;height:38px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:19px}.quick-grid span{font-weight:750;color:#1b2941}.quick-grid small{color:#8995a7;font-size:11px}.steps{display:flex;flex-direction:column;gap:13px}.steps div{display:flex;align-items:center;gap:12px;color:#536177;font-size:13px}.steps b{width:31px;height:31px;border-radius:9px;background:#f0f5ff;color:#3166ba;display:flex;align-items:center;justify-content:center;font-size:11px}

/* Inner pages */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-head h2{font-size:30px;letter-spacing:-.035em;margin:0 0 4px;font-weight:800}.page-head p{margin:0;color:#7c889b}.page-head>div:first-child{min-width:0}
.searchbar{display:flex;gap:10px}.searchbar .form-control{min-width:0}
.table{margin:0;color:#27344a}.table>thead>tr>th{background:#f8faff;color:#6e7b90;text-transform:uppercase;font-size:10px;letter-spacing:.06em;font-weight:800;border-bottom:1px solid #e5eaf2;padding:13px 12px;white-space:nowrap}.table>tbody>tr>td{padding:14px 12px;border-color:#edf0f5;vertical-align:middle;font-size:13px}.table>tbody>tr:hover{background:#fafcff}.customer-link{font-weight:750;color:#1e56a7}.badge{font-weight:700;padding:.42em .65em;border-radius:8px}.table-labels{display:flex;flex-wrap:wrap;gap:5px}.table-labels span{background:#edf5ff;color:#2f61a9;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:750}.table-labels .muted-label{background:#f4f5f7;color:#a2aaba}
.document-box,.label-box{background:#f8faff;border:1px solid #e3eaf5;border-radius:14px;padding:18px}.document-title{font-weight:800;color:#26354e}.document-title span{font-size:10px;background:#eaf0fa;color:#71809a;padding:4px 7px;border-radius:999px;margin-left:7px}.document-help{color:#8793a6;font-size:12px;margin-top:4px}.doc-row{display:flex;align-items:center;gap:10px;border:1px solid #e5eaf2;background:#fff;border-radius:12px;padding:10px}.doc-icon{width:35px;height:35px;border-radius:9px;background:#eff5ff;display:flex;align-items:center;justify-content:center}.doc-info{min-width:0;flex:1}.doc-info strong,.doc-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-info strong{font-size:12px}.doc-info small{font-size:10px;color:#8a95a7;margin-top:2px}
.label-box{margin-top:0}.label-box-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.label-box-head strong{display:block;font-size:14px}.label-box-head small{display:block;color:#8995a8;font-size:11px}.label-count,.count-pill{background:#edf4ff;color:#2f61aa;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;white-space:nowrap}.label-select-grid{display:flex;flex-wrap:wrap;gap:8px}.label-option{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #dde5f0;border-radius:999px;padding:8px 11px;margin:0;cursor:pointer;color:#4c5a70}.label-option:has(input:checked){background:#eaf2ff;border-color:#9ebdf2;color:#1f5bab}.label-option input{accent-color:var(--blue)}.empty-label{font-size:12px;color:#8793a6}.empty-label a{color:var(--blue);font-weight:700}

/* Labels */
.label-create-card{min-height:210px}.section-icon{width:43px;height:43px;border-radius:12px;background:#edf4ff;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:15px}.label-create-card h5{font-size:20px}.label-create-form{display:flex;gap:9px;margin-top:18px}.label-create-form .form-control{flex:1}.label-list{display:flex;flex-direction:column;gap:9px}.label-row{border:1px solid #e7ebf2;border-radius:12px;padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.label-row>div:first-child{display:flex;align-items:center;gap:9px}.label-dot{width:9px;height:9px;background:#3b82f6;border-radius:50%}.label-row strong{font-size:13px}.label-row-actions{display:flex;gap:7px}.label-row-actions form{margin:0}.empty-state{min-height:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#8793a6}.empty-icon{font-size:26px;margin-bottom:3px}.empty-state strong{color:#42516a}

/* responsive */
@media(max-width:900px){.sidebar{width:220px}.main{margin-left:220px;width:calc(100% - 220px)}.content{padding:24px}.hero{padding:30px}.hero h1{font-size:34px}.quick-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{position:relative;width:100%;height:auto;min-height:auto;padding:14px;display:block}.sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.sidebar-bottom{margin-top:12px}.main{margin-left:0;width:100%}.app{display:block}.topbar{padding:12px 18px;height:auto}.content{padding:18px}.hero{min-height:auto;align-items:flex-start;flex-direction:column;padding:27px}.hero>.btn{width:100%}.page-head{align-items:flex-start;flex-direction:column}.label-create-form{flex-direction:column}.searchbar{flex-direction:column}.quick-grid{grid-template-columns:1fr}.profile>div:last-child{display:none}}


/* V8 customer filters and bulk actions */
.customer-filters{background:#f8fafc;border:1px solid #e6ebf2;border-radius:16px;padding:16px;}
.customer-filters label{font-size:.78rem;font-weight:700;color:#526174;margin-bottom:6px;display:block;}
.bulk-toolbar{padding:10px 2px;}
.select-all-wrap{font-size:.9rem;color:#243247;cursor:pointer;}
.select-all-wrap input,.customer-check{width:17px;height:17px;accent-color:#315efb;vertical-align:middle;cursor:pointer;}
.selected-count{font-size:.82rem;color:#718096;background:#f1f5f9;border-radius:999px;padding:5px 10px;}
.check-col{width:42px;text-align:center;}
.table-labels span{display:inline-block;margin:2px 4px 2px 0;padding:4px 9px;border-radius:999px;background:#eef4ff;color:#3157a6;font-size:.75rem;font-weight:700;}
@media(max-width:768px){.customer-filters .btn{width:100%;}.bulk-toolbar{align-items:flex-start!important;}}

/* Dashboard refresh - lighter, cleaner SaaS presentation */
.dashboard-welcome{min-height:250px;border:1px solid #e4ebf5;border-radius:20px;padding:34px 36px;display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(135deg,#f7faff 0%,#eef5ff 100%);box-shadow:0 10px 28px rgba(30,64,110,.06);overflow:hidden;position:relative}
.dashboard-welcome:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-150px;top:-205px;border:1px solid rgba(75,125,205,.08);box-shadow:0 0 0 34px rgba(75,125,205,.025),0 0 0 70px rgba(75,125,205,.018)}
.welcome-copy{position:relative;z-index:2;max-width:720px}.welcome-copy .eyebrow{color:#6a83a9;margin-bottom:8px}.welcome-copy h1{margin:0 0 10px;font-size:clamp(28px,3vw,39px);line-height:1.1;letter-spacing:-.035em;font-weight:760;color:#142642}.welcome-copy h1 span{font-size:.8em}.welcome-copy p{margin:0;color:#60718d;font-size:15px;max-width:650px}.welcome-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.welcome-actions .btn{padding:.65rem 1rem}.welcome-actions .btn-outline-primary{background:#fff;border-color:#cbdaf2}.welcome-actions .btn-outline-primary span{font-size:18px;line-height:0;margin-left:5px}
.welcome-art{width:330px;height:190px;position:relative;flex:0 0 auto;opacity:.95}.art-window{position:absolute;right:16px;top:16px;width:245px;height:140px;border-radius:12px;background:rgba(255,255,255,.82);border:1px solid #dbe6f6;box-shadow:0 15px 35px rgba(45,86,145,.10);padding:32px 15px 12px}.art-window:before{content:"";position:absolute;left:0;right:0;top:0;height:25px;border-radius:12px 12px 0 0;background:#2f72df}.art-window i{position:absolute;top:9px;width:6px;height:6px;border-radius:50%;background:#d9e8ff;z-index:2}.art-window i:nth-child(1){left:12px}.art-window i:nth-child(2){left:22px}.art-window i:nth-child(3){left:32px}.art-lines{position:absolute;left:15px;top:45px;width:92px}.art-lines b{display:block;height:9px;background:#e3edff;border-radius:5px;margin-bottom:9px}.art-lines b:nth-child(2){width:72px}.art-lines b:nth-child(3){width:58px}.art-chart{position:absolute;right:15px;bottom:12px;width:108px;height:67px;border-radius:9px;background:#fff;border:1px solid #e4ebf5;display:flex;align-items:flex-end;gap:7px;padding:10px 11px}.art-chart em{display:block;width:14px;border-radius:4px 4px 2px 2px;background:#6d9dec}.art-chart em:nth-child(1){height:20px}.art-chart em:nth-child(2){height:34px}.art-chart em:nth-child(3){height:25px}.art-chart em:nth-child(4){height:43px}
.dashboard-metrics{margin-top:14px}.dashboard-metrics .metric{min-height:138px;padding:22px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px;border-radius:18px;box-shadow:0 7px 22px rgba(15,27,51,.045)}.metric-icon{width:54px;height:54px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-size:22px;flex:0 0 auto}.metric-customers .metric-icon{background:#eaf2ff;color:#2869dc}.metric-imports .metric-icon{background:#e8f8f0;color:#21a366}.metric-workspace .metric-icon{background:#f2eaff;color:#8757d8}.dashboard-metrics .metric span{font-size:12px;color:#70819e}.dashboard-metrics .metric b{font-size:25px;margin:5px 0 3px}.dashboard-metrics .metric small{font-size:11px;color:#8b98aa}
.dashboard-metrics + .row{margin-top:10px!important}.dashboard-metrics + .row .panel{border-radius:18px;padding:22px}.dashboard-metrics + .row .panel-head{margin-bottom:15px}.dashboard-metrics + .row .panel-head h5{font-size:16px;font-weight:750}.dashboard-metrics + .row .panel-head small{font-size:11px}.dashboard-metrics + .row .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dashboard-metrics + .row .quick-grid a{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;min-height:130px;padding:14px}.dashboard-metrics + .row .quick-grid b{margin-bottom:2px}.dashboard-metrics + .row .quick-grid span{font-size:12px}.dashboard-metrics + .row .quick-grid small{font-size:10px;line-height:1.4}.dashboard-metrics + .row .steps{gap:11px}.dashboard-metrics + .row .steps div{font-size:12px}.dashboard-metrics + .row .steps b{width:29px;height:29px;border-radius:50%}
@media(max-width:900px){.welcome-art{display:none}.dashboard-metrics + .row .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-welcome{padding:26px 22px}.welcome-copy h1{font-size:29px}.welcome-actions{margin-top:18px}.welcome-actions .btn{width:100%}.dashboard-metrics .metric{min-height:112px}.dashboard-metrics + .row .quick-grid{grid-template-columns:1fr}}


/* V15 Compact UI refresh - optimized for 1366px desktop screens */
html{overflow-x:hidden}
body{font-size:13px;line-height:1.45;overflow-x:hidden}
.sidebar{width:235px;padding:20px 14px 14px}
.brand{font-size:18px;padding:0 11px 18px}
.brand span{font-size:14px;padding:6px 8px;border-radius:9px}
.workspace{padding:10px;margin-bottom:17px}
.ws-icon{width:34px;height:34px;border-radius:9px}
.workspace small{font-size:8px}
.workspace strong{font-size:12px;max-width:145px}
.sidebar nav{gap:3px}
.sidebar nav a,.sidebar-bottom a{gap:10px;padding:9px 10px;font-size:12.5px;border-radius:9px}
.sidebar nav a:first-letter{font-size:14px}
.main{margin-left:235px;width:calc(100% - 235px)}
.topbar{height:64px;padding:0 clamp(18px,2.5vw,34px)}
.topbar h5{font-size:14px}
.profile{gap:8px}.avatar{width:34px;height:34px}.profile strong{font-size:12px}.profile small{font-size:10px}
.content{max-width:none;padding:24px clamp(18px,2.5vw,34px) 42px}
.alert{margin-bottom:14px;font-size:12px;padding:9px 12px}

/* Typography */
.page-head{gap:14px;margin-bottom:16px}.page-head h2{font-size:24px;font-weight:750}.page-head p{font-size:12px}
.eyebrow{font-size:9px;letter-spacing:.12em}
.btn{font-size:12px;border-radius:8px;padding:.5rem .75rem;font-weight:650}
.btn-sm{font-size:11px;padding:.38rem .58rem}
.form-control,.form-select{font-size:12px;padding:.55rem .65rem;border-radius:8px}
label{font-size:11px;margin-bottom:4px}
.form-text{font-size:10px}

/* Dashboard */
.hero{min-height:205px;padding:28px 30px;border-radius:18px;gap:20px}
.hero h1{font-size:clamp(27px,2.7vw,38px);margin-bottom:10px}
.hero p{font-size:14px}.hero>.btn{min-width:130px}
.dashboard-welcome{min-height:205px;padding:27px 30px;border-radius:18px;gap:20px}
.welcome-copy h1{font-size:clamp(26px,2.7vw,35px)}
.welcome-copy p{font-size:13px}.welcome-actions{margin-top:17px}.welcome-actions .btn{padding:.55rem .82rem}
.welcome-art{width:285px;height:165px}.art-window{width:215px;height:124px}.art-chart{width:95px;height:58px}
.dashboard-metrics{margin-top:11px}
.dashboard-metrics .metric{min-height:112px;padding:17px;gap:12px;border-radius:15px}
.metric-icon{width:44px;height:44px;border-radius:12px;font-size:18px}
.dashboard-metrics .metric span{font-size:10px}.dashboard-metrics .metric b{font-size:22px;margin:3px 0}.dashboard-metrics .metric small{font-size:10px}
.dashboard-metrics + .row{margin-top:8px!important}
.dashboard-metrics + .row .panel{padding:18px;border-radius:15px}
.dashboard-metrics + .row .panel-head{margin-bottom:12px}.dashboard-metrics + .row .panel-head h5{font-size:14px}.dashboard-metrics + .row .panel-head small{font-size:10px}
.dashboard-metrics + .row .quick-grid{gap:8px}.dashboard-metrics + .row .quick-grid a{min-height:112px;padding:11px;gap:5px}.dashboard-metrics + .row .quick-grid span{font-size:11px}.dashboard-metrics + .row .quick-grid small{font-size:9px}.dashboard-metrics + .row .steps{gap:8px}.dashboard-metrics + .row .steps div{font-size:11px}.dashboard-metrics + .row .steps b{width:26px;height:26px;font-size:10px}

/* Panels and forms */
.panel{padding:18px;border-radius:15px}.panel-head{gap:12px;margin-bottom:13px}.panel-head h5,.panel h5{font-size:15px}.panel-head small,.panel-subtitle{font-size:10px}
.document-box,.label-box{padding:14px;border-radius:12px}.document-title{font-size:12px}.document-help{font-size:10px}.doc-row{padding:8px;border-radius:9px}.doc-icon{width:30px;height:30px}.doc-info strong{font-size:11px}.doc-info small{font-size:9px}
.label-create-card{min-height:175px}.section-icon{width:36px;height:36px;border-radius:10px;font-size:17px;margin-bottom:10px}.label-create-card h5{font-size:16px}.label-create-form{margin-top:12px}.label-row{padding:9px 11px}.label-row strong{font-size:11px}.label-row-actions{gap:5px}.label-list{gap:7px}

/* Customer page: fit more columns without clipping */
.customer-filters{padding:12px;border-radius:12px}.customer-filters label{font-size:10px}.bulk-toolbar{padding:7px 0;margin-bottom:8px!important}.select-all-wrap{font-size:12px}.select-all-wrap input,.customer-check{width:15px;height:15px}.selected-count{font-size:10px;padding:4px 8px}
.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{font-size:12px;width:100%;margin-bottom:0}
.table>thead>tr>th{font-size:9px;padding:9px 8px;letter-spacing:.04em}
.table>tbody>tr>td{font-size:11px;padding:10px 8px}
.customer-link{font-weight:700}.badge{font-size:10px;padding:.32em .55em}.table-labels{gap:3px}.table-labels span{font-size:9px;padding:3px 6px}
.table td:last-child{min-width:175px;white-space:normal}.table td:last-child a,.table td:last-child form{display:inline-block;margin:2px 2px 2px 0;vertical-align:middle}.table td:last-child .btn{font-size:10px;padding:.32rem .48rem}
.check-col{width:34px}

/* Make search/filter controls compact and prevent horizontal overflow */
.customer-filters .row,.customer-filters.row{--bs-gutter-x:.5rem;--bs-gutter-y:.5rem}
.searchbar{gap:7px}.searchbar .form-control{font-size:12px}

@media(max-width:1100px){
 .sidebar{width:215px}.main{margin-left:215px;width:calc(100% - 215px)}
 .content{padding-left:18px;padding-right:18px}
 .welcome-art{display:none}
 .dashboard-welcome{min-height:180px}
 .dashboard-metrics .metric{min-height:105px;padding:15px}
 .dashboard-metrics .metric b{font-size:20px}
}
@media(max-width:900px){
 .sidebar{width:200px}.main{margin-left:200px;width:calc(100% - 200px)}
 .content{padding:18px 14px 34px}
 .hero{padding:24px}.hero h1{font-size:30px}
 .dashboard-metrics + .row .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .sidebar{position:relative;width:100%;padding:12px;min-height:auto}.main{margin-left:0;width:100%}
 .content{padding:14px 12px 28px}
 .topbar{padding:0 14px}
 .page-head h2{font-size:21px}
 .page-head p{font-size:11px}
 .dashboard-welcome{padding:21px 20px}.welcome-copy h1{font-size:26px}.welcome-copy p{font-size:12px}
 .dashboard-metrics .metric{min-height:96px;padding:13px}
 .dashboard-metrics + .row .quick-grid{grid-template-columns:1fr}
 .customer-filters .btn{width:auto}
 .table td:last-child{min-width:150px}
}

/* TechFlint CRM feature extensions */
.timeline{position:relative;padding-left:24px}.timeline:before{content:"";position:absolute;left:7px;top:4px;bottom:4px;width:2px;background:#e8eef6}.timeline-item{position:relative;display:flex;gap:12px;padding:0 0 18px}.timeline-dot{position:absolute;left:-21px;top:5px;width:10px;height:10px;border-radius:50%;background:#2563eb;border:2px solid #fff;box-shadow:0 0 0 2px #dbeafe}.timeline-item strong{display:block;font-size:13px}.timeline-item small{display:block;color:#718096;font-size:11px;margin-top:2px}.timeline-item p{margin:5px 0 0;font-size:12px;color:#475569}.metric a{font-size:12px;text-decoration:none}.badge.bg-warning-subtle{background:#fff7d6!important}.text-warning-emphasis{color:#9a6700!important}.page-head p{margin-bottom:0}.panel-head small{color:#7b8794}.customer-link{font-weight:600;color:#1d4ed8;text-decoration:none}.customer-link:hover{text-decoration:underline}.table td{font-size:13px}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#718096}.btn{border-radius:9px}.form-control,.form-select{border-radius:9px}.metric{height:100%}


/* Feature sections for Lead, Travel and Initial Follow-up */
.feature-section{border:1px solid #dbe5f0;border-radius:14px;padding:18px;background:#f8fbff;margin-top:2px}
.feature-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.feature-section-head h5{margin:0 0 3px;font-weight:700;color:#0f2742}
.feature-section-head small{color:#64748b}
.feature-badge{font-size:11px;padding:5px 9px;border-radius:999px;background:#e8f1ff;color:#2563eb;font-weight:600;white-space:nowrap}
@media(max-width:767px){.feature-section-head{display:block}.feature-badge{display:inline-block;margin-top:8px}}

.followup-note-box{background:#f8fafc;border:1px solid #e5eaf2;border-radius:8px;padding:8px 10px;line-height:1.45;white-space:normal;min-height:34px;color:#334155}.followup-note-box .text-muted{color:#94a3b8!important}

/* V5 Professional workflow + layout fixes */
.login-shell{width:min(690px,100%)}
.login-card{max-width:520px;margin:0 auto}
.login-foot{max-width:520px;margin:16px auto 0;text-align:center;line-height:1.7}
.dashboard-metrics .metric{min-width:0;overflow:hidden}
.dashboard-metrics .metric-body{min-width:0;flex:1}
.dashboard-metrics .metric-body span,.dashboard-metrics .metric-body b,.dashboard-metrics .metric-body small{display:block;white-space:normal;overflow-wrap:anywhere}
.dashboard-metrics .metric-body b{font-variant-numeric:tabular-nums}
.metric-leads .metric-icon{background:#fff0f8;color:#c23b82}
.customer-form-hint{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f7faff;border:1px solid #dfe9f8;border-radius:12px;padding:12px 14px;color:#5f6f86}
.customer-form-hint strong{color:#1d3150}.customer-form-hint a{font-weight:700;color:var(--blue);margin-left:auto}
.customer-profile-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:14px}
.profile-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-summary-grid>div{background:#f8fafc;border:1px solid #e7edf5;border-radius:11px;padding:11px 12px;min-width:0}
.profile-summary-grid small,.module-copy span{display:block;color:#8793a6;font-size:10px}.profile-summary-grid strong{display:block;color:#24344d;font-size:12px;margin-top:3px;overflow-wrap:anywhere}
.profile-modules{display:flex;flex-direction:column}.module-summary{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf1f6}.module-summary:first-of-type{border-top:0;padding-top:0}.module-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:17px}.module-icon.lead{background:#edf4ff;color:#2563eb}.module-icon.follow{background:#eaf8f1;color:#15803d}.module-copy{min-width:0;flex:1}.module-copy strong{display:block;font-size:12px;color:#23324b;margin-bottom:2px}.module-copy span{overflow-wrap:anywhere}.module-summary>.btn{white-space:nowrap}
.lead-editor,.followup-editor{border:1px solid #dce6f3;box-shadow:0 10px 26px rgba(24,55,95,.055)}
.lead-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;white-space:nowrap}.status-new{background:#edf4ff;color:#2563eb}.status-contacted{background:#eef2ff;color:#4f46e5}.status-interested{background:#eaf8f1;color:#15803d}.status-follow-up{background:#fff7df;color:#a16207}.status-converted{background:#e6f7ef;color:#0f7a3a}.status-not_interested,.status-lost{background:#fff0f0;color:#b42318}
.followup-kpis .metric{min-height:105px;padding:16px 18px}.kpi-label{color:#718099;font-size:11px;font-weight:750}.followup-kpis .metric b{font-size:24px;margin:3px 0}.followup-kpis .metric small{font-size:10px}
.action-form{min-width:245px;background:#f8fafc;border:1px solid #e6ebf2;border-radius:10px;padding:9px}.action-form textarea{min-width:0}
.settings-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:14px}.settings-hero{background:linear-gradient(135deg,#142844 0%,#27466f 100%);color:#fff;border:0}.settings-hero h4{margin:10px 0 7px;font-size:21px}.settings-hero p{color:#cbd8e9;font-size:12px;line-height:1.6;margin:0}.settings-icon{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:21px}.setting-toggle{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid #edf1f6;margin:0;cursor:pointer}.setting-toggle>span{flex:1;min-width:0}.setting-toggle strong{display:block;color:#24344d;font-size:13px}.setting-toggle small{display:block;color:#8490a2;font-size:10px;font-weight:500;margin-top:3px}.setting-toggle input{position:absolute;opacity:0;pointer-events:none}.setting-toggle i{width:46px;height:25px;border-radius:999px;background:#d8e0eb;position:relative;flex:0 0 auto;transition:.18s}.setting-toggle i:after{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:.18s}.setting-toggle input:checked+i{background:#2563eb}.setting-toggle input:checked+i:after{left:24px}.settings-note{margin-top:14px;padding:11px 12px;border-radius:10px;background:#f7faff;color:#68778e;font-size:10px;line-height:1.55}.settings-info{grid-column:1/-1}.workflow-step{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid #edf1f6}.workflow-step:first-of-type{border-top:0}.workflow-step>b{width:28px;height:28px;border-radius:50%;background:#edf4ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 auto}.workflow-step strong,.workflow-step span{display:block}.workflow-step strong{font-size:12px;color:#26364f}.workflow-step span{font-size:10px;color:#8793a6;margin-top:2px}
.empty-state{padding:36px 20px;text-align:center}.empty-state .empty-icon{font-size:30px;color:#94a3b8}
@media(max-width:950px){.customer-profile-grid,.settings-grid{grid-template-columns:1fr}.settings-info{grid-column:auto}}
@media(max-width:700px){.profile-summary-grid{grid-template-columns:1fr}.customer-form-hint a{margin-left:0;width:100%}.module-summary{align-items:flex-start}.module-summary>.btn{font-size:10px}.action-form{min-width:200px}}

/* Lead-first CRM flow */
.lead-flow-banner{display:flex;align-items:center;gap:14px;background:#f8fbff;border:1px solid #dbe7f5;border-radius:18px;padding:16px 18px;margin-bottom:18px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.flow-node{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:12px;background:#fff;border:1px solid #e5eaf2}.flow-node b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e9eef7;color:#24405f}.flow-node.active b{background:#2563eb;color:#fff}.flow-node span{font-weight:700;color:#172b4d}.flow-node small{display:block;color:#718096;font-size:11px}.flow-arrow{color:#94a3b8;font-size:20px}.flow-note{margin-left:auto;color:#64748b;font-size:12px;max-width:240px}.duplicate-warning{padding:12px 14px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px}.module-summary{height:100%;display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #e5eaf2;border-radius:14px;background:#fff}.module-copy{flex:1;min-width:0}.module-copy strong{display:block;color:#17325c}.module-copy span{display:block;color:#718096;font-size:12px;margin-top:3px}.module-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:700;background:#eef4ff}.module-icon.follow{background:#ecfdf3}.module-icon.lead{background:#f3e8ff}

.conversion-panel{border-left:4px solid #16a34a}.conversion-panel .panel-head{margin-bottom:10px}.lead-flow-banner .flow-node{min-width:145px}.lead-flow-banner .flow-node span{line-height:1.1}.lead-flow-banner .flow-note{font-size:12px;line-height:1.4}
