:root{
  --desk-orange:#ca4d28;
  --desk-orange-dark:#b8441f;
  --desk-green:#51ad3f;
  --desk-green-dark:#7ba434;
  --desk-sidebar:#534b45;
  --desk-sidebar-border:#6a635d;
  --desk-page:#efefef;
  --desk-card:#f8f8f8;
  --desk-text:#5b5b5b;
  --desk-border:#dddddd;
}
*{box-sizing:border-box}
html,body{height:100%}
body.deskero-body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--desk-page);color:var(--desk-text);font-size:12px;line-height:1.35}
a{text-decoration:none}
.top-header{height:50px;background:var(--desk-orange);display:flex;align-items:center;color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.15)}
.brand-box{width:200px;height:50px;display:flex;align-items:center;padding:0 20px;font-size:22px;font-weight:700;background:var(--desk-orange);border-right:1px solid rgba(255,255,255,.2)}
.main-tabs{display:flex;align-items:stretch;flex:1}
.main-tab{color:#fff;padding:0 22px;display:flex;align-items:center;border-left:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(255,255,255,.08);font-size:13px}
.main-tab.active{background:#f7f3ef;color:var(--desk-orange);font-weight:700}
.top-actions{display:flex;align-items:center;gap:14px;padding:0 18px}
.icon-btn{color:#4c1e14;position:relative;font-size:21px}
.bubble{position:absolute;top:-6px;right:-7px;background:#f07a54;color:#fff;border-radius:50%;min-width:18px;height:18px;font-size:11px;display:flex;align-items:center;justify-content:center}
.user-chip{display:flex;align-items:center;gap:10px;color:#fff}
.avatar-circle{width:36px;height:36px;border-radius:50%;background:#efefef;color:#9b8f86;display:flex;align-items:center;justify-content:center;font-weight:700}
.avatar-circle.small{width:38px;height:38px}
.user-name{font-size:14px;font-weight:700;line-height:1.1}.user-role{font-size:11px;opacity:.85}
.logout-link{background:none;border:none;color:#f4cfb9;font-size:16px;padding:0 4px}
.promo-bar{height:62px;background:var(--desk-green);color:#fff;display:flex;align-items:center;justify-content:center;gap:14px;font-size:18px}
.promo-btn{background:transparent;border:1px solid rgba(255,255,255,.8);color:#fff;padding:8px 22px}
.app-shell{display:flex;min-height:calc(100vh - 116px)}
.left-sidebar{width:220px;background:var(--desk-sidebar);color:#fff;padding:14px 0}
.sidebar-group{padding:0 20px 12px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:10px}
.sidebar-title{padding:10px 4px 6px;color:#a39c96;font-size:15px}
.sidebar-link{display:flex;align-items:center;justify-content:space-between;color:#fff;padding:12px 4px;font-size:17px;border-bottom:1px solid rgba(255,255,255,.06)}
.sidebar-link.active{background:#e1a638;margin:0 -20px;padding-left:24px;padding-right:24px}
.badge-round{display:inline-flex;align-items:center;justify-content:center;background:#de5d31;border-radius:50%;width:24px;height:24px;font-size:13px}
.content-area{flex:1;padding:34px 30px 80px;background:#efefef}
.page-toolbar,.header-strip{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.header-chip,.desk-btn,.desk-btn-outline{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 16px;border:1px solid var(--desk-border);background:#f9f9f9;color:#666;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.desk-btn-primary{background:var(--desk-green-dark);border:1px solid #94b65d;color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.18)}
.desk-btn-blue{background:#4d84d8;border-color:#3e75c8;color:#fff}
.desk-btn-orange{background:#dc9c30;border-color:#d39123;color:#fff}
.desk-panel{background:#f7f7f7;border:1px solid #ddd;box-shadow:0 1px 2px rgba(0,0,0,.08);padding:18px 20px;margin-bottom:22px}
.desk-title{font-size:22px;color:#5e5e5e;margin-bottom:16px}.desk-page-title{font-size:26px;color:#5d5d5d;margin:10px 0 28px;font-weight:600}
.table.desk-table{background:#fff;border:1px solid #ddd}.desk-table th{background:#e8e8e8;color:#777;font-weight:600}.desk-table td,.desk-table th{padding:10px 12px;border-color:#ddd}
.form-control,.form-select{border-radius:0;border:1px solid #d7d7d7;min-height:32px;background:#fff;box-shadow:inset 0 1px 1px rgba(0,0,0,.04)}
.form-control:focus,.form-select:focus{border-color:#b5cfff;box-shadow:0 0 0 3px rgba(122,164,255,.18)}
label.form-label{font-size:13px;color:#6c6c6c;margin-bottom:6px}
.section-card{background:#fafafa;border:1px solid #dfdfdf;box-shadow:0 1px 2px rgba(0,0,0,.08);padding:24px 28px;margin-bottom:18px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.metric-box{background:#fff;border:1px solid #ddd;padding:18px}.metric-box .label{color:#999;font-size:13px}.metric-box .value{font-size:38px;color:#6b6b6b;font-weight:700}
.client-head{display:grid;grid-template-columns:180px 1fr;gap:26px;align-items:flex-start}.big-avatar{width:106px;height:106px;border-radius:50%;background:#ccc;color:#fff;font-size:52px;display:flex;align-items:center;justify-content:center}.subtle-line{border-top:1px solid #e2e2e2;margin:20px 0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:30px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.help-tab{position:fixed;right:0;top:270px;background:var(--desk-orange);color:#fff;padding:16px 10px;writing-mode:vertical-rl;text-orientation:mixed;font-weight:700;z-index:20}
.presence-widget{position:fixed;right:14px;bottom:12px;background:#7ca43a;color:#fff;height:54px;padding:0 16px;border-radius:2px;display:flex;align-items:center;gap:12px;min-width:350px;box-shadow:0 2px 4px rgba(0,0,0,.22);font-size:18px;z-index:20}
.notif-panel{width:550px;border-radius:0;border:1px solid #ccc;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.notif-head{font-size:24px;color:var(--desk-orange);padding:20px 24px 8px}.notif-tags{padding:0 24px 10px;display:flex;gap:22px;color:#666;font-size:14px}.notif-empty{padding:34px 24px 40px;text-align:center;color:#8a8a8a;font-size:22px}
.no-caret::after{display:none}
.dropdown:hover .show-on-hover{display:block;margin-top:0}
.desk-alert{border-radius:0;border:none;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.search-row{display:flex;gap:10px;align-items:center;margin-bottom:16px}.search-input-wrap{background:#ddd;padding:14px 18px}.filter-strip{background:#ddd;padding:8px 18px;margin-bottom:14px;border:1px solid #d2d2d2}
.kpi-inline{display:flex;gap:80px;font-size:16px}.kpi-inline .kpi-number{display:block;font-size:24px;font-weight:700;color:#7e4b45}
.status-pill{display:inline-flex;align-items:center;border:1px solid #e6b08d;color:#c35a1d;background:#fff8f3;border-radius:16px;padding:5px 12px;font-size:12px}
.muted{color:#a0a0a0}.mini-stat{font-size:34px;font-weight:700;color:#666}
.table tr a{color:#55a5e6;font-weight:700}.card, .desk-card{background:#f7f7f7;border:1px solid #ddd;border-radius:0;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.card .card-body{padding:18px 20px}
.btn{border-radius:0}.btn-primary{background:#7fa53b;border-color:#7fa53b}.btn-outline-primary{color:#c85b2a;border-color:#c85b2a}
.simple-layout .row>[class^='col-']{margin-bottom:18px}
.table>:not(caption)>*>*{background:transparent}
@media (max-width:1200px){.left-sidebar{width:180px}.main-tab{padding:0 18px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.presence-widget{min-width:240px}}


body.deskero-body{font-family:Arial,Helvetica,sans-serif;background:#efefef;color:#595959}
.top-header{position:sticky;top:0;z-index:30;height:58px;background:#c7532d}
.brand-box{width:152px;justify-content:flex-start;font-size:22px;letter-spacing:-.4px;padding-left:26px}
.main-tabs{gap:0}
.main-tab{min-width:96px;justify-content:center;padding:0 22px;font-size:15px;font-weight:500;line-height:1.2;text-align:center;background:#c7532d}
.main-tab.active{background:#f1efeb;color:#c7532d;box-shadow:inset 0 -1px 0 #d2cfc8}
.top-actions{gap:12px;padding-right:12px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:#4f271d}
.bubble{background:#f07a54;top:-2px;right:-4px}
.user-chip-link{display:flex;align-items:center;gap:10px;color:#fff}
.user-chip-link:hover{color:#fff}.user-caret{color:#e8c5b6}
.user-menu{border-radius:0;border:1px solid #cfcfcf;min-width:180px}
.promo-bar{height:67px;background:#61b247;font-size:20px}
.promo-btn{height:46px;padding:0 34px;font-size:17px}
.left-sidebar{width:239px;background:#544d47;padding-top:16px}
.sidebar-group{padding:0 24px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-link{min-height:54px;padding:0 4px;font-size:17px;align-items:center;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-link.active{min-height:55px;background:#d8a544;margin:0 -24px;padding-left:28px;padding-right:28px}
.sidebar-title{padding-top:14px;font-size:16px;color:#9b938d}
.content-area{padding:36px 30px 94px;background:#efefef}
.page-toolbar{margin-bottom:26px}.header-chip{height:38px;padding:0 16px;background:#f7f7f7;font-size:16px}.desk-btn,.desk-btn-outline{height:36px;border-radius:0}
.desk-btn-primary{background:#84a741;border-color:#89ac4a;color:#fff;padding:0 18px}
.section-card{padding:18px 20px;background:#f7f7f7}
.metric-grid{grid-template-columns:repeat(4,minmax(210px,1fr))}
.metric-box{padding:20px 18px;background:#f7f7f7}.metric-box .value{font-size:29px}
.desk-page-title{font-size:33px;font-weight:600;color:#575757}
.form-control,.form-select{min-height:40px;border-color:#d7d7d7;font-size:14px;padding:8px 14px}
.desk-textarea{min-height:120px}
.search-input-wrap{flex:1;background:#dcdcdc;padding:12px 14px;border:1px solid #d2d2d2}
.filter-strip{padding:12px 18px;background:#dcdcdc}
.desk-table th{background:#ececec;font-size:13px;color:#6e6e6e}.desk-table td{background:#fafafa;font-size:14px}
.status-pill{border-radius:18px;border-color:#e7a886;color:#d26330;padding:5px 14px;background:#fff}
.help-tab{top:292px;padding:18px 10px;font-size:14px;background:#d05a2e}
.presence-widget{height:62px;min-width:380px;background:#86aa46}
.form-screen .row.g-4{--bs-gutter-y:1.65rem}
.card,.desk-card,.section-card,.metric-box{box-shadow:0 1px 2px rgba(0,0,0,.08)}
.table td a{color:#57a9ea}
@media (max-width:1400px){.main-tab{padding:0 16px;min-width:80px}.left-sidebar{width:210px}}

/* STEP 18 NAVBAR LAYOUT FIX */
body.crm-body-darknav{margin:0;background:#ececec;color:#595959;font-family:Arial,Helvetica,sans-serif;font-size:14px;overflow-x:hidden}
.crm-topbar{min-height:86px;background:linear-gradient(180deg,#424853 0%,#2b3038 100%);display:flex;align-items:flex-start;box-shadow:0 2px 12px rgba(0,0,0,.18);position:sticky;top:0;z-index:50}
.crm-brand-block{flex:0 0 172px;min-height:86px;display:flex;align-items:center;justify-content:center;padding:0 16px;background:linear-gradient(180deg,#434955 0%,#303641 100%);border-right:1px solid rgba(255,255,255,.06)}
.crm-brand-name-solo{font-size:22px;font-weight:700;color:#fff;letter-spacing:-.4px;line-height:1}
.crm-top-center{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;padding:6px 12px 0 12px;gap:8px}
.crm-global-search{display:flex;justify-content:flex-start}
.crm-global-search input{width:100%;height:50px;border-radius:25px;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,#171b22 0%,#0f1218 100%);box-shadow:inset 0 2px 12px rgba(0,0,0,.45);padding:0 22px;color:#fff;font-size:15px;outline:none}
.crm-global-search input::placeholder{color:#9aa3af}
.crm-main-nav{display:flex;flex-wrap:nowrap;align-items:stretch;min-width:0;border-top:1px solid rgba(255,255,255,.05);border-left:1px solid rgba(255,255,255,.03);overflow:hidden}
.crm-nav-link{flex:1 1 0;min-width:104px;min-height:62px;background:linear-gradient(180deg,#3b414b 0%,#2d3139 100%);color:#f1f3f6;display:flex;align-items:center;justify-content:center;gap:8px;border-right:1px solid rgba(255,255,255,.05);border-bottom:3px solid transparent;font-size:12px;font-weight:700;text-align:center;padding:0 10px;line-height:1.15}
.crm-nav-link i{font-size:13px;color:#efc35a}
.crm-nav-link.active{background:linear-gradient(180deg,#2b3038 0%,#22262d 100%);border-bottom-color:#efc35a;color:#fff}
.crm-nav-link:hover{color:#fff;background:linear-gradient(180deg,#464c56 0%,#353a44 100%)}
.crm-user-side{flex:0 0 360px;min-height:86px;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:0 18px;border-left:1px solid rgba(255,255,255,.05)}
.crm-top-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);color:#f0c764;font-size:18px}
.crm-user-link{display:flex;align-items:center;gap:12px;color:#fff}.crm-user-link:hover{color:#fff}
.crm-user-avatar{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ececec;color:#727b87;font-weight:700;font-size:20px}
.crm-user-name{font-size:15px;font-weight:700;line-height:1.1;color:#fff}.crm-user-role{font-size:12px;line-height:1.1;color:#c9d1dc;margin-top:3px}
.crm-user-menu{border-radius:8px;border:1px solid #d7d7d7;min-width:190px;box-shadow:0 10px 26px rgba(0,0,0,.14)}
.crm-shell{display:flex;min-height:calc(100vh - 86px)}
.crm-sidebar{width:251px;flex:0 0 251px;background:#544d47;color:#fff;padding-top:16px}
.crm-content-area{flex:1;padding:22px 30px 60px;background:#efefef;min-width:0}
.crm-content-full{padding-left:30px}
.crm-content-area h1:first-child,.crm-content-area .desk-page-title:first-child{margin-top:0}
.sidebar-group{padding:0 24px 12px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:10px}
.sidebar-link{display:flex;align-items:center;justify-content:space-between;color:#fff;padding:16px 4px;font-size:17px;border-bottom:1px solid rgba(255,255,255,.06)}
.sidebar-link.active{background:#d8a544;margin:0 -24px;padding-left:28px;padding-right:28px}
.sidebar-title{padding:14px 4px 6px;color:#9b938d;font-size:16px}
.promo-bar,.help-tab,.presence-widget,.top-header,.left-sidebar,.content-area,.crm-brand-logo,.crm-brand-sub,.crm-brand-texts{display:none !important}
@media (max-width:1600px){.crm-user-side{flex-basis:320px}.crm-nav-link{min-width:96px;padding:0 8px}}
@media (max-width:1360px){.crm-topbar{flex-wrap:wrap}.crm-brand-block{flex:0 0 140px;min-height:70px}.crm-user-side{flex:0 0 260px;min-height:70px}.crm-top-center{order:3;flex:1 0 100%;padding:8px 12px 10px}.crm-main-nav{overflow-x:auto}.crm-nav-link{flex:0 0 120px}}


/* STEP 19 REFINEMENT */
:root{--crm-dark-1:#434953;--crm-dark-2:#2b3038;--crm-dark-3:#3b4048;--crm-gold:#e2b548;--crm-page:#ececec;--crm-panel:#f7f7f7;--crm-line:#d8d8d8}
body.crm-body-darknav{background:var(--crm-page);overflow-x:hidden}
.crm-topbar{height:134px;min-height:134px;display:grid;grid-template-columns:182px minmax(0,1fr) 340px;grid-template-rows:66px 68px;align-items:stretch;position:sticky;top:0;z-index:60;background:linear-gradient(180deg,var(--crm-dark-1) 0%,var(--crm-dark-2) 100%)}
.crm-brand-block{grid-row:1 / span 2;grid-column:1;display:flex;align-items:center;justify-content:center;padding:0 18px;background:linear-gradient(180deg,#434955 0%,#343944 100%);border-right:1px solid rgba(255,255,255,.05)}
.crm-brand-logo-slot{width:112px;height:44px;border:2px dashed rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.03)}
.crm-top-center{grid-column:2;grid-row:1 / span 2;display:grid;grid-template-rows:66px 68px;padding:0 14px 0 14px;gap:0}
.crm-global-search{display:flex;align-items:center;padding:8px 0 6px}
.crm-global-search input{height:50px;border-radius:26px;padding:0 26px;font-size:16px}
.crm-main-nav{display:grid;grid-template-columns:repeat(9,minmax(96px,1fr));height:68px;border-left:1px solid rgba(255,255,255,.04);border-top:1px solid rgba(255,255,255,.05)}
.crm-nav-link{min-width:0;height:68px;padding:0 10px;font-size:13px;gap:8px;line-height:1.15;background:linear-gradient(180deg,#3a3f48 0%,#2d3139 100%)}
.crm-nav-link span{display:block}
.crm-nav-link i{font-size:14px}
.crm-user-side{grid-column:3;grid-row:1 / span 2;min-height:auto;padding:0 18px;display:flex;align-items:center;justify-content:flex-end;gap:16px;background:linear-gradient(180deg,#434955 0%,#343944 100%)}
.crm-user-link{gap:14px}
.crm-user-avatar{width:54px;height:54px;font-size:22px}
.crm-user-name{font-size:16px}.crm-user-role{font-size:12px}
.crm-shell{min-height:calc(100vh - 134px)}
.crm-content-area{padding:28px 30px 60px;background:var(--crm-page)}
.crm-content-ticket{padding-left:32px}
.crm-sidebar-dark{background:linear-gradient(180deg,#434955 0%,#343944 100%)}
.crm-sidebar{padding-top:10px}
.sidebar-group{padding:0 24px 14px;margin-bottom:14px;border-bottom:1px solid rgba(255,255,255,.06)}
.sidebar-link{min-height:56px;padding:0 4px;border-bottom:1px solid rgba(255,255,255,.05);font-size:18px}
.sidebar-link.active{background:#d6ab4a}
.sidebar-title{color:#a79f97;font-size:17px;padding-top:16px}
.section-card,.desk-panel,.card,.desk-card,.metric-box{background:#f7f7f7;border:1px solid var(--crm-line);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.desk-page-title{font-size:47px;color:#565656;margin:4px 0 24px;font-weight:600}
.header-chip,.desk-btn,.desk-btn-outline{height:44px;padding:0 18px;font-size:15px;border:1px solid #d7d7d7;background:#fff;color:#666}
.desk-btn-primary{background:#88a947;border-color:#88a947;color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.14)}
.form-control,.form-select{min-height:42px;border-radius:0;background:#fff}
textarea.form-control{min-height:116px}
.search-input-wrap,.filter-strip{background:#dcdcdc;border:1px solid #d3d3d3}
.filter-strip{padding:14px 20px}
.ticket-list-wrap{padding:0;border:none;background:transparent;box-shadow:none}
.ticket-toolbar-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.ticket-filter-box{background:#dcdcdc;border:1px solid #d4d4d4;padding:18px 20px;margin-bottom:18px}
.ticket-filter-inner{display:grid;grid-template-columns:200px 1fr;gap:12px;align-items:center}
.ticket-filter-tags{display:flex;gap:10px;flex-wrap:wrap}
.ticket-tag{background:#cfcfcf;border-radius:18px;padding:4px 14px;color:#fff;font-size:14px;font-weight:700}
.ticket-list-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #d9d9d9;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.ticket-list-table thead th{height:50px;background:#e9e9e9;color:#6f6f6f;font-size:15px;font-weight:700;border-bottom:1px solid #d9d9d9;padding:0 12px;white-space:nowrap}
.ticket-list-table tbody td{height:48px;background:#fff;border-top:1px solid #e3e3e3;padding:0 12px;font-size:15px;vertical-align:middle}
.ticket-list-table tbody tr:first-child td{border-top:none}
.ticket-list-table tbody tr{position:static}
.ticket-list-table tbody tr td:first-child{border-left:3px solid #dd6431}
.ticket-id-link{color:#51a7f0;font-weight:700;font-size:18px}
.ticket-subject{font-size:20px;font-weight:700;color:#4f4f4f}
.ticket-client-link{color:#55a8eb;font-weight:700;font-size:18px}
.ticket-date{display:flex;align-items:center;gap:8px;color:#d49728;font-weight:700}
.ticket-type,.ticket-assigned{font-size:18px;font-weight:700;color:#5c5c5c}
.ticket-state-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid #e7aa89;color:#d26330;background:#fff;border-radius:18px;height:34px;padding:0 14px;font-size:14px;font-weight:700}
.ticket-reply-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 18px;border-radius:18px;border:2px solid #90b44c;background:#fff;color:#81a537;font-size:14px;font-weight:700;min-width:120px}
.ticket-ghost-icon{color:#8d8d8d;font-size:24px}
@media (max-width:1500px){.crm-topbar{grid-template-columns:150px minmax(0,1fr) 290px}.crm-main-nav{grid-template-columns:repeat(9,minmax(86px,1fr))}.crm-nav-link{font-size:12px;padding:0 8px}}


/* STEP 20 CLIENT GRID */
.client-filter-box{padding:14px 20px}
.client-toolbar-grid{display:grid;grid-template-columns:1fr 90px;gap:12px;align-items:center}
.client-toolbar-search .form-control{height:46px;background:#fff}
.client-list-table thead th{height:44px;font-size:14px;background:#e6e6e6}
.client-list-table tbody td{height:58px;font-size:14px;background:#fff}
.client-cell-main{display:flex;align-items:center;gap:12px}
.client-avatar-mini{width:38px;height:38px;border-radius:50%;background:#d0d0d0;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex:0 0 38px}
.client-list-table tbody tr:hover td{background:#fafafa}


/* STEP 21 table refinements */
.help-tab{display:none !important}
.grid-table-wrap{background:#fff;border:1px solid #d9d9d9;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.grid-table,.excel-table{width:100%;border-collapse:collapse;background:#fff}
.grid-table thead th,.excel-table thead th{height:48px;background:#e7e7e7;color:#6f6f6f;font-size:14px;font-weight:700;border-bottom:1px solid #dadada;border-right:1px solid #dcdcdc;padding:0 12px;white-space:nowrap;vertical-align:middle}
.grid-table thead th:last-child,.excel-table thead th:last-child{border-right:none}
.grid-table tbody td,.excel-table tbody td{height:50px;background:#fff;border-top:1px solid #e5e5e5;border-right:1px solid #ededed;padding:0 12px;font-size:14px;vertical-align:middle}
.grid-table tbody td:last-child,.excel-table tbody td:last-child{border-right:none}
.grid-table tbody tr:hover td,.excel-table tbody tr:hover td{background:#fafafa}
.table-sort-link{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#6f6f6f;text-decoration:none;font-weight:700;width:100%}
.table-sort-link.active{color:#545454}.sort-indicator{font-size:12px;color:#9b9b9b;line-height:1}
.muted-line{font-size:12px;color:#888;line-height:1.2;margin-top:2px}
.grid-open-link{color:#61a5ea;font-weight:700;text-decoration:none}
.grid-status{color:#555;font-weight:700}
.client-excel-table td:nth-child(1),.client-excel-table th:nth-child(1){text-align:center}
.client-excel-table td:nth-child(8),.client-excel-table td:nth-child(9),.client-excel-table th:nth-child(8),.client-excel-table th:nth-child(9){text-align:center}
.client-cell-main{display:flex;align-items:center;gap:12px}.client-avatar-mini{width:38px;height:38px;border-radius:50%;background:#cfcfcf;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex:0 0 38px}
.ticket-filter-tags-form{display:grid;grid-template-columns:minmax(0,1fr) 220px 100px;gap:12px;align-items:center}
.ticket-inline-search{height:48px}.ticket-inline-status{height:48px}
.ticket-list-table thead th{font-size:14px;height:50px;padding:0 10px}
.ticket-list-table tbody td{font-size:14px;height:48px;padding:0 10px;border-right:1px solid #ebebeb}
.ticket-list-table tbody td:last-child{border-right:none}
.ticket-row-icon{color:#d9b347;font-size:16px}
.ticket-id-link{font-size:16px}.ticket-subject,.ticket-client-link,.ticket-type,.ticket-assigned{font-size:14px;font-weight:700}.ticket-client-link{color:#4ea4ea;text-decoration:none}
.ticket-date{font-size:13px}.ticket-state-pill{height:32px;padding:0 12px;font-size:13px}.ticket-reply-btn{height:34px;padding:0 16px;font-size:13px;min-width:110px;text-decoration:none}
.ticket-ghost-icon{font-size:20px}

.settings-legacy-layout{display:grid;grid-template-columns:240px 1fr;gap:0;margin:-28px -30px -50px -30px;min-height:calc(100vh - 68px)}
.settings-legacy-sidebar{background:#544d47;color:#fff;padding:22px 26px 28px}
.settings-legacy-group{border-bottom:1px solid rgba(255,255,255,.12);padding:12px 0 14px}
.settings-legacy-title{color:#9f978f;font-size:14px;margin:0 0 8px}
.settings-legacy-link{display:flex;justify-content:space-between;align-items:center;color:#fff;text-decoration:none;padding:8px 0;font-size:16px}
.settings-legacy-link.active{font-weight:700}
.settings-legacy-link.disabled-link{opacity:.8}
.settings-legacy-main{padding:26px 28px 40px;background:#efefef}
.settings-page-title{font-size:26px;color:#59606d;margin:2px 0 18px}
.settings-card-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px}
.settings-big-card{position:relative;background:#fff;border:1px solid #e3e3e3;min-height:236px;text-decoration:none;color:#626b76;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.settings-big-card.is-disabled{cursor:default}
.settings-big-icon{font-size:92px;color:#c7c7c7;line-height:1}
.settings-ribbon{position:absolute;right:-7px;top:20px;background:#dd6b39;color:#fff;padding:5px 12px;font-size:11px;font-weight:700;transform:rotate(45deg)}
.settings-panel{background:#fff;border:1px solid #e0e0e0;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.settings-panel-title{padding:14px 16px;border-bottom:1px solid #ececec;font-size:18px;color:#59606d;font-weight:600}
.settings-panel-body{padding:16px}
.settings-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.settings-form-stack{display:flex;flex-direction:column;gap:12px}
.settings-line{display:flex;gap:10px;align-items:center}.settings-line .form-control{flex:1}
.settings-line-color .form-control-color{width:62px;flex:0 0 62px;padding:4px}
.settings-table th{background:#f3f3f3;color:#666;font-size:13px}.settings-table td,.settings-table th{vertical-align:middle}
.settings-help{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.settings-help code{display:inline-block;background:#f4f4f4;padding:6px 10px;border-radius:16px;color:#555}
.tiny-check{display:flex;align-items:center;gap:8px;color:#555;font-size:14px}
.field{display:flex;flex-direction:column;gap:6px}
@media (max-width:1200px){.settings-card-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.settings-grid-2{grid-template-columns:1fr}.settings-legacy-layout{grid-template-columns:1fr}.settings-legacy-sidebar{display:none}}


/* STEP 26 compact scale + settings fidelity */
html{font-size:13px}
body.crm-body-darknav{font-size:13px;line-height:1.35}
.crm-topbar{height:112px;grid-template-columns:160px minmax(0,1fr) 280px}
.crm-brand-block{grid-row:1 / span 2;align-items:flex-start;padding-top:14px}
.crm-brand-logo-slot{width:96px;height:42px;border-radius:10px}
.crm-top-center{grid-template-rows:58px 54px;padding:0 12px}
.crm-global-search input{height:42px;border-radius:22px;padding:0 20px;font-size:14px}
.crm-main-nav{height:54px}
.crm-nav-link{height:54px;font-size:12px;padding:0 8px}
.crm-nav-link i{font-size:13px}
.crm-user-side{padding:0 14px;gap:12px}
.crm-user-avatar{width:44px;height:44px;font-size:18px}
.crm-user-name{font-size:13px}.crm-user-role{font-size:11px}
.crm-content-area{padding:22px 24px 40px}
.crm-shell{min-height:calc(100vh - 112px)}
.crm-sidebar{width:220px;flex:0 0 220px}
.sidebar-group{padding:0 18px 10px;margin-bottom:10px}
.sidebar-link{min-height:48px;font-size:15px}
.sidebar-title{font-size:14px;padding-top:10px}
.desk-page-title{font-size:34px;margin:2px 0 18px}
.header-chip,.desk-btn,.desk-btn-outline,.btn,.btn-sm{font-size:12px}
.form-control,.form-select{min-height:36px;font-size:13px}
textarea.form-control{min-height:96px}
.desk-panel,.settings-panel{padding:0}
.settings-legacy-layout{grid-template-columns:240px 1fr;margin:-22px -24px -40px -24px;min-height:calc(100vh - 112px)}
.settings-legacy-sidebar{background:linear-gradient(180deg,#434955 0%,#343944 100%);padding:18px 22px}
.settings-legacy-title{font-size:13px;color:#98a0ac;text-transform:uppercase;letter-spacing:.03em}
.settings-legacy-link{font-size:15px;padding:7px 0}
.settings-legacy-main{padding:22px 24px 34px;background:#efefef}
.settings-page-title{font-size:22px;margin-bottom:14px}
.settings-card-grid{grid-template-columns:repeat(4,minmax(190px,1fr));gap:12px}
.settings-big-card{min-height:206px}
.settings-big-icon{font-size:78px}
.settings-panel-title{padding:12px 14px;font-size:16px}
.settings-panel-body{padding:14px}
.settings-grid-2{gap:14px}
.settings-line input,.settings-line select,.settings-line textarea{font-size:13px}
.settings-table thead th{font-size:12px;padding:8px 10px;background:#ececec}
.settings-table td{font-size:13px;padding:8px 10px}
.grid-table thead th,.excel-table thead th,.ticket-list-table thead th{height:40px;font-size:12px;padding:0 9px}
.grid-table tbody td,.excel-table tbody td,.ticket-list-table tbody td{height:42px;font-size:13px;padding:0 9px}
.ticket-id-link{font-size:14px}.ticket-subject,.ticket-client-link,.ticket-type,.ticket-assigned{font-size:13px}
.ticket-state-pill{height:30px;font-size:12px;padding:0 10px}
.ticket-reply-btn{height:30px;font-size:12px;min-width:92px;padding:0 12px}
.ticket-filter-box{padding:12px 14px;margin-bottom:14px}
.ticket-filter-inner{gap:10px}
.ticket-toolbar-row{margin-bottom:18px}
.client-list-table thead th{height:40px;font-size:12px}
.client-list-table tbody td{height:46px;font-size:13px}
.client-avatar-mini{width:32px;height:32px;font-size:13px;flex-basis:32px}
@media (max-width: 1500px){.crm-topbar{grid-template-columns:132px minmax(0,1fr) 250px}.crm-brand-logo-slot{width:82px;height:36px}.crm-main-nav{grid-template-columns:repeat(9,minmax(78px,1fr))}.crm-nav-link{font-size:11px}.crm-sidebar{width:205px;flex-basis:205px}}

/* step27 compact scale */
.top-header{height:48px}
.brand-box{width:180px;height:48px;padding:0 18px;font-size:20px}
.main-tab{padding:0 20px;font-size:13px}
.top-actions{gap:10px;padding:0 14px}
.user-name{font-size:14px}.user-role{font-size:11px}
.content-area{padding:26px 24px 60px}
.page-title{font-size:28px}
.table th{font-size:12px;padding:9px 10px}
.table td{font-size:13px;padding:9px 10px}
.form-control,.form-select{font-size:13px;padding:.42rem .6rem}
.settings-toolbar-inline{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px 0}
.settings-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width:1200px){.settings-grid-3{grid-template-columns:1fr}}

.table-sheet th,.table-sheet td,.tickets-grid th,.tickets-grid td,.settings-grid th,.settings-grid td{font-size:12px;padding:9px 10px}
.content-wrap,.page-wrap,.desk-page-shell{zoom:.95}
.settings-page-title,h1{font-size:20px}
input,select,textarea,button{font-size:12px}

.practice-type-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.practice-type-guide-card{border:1px solid #d7dce5;border-radius:12px;padding:12px;background:#fff}.practice-type-guide-card.active{background:#f8fafc;border-color:#93c5fd}.practice-type-guide-head{display:flex;gap:8px;align-items:center}.hidden{display:none!important}


/* Settings page restored layout */
.settings-workspace.simple-settings{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:start}
.settings-sidebar.clean-white,.settings-main.clean-white,.panel.clean-white{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
.settings-sidebar{padding:16px;position:sticky;top:18px}
.settings-sidebar h2{font-size:18px;color:#334155;margin:4px 0 14px;font-weight:700}
.settings-side-link{display:block;padding:12px 14px;margin-bottom:8px;border-radius:12px;background:#f3f4f6;color:#475569;text-decoration:none;font-weight:600}
.settings-side-link.active{background:#e6eefc;color:#1d4ed8;box-shadow:inset 0 0 0 1px #c7d7fe}
.settings-main{padding:18px 18px 22px}
.settings-header-new{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.settings-header-new h1{font-size:34px;line-height:1.1;margin:2px 0 6px;color:#1f2937;font-weight:700}
.settings-header-new p{margin:0;color:#6b7280;max-width:900px}
.crm-page-kicker{text-transform:uppercase;letter-spacing:.06em;color:#2563eb;font-size:12px;font-weight:700;margin-bottom:2px}
.settings-toolbar-inline{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.crm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:10px;border:1px solid #d0d7e2;background:#fff;color:#334155;text-decoration:none;font-weight:600;cursor:pointer}
.crm-btn.crm-btn-primary{background:#2f6fe4;border-color:#2f6fe4;color:#fff}
.settings-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.panel{overflow:hidden}
.panel-title{min-height:54px;display:flex;align-items:center;padding:0 18px;font-size:20px;color:#1f2937;font-weight:700;border-bottom:1px solid #eef2f7;background:#fff}
.panel-inner{padding:16px 18px}
.settings-note{color:#6b7280;font-size:13px;margin:0 0 10px}
.settings-form-stack{display:flex;flex-direction:column;gap:10px}
.settings-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.settings-line.settings-line-wide{grid-template-columns:120px minmax(0,1fr) auto auto auto}
.settings-line.settings-line-color{grid-template-columns:minmax(0,1fr) 56px auto}
.settings-line input[type=text],.settings-line input[type=number],.settings-line input[type=date],.settings-line select,.settings-type-head input,.field select,.field input,.settings-option-row input{width:100%;height:42px;border:1px solid #d7dce3;border-radius:10px;padding:0 12px;background:#fff}
.settings-line input[type=color]{width:56px;height:42px;padding:4px;border:1px solid #d7dce3;border-radius:10px;background:#fff}
.form-actions-bar{display:flex;justify-content:flex-start;padding-top:4px}
.tiny-check{display:flex;align-items:center;gap:6px;font-size:13px;color:#64748b;white-space:nowrap}
.settings-type-block,.settings-rule-card,.settings-field-card,.settings-doc-card{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fafbfc;margin-bottom:14px}
.settings-type-block.dashed{border-style:dashed}
.settings-type-head{margin-bottom:10px}
.settings-chip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.settings-chip{display:flex;align-items:center;gap:8px;border:1px solid #dde3ec;border-radius:10px;padding:9px 12px;background:#fff;color:#475569}
.settings-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.settings-rule-card h3,.settings-field-card h3,.settings-doc-card h3{font-size:18px;margin:0 0 10px;color:#1f2937}
.settings-rule-grid .field label{display:block;font-size:13px;color:#64748b;margin-bottom:6px;font-weight:600}
.settings-rule-grid select{height:auto;min-height:160px;padding:8px 10px}
.settings-option-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:8px;align-items:center;margin-bottom:8px}
.settings-doc-grid{display:grid;grid-template-columns:160px 180px 140px minmax(0,1fr) 120px auto auto;gap:10px;align-items:center}
.settings-doc-grid select{height:42px}
@media (max-width:1200px){.settings-chip-grid,.settings-rule-grid,.settings-grid-2{grid-template-columns:1fr}}
@media (max-width:900px){.settings-workspace.simple-settings{grid-template-columns:1fr}.settings-sidebar{position:static}.settings-header-new{flex-direction:column}.settings-doc-grid,.settings-line.settings-line-wide{grid-template-columns:1fr}.settings-line,.settings-line.settings-line-color,.settings-option-row{grid-template-columns:1fr}.settings-main{padding:14px}}


/* STEP 50B restore settings graphic to gestionale style */
.settings-workspace.simple-settings{grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start;margin-top:2px}
.settings-sidebar.clean-white,.settings-main.clean-white,.panel.clean-white{background:#fff;border:1px solid #dedede;border-radius:0;box-shadow:none}
.settings-sidebar{padding:0;position:static;top:auto}
.settings-sidebar h2{font-size:24px;line-height:1.2;color:#59606d;margin:0;padding:18px 18px 10px;font-weight:500}
.settings-side-link{display:block;padding:14px 18px;border-top:1px solid #ececec;background:#fff;color:#4d5560;font-size:16px;border-radius:0;box-shadow:none}
.settings-side-link.active{background:#3568f0;color:#fff;font-weight:600}
.settings-main{padding:22px}
.crm-page-kicker{display:none}
.settings-header-new{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 0 14px;border-bottom:none;margin-bottom:0}
.settings-header-new h1{margin:0 0 6px;font-size:28px;font-weight:500;color:#59606d}
.settings-header-new p{margin:0;color:#6b7280;font-size:14px}
.settings-toolbar-inline{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 20px}
.settings-toolbar-inline .crm-btn{height:auto;padding:0;border:none;background:transparent;color:#3568f0;box-shadow:none;border-radius:0;font-size:16px;font-weight:500}
.settings-toolbar-inline .crm-btn.crm-btn-primary{background:transparent;color:#1d4ed8;text-decoration:underline}
.panel-title{min-height:auto;padding:16px 18px 10px;border-bottom:none;background:#fff;font-size:18px;font-weight:500;color:#374151}
.panel-inner{padding:0 18px 18px}
.settings-note{margin:0 0 14px;color:#6b7280}
.settings-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.settings-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.settings-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:8px}
.settings-line.settings-line-wide{grid-template-columns:120px minmax(0,1fr) auto auto auto}
.settings-line.settings-line-color{grid-template-columns:minmax(0,1fr) 64px auto}
.settings-line input[type=text],.settings-line input[type=number],.settings-line input[type=date],.settings-line select,.settings-type-head input,.field select,.field input,.field textarea,.settings-option-row input{height:40px;border:1px solid #d9d9d9;border-radius:0;background:#fff;padding:0 10px;box-shadow:none}
.settings-line input[type=color]{width:64px;height:40px;padding:3px;border:1px solid #d9d9d9;border-radius:0;background:#fff}
.field textarea{height:auto;min-height:110px;padding:10px}
.crm-btn{height:34px;padding:0 16px;border:1px solid #d6d6d6;border-radius:0;background:#fff;color:#4b5563;box-shadow:none}
.crm-btn.crm-btn-primary{background:#8cae45;border-color:#8cae45;color:#fff}
.settings-chip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.settings-chip{display:flex;align-items:center;gap:8px;border:1px solid #e2e8f0;background:#fff;padding:10px 12px;border-radius:0}
.settings-type-block{border:1px solid #e5e7eb;border-radius:0;background:#fff;padding:14px;margin-bottom:14px}
.settings-type-head input{font-weight:600}
.settings-doc-grid{display:grid;grid-template-columns:120px 1fr 1fr 120px 120px 90px 90px 100px;gap:10px;align-items:center}
.settings-doc-grid .field, .settings-doc-grid > *{margin:0}
.form-actions-bar{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.tiny-check{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#4b5563}
@media (max-width:1100px){.settings-workspace.simple-settings{grid-template-columns:1fr}.settings-grid-2,.settings-grid-3,.settings-chip-grid,.settings-doc-grid{grid-template-columns:1fr}.settings-line,.settings-line.settings-line-wide,.settings-line.settings-line-color{grid-template-columns:1fr}.settings-sidebar{margin-bottom:14px}}


/* STEP66 topbar + dashboard fidelity */
.crm-brand-logo-real{display:flex;align-items:center;gap:14px;width:100%;height:100%;padding:0 14px;background:transparent;border:none;border-radius:0}
.crm-brand-badge{width:58px;height:58px;border-radius:12px;background:#f4f5f7;color:#2f3a50;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;flex:0 0 58px}
.crm-brand-copy{display:flex;flex-direction:column;line-height:1.1}
.crm-brand-name{font-size:25px;font-weight:800;color:#fff}
.crm-brand-sub{font-size:13px;color:#cfd6df;margin-top:4px}
.crm-nav-link i,.crm-top-icon i{color:#d6b04b !important}
.crm-nav-link.active{background:#2d313a;box-shadow:inset 0 -3px 0 #d6b04b}
.crm-nav-link.active span{color:#fff}
.crm-nav-link.active i{color:#d6b04b !important}
.crm-sidebar-dark{background:linear-gradient(180deg,#4a4540 0%,#49433f 100%)}
.crm-content-area.crm-content-full{padding:22px 30px 40px}
.crm-content-area.crm-content-ticket{padding:22px 30px 40px}
.sidebar-title-main{font-size:14px;color:#c3bbb1;text-transform:none;letter-spacing:0;margin-bottom:8px}
.sidebar-link-toggle{display:flex;justify-content:space-between;align-items:center}
.sidebar-link.active{background:#f0ab00;color:#fff}
.dashboard-page-shell{max-width:1460px}
.dashboard-main-panel{padding:0 0 24px}
.dashboard-big-title{font-size:23px;font-weight:500;color:#606874;margin:0 0 18px 0}
.dashboard-white-card{background:#fff;border:1px solid #e1e1e1;box-shadow:0 1px 3px rgba(0,0,0,.06);padding:28px 30px}
.dashboard-filters-grid{display:grid;grid-template-columns:220px 220px 210px minmax(260px,1fr) 130px;gap:22px;align-items:end}
.dashboard-filters-grid .form-label{font-size:13px;color:#6f6f6f;margin-bottom:8px}
.dashboard-filter-btn{height:42px;min-width:98px}
.dashboard-kpi-row{display:grid;grid-template-columns:repeat(3,1fr);align-items:center}
.dashboard-kpi-box{padding:14px 12px;text-align:center;position:relative}
.dashboard-kpi-box:not(:last-child)::after{content:'';position:absolute;right:0;top:14px;bottom:14px;width:1px;background:#ececec}
.dashboard-kpi-value{font-size:38px;line-height:1;font-weight:400;margin-bottom:12px}
.dashboard-kpi-label{font-size:18px;color:#9b9b9b}
.dashboard-kpi-red{color:#c24d45}.dashboard-kpi-green{color:#3f7d42}.dashboard-kpi-blue{color:#3578bd}
.dashboard-chart-grid,.dashboard-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.dashboard-section-title{font-size:18px;color:#626a76;margin-bottom:18px;font-weight:500;text-align:center}
.dashboard-chart-card{min-height:460px}
.dashboard-chart-placeholder{height:360px;display:flex;flex-direction:column;justify-content:space-between}
.chart-fake-area{height:300px;border-left:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;position:relative;margin:10px 26px 0 26px;background:linear-gradient(to top, transparent 24%, rgba(0,0,0,.03) 25%, transparent 26%, transparent 49%, rgba(0,0,0,.03) 50%, transparent 51%, transparent 74%, rgba(0,0,0,.03) 75%, transparent 76%)}
.chart-fake-area-fill{position:absolute;left:18%;bottom:0;width:26%;height:62%;background:rgba(219,177,71,.65);clip-path:polygon(0 100%,42% 18%,80% 100%)}
.chart-fake-bars{height:300px;display:flex;align-items:flex-end;justify-content:space-around;border-left:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;margin:10px 26px 0 26px;padding:0 30px 0 30px;background:linear-gradient(to top, transparent 24%, rgba(0,0,0,.03) 25%, transparent 26%, transparent 49%, rgba(0,0,0,.03) 50%, transparent 51%, transparent 74%, rgba(0,0,0,.03) 75%, transparent 76%)}
.bar-group{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;width:90px}
.bar{width:48px;border-radius:0}.bar.red{background:#c14b4b}.bar.transparent{background:transparent}
.bar-label{margin-top:10px;font-size:12px;color:#666;text-align:center;white-space:nowrap}
.chart-legend{display:flex;justify-content:center;align-items:center;gap:8px;color:#777;font-size:12px}
.chart-legend-multi{gap:18px}
.legend-swatch{display:inline-block;width:14px;height:10px;border-radius:3px;margin-right:6px}.legend-yellow{background:#d9b347}.legend-red{background:#c14b4b}.legend-green{background:#5e954e}
@media (max-width: 1400px){.dashboard-filters-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}.filter-col-wide{grid-column:span 2}.filter-col-btn{grid-column:span 1}.dashboard-chart-grid,.dashboard-bottom-grid{grid-template-columns:1fr}}


/* step67 dashboard/nav refinements */
.crm-brand-badge{width:62px;height:62px;border-radius:16px;font-size:18px;letter-spacing:.02em}
.crm-brand-name{font-size:30px;letter-spacing:-.02em}
.crm-brand-sub{font-size:12px;text-transform:uppercase;letter-spacing:.10em;color:#c1c9d3}
.crm-topbar,.crm-sidebar-dark{background:linear-gradient(180deg,#454b56 0%,#2d3139 100%) !important}
.crm-nav-link{position:relative;background:transparent;border-right:1px solid rgba(255,255,255,.06);border-bottom:none;color:#ffffff;font-weight:700}
.crm-nav-link i{display:inline-flex !important;align-items:center;justify-content:center;color:#d6b04b !important;margin-right:2px;font-size:14px;min-width:16px}
.crm-nav-link.active{background:rgba(0,0,0,.18);box-shadow:none}
.crm-nav-link.active::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#d6b04b}
.crm-nav-link:hover{background:rgba(255,255,255,.03)}
.crm-top-icon{color:#d6b04b;background:rgba(255,255,255,.08)}
.crm-sidebar{background:linear-gradient(180deg,#454b56 0%,#2d3139 100%) !important;border-right:1px solid rgba(255,255,255,.05)}
.sidebar-group{padding:0 20px 0;border-bottom:1px solid rgba(255,255,255,.06);margin-bottom:0}
.sidebar-link{min-height:58px;padding:0 4px;color:#fff;font-size:16px;background:transparent}
.sidebar-link i{color:#cfcfcf;font-size:13px}
.sidebar-link.active{background:#f0ab00;color:#fff;margin:0 -20px;padding-left:24px;padding-right:24px;font-weight:700}
.sidebar-link.sidebar-link-toggle{justify-content:space-between}
.sidebar-title-main{padding:14px 4px 6px;color:#d1d5db;font-size:15px}
.dashboard-page-shell{max-width:none}
.dashboard-main-panel{padding-left:18px}
.dashboard-big-title{font-size:20px;font-weight:500;color:#575757;margin:6px 0 26px}
.dashboard-white-card{background:#fff;border:1px solid #e0e0e0;box-shadow:none;padding:26px 30px}
.dashboard-filters-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;align-items:end}
.filter-col-wide{grid-column:span 1}.filter-col-btn{display:flex;justify-content:flex-end}
.dashboard-filter-btn{height:32px;padding:0 16px;font-size:13px}
.dashboard-kpi-row{display:grid;grid-template-columns:repeat(3,1fr);gap:0;align-items:center}
.dashboard-kpi-box{padding:8px 12px;text-align:center;border-right:1px solid #ececec}
.dashboard-kpi-box:last-child{border-right:none}
.dashboard-kpi-value{font-size:24px;font-weight:500;line-height:1.1}
.dashboard-kpi-label{font-size:15px;color:#8b8b8b;margin-top:8px}
.dashboard-kpi-red{color:#b74941}.dashboard-kpi-green{color:#3b7f44}.dashboard-kpi-blue{color:#2c79c8}
.dashboard-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.dashboard-section-title{font-size:18px;color:#5c5c5c;margin-bottom:16px;text-align:center}
.chart-fake-area,.chart-fake-bars{height:320px;background:linear-gradient(180deg,#fff 0%,#fff 100%);border-top:1px solid #d7d7d7;position:relative;padding-top:18px}
.chart-fake-area::before,.chart-fake-bars::before{content:'';position:absolute;left:0;right:0;top:78px;height:1px;background:#dcdcdc;box-shadow:0 62px 0 #dcdcdc,0 124px 0 #dcdcdc,0 186px 0 #dcdcdc,0 248px 0 #dcdcdc}
.chart-fake-area-fill{position:absolute;left:22%;right:38%;bottom:0;height:62%;background:rgba(226,181,72,.65);clip-path:polygon(0 100%,38% 38%,62% 100%,100% 100%)}
.chart-fake-bars{display:flex;align-items:flex-end;justify-content:space-evenly;padding:24px 30px 44px}
.bar-group{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:8px;min-width:88px}
.bar{width:48px;background:#b74941}.bar.transparent{background:transparent;border:1px dashed transparent}.bar.red{background:#b74941}.bar-label{font-size:13px;color:#666;text-align:center}
.chart-legend{display:flex;justify-content:center;gap:14px;margin-top:12px;color:#7a7a7a}.chart-legend-multi span{display:inline-flex;align-items:center;gap:6px}.legend-swatch{display:inline-block;width:14px;height:10px;border-radius:3px}.legend-yellow{background:#d9b24e}.legend-red{background:#b74941}.legend-green{background:#4f8e42}
.dashboard-bottom-grid,.dashboard-extra-stack{display:grid;grid-template-columns:1fr;gap:24px;margin-top:24px}
.dashboard-satisfaction-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.dashboard-mini-kpi{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border:1px solid #ececec;padding:18px 20px;background:#fff}
.dashboard-mini-kpi .big{font-size:22px;font-weight:600;color:#4d4d4d}
.dashboard-mini-kpi .small{font-size:13px;color:#888;margin-top:4px}
.dashboard-placeholder-text{font-size:14px;color:#777}
@media (max-width: 1400px){.dashboard-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-col-btn{justify-content:flex-start}.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-satisfaction-grid{grid-template-columns:1fr}}


.crm-topbar{grid-template-columns:390px minmax(0,1fr) 320px;grid-template-rows:120px;}
.crm-brand-block{grid-column:1;grid-row:1;justify-content:flex-start;padding-left:32px;background:linear-gradient(180deg,#434955 0%,#343944 100%);}
.crm-brand-logo-real{width:auto;height:auto;border:none;background:transparent;display:flex;align-items:center;gap:16px}.crm-brand-badge{width:60px;height:60px;border-radius:14px;background:#f1f1f1;color:#2e3650;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px}.crm-brand-copy{display:flex;flex-direction:column}.crm-brand-name{font-size:30px;line-height:1;font-weight:800;color:#fff}.crm-brand-sub{font-size:14px;color:#d4d7df;margin-top:2px}.crm-top-center{grid-template-rows:0 84px;padding:0 12px 0 12px}.crm-main-nav{border-top:none;height:84px;align-items:stretch}.crm-nav-link{height:84px;border-bottom:3px solid transparent;color:#fff}.crm-nav-link i{color:#e1b54b;font-size:18px}.crm-nav-link.active{border-bottom-color:#d9ad41;background:linear-gradient(180deg,#343944 0%,#2a2e36 100%)}.crm-user-side{grid-row:1;align-items:center}.crm-user-name{font-size:14px}.crm-global-search{display:none!important}.crm-sidebar-dark{background:linear-gradient(180deg,#434955 0%,#343944 100%)!important}.sidebar-link{font-size:16px;line-height:1.3}.sidebar-link.active{background:#e0ac22!important;color:#fff;font-weight:700}.dashboard-page-shell{max-width:1300px}.dashboard-main-panel{padding:12px 18px}.dashboard-big-title{font-size:22px;color:#59606d;margin-bottom:18px}.dashboard-white-card{background:#fff;border:1px solid #e1e1e1;box-shadow:0 1px 3px rgba(0,0,0,.04);padding:18px 20px}.dashboard-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.dashboard-kpi-box{text-align:center;padding:18px 12px}.dashboard-kpi-value{font-size:44px;font-weight:500}.dashboard-kpi-label{font-size:14px;color:#8c8c8c}.dashboard-kpi-red{color:#c34d3b}.dashboard-kpi-green{color:#4d8a44}.dashboard-kpi-blue{color:#3f7fc0}.dashboard-kpi-orange{color:#d39c24}.dashboard-chart-grid,.dashboard-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-section-title{font-size:20px;color:#606770;margin-bottom:16px}.dashboard-placeholder-text{font-size:15px;color:#8d8d8d;padding:18px 0}.stats-list{display:flex;flex-direction:column;gap:10px}.stats-row{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding-bottom:8px}.crm-shell{min-height:calc(100vh - 120px)}.crm-content-ticket{padding-left:12px}.crm-sidebar{width:220px}
.crm-brand-badge{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:14px;background:#f2f2f2;color:#2d3340;font-weight:800;font-size:20px;flex:0 0 54px}
.crm-brand-copy{display:flex;flex-direction:column;justify-content:center}
.crm-brand-name{font-size:22px;font-weight:800;color:#fff;line-height:1}
.crm-brand-sub{display:none}
.crm-brand-logo-real{display:flex;align-items:center;gap:12px;width:auto;height:auto;border:none;background:none}
.crm-sidebar{width:208px}
.sidebar-group{padding:0 16px 6px;margin-bottom:4px}
.sidebar-link{min-height:38px;height:38px;padding:0 4px 0 2px;font-size:14px;display:flex;align-items:center;gap:10px}
.sidebar-link i{color:#d8aa38;width:16px;text-align:center;font-size:13px}
.sidebar-title{font-size:13px;padding-top:10px;padding-bottom:4px}
.sidebar-link.active{background:#e0ad19;color:#fff}
.sidebar-link.active i{color:#fff}
.crm-content-area{padding:20px 24px 40px}


/* STEP72 compact topbar + left sidebar icons */
.crm-topbar{height:68px !important;min-height:68px !important;grid-template-columns:220px minmax(0,1fr) 220px !important;grid-template-rows:68px !important;align-items:stretch !important}
.crm-brand-block{grid-row:1 !important;padding:0 14px !important}
.crm-brand-logo-real{gap:12px !important}.crm-brand-badge{width:52px !important;height:52px !important;font-size:18px !important}.crm-brand-name{font-size:22px !important}
.crm-top-center{grid-row:1 !important;grid-template-rows:68px !important;padding:0 0 0 0 !important}
.crm-main-nav{height:68px !important;grid-template-columns:repeat(9,minmax(88px,1fr)) !important}
.crm-nav-link{height:68px !important;font-size:12px !important;padding:0 8px !important;gap:6px !important}
.crm-nav-glyph{display:inline-flex !important;align-items:center;justify-content:center;color:#d9ad41 !important;font-size:16px !important;min-width:16px;line-height:1}
.crm-nav-link i{display:none !important}
.crm-user-side{grid-row:1 !important;min-height:68px !important;padding:0 12px !important}
.crm-shell{min-height:calc(100vh - 68px) !important}
.crm-sidebar{width:188px !important;flex:0 0 188px !important;padding-top:8px !important}
.sidebar-group{padding:0 16px 8px !important;margin-bottom:8px !important}
.sidebar-title{font-size:13px !important;padding-top:10px !important;text-align:left !important}
.sidebar-link{justify-content:flex-start !important;text-align:left !important;min-height:34px !important;height:34px !important;padding:0 4px 0 6px !important;font-size:13px !important;gap:8px !important}
.sidebar-link span{display:block;text-align:left !important}
.sidebar-glyph{display:inline-flex !important;align-items:center;justify-content:center;color:#d9ad41 !important;font-size:12px !important;width:14px;line-height:1;flex:0 0 14px}
.sidebar-link i{display:none !important}
.sidebar-link.active{margin:0 -16px !important;padding-left:22px !important;padding-right:16px !important}
.crm-content-area{padding:18px 22px 40px !important}
.dashboard-page-shell{max-width:1280px !important}


/* step73 overrides */
.crm-topbar{height:64px !important;min-height:64px !important;grid-template-columns:188px minmax(0,1fr) 220px !important;grid-template-rows:64px !important}
.crm-brand-block{width:188px !important;min-width:188px !important;justify-content:flex-start !important;padding:0 12px !important;border-right:1px solid rgba(255,255,255,.05) !important}
.crm-brand-logo-real{gap:10px !important}.crm-brand-badge{width:56px !important;height:56px !important;border-radius:16px !important;font-size:18px !important}.crm-brand-copy{display:flex !important;align-items:center}.crm-brand-name{font-size:22px !important;margin-top:0 !important}
.crm-top-center{grid-template-rows:64px !important;padding:0 !important}.crm-main-nav{height:64px !important}.crm-nav-link{height:64px !important;padding:0 12px !important;font-size:13px !important}.crm-nav-glyph{color:#d9ad41 !important;font-size:14px !important;display:inline-block;margin-right:8px}
.crm-user-side{grid-row:1 !important;padding:0 12px !important}
.crm-shell{min-height:calc(100vh - 64px) !important}
.crm-sidebar{width:188px !important;flex:0 0 188px !important;padding-top:0 !important}
.sidebar-group{padding:0 16px 10px !important;margin-bottom:10px !important}
.sidebar-title-main{padding-top:12px !important}
.sidebar-link{justify-content:flex-start !important;align-items:center !important;text-align:left !important;min-height:46px !important;height:46px !important;padding:0 6px 0 8px !important;font-size:14px !important;gap:10px !important}
.sidebar-link span{display:block;text-align:left !important}.sidebar-glyph{display:inline-flex !important;align-items:center !important;justify-content:center !important;color:#e0ad19 !important;font-size:13px !important;width:16px;flex:0 0 16px}.sidebar-link.active{margin:0 -16px !important;padding-left:24px !important;padding-right:16px !important}
.dashboard-page-shell{max-width:none !important}.dashboard-main-panel{padding:18px 18px 28px !important}.dashboard-big-title{font-size:18px !important;margin-bottom:16px !important}.dashboard-white-card{padding:18px 20px !important}.dashboard-chart-grid,.dashboard-bottom-grid{grid-template-columns:1fr 1fr !important;gap:18px !important}.dashboard-section-title{font-size:17px !important;text-align:center !important}.stats-row{font-size:15px !important}.dashboard-kpi-row-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}


/* STEP 74 CRM brand + clients page */
.crm-topbar{height:60px !important;min-height:60px !important;grid-template-columns:180px minmax(0,1fr) 220px !important;grid-template-rows:60px !important;overflow:hidden}
.crm-brand-block{width:180px !important;min-width:180px !important;height:60px !important;min-height:60px !important;padding:0 10px !important;align-items:center !important;justify-content:flex-start !important}
.crm-brand-logo-real{gap:10px !important;transform:none !important;align-items:center !important}
.crm-brand-badge{width:56px !important;height:56px !important;font-size:18px !important;border-radius:14px !important}
.crm-brand-name{font-size:22px !important;line-height:1 !important}
.crm-brand-copy{justify-content:center}
.crm-top-center,.crm-main-nav,.crm-nav-link{height:60px !important}
.crm-top-center{grid-template-rows:60px !important}
.crm-nav-link{padding:0 10px !important;font-size:12px !important}
.crm-user-side{height:60px !important;min-height:60px !important}
.crm-shell{min-height:calc(100vh - 60px) !important}
.crm-sidebar{width:180px !important;flex:0 0 180px !important;padding-top:0 !important}
.sidebar-group{padding:0 14px 10px !important;margin-bottom:8px !important}
.sidebar-title{font-size:12px !important;padding:10px 0 6px !important}
.sidebar-link{min-height:46px !important;height:46px !important;padding:0 8px !important;font-size:12px !important;justify-content:flex-start !important;gap:10px !important}
.sidebar-link span:last-child{text-align:left !important;flex:1 !important}
.sidebar-link.active{margin:0 -14px !important;padding-left:20px !important;padding-right:14px !important}
.crm-content-area.crm-content-full{padding:16px 20px 32px !important}
.crm-page-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.crm-page-breadcrumb{display:inline-flex;align-items:center;height:34px;padding:0 14px;background:#fff;border:1px solid #d8d8d8;box-shadow:0 1px 2px rgba(0,0,0,.05);font-size:14px;color:#6b6b6b}
.crm-page-actions{display:flex;gap:10px;align-items:center}
.crm-filter-header{background:#dcdcdc;border:1px solid #d2d2d2;padding:12px 14px;margin-bottom:14px}
.crm-filter-form-row{display:grid;grid-template-columns:1fr 90px;gap:12px;align-items:center}
.crm-wide-search{height:42px !important}
.crm-clients-grid-wrap{border:1px solid #d8d8d8;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.crm-clients-grid thead th{height:40px !important;font-size:13px !important}
.crm-clients-grid tbody td{height:40px !important;font-size:13px !important;padding:0 10px !important}
.client-avatar-mini{width:30px !important;height:30px !important;flex-basis:30px !important;font-size:12px !important}
.ticket-client-link{font-size:13px !important}
.muted-line{font-size:11px !important}


/* STEP 74 client form redesign */
.crm-client-form-page{max-width:1240px}
.crm-form-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 18px}
.crm-form-title{font-size:28px;color:#5e6775;font-weight:600;margin:0}
.crm-form-actions{display:flex;gap:10px}
.crm-form-section{background:#f7f7f7;border:1px solid #dfdfdf;box-shadow:0 1px 2px rgba(0,0,0,.08);padding:18px 22px;margin-bottom:18px}
.crm-section-title{font-size:18px;color:#5f6672;font-weight:600;margin:0 0 14px}
.crm-form-grid{display:grid;gap:16px 20px}
.crm-form-grid-2{grid-template-columns:1fr 1fr}
.crm-form-grid-3{grid-template-columns:1.1fr 1fr 1fr}
.crm-form-grid-4{grid-template-columns:1fr 1fr 1fr 1fr}
.crm-field.wide-2{grid-column:span 2}
.crm-field.wide-3{grid-column:span 3}
.crm-field.wide-4{grid-column:span 4}
.crm-client-form .form-control,.crm-client-form .form-select{height:36px;min-height:36px;padding:6px 12px;font-size:13px;background:#fff}
.crm-client-form textarea.form-control.crm-notes-area{min-height:180px;height:180px;padding:10px 12px}
.crm-client-form .form-label{font-size:12px;color:#5f6672;margin-bottom:8px}
.crm-client-form .checkbox-row{display:flex;align-items:flex-end}.crm-client-form .align-end{padding-bottom:1px}
@media (max-width:1100px){.crm-client-form-page{max-width:none}.crm-form-grid-2,.crm-form-grid-3,.crm-form-grid-4{grid-template-columns:1fr}.crm-field.wide-2,.crm-field.wide-3,.crm-field.wide-4{grid-column:span 1}.crm-form-head{flex-direction:column;align-items:flex-start;gap:12px}}

.crm-type-switch{display:inline-flex;gap:10px;margin-bottom:18px}
.crm-type-btn{height:38px;padding:0 18px;border:1px solid #d5d5d5;background:#fff;color:#5f6672;font-size:13px;font-weight:600;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.crm-type-btn.active{background:#e2b548;border-color:#d0a73f;color:#fff}
.crm-client-form-page .company-only,.crm-client-form-page .private-only{transition:all .15s ease}


/* STEP 77 client detail redesign */
.client-detail-page{max-width:1320px}
.client-top-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:18px}
.client-summary-card{padding:28px}
.client-summary-grid{display:grid;grid-template-columns:160px 1fr;gap:26px}
.client-summary-avatar{width:96px;height:96px;border-radius:50%;background:#cfcfcf;color:#fff;font-size:48px;display:flex;align-items:center;justify-content:center;font-weight:700}
.client-summary-main{min-width:0}
.client-summary-meta{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}
.client-summary-name{font-size:28px;line-height:1.15;color:#5a5a5a;font-weight:600;margin-top:6px}
.client-summary-date,.client-kpi-date{font-size:18px;color:#6a6a6a;margin-top:8px}
.client-contact-grid{gap:60px}
.client-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.client-kpi-row{display:flex;gap:70px;align-items:flex-end;margin-bottom:18px}
.client-kpi-num{font-size:18px;font-weight:700;color:#b14d2d;margin-top:4px}
.client-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:18px;align-items:end}
.client-filter-grid-6{grid-template-columns:2fr 1fr 1fr 1fr 1.2fr .9fr .9fr auto}
.client-filter-grid .wide-2{grid-column:span 2}
.client-archive-toggle{display:flex;align-items:center;gap:8px;height:40px;padding-top:20px;color:#666}
.client-detail-table th,.client-detail-table td{font-size:13px}
@media (max-width:1200px){.client-summary-grid{grid-template-columns:1fr}.client-summary-meta{grid-template-columns:1fr}.client-filter-grid,.client-filter-grid-6{grid-template-columns:1fr 1fr}.client-kpi-row{flex-wrap:wrap;gap:30px}}


/* Step78 practices list redesign */
.crm-shell .crm-sidebar{width:180px}
.crm-sidebar-dark .sidebar-link{justify-content:flex-start;gap:10px;padding-left:16px;padding-right:12px;min-height:48px;font-size:14px}
.crm-sidebar-dark .sidebar-link.active{padding-left:20px}
.crm-sidebar-dark .sidebar-glyph{display:inline-block;width:16px;color:#e0b22f;text-align:center;font-size:12px}
.crm-sidebar-dark .sidebar-title-main{font-size:14px;padding-top:10px}
.practices-search-panel{padding:12px 14px 10px;background:#efefef;border:none;box-shadow:none}
.ticket-grid-wrap,.grid-table-wrap{background:#f7f7f7;border:1px solid #ddd;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.practice-list-table thead th{background:#e6e6e6;color:#757575;font-weight:600;font-size:12px}
.practice-list-table td{font-size:12px;color:#666;padding:10px 10px;vertical-align:middle}
.practice-list-table tbody tr:hover{background:#fbfbfb}
.grid-client-link{color:#4da2e3;font-weight:600}
.related-practices-list{display:flex;gap:6px;flex-wrap:wrap}
.related-practice-link{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:24px;padding:0 8px;border:1px solid #d4d4d4;background:#fff;color:#4da2e3;font-weight:700;font-size:11px}
.related-practice-link.current{background:#eef5ff;border-color:#b9cff5;color:#376fb2}
.related-more{display:inline-flex;align-items:center;color:#999;font-size:11px}


.content-shell.practice-detail-shell{max-width:1180px;margin:0;}
.practice-summary-card .text-muted{font-size:.82rem;}
.practice-side-box{background:#f8f8f8;border:1px solid #e6e6e6;border-radius:.35rem;padding:1rem;}
.practice-note-box{min-height:120px;max-height:220px;overflow:auto;}

.practice-detail-page{max-width:1280px}
.practice-summary-grid{font-size:14px}
.practice-doc-table td,.practice-doc-table th{vertical-align:middle}
.practice-doc-table td:nth-child(3){min-width:240px}
.practice-detail-page .section-card{padding:20px 22px}
.practice-detail-page .client-summary-name{font-size:24px}
.practice-detail-page .client-summary-card{padding:24px}

.practice-detail-page{max-width:1290px}.practice-detail-page .client-summary-card{padding:24px}.practice-detail-page .practice-doc-table .form-select{min-width:170px}.practice-detail-page .practice-note-box{min-height:112px}.practice-detail-page .section-card{padding:18px 20px}


/* Step84 new practice redesign */
.crm-practice-form-page{max-width:1640px}
.practice-top-section{padding-bottom:14px}
.practice-type-guide-compact{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:6px}
.practice-type-guide-compact .practice-type-guide-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:#fafafa;border:1px solid #d8d8d8;border-radius:14px;padding:14px 16px;box-shadow:0 1px 2px rgba(0,0,0,.05);cursor:pointer}
.practice-type-guide-compact .practice-type-guide-card.active{background:#f7fbff;border-color:#7fb0f5;box-shadow:0 0 0 1px rgba(84,137,227,.2) inset}
.practice-type-guide-compact .practice-type-guide-head{display:flex;align-items:center;gap:8px;font-size:26px}
.practice-type-guide-compact .practice-type-guide-head strong{font-size:15px;color:#434d5e}
.practice-type-guide-compact .practice-type-guide-summary{font-size:12px;color:#5f6672}
.crm-practice-form .form-control,.crm-practice-form .form-select{height:36px;min-height:36px;padding:6px 12px;font-size:13px;background:#fff}
.crm-practice-form textarea.form-control.crm-notes-area{min-height:96px;height:96px;padding:10px 12px}
.crm-practice-form .crm-form-grid{gap:16px 14px}
.practice-live-summary{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.6fr);gap:18px;align-items:stretch;background:#fff;border:1px solid #d7dde6;box-shadow:0 2px 8px rgba(30,41,59,.06);padding:16px 18px;margin:0 0 16px}
.practice-live-summary-main{display:flex;align-items:center;gap:14px;min-width:0;border-right:1px solid #e4e9f0;padding-right:18px}
.practice-live-summary-icon{width:58px;height:58px;border-radius:14px;background:#eef5ff;color:#1f6fd1;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;flex:0 0 58px}
.practice-live-summary-titleblock{min-width:0;display:grid;gap:3px}
.practice-live-summary-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7b8797;font-weight:800}
.practice-live-summary-titleblock strong{font-size:22px;line-height:1.15;color:#2e3f57;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.practice-live-summary-titleblock small{font-size:13px;color:#657386;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.practice-live-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;align-content:center}
.practice-live-summary-grid div{min-width:0;padding:9px 10px;background:#f8fafc;border:1px solid #e7ecf3}
.practice-live-summary-grid span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#7c8796;font-weight:800;margin-bottom:3px}
.practice-live-summary-grid strong{display:block;color:#2f3f55;font-size:13px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.practice-form-tabs-shell{background:transparent;border:0;margin-bottom:18px}
.practice-form-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;background:transparent;border:0;padding:0;margin-bottom:12px}
.practice-form-tabs .nav-item{margin:0;min-width:0}
.practice-form-tab{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;min-height:68px;padding:11px 12px;border:1px solid #d9e0e9;background:#fff;color:#4f5968;text-align:left;box-shadow:0 1px 3px rgba(15,23,42,.05);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}
.practice-form-tab span{grid-row:1 / span 2;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#edf1f6;color:#5c6675;font-size:14px;font-weight:800}
.practice-form-tab strong{display:block;min-width:0;color:#2f3d52;font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.practice-form-tab small{display:block;min-width:0;color:#7b8797;font-size:11px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.practice-form-tab.active{background:#f8fbff;border-color:#6fa3eb;box-shadow:0 8px 18px rgba(31,111,209,.12), inset 0 3px 0 #1f6fd1;color:#1f4f8f;transform:translateY(-1px)}
.practice-form-tab.active span{background:#1f6fd1;color:#fff}
.practice-form-tab.active strong{color:#1f4f8f}
.practice-form-tab:hover{border-color:#8db5ed;box-shadow:0 6px 14px rgba(31,41,55,.08);transform:translateY(-1px)}
.practice-form-tab-content{padding:18px}
.practice-form-tab-content .crm-form-section{margin-top:0!important;border:1px solid #e1e6ee;background:#fbfcfd;padding:16px}
.practice-form-tab-content .crm-form-section + .crm-form-section{margin-top:16px!important}
.practice-form-tab-content .practice-doc-inline{margin-top:0}
.crm-practice-form .field-has-error{outline:2px solid #d95f55;outline-offset:3px;background:#fff8f7}
.practice-doc-inline{padding:14px 16px;margin:16px 0 0;background:#fbfbfb}
.doc-chip-list{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.doc-chip{display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 10px;border-radius:4px;background:#fff;border:1px solid #ececec;font-size:12px;font-weight:600;color:#111}
.practice-field-priority{display:none}
@media (max-width:1200px){.crm-practice-form-page{max-width:none}.practice-type-guide-compact{grid-template-columns:1fr}.crm-practice-form .crm-form-grid-3,.crm-practice-form .practice-date-row,.crm-practice-form #dynamic_fields_wrap,.crm-practice-form #supply_address_wrap .crm-form-grid{grid-template-columns:1fr!important}.practice-live-summary{grid-template-columns:1fr}.practice-live-summary-main{border-right:0;border-bottom:1px solid #e4e9f0;padding-right:0;padding-bottom:14px}.practice-live-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-form-tabs{grid-template-columns:1fr 1fr}.practice-form-tab-content{padding:12px}}
@media (max-width:700px){.practice-live-summary-grid,.practice-form-tabs{grid-template-columns:1fr}.practice-live-summary-titleblock strong,.practice-live-summary-titleblock small{white-space:normal}}


/* STEP 89B tickets grid alignment */
.tickets-grid-fixed{table-layout:fixed}
.tickets-grid-fixed th,.tickets-grid-fixed td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tickets-grid-fixed td:nth-child(1),.tickets-grid-fixed th:nth-child(1){text-align:center}
.tickets-grid-fixed td:nth-child(2),.tickets-grid-fixed th:nth-child(2){white-space:nowrap}
.tickets-grid-fixed td:nth-child(3),.tickets-grid-fixed th:nth-child(3){white-space:nowrap}
.tickets-grid-fixed td:nth-child(4),.tickets-grid-fixed th:nth-child(4){white-space:nowrap}
.tickets-grid-fixed td:nth-child(5),.tickets-grid-fixed th:nth-child(5){white-space:nowrap}
.tickets-grid-fixed td:nth-child(9),.tickets-grid-fixed th:nth-child(9){text-align:center}
.tickets-grid-fixed .ticket-date{white-space:nowrap}
.tickets-grid-fixed .ticket-client-link,.tickets-grid-fixed .ticket-subject,.tickets-grid-fixed .ticket-id-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticket-list-wrap{overflow-x:auto}

/* step89c ticket table strict alignment */
.tickets-grid-fixed{table-layout:fixed !important;}
.tickets-grid-fixed thead th,.tickets-grid-fixed tbody td{white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;}
.tickets-grid-fixed thead th:nth-child(1),.tickets-grid-fixed tbody td:nth-child(1){text-align:center;width:56px;}
.tickets-grid-fixed thead th:nth-child(2),.tickets-grid-fixed tbody td:nth-child(2){width:110px;}
.tickets-grid-fixed thead th:nth-child(3),.tickets-grid-fixed tbody td:nth-child(3){width:260px;}
.tickets-grid-fixed thead th:nth-child(4),.tickets-grid-fixed tbody td:nth-child(4){width:300px;}
.tickets-grid-fixed thead th:nth-child(5),.tickets-grid-fixed tbody td:nth-child(5){width:170px;}
.tickets-grid-fixed thead th:nth-child(6),.tickets-grid-fixed tbody td:nth-child(6){width:190px;}
.tickets-grid-fixed thead th:nth-child(7),.tickets-grid-fixed tbody td:nth-child(7){width:170px;}
.tickets-grid-fixed thead th:nth-child(8),.tickets-grid-fixed tbody td:nth-child(8){width:150px;}
.tickets-grid-fixed thead th:nth-child(9),.tickets-grid-fixed tbody td:nth-child(9){width:150px;text-align:center;}
.tickets-grid-fixed .ticket-id-link,.tickets-grid-fixed .ticket-subject,.tickets-grid-fixed .ticket-client-link,.tickets-grid-fixed .ticket-date,.tickets-grid-fixed .ticket-type,.tickets-grid-fixed .ticket-assigned{display:block;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;}
.tickets-grid-fixed .ticket-state-pill{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:4px 14px;border:1px solid #f08b5a;border-radius:999px;background:#fff7f2;color:#dd6431;font-size:13px;font-weight:600;white-space:nowrap;}
.tickets-grid-fixed .ticket-reply-btn{display:inline-flex;align-items:center;justify-content:center;min-width:86px;padding:4px 14px;border:1px solid #7aac3e;border-radius:999px;background:#f8fff1;color:#7aac3e;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;}

.tickets-grid-fixed tbody td:first-child{padding-left:0;padding-right:0;text-align:center;}

/* step90 ticket redesign */
.ticket-page{max-width:1600px;margin:0 auto}
.ticket-page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.ticket-page-title{font-size:24px;font-weight:700;color:#576a85;margin:0}
.ticket-page-actions{display:flex;align-items:center;gap:10px}
.ticket-inline-form{display:inline-flex;margin:0}
.desk-card{background:#f7f7f7;border:1px solid #d7d7d7;box-shadow:0 1px 2px rgba(0,0,0,.08);padding:18px}
.ticket-form-card{padding:16px 18px}
.ticket-form-grid{display:grid;gap:14px;margin-bottom:14px}
.ticket-form-grid-top{grid-template-columns:2fr 1fr}
.ticket-form-grid-meta{grid-template-columns:1.2fr 1fr .7fr}
.ticket-field-wide{grid-column:span 2}
.ticket-field-small{max-width:260px}
.ticket-form-section{margin-bottom:14px}
.ticket-textarea{min-height:86px}
.ticket-textarea-lg{min-height:120px}
.ticket-textarea-xl{min-height:200px}
.ticket-form-submit-inline{margin-top:6px}
.ticket-detail-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);gap:18px;align-items:start}
.ticket-thread-card,.ticket-side-card,.ticket-reply-card{background:#f7f7f7;border:1px solid #d7d7d7;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.ticket-thread-card{display:flex;gap:16px;padding:16px 18px;margin-bottom:12px}
.ticket-thread-root{position:relative;padding-left:0}
.ticket-thread-accent{width:3px;background:#dd6431;align-self:stretch}
.ticket-thread-body{flex:1;min-width:0}
.ticket-thread-header-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ticket-thread-title{font-size:28px;line-height:1.15;color:#dd6431;margin:0 0 6px;font-weight:700}
.ticket-thread-meta{display:flex;flex-wrap:wrap;gap:8px;color:#7b7b7b;font-size:13px}
.ticket-thread-meta a{color:#4ea4ea;text-decoration:none}
.ticket-thread-tags{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.ticket-mini-badge{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;background:#50a8eb;color:#fff;font-size:11px;font-weight:700;text-transform:uppercase}
.ticket-mini-badge-muted{background:#d3d3d3;color:#5b5b5b}
.ticket-thread-message,.ticket-thread-reply-text{font-size:14px;line-height:1.6;color:#555}
.ticket-thread-reply{padding:14px 18px}
.ticket-thread-avatar{width:28px;height:28px;border-radius:50%;background:#d9d9d9;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 28px;font-size:12px}
.ticket-thread-reply-meta{display:flex;flex-wrap:wrap;gap:6px;color:#7f7f7f;font-size:12px;margin-bottom:6px}
.ticket-thread-reply-meta strong{color:#4b4b4b}
.ticket-reply-card{padding:18px}
.ticket-section-title{font-size:16px;font-weight:700;color:#4f6079;margin:0 0 12px}
.ticket-reply-grid{display:grid;gap:14px;margin-bottom:14px}
.ticket-reply-grid-top{grid-template-columns:1.1fr .7fr}
.ticket-reply-actions,.ticket-inline-actions{display:flex;justify-content:flex-end;margin-top:10px}
.ticket-meta-list{display:grid;gap:10px}
.ticket-meta-list div{display:grid;gap:2px}
.ticket-meta-list span{font-size:12px;color:#8a8a8a}
.ticket-meta-list strong,.ticket-meta-list a{font-size:14px;color:#4f4f4f;text-decoration:none}
.ticket-history-list,.ticket-attachment-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ticket-history-list li,.ticket-attachment-list li{display:flex;flex-wrap:wrap;gap:10px;font-size:13px;color:#666}
.ticket-history-date{color:#4f4f4f;font-weight:700}
.ticket-history-status{text-transform:capitalize;color:#dd6431;font-weight:700}
.ticket-sla-block{margin-top:14px;padding-top:12px;border-top:1px solid #e1e1e1}
.ticket-sla-block h4{margin:0 0 8px;font-size:14px;color:#4f6079}
.ticket-upload-form,.ticket-status-form{margin-top:10px}
@media (max-width: 1200px){
  .ticket-detail-layout{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .ticket-form-grid-top,.ticket-form-grid-meta,.ticket-reply-grid-top{grid-template-columns:1fr}
  .ticket-field-wide{grid-column:span 1}
  .ticket-page-toolbar{flex-direction:column;align-items:flex-start}
}


/* Client portal */
.portal-admin-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.9fr);gap:18px;align-items:start}
.portal-public-body{margin:0;background:#eef1f5;font-family:Arial,Helvetica,sans-serif;color:#354257}
.portal-public-shell{min-height:100vh;padding:32px 18px;display:flex;justify-content:center;align-items:flex-start}
.portal-public-card{width:min(1180px,100%);background:#fff;border:1px solid #d9e1ea;border-radius:24px;box-shadow:0 16px 40px rgba(28,47,74,.08);padding:30px 34px}
.portal-public-card h1{margin:8px 0 6px;font-size:34px;line-height:1.1;color:#26364d}
.portal-public-card .subtitle{margin:0 0 22px;color:#6d7b90;font-size:15px}
.portal-progress-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}
.portal-progress-head strong{font-size:20px;color:#24374f}
.portal-progress-track{height:12px;border-radius:999px;background:#e8eef5;overflow:hidden;margin-bottom:18px}
.portal-progress-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#70c37b,#2e8b57)}
.portal-actions-row{display:flex;justify-content:flex-end;gap:12px;margin-bottom:18px}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.portal-box{border:1px solid #dde4ec;border-radius:20px;padding:20px 22px;background:#fbfcfe}
.portal-box h3{margin:0 0 14px;font-size:20px;color:#314868}
.summary-list,.portal-doc-list{display:grid;gap:10px}
.summary-line,.portal-doc-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:10px;border-bottom:1px solid #e8edf3}
.summary-line:last-child,.portal-doc-row:last-child{padding-bottom:0;border-bottom:0}
.summary-line span,.portal-doc-row span{color:#738196;font-size:14px}
.summary-line strong,.portal-doc-row strong{color:#24374f;font-size:14px;text-align:right}
.portal-invalid-card{text-align:center;max-width:760px}
.md-empty{color:#8a95a6;font-size:14px}
.soft-badge{display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:700;text-transform:capitalize}
@media (max-width: 1100px){.portal-admin-layout,.portal-grid{grid-template-columns:1fr}}

.portal-admin-shell{max-width:1500px}
.portal-admin-dashboard{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.75fr);gap:18px;align-items:start}
.portal-main-card,.portal-table-card,.portal-side-card{background:#f7f7f7;border:1px solid #d7d7d7;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.portal-form-grid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px;align-items:end}
.portal-field-wide{grid-column:1/2}
.portal-field-small{grid-column:2/3}
.portal-form-actions{grid-column:1/-1;display:flex;justify-content:flex-start}
.portal-side-column{display:grid;gap:18px}
.portal-side-stats{display:grid;gap:12px}
.portal-kpi-box{background:#fff;border:1px solid #dedede;padding:14px 16px;display:grid;gap:4px}
.portal-kpi-box span{font-size:12px;color:#8b8b8b;text-transform:uppercase;letter-spacing:.03em}
.portal-kpi-box strong{font-size:28px;line-height:1;color:#4f6079}
.portal-generated-card .panel-inner{display:grid;gap:12px}
.portal-generated-url{padding:10px 12px;background:#fff;border:1px solid #d9d9d9;color:#4ea4ea;word-break:break-all}
.portal-generated-actions{display:flex;gap:10px}
.portal-links-table{table-layout:fixed;width:100%}
.portal-links-table th,.portal-links-table td{vertical-align:middle;white-space:nowrap}
.portal-links-table td:nth-child(2),.portal-links-table td:nth-child(3){overflow:hidden;text-overflow:ellipsis}
.portal-table-actions{display:flex;gap:8px;align-items:center}
@media (max-width:1100px){.portal-admin-dashboard,.portal-form-grid{grid-template-columns:1fr}.portal-field-wide,.portal-field-small,.portal-form-actions{grid-column:1/-1}}

/* step104 ui refinements */
.crm-top-search{margin-left:auto;margin-right:16px;display:flex;align-items:center}.crm-top-search input{width:320px;max-width:32vw;background:#fff;border:1px solid #cfd5df;border-radius:8px;padding:8px 12px;font-size:13px}.table-status.status-info{background:#edf4ff;color:#3d6ba8;border:1px solid #bdd1ee}.table-status.status-warning{background:#fff5dc;color:#9a6b08;border:1px solid #f1d089}.table-status.status-danger{background:#fdeceb;color:#a94442;border:1px solid #e5b8b5}.table-status.status-done{background:#e7f7ec;color:#2c7a46;border:1px solid #9ed1aa}.table-status.status-muted{background:#f1f3f7;color:#5a6472;border:1px solid #d6dce5}.related-practice-link{margin-right:6px}


.crm-top-center{display:flex;align-items:center;gap:16px;min-width:0}
.crm-main-nav{flex:1 1 auto}
.crm-top-search{flex:0 0 340px;max-width:340px}
.crm-top-search input{width:100%;height:38px;background:#fff;border:1px solid #cfd5df;border-radius:8px;padding:8px 12px;font-size:13px}
.column-filter-row th{background:#f2f2f2 !important;padding:6px 8px !important;height:auto !important}
.column-filter-row input{min-width:70px;font-size:12px}
.practice-list-table .table-status,.practice-list-table td:nth-child(5){white-space:nowrap}
.practice-list-table td{white-space:nowrap}
.practice-list-table td:nth-child(3),.practice-list-table td:nth-child(9),.practice-list-table td:nth-child(10){white-space:normal}
.practice-list-table .table-status{display:inline-flex;white-space:nowrap}
.portal-admin-dashboard{align-items:start}
.portal-side-column{display:flex;flex-direction:column;gap:16px}
.portal-links-table{table-layout:auto}
.portal-links-table th,.portal-links-table td{white-space:normal}
.portal-links-table td:nth-child(2),.portal-links-table td:nth-child(3){overflow:visible;text-overflow:clip}
.portal-table-actions{flex-wrap:wrap}
.notification-filter-bar .form-control,.notification-filter-bar .form-select{min-width:170px}
@media (max-width: 1400px){.crm-top-search{flex-basis:260px;max-width:260px}}


/* step106 stability fixes */
.crm-topbar{overflow:visible !important;grid-template-columns:180px minmax(0,1fr) 520px !important;grid-template-rows:64px !important;height:64px !important;min-height:64px !important}
.crm-top-center{display:flex !important;align-items:stretch !important;min-width:0;padding:0 !important}
.crm-main-nav{display:grid !important;grid-template-columns:repeat(9,minmax(86px,1fr)) !important;height:64px !important;min-width:0;overflow:visible !important}
.crm-nav-link{display:flex !important;align-items:center !important;justify-content:center !important;white-space:nowrap;height:64px !important;padding:0 10px !important}
.crm-user-side{display:flex !important;align-items:center !important;justify-content:flex-end !important;gap:10px;padding-right:12px !important;min-width:0}
.crm-top-search-inline{flex:0 1 310px !important;max-width:310px !important;margin:0 !important}
.crm-top-search-inline input{width:100% !important;height:36px !important}
@media (max-width: 1600px){.crm-topbar{grid-template-columns:160px minmax(0,1fr) 420px !important}.crm-top-search-inline{flex-basis:240px !important;max-width:240px !important}.crm-nav-link{font-size:12px !important;padding:0 8px !important}}
@media (max-width: 1300px){.crm-topbar{grid-template-columns:140px minmax(0,1fr) 260px !important}.crm-top-search-inline{display:none !important}.crm-main-nav{overflow-x:auto !important}}
.table-status,.status-badge,.practice-status-badge{white-space:nowrap !important}
.crm-practices-grid td:nth-child(5), .crm-practices-grid th:nth-child(5){white-space:nowrap !important}
.column-order-manager{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f7f7f7;border:1px solid #ddd;padding:12px 14px;margin:0 0 12px 0}
.column-order-title{font-weight:700;color:#4e5563}
.column-order-help{font-size:12px;color:#7a8290}
.column-order-list{display:flex;flex-wrap:wrap;gap:8px}
.column-order-item{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #d7dce4;border-radius:8px;padding:6px 8px}
.column-order-label{font-size:12px;font-weight:600;color:#4e5563;min-width:72px}
.crm-top-search-inline + .crm-top-icon{margin-left:2px}
.portal-recent-table td,.portal-recent-table th{vertical-align:middle}
.portal-recent-table .portal-actions{display:flex;flex-wrap:wrap;gap:6px}


.crm-brand-logo-image-wrap{display:flex !important;align-items:center !important;justify-content:flex-start !important;padding:0 !important;width:100% !important;height:100% !important}
.crm-brand-logo-image{display:block;max-width:170px;max-height:48px;width:auto;height:auto;object-fit:contain}
.crm-brand-badge,.crm-brand-copy{display:none !important}
.crm-main-nav{grid-template-columns:repeat(10,minmax(86px,1fr)) !important}
.crm-nav-link{white-space:nowrap}
.crm-nav-link span:last-child{white-space:nowrap}
@media (max-width:1500px){.crm-main-nav{grid-template-columns:repeat(10,minmax(74px,1fr)) !important}.crm-nav-link{font-size:11px !important;padding:0 6px !important}}

.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}
.table-pagination-pages{display:flex;gap:6px;flex-wrap:wrap}
.table-pagination-pages a,.table-pagination-pages span{min-width:34px;height:34px;padding:0 10px;border:1px solid #d7dbe2;background:#fff;color:#4f5867;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:4px;font-size:13px}
.table-pagination-pages .active{background:#8cab3b;color:#fff;border-color:#8cab3b}
.table-pagination-meta{font-size:13px;color:#6f7786}

.column-order-panel{border:1px solid #dfe3ea;background:#fff;padding:12px 14px;margin-bottom:12px}
.column-order-title{font-size:14px;font-weight:700;color:#55606f;margin-bottom:10px}
.column-order-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.column-order-field label{display:block;font-size:12px;color:#6f7786;margin-bottom:4px}
.column-order-field select{width:100%;height:36px;border:1px solid #ccd3dd;border-radius:4px;padding:0 8px;background:#fff}
.column-order-actions{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}

/* step108 refinements */
.crm-topbar{grid-template-columns:240px minmax(0,1fr) 500px !important;height:64px !important;min-height:64px !important}
.crm-brand-block{width:240px !important;min-width:240px !important;padding:0 14px !important}
.crm-brand-logo-image{max-width:210px !important;max-height:54px !important}
.crm-main-nav{grid-template-columns:repeat(10,minmax(92px,1fr)) !important;height:64px !important}
.crm-nav-link{height:64px !important;padding:0 8px !important;font-size:12px !important}
.crm-nav-link span:last-child{font-size:12px !important;white-space:nowrap !important}
.crm-top-search input{width:240px !important;max-width:240px !important}
.client-name-nowrap,.client-name-nowrap a,.grid-client-link{white-space:nowrap !important;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
.practice-list-table td,.client-excel-table td{vertical-align:top}
.column-order-toggle-bar{margin-bottom:10px}
.column-order-panel.d-none{display:none !important}
.column-order-panel{border-radius:4px}
@media (max-width:1600px){
  .crm-topbar{grid-template-columns:210px minmax(0,1fr) 420px !important}
  .crm-main-nav{grid-template-columns:repeat(10,minmax(82px,1fr)) !important}
  .crm-nav-link{font-size:11px !important;padding:0 6px !important}
}


/* step109 table refinements */
.practice-list-table,.client-excel-table{table-layout:fixed}
.practice-list-table th,.practice-list-table td,.client-excel-table th,.client-excel-table td{box-sizing:border-box}
.practice-list-table thead th,.client-excel-table thead th{padding:0 10px;border-right:1px solid #d8dde5 !important}
.practice-list-table tbody td,.client-excel-table tbody td{padding:9px 10px;border-right:1px solid #e1e6ed !important;vertical-align:middle !important;background-clip:padding-box}
.practice-list-table thead th:last-child,.practice-list-table tbody td:last-child,.client-excel-table thead th:last-child,.client-excel-table tbody td:last-child{border-right:none !important}
.column-filter-row th{padding:6px !important;border-right:1px solid #d8dde5 !important}
.column-filter-row .table-col-filter{width:100%;min-width:0;height:34px;padding:6px 8px;border:1px solid #cfd6df;font-size:12px}
.practice-list-table .col-client,.client-excel-table .col-client{width:230px;min-width:230px;max-width:230px}
.client-name-cell{overflow:hidden}
.client-name-cell .client-name-nowrap,.client-name-cell .grid-client-link,.client-excel-table .ticket-client-link{display:block !important;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap !important;line-height:1.35}
.client-cell-main{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;min-width:0}
.client-cell-main > div{min-width:0}
.client-avatar-mini{margin:0}
.practice-list-table td,.client-excel-table td{vertical-align:middle !important}
.practice-list-table td:nth-child(3),.client-excel-table td:nth-child(2){white-space:nowrap !important}
.practice-list-table td:nth-child(9),.practice-list-table td:nth-child(10){white-space:normal !important}
.practice-list-table .grid-client-link,.client-excel-table .ticket-client-link{font-weight:700;text-decoration:none}
.related-practices-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.client-excel-table .muted-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grid-table-wrap{overflow-x:auto}

/* Pipedrive-style compact list pages */
body:has(.pd-list-shell) .crm-content-area{padding:0 !important;background:#fff !important}
.pd-list-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 112px);background:#fff;color:#172033;font-family:Arial,Helvetica,sans-serif}
.pd-list-sidebar{background:#f5f5f7;border-right:1px solid #d8dde5;padding:6px 6px 18px}
.pd-side-item,.pd-side-link{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:4px;color:#172033;text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap}
.pd-side-item{font-weight:700}
.pd-side-item i,.pd-side-link i{width:18px;color:#5b6677;text-align:center}
.pd-side-item.active,.pd-side-link.active{background:#dbeafe;color:#0065d8}
.pd-side-item.active i,.pd-side-link.active i{color:#0065d8}
.pd-side-title{margin:26px 12px 10px;color:#4b5565;font-size:12px;font-weight:700;line-height:1;text-transform:uppercase}
.pd-list-main{min-width:0;background:#fff}
.pd-list-toolbar{height:62px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px 0 16px;border-bottom:1px solid #d7dce3;background:#fff}
.pd-toolbar-left,.pd-toolbar-right{display:flex;align-items:center;gap:8px;min-width:0}
.pd-toolbar-right{margin-left:auto}
.pd-view-switch{display:flex;height:34px;border:1px solid #c7d0dd;border-radius:4px;overflow:hidden;background:#fff}
.pd-view-switch button{width:46px;border:0;border-right:1px solid #c7d0dd;background:#fff;color:#344054;font-size:15px}
.pd-view-switch button:last-child{border-right:0}
.pd-view-switch button.active{background:#eff6ff;color:#0065d8;box-shadow:inset 0 0 0 1px #0065d8}
.pd-green-btn{height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #23864b;border-radius:4px;background:#23864b;color:#fff;text-decoration:none;font-size:14px;font-weight:700;line-height:34px;white-space:nowrap}
.pd-green-btn:hover{background:#1d7541;color:#fff;text-decoration:none}
.pd-toolbar-search{height:34px;display:flex;align-items:center;gap:8px;min-width:230px;max-width:360px;flex:0 1 320px;padding:0 10px;border:1px solid #c7d0dd;border-radius:4px;background:#fff;color:#667085}
.pd-toolbar-search input{width:100%;border:0;outline:0;background:transparent;color:#172033;font-size:14px;font-family:Arial,Helvetica,sans-serif}
.pd-filter-btn,.pd-more-btn{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #c7d0dd;border-radius:4px;background:#fff;color:#172033;text-decoration:none;font-size:14px;font-weight:700;font-family:Arial,Helvetica,sans-serif;white-space:nowrap}
.pd-filter-btn{padding:0 12px}
.pd-more-btn{width:34px;padding:0}
.pd-filter-btn:hover,.pd-more-btn:hover{background:#f7f9fb;color:#172033;text-decoration:none}
.pd-total-count{font-size:14px;color:#111827;white-space:nowrap}
.pd-grid-wrap{min-height:calc(100vh - 174px);margin:0;border:0 !important;box-shadow:none !important;overflow:auto;background:#fff !important}
.pd-list-shell .grid-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff;font-family:Arial,Helvetica,sans-serif}
.pd-list-shell .grid-table thead th{height:33px !important;padding:0 8px !important;border-right:1px solid #d7dce3 !important;border-bottom:1px solid #d7dce3 !important;background:#fff !important;color:#172033 !important;font-size:14px !important;font-weight:700 !important;line-height:1.2;vertical-align:middle;white-space:nowrap}
.pd-list-shell .grid-table tbody td{height:33px !important;padding:0 8px !important;border-top:0 !important;border-right:1px solid #e4e7ec !important;border-bottom:1px solid #e4e7ec !important;background:#fff !important;color:#2f3542 !important;font-size:14px !important;font-weight:400;line-height:1.2 !important;vertical-align:middle !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-list-shell .grid-table thead th:last-child,.pd-list-shell .grid-table tbody td:last-child{border-right:0 !important}
.pd-list-shell .grid-table tbody tr:hover td{background:#f7f9fb !important}
.pd-list-shell .column-filter-row{display:none !important}
.pd-list-shell .table-sort-link{display:flex;align-items:center;justify-content:space-between;width:100%;gap:6px;color:inherit !important;text-decoration:none !important;font-size:14px;font-weight:700}
.pd-list-shell .sort-indicator{display:none}
.pd-list-shell .client-cell-main{display:block;min-width:0}
.pd-list-shell .client-avatar-mini{display:none !important}
.pd-list-shell .ticket-client-link,.pd-list-shell .grid-client-link{color:#172033 !important;text-decoration:none !important;font-size:14px !important;font-weight:400 !important}
.pd-list-shell .client-name-nowrap{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-list-shell .muted-line,.pd-list-shell .small.text-muted{color:#667085 !important;font-size:12px !important;line-height:1.1}
.pd-list-shell .badge,.pd-list-shell .status-badge,.pd-list-shell .ticket-state-pill,.pd-list-shell .doc-chip{height:22px;display:inline-flex;align-items:center;border-radius:4px;font-size:12px;font-weight:700;line-height:1}
.pd-list-shell .grid-open-link{display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;color:#667085 !important;text-decoration:none;font-size:0 !important}
.pd-list-shell .grid-open-link:after{content:"...";font-size:18px;font-weight:800;letter-spacing:1px;line-height:1}
.pd-list-shell .column-order-panel{margin:0;border:0;border-bottom:1px solid #d7dce3;border-radius:0;box-shadow:none}
.pd-list-shell .table-pagination{margin:0;padding:10px 14px;border-top:1px solid #d7dce3;background:#fff}
@media (max-width: 980px){
  .pd-list-shell{grid-template-columns:1fr}
  .pd-list-sidebar{display:none}
  .pd-list-toolbar{height:auto;min-height:62px;flex-wrap:wrap;padding:10px}
  .pd-toolbar-search{order:3;flex-basis:100%;max-width:none}
}

/* step110 table balance */
.practice-list-table,.client-excel-table{table-layout:fixed;width:100%}
.practice-list-table thead th,.client-excel-table thead th{font-size:12px !important;padding:0 8px !important}
.practice-list-table tbody td,.client-excel-table tbody td{font-size:12px !important;padding:7px 8px !important;line-height:1.2}
.practice-list-table .col-id,.practice-list-table td:first-child{width:68px;min-width:68px;max-width:68px}
.practice-list-table .col-date{width:92px;min-width:92px;max-width:92px}
.practice-list-table .col-type{width:78px;min-width:78px;max-width:78px}
.practice-list-table .col-status{width:128px;min-width:128px;max-width:128px}
.practice-list-table .col-assignee{width:120px;min-width:120px;max-width:120px}
.practice-list-table .col-priority{width:86px;min-width:86px;max-width:86px}
.practice-list-table .col-supplier{width:120px;min-width:120px;max-width:120px}
.practice-list-table .col-product{width:340px;min-width:340px;max-width:340px}
.practice-list-table .col-contact{width:170px;min-width:170px;max-width:170px}
.practice-list-table .col-related{width:138px;min-width:138px;max-width:138px}
.practice-list-table .col-actions{width:82px;min-width:82px;max-width:82px}
.practice-list-table .col-client{width:240px !important;min-width:240px !important;max-width:240px !important}
.practice-list-table td.col-date,.practice-list-table td.col-type,.practice-list-table td.col-priority,.practice-list-table td.col-supplier,.practice-list-table td.col-assignee,.practice-list-table td.col-product,.practice-list-table td.col-related{overflow:hidden;text-overflow:ellipsis;white-space:nowrap !important}
.practice-list-table td.col-product{font-size:11.5px !important}
.practice-list-table td.col-contact{font-size:11.5px !important;white-space:normal !important;line-height:1.15}
.practice-list-table td.col-status,.practice-list-table td.col-actions{text-align:left}
.practice-list-table .table-status,.practice-list-table .status-badge,.practice-list-table .practice-status-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.client-excel-table .col-client{width:250px !important;min-width:250px !important;max-width:250px !important}
.client-excel-table td,.client-excel-table th{overflow:hidden}
.client-excel-table td:nth-child(2),.client-excel-table td:nth-child(4),.client-excel-table td:nth-child(5),.client-excel-table td:nth-child(6),.client-excel-table td:nth-child(7){text-overflow:ellipsis;white-space:nowrap !important}
.client-excel-table td:nth-child(6){white-space:normal !important;line-height:1.15}

/* STEP 122 navbar/pipeline fixes */
.crm-topbar{grid-template-columns:210px minmax(0,1fr) 320px !important;min-height:72px;height:72px !important;grid-template-rows:72px !important;}
.crm-brand-block{padding:0 12px !important;}
.crm-brand-logo-image-wrap{width:180px !important;height:48px !important;border:none !important;background:transparent !important;}
.crm-brand-logo-image{max-width:180px !important;max-height:48px !important;object-fit:contain;}
.crm-top-center{grid-template-rows:72px !important;padding:0 !important;}
.crm-main-nav{display:flex !important;align-items:stretch !important;gap:0;overflow-x:auto !important;overflow-y:hidden !important;scrollbar-width:thin;height:72px !important;grid-template-columns:none !important;}
.crm-nav-link{flex:0 0 auto !important;min-width:120px !important;height:72px !important;padding:0 14px !important;white-space:nowrap;}
.crm-nav-link span:last-child{white-space:nowrap;}
.crm-user-side{padding:0 14px !important;gap:10px !important;}
.crm-top-search-inline input{height:40px !important;font-size:14px;padding:0 14px;}
.crm-top-icon{background:rgba(255,255,255,.12) !important;color:#f0c764 !important;border:1px solid rgba(255,255,255,.08);}
.crm-top-bell{font-size:18px;line-height:1;}
@media (max-width:1500px){.crm-topbar{grid-template-columns:180px minmax(0,1fr) 270px !important}.crm-nav-link{min-width:110px !important;padding:0 10px !important}}


.desk-btn-operator{background:#3a7d6b;border-color:#2f6a5a;color:#fff}
.desk-btn-operator:hover{background:#2f6a5a;border-color:#27584b;color:#fff}
.desk-btn-sm{padding:6px 10px;font-size:12px;line-height:1.2}
.pipeline-action-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.pipeline-open-link{display:inline-flex;align-items:center;height:32px}
.ticket-section-subtitle{font-size:12px;font-weight:700;color:#64748b;margin:12px 0 6px}


.desk-btn-sm{padding:6px 10px !important;font-size:12px !important;min-height:32px}
.pipeline-open-link{display:inline-flex;align-items:center;min-height:32px}
.pipeline-action-row form{margin:0}
.pipeline-action-row .desk-btn-operator{background:#5f8f3e;border-color:#4f7a33;color:#fff}
.pipeline-action-row .desk-btn-operator:hover{background:#4f7a33;border-color:#45692c;color:#fff}
.ticket-check-grid{display:grid;gap:8px;margin-top:10px}
.ticket-check-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
.ticket-check-label{font-size:13px;color:#374151}
.ticket-section-subtitle{font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:12px 0 8px}
.login-hero{display:flex;flex-direction:column;justify-content:center}
.login-hero h1{font-size:48px;max-width:520px}
.login-hero p{max-width:520px;margin-bottom:0}


.pipeline-open-link{display:inline-flex;align-items:center;min-height:30px}
.desk-btn-sm{padding:6px 10px;font-size:12px;line-height:1.1}
.desk-btn-operator{background:#e6f4ea;border-color:#b7dfc0;color:#1f6b37}
.ticket-side-card .ticket-meta-list>div{padding:6px 0;border-bottom:1px solid #e5e7eb}
.ticket-side-card .ticket-meta-list>div:last-child{border-bottom:0}
.ticket-side-card .ticket-section-subtitle{margin-top:12px;margin-bottom:8px;font-weight:700;color:#4b5563;text-transform:uppercase;font-size:11px;letter-spacing:.04em}
.ticket-check-grid{display:flex;flex-direction:column;gap:8px}
.ticket-check-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fafafa}
.ticket-check-label{font-size:13px;color:#334155}
.ticket-upload-form .form-control,.ticket-upload-form .form-select{font-size:13px}


.pipeline-action-row form{display:inline-flex;align-items:center;margin:0;}
.pipeline-action-row .desk-btn-operator.desk-btn-sm{padding:4px 8px !important;font-size:11px !important;line-height:1.1 !important;min-height:26px !important;border-radius:4px !important;background:#d9edf7 !important;border:1px solid #9ecae1 !important;color:#245269 !important;box-shadow:none !important;}
.pipeline-action-row .desk-btn-operator.desk-btn-sm:hover{background:#cbe8f6 !important;border-color:#7fb7d1 !important;color:#1b4252 !important;}
.pipeline-action-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.pipeline-open-link{display:inline-flex;align-items:center;height:26px;}

.pipeline-action-row{display:flex;align-items:center;gap:8px;justify-content:flex-start}
.pipeline-open-link{display:inline-flex;align-items:center;line-height:1.1}
.pipeline-take-btn{padding:3px 8px !important;font-size:11px !important;line-height:1.1 !important;min-height:24px !important;border-radius:4px !important;background:#d9edf7 !important;border:1px solid #9ecae1 !important;color:#245269 !important;box-shadow:none !important;white-space:nowrap !important;}
.pipeline-take-btn:hover{background:#cbe8f6 !important;border-color:#7fb7d1 !important;color:#1b4252 !important;}

/* settings step 1 refresh */
.settings-v2 .settings-sidebar{padding:0;overflow:hidden}
.settings-sidebar-head{padding:18px 18px 14px;border-bottom:1px solid #e8ebf0;background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%)}
.settings-sidebar-head h2{margin:4px 0 4px;font-size:26px;font-weight:700;color:#1f2937}
.settings-sidebar-head p{margin:0;color:#6b7280;font-size:13px;line-height:1.45}
.settings-v2 .settings-side-link{display:flex;align-items:center;gap:10px;padding:13px 16px;border-top:1px solid #eef1f5;background:#fff;color:#4b5563;font-size:15px;border-radius:0;box-shadow:none}
.settings-v2 .settings-side-link:hover{background:#f8fafc;text-decoration:none}
.settings-v2 .settings-side-link.active{background:#e8efff;color:#1d4ed8;font-weight:700;box-shadow:inset 3px 0 0 #3568f0}
.settings-side-index{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#f3f4f6;color:#6b7280;font-size:12px;font-weight:700;flex:0 0 22px}
.settings-v2 .settings-side-link.active .settings-side-index{background:#3568f0;color:#fff}
.settings-header-v2{padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid #e8ebf0}
.settings-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;max-width:420px;width:100%}
.settings-summary-card{border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;background:#fafafa;display:flex;flex-direction:column;gap:4px}
.settings-summary-card strong{color:#111827;font-size:14px}
.settings-summary-card span{color:#6b7280;font-size:12px;line-height:1.45}
.settings-subnav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.settings-subnav-link{display:inline-flex;align-items:center;padding:9px 14px;border-radius:999px;background:#f3f4f6;color:#475569;text-decoration:none;font-weight:600;font-size:13px;border:1px solid transparent}
.settings-subnav-link:hover{text-decoration:none;background:#eef2ff;color:#334155}
.settings-subnav-link.active{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}
@media (max-width:1100px){.settings-summary-grid{grid-template-columns:1fr;max-width:none}.settings-header-v2{gap:12px}}


/* Navbar responsive refinement */
.crm-main-nav{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#6c7380 transparent}
.crm-main-nav::-webkit-scrollbar{height:8px}
.crm-main-nav::-webkit-scrollbar-thumb{background:#6c7380;border-radius:999px}
.crm-main-nav::-webkit-scrollbar-track{background:transparent}
.crm-nav-link{white-space:nowrap;flex:0 0 auto}
.crm-top-search-inline input{width:260px;max-width:100%}
.crm-brand-logo-image{max-width:100%;height:auto;max-height:62px}

@media (max-width: 1500px){
  .crm-brand-block{flex:0 0 154px;padding:0 10px}
  .crm-top-center{padding:6px 8px 0 8px}
  .crm-user-side{flex:0 0 300px;gap:8px;padding:0 10px}
  .crm-nav-link{min-width:92px;padding:0 8px;font-size:11px}
  .crm-top-search-inline input{width:220px;height:44px;font-size:13px}
  .crm-user-name{font-size:14px}
  .crm-user-role{font-size:11px}
}
@media (max-width: 1320px){
  .crm-brand-block{flex:0 0 138px}
  .crm-user-side{flex:0 0 250px}
  .crm-nav-link{min-width:84px;font-size:10px;gap:6px}
  .crm-nav-glyph{font-size:12px}
  .crm-top-search-inline input{width:180px}
  .crm-user-link{gap:8px}
  .crm-user-name{font-size:13px}
  .crm-user-role{font-size:10px}
}


/* DEFINITIVE NAVBAR FIX */
.crm-main-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  overflow:visible !important;
}

.crm-nav-link{
  flex:0 0 auto;
  min-width:auto;
  padding:6px 10px;
  height:42px;
  font-size:11px;
  border-bottom:none;
}

.crm-nav-link span:last-child{
  white-space:nowrap;
}

.crm-topbar{
  align-items:center;
  min-height:70px;
}

.crm-top-center{
  padding:4px 6px;
}

.crm-brand-block{
  flex:0 0 140px;
}

.crm-user-side{
  flex:0 0 auto;
}

@media (max-width:1200px){
  .crm-nav-link{
    font-size:10px;
    padding:5px 8px;
  }
}

@media (max-width:900px){
  .crm-main-nav{
    justify-content:flex-start;
  }
}





/* Navbar 1360x768 two-row fix */
@media (max-width: 1360px){
  .crm-topbar{
    min-height:auto !important;
    align-items:stretch !important;
    flex-wrap:wrap !important;
  }

  .crm-brand-block{
    flex:0 0 160px !important;
    min-height:64px !important;
    padding:0 8px !important;
  }

  .crm-brand-logo-image{
    max-height:48px !important;
    width:auto !important;
  }

  .crm-top-center{
    order:1 !important;
    flex:1 1 calc(100% - 160px) !important;
    min-width:0 !important;
    padding:0 !important;
    gap:0 !important;
    justify-content:center !important;
  }

  .crm-main-nav{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow:hidden !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    border-top:none !important;
  }

  .crm-nav-link{
    flex:1 1 0 !important;
    min-width:0 !important;
    min-height:64px !important;
    height:64px !important;
    padding:0 8px !important;
    gap:6px !important;
    font-size:10px !important;
    border-bottom:3px solid transparent !important;
  }

  .crm-nav-link span:last-child{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  .crm-user-side{
    order:2 !important;
    flex:1 1 100% !important;
    min-height:50px !important;
    justify-content:flex-end !important;
    padding:6px 10px !important;
    gap:10px !important;
    border-left:none !important;
    border-top:1px solid rgba(255,255,255,.05) !important;
    background:linear-gradient(180deg,#353b45 0%,#2a2f37 100%) !important;
  }

  .crm-top-search{
    flex:0 1 170px !important;
    min-width:130px !important;
  }

  .crm-top-search-inline input{
    width:100% !important;
    height:34px !important;
    padding:0 12px !important;
    font-size:12px !important;
    border-radius:10px !important;
  }

  .crm-top-icon{
    width:34px !important;
    height:34px !important;
    font-size:15px !important;
  }

  .crm-user-avatar{
    width:38px !important;
    height:38px !important;
    font-size:16px !important;
  }

  .crm-user-link{
    gap:8px !important;
  }

  .crm-user-name{
    font-size:13px !important;
    line-height:1 !important;
  }

  .crm-user-role{
    font-size:10px !important;
    margin-top:2px !important;
    line-height:1 !important;
  }
}

@media (max-width: 1180px){
  .crm-nav-link{
    font-size:9px !important;
    padding:0 6px !important;
    gap:4px !important;
  }

  .crm-top-search{
    flex-basis:140px !important;
  }
}


/* STEP 148 definitive navbar + ticket stability */
.crm-topbar{
  display:grid !important;
  grid-template-columns:180px minmax(0,1fr) auto !important;
  grid-template-rows:72px !important;
  min-height:72px !important;
  height:72px !important;
  align-items:stretch !important;
  gap:0 !important;
}

.crm-brand-block,
.crm-top-center,
.crm-user-side{
  min-width:0;
}

.crm-top-center{
  padding:0 !important;
  display:flex !important;
  align-items:stretch !important;
}

.crm-main-nav{
  width:100%;
  display:grid !important;
  grid-auto-flow:column;
  grid-auto-columns:minmax(88px,1fr);
  align-items:stretch !important;
  justify-content:stretch !important;
  flex-wrap:nowrap !important;
  overflow:hidden !important;
}

.crm-nav-link{
  min-width:0 !important;
  height:72px !important;
  min-height:72px !important;
  padding:0 10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}

.crm-nav-link span:last-child{
  white-space:normal !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1.15 !important;
  text-align:center !important;
}

.crm-user-side{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  padding:0 10px !important;
}

@media (max-width: 1360px){
  .crm-topbar{
    grid-template-columns:160px minmax(0,1fr) !important;
    grid-template-rows:66px 48px !important;
    min-height:114px !important;
    height:114px !important;
  }

  .crm-brand-block{
    grid-column:1;
    grid-row:1;
    padding:0 8px !important;
    min-height:66px !important;
  }

  .crm-top-center{
    grid-column:2;
    grid-row:1;
    min-height:66px !important;
  }

  .crm-user-side{
    grid-column:1 / span 2;
    grid-row:2;
    min-height:48px !important;
    border-top:1px solid rgba(255,255,255,.06) !important;
    background:linear-gradient(180deg,#353b45 0%,#2a2f37 100%) !important;
    padding:6px 10px !important;
  }

  .crm-main-nav{
    grid-auto-columns:minmax(74px,1fr);
  }

  .crm-nav-link{
    height:66px !important;
    min-height:66px !important;
    padding:0 8px !important;
    gap:6px !important;
    font-size:11px !important;
  }

  .crm-nav-glyph{
    font-size:13px !important;
    min-width:13px !important;
  }

  .crm-top-search{
    flex:0 1 180px !important;
    min-width:150px !important;
  }

  .crm-top-search-inline input{
    width:100% !important;
    height:34px !important;
    font-size:12px !important;
  }
}

@media (max-width: 1180px){
  .crm-topbar{
    grid-template-columns:150px minmax(0,1fr) !important;
  }

  .crm-main-nav{
    overflow-x:auto !important;
    grid-auto-columns:minmax(96px,96px);
    justify-content:flex-start !important;
  }

  .crm-nav-link span:last-child{
    white-space:nowrap !important;
    display:block !important;
  }

  .crm-top-search-inline{
    display:none !important;
  }
}

.ticket-list-table .ticket-reply-btn{
  min-width:96px;
  text-align:center;
}

/* STEP 149 navbar rebuild from scratch */
.crm-topbar.crm-topbar-rebuild{
  display:grid !important;
  grid-template-columns:220px minmax(0,1fr) !important;
  grid-template-rows:auto !important;
  min-height:84px !important;
  height:auto !important;
  background:linear-gradient(180deg,#3f4550 0%,#2a2f37 100%) !important;
  box-shadow:0 2px 10px rgba(0,0,0,.18) !important;
  overflow:visible !important;
}

.crm-header-brand{
  grid-column:1;
  grid-row:1;
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:0 !important;
  border-right:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,#454b56 0%,#333944 100%);
}

.crm-header-brand-link{
  width:100%;
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  text-decoration:none;
}

.crm-header-brand-logo{
  width:100%;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.crm-header-main{
  grid-column:2;
  grid-row:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.crm-header-utility{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:8px 14px 6px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.crm-top-search-rebuilt{
  flex:0 1 300px !important;
  margin-right:2px;
}

.crm-top-search-rebuilt input{
  height:34px !important;
  border-radius:10px !important;
  background:#f4f5f7 !important;
}

.crm-top-icon-rebuilt{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.crm-user-chip-rebuilt .crm-user-link{
  min-height:40px;
  padding:4px 8px 4px 4px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.03);
}

.crm-header-nav-wrap{
  min-width:0;
  padding:8px 12px 10px;
}

.crm-main-nav.crm-main-nav-rebuilt{
  display:flex !important;
  align-items:stretch !important;
  gap:8px !important;
  width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:thin;
  padding-bottom:2px;
}

.crm-main-nav.crm-main-nav-rebuilt::-webkit-scrollbar{
  height:8px;
}

.crm-main-nav.crm-main-nav-rebuilt .crm-nav-link{
  flex:0 0 auto !important;
  min-width:118px !important;
  max-width:none !important;
  height:42px !important;
  min-height:42px !important;
  padding:0 14px !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.04) !important;
  border:1px solid rgba(255,255,255,.06) !important;
  justify-content:center !important;
  white-space:nowrap !important;
}

.crm-main-nav.crm-main-nav-rebuilt .crm-nav-link:hover{
  background:rgba(255,255,255,.08) !important;
}

.crm-main-nav.crm-main-nav-rebuilt .crm-nav-link.active{
  background:linear-gradient(180deg,#d9b24c 0%,#c79d36 100%) !important;
  color:#fff !important;
  border-color:rgba(0,0,0,.08) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}

.crm-main-nav.crm-main-nav-rebuilt .crm-nav-link span:last-child{
  white-space:nowrap !important;
  display:block !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1 !important;
}

@media (max-width: 1360px){
  .crm-topbar.crm-topbar-rebuild{
    grid-template-columns:180px minmax(0,1fr) !important;
  }

  .crm-header-brand-link{
    min-height:80px;
    padding:8px 12px;
  }

  .crm-header-brand-logo{
    height:46px;
  }

  .crm-header-utility{
    padding:7px 10px 5px;
    gap:8px;
  }

  .crm-top-search-rebuilt{
    flex-basis:220px !important;
  }

  .crm-main-nav.crm-main-nav-rebuilt .crm-nav-link{
    min-width:108px !important;
    padding:0 12px !important;
    font-size:12px !important;
  }
}

@media (max-width: 1180px){
  .crm-topbar.crm-topbar-rebuild{
    grid-template-columns:1fr !important;
  }

  .crm-header-brand{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.06);
  }

  .crm-header-brand-link{
    min-height:68px;
    justify-content:flex-start;
  }

  .crm-header-brand-logo{
    width:160px;
  }

  .crm-header-main{
    grid-column:1;
  }

  .crm-header-utility{
    justify-content:space-between;
    flex-wrap:wrap;
  }

  .crm-top-search-rebuilt{
    flex:1 1 100% !important;
    order:3;
    margin-top:4px;
  }
}

@media (max-width: 820px){
  .crm-main-nav.crm-main-nav-rebuilt .crm-nav-link{
    min-width:100px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 10px !important;
  }

  .crm-user-meta{
    display:none !important;
  }
}


/* STEP 150 clean single-row navbar */
.crm-topbar.crm-topbar-clean{
  display:flex !important;
  align-items:stretch;
  min-height:64px !important;
  height:64px !important;
  background:linear-gradient(180deg,#414753 0%,#2f343d 100%) !important;
  box-shadow:0 2px 10px rgba(0,0,0,.14) !important;
  overflow:hidden !important;
  position:sticky;
  top:0;
  z-index:80;
}

.crm-header-brand.crm-header-brand-clean{
  flex:0 0 210px;
  min-width:210px;
  border-right:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
}

.crm-header-brand-link.crm-header-brand-link-clean{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 16px;
  text-decoration:none;
}

.crm-header-brand-logo.crm-header-brand-logo-clean{
  width:100%;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.crm-header-main.crm-header-main-clean{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
}

.crm-header-nav-wrap.crm-header-nav-wrap-clean{
  flex:1 1 auto;
  min-width:0;
  height:64px;
  display:flex;
  align-items:center;
}

.crm-main-nav.crm-main-nav-clean{
  display:flex !important;
  align-items:center !important;
  gap:4px;
  min-width:0;
  width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none;
}

.crm-main-nav.crm-main-nav-clean::-webkit-scrollbar{display:none}

.crm-main-nav.crm-main-nav-clean .crm-nav-link{
  flex:0 0 auto !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 14px !important;
  min-width:auto !important;
  border:none !important;
  border-radius:10px !important;
  background:transparent !important;
  color:#f3f4f6 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px;
  white-space:nowrap;
  font-size:14px !important;
  font-weight:600;
}

.crm-main-nav.crm-main-nav-clean .crm-nav-link:hover{
  background:rgba(255,255,255,.06) !important;
}

.crm-main-nav.crm-main-nav-clean .crm-nav-link.active{
  background:rgba(217,173,65,.18) !important;
  color:#fff !important;
  box-shadow:inset 0 -2px 0 #d9ad41;
}

.crm-main-nav.crm-main-nav-clean .crm-nav-glyph{
  color:#d9ad41 !important;
  font-size:13px !important;
  margin-right:0 !important;
}

.crm-header-utility.crm-header-utility-clean{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  height:64px;
  padding-left:8px;
}

.crm-top-search-clean{
  flex:0 0 220px !important;
}

.crm-top-search-clean input{
  height:40px !important;
  border-radius:10px !important;
  background:#f4f5f7 !important;
  border:1px solid rgba(0,0,0,.06) !important;
}

.crm-top-icon-clean{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
}

.crm-user-chip-clean .crm-user-link{
  min-height:40px;
  padding:4px 8px 4px 4px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.06);
  gap:10px;
}

.crm-user-chip-clean .fa-caret-down,
.crm-user-chip-clean .dropdown-toggle::after{
  display:none !important;
}

.crm-user-chip-clean .crm-user-meta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.crm-user-chip-clean .crm-user-name{font-size:13px !important;font-weight:700}
.crm-user-chip-clean .crm-user-role{font-size:11px !important;opacity:.75}

.crm-shell{min-height:calc(100vh - 64px) !important;}

@media (max-width: 1500px){
  .crm-header-brand.crm-header-brand-clean{flex-basis:190px;min-width:190px}
  .crm-top-search-clean{flex-basis:190px !important}
  .crm-main-nav.crm-main-nav-clean .crm-nav-link{padding:0 12px !important;font-size:13px !important}
}

@media (max-width: 1360px){
  .crm-header-brand.crm-header-brand-clean{flex-basis:176px;min-width:176px}
  .crm-header-main.crm-header-main-clean{gap:8px;padding:0 10px}
  .crm-top-search-clean{flex-basis:170px !important}
  .crm-main-nav.crm-main-nav-clean .crm-nav-link{height:42px !important;padding:0 10px !important;font-size:12px !important;gap:6px}
  .crm-user-chip-clean .crm-user-name{font-size:12px !important}
}

@media (max-width: 1180px){
  .crm-topbar.crm-topbar-clean{height:auto !important;min-height:64px !important;flex-wrap:wrap}
  .crm-header-brand.crm-header-brand-clean{flex:0 0 100%;min-width:100%;border-right:0;border-bottom:1px solid rgba(255,255,255,.07)}
  .crm-header-brand-link.crm-header-brand-link-clean{height:58px}
  .crm-header-main.crm-header-main-clean{width:100%;padding:8px 10px;gap:10px;flex-wrap:wrap}
  .crm-header-nav-wrap.crm-header-nav-wrap-clean{order:2;width:100%;height:auto}
  .crm-header-utility.crm-header-utility-clean{order:1;width:100%;height:auto;justify-content:flex-end;padding-left:0}
  .crm-top-search-clean{flex:1 1 180px !important}
  .crm-shell{min-height:calc(100vh - 116px) !important;}
}

@media (max-width: 820px){
  .crm-top-search-clean{display:none !important}
  .crm-user-chip-clean .crm-user-meta{display:none}
  .crm-header-main.crm-header-main-clean{padding:6px 8px}
}

/* STEP 151 full navigation redesign: vertical primary nav + slim utility topbar */
body.crm-body-darknav.crm-body-appnav,
body.crm-body-darknav{
  background:#eef1f5 !important;
}

.crm-app-frame{
  display:flex;
  min-height:100vh;
  width:100%;
}

.crm-primary-nav{
  width:228px;
  flex:0 0 228px;
  background:linear-gradient(180deg,#3e4551 0%,#2a2f38 100%);
  border-right:1px solid rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
  z-index:70;
  box-shadow:2px 0 14px rgba(0,0,0,.08);
}

.crm-primary-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:96px;
  padding:18px 18px 16px;
  border-bottom:1px solid rgba(255,255,255,.07);
  text-decoration:none;
}

.crm-primary-brand-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

.crm-primary-brand .crm-brand-logo-image{
  width:100%;
  max-width:190px;
  height:auto;
  object-fit:contain;
}

.crm-primary-menu{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px 14px 20px;
  overflow:auto;
}

.crm-primary-link{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:0 14px;
  border-radius:12px;
  color:rgba(255,255,255,.88);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.01em;
  border:1px solid rgba(255,255,255,.04);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.crm-primary-link:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(224,177,53,.18);
  color:#fff;
  transform:translateX(2px);
}

.crm-primary-link.active{
  background:linear-gradient(180deg,#d8b04a 0%,#b88e2f 100%);
  color:#fff;
  border-color:rgba(255,255,255,.18);
  box-shadow:0 8px 18px rgba(143,104,18,.22);
}

.crm-primary-icon{
  width:18px;
  text-align:center;
  color:#e0b441;
  font-size:13px;
  flex:0 0 18px;
}

.crm-primary-link.active .crm-primary-icon{
  color:#fff8df;
}

.crm-primary-label{
  display:block;
  line-height:1.15;
}

.crm-main-frame{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.crm-utility-topbar{
  height:68px;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 24px;
  background:#ffffff;
  border-bottom:1px solid #dde3ea;
  position:sticky;
  top:0;
  z-index:65;
}

.crm-utility-title{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.crm-utility-section{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#9aa3af;
  font-weight:800;
}

.crm-utility-page{
  font-size:20px;
  line-height:1.1;
  color:#374151;
  font-weight:800;
}

.crm-utility-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}

.crm-utility-search{
  margin:0;
}

.crm-utility-search input{
  width:320px;
  max-width:40vw;
  height:42px;
  border-radius:12px;
  border:1px solid #d7dde5;
  background:#f8fafc;
  padding:0 14px;
  font-size:14px;
  outline:none;
}

.crm-utility-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:#f8fafc;
  border:1px solid #d7dde5;
  color:#475569;
}

.crm-user-chip-app{
  background:#f8fafc;
  border:1px solid #d7dde5;
  border-radius:14px;
  padding:4px 8px 4px 4px;
}

.crm-user-chip-app .crm-user-link{
  min-height:42px;
}

.crm-user-chip-app .crm-user-avatar{
  background:#e5e7eb;
  color:#4b5563;
}

.crm-shell{
  min-height:calc(100vh - 68px) !important;
}

.crm-sidebar{
  width:210px !important;
  flex:0 0 210px !important;
  padding-top:12px !important;
}

.crm-content-area.crm-content-ticket,
.crm-content-area.crm-content-full,
.crm-content-area{
  padding:22px 24px 36px !important;
  background:#eef1f5 !important;
}

@media (max-width: 1500px){
  .crm-primary-nav{
    width:208px;
    flex-basis:208px;
  }
  .crm-primary-brand .crm-brand-logo-image{
    max-width:172px;
  }
  .crm-utility-search input{
    width:260px;
  }
  .crm-sidebar{
    width:190px !important;
    flex-basis:190px !important;
  }
}

@media (max-width: 1280px){
  .crm-primary-nav{
    width:86px;
    flex-basis:86px;
  }
  .crm-primary-brand{
    min-height:82px;
    padding:14px 10px;
  }
  .crm-primary-brand .crm-brand-logo-image{
    max-width:58px;
  }
  .crm-primary-menu{
    padding-left:10px;
    padding-right:10px;
  }
  .crm-primary-link{
    justify-content:center;
    padding:0;
  }
  .crm-primary-label,
  .crm-utility-title{
    display:none;
  }
  .crm-utility-topbar{
    padding-left:16px;
    padding-right:16px;
  }
  .crm-utility-actions{
    width:100%;
  }
  .crm-utility-search{
    flex:1;
  }
  .crm-utility-search input{
    width:100%;
    max-width:none;
  }
}


/* step152 horizontal top navigation rebuild */
.crm-app-frame-horizontal{display:block;min-height:100vh;background:#eef1f5;}
.crm-top-header{position:sticky;top:0;z-index:80;background:linear-gradient(180deg,#3e4551 0%,#2a2f38 100%);box-shadow:0 2px 12px rgba(0,0,0,.12);}
.crm-top-header-row{display:flex;align-items:center;min-width:0;}
.crm-top-header-utility{height:72px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.06);gap:18px;}
.crm-top-brand{display:flex;align-items:center;flex:0 0 auto;text-decoration:none;padding-right:12px;}
.crm-top-brand .crm-brand-logo-image{width:auto;height:46px;max-width:210px;object-fit:contain;display:block;}
.crm-top-tools{margin-left:auto;display:flex;align-items:center;gap:12px;min-width:0;}
.crm-top-header-nav{height:52px;padding:0 12px;}
.crm-horizontal-menu{display:flex;align-items:stretch;gap:2px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;}
.crm-horizontal-menu::-webkit-scrollbar{height:6px;}
.crm-horizontal-menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px;}
.crm-horizontal-link{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 16px;white-space:nowrap;color:rgba(255,255,255,.9);text-decoration:none;font-size:14px;font-weight:700;border-bottom:3px solid transparent;flex:0 0 auto;transition:background .18s ease,color .18s ease,border-color .18s ease;}
.crm-horizontal-link:hover{color:#fff;background:rgba(255,255,255,.05);}
.crm-horizontal-link.active{color:#fff;border-bottom-color:#d8b04a;background:rgba(216,176,74,.10);}
.crm-horizontal-icon{color:#ddb54d;font-size:12px;width:14px;text-align:center;flex:0 0 14px;}
.crm-horizontal-link.active .crm-horizontal-icon{color:#f5d57a;}
.crm-main-frame-horizontal{display:block;min-width:0;}
.crm-shell{min-height:calc(100vh - 124px) !important;}
.crm-utility-search input{width:300px;max-width:32vw;height:42px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.92);padding:0 14px;font-size:14px;outline:none;}
.crm-utility-icon{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);color:#fff;}
.crm-user-chip-app{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);}
.crm-user-chip-app .crm-user-avatar{background:rgba(255,255,255,.88);color:#495364;}
.crm-user-chip-app .crm-user-name{color:#fff;}
.crm-user-chip-app .crm-user-role{color:rgba(255,255,255,.7);}
.crm-content-area.crm-content-ticket,.crm-content-area.crm-content-full,.crm-content-area{padding:18px 22px 34px !important;background:#eef1f5 !important;}
.crm-sidebar{width:205px !important;flex:0 0 205px !important;padding-top:10px !important;}

@media (max-width: 1500px){
  .crm-top-header-utility{padding:0 14px;gap:12px;}
  .crm-top-brand .crm-brand-logo-image{height:40px;max-width:185px;}
  .crm-horizontal-link{padding:0 13px;font-size:13px;}
  .crm-utility-search input{width:240px;max-width:26vw;}
  .crm-sidebar{width:188px !important;flex:0 0 188px !important;}
}

@media (max-width: 1280px){
  .crm-top-header-utility{height:64px;}
  .crm-top-header-nav{height:46px;}
  .crm-horizontal-link{height:46px;padding:0 11px;font-size:12px;gap:8px;}
  .crm-horizontal-icon{font-size:11px;width:12px;flex-basis:12px;}
  .crm-top-brand .crm-brand-logo-image{height:34px;max-width:158px;}
  .crm-user-meta{display:none;}
  .crm-utility-search input{width:210px;max-width:24vw;height:38px;}
  .crm-shell{min-height:calc(100vh - 110px) !important;}
}


/* step153 practice table compact width */
.practice-list-table{table-layout:fixed !important;width:100% !important}
.practice-list-table thead th,.practice-list-table tbody td{overflow:hidden}
.practice-list-table thead th{font-size:11px !important;padding:0 6px !important;line-height:1.1}
.practice-list-table tbody td{font-size:11px !important;padding:6px 6px !important;line-height:1.15}
.practice-list-table .col-id,.practice-list-table td:first-child{width:54px !important;min-width:54px !important;max-width:54px !important}
.practice-list-table .col-date{width:78px !important;min-width:78px !important;max-width:78px !important}
.practice-list-table .col-client{width:160px !important;min-width:160px !important;max-width:160px !important}
.practice-list-table .col-type{width:56px !important;min-width:56px !important;max-width:56px !important}
.practice-list-table .col-status{width:92px !important;min-width:92px !important;max-width:92px !important}
.practice-list-table .col-assignee{width:86px !important;min-width:86px !important;max-width:86px !important}
.practice-list-table .col-priority{width:64px !important;min-width:64px !important;max-width:64px !important}
.practice-list-table .col-supplier{width:84px !important;min-width:84px !important;max-width:84px !important}
.practice-list-table .col-product{width:180px !important;min-width:180px !important;max-width:180px !important}
.practice-list-table .col-contact{width:116px !important;min-width:116px !important;max-width:116px !important}
.practice-list-table .col-related{width:72px !important;min-width:72px !important;max-width:72px !important}
.practice-list-table .col-actions{width:56px !important;min-width:56px !important;max-width:56px !important}
.practice-list-table td.col-date,.practice-list-table td.col-type,.practice-list-table td.col-status,.practice-list-table td.col-assignee,.practice-list-table td.col-priority,.practice-list-table td.col-supplier,.practice-list-table td.col-product,.practice-list-table td.col-related,.practice-list-table td.col-actions{white-space:nowrap !important;text-overflow:ellipsis !important}
.practice-list-table td.col-contact{white-space:normal !important;word-break:break-word;overflow-wrap:anywhere;line-height:1.1}
.practice-list-table .table-status,.practice-list-table .status-badge,.practice-list-table .practice-status-badge{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10.5px !important;padding:2px 4px !important}
.practice-list-table .related-practices-list{gap:3px !important;flex-wrap:nowrap !important;overflow:hidden}
.practice-list-table .related-practice-link,.practice-list-table .related-more{font-size:10px !important;white-space:nowrap}
.practice-list-table .grid-open-link{font-size:11px !important;white-space:nowrap}
.practice-list-table .grid-client-link{font-size:11px !important}
.practice-list-table .table-sort-link{gap:4px !important}
.practice-list-table .sort-indicator{font-size:10px !important}
.column-filter-row .table-col-filter{height:30px !important;padding:4px 6px !important;font-size:11px !important}

/* Compact list corrections */
.pd-list-shell .column-filter-row{display:table-row !important}
.pd-list-shell .column-filter-row th{height:34px !important;padding:4px 6px !important;background:#fff !important;border-right:1px solid #d7dce3 !important;border-bottom:1px solid #d7dce3 !important}
.pd-list-shell .column-filter-row .table-col-filter{width:100%;min-width:0;height:26px !important;padding:3px 6px !important;border:1px solid #cfd6df;border-radius:3px;background:#fff;color:#172033;font-size:11px !important;line-height:1.2}
.pd-list-shell .column-filter-row .table-col-filter::placeholder{color:#8a94a6}
.pd-clients-list .grid-table thead th,.pd-clients-list .grid-table tbody td{font-size:13px !important}
.pd-clients-list .table-sort-link{font-size:13px !important}
.pd-clients-list .ticket-client-link,.pd-clients-list .grid-client-link{font-size:13px !important}
.pd-clients-list .grid-table{min-width:1580px}
.pd-clients-list col[data-col-key="id"],.pd-clients-list th[data-col-key="id"],.pd-clients-list td:nth-child(1){width:56px !important;max-width:56px !important}
.pd-clients-list col[data-col-key="client"],.pd-clients-list th[data-col-key="client"],.pd-clients-list td:nth-child(2){width:330px !important;max-width:330px !important}
.pd-clients-list col[data-col-key="type"],.pd-clients-list th[data-col-key="type"],.pd-clients-list td:nth-child(3){width:78px !important;max-width:78px !important}
.pd-clients-list col[data-col-key="city"],.pd-clients-list th[data-col-key="city"],.pd-clients-list td:nth-child(4){width:105px !important;max-width:105px !important}
.pd-clients-list col[data-col-key="fiscal"],.pd-clients-list th[data-col-key="fiscal"],.pd-clients-list td:nth-child(5){width:180px !important;max-width:180px !important}
.pd-clients-list col[data-col-key="contacts"],.pd-clients-list th[data-col-key="contacts"],.pd-clients-list td:nth-child(6){width:270px !important;max-width:270px !important}
.pd-clients-list col[data-col-key="agent"],.pd-clients-list th[data-col-key="agent"],.pd-clients-list td:nth-child(7){width:170px !important;max-width:170px !important}
.pd-clients-list col[data-col-key="referent"],.pd-clients-list th[data-col-key="referent"],.pd-clients-list td:nth-child(8){width:200px !important;max-width:200px !important}
.pd-clients-list col[data-col-key="practices"],.pd-clients-list th[data-col-key="practices"],.pd-clients-list td:nth-child(9){width:70px !important;max-width:70px !important;text-align:center}
.pd-clients-list col[data-col-key="tickets"],.pd-clients-list th[data-col-key="tickets"],.pd-clients-list td:nth-child(10){width:60px !important;max-width:60px !important;text-align:center}
.pd-clients-list col[data-col-key="actions"],.pd-clients-list th[data-col-key="actions"],.pd-clients-list td:nth-child(11){width:62px !important;max-width:62px !important;text-align:center}
.pd-practices-list .grid-open-link{width:auto;height:auto;color:#0065d8 !important;font-size:12px !important;font-weight:700 !important}
.pd-practices-list .grid-open-link:after{content:none !important}

/* step183 ticket fallback + narrower left rail */
.crm-sidebar{width:168px !important;flex:0 0 168px !important}
.crm-content-ticket{padding-left:8px !important}
.crm-sidebar-dark .sidebar-group{padding:0 12px 8px !important}
.crm-sidebar-dark .sidebar-title,.crm-sidebar-dark .sidebar-title-main{font-size:12px !important;padding-top:10px !important;padding-bottom:4px !important}
.crm-sidebar-dark .sidebar-link{min-height:40px !important;height:40px !important;font-size:13px !important;padding:0 6px !important;gap:8px !important}
.crm-sidebar-dark .sidebar-link.active{margin:0 -12px !important;padding-left:18px !important;padding-right:12px !important}
.crm-sidebar-dark .sidebar-link:hover{color:#fff !important;background:rgba(255,255,255,.06) !important;text-decoration:none !important}
.crm-sidebar-dark .sidebar-link.active:hover{color:#fff !important;background:#e0ad19 !important}
.crm-sidebar-dark .sidebar-badge{margin-left:auto;font-size:10px;padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff}

/* STEP184 practices columns rebalance + related practices wrap */
.practice-list-table .col-id,.practice-list-table td:first-child{width:46px !important;min-width:46px !important;max-width:46px !important}
.practice-list-table .col-date{width:72px !important;min-width:72px !important;max-width:72px !important}
.practice-list-table .col-type{width:52px !important;min-width:52px !important;max-width:52px !important}
.practice-list-table .col-status{width:82px !important;min-width:82px !important;max-width:82px !important}
.practice-list-table .col-priority{width:58px !important;min-width:58px !important;max-width:58px !important}
.practice-list-table .col-actions{width:54px !important;min-width:54px !important;max-width:54px !important}
.practice-list-table .col-related{width:180px !important;min-width:180px !important;max-width:180px !important}
.practice-list-table .col-assignee{width:78px !important;min-width:78px !important;max-width:78px !important}
.practice-list-table td.col-related{white-space:normal !important;overflow:visible !important;text-overflow:clip !important;vertical-align:top !important}
.practice-list-table .related-practices-list{display:flex;flex-wrap:wrap !important;gap:4px !important;overflow:visible !important}
.practice-list-table .related-practice-link,.practice-list-table .related-more{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:2px 6px;white-space:nowrap !important}

.column-order-field small.column-order-width-label{display:block;margin:6px 0 4px;color:#6b7280;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.crm-client-form-page,.crm-practice-form-page,.crm-practice-detail-page{max-width:1460px}


.practice-top-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.practice-title-filters{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.practice-inline-buckets{display:flex;gap:8px;flex-wrap:wrap;margin:0}.practice-inline-buckets .desk-btn{min-width:0}.practice-list-table{table-layout:fixed;width:100%}.practice-list-table .col-referent,.practice-list-table .col-related,.practice-list-table .col-contact,.practice-list-table .col-product,.practice-list-table .col-client{overflow:hidden;text-overflow:ellipsis}.practice-list-table .col-actions{white-space:nowrap} .column-order-width-label{display:block;margin-top:8px;margin-bottom:4px;color:#667085;font-size:12px;font-weight:700;text-transform:uppercase} @media (max-width: 992px){.practice-title-filters{flex-direction:column;align-items:flex-start}}


/* step201 practice form fixes */
.crm-practice-form-page{max-width:none !important;width:100% !important}
.crm-practice-form-page .crm-client-form,.crm-practice-form-page .crm-practice-form{max-width:none !important;width:100% !important}
.practice-date-row{margin-top:12px}
.practice-date-row .crm-field{padding-top:4px}
@media (min-width:1400px){.crm-practice-form-page .crm-form-grid-3{grid-template-columns:1.15fr 1fr 1fr}.crm-practice-form-page .row.g-3{--bs-gutter-x:1rem;--bs-gutter-y:1rem}}

.searchable-select-wrapper{position:relative;display:block}.searchable-select-wrapper select{display:none !important}.searchable-select-trigger{width:100%;text-align:left;background:#fff;padding-right:34px;position:relative}.searchable-select-trigger::after{content:"";position:absolute;right:12px;top:50%;margin-top:-2px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #555}.searchable-select-panel{display:none;position:absolute;left:0;right:0;top:calc(100% + 2px);background:#fff;border:1px solid #bfc8d5;z-index:2000;box-shadow:0 8px 16px rgba(0,0,0,.08)}.searchable-select-wrapper.open .searchable-select-panel{display:block}.searchable-select-input{min-height:34px;font-size:13px;border:0;border-bottom:1px solid #d9e0ea;border-radius:0;padding:8px 10px}.searchable-select-input:focus{box-shadow:none;border-color:#d9e0ea}.searchable-select-options{max-height:240px;overflow:auto}.searchable-select-option,.searchable-select-empty{display:block;width:100%;text-align:left;padding:9px 12px;border:0;background:#fff;font-size:14px}.searchable-select-option:hover,.searchable-select-option.active{background:#2f6fdd;color:#fff}.searchable-select-empty{color:#667085}.crm-form-foot-actions{margin-top:24px;padding-top:18px;border-top:1px solid #e3e8ef}

/* step216 practice form/detail cleanup */
.crm-practice-form-page{max-width:none !important;width:100% !important}
.crm-practice-form-page .crm-client-form,.crm-practice-form-page .crm-practice-form{max-width:none !important;width:100% !important}
.practice-top-grid{grid-template-columns:1.3fr 1fr 1fr !important}
.practice-date-row{margin-top:14px}
.doc-chip-list .doc-chip{min-height:28px;height:auto;line-height:1.25;padding:6px 10px;justify-content:flex-start;gap:6px;max-width:100%;white-space:normal}
.doc-chip-list .doc-chip strong{font-weight:700}
.practice-detail-page{max-width:none !important;width:100% !important}
.practice-detail-page .section-card{padding:20px 22px}
.practice-detail-hero{margin-bottom:18px}
.practice-hero-grid{grid-template-columns:120px 1fr !important;gap:22px}
.practice-hero-meta{grid-template-columns:1fr auto !important;align-items:start}
.practice-hero-datebox{text-align:right;min-width:180px}
.practice-detail-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.practice-data-card{background:#fafafa}
.practice-data-title{font-size:20px !important;margin-bottom:14px !important}
.practice-data-list{display:grid;grid-template-columns:1fr;gap:12px}
.practice-data-list > div{padding-bottom:10px;border-bottom:1px solid #ececec}
.practice-data-list > div:last-child{border-bottom:0;padding-bottom:0}
.practice-data-list span{display:block;font-size:12px;color:#6c7686;margin-bottom:3px;text-transform:uppercase;letter-spacing:.03em}
.practice-data-list strong{display:block;font-size:18px;color:#2e3f57;font-weight:600;word-break:break-word}
.practice-data-list strong .status-pill{font-size:12px}
@media (max-width:1300px){.practice-detail-summary-grid{grid-template-columns:1fr 1fr}}
@media (max-width:900px){.practice-top-grid{grid-template-columns:1fr !important}.practice-detail-summary-grid{grid-template-columns:1fr}.practice-hero-grid{grid-template-columns:1fr !important}.practice-hero-datebox{text-align:left;min-width:0}}


.crm-client-form-page-wide,.crm-practice-form-page-wide{max-width:none !important;width:100% !important}
.crm-client-form-page-wide .crm-client-form,.crm-practice-form-page-wide .crm-practice-form{width:100%}
.practice-detail-summary-grid-alt{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;margin-bottom:18px}
.practice-data-card-wide{grid-column:span 1}
.practice-data-card-dates{grid-column:1 / -1}
.practice-detail-kv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
.practice-detail-kv-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}
.practice-detail-kv-grid > div{padding:0 0 12px;border-bottom:1px solid #e6ebf2}
.practice-detail-kv-grid span{display:block;font-size:12px;letter-spacing:.04em;color:#697586;text-transform:uppercase;margin-bottom:6px}
.practice-detail-kv-grid strong{display:block;font-size:16px;color:#233b63;line-height:1.35}
.practice-detail-kv-grid a{color:#2f6fdd;text-decoration:none}
@media (max-width:1200px){.practice-detail-summary-grid-alt{grid-template-columns:1fr}.practice-data-card-dates{grid-column:auto}.practice-detail-kv-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:700px){.practice-detail-kv-grid,.practice-detail-kv-grid.compact{grid-template-columns:1fr}}

/* codex practice form summary + steps final override */
.crm-practice-form .practice-live-summary{
  display:grid !important;
  grid-template-columns:minmax(320px,.8fr) minmax(0,1.6fr) !important;
  gap:18px !important;
  align-items:stretch !important;
  background:#fff !important;
  border:1px solid #d8dee8 !important;
  box-shadow:0 1px 3px rgba(15,23,42,.08) !important;
  padding:18px 20px !important;
  margin:0 0 18px !important;
}
.crm-practice-form .practice-live-summary-main{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  min-width:0 !important;
  border-right:1px solid #e4e9f0 !important;
  padding-right:18px !important;
}
.crm-practice-form .practice-live-summary-icon{
  width:54px !important;
  height:54px !important;
  flex:0 0 54px !important;
  border-radius:8px !important;
  background:#f3f7fc !important;
  border:1px solid #dfe7f2 !important;
  color:#2f6fdd !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:26px !important;
  line-height:1 !important;
}
.crm-practice-form .practice-live-summary-titleblock{
  display:grid !important;
  gap:3px !important;
  min-width:0 !important;
}
.crm-practice-form .practice-live-summary-kicker{
  display:block !important;
  font-size:11px !important;
  line-height:1.2 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  color:#7b8797 !important;
  font-weight:800 !important;
}
.crm-practice-form .practice-live-summary-titleblock strong{
  display:block !important;
  font-size:22px !important;
  line-height:1.15 !important;
  color:#2e3f57 !important;
  font-weight:800 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.crm-practice-form .practice-live-summary-titleblock small{
  display:block !important;
  font-size:13px !important;
  line-height:1.25 !important;
  color:#657386 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.crm-practice-form .practice-live-summary-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px 14px !important;
  align-content:center !important;
}
.crm-practice-form .practice-live-summary-grid div{
  display:block !important;
  min-width:0 !important;
  padding:10px 12px !important;
  background:#f8fafc !important;
  border:1px solid #e7ecf3 !important;
}
.crm-practice-form .practice-live-summary-grid span{
  display:block !important;
  margin:0 0 4px !important;
  font-size:10px !important;
  line-height:1.1 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
  color:#7c8796 !important;
  font-weight:800 !important;
}
.crm-practice-form .practice-live-summary-grid strong{
  display:block !important;
  color:#2f3f55 !important;
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.crm-practice-form .practice-form-tabs-shell{
  display:block !important;
  background:transparent !important;
  border:0 !important;
  margin:0 0 18px !important;
}
.crm-practice-form .practice-form-tabs{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:10px !important;
  padding:0 !important;
  margin:0 0 12px !important;
  background:transparent !important;
  border:0 !important;
}
.crm-practice-form .practice-form-tabs .nav-item{
  min-width:0 !important;
  margin:0 !important;
}
.crm-practice-form .practice-form-tab{
  width:100% !important;
  min-height:74px !important;
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) !important;
  grid-template-rows:auto auto !important;
  column-gap:10px !important;
  row-gap:3px !important;
  align-items:center !important;
  padding:12px !important;
  border:1px solid #d9e0e9 !important;
  border-radius:0 !important;
  background:#fff !important;
  color:#4f5968 !important;
  text-align:left !important;
  box-shadow:0 1px 3px rgba(15,23,42,.05) !important;
  appearance:none !important;
}
.crm-practice-form .practice-form-tab span{
  grid-row:1 / span 2 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  border-radius:8px !important;
  background:#edf1f6 !important;
  color:#5c6675 !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:800 !important;
}
.crm-practice-form .practice-form-tab strong{
  display:block !important;
  min-width:0 !important;
  color:#2f3d52 !important;
  font-size:13px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.crm-practice-form .practice-form-tab small{
  display:block !important;
  min-width:0 !important;
  color:#7b8797 !important;
  font-size:11px !important;
  line-height:1.15 !important;
  font-weight:600 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.crm-practice-form .practice-form-tab.active{
  background:#f8fbff !important;
  border-color:#6fa3eb !important;
  box-shadow:0 8px 18px rgba(31,111,209,.12), inset 0 3px 0 #1f6fd1 !important;
  transform:none !important;
}
.crm-practice-form .practice-form-tab.active span{
  background:#1f6fd1 !important;
  color:#fff !important;
}
.crm-practice-form .practice-form-tab.active strong{
  color:#1f4f8f !important;
}
@media (max-width:1200px){
  .crm-practice-form .practice-live-summary{grid-template-columns:1fr !important}
  .crm-practice-form .practice-live-summary-main{border-right:0 !important;border-bottom:1px solid #e4e9f0 !important;padding-right:0 !important;padding-bottom:14px !important}
  .crm-practice-form .practice-live-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .crm-practice-form .practice-form-tabs{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media (max-width:700px){
  .crm-practice-form .practice-live-summary-grid,
  .crm-practice-form .practice-form-tabs{grid-template-columns:1fr !important}
  .crm-practice-form .practice-live-summary-titleblock strong,
  .crm-practice-form .practice-live-summary-titleblock small{white-space:normal !important}
}

/* codex pcplus-style new practice editor */
.crm-practice-form-page-wide{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
}
.crm-practice-form{
  --pc-bg:#f4f4f6;
  --pc-panel:#fff;
  --pc-line:#dfe3e8;
  --pc-line-dark:#c8cdd3;
  --pc-text:#07111f;
  --pc-muted:#344054;
  --pc-green:#2d8f4e;
  --pc-green-dark:#257541;
  --pc-blue:#0b66d8;
  --pc-purple:#6754e2;
  font-family:Arial,Helvetica,sans-serif !important;
  color:var(--pc-text) !important;
  background:var(--pc-bg) !important;
  min-height:calc(100vh - 124px) !important;
  display:flex !important;
  flex-direction:column !important;
}
.crm-practice-form > .crm-form-head:first-of-type{
  min-height:86px !important;
  background:#fff !important;
  border:0 !important;
  border-bottom:1px solid var(--pc-line) !important;
  box-shadow:none !important;
  padding:14px 24px 12px 16px !important;
  margin:0 !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
}
.crm-practice-form .crm-form-title{
  margin:0 0 6px !important;
  font-size:26px !important;
  line-height:1.2 !important;
  font-weight:400 !important;
  color:var(--pc-text) !important;
}
.crm-practice-form > .crm-form-head:first-of-type:after{
  content:none !important;
  display:none !important;
  position:absolute;
  margin-top:38px;
  left:16px;
  color:var(--pc-muted);
  font-size:13px;
}
.crm-practice-form .crm-form-actions{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.crm-practice-form .desk-btn{
  height:32px !important;
  min-height:32px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid var(--pc-line-dark) !important;
  border-radius:3px !important;
  background:#fff !important;
  color:#111827 !important;
  padding:0 14px !important;
  font-size:13px !important;
  font-weight:700 !important;
  box-shadow:none !important;
  text-decoration:none !important;
}
.crm-practice-form .desk-btn-primary{
  background:var(--pc-green) !important;
  border-color:var(--pc-green) !important;
  color:#fff !important;
}
.crm-practice-form .desk-btn-primary:hover{
  background:var(--pc-green-dark) !important;
  border-color:var(--pc-green-dark) !important;
}
.crm-practice-form .practice-pcplus-editor{
  display:grid !important;
  grid-template-columns:minmax(560px,1fr) minmax(360px,52%) !important;
  min-height:calc(100vh - 250px) !important;
  background:var(--pc-bg) !important;
}
.crm-practice-form .practice-pcplus-main{
  min-width:0 !important;
  background:#fff !important;
  border-right:1px solid #d9dde3 !important;
  padding:0 !important;
}
.crm-practice-form .practice-pcplus-aside{
  min-width:0 !important;
  background:var(--pc-bg) !important;
  padding:22px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
}
.crm-practice-form .practice-form-tabs-shell{
  display:block !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
}
.crm-practice-form .practice-form-tabs{
  height:48px !important;
  display:flex !important;
  align-items:flex-end !important;
  gap:22px !important;
  padding:0 16px !important;
  margin:0 !important;
  background:#fff !important;
  border-bottom:1px solid var(--pc-line) !important;
}
.crm-practice-form .practice-form-tabs .nav-item{
  margin:0 !important;
  min-width:0 !important;
}
.crm-practice-form .practice-form-tab{
  width:auto !important;
  min-height:35px !important;
  height:35px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  padding:0 !important;
  border:0 !important;
  border-bottom:2px solid transparent !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--pc-muted) !important;
  font-size:14px !important;
  font-weight:700 !important;
  text-align:left !important;
}
.crm-practice-form .practice-form-tab.active{
  color:#4d3ec7 !important;
  border-bottom-color:var(--pc-purple) !important;
  background:transparent !important;
  box-shadow:none !important;
}
.crm-practice-form .practice-form-tab strong{
  display:inline !important;
  color:inherit !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:700 !important;
  white-space:nowrap !important;
}
.crm-practice-form .practice-tab-ico,
.crm-practice-form .practice-section-ico{
  display:inline-grid !important;
  place-items:center !important;
  flex:0 0 auto !important;
  border-radius:6px !important;
  color:#fff !important;
  font-weight:900 !important;
  line-height:1 !important;
}
.crm-practice-form .practice-tab-ico{
  width:22px !important;
  height:22px !important;
  font-size:12px !important;
}
.crm-practice-form .practice-section-ico{
  width:26px !important;
  height:26px !important;
  margin-right:8px !important;
  font-size:12px !important;
}
.crm-practice-form .practice-tab-ico.customer,.crm-practice-form .practice-section-ico.customer{background:#0b66d8 !important}
.crm-practice-form .practice-tab-ico.contract,.crm-practice-form .practice-section-ico.contract{background:#7c6cf2 !important}
.crm-practice-form .practice-tab-ico.supply,.crm-practice-form .practice-section-ico.supply{background:#f59f00 !important}
.crm-practice-form .practice-tab-ico.notes,.crm-practice-form .practice-section-ico.notes{background:#2d8f4e !important}
.crm-practice-form .practice-tab-ico.docs,.crm-practice-form .practice-section-ico.docs{background:#0d9488 !important}
.crm-practice-form .practice-section-ico.summary{background:#667085 !important}
.crm-practice-form .practice-section-ico.progress{background:#9b59b6 !important}
.crm-practice-form .practice-tab-ico.customer:before{content:"C"}
.crm-practice-form .practice-tab-ico.contract:before{content:"D"}
.crm-practice-form .practice-tab-ico.supply:before{content:"F"}
.crm-practice-form .practice-tab-ico.notes:before{content:"N"}
.crm-practice-form .practice-tab-ico.docs:before{content:"Doc";font-size:9px}
.crm-practice-form .practice-section-ico.summary:before{content:"i"}
.crm-practice-form .practice-section-ico.progress:before{content:">"}
.crm-practice-form .practice-form-tab-content{
  padding:22px 28px !important;
  background:#fff !important;
}
.crm-practice-form .practice-form-tab-content .crm-form-section{
  border:0 !important;
  border-bottom:1px solid var(--pc-line) !important;
  background:#fff !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 0 24px !important;
  margin:0 0 24px !important;
}
.crm-practice-form .practice-form-tab-content .crm-form-section:last-child{
  border-bottom:0 !important;
}
.crm-practice-form .crm-section-title{
  display:flex !important;
  align-items:center !important;
  margin:0 0 18px !important;
  font-size:21px !important;
  line-height:1.2 !important;
  font-weight:400 !important;
  color:var(--pc-text) !important;
}
.crm-practice-form .crm-field label,
.crm-practice-form .form-label{
  color:#111827 !important;
  font-size:12px !important;
  font-weight:700 !important;
  margin-bottom:7px !important;
}
.crm-practice-form .form-control,
.crm-practice-form .form-select,
.crm-practice-form .searchable-select-trigger{
  height:36px !important;
  min-height:36px !important;
  border:1px solid var(--pc-line-dark) !important;
  border-radius:3px !important;
  background:#fff !important;
  padding:0 12px !important;
  color:var(--pc-text) !important;
  font-size:13px !important;
  box-shadow:none !important;
}
.crm-practice-form textarea.form-control,
.crm-practice-form textarea.form-control.crm-notes-area{
  height:auto !important;
  min-height:112px !important;
  padding:10px 12px !important;
  resize:vertical !important;
}
.crm-practice-form .form-control:focus,
.crm-practice-form .form-select:focus,
.crm-practice-form .searchable-select-trigger:focus{
  outline:1px solid var(--pc-blue) !important;
  outline-offset:-1px !important;
  box-shadow:none !important;
}
.crm-practice-form .practice-top-grid,
.crm-practice-form .crm-form-grid{
  gap:16px 30px !important;
}
.crm-practice-form .practice-type-guide-compact{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
  margin-bottom:18px !important;
}
.crm-practice-form .practice-type-guide-card{
  min-height:84px !important;
  background:#fff !important;
  border:1px solid #d3d8df !important;
  border-radius:4px !important;
  box-shadow:none !important;
  padding:14px 16px !important;
}
.crm-practice-form .practice-type-guide-card.active{
  border-color:#77a7f2 !important;
  background:#f6faff !important;
  box-shadow:inset 0 0 0 1px #77a7f2 !important;
}
.crm-practice-form .practice-type-guide-head strong{
  color:var(--pc-text) !important;
  font-size:16px !important;
}
.crm-practice-form .practice-type-guide-summary{
  color:#344054 !important;
  font-size:12px !important;
}
.crm-practice-form .practice-pcplus-aside section,
.crm-practice-form .practice-live-summary,
.crm-practice-form .practice-progress-card{
  display:block !important;
  background:#fff !important;
  border:1px solid #d3d8df !important;
  border-radius:4px !important;
  box-shadow:none !important;
  padding:16px !important;
  margin:0 !important;
}
.crm-practice-form .practice-pcplus-aside h3{
  display:flex !important;
  align-items:center !important;
  margin:0 0 14px !important;
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  color:var(--pc-text) !important;
}
.crm-practice-form .practice-live-summary-main{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  border:0 !important;
  padding:0 0 14px !important;
  margin:0 0 14px !important;
  border-bottom:1px solid #eef1f4 !important;
}
.crm-practice-form .practice-live-summary-icon{
  width:42px !important;
  height:42px !important;
  flex:0 0 42px !important;
  border-radius:6px !important;
  border:1px solid #d9dde3 !important;
  background:#f7f8fa !important;
  color:#344054 !important;
  font-size:21px !important;
}
.crm-practice-form .practice-live-summary-kicker{
  color:#596070 !important;
  font-size:11px !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.crm-practice-form .practice-live-summary-titleblock strong{
  color:var(--pc-text) !important;
  font-size:16px !important;
  font-weight:700 !important;
}
.crm-practice-form .practice-live-summary-titleblock small{
  color:#344054 !important;
  font-size:12px !important;
}
.crm-practice-form .practice-live-summary-list{
  display:grid !important;
  grid-template-columns:86px minmax(0,1fr) !important;
  gap:10px 12px !important;
  margin:0 !important;
}
.crm-practice-form .practice-live-summary-list dt{
  color:#344054 !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.crm-practice-form .practice-live-summary-list dd{
  margin:0 !important;
  color:var(--pc-text) !important;
  font-size:14px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.crm-practice-form .practice-progress-card p{
  margin:0 !important;
  color:#344054 !important;
  line-height:1.45 !important;
  font-size:13px !important;
}
.crm-practice-form .crm-form-foot-actions{
  background:var(--pc-bg) !important;
  border-top:1px solid var(--pc-line) !important;
  margin:0 !important;
  padding:18px 24px !important;
}
@media(max-width:1100px){
  .crm-practice-form .practice-pcplus-editor{grid-template-columns:1fr !important}
  .crm-practice-form .practice-pcplus-aside{border-top:1px solid #d9dde3 !important}
  .crm-practice-form .practice-form-tabs{overflow:auto !important;white-space:nowrap !important}
  .crm-practice-form .practice-type-guide-compact{grid-template-columns:1fr !important}
}

/* codex pcplus global theme pass */
:root{
  --pcplus-bg:#f4f4f6;
  --pcplus-panel:#fff;
  --pcplus-line:#dfe3e8;
  --pcplus-line-dark:#c8cdd3;
  --pcplus-text:#07111f;
  --pcplus-muted:#344054;
  --pcplus-green:#2d8f4e;
  --pcplus-green-dark:#257541;
  --pcplus-blue:#0b66d8;
  --pcplus-purple:#6754e2;
}
html,body.crm-body-darknav{
  background:var(--pcplus-bg) !important;
  color:var(--pcplus-text) !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:14px !important;
}
.crm-app-frame,
.crm-main-frame,
.crm-main-frame-horizontal,
.crm-shell,
.crm-content-area,
.crm-content-area.crm-content-ticket,
.crm-content-area.crm-content-full{
  background:var(--pcplus-bg) !important;
}
.crm-content-area.crm-content-ticket,
.crm-content-area.crm-content-full,
.crm-content-area{
  padding:18px 22px 34px !important;
}
.crm-top-header{
  background:#fff !important;
  border-bottom:1px solid var(--pcplus-line) !important;
  box-shadow:none !important;
}
.crm-top-header-utility,
.crm-top-header-nav{
  background:#fff !important;
  border-bottom:1px solid var(--pcplus-line) !important;
}
.crm-horizontal-link{
  color:var(--pcplus-muted) !important;
  background:transparent !important;
  border-bottom-color:transparent !important;
}
.crm-horizontal-link:hover,
.crm-horizontal-link.active{
  color:#4d3ec7 !important;
  background:#fff !important;
  border-bottom-color:var(--pcplus-purple) !important;
}
.crm-horizontal-icon,
.crm-horizontal-link.active .crm-horizontal-icon{
  color:var(--pcplus-blue) !important;
}
.crm-utility-search input,
.crm-top-search input{
  background:#fff !important;
  border:1px solid var(--pcplus-line-dark) !important;
  color:var(--pcplus-text) !important;
  border-radius:22px !important;
}
.crm-user-chip-app,
.crm-utility-icon{
  background:#f7f8fa !important;
  border:1px solid var(--pcplus-line) !important;
  color:var(--pcplus-muted) !important;
}
.crm-user-chip-app .crm-user-name,
.crm-user-chip-app .crm-user-role{
  color:var(--pcplus-text) !important;
}
.crm-sidebar,
.crm-sidebar-dark{
  background:#fff !important;
  border-right:1px solid var(--pcplus-line) !important;
}
.crm-sidebar-dark .sidebar-title,
.crm-sidebar-dark .sidebar-title-main{
  color:#596070 !important;
}
.crm-sidebar-dark .sidebar-link{
  color:var(--pcplus-muted) !important;
  background:transparent !important;
  border-radius:3px !important;
}
.crm-sidebar-dark .sidebar-link:hover,
.crm-sidebar-dark .sidebar-link.active{
  background:#eef4ff !important;
  color:var(--pcplus-blue) !important;
}
.dashboard-white-card,
.section-card,
.desk-card,
.client-summary-card,
.crm-form-section,
.settings-v3-card,
.card{
  background:#fff !important;
  border:1px solid var(--pcplus-line) !important;
  border-radius:4px !important;
  box-shadow:none !important;
}
.desk-btn,
.crm-btn,
.btn{
  border-radius:3px !important;
  box-shadow:none !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-weight:700 !important;
}
.desk-btn-primary,
.crm-btn-primary,
.btn-primary,
.btn-success{
  background:var(--pcplus-green) !important;
  border-color:var(--pcplus-green) !important;
  color:#fff !important;
}
.desk-btn-primary:hover,
.crm-btn-primary:hover,
.btn-primary:hover,
.btn-success:hover{
  background:var(--pcplus-green-dark) !important;
  border-color:var(--pcplus-green-dark) !important;
}
.form-control,
.form-select,
input,
select,
textarea{
  border-color:var(--pcplus-line-dark) !important;
  border-radius:3px !important;
  box-shadow:none !important;
  font-family:Arial,Helvetica,sans-serif !important;
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus{
  border-color:var(--pcplus-blue) !important;
  box-shadow:none !important;
  outline:1px solid var(--pcplus-blue) !important;
  outline-offset:-1px !important;
}
.table,
.practice-list-table,
.client-excel-table{
  background:#fff !important;
  border-color:var(--pcplus-line) !important;
}
.table th,
.table td,
.practice-list-table th,
.practice-list-table td,
.client-excel-table th,
.client-excel-table td{
  border-color:var(--pcplus-line) !important;
  color:var(--pcplus-text) !important;
}
.table thead th,
.practice-list-table thead th,
.client-excel-table thead th{
  background:#fff !important;
  color:#2b313a !important;
  font-weight:700 !important;
}

/* codex narrower richer practice summary */
.crm-practice-form .practice-pcplus-editor{
  grid-template-columns:minmax(680px,1fr) 360px !important;
}
.crm-practice-form .practice-pcplus-aside{
  padding:22px !important;
}
.crm-practice-form .practice-progress-card{
  display:none !important;
}
.crm-practice-form .practice-live-summary-list{
  grid-template-columns:92px minmax(0,1fr) !important;
  gap:9px 12px !important;
}
.crm-practice-form .practice-live-summary-list dt{
  font-size:11.5px !important;
}
.crm-practice-form .practice-live-summary-list dd{
  font-size:13px !important;
}
.crm-practice-form .practice-tab-ico,
.crm-practice-form .practice-section-ico{
  border-radius:4px !important;
  font-size:0 !important;
}
.crm-practice-form .practice-tab-ico{
  width:14px !important;
  height:14px !important;
}
.crm-practice-form .practice-section-ico{
  width:18px !important;
  height:18px !important;
}
.crm-practice-form .practice-tab-ico:before,
.crm-practice-form .practice-section-ico:before{
  content:"" !important;
}
.crm-practice-form .practice-type-guide-icon{
  width:22px !important;
  height:22px !important;
  border-radius:4px !important;
  display:inline-grid !important;
  place-items:center !important;
  color:#fff !important;
  font-size:0 !important;
  font-weight:900 !important;
  line-height:1 !important;
  flex:0 0 22px !important;
}
.crm-practice-form [data-type-card="gas"] .practice-type-guide-icon{background:#e04f5f !important}
.crm-practice-form [data-type-card="luce"] .practice-type-guide-icon{background:#f59f00 !important}
.crm-practice-form [data-type-card="tel"] .practice-type-guide-icon{background:#d63384 !important}
.crm-practice-form [data-type-card="gas"] .practice-type-guide-icon:before{content:"G";font-size:12px}
.crm-practice-form [data-type-card="luce"] .practice-type-guide-icon:before{content:"L";font-size:12px}
.crm-practice-form [data-type-card="tel"] .practice-type-guide-icon:before{content:"T";font-size:12px}
.crm-practice-form .practice-live-summary-icon{
  font-size:0 !important;
}
.crm-practice-form .practice-live-summary-icon:before{
  content:attr(data-summary-letter);
  font-size:18px;
  font-weight:900;
}
@media(max-width:1300px){
  .crm-practice-form .practice-pcplus-editor{grid-template-columns:minmax(560px,1fr) 330px !important}
}
@media(max-width:1100px){
  .crm-practice-form .practice-pcplus-editor{grid-template-columns:1fr !important}
}

/* codex dark top navigation and sober practice markers */
body.crm-body-darknav .crm-top-header{
  background:linear-gradient(180deg,#2f3642 0%,#202631 100%) !important;
  border-bottom:1px solid #151b24 !important;
  box-shadow:0 2px 12px rgba(15,23,42,.22) !important;
}
body.crm-body-darknav .crm-top-header-utility{
  height:70px !important;
  background:transparent !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  padding:0 20px !important;
}
body.crm-body-darknav .crm-top-header-nav{
  height:50px !important;
  background:#242b36 !important;
  border-bottom:1px solid #171d26 !important;
  padding:0 16px !important;
}
body.crm-body-darknav .crm-top-brand .crm-brand-logo-image{
  height:42px !important;
  max-width:205px !important;
}
body.crm-body-darknav .crm-horizontal-menu{
  gap:4px !important;
}
body.crm-body-darknav .crm-horizontal-link{
  height:50px !important;
  color:#dbe2ea !important;
  background:transparent !important;
  border-bottom:3px solid transparent !important;
  border-radius:0 !important;
  padding:0 15px !important;
  gap:9px !important;
  font-size:13px !important;
}
body.crm-body-darknav .crm-horizontal-link:hover{
  color:#fff !important;
  background:rgba(255,255,255,.06) !important;
}
body.crm-body-darknav .crm-horizontal-link.active{
  color:#fff !important;
  background:rgba(255,255,255,.08) !important;
  border-bottom-color:#8fb63f !important;
}
body.crm-body-darknav .crm-horizontal-icon,
body.crm-body-darknav .crm-horizontal-link.active .crm-horizontal-icon{
  width:17px !important;
  flex-basis:17px !important;
  color:#b8c2d0 !important;
  font-size:13px !important;
}
body.crm-body-darknav .crm-horizontal-link.active .crm-horizontal-icon{
  color:#fff !important;
}
body.crm-body-darknav .crm-utility-search input{
  width:330px !important;
  height:40px !important;
  background:#fff !important;
  border:1px solid rgba(255,255,255,.22) !important;
  color:#111827 !important;
  border-radius:22px !important;
  box-shadow:0 1px 0 rgba(255,255,255,.08) !important;
}
body.crm-body-darknav .crm-utility-icon{
  width:42px !important;
  height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#e5edf7 !important;
  text-decoration:none !important;
}
body.crm-body-darknav .crm-utility-icon:hover{
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
}
body.crm-body-darknav .crm-user-chip-app{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:12px !important;
}
body.crm-body-darknav .crm-user-chip-app .crm-user-link{
  color:#fff !important;
}
body.crm-body-darknav .crm-user-chip-app .crm-user-avatar{
  background:#fff !important;
  color:#243044 !important;
}
body.crm-body-darknav .crm-user-chip-app .crm-user-name{
  color:#fff !important;
}
body.crm-body-darknav .crm-user-chip-app .crm-user-role{
  color:#b8c2d0 !important;
}
.crm-practice-form .practice-tab-ico,
.crm-practice-form .practice-section-ico{
  background:transparent !important;
  color:#344054 !important;
  border:1px solid #cfd5df !important;
  box-shadow:none !important;
  font-size:0 !important;
}
.crm-practice-form .practice-tab-ico{
  width:24px !important;
  height:24px !important;
  border-radius:999px !important;
}
.crm-practice-form .practice-form-tab.active .practice-tab-ico{
  background:#202631 !important;
  border-color:#202631 !important;
  color:#fff !important;
}
.crm-practice-form .practice-tab-ico:before{
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;
}
.crm-practice-form .practice-tab-ico.customer:before{content:"1" !important}
.crm-practice-form .practice-tab-ico.contract:before{content:"2" !important}
.crm-practice-form .practice-tab-ico.supply:before{content:"3" !important}
.crm-practice-form .practice-tab-ico.notes:before{content:"4" !important}
.crm-practice-form .practice-tab-ico.docs:before{content:"5" !important}

/* codex insights dashboard */
body:has(.insights-dashboard) .crm-content-area,
body:has(.insights-dashboard) .crm-content-area.crm-content-ticket,
body:has(.insights-dashboard) .crm-content-area.crm-content-full{
  padding:0 !important;
  background:#f4f5f7 !important;
}
body:has(.insights-dashboard) .crm-shell{
  min-height:calc(100vh - 112px) !important;
}
.insights-dashboard{
  display:grid;
  grid-template-columns:254px minmax(0,1fr);
  min-height:calc(100vh - 112px);
  background:#f4f5f7;
  color:#172033;
  font-family:Arial, Helvetica, sans-serif;
}
.insights-sidebar{
  background:#f7f7f8;
  border-right:1px solid #d8dde5;
  padding:16px 14px;
  min-width:0;
}
.insights-sidebar-head{
  display:grid;
  grid-template-columns:1fr 126px 34px;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}
.insights-sidebar-head h1{
  grid-column:1 / -1;
  margin:0 0 8px;
  font-size:18px;
  font-weight:700;
  color:#2b3140;
}
.insights-sidebar-head.compact{
  display:block;
  margin-bottom:14px;
}
.insights-sidebar-head.compact h1{
  margin:0;
}
.insights-create-btn{
  height:32px;
  border-radius:4px;
  background:#218a4a;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}
.insights-create-btn:hover{color:#fff;background:#19783d}
.insights-icon-btn{
  width:34px;
  height:32px;
  border:1px solid #c9d1dc;
  border-radius:4px;
  background:#fff;
  color:#334155;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.insights-side-search{
  height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #cbd3df;
  border-radius:4px;
  background:#fff;
  padding:0 9px;
  margin:8px 0 24px;
  color:#5f6b7a;
}
.insights-side-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size:14px;
}
.insights-side-nav{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.insights-nav-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.insights-nav-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:24px;
  color:#384253;
  text-transform:uppercase;
  font-size:13px;
  font-weight:800;
}
.insights-nav-title span:first-child{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.insights-counter{
  padding:3px 8px;
  border-radius:12px;
  background:#e7e9ed;
  color:#4f5b6b;
  font-size:12px;
  text-transform:none;
}
.insights-nav-line{
  min-height:32px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 10px 7px 22px;
  border-radius:4px;
  color:#596272;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}
.insights-nav-line:hover{
  color:#075cc8;
  background:#edf4ff;
}
.insights-nav-line.active{
  background:#dbeafe;
  color:#0969da;
  font-weight:800;
}
.insights-nav-line.report-active{
  color:#0969da;
  background:#e8f2ff;
  font-weight:800;
}
.insights-nav-line.muted{
  color:#6b7280;
  font-weight:500;
  padding-left:10px;
}
.insights-nav-empty{
  color:#969da8;
  font-size:14px;
  padding:4px 0 0;
}
.insights-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.insights-notice{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 18px;
  background:#eef6ff;
  border-bottom:1px solid #7db2ff;
  color:#0f172a;
  font-size:15px;
}
.insights-notice div{
  display:flex;
  align-items:center;
  gap:12px;
}
.insights-notice i{
  color:#0969da;
}
.insights-notice a{
  border:1px solid #c7ced8;
  border-radius:4px;
  background:#fff;
  color:#172033;
  padding:6px 12px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.insights-content-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 14px 16px;
}
.insights-content-head h2{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:#172033;
}
.insights-filterbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.insights-ai-btn,
.insights-filter-pill,
.insights-menu-btn,
.insights-filter-submit{
  min-height:32px;
  border:1px solid #cbd3df;
  border-radius:4px;
  background:#fff;
  color:#101828;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
  font-size:14px;
  font-weight:700;
  box-shadow:0 1px 1px rgba(16,24,40,.04);
}
.insights-ai-btn{
  border-color:#c9a7ff;
  cursor:pointer;
}
.insights-ai-btn i{
  color:#6d28d9;
}
.insights-ai-btn small{
  border:1px solid #c084fc;
  border-radius:10px;
  color:#8a2be2;
  padding:1px 5px;
  font-size:10px;
}
.insights-filter-pill input,
.insights-filter-pill select{
  border:0;
  outline:0;
  background:transparent;
  color:#172033;
  font-size:13px;
  font-weight:700;
  min-width:0;
}
.insights-filter-pill input{
  width:116px;
}
.insights-filter-pill select{
  max-width:158px;
}
.insights-menu-btn{
  width:34px;
  justify-content:center;
  cursor:pointer;
}
.insights-filter-submit{
  background:#198754;
  border-color:#198754;
  color:#fff;
  cursor:pointer;
  padding:0 16px;
}
.insights-filter-submit:hover{
  background:#157347;
  border-color:#157347;
}
.insights-report-grid{
  display:grid;
  grid-template-columns:minmax(320px,.44fr) minmax(620px,1fr);
  gap:8px;
  padding:0 14px 16px;
}
.insight-card-wide{
  grid-column:span 2;
}
.insight-card,
.insight-table-card{
  background:#fff;
  border:1px solid #dfe3e8;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(16,24,40,.06);
}
.insight-card{
  min-height:334px;
  padding:16px 16px 14px;
  overflow:hidden;
}
.insight-card-pipeline{
  min-width:0;
}
.insight-card-title{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:16px;
}
.insight-card-title > div{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.insight-card-title h3{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#111827;
  line-height:1.25;
}
.insight-card-title p{
  margin:0;
  color:#7a8494;
  text-transform:uppercase;
  font-size:11px;
  font-weight:800;
}
.insight-title-icon{
  width:20px;
  height:20px;
  border:1px solid #4b5563;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1f2937;
  font-size:11px;
  flex:0 0 auto;
}
.insight-revenue-center{
  min-height:226px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.insight-up{
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-bottom:10px solid #16834a;
  margin-bottom:4px;
}
.insight-small-value{
  color:#344054;
  font-size:14px;
}
.insight-revenue-center strong{
  font-size:44px;
  line-height:1.05;
  font-weight:700;
  color:#111827;
  margin:4px 0 10px;
}
.insight-revenue-center p{
  margin:0;
  color:#475467;
  font-size:14px;
}
.insight-subtitle{
  margin:-4px 0 14px;
  font-size:15px;
  color:#111827;
  font-weight:700;
}
.pipeline-chart{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(78px,1fr));
  gap:12px;
  min-height:198px;
  align-items:end;
  border-bottom:1px solid #e4e7ec;
  padding:8px 0 0;
}
.pipeline-col{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.pipeline-bars{
  height:166px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  position:relative;
  width:100%;
}
.pipeline-bar{
  width:74%;
  max-width:82px;
  min-width:34px;
  border-radius:3px 3px 0 0;
  background:#f5c94d;
}
.pipeline-bar.blue{background:#9fd3f3}
.pipeline-bar.green{background:#65a878}
.pipeline-bar.orange{background:#f0a72f}
.pipeline-count{
  position:static;
  transform:none;
  margin-bottom:4px;
  font-size:13px;
  font-weight:800;
  color:#111827;
}
.pipeline-badge{
  position:absolute;
  right:0;
  top:42%;
  transform:translateY(-50%);
  min-width:42px;
  height:26px;
  border-radius:3px;
  background:#5b626a;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
}
.pipeline-label{
  width:100%;
  color:#172033;
  font-size:13px;
  line-height:1.2;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.insight-legend{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
  color:#6b7280;
  font-size:13px;
}
.legend-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
  vertical-align:-2px;
  margin-right:5px;
}
.legend-dot.yellow{background:#f5c94d}
.legend-dot.green{background:#65a878}
.legend-dot.blue{background:#a7d9f5}
.legend-dot.orange{background:#f0a72f}
.insight-bar-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:10px 2px 4px;
}
.insight-bar-row{
  display:grid;
  grid-template-columns:170px minmax(0,1fr) 58px;
  gap:12px;
  align-items:center;
  min-height:32px;
  font-size:13px;
  color:#101828;
}
.insight-bar-row > span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.insight-bar-track{
  height:28px;
  border-radius:3px;
  background:#eef2f6;
  overflow:hidden;
}
.insight-bar-track i{
  display:block;
  height:100%;
  min-width:2px;
  background:#a9daf7;
}
.insight-bar-track.green i{
  background:#64b783;
}
.insight-bar-row strong{
  text-align:right;
  font-size:13px;
  font-weight:800;
}
.metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:8px 0 0;
}
.metric-grid-large{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.metric-tile{
  min-height:92px;
  border:1px solid #e1e6ee;
  border-radius:5px;
  background:#fafbfc;
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.metric-tile span{
  color:#596272;
  font-size:13px;
  font-weight:700;
}
.metric-tile strong{
  color:#101828;
  font-size:30px;
  line-height:1;
}
.metric-tile.danger strong{color:#dc3545}
.metric-tile.success strong{color:#198754}
.vendor-chart,
.activity-chart{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:16px 18px 8px;
}
.vendor-row,
.activity-row{
  display:grid;
  grid-template-columns:132px minmax(0,1fr) 38px;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:#101828;
}
.vendor-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vendor-track,
.activity-track{
  height:118px;
  display:flex;
  align-items:flex-end;
  border-bottom:1px solid #e4e7ec;
}
.vendor-track{
  height:32px;
  align-items:center;
  border-bottom:0;
  background:linear-gradient(90deg,#f1f5f9 0,#f1f5f9 100%);
}
.vendor-track span{
  height:100%;
  min-width:3px;
  background:#a9daf7;
  border-radius:2px;
}
.vendor-row strong,
.activity-row strong{
  font-weight:800;
}
.activity-row{
  grid-template-columns:150px minmax(0,1fr) 34px;
}
.activity-track{
  height:12px;
  align-items:center;
  border:0;
  border-radius:10px;
  background:#eef1f4;
  overflow:hidden;
}
.activity-track span{
  height:100%;
  min-width:2px;
  border-radius:10px;
}
.activity-note{
  margin:24px 18px 0;
  color:#596272;
  font-size:13px;
}
.insight-empty{
  color:#667085;
  font-size:14px;
  padding:24px;
}
.insight-empty.compact{
  padding:10px 0;
}
.insight-table-card{
  margin:0 14px 24px;
  overflow:hidden;
}
.insight-table-head{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 16px;
  border-bottom:1px solid #e4e7ec;
}
.insight-table-head h3{
  margin:0;
  font-size:18px;
  font-weight:800;
}
.insight-table-head span{
  font-size:12px;
  color:#596272;
  font-weight:700;
}
.insight-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.insight-table th,
.insight-table td{
  border-bottom:1px solid #e9edf2;
  padding:11px 14px;
  text-align:left;
  vertical-align:top;
}
.insight-table th{
  color:#596272;
  font-size:12px;
  text-transform:uppercase;
  background:#fafbfc;
}
.insight-sla-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
}
.insight-sla-row div{
  padding:20px;
  border-right:1px solid #e4e7ec;
}
.insight-sla-row div:last-child{border-right:0}
.insight-sla-row span{
  display:block;
  color:#667085;
  font-size:13px;
  font-weight:700;
}
.insight-sla-row strong{
  display:block;
  color:#111827;
  font-size:34px;
  line-height:1.1;
  margin-top:8px;
}
@media (max-width: 1280px){
  .insights-dashboard{
    grid-template-columns:220px minmax(0,1fr);
  }
  .insights-sidebar-head{
    grid-template-columns:1fr 34px;
  }
  .insights-create-btn{
    grid-column:1 / -1;
  }
  .insights-report-grid{
    grid-template-columns:1fr;
  }
  .insight-card-wide{
    grid-column:auto;
  }
  .pipeline-chart{
    grid-template-columns:repeat(auto-fit,minmax(78px,1fr));
  }
}
@media (max-width: 900px){
  .insights-dashboard{
    display:block;
  }
  .insights-sidebar{
    border-right:0;
    border-bottom:1px solid #d8dde5;
  }
  .insights-content-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .insights-filterbar{
    justify-content:flex-start;
  }
  .vendor-row,
  .activity-row,
  .insight-bar-row{
    grid-template-columns:1fr;
    gap:6px;
  }
  .insight-sla-row{
    grid-template-columns:1fr;
  }
}

/* codex exact pipedrive-like practice sheet */
body:has(.pipe-practice-page){
  overflow:auto !important;
  background:#f4f4f4 !important;
}
body:has(.pipe-practice-page) .crm-top-header{
  display:block !important;
}
body:has(.pipe-practice-page) .crm-main-frame,
body:has(.pipe-practice-page) .crm-shell{
  display:block !important;
  min-height:100vh !important;
  background:#f4f4f4 !important;
}
body:has(.pipe-practice-page) .crm-content-area,
body:has(.pipe-practice-page) .crm-content-area.crm-content-ticket,
body:has(.pipe-practice-page) .crm-content-area.crm-content-full{
  padding:0 !important;
  margin:0 !important;
  background:#f4f4f4 !important;
  min-height:100vh !important;
}
body:has(.pipe-practice-page) .desk-alert{
  position:fixed;
  z-index:6000;
  top:10px;
  left:320px;
  right:20px;
}
.pipe-practice-page{
  --pipe-purple:#241b5a;
  --pipe-purple-2:#302274;
  --pipe-blue:#0065d0;
  --pipe-blue-soft:#e4f0ff;
  --pipe-green:#2d9b55;
  --pipe-red:#dd3b3b;
  --pipe-text:#17202a;
  --pipe-muted:#5f6975;
  --pipe-line:#dfe3e8;
  --pipe-bg:#f4f4f4;
  position:relative;
  z-index:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  min-height:calc(100vh - 120px);
  background:var(--pipe-bg);
  color:var(--pipe-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.35;
}
.pipe-practice-page a{
  color:var(--pipe-blue);
  text-decoration:none;
}
.pipe-practice-page a:hover{
  text-decoration:underline;
}
.pipe-rail{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:12px 0;
  background:var(--pipe-purple);
  color:#fff;
}
.pipe-rail-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin-bottom:6px;
  border-radius:8px;
  color:#fff !important;
  font-size:24px;
  font-weight:900;
  line-height:1;
  text-decoration:none !important;
}
.pipe-rail-item{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:6px;
  color:#fff !important;
  font-size:18px;
  text-decoration:none !important;
}
.pipe-rail-item:hover,
.pipe-rail-item.active{
  background:#6651d6;
}
.pipe-rail-spacer{
  flex:1 1 auto;
}
.pipe-left-menu{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#f6f6f7;
  border-right:1px solid #d8dde4;
  padding:22px 8px 16px;
}
.pipe-menu-block{
  margin-bottom:26px;
}
.pipe-menu-title{
  margin:0 12px 12px;
  color:#566170;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
}
.pipe-menu-link{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:42px;
  padding:0 14px;
  border-radius:4px;
  color:#152333 !important;
  font-size:15px;
  font-weight:500;
  text-decoration:none !important;
}
.pipe-menu-link i{
  width:20px;
  color:#4e5967;
  font-size:18px;
  text-align:center;
}
.pipe-menu-link.active{
  background:#ddebff;
  color:#0065d0 !important;
  font-weight:700;
}
.pipe-menu-link.active i{
  color:#0065d0;
}
.pipe-left-bottom{
  margin-top:auto;
  display:grid;
  gap:12px;
  padding:0 14px;
}
.pipe-left-bottom a{
  display:flex;
  align-items:center;
  gap:10px;
  color:#0065d0 !important;
  font-weight:700;
}
.pipe-app{
  min-width:0;
  display:grid;
  grid-template-rows:80px minmax(0,1fr);
  min-height:calc(100vh - 120px);
  overflow:visible;
}
.pipe-topbar{
  display:grid;
  grid-template-columns:minmax(250px,1fr) minmax(330px,410px) 44px 44px auto;
  align-items:center;
  gap:12px;
  padding:0 20px;
  background:#fff;
  border-bottom:1px solid #d9dee6;
}
.pipe-top-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#4c5867;
  font-size:17px;
  font-weight:600;
}
.pipe-top-title strong{
  color:#17202a;
  font-weight:800;
}
.pipe-search{
  height:40px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #c9d0da;
  border-radius:24px;
  padding:0 14px;
  background:#fff;
}
.pipe-search i{
  color:#4c5867;
  font-size:18px;
}
.pipe-search input{
  width:100%;
  border:0;
  outline:0;
  color:#17202a;
  font-size:14px;
}
.pipe-round-btn,
.pipe-ai-dot{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid #c9d0da;
  border-radius:50%;
  background:#fff;
  color:#17202a !important;
  font-size:18px;
  text-decoration:none !important;
}
.pipe-ai-dot{
  border:0;
  color:#fff;
  background:radial-gradient(circle at 45% 35%,#fff 0,#d59dff 18%,#7a32f4 55%,#32145f 100%);
  box-shadow:0 2px 8px rgba(79,38,180,.35);
}
.pipe-top-icons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  color:#4b5563;
  font-size:18px;
}
.pipe-top-icons a{
  color:#4b5563 !important;
}
.pipe-top-icons span{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e8e8e8;
  color:#5b6470;
  font-size:13px;
  font-weight:800;
}
.pipe-feedback{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#eef6ff;
  border-bottom:1px solid #d9e4f0;
  color:#0f172a;
  font-size:15px;
}
.pipe-feedback button{
  position:absolute;
  right:14px;
  width:24px;
  height:24px;
  border:0;
  background:transparent;
  color:#4c5867;
  font-size:24px;
  line-height:1;
}
.pipe-project-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 24px;
  background:#fff;
  border-bottom:1px solid #dfe3e8;
}
.pipe-project-title{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.pipe-confetti{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:#ecf4ff;
  color:#0065d0;
  font-size:19px;
  font-weight:900;
}
.pipe-project-title h1{
  margin:0;
  color:#17202a;
  font-size:28px;
  line-height:1.1;
  font-weight:500;
}
.pipe-project-title p{
  margin:4px 0 0;
  max-width:760px;
  color:#4d5968;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pipe-project-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.pipe-project-actions form{
  margin:0;
}
.pipe-late-pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 12px;
  border-radius:999px;
  background:#dd3b3b;
  color:#fff;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.pipe-owner-avatar{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#d9d9dc;
  color:#fff;
  font-weight:800;
}
.pipe-owner-name{
  display:grid;
  min-width:120px;
  margin-right:8px;
}
.pipe-owner-name strong{
  font-size:13px;
  line-height:1.1;
}
.pipe-owner-name span{
  color:#657180;
  font-size:12px;
}
.pipe-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  padding:0 13px;
  border:1px solid #cfd5dd;
  border-radius:4px;
  background:#fff;
  color:#17202a !important;
  font-size:13px;
  font-weight:700;
  text-decoration:none !important;
  cursor:pointer;
}
.pipe-action-btn.green{
  border-color:#208442;
  color:#0d3d1f !important;
}
.pipe-action-btn.dots{
  width:38px;
  padding:0;
}
.pipe-workspace{
  display:grid;
  grid-template-columns:498px minmax(0,1fr);
  min-height:0;
}
.pipe-detail-sidebar{
  min-width:0;
  overflow:auto;
  background:#fff;
  border-right:1px solid #d6dbe3;
}
.pipe-sidebar-bar{
  display:flex;
  align-items:center;
  gap:14px;
  height:42px;
  padding:0 18px;
  border-bottom:1px solid #dfe3e8;
  color:#17202a;
  font-size:16px;
}
.pipe-sidebar-bar strong{
  font-size:17px;
}
.pipe-panel{
  padding:20px 18px 24px;
  border-bottom:1px solid #dfe3e8;
}
.pipe-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  color:#17202a;
  font-size:17px;
}
.pipe-panel-title strong{
  font-weight:800;
}
.pipe-panel-title .fa-gear,
.pipe-panel-title .fa-pen-to-square,
.pipe-panel-title span{
  margin-left:auto;
  color:#687382;
  font-size:14px;
}
.pipe-stage-track{
  height:24px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2px;
  margin:0 16px 8px 30px;
  overflow:hidden;
  border-radius:4px;
  background:#dedede;
}
.pipe-stage-track span,
.pipe-stage-track em{
  display:block;
  min-width:0;
  height:100%;
  background:#dedede;
}
.pipe-stage-track span{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#2d9b55;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.pipe-stage-track em{
  transform:skewX(-22deg);
  transform-origin:left center;
}
.pipe-stage-links{
  display:flex;
  gap:8px;
  margin:0 0 14px 30px;
  color:#637083;
  font-size:13px;
}
.pipe-mini-progress{
  display:grid;
  grid-template-columns:20px 1fr auto;
  gap:12px;
  align-items:center;
  margin:14px 22px 18px 0;
}
.pipe-mini-progress span{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:#dfe3e8;
}
.pipe-mini-progress b{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#2d9b55 0,#2d9b55 58%,#dd3b3b 58%,#dd3b3b 100%);
}
.pipe-mini-progress strong{
  color:#4f5967;
  font-size:12px;
}
.pipe-label-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin:16px 0;
}
.pipe-label-row span{
  display:inline-flex;
  min-height:20px;
  align-items:center;
  padding:0 7px;
  border-radius:3px;
  background:#9a3ab1;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.pipe-date-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:18px;
}
.pipe-date-row div{
  display:flex;
  align-items:center;
  gap:12px;
  color:#17202a;
}
.pipe-date-row strong{
  font-size:14px;
  font-weight:500;
}
.pipe-linked-list,
.pipe-progress-links{
  display:grid;
  gap:18px;
}
.pipe-linked-list a,
.pipe-progress-links span{
  display:flex;
  align-items:center;
  gap:14px;
  color:#0065d0;
  font-size:16px;
  font-weight:700;
}
.pipe-linked-list span{
  font-size:20px;
  font-weight:400;
}
.pipe-linked-picker-list{
  gap:10px;
}
.pipe-link-picker{
  border:1px solid #e3e8ef;
  border-radius:6px;
  background:#fff;
}
.pipe-link-picker summary{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  grid-template-areas:"icon title" "icon sub";
  gap:1px 10px;
  align-items:center;
  min-height:52px;
  padding:8px 10px;
  cursor:pointer;
  list-style:none;
}
.pipe-link-picker summary::-webkit-details-marker{
  display:none;
}
.pipe-link-picker summary > span{
  grid-area:icon;
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:6px;
  background:#eef4ff;
  color:#0065d0;
  font-size:13px;
  font-weight:800;
}
.pipe-link-picker summary strong{
  grid-area:title;
  min-width:0;
  color:#17202a;
  font-size:14px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pipe-link-picker summary small{
  grid-area:sub;
  color:#657180;
  font-size:12px;
}
.pipe-link-picker form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  padding:0 10px 10px 48px;
}
.pipe-link-picker .form-select{
  min-height:32px;
  border-radius:4px;
  font-size:12px;
}
.pipe-progress-links span{
  color:#5f6975;
  font-weight:400;
}
.pipe-progress-links .fa-wand-magic-sparkles{
  color:#8a2bff;
}
.pipe-detail-kv{
  display:grid;
  gap:11px;
  margin:0;
}
.pipe-detail-kv div{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:12px;
}
.pipe-detail-kv dt{
  color:#4f5967;
  font-size:12px;
  font-weight:800;
}
.pipe-detail-kv dd{
  margin:0;
  color:#17202a;
  font-size:13px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.pipe-main{
  min-width:0;
  overflow:auto;
  background:#f4f4f4;
}
.pipe-tabs{
  display:flex;
  align-items:center;
  gap:28px;
  height:42px;
  padding:0 28px;
  background:#fff;
  border-bottom:1px solid #dfe3e8;
}
.pipe-tabs a{
  height:42px;
  display:flex;
  align-items:center;
  gap:6px;
  border-bottom:2px solid transparent;
  color:#4d5968 !important;
  font-size:14px;
  text-decoration:none !important;
}
.pipe-tabs a.active{
  color:#0065d0 !important;
  border-bottom-color:#0065d0;
}
.pipe-tabs span{
  display:inline-flex;
  align-items:center;
  min-height:16px;
  padding:0 6px;
  border-radius:999px;
  background:#2f74d0;
  color:#fff;
  font-size:10px;
  font-weight:800;
}
.pipe-tools{
  display:flex;
  align-items:center;
  gap:8px;
  height:64px;
  padding:0 30px;
}
.pipe-tools button,
.pipe-task-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border:1px solid #ccd3dc;
  border-radius:4px;
  background:#fff;
  color:#17202a !important;
  font-weight:700;
  text-decoration:none !important;
}
.pipe-tools button{
  width:48px;
  padding:0;
}
.pipe-tools button.active{
  border-color:#0065d0;
  color:#0065d0 !important;
}
.pipe-tools > .fa-gear{
  margin-left:auto;
}
.pipe-phase{
  margin:0 30px 16px;
  background:#fff;
  border:1px solid #dfe3e8;
  border-radius:6px;
  box-shadow:0 1px 2px rgba(16,24,40,.08);
  overflow:hidden;
}
.pipe-phase header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:48px;
  border-bottom:1px solid #e7eaf0;
  padding:0 18px;
}
.pipe-phase header > div{
  display:flex;
  align-items:center;
  gap:10px;
}
.pipe-phase h2{
  margin:0;
  color:#17202a;
  font-size:18px;
  font-weight:800;
}
.pipe-phase header span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#4f5967;
  font-size:12px;
  font-weight:700;
}
.pipe-phase header span b{
  display:inline-flex;
  width:96px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#2d9b55 0,#2d9b55 45%,#dd3b3b 45%,#dd3b3b 75%,#e5e7eb 75%,#e5e7eb 100%);
}
.pipe-task-table{
  display:grid;
  grid-template-columns:44px 92px minmax(280px,1fr) 88px 120px 70px;
  min-height:56px;
  align-items:stretch;
  border-bottom:1px solid #e7eaf0;
}
.pipe-task-table > div,
.pipe-task-table > form,
.pipe-task-table > span{
  display:flex;
  align-items:center;
  padding:0 12px;
  border-right:1px solid #e7eaf0;
}
.pipe-task-table > *:last-child{
  border-right:0;
}
.pipe-task-table .icon{
  justify-content:center;
  color:#4f5967;
}
.pipe-task-table .done{
  justify-content:center;
}
.green-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  background:#2d9b55;
  position:relative;
}
.green-dot:after{
  content:"";
  position:absolute;
  left:5px;
  top:3px;
  width:5px;
  height:8px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.pipe-task-table .subject{
  display:grid;
  align-content:center;
  gap:4px;
}
.pipe-task-table .subject strong{
  font-weight:500;
}
.pipe-task-table .subject small{
  color:#637083;
}
.pipe-status-row{
  grid-template-columns:44px 92px minmax(280px,1fr) 190px 120px 96px;
}
.pipe-status-row .form-control{
  min-height:34px;
  border-radius:0;
  font-size:13px;
}
.pipe-status-row .form-select{
  min-height:34px;
  border-radius:0;
  font-size:13px;
}
.pipe-inline-green{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border:1px solid #208442;
  border-radius:4px;
  background:#208442;
  color:#fff !important;
  font-size:12px;
  font-weight:800;
  text-decoration:none !important;
  cursor:pointer;
}
.pipe-status-simple-form{
  display:grid;
  grid-template-columns:minmax(320px,1fr) 190px 130px auto;
  gap:12px;
  align-items:end;
  padding:16px 18px;
}
.pipe-status-field{
  display:grid;
  gap:6px;
}
.pipe-status-field label{
  margin:0;
  color:#4f5967;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.pipe-status-simple-form .form-control,
.pipe-status-simple-form .form-select{
  min-height:36px;
  border:1px solid #cfd6df;
  border-radius:4px;
  color:#17202a;
  font-size:13px;
}
.pipe-status-simple-form textarea.form-control{
  min-height:58px;
}
.pipe-status-date strong{
  display:flex;
  align-items:center;
  min-height:36px;
  color:#17202a;
  font-size:13px;
}
.pipe-add-row{
  display:flex;
  align-items:center;
  gap:22px;
  min-height:38px;
  padding:0 18px;
}
.pipe-add-row a{
  color:#0065d0;
  font-weight:700;
}
.pipe-info-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.pipe-info-list div{
  min-height:62px;
  padding:12px 14px;
  border-right:1px solid #e7eaf0;
  border-bottom:1px solid #e7eaf0;
}
.pipe-info-list span{
  display:block;
  margin-bottom:5px;
  color:#637083;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.pipe-info-list strong{
  display:block;
  color:#17202a;
  font-size:13px;
  overflow-wrap:anywhere;
}
.pipe-doc-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:12px 14px 0;
}
.pipe-doc-actions form{
  margin:0;
}
.pipe-doc-table{
  margin:12px 14px;
  border:1px solid #e1e5eb;
}
.pipe-doc-table .head,
.pipe-doc-table .row{
  display:grid;
  grid-template-columns:120px minmax(220px,1fr) minmax(220px,1fr) 270px;
  align-items:center;
  min-height:42px;
  border-bottom:1px solid #e7eaf0;
}
.pipe-doc-table .head{
  background:#fafafa;
  color:#637083;
  font-size:12px;
  font-weight:800;
}
.pipe-doc-table .head span,
.pipe-doc-table .row > span,
.pipe-doc-table .row > strong,
.pipe-doc-table .row > form{
  padding:8px 12px;
}
.pipe-doc-table .row > form{
  display:flex;
  align-items:center;
  gap:8px;
}
.pipe-doc-table .row .ok{
  color:#2d9b55;
}
.pipe-doc-table .form-select{
  min-height:30px;
  border-radius:0;
  font-size:12px;
}
.pipe-doc-list{
  display:grid;
  gap:10px;
  padding:14px;
}
.pipe-doc-card{
  display:grid;
  grid-template-columns:42px minmax(180px,.8fr) minmax(240px,1fr) minmax(230px,.85fr);
  gap:12px;
  align-items:center;
  min-height:74px;
  padding:12px;
  border:1px solid #e1e6ed;
  border-radius:6px;
  background:#fff;
}
.pipe-doc-check{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #ffd0b8;
}
.pipe-doc-check.done{
  background:#ecfdf3;
  color:#1f8f4d;
  border-color:#b7ebc9;
}
.pipe-doc-main{
  display:grid;
  gap:3px;
}
.pipe-doc-main strong{
  color:#17202a;
  font-size:14px;
}
.pipe-doc-main span{
  color:#657180;
  font-size:12px;
}
.pipe-doc-files{
  display:grid;
  gap:5px;
  color:#657180;
  font-size:13px;
  min-width:0;
}
.pipe-doc-files a{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  color:#0065d0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pipe-doc-action{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.pipe-doc-action .form-select{
  min-height:32px;
  border-radius:4px;
  font-size:12px;
}
.pipe-small-save{
  min-height:30px;
  padding:0 9px;
  border:1px solid #ccd3dc;
  border-radius:4px;
  background:#fff;
  color:#17202a;
  font-size:12px;
  font-weight:700;
}
.pipe-upload-card{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:16px;
  align-items:center;
  margin:0 14px 14px;
  padding:14px;
  border:1px solid #e1e6ed;
  border-radius:6px;
  background:#fbfcfd;
}
.pipe-upload-card h3{
  margin:0 0 4px;
  font-size:15px;
  font-weight:800;
  color:#17202a;
}
.pipe-upload-card p{
  margin:0;
  color:#657180;
  font-size:12px;
}
.pipe-upload-form{
  display:grid;
  grid-template-columns:190px minmax(240px,1fr) auto auto;
  gap:8px;
  align-items:center;
  margin:0 14px 14px;
}
.pipe-upload-form .form-control,
.pipe-upload-form .form-select{
  min-height:32px;
  border-radius:0;
  font-size:13px;
}
.pipe-upload-form label{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  white-space:nowrap;
  color:#4f5967;
  font-size:12px;
}
.pipe-note-area{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  padding:16px;
}
.pipe-note-area h3{
  margin:0 0 10px;
  font-size:16px;
  font-weight:800;
}
.pipe-note{
  padding:10px 0;
  border-bottom:1px solid #e7eaf0;
}
.pipe-note strong{
  display:block;
  font-size:13px;
}
.pipe-note span{
  display:block;
  color:#637083;
  font-size:12px;
}
.pipe-note p{
  margin:6px 0 0;
  white-space:pre-wrap;
}
.pipe-note-form{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.pipe-note-form .form-control{
  border-radius:0;
  font-size:13px;
}
.pipe-history{
  display:grid;
  grid-template-columns:22px 120px 1fr;
  gap:8px;
  align-items:start;
  padding:9px 0;
  border-bottom:1px solid #e7eaf0;
}
.pipe-history i{
  margin-top:2px;
  color:#637083;
}
.pipe-history strong{
  color:#17202a;
}
.pipe-history span{
  color:#637083;
  font-size:12px;
}
.pipe-empty{
  padding:14px;
  color:#637083;
}
@media(max-width:1400px){
  .pipe-practice-page{grid-template-columns:minmax(0,1fr)}
  .pipe-workspace{grid-template-columns:390px minmax(0,1fr)}
  .pipe-info-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pipe-task-table{grid-template-columns:40px 70px minmax(220px,1fr) 76px 110px 52px}
  .pipe-status-row{grid-template-columns:40px 70px minmax(220px,1fr) 170px 110px 86px}
}
@media(max-width:1100px){
  body:has(.pipe-practice-page){overflow:auto !important}
  .pipe-practice-page{position:relative;min-height:100vh;grid-template-columns:minmax(0,1fr)}
  .pipe-left-menu,.pipe-rail{display:none}
  .pipe-app{height:auto;min-height:100vh;grid-column:1}
  .pipe-workspace{grid-template-columns:1fr}
  .pipe-detail-sidebar{max-height:none;border-right:0}
  .pipe-topbar{grid-template-columns:1fr;min-height:150px;height:auto;padding:12px}
  .pipe-project-head{flex-direction:column;align-items:flex-start;padding:16px}
  .pipe-project-actions{justify-content:flex-start;flex-wrap:wrap}
  .pipe-info-list,.pipe-note-area{grid-template-columns:1fr}
  .pipe-task-table,.pipe-status-row,.pipe-status-simple-form,.pipe-doc-table .head,.pipe-doc-table .row,.pipe-doc-card,.pipe-upload-card,.pipe-upload-form{grid-template-columns:1fr}
  .pipe-link-picker form{grid-template-columns:1fr;padding-left:10px}
}

/* codex pipedrive-style practice detail */
.pd-practice-page{
  --pd-bg:#f4f5f7;
  --pd-panel:#fff;
  --pd-line:#d9dfe7;
  --pd-soft:#eef1f5;
  --pd-text:#111827;
  --pd-muted:#657386;
  --pd-blue:#0b65d8;
  --pd-green:#23864b;
  --pd-red:#d92d20;
  color:var(--pd-text);
  font-size:13px;
  line-height:1.35;
}
.pd-practice-page a{
  color:var(--pd-blue);
  text-decoration:none;
}
.pd-practice-page a:hover{
  text-decoration:underline;
}
.pd-practice-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  min-height:118px;
  padding:22px 24px;
  background:#fff;
  border:1px solid var(--pd-line);
  border-radius:6px 6px 0 0;
}
.pd-header-title-row{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.pd-practice-avatar{
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#d7dbe1;
  color:#fff;
  font-size:22px;
  font-weight:800;
}
.pd-header-copy{
  min-width:0;
}
.pd-breadcrumb{
  margin-bottom:5px;
  color:#5d6b80;
  font-size:12px;
  font-weight:600;
}
.pd-header-copy h1{
  margin:0;
  max-width:980px;
  color:#111827;
  font-size:24px;
  line-height:1.22;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pd-header-sub{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  margin-top:9px;
  color:#5d6b80;
  font-size:12px;
}
.pd-header-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:14px;
  flex:0 0 auto;
}
.pd-header-date{
  text-align:right;
  color:#5d6b80;
  font-size:11px;
}
.pd-header-date span{
  display:block;
  margin-bottom:2px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pd-header-date strong{
  color:#111827;
  font-size:13px;
}
.pd-action-row,
.pd-card-actions,
.pd-form-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.pd-inline-form{
  display:inline-flex;
  margin:0;
}
.pd-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 13px;
  border:1px solid #c7ced8;
  border-radius:4px;
  background:#fff;
  color:#172033;
  font-size:12px;
  font-weight:700;
  line-height:1;
  text-decoration:none !important;
  box-shadow:0 1px 1px rgba(16,24,40,.04);
  cursor:pointer;
}
.pd-btn:hover{
  background:#f8fafc;
  color:#172033;
}
.pd-btn-success{
  border-color:#1f7a43;
  background:#23864b;
  color:#fff;
}
.pd-btn-success:hover{
  background:#1f7743;
  color:#fff;
}
.pd-btn-small{
  min-height:30px;
  padding:0 10px;
}
.pd-detail-tabs{
  display:flex;
  align-items:flex-end;
  gap:28px;
  height:50px;
  padding:0 24px;
  background:#fff;
  border-left:1px solid var(--pd-line);
  border-right:1px solid var(--pd-line);
  border-bottom:1px solid var(--pd-line);
}
.pd-detail-tab{
  display:flex;
  align-items:center;
  height:50px;
  padding-top:2px;
  border-bottom:2px solid transparent;
  color:#4b5565 !important;
  font-size:14px;
  font-weight:700;
  text-decoration:none !important;
}
.pd-detail-tab.active{
  color:var(--pd-blue) !important;
  border-bottom-color:var(--pd-blue);
}
.pd-practice-layout{
  display:grid;
  grid-template-columns:minmax(310px,420px) minmax(0,1fr);
  min-height:680px;
  background:var(--pd-bg);
  border-left:1px solid var(--pd-line);
  border-right:1px solid var(--pd-line);
  border-bottom:1px solid var(--pd-line);
}
.pd-left-panel{
  background:#fff;
  border-right:1px solid var(--pd-line);
}
.pd-side-section{
  padding:20px 22px;
  border-bottom:1px solid #e6eaf0;
}
.pd-side-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  color:#111827;
  font-size:16px;
}
.pd-side-title strong{
  font-size:16px;
  font-weight:800;
}
.pd-side-icon{
  width:28px;
  height:28px;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef2f7;
  border:1px solid #d7dee8;
  color:#172033;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.pd-progress-track{
  height:22px;
  overflow:hidden;
  background:#e3e6ea;
  border-radius:4px;
}
.pd-progress-fill{
  display:block;
  height:100%;
  min-width:0;
  background:#23864b;
  border-radius:4px;
}
.pd-progress-caption{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  color:#5d6b80;
  font-size:12px;
}
.pd-progress-caption strong{
  color:#111827;
}
.pd-milestones{
  display:grid;
  gap:9px;
  margin-top:16px;
}
.pd-milestone{
  display:grid;
  grid-template-columns:18px 1fr;
  align-items:center;
  gap:10px;
  color:#667085;
}
.pd-milestone span{
  width:10px;
  height:10px;
  margin-left:4px;
  border-radius:50%;
  border:2px solid #cfd6df;
  background:#fff;
}
.pd-milestone.done span{
  border-color:#23864b;
  background:#23864b;
}
.pd-milestone strong{
  font-size:13px;
  font-weight:700;
}
.pd-side-kv{
  display:grid;
  gap:12px;
  margin:0;
}
.pd-side-kv div{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.pd-side-kv dt{
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.pd-side-kv dd{
  margin:0;
  min-width:0;
  color:#111827;
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere;
}
.pd-quick-actions{
  display:grid;
  gap:8px;
}
.pd-link-btn{
  display:inline-flex;
  align-items:center;
  width:100%;
  min-height:30px;
  border:0;
  background:transparent;
  color:var(--pd-blue);
  font-size:13px;
  font-weight:700;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.pd-link-btn:hover{
  text-decoration:underline;
}
.pd-main-panel{
  min-width:0;
  padding:22px;
  display:grid;
  gap:16px;
  align-content:start;
}
.pd-card,
.pd-phase-card{
  background:#fff;
  border:1px solid #d7dde6;
  border-radius:6px;
  box-shadow:0 1px 2px rgba(16,24,40,.05);
}
.pd-card{
  padding:18px 20px;
}
.pd-card-head,
.pd-phase-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.pd-card-head{
  margin-bottom:16px;
}
.pd-kicker{
  display:block;
  margin-bottom:4px;
  color:#697586;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.pd-card h2,
.pd-phase-card h2{
  margin:0;
  color:#111827;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
}
.pd-current-state .status-pill,
.pd-header-sub .status-pill{
  font-size:11px;
  padding:4px 10px;
}
.pd-status-form{
  display:grid;
  grid-template-columns:230px minmax(220px,1fr) auto;
  gap:10px;
  align-items:start;
}
.pd-status-form .form-select,
.pd-status-form .form-control,
.pd-upload-form .form-select,
.pd-upload-form .form-control{
  min-height:34px;
  border-radius:4px;
  border-color:#cfd6df;
  font-size:13px;
}
.pd-phase-card{
  overflow:hidden;
}
.pd-phase-head{
  min-height:48px;
  padding:0 16px;
  border-bottom:1px solid #edf0f4;
}
.pd-phase-head span{
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.pd-collapse-dot{
  width:26px;
  height:26px;
  border:0;
  background:transparent;
  color:#344054;
  font-size:13px;
  font-weight:800;
  line-height:1;
}
.pd-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:0 16px 12px;
}
.pd-info-grid > div{
  min-height:58px;
  padding:13px 16px 10px 0;
  border-bottom:1px solid #edf0f4;
}
.pd-info-grid span,
.pd-note-grid span{
  display:block;
  margin-bottom:5px;
  color:#697586;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.pd-info-grid strong,
.pd-note-grid strong{
  display:block;
  color:#172033;
  font-size:13px;
  line-height:1.28;
  font-weight:700;
  overflow-wrap:anywhere;
}
.pd-doc-table-wrap{
  overflow:auto;
  border:1px solid #e2e7ef;
  border-radius:6px;
}
.pd-doc-table{
  width:100%;
  min-width:820px;
  border-collapse:collapse;
}
.pd-doc-table th,
.pd-doc-table td{
  padding:10px 12px;
  border-bottom:1px solid #e8edf3;
  vertical-align:middle;
  font-size:12px;
}
.pd-doc-table th{
  background:#fbfcfd;
  color:#5d6b80;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pd-doc-table tbody tr:last-child td{
  border-bottom:0;
}
.pd-doc-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid #d7dde6;
  background:#f8fafc;
  color:#344054;
  font-size:11px;
  font-weight:800;
}
.pd-doc-state-missing{
  border-color:#ffd0b8;
  background:#fff7ed;
  color:#c2410c;
}
.pd-doc-state-received,
.pd-doc-state-uploaded{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}
.pd-doc-state-approved{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#166534;
}
.pd-doc-state-rejected{
  border-color:#fecaca;
  background:#fef2f2;
  color:#b42318;
}
.pd-inline-check-form{
  display:flex;
  align-items:center;
  gap:8px;
}
.pd-inline-check-form .form-select{
  min-width:126px;
  height:30px;
  font-size:12px;
}
.pd-file-link{
  display:block;
  max-width:360px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pd-upload-area{
  display:grid;
  grid-template-columns:minmax(240px,.75fr) minmax(380px,1.25fr);
  gap:18px;
  padding-top:18px;
}
.pd-upload-area h3,
.pd-request-list h3,
.pd-activity-grid h3{
  margin:0 0 10px;
  color:#111827;
  font-size:15px;
  font-weight:800;
}
.pd-file-list{
  display:grid;
  gap:6px;
  max-height:130px;
  overflow:auto;
}
.pd-upload-form{
  display:grid;
  grid-template-columns:180px minmax(220px,1fr) auto auto;
  gap:8px;
  align-items:center;
}
.pd-checkbox{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#344054;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.pd-request-list{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #edf0f4;
}
.pd-request-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:9px 0;
  border-bottom:1px solid #edf0f4;
}
.pd-request-row strong{
  color:#111827;
}
.pd-request-row span{
  color:#667085;
}
.pd-note-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.pd-note-grid > div{
  padding:12px;
  background:#fbfcfd;
  border:1px solid #e6ebf2;
  border-radius:4px;
}
.pd-notes-list{
  display:grid;
  gap:10px;
}
.pd-note-item{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  padding:12px;
  border:1px solid #e6ebf2;
  border-radius:6px;
  background:#fff;
}
.pd-note-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef2f7;
  color:#344054;
  font-weight:800;
}
.pd-note-meta{
  margin-bottom:5px;
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.pd-note-item p{
  margin:0;
  color:#172033;
  white-space:pre-wrap;
}
.pd-note-form{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.pd-activity-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.pd-timeline-list{
  display:grid;
  gap:10px;
}
.pd-timeline-row{
  display:grid;
  grid-template-columns:14px 1fr;
  gap:10px;
  align-items:start;
}
.pd-timeline-row > span{
  width:8px;
  height:8px;
  margin-top:5px;
  border-radius:50%;
  background:#23864b;
}
.pd-timeline-row strong{
  display:block;
  color:#111827;
  font-size:13px;
}
.pd-timeline-row small{
  display:block;
  margin-top:2px;
  color:#667085;
  font-size:12px;
}
.pd-muted,
.pd-empty-row{
  color:#667085;
  font-size:12px;
}
@media (max-width:1300px){
  .pd-practice-layout{grid-template-columns:minmax(290px,360px) minmax(0,1fr)}
  .pd-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pd-status-form{grid-template-columns:1fr}
  .pd-form-actions{justify-content:flex-start}
  .pd-upload-form{grid-template-columns:1fr}
}
@media (max-width:1000px){
  .pd-practice-header{flex-direction:column}
  .pd-header-side{align-items:flex-start}
  .pd-header-date{text-align:left}
  .pd-practice-layout{grid-template-columns:1fr}
  .pd-left-panel{border-right:0;border-bottom:1px solid var(--pd-line)}
  .pd-upload-area,
  .pd-note-grid,
  .pd-activity-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
  .pd-practice-header,
  .pd-main-panel,
  .pd-side-section{padding:16px}
  .pd-header-title-row{align-items:flex-start}
  .pd-header-copy h1{white-space:normal;font-size:20px}
  .pd-detail-tabs{overflow:auto;gap:20px;padding:0 16px}
  .pd-side-kv div,
  .pd-info-grid{grid-template-columns:1fr}
}
.crm-practice-form .practice-section-ico{
  width:22px !important;
  height:22px !important;
  border-radius:6px !important;
  margin-right:8px !important;
  background:#f7f8fa !important;
}
.crm-practice-form .practice-section-ico.summary:before{
  content:"i" !important;
  font-size:12px !important;
  font-weight:800 !important;
}
.crm-practice-form .practice-type-guide-icon{
  width:24px !important;
  height:24px !important;
  border-radius:6px !important;
  background:#f7f8fa !important;
  border:1px solid #cfd5df !important;
  color:#202631 !important;
  font-size:0 !important;
}
.crm-practice-form [data-type-card="gas"] .practice-type-guide-icon,
.crm-practice-form [data-type-card="luce"] .practice-type-guide-icon,
.crm-practice-form [data-type-card="tel"] .practice-type-guide-icon,
.crm-practice-form [data-type-card="fotovoltaico"] .practice-type-guide-icon{
  background:#f7f8fa !important;
  border-color:#cfd5df !important;
  color:#202631 !important;
}
.crm-practice-form [data-type-card="gas"] .practice-type-guide-icon:before{content:"G" !important;font-size:12px !important}
.crm-practice-form [data-type-card="luce"] .practice-type-guide-icon:before{content:"L" !important;font-size:12px !important}
.crm-practice-form [data-type-card="tel"] .practice-type-guide-icon:before{content:"T" !important;font-size:12px !important}
.crm-practice-form [data-type-card="fotovoltaico"] .practice-type-guide-icon:before{content:"F" !important;font-size:12px !important}
.crm-practice-form .practice-type-guide-card.active .practice-type-guide-icon{
  background:#202631 !important;
  border-color:#202631 !important;
  color:#fff !important;
}
.crm-practice-form .practice-live-summary-icon{
  background:#f7f8fa !important;
  border:1px solid #cfd5df !important;
  color:#202631 !important;
  border-radius:8px !important;
}
.crm-practice-form .practice-live-summary-icon:before{
  color:#202631 !important;
}
@media(max-width:1280px){
  body.crm-body-darknav .crm-top-header-utility{height:64px !important;padding:0 14px !important}
  body.crm-body-darknav .crm-top-header-nav{height:46px !important;padding:0 10px !important}
  body.crm-body-darknav .crm-horizontal-link{height:46px !important;padding:0 11px !important;font-size:12px !important}
  body.crm-body-darknav .crm-utility-search input{width:230px !important}
}
@media(max-width:1180px){
  .crm-practice-form .practice-type-guide-compact{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:700px){
  .crm-practice-form .practice-type-guide-compact{
    grid-template-columns:1fr !important;
  }
}

/* codex practice summary readability */
.crm-practice-form .practice-live-summary-titleblock strong{
  font-size:14px !important;
  line-height:1.22 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:break-word !important;
}
.crm-practice-form .practice-live-summary-titleblock small{
  font-size:12px !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.crm-practice-form .practice-live-summary-list dd{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
}

/* codex client compact pipedrive layout */
.crm-client-form-page{
  max-width:none !important;
  width:100% !important;
}
.crm-client-form{
  width:100% !important;
}
.crm-client-form .crm-form-head{
  background:#fff !important;
  border-bottom:1px solid #dfe3e8 !important;
  padding:14px 18px !important;
  margin:-18px -22px 12px !important;
  min-height:0 !important;
}
.crm-client-form .crm-form-title{
  color:#07111f !important;
  font-size:26px !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
}
.client-compact-form-grid{
  display:grid !important;
  grid-template-columns:repeat(12,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:start !important;
}
.client-compact-form-grid > .crm-form-section{
  grid-column:span 6 !important;
  background:#fff !important;
  border:1px solid #dfe3e8 !important;
  border-radius:2px !important;
  box-shadow:none !important;
  padding:13px 14px !important;
  margin:0 !important;
}
.client-compact-form-grid > .crm-form-section:nth-of-type(1){
  grid-column:span 8 !important;
}
.client-compact-form-grid > .crm-form-section:nth-of-type(2){
  grid-column:span 4 !important;
}
.client-compact-form-grid > .crm-form-section:nth-of-type(3),
.client-compact-form-grid > .crm-form-section:nth-of-type(6){
  grid-column:span 12 !important;
}
.client-compact-form-grid > .crm-form-section:nth-of-type(4){
  grid-column:span 4 !important;
}
.client-compact-form-grid > .crm-form-section:nth-of-type(5){
  grid-column:span 8 !important;
}
.crm-client-form .crm-section-title{
  color:#07111f !important;
  font-size:16px !important;
  font-weight:700 !important;
  margin:0 0 12px !important;
}
.crm-client-form .crm-form-grid{
  gap:10px 12px !important;
}
.crm-client-form .crm-form-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.crm-client-form .crm-form-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.crm-client-form .crm-form-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.crm-client-form .form-label{
  color:#07111f !important;
  font-size:11px !important;
  font-weight:700 !important;
  margin-bottom:5px !important;
}
.crm-client-form .form-control,
.crm-client-form .form-select{
  min-height:32px !important;
  height:32px !important;
  border:1px solid #c8cdd3 !important;
  border-radius:2px !important;
  background:#fff !important;
  color:#07111f !important;
  font-size:12px !important;
  padding:4px 8px !important;
}
.crm-client-form textarea.form-control.crm-notes-area{
  min-height:74px !important;
  height:74px !important;
}
.crm-client-form .crm-type-switch{
  display:flex !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  border-bottom:1px solid #dfe3e8 !important;
  padding-bottom:10px !important;
  margin-bottom:10px !important;
}
.crm-client-form .crm-type-btn{
  min-height:30px !important;
  padding:0 10px !important;
  border-radius:3px !important;
  border:1px solid #c8cdd3 !important;
  background:#fff !important;
  color:#07111f !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.crm-client-form .crm-type-btn.active{
  background:#202631 !important;
  border-color:#202631 !important;
  color:#fff !important;
}
.crm-client-form .desk-btn{
  min-height:32px !important;
  padding:6px 12px !important;
  font-size:12px !important;
}
.crm-client-form .crm-dropzone{
  min-height:58px !important;
  padding:8px !important;
  border-radius:2px !important;
}
.crm-client-form .crm-dropzone-title{
  font-size:12px !important;
}
.crm-client-form .crm-dropzone-subtitle,
.crm-client-form .crm-dropzone-filename{
  font-size:11px !important;
}
.crm-client-form .crm-field label:not(.form-label){
  font-size:12px !important;
  color:#07111f !important;
}
.crm-client-form .crm-form-foot-actions{
  margin-top:12px !important;
  border-top:1px solid #dfe3e8 !important;
  border-bottom:0 !important;
}
@media(max-width:1300px){
  .client-compact-form-grid > .crm-form-section{
    grid-column:span 12 !important;
  }
}
@media(max-width:900px){
  .crm-client-form .crm-form-grid-2,
  .crm-client-form .crm-form-grid-3,
  .crm-client-form .crm-form-grid-4{
    grid-template-columns:1fr !important;
  }
  .crm-field.wide-2,
  .crm-field.wide-3,
  .crm-field.wide-4{
    grid-column:span 1 !important;
  }
}

/* codex client ordered two-column pass */
.client-compact-form-grid{
  grid-template-columns:minmax(0,2fr) minmax(340px,.85fr) !important;
  gap:12px !important;
  align-items:start !important;
}
.client-compact-column{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  min-width:0 !important;
}
.client-compact-column > .crm-form-section{
  background:#fff !important;
  border:1px solid #d8dde5 !important;
  border-radius:3px !important;
  box-shadow:none !important;
  padding:12px 14px !important;
  margin:0 !important;
}
.client-compact-column > .crm-form-section.mt-4{
  margin-top:0 !important;
}
.crm-client-form .crm-form-head{
  box-shadow:0 1px 0 rgba(17,24,39,.04) !important;
}
.crm-client-form .crm-section-title{
  display:flex !important;
  align-items:center !important;
  min-height:20px !important;
  margin:0 0 10px !important;
  padding-bottom:8px !important;
  border-bottom:1px solid #edf0f3 !important;
  font-size:15px !important;
  font-weight:700 !important;
  color:#07111f !important;
}
.crm-client-form .crm-form-grid{
  gap:9px 10px !important;
}
.client-compact-column-side .crm-form-grid-2,
.client-compact-column-side .crm-form-grid-3,
.client-compact-column-side .crm-form-grid-4{
  grid-template-columns:1fr !important;
}
.client-compact-column-side .crm-field.wide-2,
.client-compact-column-side .crm-field.wide-3,
.client-compact-column-side .crm-field.wide-4{
  grid-column:span 1 !important;
}
.client-section-main .crm-type-switch{
  border-bottom:0 !important;
  padding-bottom:0 !important;
  margin:0 8px 9px 0 !important;
}
.client-section-main .crm-type-btn{
  min-height:28px !important;
  padding:0 9px !important;
}
.client-section-main .crm-form-grid[style]{
  margin:0 0 9px !important;
  padding:8px 0 10px !important;
  border-top:1px solid #edf0f3 !important;
  border-bottom:1px solid #edf0f3 !important;
}
.client-section-main .crm-field.wide-2 > div > label{
  min-height:30px !important;
  padding:7px 9px !important;
  flex:1 1 260px !important;
  white-space:normal !important;
  border-color:#d8dde5 !important;
  background:#fbfcfd !important;
}
.client-section-main .crm-field.wide-2 > div > label span{
  white-space:normal !important;
  font-size:11px !important;
  line-height:1.25 !important;
}
.crm-client-form .form-control,
.crm-client-form .form-select{
  border-color:#c9d0d8 !important;
}
.crm-client-form .form-control:focus,
.crm-client-form .form-select:focus{
  border-color:#3478d4 !important;
  box-shadow:0 0 0 2px rgba(52,120,212,.12) !important;
}
.crm-client-form textarea.form-control.crm-notes-area{
  min-height:66px !important;
  height:66px !important;
}
.client-section-docs-private .crm-dropzone,
.client-section-docs-company .crm-dropzone{
  min-height:50px !important;
}
.client-section-source .crm-section-title,
.client-section-notes .crm-section-title,
.client-section-contacts .crm-section-title{
  margin-bottom:9px !important;
}
.client-section-source textarea.form-control.crm-notes-area,
.client-section-notes textarea.form-control.crm-notes-area{
  min-height:82px !important;
  height:82px !important;
}
.crm-client-form .crm-form-foot-actions{
  margin-top:10px !important;
  padding-top:12px !important;
}
@media(max-width:1200px){
  .client-compact-form-grid{
    grid-template-columns:1fr !important;
  }
}

/* codex company administrator modal */
body.client-admin-modal-open{
  overflow:hidden !important;
}
.client-admin-choice{
  display:flex !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
}
.client-admin-choice label{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  min-height:30px !important;
  padding:6px 9px !important;
  border:1px solid #d8dde5 !important;
  background:#fbfcfd !important;
  border-radius:3px !important;
}
.client-admin-summary-card{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  min-height:44px !important;
  padding:8px 10px !important;
  border:1px solid #d8dde5 !important;
  background:#fbfcfd !important;
  border-radius:3px !important;
}
.client-admin-summary-card strong{
  display:block !important;
  color:#07111f !important;
  font-size:13px !important;
  line-height:1.25 !important;
}
.client-admin-summary-card span{
  display:block !important;
  margin-top:2px !important;
  color:#5d6675 !important;
  font-size:11px !important;
  line-height:1.25 !important;
  overflow-wrap:anywhere !important;
}
.client-admin-modal[hidden]{
  display:none !important;
}
.client-admin-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:3000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:22px !important;
}
.client-admin-modal-backdrop{
  position:absolute !important;
  inset:0 !important;
  background:rgba(17,24,39,.58) !important;
}
.client-admin-modal-panel{
  position:relative !important;
  width:min(760px, calc(100vw - 38px)) !important;
  max-height:calc(100vh - 42px) !important;
  display:flex !important;
  flex-direction:column !important;
  background:#fff !important;
  border:1px solid #cfd5df !important;
  border-radius:4px !important;
  box-shadow:0 18px 48px rgba(15,23,42,.32) !important;
  opacity:0 !important;
  transform:translateY(8px) scale(.985) !important;
  transition:opacity .12s ease, transform .12s ease !important;
}
.client-admin-modal.is-open .client-admin-modal-panel{
  opacity:1 !important;
  transform:translateY(0) scale(1) !important;
}
.client-admin-modal-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding:14px 16px !important;
  border-bottom:1px solid #dfe3e8 !important;
}
.client-admin-modal-head h2{
  margin:0 !important;
  font-size:19px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  color:#07111f !important;
}
.client-admin-modal-close{
  width:30px !important;
  height:30px !important;
  border:0 !important;
  background:transparent !important;
  color:#344054 !important;
  font-size:22px !important;
  line-height:1 !important;
}
.client-admin-modal-body{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  min-height:0 !important;
  overflow:auto !important;
}
.client-admin-modal-col{
  padding:14px 16px 18px !important;
}
.client-admin-modal-col + .client-admin-modal-col{
  border-left:1px solid #dfe3e8 !important;
}
.client-admin-modal .company-admin-new{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:9px !important;
}
.client-admin-modal .crm-field.wide-2{
  grid-column:span 1 !important;
}
.client-admin-modal .form-label{
  font-size:12px !important;
  font-weight:500 !important;
  color:#5d6675 !important;
  margin-bottom:5px !important;
}
.client-admin-modal .form-control,
.client-admin-modal .form-select{
  height:34px !important;
  min-height:34px !important;
  font-size:13px !important;
}
.client-admin-type-toggle{
  display:grid !important;
  grid-template-columns:1fr !important;
  margin-bottom:12px !important;
}
.client-admin-type-toggle label{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-height:34px !important;
  padding:0 12px !important;
  border:1px solid #c8cdd3 !important;
  border-radius:3px !important;
  background:#fff !important;
  color:#07111f !important;
  font-weight:700 !important;
}
.client-admin-modal-subtitle{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 0 12px !important;
  color:#07111f !important;
  font-size:13px !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:.02em !important;
}
.client-admin-modal-subtitle:after{
  content:"" !important;
  flex:1 1 auto !important;
  height:1px !important;
  background:#dfe3e8 !important;
}
.client-admin-modal-foot{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:10px 16px !important;
  border-top:1px solid #dfe3e8 !important;
  background:#fbfcfd !important;
}
.client-admin-modal-count{
  color:#07111f !important;
  font-size:13px !important;
}
.client-admin-modal-actions{
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
}
@media(max-width:760px){
  .client-admin-modal{
    padding:10px !important;
    align-items:flex-start !important;
  }
  .client-admin-modal-panel{
    width:100% !important;
    max-height:calc(100vh - 20px) !important;
  }
  .client-admin-modal-body{
    grid-template-columns:1fr !important;
  }
  .client-admin-modal-col + .client-admin-modal-col{
    border-left:0 !important;
    border-top:1px solid #dfe3e8 !important;
  }
}

/* codex simple practice tabs cleanup */
.crm-practice-form > .crm-form-head:first-of-type{
  min-height:64px !important;
  align-items:center !important;
  padding:12px 24px 12px 16px !important;
}
.crm-practice-form > .crm-form-head:first-of-type:after{
  content:none !important;
  display:none !important;
}
.crm-practice-form .crm-form-title{
  margin:0 !important;
}
.crm-practice-form .practice-form-tabs{
  height:48px !important;
  align-items:flex-end !important;
  gap:26px !important;
  padding:0 18px !important;
}
.crm-practice-form .practice-form-tab{
  min-height:36px !important;
  height:36px !important;
  gap:7px !important;
  padding:0 0 8px !important;
  border-bottom:2px solid transparent !important;
  color:#344054 !important;
}
.crm-practice-form .practice-form-tab.active{
  color:#172033 !important;
  border-bottom-color:#4f46e5 !important;
}
.crm-practice-form .practice-form-tab strong{
  font-size:14px !important;
  font-weight:800 !important;
  color:inherit !important;
}
.crm-practice-form .practice-tab-ico{
  width:auto !important;
  height:auto !important;
  min-width:18px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#667085 !important;
  box-shadow:none !important;
  font-size:0 !important;
  line-height:1 !important;
}
.crm-practice-form .practice-form-tab.active .practice-tab-ico{
  background:transparent !important;
  border:0 !important;
  color:#172033 !important;
}
.crm-practice-form .practice-tab-ico:before{
  font-size:12px !important;
  font-weight:800 !important;
  letter-spacing:0 !important;
  line-height:1 !important;
}
.crm-practice-form .practice-tab-ico.customer:before{content:"1" !important}
.crm-practice-form .practice-tab-ico.contract:before{content:"2" !important}
.crm-practice-form .practice-tab-ico.supply:before{content:"3" !important}
.crm-practice-form .practice-tab-ico.notes:before{content:"4" !important}
.crm-practice-form .practice-tab-ico.docs:before{content:"5" !important}
