:root{--primary:#3f6074;--primary-dark:#2f4b5d;--primary-soft:#edf3f6;--ink:#17212b;--muted:#778592;--line:#e3e8ec;--bg:#f5f7f8}
*{box-sizing:border-box}html{font-family:"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}body{margin:0;background:var(--bg)}a{color:inherit}.app-shell{min-height:100vh}
.sidebar{position:fixed;right:0;top:0;bottom:0;width:258px;background:#18232d;color:#d9e1e6;padding:22px 16px;display:flex;flex-direction:column;z-index:20}
.brand{display:flex;align-items:center;gap:11px;padding:0 8px 18px}.brand-mark,.hero-logo{display:grid;place-items:center;background:#45687d;color:#fff;font-weight:700;border-radius:11px}.brand-mark{width:38px;height:38px;font-size:19px}.brand strong{display:block;color:#fff;font-size:17px}.brand span{display:block;color:#90a0aa;font-size:12px;margin-top:1px}
.context-box{background:#202e39;border:1px solid #2b3c48;padding:11px 12px;border-radius:12px;margin:3px 2px 18px}.context-box small{display:block;color:#8ea0aa;font-size:10px}.context-box strong{display:block;color:#fff;font-size:13px;margin-top:4px}.context-links{display:flex;gap:5px;margin-top:10px}.context-links a{text-decoration:none;font-size:10px;border:1px solid #3a4b56;padding:4px 7px;border-radius:6px;color:#aebac1}.context-links a.on{background:#dfe8ed;color:#294656;border-color:#dfe8ed}
nav{display:flex;flex-direction:column;gap:3px}nav a{text-decoration:none;color:#bdc8cf;padding:10px 11px;border-radius:9px;display:flex;align-items:center;gap:10px;font-size:13px}nav a:hover,nav a.active{background:#253643;color:#fff}.nav-icon{width:20px;text-align:center;font-size:16px}.nav-caption{color:#73858f;font-size:10px;font-weight:600;padding:18px 11px 5px}.muted-link{opacity:.55}.muted-link em{font-style:normal;font-size:9px;background:#31434f;padding:2px 5px;border-radius:5px;margin-right:auto}
.sidebar-user{margin-top:auto;border-top:1px solid #2a3944;padding:16px 7px 2px;display:flex;align-items:center;gap:9px}.avatar{width:34px;height:34px;background:#304553;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600}.user-text{min-width:0;flex:1}.user-text strong,.user-text span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-text strong{font-size:12px;color:#fff}.user-text span{font-size:10px;color:#8598a3;margin-top:2px}.sidebar-user>a{text-decoration:none;color:#8fa0aa}
.main{margin-right:258px;min-height:100vh}.topbar{height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:10}.topbar h1{font-size:19px;margin:0;font-weight:650}.today{font-size:11px;color:#87939c;margin-top:4px}.content{padding:26px 30px 50px;max-width:1500px;margin:auto}
.primary-button,.secondary-button,.white-button,.small-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:9px;cursor:pointer;font-family:inherit;font-weight:600;border:0}.primary-button{background:var(--primary);color:#fff;padding:10px 15px;box-shadow:0 4px 12px rgba(52,83,101,.15)}.primary-button:hover{background:var(--primary-dark)}.primary-button.big{padding:12px 22px}.secondary-button{background:#fff;color:#475760;border:1px solid #d8e0e4;padding:10px 15px}.white-button{background:#fff;color:#35586c;padding:11px 16px}.small-button{background:#eef3f5;color:#35586c;padding:7px 10px;border:1px solid #d5e0e5;font-size:11px}button:disabled{opacity:.45;cursor:not-allowed}
.welcome-card{background:linear-gradient(120deg,#3b5d72,#607b8b);border-radius:17px;padding:24px 27px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 10px 28px rgba(47,75,93,.12)}.welcome-card span{font-size:11px;color:#d7e2e8}.welcome-card h2{font-size:21px;font-weight:650;margin:6px 0}.welcome-card p{margin:0;color:#e2eaee;font-size:13px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:18px 0}.stat-card,.panel,.side-form,.form-shell,.integration-card,.integration-intro{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 7px 22px rgba(35,48,56,.04)}.stat-card{padding:18px 19px}.stat-card span{font-size:11px;color:#7b8790}.stat-card strong{font-size:27px;font-weight:650;display:block;margin:5px 0 2px}.stat-card strong.small-stat{font-size:18px;margin-top:9px}.stat-card small{color:#99a3aa}.stat-card.warning strong{color:#b36b1d}
.panel-title{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #edf0f2}.panel-title h3{margin:0;font-size:15px;font-weight:650}.panel-title p{margin:4px 0 0;color:#89959d;font-size:11px}.panel-title a{text-decoration:none;font-size:11px;color:#3f6074;font-weight:600}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:right;padding:12px 15px;border-bottom:1px solid #edf0f2;font-size:12px;vertical-align:top}th{background:#fafbfb;color:#7b8890;font-size:10px;font-weight:600}.description{max-width:340px;color:#3d4a51}.tag{background:#edf3f6;color:#3b6074;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:600}.table-sub{display:block;color:#99a4aa;margin-top:3px}.table-link{color:#3d6277;text-decoration:none;font-weight:600}.empty{padding:38px;text-align:center;color:#8b979e}.flash{padding:11px 13px;border-radius:9px;margin-bottom:14px;font-size:12px}.flash.success{background:#eef8f3;color:#19704f;border:1px solid #cfe9dc}.flash.error{background:#fff3f3;color:#a4383d;border:1px solid #efd5d6}
.form-shell{overflow:visible;max-width:900px}.form-shell.narrow{max-width:620px}.form-intro{background:#f8fafb;padding:24px 25px;border-bottom:1px solid #e8edef}.form-intro span{color:#456a7f;font-size:11px;font-weight:600}.form-intro h2{margin:5px 0;font-size:21px;font-weight:650}.form-intro p{margin:0;color:#7c8991;font-size:12px}.work-form{padding:23px 25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid.one{grid-template-columns:1fr}.form-grid .wide{grid-column:1/-1}label,.field-label{font-size:11px;color:#55636b;font-weight:600;display:block}input,select,textarea{width:100%;border:1px solid #d8e0e4;border-radius:9px;background:#fff;color:#17212b;font-family:inherit;font-size:13px;padding:10px 11px;margin-top:6px}input:focus,select:focus,textarea:focus{outline:3px solid #eaf0f3;border-color:#7c99aa}textarea{min-height:105px;resize:vertical}.read-field{border:1px solid #e3e8eb;background:#fafbfb;border-radius:10px;padding:10px 12px}.read-field span,.read-field strong,.read-field small{display:block}.read-field span{font-size:10px;color:#87939b}.read-field strong{font-size:13px;margin-top:3px}.read-field small{font-size:10px;color:#99a4aa;margin-top:2px}
.quick-hours{display:flex;gap:7px;margin-top:6px;flex-wrap:wrap}.quick-hours button{border:1px solid #d6dfe3;background:#fff;color:#44545d;padding:9px 13px;border-radius:8px;font-family:inherit;font-weight:600;cursor:pointer}.quick-hours button.active{background:#edf3f6;color:#34596d;border-color:#91aab7}.hours-input{display:flex;align-items:center;gap:7px;margin-top:8px}.hours-input input{max-width:130px;margin:0;direction:ltr;text-align:left}.hours-input span,.hours-field>small,.client-search-field>small{font-size:10px;color:#8c989f}.form-actions{display:flex;gap:9px;margin-top:22px}
.client-search-field{position:relative}.search-results{display:none;position:absolute;right:0;left:0;top:67px;background:#fff;border:1px solid #d8e0e4;border-radius:10px;box-shadow:0 14px 35px rgba(28,43,51,.14);z-index:50;max-height:300px;overflow:auto}.search-results.open{display:block}.search-item{width:100%;border:0;border-bottom:1px solid #edf0f2;background:#fff;text-align:right;padding:10px 12px;font-family:inherit;cursor:pointer}.search-item:hover{background:#f5f8f9}.search-item strong,.search-item small{display:block}.search-item strong{font-size:12px}.search-item small{font-size:10px;color:#8d989f;margin-top:3px}.no-result{padding:12px;color:#8b979e;font-size:11px}
.split-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:17px}.side-form{padding:18px}.side-form h3{margin:0;font-size:15px}.side-form label{margin:12px 0}.side-form .primary-button{width:100%}.check-label{display:flex;align-items:center;gap:8px}.check-label input{width:auto;margin:0}
.integration-intro{padding:20px 22px;margin-bottom:16px}.integration-intro span{font-size:10px;color:#507185;font-weight:600}.integration-intro h2{font-size:20px;margin:4px 0}.integration-intro p{font-size:12px;color:#7b8890;margin:0}.integration-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:16px}.integration-card{padding:18px}.integration-card-head{display:flex;justify-content:space-between;align-items:center}.integration-card-head>div{display:flex;align-items:center;gap:8px}.integration-card-head strong{font-size:14px}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.status-dot.ok{background:#2e9b69}.status-dot.off{background:#aab3b8}.pill{font-size:9px;background:#f0f3f4;color:#68767e;padding:4px 7px;border-radius:999px}.integration-card dl{margin:18px 0}.integration-card dl div{display:flex;justify-content:space-between;border-bottom:1px solid #edf0f2;padding:7px 0}.integration-card dt{font-size:10px;color:#849098}.integration-card dd{font-size:11px;margin:0;font-weight:600}.integration-actions{display:flex;gap:8px}.integration-actions form{margin:0}
.login-page{min-height:100vh;background:#f5f7f8}.login-grid{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.login-hero{background:radial-gradient(circle at 25% 20%,#607f90 0,#38566a 38%,#1d303c 82%);display:flex;align-items:center;justify-content:center;color:#fff;padding:40px}.hero-content{max-width:520px}.hero-logo{width:58px;height:58px;font-size:28px}.hero-content h1{font-size:37px;font-weight:650;margin:18px 0 8px}.hero-content p{font-size:18px;color:#dbe4e9;margin:0}.hero-line{width:65px;height:3px;background:#89a6b5;border-radius:5px;margin:28px 0}.hero-content>span{font-size:12px;color:#bccbd3}.login-panel{display:flex;align-items:center;justify-content:center;padding:35px}.login-card{width:min(390px,100%);background:#fff;border:1px solid #e0e6e9;border-radius:17px;padding:30px;box-shadow:0 18px 50px rgba(35,52,62,.08)}.login-title small{color:#456a7f;font-weight:600}.login-title h2{font-size:25px;font-weight:650;margin:5px 0}.login-title p{margin:0 0 22px;color:#87939b;font-size:12px}.login-card label{margin:13px 0}.login-submit{width:100%;margin-top:10px;border:0;border-radius:9px;background:var(--primary);color:#fff;padding:12px;font-family:inherit;font-weight:600;cursor:pointer}
@media(max-width:950px){.sidebar{width:210px}.main{margin-right:210px}.stats-grid,.integration-grid{grid-template-columns:1fr}.split-layout{grid-template-columns:1fr}.login-grid{grid-template-columns:1fr}.login-hero{display:none}}
@media(max-width:720px){.sidebar{display:none}.main{margin-right:0}.content{padding:17px}.topbar{padding:0 17px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.welcome-card{align-items:flex-start;flex-direction:column}}

.field-help{display:block;color:#87949b;font-size:10px;margin-top:6px}
.inline-form{display:inline;margin:0}.actions-cell{white-space:nowrap}.actions-cell>*{margin-left:10px}.danger-link{border:0;background:none;color:#b64a4f;font-family:inherit;font-size:11px;font-weight:600;padding:0;cursor:pointer}
.muted-text{color:#98a3a9}.customer-card-head{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 21px;margin-bottom:15px}.customer-card-head span{font-size:10px;color:#607986}.customer-card-head h2{margin:4px 0;font-size:21px;font-weight:650}.customer-card-head p{margin:0;color:#87949b;font-size:11px}
.customer-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px}.customer-settings{max-width:none}.billing-checkboxes{margin:16px 0}.billing-checkboxes>.field-label{margin-bottom:7px}.check-card{display:flex;align-items:center;gap:10px;border:1px solid #dde4e7;border-radius:10px;padding:10px 11px;margin:7px 0;cursor:pointer}.check-card input{width:auto;margin:0}.check-card span,.check-card strong,.check-card small{display:block}.check-card strong{font-size:12px}.check-card small{font-size:10px;color:#8b979d;margin-top:2px}.accounts-panel{align-self:start}.account-box{padding:14px 17px;border-bottom:1px solid #edf0f2}.account-box strong,.account-box span,.account-box small{display:block}.account-box strong{font-size:12px}.account-box span{font-size:11px;margin-top:3px}.account-box small{font-size:10px;color:#8b979d;margin-top:4px}
@media(max-width:1050px){.customer-edit-grid{grid-template-columns:1fr}}


/* ===== BABUNET UX FOUNDATION v0.1.3 ===== */
:root{
  --accent-teal:#3f817d;
  --accent-teal-soft:#eaf5f3;
  --accent-amber:#c58a35;
  --accent-amber-soft:#fbf3e5;
  --accent-plum:#776889;
  --accent-plum-soft:#f1eef5;
  --accent-green:#4d8664;
  --accent-green-soft:#ecf5ef;
  --accent-rose:#aa5e67;
  --accent-rose-soft:#f8edef;
  --surface:#ffffff;
  --surface-soft:#fafbfb;
}
body{letter-spacing:0}.topbar{box-shadow:0 1px 0 rgba(26,42,51,.02)}
.primary-button{transition:transform .14s ease,background .14s ease,box-shadow .14s ease}.primary-button:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(52,83,101,.18)}
.panel,.stat-card,.integration-card,.form-shell{transition:box-shadow .18s ease,border-color .18s ease}.panel:hover{box-shadow:0 9px 28px rgba(35,48,56,.055)}
.stat-card{position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:#9aa8b0}.stat-card.accent-teal:before{background:var(--accent-teal)}.stat-card.accent-amber:before{background:var(--accent-amber)}.stat-card.accent-plum:before{background:var(--accent-plum)}
.stat-card.accent-teal strong{color:#316f6b}.stat-card.accent-amber strong{color:#a56f25}.stat-card.accent-plum strong{color:#685978}
.page-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(125deg,#fff,#f5f9f9);border:1px solid var(--line);border-radius:16px;padding:20px 23px;margin-bottom:15px;box-shadow:0 7px 24px rgba(35,48,56,.035);position:relative;overflow:hidden}
.page-hero:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:rgba(63,129,125,.07);left:-45px;top:-75px}.page-hero h2{font-size:22px;margin:4px 0;font-weight:650}.page-hero p{font-size:12px;color:var(--muted);margin:0}.eyebrow{font-size:10px;letter-spacing:.4px;text-transform:uppercase;color:var(--accent-teal);font-weight:700}
.hero-metrics{display:flex;gap:9px;position:relative;z-index:1}.hero-metrics>div{min-width:90px;background:#fff;border:1px solid #e4eaec;border-radius:12px;padding:10px 13px;text-align:center}.hero-metrics strong,.hero-metrics span{display:block}.hero-metrics strong{font-size:20px;font-weight:650}.hero-metrics span{font-size:9px;color:#829099;margin-top:2px}
.compact-hero{padding-top:17px;padding-bottom:17px}

/* Standard list toolbar/search */
.customers-toolbar{padding:14px 17px;border-bottom:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fcfdfd}
.list-search{position:relative;max-width:540px;flex:1}.list-search input{margin:0;padding:11px 40px 11px 42px;background:#fff}.search-glyph{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;color:#73848e;z-index:1}.list-search kbd{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-family:inherit;font-size:10px;background:#f0f3f4;border:1px solid #dce3e6;border-radius:5px;padding:2px 6px;color:#849198}.toolbar-note{font-size:10px;color:#8b979e}

/* Customers table: the whole row is the action */
.customers-table tbody tr.customer-row{cursor:pointer;transition:background .12s ease,transform .12s ease}.customers-table tbody tr.customer-row:hover,.customers-table tbody tr.customer-row:focus{background:#f4f8f8;outline:none}.customers-table tbody tr.customer-row:focus{box-shadow:inset -3px 0 0 var(--accent-teal)}
.customer-name-cell{display:flex;align-items:center;gap:10px}.customer-avatar{width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#e5f0ef,#edf0f5);color:#426970;display:grid;place-items:center;font-weight:700;font-size:13px;flex:0 0 auto}
.business-badges{display:flex;gap:5px;flex-wrap:wrap}.business-badge{font-size:9px;padding:4px 7px;border-radius:999px;font-weight:650}.business-badge.shalmon{background:#eef1f7;color:#576987}.business-badge.babu{background:#eaf5f1;color:#397765}.row-chevron{font-size:20px;color:#9aa7ae;width:28px}.customer-row:hover .row-chevron{color:var(--accent-teal);transform:translateX(-2px)}
.billing-tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:650;white-space:nowrap}.billing-tag.mode-hourly{background:#edf3f6;color:#3d6579}.billing-tag.mode-hour_bank{background:var(--accent-plum-soft);color:#675777}.billing-tag.mode-retainer{background:var(--accent-green-soft);color:#3d7655}.work-tag{background:#f1f4f5;color:#56656d}
.compact-empty{padding:24px}.empty strong,.empty span{display:block}.empty strong{font-size:13px;color:#5d6b72}.empty span{font-size:10px;margin-top:4px}.empty-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#edf5f3;color:var(--accent-teal);font-size:17px;margin:0 auto 8px}

/* Unified date preset filters */
.filter-card{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:15px;padding:13px 15px;box-shadow:0 6px 20px rgba(35,48,56,.03)}.preset-filters{display:flex;gap:7px;flex-wrap:wrap}.filter-pill{font-family:inherit;text-decoration:none;border:1px solid #dbe3e6;background:#fff;color:#53636b;border-radius:999px;padding:7px 12px;font-size:10px;font-weight:600;cursor:pointer}.filter-pill:hover{background:#f5f8f8}.filter-pill.active{background:#e9f3f2;border-color:#a9c7c4;color:#336e6b}.custom-date-filter{display:none;align-items:end;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #edf0f2}.custom-date-filter.open{display:flex}.custom-date-filter label{min-width:160px}.custom-date-filter input{margin-top:4px}.filter-caption{font-size:10px;color:#849198;margin-top:10px}

/* Drawer */
body.drawer-open{overflow:hidden}.drawer-backdrop{position:fixed;inset:0;background:rgba(18,31,39,.28);z-index:80;opacity:0;pointer-events:none;transition:opacity .18s ease}.drawer-backdrop.open{opacity:1;pointer-events:auto}
.customer-drawer{position:absolute;left:0;top:0;bottom:0;width:min(650px,94vw);background:#fff;box-shadow:18px 0 55px rgba(20,35,44,.18);transform:translateX(-102%);transition:transform .22s ease;display:flex;flex-direction:column}.drawer-backdrop.open .customer-drawer{transform:translateX(0)}
.drawer-loading{margin:auto;color:#687880;font-size:12px;display:flex;gap:9px;align-items:center}.spinner{width:18px;height:18px;border:2px solid #dbe5e7;border-top-color:var(--accent-teal);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.drawer-form{height:100%;display:flex;flex-direction:column;min-height:0}.drawer-header{padding:20px 21px 15px;border-bottom:1px solid #e8edef;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:linear-gradient(180deg,#fbfdfd,#fff)}.drawer-identity{display:flex;align-items:center;gap:12px}.drawer-avatar{width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#dfeeed,#eef0f6);color:#386a69;display:grid;place-items:center;font-weight:700;font-size:19px}.drawer-header h2{font-size:20px;margin:3px 0;font-weight:650}.drawer-header p{font-size:10px;color:#849198;margin:0}.drawer-close{width:34px;height:34px;border:0;background:#f4f6f7;color:#687880;border-radius:9px;font-size:22px;cursor:pointer}.drawer-close:hover{background:#eceff1}
.drawer-tabs{display:flex;gap:3px;padding:0 17px;border-bottom:1px solid #e9edef;background:#fff}.drawer-tabs button{border:0;background:transparent;font-family:inherit;padding:12px 11px 10px;color:#718089;font-size:11px;cursor:pointer;border-bottom:2px solid transparent}.drawer-tabs button.active{color:#376e6b;border-color:var(--accent-teal);font-weight:650}
.drawer-body{overflow:auto;flex:1;padding:21px}.drawer-pane{display:none}.drawer-pane.active{display:block}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-heading h3{font-size:14px;margin:0}.section-heading p{font-size:10px;color:#87949b;margin:4px 0 0}.drawer-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.readonly-input{background:#f6f8f8;color:#75838b}.info-tile{border:1px solid #e2e7e9;border-radius:10px;padding:11px;background:#fafbfb}.info-tile span,.info-tile strong{display:block}.info-tile span{font-size:9px;color:#89969d}.info-tile strong{font-size:12px;margin-top:3px}
.drawer-footer{border-top:1px solid #e5eaec;background:#fcfdfd;padding:12px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 -7px 20px rgba(35,48,56,.035)}.drawer-footer>div:last-child{display:flex;gap:8px}.dirty-state{font-size:10px;color:#76858d;display:flex;align-items:center;gap:6px}.dirty-state span{width:7px;height:7px;border-radius:50%;background:#6da080}.dirty-state.dirty{color:#a16b25}.dirty-state.dirty span{background:var(--accent-amber)}
.drawer-accounts{display:grid;gap:10px}.drawer-account-card{border:1px solid #dfe6e8;border-radius:12px;padding:13px 14px;position:relative;overflow:hidden}.drawer-account-card:before{content:"";position:absolute;right:0;top:0;bottom:0;width:3px;background:#8fa0a8}.drawer-account-card.shalmon:before{background:#687b9a}.drawer-account-card.babu:before{background:#4a907b}.account-card-top{display:flex;justify-content:space-between;align-items:center}.account-company{font-size:10px;color:#6d7c84}.account-status{font-size:9px;background:#edf5ef;color:#4a7b5d;padding:3px 7px;border-radius:999px}.drawer-account-card>strong{font-size:13px;display:block;margin:7px 0}.drawer-account-card dl{margin:0}.drawer-account-card dl div{display:flex;justify-content:space-between;border-top:1px solid #edf0f2;padding:6px 0}.drawer-account-card dt{font-size:9px;color:#8a969d}.drawer-account-card dd{font-size:10px;margin:0}
.activity-list{display:grid;gap:0}.activity-item{display:grid;grid-template-columns:76px 1fr 55px;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f2}.activity-date{font-size:9px;color:#87939a}.activity-main strong{font-size:10px}.activity-main p{font-size:11px;color:#4d5b62;margin:3px 0;line-height:1.45}.activity-main small{font-size:9px;color:#929da3}.activity-hours{font-size:11px;font-weight:650;text-align:left;color:#385f72}
.app-toast{position:fixed;left:25px;bottom:25px;z-index:120;background:#263a45;color:#fff;padding:11px 15px;border-radius:10px;box-shadow:0 12px 35px rgba(19,33,41,.22);font-size:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.18s}.app-toast.show{opacity:1;transform:translateY(0)}.app-toast.error{background:#9a4c54}
@media(max-width:720px){.customers-toolbar{align-items:stretch;flex-direction:column}.toolbar-note{display:none}.drawer-fields{grid-template-columns:1fr}.customer-drawer{width:100vw}.custom-date-filter.open{align-items:stretch;flex-direction:column}.hero-metrics{display:none}}


/* ===== BABUNET VISUAL SYSTEM v0.1.4 — SaaS refresh ===== */
:root{
  --brand-blue:#1fa7f4;--brand-blue-2:#2388e8;--brand-cyan:#41c7df;
  --brand-green:#58c97b;--brand-orange:#f39a32;--brand-purple:#8756ef;
  --ink:#1c2534;--muted:#7e8998;--line:#e7ebf0;--bg:#f7f9fc;--surface:#fff;
  --soft-blue:#eaf7ff;--soft-green:#eefbec;--soft-orange:#fff5e9;--soft-purple:#f3edff;--soft-cyan:#eafbfd;
}
html,body{background:var(--bg);color:var(--ink)}
.sidebar{background:#fff;color:#354052;border-left:1px solid var(--line);box-shadow:-6px 0 24px rgba(32,51,73,.035)}
.brand{padding-bottom:16px}.brand-mark{background:linear-gradient(145deg,#45caa6,#1fa7f4);box-shadow:0 7px 18px rgba(31,167,244,.18);font-weight:800}.brand strong{color:#16384b}.brand span{color:#8a98a8}
.context-box{background:#f8fafc;border:1px solid #e8edf2}.context-box small{color:#8b97a5}.context-box strong{color:#2b3a49}.context-links a{border-color:#e1e7ec;color:#667484;background:#fff}.context-links a.on{background:#eaf7ff;color:#167daf;border-color:#bce7fb;box-shadow:0 2px 8px rgba(31,167,244,.08)}
nav a{color:#344153;border-radius:11px;padding:10px 11px;transition:.14s}nav a:hover{background:#f3f7fa;color:#1c4863}nav a.active{background:linear-gradient(110deg,#43cba8 0%,#1fa7f4 78%);color:#fff;box-shadow:0 8px 20px rgba(31,167,244,.18)}
.nav-icon{width:22px;height:22px;display:grid;place-items:center}.nav-icon svg{width:18px;height:18px}.nav-caption{color:#9aa5b2}.muted-link{opacity:.64}.muted-link em{background:#eff2f5;color:#8995a2}
.sidebar-user{border-top-color:#edf0f3}.avatar{background:linear-gradient(145deg,#e9f9f4,#eaf5ff);color:#1f7f86}.user-text strong{color:#243244}.user-text span{color:#8a97a5}.sidebar-user>a{color:#8493a2}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#edf0f4;box-shadow:0 2px 10px rgba(31,48,69,.025)}.topbar h1{color:#1f2a39}.today{color:#8a96a5}
.primary-button{background:linear-gradient(105deg,#1fa7f4,#2388e8);box-shadow:0 8px 18px rgba(31,167,244,.18);font-weight:600;gap:7px}.primary-button:hover{background:linear-gradient(105deg,#1599e6,#197bd5);transform:translateY(-1px)}.button-icon{display:grid;place-items:center}.button-icon svg{width:16px;height:16px}
.secondary-button{border-color:#dde5eb;color:#526170;background:#fff}.secondary-button:hover{background:#f8fafb}
.content{max-width:1540px}.panel,.form-shell,.integration-card,.filter-card,.page-hero{border-color:#e7ebf0;box-shadow:0 7px 24px rgba(26,48,71,.035)}

/* Dashboard inspired by modern SaaS action tiles */
.dashboard-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.action-tile{min-height:86px;border-radius:16px;padding:14px 16px;display:flex;align-items:center;gap:12px;text-decoration:none;border:1px solid transparent;position:relative;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}.action-tile:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;left:-35px;bottom:-70px;background:rgba(255,255,255,.42)}.action-tile:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(26,48,71,.08)}.action-tile div{min-width:0}.action-tile strong,.action-tile small{display:block}.action-tile strong{font-size:13px;font-weight:650}.action-tile small{font-size:10px;color:#6e7c89;margin-top:3px}.action-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;flex:0 0 auto}.action-icon svg{width:20px;height:20px}.action-arrow{margin-right:auto;font-size:18px;color:#9babb6}.tile-blue{background:linear-gradient(110deg,#e7f8ff,#f4fbff);border-color:#d7f0fb}.tile-blue .action-icon{background:#22a8ef}.tile-orange{background:linear-gradient(110deg,#fff2e4,#fff9f2);border-color:#f8e6d2}.tile-orange .action-icon{background:#ef8b21}.tile-green{background:linear-gradient(110deg,#ebfbe9,#f7fff5);border-color:#dff2db}.tile-green .action-icon{background:#45b864}.tile-purple{background:linear-gradient(110deg,#f0e9ff,#faf7ff);border-color:#e4d9fb}.tile-purple .action-icon{background:#8455ef}
.dashboard-hero{background:linear-gradient(120deg,#f1fffb 0%,#f7fcff 58%,#fff 100%);border:1px solid #dfeeed;border-radius:20px;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:16px;box-shadow:0 8px 28px rgba(33,76,89,.035);position:relative;overflow:hidden}.dashboard-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(31,167,244,.10),transparent 68%);left:-60px;top:-110px}.dashboard-greeting{position:relative;z-index:1}.dashboard-greeting h2{margin:5px 0 6px;font-size:25px;color:#126987;font-weight:650}.dashboard-greeting p{margin:0;color:#697785;font-size:12px}.dashboard-metrics{display:flex;gap:14px;position:relative;z-index:1}.metric-orb{display:flex;align-items:center;gap:9px;min-width:130px}.metric-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center}.metric-icon svg{width:18px;height:18px}.metric-orb strong,.metric-orb small{display:block}.metric-orb strong{font-size:23px;color:#176b87}.metric-orb small{font-size:10px;color:#6d7885}.orb-blue .metric-icon{background:#e2f5ff;color:#1ba5ed}.orb-orange .metric-icon{background:#fff0dd;color:#eb8a24}.orb-green .metric-icon{background:#e8f9e8;color:#44b363}
.premium-panel{overflow:hidden}.panel-kicker{font-size:9px;color:#1b96c8;text-transform:uppercase;letter-spacing:.5px}.panel-action{background:#f1f8fc;padding:7px 10px;border-radius:8px}.panel-title h3{font-weight:650}

/* Premium forms */
.work-entry-grid{display:grid;grid-template-columns:minmax(0,850px) 280px;gap:16px;align-items:start}.work-entry-card{max-width:none}.form-intro{background:linear-gradient(110deg,#f5fcff,#f8fffc)}.form-intro span{color:#188eb8}.form-intro h2{color:#1e475c}.quick-hours button{background:#fff;border-color:#dce7ee;min-width:70px}.quick-hours button.active{background:linear-gradient(110deg,#e3f8ff,#eafbf5);border-color:#81d9d7;color:#177d93;box-shadow:0 4px 10px rgba(36,150,165,.08)}.work-side-card{background:linear-gradient(155deg,#fff,#f4fbff);border:1px solid #e1edf2;border-radius:16px;padding:20px;box-shadow:0 7px 24px rgba(26,48,71,.035)}.side-visual-icon{width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#e9f9f4,#e9f5ff);color:#188a9b;display:grid;place-items:center;margin-bottom:14px}.side-visual-icon svg{width:23px;height:23px}.work-side-card h3{font-size:16px;margin:5px 0}.work-side-card p{font-size:11px;color:#71808e;line-height:1.6;margin-bottom:17px}.side-rule{display:flex;align-items:center;gap:8px;border-top:1px solid #eaf0f3;padding:9px 0;font-size:11px;color:#53626e}.side-rule span{width:22px;height:22px;border-radius:50%;background:#e7f7f5;color:#258479;display:grid;place-items:center;font-size:9px;font-weight:700}

/* Customer page richer metrics */
.customers-hero{background:linear-gradient(120deg,#f0fffb,#f5fbff)}.customer-metrics{gap:8px}.customer-metrics>div{min-width:108px;position:relative}.mini-icon{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;margin:0 auto 5px}.mini-icon svg{width:14px;height:14px}.mini-icon.mint{background:#e5f8f3;color:#35a981}.mini-icon.blue{background:#e5f5ff;color:#1d9fe7}.mini-icon.violet{background:#f0e9ff;color:#8255e9}.mini-icon.amber{background:#fff1dc;color:#e88b22}.attention-metric{border-color:#f1dcbf!important;background:#fffcf6!important}.customers-panel{overflow:hidden}.customers-toolbar{background:#fff}.list-search input{border-color:#e0e8ee;box-shadow:0 2px 8px rgba(31,57,77,.025)}.customer-row:hover{background:linear-gradient(90deg,#f3fbff,#f5fcfa)!important}.customer-avatar{background:linear-gradient(145deg,#e4f8f4,#e5f4ff);color:#147c91}.business-badge.shalmon{background:#eaf4ff;color:#3672a2}.business-badge.babu{background:#e8f8ef;color:#37805a}.row-chevron{color:#8ea3af}

/* Drawer = customer workspace with horizontal tabs */
.customer-drawer{width:min(790px,96vw);background:#fff}.drawer-header{background:#fff;padding:20px 23px 15px}.drawer-avatar{background:linear-gradient(145deg,#dff7f0,#e2f3ff);color:#167c8d;box-shadow:0 5px 14px rgba(32,150,161,.08)}.drawer-header h2{font-size:22px;color:#1e2c3b}.drawer-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:12px 20px;background:#fbfcfe;border-bottom:1px solid #e9eef2}.drawer-summary>div{border:1px solid #e4e9ee;border-radius:12px;padding:10px 10px;background:#fff;display:grid;grid-template-columns:30px 1fr;grid-template-areas:"icon small" "icon strong";column-gap:8px;align-items:center}.drawer-summary .summary-icon{grid-area:icon;width:30px;height:30px;border-radius:9px;display:grid;place-items:center}.drawer-summary .summary-icon svg{width:15px;height:15px}.drawer-summary small{grid-area:small;font-size:8px;color:#84909d}.drawer-summary strong{grid-area:strong;font-size:14px}.summary-icon.blue{background:#e5f5ff;color:#1c9ee5}.summary-icon.orange{background:#fff0df;color:#e98a23}.summary-icon.green{background:#e9f8ea;color:#46ac61}.summary-icon.purple{background:#f0e9ff;color:#8255e9}
.drawer-tabs{gap:7px;padding:11px 18px;border-bottom:1px solid #e9edf1;background:#fff;overflow-x:auto}.drawer-tabs button{display:flex;align-items:center;gap:7px;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:10px;padding:8px 10px;color:#5f6e7c;white-space:nowrap;transition:.13s}.drawer-tabs button:hover{background:#f6f9fb}.drawer-tabs button.active{background:#f6faff;color:#286c8b;border-color:#d6e9f3!important;box-shadow:0 3px 10px rgba(44,102,132,.05)}.tab-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center}.tab-icon svg{width:14px;height:14px}.tab-icon.blue{background:#e5f5ff;color:#1e9fe6}.tab-icon.violet{background:#f0e9ff;color:#8156e8}.tab-icon.green{background:#e9f9e8;color:#48ad62}.tab-icon.cyan{background:#e7f9fa;color:#2aa8ae}.tab-icon.orange{background:#fff0dd;color:#eb8920}.drawer-body{padding:22px 23px}.drawer-footer{background:#fff}.drawer-footer .primary-button:disabled{background:#d9e0e5;box-shadow:none}
.drawer-account-card{background:#fbfcfd}.drawer-account-card.shalmon:before{background:#409fe0}.drawer-account-card.babu:before{background:#4ab878}.account-status{background:#eaf8ef;color:#3a8056}

/* Financial tab */
.financial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finance-card{border:1px solid #e1e7ec;border-radius:14px;padding:15px;background:linear-gradient(145deg,#fff,#fbfcfe);position:relative;overflow:hidden}.finance-card:before{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:#9cb0bd}.finance-card.shalmon:before{background:#39a5ec}.finance-card.babu:before{background:#50bd7a}.finance-card-head{display:flex;align-items:center;justify-content:space-between}.finance-company{font-size:11px;font-weight:650}.finance-live{font-size:8px;background:#edf7ff;color:#2487ba;padding:3px 7px;border-radius:999px}.finance-balance{margin:17px 0}.finance-balance small,.finance-balance strong{display:block}.finance-balance small{font-size:9px;color:#87939e}.finance-balance strong{font-size:25px;margin-top:3px;color:#175f7b}.finance-balance strong.negative{color:#b34e58}.finance-meta{border-top:1px solid #ebeff2;padding-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.finance-meta span,.finance-meta strong{display:block}.finance-meta span{font-size:8px;color:#909ba4}.finance-meta strong{font-size:10px;margin-top:3px}.finance-note{display:flex;gap:10px;align-items:flex-start;margin-top:13px;padding:11px 12px;border-radius:10px;background:#f5f9fb;color:#536670}.finance-note>span{width:30px;height:30px;border-radius:8px;background:#e5f4fb;color:#3087aa;display:grid;place-items:center;flex:0 0 auto}.finance-note svg{width:15px;height:15px}.finance-note strong{font-size:10px}.finance-note p{font-size:9px;margin:3px 0 0;color:#85919a}

/* Filter tabs / open work */
.filter-card{background:#fff}.preset-filters{gap:8px}.filter-pill{border-radius:10px;padding:8px 12px}.filter-pill.active{background:linear-gradient(110deg,#e7f8ff,#e9faf4);border-color:#a8dfe0;color:#227a91}.compact-hero{background:linear-gradient(120deg,#f6fbff,#f9fffc)}

/* Login refresh */
.login-page{background:#f8fafc}.login-hero{background:radial-gradient(circle at 25% 20%,#dff9f1 0,#e8f7ff 35%,#eef0ff 70%,#fff 100%);color:#153a50}.hero-logo{background:linear-gradient(145deg,#44caa6,#1fa7f4);box-shadow:0 12px 28px rgba(31,167,244,.18)}.hero-content h1{color:#176986}.hero-content p{color:#5f7482}.hero-line{background:linear-gradient(90deg,#49c9a5,#2aa9ee)}.hero-content>span{color:#708692}.login-submit{background:linear-gradient(105deg,#1fa7f4,#2388e8);font-weight:600;box-shadow:0 7px 18px rgba(31,167,244,.18)}

@media(max-width:1180px){.dashboard-actions{grid-template-columns:repeat(2,1fr)}.dashboard-hero{align-items:flex-start;flex-direction:column}.customer-metrics>div:nth-child(n+3){display:none}.work-entry-grid{grid-template-columns:1fr}.work-side-card{display:none}}
@media(max-width:820px){.drawer-summary{grid-template-columns:repeat(2,1fr)}.financial-grid{grid-template-columns:1fr}.drawer-tabs button span:last-child{display:none}.drawer-tabs{justify-content:space-between}.dashboard-actions{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.dashboard-actions{grid-template-columns:1fr}.dashboard-metrics{flex-wrap:wrap}.customer-metrics>div:not(:first-child){display:none}}
