:root{--bg:#f4f7fb;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--blue:#2563eb;--nav:#0b1220;--card:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}.app{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{background:var(--nav);color:#cbd5e1;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;color:white;padding:0 8px 26px}.brand .mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--blue);font-weight:900}.brand b,.brand small{display:block}.brand small{font-size:9px;letter-spacing:2px;color:#60a5fa}.sidebar nav{display:grid;gap:6px}.sidebar nav a{padding:11px 12px;border-radius:10px;display:flex;gap:11px;align-items:center;font-size:14px}.sidebar nav a:hover,.sidebar nav a.active{background:#172033;color:white}.sidebar nav a.active{box-shadow:inset 3px 0 var(--blue)}.company{margin-top:auto;padding:14px 10px;border-top:1px solid #1e293b;display:grid;gap:3px}.company small{font-size:9px;letter-spacing:1.5px;color:#64748b}.company b{color:white}.company span{font-size:12px}main{min-width:0}header{height:88px;background:white;border-bottom:1px solid var(--line);padding:18px 30px;display:flex;justify-content:space-between;align-items:center}header small{font-size:9px;letter-spacing:1.8px;color:var(--blue);font-weight:800}h1{font-size:23px;margin:3px 0}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-weight:800}.content{padding:28px 30px;max-width:1450px}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,1fr)}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 1px 2px #0f172a08}.stat small,.muted{color:var(--muted)}.stat strong{display:block;font-size:28px;margin-top:8px}.two{grid-template-columns:1.5fr 1fr;margin-top:18px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-head h2{font-size:16px;margin:0}.btn{border:0;background:var(--blue);color:white;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer}.btn.secondary{background:#eef2ff;color:#3730a3}.btn.danger{background:#fee2e2;color:#991b1b}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line)}th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}.pill{display:inline-block;padding:5px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:800}.empty{padding:30px;text-align:center;color:var(--muted)}form.grid-form{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}label{font-size:12px;font-weight:700;color:#475569}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px;background:white;font:inherit}textarea{min-height:90px}.notice{padding:12px 14px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;border-radius:12px;margin-bottom:18px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-hero{background:var(--nav);color:white;padding:9vw;display:flex;flex-direction:column;justify-content:center}.auth-hero h1{font-size:48px;max-width:600px}.auth-hero p{color:#94a3b8;max-width:500px;line-height:1.6}.auth-form{display:grid;place-items:center;padding:30px}.auth-box{width:min(430px,100%)}.auth-box h2{font-size:30px}.auth-box form{display:grid;gap:14px}.auth-box .btn{padding:13px}.auth-box .hint{font-size:13px;color:var(--muted);margin-top:18px}.error{background:#fef2f2;color:#991b1b;padding:12px;border-radius:10px}@media(max-width:900px){.app{grid-template-columns:1fr}.sidebar{height:auto;position:fixed;z-index:10;left:0;right:0;bottom:0;top:auto;padding:8px}.brand,.company{display:none}.sidebar nav{grid-template-columns:repeat(6,1fr);gap:2px}.sidebar nav a{font-size:0;justify-content:center;padding:10px}.sidebar nav a span{font-size:20px}.content{padding:18px 14px 90px}header{padding:14px 18px;height:74px}.stats,.two{grid-template-columns:1fr 1fr}.auth{grid-template-columns:1fr}.auth-hero{display:none}}@media(max-width:560px){.stats,.two,form.grid-form{grid-template-columns:1fr}.field.full{grid-column:auto}.card{overflow:auto}}

hr{border:0;border-top:1px solid var(--line);margin:14px 0} td form{margin:0} .card h2{font-size:16px;margin-top:0}

/* v0.2.1 UI fix */
input,select,textarea{display:block;width:100%;min-width:0}
input:not([type="hidden"]),select{height:44px;min-height:44px;padding:0 12px;line-height:42px}
textarea{padding:11px 12px;line-height:1.4}
input[type="date"]{-webkit-appearance:none;appearance:none;height:44px;min-height:44px;padding:0 12px;line-height:normal;text-align:left}
input[type="date"]::-webkit-date-and-time-value{text-align:left;min-height:42px;line-height:42px}
input[type="date"]::-webkit-calendar-picker-indicator{margin:0}
.grid-form .field{align-self:start}

/* v0.4 Team */
select{max-width:100%}.card table form select{min-width:130px}.sidebar nav a span{min-width:18px;text-align:center}


/* v0.4.4 — clean mobile navigation */
.mobile-bottom-nav,
.mobile-more-menu{
  display:none;
}

@media (max-width:760px){
  /* Disable the original desktop/sidebar navigation completely on mobile */
  .sidebar{
    display:none !important;
  }

  .app{
    display:block !important;
    min-height:100vh;
  }

  main{
    width:100%;
    min-width:0;
  }

  body{
    padding-bottom:calc(92px + env(safe-area-inset-bottom));
    overflow-x:hidden;
  }

  body.mobile-menu-open{
    overflow:hidden;
  }

  header{
    position:sticky;
    top:0;
    z-index:20;
  }

  .content{
    padding-bottom:24px !important;
  }

  .mobile-bottom-nav{
    display:grid;
    position:fixed;
    z-index:1000;
    left:12px;
    right:12px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    height:68px;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    padding:6px;
    border:1px solid #e2e8f0;
    border-radius:22px;
    background:rgba(255,255,255,.97);
    box-shadow:0 14px 36px rgba(15,23,42,.18);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    margin:0;
    min-width:0;
    width:100%;
    height:56px;
    padding:4px 2px;
    border-radius:16px;
    background:transparent;
    color:#64748b;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    text-decoration:none;
    font:inherit;
    cursor:pointer;
  }

  .mobile-bottom-nav .nav-icon{
    display:block;
    font-size:20px;
    line-height:1;
    font-weight:800;
  }

  .mobile-bottom-nav .nav-label{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
    line-height:1;
    font-weight:700;
  }

  .mobile-bottom-nav a.active{
    color:#2563eb;
    background:#eef4ff;
  }

  .mobile-more-menu{
    display:block;
    position:fixed;
    z-index:1100;
    inset:0;
    pointer-events:none;
    visibility:hidden;
  }

  .mobile-more-menu.open{
    pointer-events:auto;
    visibility:visible;
  }

  .mobile-more-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.42);
    opacity:0;
    transition:opacity .22s ease;
  }

  .mobile-more-menu.open .mobile-more-backdrop{
    opacity:1;
  }

  .mobile-more-sheet{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:10px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius:26px 26px 0 0;
    background:#fff;
    box-shadow:0 -20px 50px rgba(15,23,42,.20);
    transform:translateY(105%);
    transition:transform .24s ease;
  }

  .mobile-more-menu.open .mobile-more-sheet{
    transform:translateY(0);
  }

  .sheet-handle{
    width:42px;
    height:5px;
    border-radius:999px;
    background:#cbd5e1;
    margin:2px auto 18px;
  }

  .more-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
  }

  .more-header small{
    display:block;
    color:#64748b;
    font-size:9px;
    letter-spacing:1.3px;
    font-weight:800;
  }

  .more-header h2{
    margin:4px 0 0;
    font-size:24px;
  }

  .sheet-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#f1f5f9;
    color:#475569;
    font-size:25px;
    line-height:38px;
    cursor:pointer;
  }

  .more-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:18px;
  }

  .more-grid a{
    min-width:0;
    min-height:108px;
    padding:16px;
    border:1px solid #e2e8f0;
    border-radius:18px;
    background:#fff;
    color:#172033;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:4px;
  }

  .more-grid .more-icon{
    font-size:23px;
    line-height:1;
    color:#2563eb;
    margin-bottom:5px;
  }

  .more-grid b{
    font-size:14px;
    line-height:1.2;
  }

  .more-grid small{
    color:#64748b;
    font-size:11px;
    line-height:1.25;
  }
}

/* v0.5 Tasks */
.task-filters{display:flex;gap:8px;overflow:auto;margin:0 0 16px}.task-filters a{white-space:nowrap;text-decoration:none;color:#64748b;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800}.task-filters a.active{background:#172033;color:#fff;border-color:#172033}.task-list{display:flex;flex-direction:column}.task-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #edf1f6}.task-main{flex:1;min-width:0}.task-meta{font-size:11px;color:#64748b;margin-top:4px}.check-btn{width:28px;height:28px;border:2px solid #cbd5e1;border-radius:9px;background:#fff;color:#fff;font-weight:900}.check-btn.done{background:#2563eb;border-color:#2563eb}.priority{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#475569}.priority-high{background:#fff7ed;color:#c2410c}.priority-urgent{background:#fef2f2;color:#b91c1c}

/* v0.6 Planning & Calendar */
.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;margin-bottom:16px}
.calendar-nav{display:flex;gap:8px}.calendar-title{text-align:center}.calendar-title h2{margin:0;font-size:20px}
.calendar-controls{display:flex;gap:10px;align-items:center}.view-switch{display:flex;padding:3px;background:#eef2f7;border-radius:12px}
.view-switch a{padding:8px 10px;border-radius:9px;text-decoration:none;font-size:11px;font-weight:800;color:#64748b}.view-switch a.active{background:#fff;color:#172033;box-shadow:0 1px 2px #00000012}
.calendar-month{padding:0;overflow:hidden}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);background:#f8fafc;border-bottom:1px solid #e2e8f0}.calendar-weekdays div{padding:11px;text-align:center;font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-day{min-height:128px;padding:9px;border-right:1px solid #edf1f6;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033;background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.muted-day{background:#fbfcfd;color:#94a3b8}.calendar-day.today .day-number{background:#2563eb;color:#fff}.day-number{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:800}
.day-events{display:flex;flex-direction:column;gap:5px;margin-top:8px}.mini-event{border-left:3px solid #cbd5e1;padding:5px 6px;background:#f8fafc;border-radius:6px;overflow:hidden}.mini-event b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-event small{font-size:9px;color:#64748b}.more-count{font-size:9px;color:#64748b}
.priority-border-urgent{border-left-color:#dc2626!important}.priority-border-high{border-left-color:#f97316!important}.priority-border-normal{border-left-color:#2563eb!important}.priority-border-low{border-left-color:#94a3b8!important}
.calendar-day-list{display:flex;flex-direction:column}.agenda-day{display:grid;grid-template-columns:64px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid #edf1f6}.agenda-day:last-child{border-bottom:0}.agenda-date{text-align:center}.agenda-date small{display:block;text-transform:uppercase;color:#64748b;font-size:10px;font-weight:800}.agenda-date strong{display:block;font-size:24px;margin-top:2px}.agenda-day.today .agenda-date strong{color:#2563eb}
.agenda-items{display:flex;flex-direction:column;gap:8px}.agenda-item{display:flex;justify-content:space-between;gap:14px;padding:12px 14px;border-left:4px solid #cbd5e1;border-radius:10px;background:#f8fafc}.agenda-time{white-space:nowrap;font-size:12px;font-weight:800;color:#475569}.empty-inline{padding:13px;color:#94a3b8;font-size:12px}
.checkbox-field label{display:flex;align-items:center;gap:8px}.checkbox-field input{width:auto;height:auto;min-height:0}
@media(max-width:760px){.calendar-toolbar{grid-template-columns:1fr;align-items:stretch}.calendar-title{order:-1}.calendar-controls{justify-content:space-between;overflow:auto}.calendar-weekdays div{padding:8px 3px}.calendar-day{min-height:92px;padding:6px}.mini-event small{display:none}.mini-event{padding:4px}.calendar-month{overflow-x:auto}.calendar-grid,.calendar-weekdays{min-width:700px}.agenda-day{grid-template-columns:52px 1fr}.agenda-item{flex-direction:column}.agenda-time{font-size:11px}}

/* v0.7 CRM */
.crm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.crm-stat{text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:5px}.crm-stat small{color:#64748b;font-weight:700}.crm-stat strong{font-size:25px}.crm-search input{max-width:220px}.crm-list{display:flex;flex-direction:column}.crm-row{display:grid;grid-template-columns:42px 1fr auto 100px;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.crm-avatar{width:38px;height:38px;border-radius:12px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-weight:900}.crm-main{min-width:0}.crm-main b,.crm-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-main small,.crm-last small{color:#64748b;font-size:10px}.crm-last{text-align:right}.crm-last b{font-size:11px}.crm-status{font-size:10px;font-weight:800;padding:6px 9px;border-radius:999px;background:#f1f5f9}.crm-lead{background:#eff6ff;color:#1d4ed8}.crm-prospect{background:#fff7ed;color:#c2410c}.crm-customer{background:#ecfdf5;color:#047857}.crm-inactive{color:#64748b}.crm-contact{line-height:1.8;color:#475569}.crm-status-form{margin-top:18px}.crm-status-form label{display:block;font-size:11px;font-weight:800;margin-bottom:6px}.crm-timeline{position:relative}.timeline-item{display:grid;grid-template-columns:18px 1fr;gap:10px;padding:0 0 22px}.timeline-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 4px #eef4ff}.timeline-head{display:flex;justify-content:space-between;gap:12px}.timeline-head span{font-size:10px;font-weight:800;color:#64748b}.timeline-item small{color:#64748b}.timeline-item p{margin:8px 0 0;line-height:1.55}
@media(max-width:760px){.crm-stats{grid-template-columns:1fr 1fr}.crm-row{grid-template-columns:42px 1fr auto}.crm-last{display:none}.crm-search input{max-width:150px}}

/* v0.7.1 — CRM datum/tijd fix */
.crm-datetime-input{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  min-height:44px;
}
@media(max-width:760px){
  .crm-datetime-field{
    grid-column:1 / -1;
    width:100%;
  }
  .crm-datetime-input{
    display:block;
    width:100%;
    max-width:100%;
    min-height:48px;
    font-size:16px;
  }
  .crm-datetime-input::-webkit-date-and-time-value{
    text-align:left;
  }
}

/* v0.7.2 — CRM separate date/time controls */
input[type="date"],
input[type="time"]{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  height:44px;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
}
input[type="time"]{
  -webkit-appearance:none;
  appearance:none;
  text-align:left;
}
input[type="time"]::-webkit-date-and-time-value,
input[type="date"]::-webkit-date-and-time-value{
  text-align:left;
}
@media(max-width:760px){
  .grid-form .field input[type="date"],
  .grid-form .field input[type="time"]{
    width:100%;
    max-width:100%;
    min-height:48px;
  }
}

/* v0.8 Dashboard & Analytics */
.dashboard-welcome{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.dashboard-welcome small,.eyebrow{font-size:9px;letter-spacing:1.2px;font-weight:900;color:#64748b}.dashboard-welcome h1{margin:4px 0;font-size:25px}.dashboard-welcome p{margin:0;color:#64748b}.dashboard-actions{display:flex;gap:8px}
.analytics-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:18px}.kpi{text-decoration:none;color:inherit;min-width:0}.kpi span,.kpi small{display:block;color:#64748b;font-size:10px;font-weight:700}.kpi strong{display:block;font-size:23px;margin:7px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dashboard-panel{min-width:0}.dashboard-panel .section-head a{font-size:11px;text-decoration:none;color:#2563eb;font-weight:800}
.dash-task-list{display:flex;flex-direction:column}.dash-task{display:grid;grid-template-columns:8px 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f6}.dash-task:last-child{border:0}.dash-task b,.dash-task small{display:block}.dash-task small{font-size:10px;color:#64748b;margin-top:3px}.dash-task time{font-size:11px;font-weight:800;color:#475569}.dash-priority{width:7px;height:28px;border-radius:99px;background:#cbd5e1}.p-urgent{background:#dc2626}.p-high{background:#f97316}.p-normal{background:#2563eb}
.bar-list{display:flex;flex-direction:column;gap:13px}.bar-label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:5px}.bar-track{height:8px;background:#eef2f7;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:#2563eb;border-radius:99px}
.mini-chart{height:190px;display:flex;align-items:flex-end;gap:12px;padding-top:20px}.chart-col{height:100%;flex:1;display:grid;grid-template-rows:20px 1fr 20px;text-align:center;min-width:0}.chart-value{font-size:9px;font-weight:800;color:#64748b}.chart-bar-wrap{display:flex;align-items:flex-end;justify-content:center}.chart-bar{width:min(28px,70%);background:#2563eb;border-radius:7px 7px 2px 2px;min-height:5px}.chart-col small{font-size:9px;color:#64748b;padding-top:5px}
.pipeline-list{display:flex;flex-direction:column}.pipeline-list a{display:flex;justify-content:space-between;gap:12px;text-decoration:none;color:#172033;padding:11px 0;border-bottom:1px solid #edf1f6}.pipeline-list a:last-child{border:0}.pipeline-list b,.pipeline-list small{display:block}.pipeline-list small{font-size:10px;color:#64748b;margin-top:3px}.pipeline-list span{font-size:10px;color:#64748b;text-align:right}
@media(max-width:1100px){.analytics-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.dashboard-welcome{align-items:flex-start;flex-direction:column}.dashboard-actions{width:100%}.dashboard-actions a{flex:1;text-align:center}.analytics-kpis{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.kpi strong{font-size:21px}.mini-chart{height:165px}}

/* v0.9 Documents */
.files-head{margin-bottom:16px}.files-head h2{margin:4px 0}.files-head p{margin:0;color:#64748b}.file-filters{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:12px}.file-list{display:flex;flex-direction:column}.file-row{display:grid;grid-template-columns:44px 1fr auto 32px;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f6}.file-row:last-child{border:0}.file-icon{width:40px;height:40px;border-radius:11px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-size:10px;font-weight:900}.file-main{min-width:0}.file-main b,.file-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-main small{font-size:9px;color:#64748b;margin-top:3px}.file-open{padding:7px 9px!important;font-size:10px!important}.file-delete{border:0;background:#fef2f2;color:#b91c1c;width:28px;height:28px;border-radius:8px;font-size:18px}.field input[type=file]{height:auto;padding:10px}
@media(max-width:760px){.file-filters{grid-template-columns:1fr}.file-row{grid-template-columns:42px 1fr auto}.file-row form{grid-column:3}.file-open{grid-column:3;grid-row:1}.file-row>form{display:none}}

/* =========================================================
   YCAPPS Business v1.0 — Release polish
   ========================================================= */
:root{
  --yc-radius:16px;
  --yc-control:46px;
}
html{-webkit-text-size-adjust:100%}
body{overscroll-behavior-y:none}
.app-version-badge{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;background:#eef4ff;color:#2563eb;font-size:8px;font-weight:900;letter-spacing:.3px;margin-left:5px}
.card{border-radius:var(--yc-radius)}
input,select,textarea,button{font:inherit}
.field label{font-size:11px;font-weight:800;color:#334155;margin-bottom:7px}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select{
  min-height:var(--yc-control);
  height:var(--yc-control);
  width:100%;
  box-sizing:border-box;
}
.field textarea{width:100%;box-sizing:border-box;min-height:92px;resize:vertical}
.btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.empty{
  border:1px dashed #dbe3ee;
  border-radius:13px;
  background:#fbfcfe;
  padding:22px 16px;
  color:#64748b;
  text-align:center;
}
.error,.alert-error{padding:11px 13px;border-radius:11px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;margin-bottom:12px}
.success,.alert-success{padding:11px 13px;border-radius:11px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;margin-bottom:12px}
.section-head{gap:12px}
.section-head h2{margin:0}
.section-head>a{white-space:nowrap}
table{width:100%}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
a,button{-webkit-tap-highlight-color:transparent}
button,.btn,a{touch-action:manipulation}
input[type="date"],input[type="time"],input[type="datetime-local"]{font-size:16px}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value{text-align:left}
@media(max-width:760px){
  .page,.content,main{max-width:100%;min-width:0}
  .card{border-radius:15px}
  .grid.two,.grid.three,.grid-form{min-width:0}
  .field{min-width:0}
  .field input,.field select,.field textarea{max-width:100%}
  .section-head{align-items:flex-start}
  .section-head h2{font-size:18px}
  .btn{min-height:44px}
}

@supports(padding:max(0px)){
  .mobile-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .more-sheet{padding-bottom:max(18px,env(safe-area-inset-bottom))}
}

/* v1.1 Meldingen & Herinneringen */
.dashboard-notification-link{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;text-decoration:none;color:#172033;background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:12px 14px;margin-bottom:14px}.dashboard-notification-link b,.dashboard-notification-link small{display:block}.dashboard-notification-link small{color:#64748b;font-size:10px;margin-top:2px}.notification-bell{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:#eef4ff;color:#2563eb;font-size:9px}
.notify-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.notify-hero h2{margin:4px 0}.notify-hero p{margin:0;color:#64748b}.notify-count{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#172033;color:#fff;font-size:20px;font-weight:900}
.notify-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.notify-summary a{text-decoration:none;color:inherit}.notify-summary strong,.notify-summary span{display:block}.notify-summary strong{font-size:22px}.notify-summary span{font-size:10px;color:#64748b;margin-top:4px}
.notify-section{margin-bottom:15px}.notify-section .section-head a{font-size:10px;text-decoration:none;color:#2563eb;font-weight:800}.notify-list{display:flex;flex-direction:column}.notify-row{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.notify-row:last-child{border:0}.notify-row b,.notify-row small{display:block}.notify-row small{font-size:10px;color:#64748b;margin-top:3px}.notify-row time,.notify-row>span,.notify-row>strong{font-size:10px;color:#64748b;text-align:right}.notify-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#eef4ff;color:#2563eb;font-size:11px;font-weight:900}.notify-row.danger .notify-icon{background:#fef2f2;color:#b91c1c}.notify-row.warning .notify-icon{background:#fff7ed;color:#c2410c}
@media(max-width:760px){.notify-summary{grid-template-columns:1fr 1fr}.notify-row{grid-template-columns:34px 1fr auto}.notify-hero{align-items:flex-start}.notify-count{width:46px;height:46px;border-radius:14px}}

/* v1.2 Products */
.product-summary{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.product-summary h2{margin:4px 0}.product-summary p{margin:0;color:#64748b}.product-summary-badges{display:flex;gap:8px}.product-summary-badges span{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:10px 12px;font-size:10px;color:#64748b}.product-summary-badges b{font-size:17px;color:#172033}.product-summary-badges .warning{background:#fff7ed;border-color:#fed7aa}.product-filters{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:12px}.product-list{display:flex;flex-direction:column}.product-row{display:grid;grid-template-columns:40px 1fr auto 30px;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f6}.product-type{width:36px;height:36px;border-radius:11px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-weight:900}.product-main{min-width:0}.product-main b,.product-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-main small{font-size:9px;color:#64748b}.stock-low{color:#b45309!important;font-weight:800}.product-delete{border:0;background:#fef2f2;color:#b91c1c;width:28px;height:28px;border-radius:8px}.stock-row{display:grid;grid-template-columns:1fr 90px minmax(210px,auto);gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f6}.stock-row.low{background:#fff7ed55}.stock-number{text-align:right}.stock-adjust{display:flex;gap:7px}.stock-adjust input{width:90px}@media(max-width:760px){.product-summary{flex-direction:column}.product-summary-badges{display:grid;grid-template-columns:1fr 1fr;width:100%}.product-filters{grid-template-columns:1fr}.product-row{grid-template-columns:38px 1fr auto}.product-row>form{display:none}.stock-row{grid-template-columns:1fr auto}.stock-adjust{grid-column:1/-1}.stock-adjust input{width:auto;flex:1}}

/* v1.3 Facturen Pro */
.billing-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.billing-hero h2{margin:4px 0}.billing-hero p{margin:0;color:#64748b}.billing-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.billing-kpis small,.billing-kpis strong{display:block}.billing-kpis small{font-size:10px;color:#64748b}.billing-kpis strong{font-size:20px;margin-top:5px}.billing-list{display:flex;flex-direction:column}.billing-row{display:grid;grid-template-columns:40px 1fr auto auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.billing-row:last-child{border:0}.billing-doc-icon{width:36px;height:36px;border-radius:11px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-weight:900}.billing-doc-main{min-width:0}.billing-doc-main b,.billing-doc-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.billing-doc-main small{font-size:10px;color:#64748b;margin-top:3px}.billing-status{font-size:10px;font-weight:800;padding:6px 9px;border-radius:999px;background:#f1f5f9}.status-paid{background:#ecfdf5;color:#047857}.status-sent{background:#eff6ff;color:#1d4ed8}.status-overdue{background:#fef2f2;color:#b91c1c}.status-draft{background:#f8fafc;color:#64748b}
.invoice-pro-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.invoice-pro-grid>div{background:#f8fafc;border:1px solid #e5eaf1;border-radius:12px;padding:12px}.invoice-pro-grid small,.invoice-pro-grid b{display:block}.invoice-pro-grid small{font-size:9px;color:#64748b}.invoice-pro-grid b{margin-top:4px;font-size:12px}.invoice-pro-actions{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}.inline-pay-form{display:flex;gap:8px;flex:1}.inline-pay-form input{min-width:180px;flex:1}.paid-banner{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:11px;padding:11px 13px;font-weight:800}
.reminder-list{display:flex;flex-direction:column}.reminder-row{display:grid;grid-template-columns:1fr 120px 100px auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f6}.reminder-row:last-child{border:0}.reminder-row>div b,.reminder-row>div small{display:block}.reminder-row>div small{font-size:9px;color:#64748b}.reminder-row.late{background:linear-gradient(90deg,#fef2f200,#fef2f280)}
@media(max-width:760px){.billing-hero{flex-direction:column}.billing-kpis{grid-template-columns:1fr 1fr}.billing-row{grid-template-columns:38px 1fr auto}.billing-row>strong{grid-column:2}.invoice-pro-grid{grid-template-columns:1fr 1fr}.invoice-pro-actions,.inline-pay-form{flex-direction:column;align-items:stretch}.inline-pay-form input{min-width:0;width:100%}.reminder-row{grid-template-columns:1fr auto}.reminder-row>div:nth-child(3){display:none}}

/* v1.3.1 mobile invoice row scroll fix */
html,body{max-width:100%;overflow-x:hidden}
.billing-items-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin}
.billing-items-scroll table{width:100%;min-width:680px;margin:0}
.billing-items-scroll::-webkit-scrollbar{height:5px}
.billing-items-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
@media(max-width:760px){
  .billing-items-scroll table{min-width:640px}
  .billing-items-scroll th,.billing-items-scroll td{white-space:nowrap}
  .billing-items-scroll th:first-child,.billing-items-scroll td:first-child{min-width:180px;white-space:normal}
  main,.content,.app{min-width:0;max-width:100%;overflow-x:hidden}
  .card{min-width:0;max-width:100%}
}

/* v1.4 CRM Pro */
.crmpro-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.crmpro-hero h2{margin:4px 0}.crmpro-hero p{margin:0;color:#64748b}.crmpro-stats{display:flex;gap:8px}.crmpro-stats span{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:10px 12px;font-size:9px;color:#64748b}.crmpro-stats b{display:block;font-size:14px;color:#172033}.crmpro-form{margin-bottom:16px}.pipeline-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.pipeline-board{display:grid;grid-template-columns:repeat(5,260px);gap:10px;min-width:max-content;padding-bottom:8px}.pipeline-column{background:#eef2f7;border-radius:15px;padding:10px;min-height:260px}.pipeline-column>header{display:flex;justify-content:space-between;align-items:center;padding:5px 4px 10px;font-size:11px}.pipeline-column>header span{background:#fff;border-radius:999px;padding:3px 7px;font-size:9px}.opportunity-card{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:11px;margin-bottom:8px}.opportunity-card>a{text-decoration:none;color:#172033}.opportunity-card b,.opportunity-card small,.opportunity-card strong{display:block}.opportunity-card small{font-size:9px;color:#64748b;margin-top:3px}.opportunity-card strong{font-size:14px;margin-top:8px}.opportunity-card select{width:100%;height:34px;margin-top:9px;font-size:10px}.contact-list{display:flex;flex-direction:column}.contact-row{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f6}.contact-avatar{width:36px;height:36px;border-radius:12px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-weight:900}.contact-row b,.contact-row small{display:block}.contact-row small{font-size:9px;color:#64748b;margin-top:2px}
@media(max-width:760px){.crmpro-hero{flex-direction:column}.crmpro-stats{width:100%}.crmpro-stats span{flex:1}.pipeline-board{grid-template-columns:repeat(5,235px)}}

/* v1.4.1 CRM Pro follow-up UI */
.crmpro-form input[type="date"],.crmpro-form input[type="time"]{width:100%;max-width:100%;min-width:0;box-sizing:border-box;height:46px;min-height:46px;padding:0 12px;font-size:16px;line-height:normal;text-align:left}
.crmpro-form input[type="time"]{-webkit-appearance:none;appearance:none}
.crmpro-form input[type="date"]::-webkit-date-and-time-value,.crmpro-form input[type="time"]::-webkit-date-and-time-value{text-align:left;min-height:44px;line-height:44px}
@media(max-width:760px){.crmpro-form input[type="date"],.crmpro-form input[type="time"]{height:48px;min-height:48px}}

/* v1.5 Planning & Kalender */
.calendar-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.calendar-hero h2{margin:4px 0}.calendar-hero p{margin:0;color:#64748b}.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-bottom:12px;padding:11px}.calendar-nav{display:flex;gap:5px}.calendar-nav a,.today-btn{display:grid;place-items:center;min-width:34px;height:34px;border:1px solid #e5eaf1;border-radius:9px;text-decoration:none;color:#172033;background:#fff;font-weight:800}.today-btn{padding:0 9px;font-size:10px}.calendar-title{text-align:center;font-size:13px}.calendar-controls{display:flex;gap:7px;align-items:center}.calendar-controls select{height:34px;font-size:10px}.view-switch{display:flex;background:#eef2f7;border-radius:9px;padding:2px}.view-switch a{text-decoration:none;color:#64748b;font-size:9px;font-weight:800;padding:7px 9px;border-radius:7px}.view-switch a.active{background:#fff;color:#2563eb;box-shadow:0 1px 4px #0f172a12}.week-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(180px,1fr));gap:7px;min-width:1260px}.day-column{background:#f8fafc;border:1px solid #e5eaf1;border-radius:13px;min-height:390px;padding:8px}.day-column.today{border-color:#93c5fd;background:#eff6ff55}.day-column>header{display:flex;justify-content:space-between;align-items:center;padding:3px 4px 9px}.day-column>header span{font-size:9px;font-weight:800;color:#64748b;text-transform:uppercase}.day-column>header b{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:11px}.day-column.today>header b{background:#2563eb;color:#fff}.day-events{display:flex;flex-direction:column;gap:6px}.cal-event{display:block;text-decoration:none;color:#172033;background:#fff;border:1px solid #e5eaf1;border-left:3px solid #64748b;border-radius:9px;padding:8px}.cal-event b,.cal-event small,.cal-event span{display:block}.cal-event b{font-size:10px;margin:2px 0}.cal-event small,.cal-event span{font-size:8px;color:#64748b}.crm-event{border-left-color:#8b5cf6;background:#faf5ff}.priority-urgent{border-left-color:#dc2626}.priority-high{border-left-color:#f59e0b}.priority-normal{border-left-color:#2563eb}.priority-low{border-left-color:#64748b}.month-grid{background:#fff;border:1px solid #e5eaf1;border-radius:14px;overflow:hidden}.month-weekheads,.month-days{display:grid;grid-template-columns:repeat(7,1fr)}.month-weekheads span{text-align:center;padding:9px;font-size:9px;font-weight:900;color:#64748b;background:#f8fafc;border-bottom:1px solid #e5eaf1}.month-day{min-height:105px;padding:7px;border-right:1px solid #edf1f6;border-bottom:1px solid #edf1f6;min-width:0}.month-day.outside{background:#f8fafc;color:#94a3b8}.month-day.today .month-number{background:#2563eb;color:#fff}.month-number{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:10px}.month-event{display:block;margin-top:4px;padding:4px 5px;border-radius:5px;background:#eff6ff;color:#1d4ed8;text-decoration:none;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-event.crm{background:#faf5ff;color:#7c3aed}.month-day>small{font-size:7px;color:#64748b}.calendar-legend{display:flex;gap:14px;padding:10px 3px;font-size:9px;color:#64748b}.calendar-legend span{display:flex;align-items:center;gap:5px}.calendar-legend i{width:8px;height:8px;border-radius:50%;background:#2563eb}.calendar-legend .legend-crm{background:#8b5cf6}
@media(max-width:760px){.calendar-hero{flex-direction:column}.calendar-toolbar{grid-template-columns:auto 1fr}.calendar-title{text-align:right}.calendar-controls{grid-column:1/-1;justify-content:space-between}.calendar-controls form{flex:1}.calendar-controls select{width:100%}.week-grid{grid-template-columns:repeat(7,210px);min-width:1470px}.month-grid{overflow-x:auto}.month-weekheads,.month-days{min-width:700px}.month-day{min-height:90px}}

/* v1.5.1 — compact iPhone More menu */
@media(max-width:760px){
  .mobile-more-sheet{
    max-height:calc(82vh - env(safe-area-inset-bottom));
    overflow:hidden;
    padding:8px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius:24px 24px 0 0;
  }

  .mobile-more-sheet .more-header{
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
    padding-bottom:8px;
  }

  .more-list{
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    max-height:calc(68vh - env(safe-area-inset-bottom));
    padding:2px 0 8px;
  }

  .more-section{
    margin-bottom:14px;
    border:1px solid #e5eaf1;
    border-radius:15px;
    background:#fff;
    overflow:hidden;
  }

  .more-section-title{
    padding:8px 12px 6px;
    background:#f8fafc;
    border-bottom:1px solid #edf1f6;
    color:#94a3b8;
    font-size:8px;
    font-weight:900;
    letter-spacing:1.1px;
    text-transform:uppercase;
  }

  .more-list-item{
    display:grid !important;
    grid-template-columns:34px 1fr 18px;
    gap:10px;
    align-items:center;
    min-height:54px !important;
    padding:8px 11px !important;
    border:0 !important;
    border-bottom:1px solid #edf1f6 !important;
    border-radius:0 !important;
    color:#172033 !important;
    background:#fff !important;
    text-decoration:none !important;
  }

  .more-list-item:last-child{
    border-bottom:0 !important;
  }

  .more-list-icon{
    width:32px;
    height:32px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:#eef4ff;
    color:#2563eb;
    font-size:15px;
    font-weight:900;
  }

  .more-list-text{
    min-width:0;
  }

  .more-list-text b,
  .more-list-text small{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .more-list-text b{
    font-size:13px;
    line-height:1.2;
  }

  .more-list-text small{
    margin-top:2px;
    color:#64748b;
    font-size:9px;
    line-height:1.2;
  }

  .more-chevron{
    color:#94a3b8;
    font-size:20px;
    line-height:1;
    text-align:right;
  }

  /* old tile grid should never show in this version */
  .more-grid{
    display:none !important;
  }

  .sheet-handle{
    margin-bottom:10px;
  }

  .more-header h2{
    font-size:20px;
  }
}

/* v1.6 Dashboard Pro */
.pro-dash-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:15px}.pro-dash-head h2{margin:4px 0}.pro-dash-head p{margin:0;color:#64748b}.dash-head-actions{display:flex;gap:7px}.pro-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.pro-kpi{display:block;background:#fff;border:1px solid #e5eaf1;border-radius:15px;padding:14px;text-decoration:none;color:#172033;box-shadow:0 2px 7px #0f172a08}.pro-kpi span,.pro-kpi strong,.pro-kpi small{display:block}.pro-kpi span{font-size:9px;color:#64748b;font-weight:800}.pro-kpi strong{font-size:21px;margin:6px 0 4px}.pro-kpi small{font-size:8px;color:#64748b}.pro-kpi.attention{border-color:#fed7aa;background:#fffaf5}.dash-main-grid{margin-bottom:12px}.dash-action-list{display:flex;flex-direction:column}.dash-action-row{display:grid;grid-template-columns:42px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.dash-action-row:last-child{border:0}.dash-action-row time{font-size:9px;font-weight:900;color:#2563eb}.dash-action-row b,.dash-action-row small{display:block}.dash-action-row b{font-size:11px}.dash-action-row small{font-size:8px;color:#64748b;margin-top:2px}.priority-dot{width:8px;height:8px;border-radius:50%;background:#64748b}.p-urgent{background:#dc2626}.p-high{background:#f59e0b}.p-normal{background:#2563eb}.revenue-chart{height:190px;display:flex;align-items:flex-end;gap:7px;padding-top:24px}.revenue-col{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;min-width:0}.revenue-value{height:22px;font-size:7px;color:#64748b;white-space:nowrap}.revenue-track{position:relative;flex:1;width:100%;max-width:42px;background:#f1f5f9;border-radius:7px 7px 3px 3px;overflow:hidden}.revenue-track i{position:absolute;bottom:0;left:0;right:0;background:#2563eb;border-radius:7px 7px 3px 3px}.revenue-col small{font-size:8px;color:#64748b;margin-top:5px}.dash-invoices>a{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.dash-invoices>a:last-child{border:0}.dash-invoices b,.dash-invoices small{display:block}.dash-invoices b{font-size:10px}.dash-invoices small{font-size:8px;color:#64748b}.dash-invoices strong{font-size:10px}.dash-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.dash-quick a{background:#fff;border:1px solid #e5eaf1;border-radius:13px;padding:11px;text-decoration:none;color:#172033}.dash-quick span,.dash-quick b,.dash-quick small{display:block}.dash-quick span{color:#2563eb;font-size:17px}.dash-quick b{font-size:10px;margin-top:5px}.dash-quick small{font-size:8px;color:#64748b;margin-top:2px}
@media(max-width:760px){.pro-dash-head{flex-direction:column}.dash-head-actions{width:100%}.dash-head-actions .btn{flex:1;text-align:center}.pro-kpis{grid-template-columns:1fr 1fr}.pro-kpi{padding:12px}.pro-kpi strong{font-size:18px}.dash-main-grid{grid-template-columns:1fr!important}.revenue-chart{height:165px;overflow:hidden}.revenue-value{font-size:6px}.dash-quick{grid-template-columns:1fr 1fr}}

/* v1.7 Reports & Insights */
.reports-head{margin-bottom:14px}.reports-head h2{margin:4px 0}.reports-head p{margin:0;color:#64748b}.report-filter{margin-bottom:12px}.report-filter form{display:flex;justify-content:space-between;align-items:end;gap:12px}.report-presets{display:flex;gap:5px;background:#f1f5f9;padding:3px;border-radius:10px}.report-presets a{padding:8px 10px;border-radius:8px;text-decoration:none;color:#64748b;font-size:9px;font-weight:800}.report-presets a.active{background:#fff;color:#2563eb;box-shadow:0 1px 4px #0f172a12}.report-dates{display:flex;gap:7px;align-items:end}.report-dates label{font-size:8px;color:#64748b;font-weight:800}.report-dates input{display:block;margin-top:3px;height:36px}.report-dates .btn{height:36px}.report-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:12px}.report-kpis .card{padding:13px}.report-kpis small,.report-kpis strong,.report-kpis span{display:block}.report-kpis small{font-size:8px;color:#64748b;font-weight:800}.report-kpis strong{font-size:18px;margin:5px 0}.report-kpis span{font-size:7px;color:#94a3b8}.report-grid{margin-bottom:12px}.report-bar-chart{height:210px;display:flex;align-items:flex-end;gap:6px;padding-top:24px;overflow-x:auto}.report-bar-col{height:100%;min-width:36px;flex:1;display:flex;flex-direction:column;align-items:center}.report-bar-col>span{height:20px;font-size:6px;color:#64748b;white-space:nowrap}.report-bar-col>div{position:relative;flex:1;width:70%;max-width:36px;background:#f1f5f9;border-radius:7px 7px 3px 3px;overflow:hidden}.report-bar-col i{position:absolute;bottom:0;left:0;right:0;background:#2563eb;border-radius:7px 7px 3px 3px}.report-bar-col small{font-size:7px;color:#64748b;margin-top:5px}.rank-list>div{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 0;border-bottom:1px solid #edf1f6;align-items:center}.rank-list>div:last-child{border:0}.rank-list b{font-size:10px}.rank-list span{font-size:10px;font-weight:900}.rank-list small{grid-column:1/-1;font-size:7px;color:#64748b}
@media(max-width:760px){.report-filter form{flex-direction:column;align-items:stretch}.report-presets{display:grid;grid-template-columns:1fr 1fr}.report-presets a{text-align:center}.report-dates{display:grid;grid-template-columns:1fr 1fr}.report-dates .btn{grid-column:1/-1}.report-dates input{width:100%;min-width:0}.report-kpis{grid-template-columns:1fr 1fr}.report-kpis .card:last-child{grid-column:1/-1}.report-grid{grid-template-columns:1fr!important}.report-bar-chart{height:180px}}
.reports-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.report-actions{display:flex;gap:7px}.export-head{margin-bottom:14px}.export-head h2{margin:4px 0}.export-head p,.export-info{color:#64748b}.export-list a{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.export-list a>span{width:34px;height:34px;border-radius:10px;background:#eef4ff;color:#2563eb;display:grid;place-items:center}.export-list b,.export-list small{display:block}.export-list small{font-size:8px;color:#64748b}.export-list em{font-style:normal;font-size:8px;font-weight:900;color:#2563eb}.backup-note{margin-top:16px;padding:11px;background:#f8fafc;border-radius:10px}.backup-note b,.backup-note small{display:block}.backup-note small{font-size:8px;color:#64748b}@media(max-width:760px){.reports-head{flex-direction:column}.report-actions{width:100%}.report-actions .btn{flex:1;text-align:center}.export-grid{grid-template-columns:1fr!important}}
/* v1.8.2 — restored compact menu + consistent SVG icons */
.more-list-icon svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.more-list-icon{
  transition:transform .12s ease;
}
.more-list-item:active .more-list-icon{
  transform:scale(.94);
}
.workflow-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.workflow-hero h2{margin:4px 0}.workflow-hero p{margin:0;color:#64748b}.workflow-total{width:50px;height:50px;border-radius:15px;background:#172033;color:white;display:grid;place-items:center;font-size:19px;font-weight:900}.workflow-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.workflow-kpis a{text-decoration:none;color:#172033}.workflow-kpis strong,.workflow-kpis span{display:block}.workflow-kpis strong{font-size:20px}.workflow-kpis span{font-size:8px;color:#64748b}.workflow-grid{margin-bottom:12px}.workflow-list a{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.workflow-list b,.workflow-list small{display:block}.workflow-list b{font-size:10px}.workflow-list small{font-size:8px;color:#64748b}@media(max-width:760px){.workflow-kpis{grid-template-columns:1fr 1fr}.workflow-grid{grid-template-columns:1fr!important}}/* YCAPPS Business v2.0 */
.command-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.command-head h2{margin:4px 0}.command-head p{margin:0;color:#64748b}.command-actions{display:flex;gap:7px}.command-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.command-kpis a{text-decoration:none;color:#172033}.command-kpis small,.command-kpis strong,.command-kpis span{display:block}.command-kpis strong{font-size:20px;margin:4px 0}.command-kpis span,.command-kpis small{font-size:8px;color:#64748b}.command-list a{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.command-list b,.command-list small{display:block}.command-list b{font-size:10px}.command-list small,.command-list time{font-size:8px;color:#64748b}.command-wide{grid-column:1/-1}.command-action-needed{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:12px;text-decoration:none;color:#172033;margin-top:12px}.command-action-needed>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eef4ff}.command-action-needed b,.command-action-needed small{display:block}.command-action-needed small{font-size:8px;color:#64748b}.command-action-needed em{font-style:normal}.global-search-head{max-width:760px;margin:0 auto 14px}.global-search-head h2{margin:4px 0 12px}.global-search-head form{display:grid;grid-template-columns:30px 1fr auto;align-items:center;background:#fff;border:1px solid #dfe5ed;border-radius:14px;padding:5px 6px 5px 12px}.global-search-head input{border:0;outline:0;font-size:14px;padding:10px 3px;background:transparent;min-width:0}.global-search-head button{border:0;background:#2563eb;color:#fff;border-radius:10px;padding:10px 12px;font-weight:800}.search-empty{text-align:center;padding:55px 20px;color:#64748b}.search-empty>div{font-size:38px}.search-empty b{display:block;color:#172033;margin-top:8px}.search-empty p{font-size:10px}.search-groups{display:grid;grid-template-columns:1fr 1fr;gap:10px}.search-results a{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.search-result-icon{width:32px;height:32px;display:grid;place-items:center;background:#f1f5f9;border-radius:10px}.search-results b,.search-results small{display:block}.search-results b{font-size:10px}.search-results small{font-size:8px;color:#64748b}.search-results em{font-style:normal}.quick-create-head{margin-bottom:14px}.quick-create-head h2{margin:4px 0}.quick-create-head p{margin:0;color:#64748b}.quick-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-create-grid>a{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;text-decoration:none;color:#172033}.quick-create-grid>a>span{width:38px;height:38px;display:grid;place-items:center;background:#eef4ff;color:#2563eb;border-radius:11px;font-weight:900}.quick-create-grid small,.quick-create-grid b,.quick-create-grid p{display:block;margin:0}.quick-create-grid small{font-size:7px;color:#64748b}.quick-create-grid b{font-size:11px;margin:2px 0}.quick-create-grid p{font-size:8px;color:#64748b}.quick-create-grid em{font-style:normal}.mobile-quick-create{display:none}@media(max-width:760px){.command-head{flex-direction:column}.command-actions{width:100%}.command-actions .btn{flex:1;text-align:center}.command-kpis{grid-template-columns:1fr 1fr}.command-grid{grid-template-columns:1fr!important}.search-groups,.quick-create-grid{grid-template-columns:1fr}.mobile-quick-create{display:grid;position:fixed;z-index:80;right:18px;bottom:76px;width:48px;height:48px;place-items:center;border-radius:15px;background:#2563eb;color:#fff;text-decoration:none;font-size:25px;box-shadow:0 8px 25px #2563eb55}.global-search-head form{grid-template-columns:26px 1fr}.global-search-head button{display:none}}

/* v2.0.1 - floating + button position */
@media(max-width:760px){
  .mobile-quick-create{
    right:20px !important;
    bottom:calc(118px + env(safe-area-inset-bottom)) !important;
  }
  .content{
    padding-bottom:160px;
  }
}

/* v2.0.3 - Quick Create uses the same SVG icon system as compact iPhone menu */
.quick-create-grid>a>.quick-create-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#2563eb;
  border-radius:11px;
}
.quick-create-grid>a>.quick-create-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* v2.0.5 - global search button in header */
.header-actions{display:flex;align-items:center;gap:9px}
.header-search{
  width:38px;height:38px;display:grid;place-items:center;
  border:1px solid #e2e8f0;border-radius:12px;background:#fff;
  color:#64748b;text-decoration:none;
}
.header-search svg{
  width:19px;height:19px;fill:none;stroke:currentColor;
  stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.header-search:active{transform:scale(.96)}
@media(max-width:760px){
  .header-actions{gap:8px}
  .header-search{width:38px;height:38px;border-radius:12px}
}

/* v2.0.6 — tables scroll horizontally, never the whole page */
html,body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
*,*::before,*::after{box-sizing:border-box}
main,.content,.container,.card,.grid,.grid>*{
  min-width:0;
  max-width:100%;
}

/* All existing table wrappers */
.table-wrap,
.table-scroll,
.table-responsive,
.responsive-table,
.table-container,
.data-table-wrap,
.card-table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;
}

/* If a table sits directly in a card, JS adds .yc-table-scroll around it. */
.yc-table-scroll{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
.yc-table-scroll>table{
  width:max-content;
  min-width:100%;
}

/* Never let tables themselves stretch the viewport */
table{
  max-width:none;
}
@media(max-width:760px){
  .table-wrap,.table-scroll,.table-responsive,.responsive-table,
  .table-container,.data-table-wrap,.card-table,.yc-table-scroll{
    scrollbar-width:none;
  }
  .table-wrap::-webkit-scrollbar,.table-scroll::-webkit-scrollbar,
  .table-responsive::-webkit-scrollbar,.responsive-table::-webkit-scrollbar,
  .table-container::-webkit-scrollbar,.data-table-wrap::-webkit-scrollbar,
  .card-table::-webkit-scrollbar,.yc-table-scroll::-webkit-scrollbar{
    display:none;
  }
}

/* v2.1 Smart Command Center */
.smart-task-list{display:flex;flex-direction:column}
.smart-task-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6}
.smart-task-row:last-child{border-bottom:0}
.smart-task-row form{margin:0}
.smart-check{width:30px;height:30px;border-radius:10px;border:1px solid #dbe3ee;background:#fff;color:#94a3b8;font-weight:900;cursor:pointer}
.smart-check:active{background:#ecfdf5;color:#059669;border-color:#a7f3d0;transform:scale(.95)}
.smart-task-row>a{text-decoration:none;color:#172033;min-width:0}
.smart-task-title{display:flex;align-items:center;gap:6px;min-width:0}
.smart-task-title b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-task-row small{display:block;font-size:8px;color:#64748b;margin-top:2px}
.priority-badge{font-size:6px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;background:#fff1f2;color:#be123c;padding:3px 5px;border-radius:6px;white-space:nowrap}
.due-badge{font-size:7px;font-weight:800;background:#f1f5f9;color:#64748b;padding:5px 7px;border-radius:7px;white-space:nowrap}
.due-badge.today{background:#eff6ff;color:#2563eb}
.due-badge.overdue{background:#fff1f2;color:#be123c}
@media(max-width:760px){
 .smart-task-row{grid-template-columns:32px minmax(0,1fr) auto}
 .smart-task-title b{max-width:180px}
}

/* v2.2 Smart Notification Center */
.header-notifications{position:relative;width:38px;height:38px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#64748b;text-decoration:none}
.header-notifications svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.header-notifications>span{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:7px;font-weight:900}
.notification-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.notification-head h2{margin:4px 0}.notification-head p{margin:0;color:#64748b}
.notification-list{background:#fff;border:1px solid #e5eaf1;border-radius:16px;overflow:hidden}.notification-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #edf1f6}.notification-item:last-child{border:0}.notification-item.is-read{opacity:.58}.notification-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eef4ff;color:#2563eb;font-weight:900}.notification-icon.danger{background:#fff1f2;color:#be123c}.notification-icon.warning{background:#fffbeb;color:#b45309}.notification-item>a{text-decoration:none;color:#172033;min-width:0}.notification-item>a>div{display:flex;align-items:center;gap:6px}.notification-item b{font-size:10px}.notification-item i{font-style:normal;font-size:6px;font-weight:900;text-transform:uppercase;background:#dbeafe;color:#2563eb;padding:3px 5px;border-radius:5px}.notification-item p{font-size:9px;margin:3px 0;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-item small{font-size:7px;color:#94a3b8}.notification-item form{margin:0}.notification-item form button{width:29px;height:29px;border:1px solid #dbe3ee;border-radius:9px;background:#fff;color:#64748b;font-weight:900}.notification-empty{text-align:center;padding:55px 20px;color:#64748b}.notification-empty span{width:44px;height:44px;display:grid;place-items:center;margin:auto;background:#ecfdf5;color:#059669;border-radius:14px;font-weight:900}.notification-empty b{display:block;color:#172033;margin:10px 0 4px}.notification-empty p{font-size:9px;margin:0}
@media(max-width:760px){.notification-head{align-items:center}.notification-head .btn{font-size:8px;padding:8px}.header-actions{gap:6px}.header-notifications,.header-search{width:36px;height:36px}}

/* v2.2.1 — clearer task completion in Smart Command Center */
.smart-check-round{
  width:34px;
  height:34px;
  border-radius:50%;
  border:2px solid #cbd5e1;
  background:#fff;
  color:#94a3b8;
  display:grid;
  place-items:center;
  padding:0;
  transition:background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease;
}
.smart-check-round span{
  font-size:13px;
  line-height:1;
  opacity:.45;
}
.smart-check-round:hover{
  border-color:#86efac;
  color:#16a34a;
  background:#f0fdf4;
}
.smart-check-round:active{
  transform:scale(.92);
  background:#dcfce7;
  border-color:#4ade80;
  color:#15803d;
}
.command-complete-toast{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:9px;
  align-items:center;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:12px;
}
.command-complete-toast>span{
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#d1fae5;
  color:#047857;
  font-weight:900;
}
.command-complete-toast b,
.command-complete-toast small{
  display:block;
}
.command-complete-toast b{
  font-size:10px;
}
.command-complete-toast small{
  font-size:8px;
  margin-top:2px;
  color:#047857;
}
@media(max-width:760px){
  .smart-check-round{
    width:36px;
    height:36px;
  }
}

/* v2.3 Smart Dashboard Actions */
.smart-crm-list{display:flex;flex-direction:column}
.smart-crm-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6}
.smart-crm-row:last-child{border-bottom:0}
.smart-crm-row form{margin:0}
.smart-crm-row>a{text-decoration:none;color:#172033;min-width:0}
.smart-crm-row b,.smart-crm-row small{display:block}
.smart-crm-row b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-crm-row small,.smart-crm-row time{font-size:8px;color:#64748b}
.smart-invoice-list{display:flex;flex-direction:column}
.smart-invoice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6}
.smart-invoice-row:last-child{border-bottom:0}
.smart-invoice-row>a:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;text-decoration:none;color:#172033;align-items:center}
.smart-invoice-row b,.smart-invoice-row small{display:block}
.smart-invoice-row b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-invoice-row small{font-size:8px;color:#64748b}
.invoice-action{font-size:8px;font-weight:800;text-decoration:none;color:#2563eb;background:#eff6ff;padding:7px 9px;border-radius:8px;white-space:nowrap}
.smart-kpi-action span{font-weight:700;color:#2563eb!important}
@media(max-width:760px){
 .smart-crm-row{grid-template-columns:36px minmax(0,1fr) auto}
 .smart-invoice-row{grid-template-columns:1fr auto}
 .invoice-action{padding:7px 8px}
}

/* v2.4 Smart Activity Feed */
.command-activity{margin-top:12px}.activity-feed{display:flex;flex-direction:column}.activity-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.activity-item:last-child{border-bottom:0}.activity-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef4ff;color:#2563eb;font-size:12px;font-weight:900}.activity-icon.type-task,.activity-icon.type-invoice_paid{background:#ecfdf5;color:#059669}.activity-icon.type-invoice{background:#fff7ed;color:#c2410c}.activity-icon.type-crm{background:#faf5ff;color:#7c3aed}.activity-main{min-width:0}.activity-main b,.activity-main small{display:block}.activity-main b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-main small{font-size:8px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-item time{font-size:7px;color:#94a3b8;white-space:nowrap}

/* v2.4.1 Command Center navigation fix */
.command-primary-note{display:grid;grid-template-columns:32px 1fr;gap:9px;align-items:center;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;border-radius:12px;padding:9px 11px;margin-bottom:12px}
.command-primary-note>span{width:30px;height:30px;display:grid;place-items:center;background:#dbeafe;border-radius:9px;font-weight:900}
.command-primary-note b,.command-primary-note small{display:block}
.command-primary-note b{font-size:9px}
.command-primary-note small{font-size:7px;color:#3b82f6;margin-top:2px}

/* v2.5 Smart Today */
.smart-today-card{margin-bottom:12px}
.smart-today-card .section-head{align-items:center}
.today-count{min-width:27px;height:27px;padding:0 7px;border-radius:9px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:9px;font-weight:900}
.today-list{display:flex;flex-direction:column}
.today-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6}
.today-row:last-child{border-bottom:0}
.today-dot{width:8px;height:8px;border-radius:50%;background:#3b82f6}
.today-dot.warning{background:#f59e0b}.today-dot.danger{background:#ef4444}
.today-row>a{text-decoration:none;color:#172033;min-width:0}
.today-row b,.today-row small{display:block}
.today-row b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-row small{font-size:8px;color:#64748b;margin-top:2px}
.today-row form{margin:0}
.today-action{width:31px;height:31px;border:1px solid #bbf7d0;border-radius:50%;background:#f0fdf4;color:#16a34a;font-weight:900}
.today-action:active{transform:scale(.92);background:#dcfce7}
.today-open{font-size:8px!important;font-weight:800;color:#2563eb!important;background:#eff6ff;padding:7px 8px;border-radius:8px;white-space:nowrap}
.today-clear{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;padding:8px 0}
.today-clear>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#ecfdf5;color:#059669;font-weight:900}
.today-clear b,.today-clear small{display:block}.today-clear b{font-size:10px}.today-clear small{font-size:8px;color:#64748b;margin-top:2px}

/* v2.5.1 — Smart Deep Links */
.clickable-row,
.clickable-card{
  cursor:pointer;
}
.clickable-row td{
  transition:background .12s ease;
}
.clickable-row:hover td{
  background:#f8fafc;
}
.clickable-row:active td{
  background:#eff6ff;
}
.clickable-card{
  transition:background .12s ease,border-color .12s ease;
}
.clickable-card:hover{
  background:#f8fafc;
}
.clickable-card:active{
  background:#eff6ff;
}
.record-link{
  color:inherit;
  text-decoration:none;
}
.record-link:hover{
  color:#2563eb;
}
@media(max-width:760px){
  .clickable-row:active td,
  .clickable-card:active{
    background:#eff6ff;
  }
}

/* v2.5.2 — cleaner Command Center */
.command-primary-note{display:none!important}
.smart-today-card .section-head h2{margin-top:0}

/* v2.6 — UX Polish */
.ux-success{
  position:fixed;
  top:74px;
  left:50%;
  transform:translateX(-50%);
  z-index:9999;
  width:max-content;
  max-width:calc(100% - 28px);
  padding:9px 13px!important;
  border-radius:11px!important;
  box-shadow:0 10px 30px rgba(15,23,42,.12);
  transition:opacity .25s ease,transform .25s ease;
}
.ux-success-hide{opacity:0;transform:translate(-50%,-7px)}
.empty-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:28px 14px}
.empty-action p{margin:0;color:#64748b;font-size:9px}
.smart-back{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:#64748b;font-size:9px;font-weight:800;margin-bottom:10px}
.smart-back:before{content:'‹';font-size:16px;line-height:1}
@media(max-width:760px){
  input,select,textarea,button{font-size:16px}
  .field input,.field select,.field textarea{
    min-height:44px;
    padding:10px 11px;
    border-radius:10px;
  }
  .field textarea{min-height:96px}
  .grid-form{gap:11px}
  .btn,.check-btn,.today-action,.smart-check-round{min-height:40px}
  .card{max-width:100%}
  .section-head{gap:9px}
  .command-kpis{gap:8px}
  .command-kpis .card{padding:11px}
  .command-kpis .card strong{font-size:17px}
  .smart-today-card,.command-activity{margin-bottom:9px}
}

/* v2.7 — Customer 360 */
.customer360-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:10px 0}
.customer360-stats span{background:#f8fafc;border:1px solid #edf1f6;border-radius:10px;padding:9px;text-align:center}
.customer360-stats b,.customer360-stats small{display:block}
.customer360-stats b{font-size:16px;color:#172033}.customer360-stats small{font-size:7px;color:#64748b;margin-top:2px}
.customer360-actions{display:flex;flex-wrap:wrap;gap:7px}
.customer360-grid{margin-top:12px}
.customer360-list{display:flex;flex-direction:column}
.customer360-list>a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033;min-width:0}
.customer360-list>a:last-child{border-bottom:0}
.customer360-list>a>div{min-width:0}.customer360-list b,.customer360-list small{display:block}
.customer360-list b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer360-list small{font-size:8px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer360-list strong{font-size:9px;white-space:nowrap}
@media(max-width:760px){.customer360-stats{grid-template-columns:repeat(2,1fr)}.customer360-actions .btn{flex:1 1 auto;text-align:center}}

/* v2.8 — Customer Activity Timeline */
.customer-timeline-card{margin-top:12px}
.customer-timeline{position:relative;display:flex;flex-direction:column}
.timeline-item{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;text-decoration:none;color:#172033}
.timeline-item:not(:last-child):after{content:"";position:absolute;left:17px;top:44px;bottom:-4px;width:1px;background:#e2e8f0}
.timeline-icon{position:relative;z-index:1;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:900;border:3px solid #fff}
.timeline-icon.type-paid,.timeline-icon.type-task{background:#ecfdf5;color:#059669}
.timeline-icon.type-crm{background:#faf5ff;color:#7c3aed}
.timeline-icon.type-time{background:#f8fafc;color:#475569}
.timeline-icon.type-document{background:#fff7ed;color:#c2410c}
.timeline-item>div{min-width:0}.timeline-item b,.timeline-item small{display:block}
.timeline-item b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-item small{font-size:8px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-item time{font-size:7px;color:#94a3b8;white-space:nowrap}
@media(max-width:760px){.customer-timeline-card{margin-top:9px}.timeline-item{grid-template-columns:34px minmax(0,1fr) auto;gap:8px}.timeline-icon{width:32px;height:32px}.timeline-item:not(:last-child):after{left:16px;top:42px}}

/* v2.9 Smart Customer Follow-up */
.customer-followup-card{margin-bottom:12px}.followup-count{min-width:27px;height:27px;padding:0 7px;border-radius:9px;background:#f1f5f9;color:#475569;display:grid;place-items:center;font-size:9px;font-weight:900}.followup-list{display:flex;flex-direction:column}.followup-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.followup-row:last-child{border-bottom:0}.followup-row.is-next{background:#f8fafc;margin:0 -8px;padding:10px 8px;border-radius:10px}.followup-status{width:8px;height:8px;border-radius:50%;background:#3b82f6}.followup-status.warning{background:#f59e0b}.followup-status.danger{background:#ef4444}.followup-row b,.followup-row small{display:block}.followup-row b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.followup-row small{font-size:8px;color:#64748b;margin-top:2px}.followup-open{font-size:8px;font-weight:800;color:#2563eb;white-space:nowrap}.followup-clear{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;padding:7px 0}.followup-clear>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#ecfdf5;color:#059669;font-weight:900}.followup-clear b,.followup-clear small{display:block}.followup-clear b{font-size:10px}.followup-clear small{font-size:8px;color:#64748b;margin-top:2px}

/* v3.0 — Unified Workspace */
.workspace-context{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.workspace-context>div{min-width:0}
.workspace-context h1{font-size:17px;margin:0;color:#172033}
.workspace-context p{font-size:8px;color:#64748b;margin:2px 0 0}
.workspace-actions{display:flex;gap:6px;flex-wrap:wrap}
.workspace-actions .btn{white-space:nowrap}
.workspace-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 12px}
.workspace-shortcuts a{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e5eaf1;border-radius:12px;background:#fff;text-decoration:none;color:#172033;min-width:0}
.workspace-shortcuts span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:#2563eb;font-weight:900;flex:0 0 auto}
.workspace-shortcuts div{min-width:0}.workspace-shortcuts b,.workspace-shortcuts small{display:block}.workspace-shortcuts b{font-size:9px}.workspace-shortcuts small{font-size:7px;color:#64748b;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unified-section{margin-bottom:10px}
@media(max-width:760px){
 .workspace-context{align-items:flex-start}
 .workspace-context h1{font-size:15px}
 .workspace-shortcuts{grid-template-columns:repeat(2,1fr);gap:7px}
 .workspace-shortcuts a{padding:9px}
 .workspace-actions .btn{min-height:38px}
 .customer360-grid{gap:9px}
 .customer360-grid .card{margin:0}
 .customer-timeline-card,.customer-followup-card{margin-top:9px;margin-bottom:9px}
}

/* v3.1 Favorites & Recents */
.favorite-toggle{display:inline-block;margin:0 0 10px 8px}.favorite-toggle button{width:34px;height:34px;border:1px solid #e2e8f0;background:#fff;border-radius:9px;color:#f59e0b;font-size:17px}.workspace-memory{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}.workspace-memory .card{margin:0}.workspace-memory-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.workspace-memory-list>a{display:grid;grid-template-columns:27px minmax(0,1fr);gap:7px;align-items:center;padding:8px;border:1px solid #edf1f6;border-radius:9px;text-decoration:none;color:#172033}.workspace-memory-list>a>span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#fffbeb;color:#f59e0b;font-weight:900}.workspace-memory-list b,.workspace-memory-list small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-memory-list b{font-size:9px}.workspace-memory-list small{font-size:7px;color:#64748b}@media(max-width:760px){.workspace-memory{grid-template-columns:1fr}}

/* v3.2 — Global Search Pro */
.global-search-hero{margin-bottom:12px}.global-search-hero .eyebrow{font-size:8px;letter-spacing:.18em;color:#64748b;font-weight:900}.global-search-hero h1{font-size:21px;margin:5px 0 11px}.global-search-form{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;background:#fff;border:1px solid #dfe6ef;border-radius:14px;padding:6px;box-shadow:0 6px 18px rgba(15,23,42,.04)}.global-search-form>span{display:grid;place-items:center;color:#64748b;font-size:18px}.global-search-form input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;min-width:0;padding:9px 4px!important}.global-search-form button{border:0;background:#3565e8;color:#fff;border-radius:10px;padding:10px 13px;font-weight:800}.search-summary{font-size:8px;color:#64748b;margin:0 2px 9px}.search-summary b{color:#172033}.search-group{margin-bottom:9px}.search-count{min-width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#f1f5f9;font-size:8px;font-weight:900}.search-results{display:flex;flex-direction:column}.search-results>a{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f6;text-decoration:none;color:#172033}.search-results>a:last-child{border-bottom:0}.search-result-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:#3565e8;font-weight:900}.search-results b,.search-results small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-results b{font-size:10px}.search-results small{font-size:8px;color:#64748b;margin-top:2px}.search-arrow{color:#94a3b8;font-size:16px}.search-start{display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 20px;color:#64748b}.search-start>span{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#eff6ff;color:#3565e8;font-size:24px}.search-start b{font-size:11px;color:#172033;margin-top:10px}.search-start small{font-size:8px;margin-top:4px;max-width:330px}.search-hint{font-size:8px;color:#64748b}
.global-search-link{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f1f5f9;color:#475569;text-decoration:none;font-size:18px}
@media(max-width:760px){.global-search-hero h1{font-size:19px}.global-search-form{position:sticky;top:7px;z-index:20}.global-search-form button{padding:10px}.search-group{margin-bottom:8px}}

.command-search-pro{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 10px;margin-bottom:9px;background:#fff;border:1px solid #e5eaf1;border-radius:12px;text-decoration:none;color:#172033}.command-search-pro>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:#3565e8;font-size:18px}.command-search-pro b,.command-search-pro small{display:block}.command-search-pro b{font-size:10px}.command-search-pro small{font-size:7px;color:#64748b;margin-top:1px}.command-search-pro strong{color:#94a3b8}

/* v3.3 — Custom Dashboard */
.customize-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.customize-head h2{margin:4px 0}.customize-head p{margin:0;color:#64748b}
.widget-customize-list{display:flex;flex-direction:column;gap:7px}
.widget-customize-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:10px 11px}.widget-customize-row.dragging{opacity:.55}.drag-handle{color:#94a3b8;font-size:17px;cursor:grab}.widget-customize-row b,.widget-customize-row small{display:block}.widget-customize-row b{font-size:10px}.widget-customize-row small{font-size:8px;color:#64748b;margin-top:2px}
.widget-toggle input{display:none}.widget-toggle span{position:relative;display:block;width:38px;height:22px;border-radius:11px;background:#22c55e}.widget-toggle span:after{content:"";position:absolute;width:18px;height:18px;left:18px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002}.widget-toggle input:checked+span{background:#cbd5e1}.widget-toggle input:checked+span:after{left:2px}
.customize-footer{display:flex;gap:7px;margin-top:12px}.mobile-order-controls{display:none}
.dashboard-widget{min-width:0}
@media(max-width:760px){.customize-head{align-items:center}.customize-head p{font-size:8px}.widget-customize-row{grid-template-columns:26px minmax(0,1fr) auto auto;padding:10px}.drag-handle{display:none}.mobile-order-controls{display:flex;gap:4px}.mobile-order-controls button{width:30px;height:30px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569}.workspace-memory{align-items:start}}

/* v3.4 — Smart Notifications 2.0 */
.smart-notification-head .eyebrow{font-size:7px;letter-spacing:.16em;color:#64748b;font-weight:900}.smart-notification-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 11px}.smart-notification-summary>div{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:10px 11px}.smart-notification-summary b,.smart-notification-summary small{display:block}.smart-notification-summary b{font-size:17px}.smart-notification-summary small{font-size:8px;color:#64748b;margin-top:2px}.smart-notification-summary .now b{color:#dc2626}.smart-notification-summary .today b{color:#d97706}.smart-notification-summary .later b{color:#2563eb}.notification-section{margin-bottom:10px}.notification-section .section-head>div small{font-size:7px;color:#94a3b8}.notification-section-count{min-width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#f1f5f9;font-size:8px;font-weight:900}.bucket-now{border-left:3px solid #ef4444}.bucket-today{border-left:3px solid #f59e0b}.bucket-later{border-left:3px solid #3b82f6}
@media(max-width:760px){.smart-notification-summary{gap:6px}.smart-notification-summary>div{padding:9px}.notification-section{margin-bottom:8px}}

/* v3.5 — Smart Actions */
.smart-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-left:auto}.smart-actions form{margin:0}.smart-action{appearance:none;border:1px solid #dbe3ee;background:#fff;color:#334155;border-radius:8px;padding:6px 8px;font:800 7px/1 inherit;text-decoration:none;white-space:nowrap;cursor:pointer}.smart-action.primary{background:#0f172a;color:#fff;border-color:#0f172a}.customer-smart-actions{position:fixed;right:18px;bottom:20px;z-index:20;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 10px 30px rgba(15,23,42,.12);padding:7px;border-radius:12px}.customer-smart-actions small{font-size:6px;font-weight:900;color:#94a3b8;padding:0 4px}.customer-smart-actions a{font-size:7px;font-weight:900;text-decoration:none;color:#334155;background:#f8fafc;padding:7px 8px;border-radius:8px}
@media(max-width:760px){.notification-item{flex-wrap:wrap}.smart-actions{width:100%;margin:4px 0 0 38px}.smart-action{padding:7px 9px}.customer-smart-actions{left:10px;right:10px;bottom:76px;overflow-x:auto;justify-content:flex-start}.customer-smart-actions small{display:none}.customer-smart-actions a{flex:0 0 auto}}

/* v3.5.1 — Smart Actions UI polish */
.notification-item{
  align-items:flex-start;
  gap:10px;
}
.notification-item>a{
  min-width:0;
  flex:1 1 auto;
}
.notification-item>a p{
  margin-top:3px;
}
.smart-actions{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
  margin-left:auto;
}
.smart-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  border:1px solid #dbe3ee;
  background:#f8fafc;
  color:#475569;
  border-radius:9px;
  padding:7px 10px;
  font-size:8px;
  line-height:1;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
.smart-action.primary{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.notification-item>form>button{
  width:30px;
  height:30px;
  border-radius:9px;
  border:1px solid #dbe3ee;
  background:#fff;
  color:#64748b;
  display:grid;
  place-items:center;
  font-size:13px;
}
@media(max-width:760px){
  .notification-list{display:grid;gap:8px}
  .notification-item{
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    column-gap:10px;
    row-gap:8px;
    padding:13px 12px;
    border-radius:14px;
  }
  .notification-item>.notification-icon{
    grid-column:1;
    grid-row:1;
  }
  .notification-item>a{
    grid-column:2;
    grid-row:1;
    width:100%;
    padding-right:0;
  }
  .notification-item>a>div{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
  }
  .notification-item>a b{
    font-size:10px;
  }
  .notification-item>a p{
    font-size:9px;
  }
  .notification-item>a small{
    font-size:7px;
  }
  .smart-actions{
    grid-column:2;
    grid-row:2;
    width:100%;
    margin:0;
    display:flex;
    gap:6px;
  }
  .smart-actions form{
    flex:0 0 auto;
  }
  .smart-action{
    min-height:32px;
    padding:8px 11px;
    font-size:8px;
    border-radius:9px;
  }
  .notification-item>form{
    grid-column:1;
    grid-row:2;
    align-self:center;
    margin:0;
  }
  .notification-item>form>button{
    width:32px;
    height:32px;
  }
  .notification-section{
    padding-left:0;
    border-left:0;
  }
  .notification-section .section-head{
    padding-left:2px;
    border-left:3px solid transparent;
  }
  .bucket-now .section-head{border-left-color:#ef4444}
  .bucket-today .section-head{border-left-color:#f59e0b}
  .bucket-later .section-head{border-left-color:#3b82f6}
}


/* =========================================================
   v3.5.2 — Smart Actions button redesign
   Dedicated notification layout. These selectors intentionally
   override the earlier v3.5 / v3.5.1 Smart Actions rules.
   ========================================================= */

.smart-notification-summary > div strong{
  display:block;
  margin-top:2px;
  font-size:9px;
  color:#0f172a;
  font-weight:900;
}

.notification-section-head{
  border-left:3px solid transparent;
  padding-left:10px;
  margin-bottom:9px;
}

.bucket-now .notification-section-head{border-left-color:#ef4444}
.bucket-today .notification-section-head{border-left-color:#f59e0b}
.bucket-later .notification-section-head{border-left-color:#3b82f6}

.notification-section-head h2{
  margin:0;
}

.notification-section-head small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
}

.notification-item.smart-notification-card{
  display:block;
  padding:14px;
  border-radius:16px;
  overflow:hidden;
}

.smart-notification-main{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:12px;
  align-items:start;
}

.smart-notification-main .notification-icon{
  width:44px;
  height:44px;
  margin:0;
  border-radius:13px;
  display:grid;
  place-items:center;
  flex:none;
}

.smart-notification-copy{
  min-width:0;
  display:block;
  text-decoration:none;
}

.smart-notification-title{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-width:0;
}

.smart-notification-title b{
  color:#0f172a;
  font-size:10px;
  line-height:1.25;
}

.smart-notification-title i{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 6px;
  border-radius:6px;
  font-style:normal;
  font-size:6px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  color:#2563eb;
  background:#eaf1ff;
}

.smart-notification-copy p{
  margin:4px 0 0;
  color:#475569;
  font-size:9px;
}

.smart-notification-copy small{
  display:block;
  margin-top:7px;
  color:#94a3b8;
  font-size:7px;
}

.smart-action-bar{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  width:100%;
  margin:13px 0 0;
  padding:11px 0 0;
  border-top:1px solid #e8edf4;
}

.smart-action-bar form{
  display:block;
  width:100%;
  min-width:0;
  margin:0;
}

.smart-action-btn,
.smart-action-bar button.smart-action-btn,
.smart-action-bar a.smart-action-btn{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:38px;
  margin:0;
  padding:8px 9px;
  border:1px solid #dce4ef;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 2px 5px rgba(15,23,42,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-family:inherit;
  font-size:8px;
  line-height:1;
  font-weight:900;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}

.smart-action-btn .smart-action-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px;
  line-height:1;
  font-weight:900;
}

.smart-action-btn.complete .smart-action-icon{
  color:#16a34a;
  border:1.5px solid #16a34a;
}

.smart-action-btn.tomorrow .smart-action-icon{
  color:#2563eb;
  border-radius:4px;
  font-size:11px;
}

.smart-action-btn.open .smart-action-icon{
  color:#475569;
  font-size:20px;
  font-weight:500;
}

.smart-action-btn.reminder .smart-action-icon{
  color:#d97706;
  border:1.5px solid #d97706;
}

.smart-action-btn:active{
  transform:translateY(1px);
  background:#f8fafc;
}

/* Two-action cards should use available width evenly */
.smart-action-bar:has(> form:nth-child(2):last-child),
.smart-action-bar:has(> a:nth-child(2):last-child){
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* One-action cards */
.smart-action-bar > :only-child{
  grid-column:1 / -1;
}

@media(max-width:760px){
  .notification-item.smart-notification-card{
    display:block !important;
    padding:13px 12px !important;
  }

  .smart-notification-main{
    grid-template-columns:42px minmax(0,1fr);
    gap:11px;
  }

  .smart-notification-main .notification-icon{
    width:42px;
    height:42px;
  }

  .smart-action-bar{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
    width:100% !important;
    margin:12px 0 0 !important;
    padding:10px 0 0 !important;
  }

  .smart-action-bar form{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .smart-action-btn,
  .smart-action-bar button.smart-action-btn,
  .smart-action-bar a.smart-action-btn{
    width:100% !important;
    min-width:0 !important;
    min-height:40px !important;
    padding:7px 5px !important;
    border-radius:9px !important;
    font-size:7px !important;
    white-space:nowrap !important;
  }

  .smart-action-btn .smart-action-icon{
    width:17px;
    height:17px;
    flex-basis:17px;
    font-size:11px;
  }

  .smart-action-bar:has(> form:nth-child(2):last-child),
  .smart-action-bar:has(> a:nth-child(2):last-child){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:380px){
  .smart-action-btn,
  .smart-action-bar button.smart-action-btn,
  .smart-action-bar a.smart-action-btn{
    gap:4px !important;
    font-size:6.5px !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }
}

/* v3.6 — Smart Customer Follow-up */
.followup-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.followup-head h2{margin:3px 0}.followup-head p{margin:0;color:#64748b;font-size:9px}.followup-total{min-width:34px;height:34px;border-radius:10px;background:#eaf1ff;color:#2563eb;display:grid;place-items:center;font-size:12px;font-weight:900}.followup-list{display:grid;gap:8px}.followup-card{background:#fff;border:1px solid #e3e9f1;border-left:3px solid #3b82f6;border-radius:14px;padding:11px}.followup-card.level-warning{border-left-color:#f59e0b}.followup-card.level-danger{border-left-color:#ef4444}.followup-main{display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;text-decoration:none;color:inherit}.followup-avatar{width:36px;height:36px;border-radius:10px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-size:11px;font-weight:900}.followup-title{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.followup-title b{font-size:9px}.followup-title i{font-size:6px;font-style:normal;text-transform:uppercase;background:#f1f5f9;padding:3px 5px;border-radius:5px;color:#64748b}.followup-main p{font-size:8px;color:#475569;margin:3px 0}.followup-main small{font-size:7px;color:#94a3b8}.followup-actions{display:flex;gap:6px;margin:9px 0 0 45px;padding-top:8px;border-top:1px solid #edf1f5}.followup-actions a{font-size:7px;font-weight:900;text-decoration:none;padding:7px 9px;border:1px solid #dce4ef;border-radius:8px;color:#334155;background:#fff}.command-followup-list{display:grid;gap:5px}.command-followup-row{display:grid;grid-template-columns:30px minmax(0,1fr) 14px;gap:8px;align-items:center;padding:7px;border-radius:9px;text-decoration:none;color:inherit;background:#f8fafc}.command-followup-row>span{width:30px;height:30px;border-radius:8px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-size:8px;font-weight:900}.command-followup-row b,.command-followup-row small{display:block}.command-followup-row b{font-size:8px}.command-followup-row small{font-size:6.5px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-followup-row i{font-style:normal;color:#94a3b8}.customer-followup-insight{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;border:1px solid #e5eaf1;border-left:3px solid #3b82f6;border-radius:12px;padding:10px;margin-bottom:10px}.customer-followup-insight.level-warning{border-left-color:#f59e0b}.customer-followup-insight.level-danger{border-left-color:#ef4444}.customer-followup-insight small,.customer-followup-insight b{display:block}.customer-followup-insight small{font-size:6px;letter-spacing:.12em;color:#64748b;font-weight:900}.customer-followup-insight b{font-size:9px;margin-top:2px}.customer-followup-insight p{font-size:7px;color:#64748b;margin:3px 0 0}.customer-followup-insight a{font-size:7px;font-weight:900;text-decoration:none;white-space:nowrap;padding:7px 9px;border-radius:8px;background:#0f172a;color:#fff}
@media(max-width:760px){.followup-head p{font-size:8px}.followup-actions{margin-left:45px}.customer-followup-insight{align-items:flex-start;flex-direction:column}.customer-followup-insight a{width:100%;text-align:center}.customer-followup-widget{margin-bottom:8px}}
