/* Generated by scripts/build-startup-css.mjs; edit the source stylesheets. */

/* customer-detail.css */
/* Keep profile context visible while editing and page long histories. */
.detail-edit-panel{margin:8px 0 12px;padding:12px;border:1px solid #c2d2dc;border-radius:9px;background:linear-gradient(155deg,#fff,#f3f7fa);box-shadow:inset 0 1px #fff,0 3px 0 #e0e8ed,0 5px 12px #233d5210}
.detail-edit-panel h3{margin:0 0 10px;font-size:14px;color:#172a36}
.detail-edit-panel .form-grid{gap:8px 12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.detail-edit-panel .form-field{gap:4px;font-size:12px}
.detail-edit-panel input,.detail-edit-panel select{min-height:31px;padding:5px 8px}
.detail-edit-panel .modal-footer{padding:8px 0 0;margin-top:8px;border-top:1px solid #d9e2e8}
.follow-history-head,.follow-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#415564}
.follow-history-head{margin:12px 0 6px;padding-bottom:6px;border-bottom:1px solid #d9e2e8}
.follow-history-head strong{color:#172a36}.follow-history-head strong span{margin-left:4px;font-weight:500;color:#5e707e}
.follow-pagination{border-top:1px solid #d9e2e8;padding:8px 0 2px}.follow-pagination>div{display:flex;gap:6px}
#follow-history .timeline-item{padding:6px 0 8px 14px}#follow-history .timeline-text{margin:4px 0;line-height:1.5}#follow-history .timeline-time{font-size:11px;color:#526775}
@media(max-width:760px){.detail-edit-panel{padding:9px;margin:8px 0}.detail-edit-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.detail-edit-panel input,.detail-edit-panel select{width:100%;min-width:0;min-height:36px}.follow-pagination .button{min-height:38px;padding:6px 12px}#follow-history .timeline-item{padding-bottom:9px}}
.customer-edit-conflicts{margin:8px 0;padding:10px;border:1px solid #e5bc83;border-radius:7px;background:#fff9ee;color:#6b451d;font-size:12px}.customer-edit-conflicts:empty{display:none}.customer-edit-conflicts p{margin:0 0 7px}.customer-edit-conflicts label{display:grid;grid-template-columns:minmax(80px,1fr) minmax(130px,1fr);gap:8px;align-items:center;padding:5px 0}.customer-edit-conflicts small{display:block;overflow-wrap:anywhere;line-height:1.5}.customer-edit-conflicts select{min-width:0;width:100%}

/* Compact customer context and an expandable, session-preserving follow-up form. */
.modal.detail-modal{width:960px;height:auto;max-width:calc(100vw - 40px);max-height:min(720px,calc(100dvh - 48px));color:var(--crm-ink,#253b34)}
.modal.detail-modal .modal-header{padding:10px 14px;min-height:42px}
.modal.detail-modal .modal-header h2{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.modal.detail-modal .modal-header h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal.detail-modal .modal-body{padding:14px 16px;background:var(--crm-surface,#fff)}
.modal.detail-modal .customer-profile{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:0 0 10px;margin:0;border-right:0;overflow:visible}
.modal.detail-modal .customer-profile>.customer-avatar{width:36px;height:36px;border-radius:10px;margin:0}
.modal.detail-modal .customer-profile>div:nth-child(2){min-width:0;flex:1;width:auto}
.modal.detail-modal .customer-profile h2{font-size:18px;line-height:1.35;margin:0 0 3px}
.modal.detail-modal .customer-profile p{font-size:11px;line-height:1.6;margin:0}
.modal.detail-modal .detail-primary-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}
.modal.detail-modal .button{font-size:12px;min-height:29px;padding:5px 9px}
.modal.detail-modal .detail-top-controls{padding:8px 0;gap:8px;margin-bottom:0}
.modal.detail-modal .detail-top-controls>label{font-size:12px;min-width:0;gap:7px}
.modal.detail-modal .detail-top-controls select{min-width:130px;font-size:12px;min-height:29px;padding:4px 7px}
.modal.detail-modal .detail-tags{gap:3px}
.modal.detail-modal .detail-tags .checkbox-row{padding:2px 4px;min-height:24px;font-size:11px}
.modal.detail-modal .detail-tags .tag{font-size:11px;padding:2px 5px}
.modal.detail-modal .detail-command-bar{padding:8px 0 10px;gap:6px}
.modal.detail-modal .detail-command-bar:empty{display:none}
.modal.detail-modal .detail-columns{height:auto;grid-template-columns:minmax(230px,.85fr) minmax(0,1.15fr);gap:18px;padding-top:12px}
.modal.detail-modal .detail-columns>section{min-width:0}
.modal.detail-modal .detail-columns>section:first-child{padding-right:16px}
.modal.detail-modal .detail-columns>section>.section-heading{font-size:13px;margin:0 0 8px;color:var(--crm-ink,#253b34)}
.modal.detail-modal .profile-fields>div{grid-template-columns:76px minmax(0,1fr);gap:9px;padding:7px 0}
.modal.detail-modal .profile-fields dt{font-size:11px;line-height:1.7;color:var(--crm-muted,#62776d)}
.modal.detail-modal .profile-fields dd,.modal.detail-modal .profile-fields dd .customer-name,.modal.detail-modal .profile-fields dd .phone-link{font-size:12px;line-height:1.7;color:var(--crm-ink,#253b34)}
.modal.detail-modal .profile-fields dd:empty{min-height:24px}
.modal.detail-modal .detail-columns>section>p.tiny{font-size:11px;line-height:1.6;margin-top:8px}
.modal.detail-modal .follow-composer{padding:8px;margin-bottom:10px;border-color:var(--crm-border,#d2ded7);background:var(--crm-soft,#f3f7f3);border-radius:7px}
.modal.detail-modal .follow-composer-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}
.modal.detail-modal .follow-composer-head .tiny{font-size:11px;line-height:1.5;min-width:0;overflow-wrap:anywhere;color:var(--crm-muted,#62776d)}
.modal.detail-modal .follow-composer-toggle{flex:none;min-height:24px;padding:2px 7px;font-size:11px}
.modal.detail-modal .follow-composer textarea{display:block;width:100%;min-height:38px;height:38px;max-height:38px;resize:none;padding:7px 8px;font-size:12px;line-height:1.6;background:var(--crm-surface,#fff);color:var(--crm-ink,#253b34);border-color:var(--crm-border,#d2ded7)}
.modal.detail-modal .follow-composer.is-expanded textarea{height:88px;min-height:70px;max-height:190px;resize:vertical}
.modal.detail-modal #follow-composer-tools[hidden]{display:none}
.modal.detail-modal .follow-composer .inline-form{grid-template-columns:minmax(0,1fr);margin:8px 0;gap:7px}
.modal.detail-modal .follow-composer .inline-form .form-field{font-size:11px;gap:4px;margin-bottom:0;align-items:flex-start}
.modal.detail-modal .follow-composer .inline-form input{font-size:12px;max-width:250px;min-height:30px;padding:4px 7px}
.modal.detail-modal .follow-composer .audio-tools{gap:6px}
.modal.detail-modal .follow-composer .audio-tools .button{font-size:11px}
.modal.detail-modal .follow-composer .audio-tools .tiny{font-size:11px;line-height:1.5}
.modal.detail-modal #follow-composer-tools>p{font-size:10px;line-height:1.6;margin:7px 0;color:var(--crm-muted,#62776d)}
.modal.detail-modal #follow-composer-tools>.button{margin-top:8px}
.modal.detail-modal .follow-history-head{margin-top:8px;font-size:11px}
.modal.detail-modal #follow-history .timeline{padding:0 0 0 2px;min-height:0;overflow:visible}
.modal.detail-modal #follow-history .follow-record{padding:7px 0 10px 12px;margin-left:4px;border-color:var(--crm-border,#d2ded7)}
.modal.detail-modal #follow-history .follow-record-header{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;line-height:1.5;margin:0 0 4px;color:var(--crm-muted,#62776d);font-size:11px}
.modal.detail-modal .follow-record-header time{font-variant-numeric:tabular-nums}
.modal.detail-modal .follow-record-actor{font-size:11px;color:var(--crm-ink,#253b34);font-weight:600;overflow-wrap:anywhere}
.modal.detail-modal .follow-record-header .record-type{font-size:10px;padding:1px 5px;color:var(--crm-muted,#62776d);background:var(--crm-soft,#f3f7f3)}
.modal.detail-modal #follow-history .follow-record-content{font-size:12px;line-height:1.7;margin:0;white-space:pre-wrap;color:var(--crm-ink,#253b34)}
.modal.detail-modal .follow-record-next{display:block;margin-top:5px;font-size:10px;color:var(--crm-muted,#62776d)}
.modal.detail-modal .follow-record-attachment audio.record-audio{height:32px;margin:7px 0 3px}
.modal.detail-modal .follow-record-attachment>a{font-size:11px;overflow-wrap:anywhere}
.modal.detail-modal .follow-pagination{font-size:11px;padding-top:7px}
/* One scroll area keeps the last field, history entry and pager reachable. */
.modal.detail-modal{min-height:0;overflow:hidden}
.modal.detail-modal .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:20px}
.modal.detail-modal .detail-columns>section{max-height:none;overflow:visible;overscroll-behavior:auto}
.detail-edit-panel.detail-inline-fields{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0}
.detail-inline-fields #customer-form{position:relative;min-width:0}
.detail-inline-fields .profile-fields{margin:0}
.detail-inline-fields .profile-fields dd.is-editing,.modal.detail-modal .customer-profile h2.is-editing{position:relative;min-width:0}
.detail-inline-fields .is-editing>[data-sales-read-value],.customer-profile h2.is-editing>[data-sales-read-value]{visibility:hidden;display:block;min-height:24px}
.detail-inline-control{position:absolute;inset:0;display:flex;align-items:stretch;min-width:0}
.modal.detail-modal .detail-inline-control :is(input,select,textarea){width:100%;height:100%;min-height:0;padding:1px 4px;margin:0;font-size:12px;line-height:1.6;border-radius:4px;box-shadow:none;resize:none}
.modal.detail-modal h2 .detail-inline-control input{font-size:inherit;font-weight:inherit}
.modal.detail-modal .customer-profile h2.is-editing>.detail-inline-control{right:auto;width:min(220px,100%);max-width:100%}
.detail-inline-fields .modal-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:6px;padding:6px 0;margin:0;background:var(--crm-surface,#fff)}
.detail-inline-fields .customer-edit-error{position:absolute;bottom:100%;left:0;right:0;z-index:3;max-height:50px;overflow:auto;font-size:11px;padding:4px;background:var(--crm-surface,#fff);margin:0;color:var(--crm-accent,#247c62)}
.detail-inline-fields .customer-edit-error[data-error=true]{color:var(--danger,#b42e41)}
@media(max-width:760px){
 .modal.detail-modal .detail-inline-control :is(input,select,textarea){font-size:16px;line-height:1.3}
 .modal.detail-modal{width:100%;max-width:100%;height:auto;max-height:calc(var(--mobile-viewport-height,100dvh) - 20px)}
 .modal.detail-modal .modal-header{padding:9px 11px;min-height:44px}
 .modal.detail-modal .modal-body{padding:11px}
 .modal.detail-modal .customer-profile{gap:8px;padding-bottom:8px}
 .modal.detail-modal .customer-profile h2{font-size:17px}
 .modal.detail-modal .customer-profile>.customer-avatar{width:34px;height:34px}
 .modal.detail-modal .customer-profile .detail-primary-actions{width:100%;justify-content:flex-start;gap:5px}
 .modal.detail-modal .button{font-size:12px;min-height:34px;padding:6px 9px}
 .modal.detail-modal .detail-top-controls{padding:7px 0;gap:7px}
 .modal.detail-modal .detail-top-controls select{min-height:34px;font-size:16px;max-width:100%}
 .modal.detail-modal .detail-top-controls>label{flex-wrap:wrap}
 .modal.detail-modal .detail-tags .checkbox-row{min-height:30px}
 .modal.detail-modal .detail-columns{display:block;padding-top:10px}
 .modal.detail-modal .detail-columns>section:first-child{padding:0 0 10px;margin-bottom:12px}
 .modal.detail-modal .detail-columns>section{max-height:none;overflow:visible}
 .modal.detail-modal .profile-fields>div{padding:6px 0;grid-template-columns:76px minmax(0,1fr)}
 .modal.detail-modal .follow-composer textarea{font-size:16px;height:42px;min-height:42px;max-height:42px;padding:7px 8px;line-height:1.6}
 .modal.detail-modal .follow-composer.is-expanded textarea{height:98px;min-height:85px;max-height:200px}
 .modal.detail-modal .follow-composer-toggle{min-height:30px;padding:3px 8px}
 .modal.detail-modal .follow-composer .inline-form input{font-size:16px;min-height:36px;max-width:100%}
 .modal.detail-modal .follow-composer .audio-tools .button{font-size:12px}
 .modal.detail-modal #follow-history .follow-record-header{gap:4px 7px}
 .modal.detail-modal .follow-pagination .button{min-height:36px}
}

.sales-deal-stage-prompt{box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:16px;border:1px solid var(--crm-border,#cdd7e0);border-radius:10px;background:var(--crm-surface,#fff);color:var(--crm-ink,#172333)}
.sales-deal-stage-prompt::backdrop{background:#17233360}
.sales-deal-stage-prompt h2{margin:0 0 8px;font-size:16px}
.sales-deal-stage-prompt p{margin:0 0 12px}
.sales-deal-prompt-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}

.sales-assignment-popover .org-form-scroll{
 display:grid;align-content:start;gap:6px;height:min(46dvh,390px);padding:8px 10px
}
.sales-assignment-search{position:sticky;top:-8px;z-index:1;padding:2px 0;background:var(--crm-surface,#fff)}
.sales-assignment-search input{
 box-sizing:border-box;width:100%;min-height:34px;padding:5px 8px;
 border:1px solid var(--crm-border,#ceddd6);border-radius:5px;background:var(--crm-surface,#fff);
 color:var(--crm-ink,#20342c);font:inherit
}
.sales-assignment-popover .user-select-tree{max-height:none;min-width:0;overflow:visible;border:0;padding:0;background:transparent}
.sales-assignment-popover [hidden]{display:none!important}
.sales-assignment-popover .tree-department>summary,.sales-assignment-popover [data-user-tree-label]{min-height:27px;padding-block:3px}
.sales-assignment-empty{margin:0;color:var(--crm-muted,#50645b);font-size:12px}
.sales-assignment-selected{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--crm-muted,#50645b)}
@media(max-width:760px){
 .sales-assignment-popover .org-form-scroll{padding:7px 8px;height:min(45dvh,370px)}
 .sales-assignment-search{top:-7px}
 .sales-assignment-search input{min-height:37px;font-size:16px}
 .sales-assignment-popover .tree-department>summary,.sales-assignment-popover [data-user-tree-label]{min-height:30px}
 .sales-assignment-popover #assign-form>.modal-footer .button{min-height:44px}
}


/* password-ui.css */
/* Password prompts fit the existing desktop and phone workspace. */
.password-change-reminder{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:7px 16px;background:linear-gradient(110deg,#fff7df,#fffcef);border-bottom:1px solid #e5d6af;color:#654b23;font-size:12px;box-shadow:inset 0 1px #fff,0 2px 4px #5d48230b}
.password-change-reminder .button{min-height:27px;padding:4px 10px;font-size:11px}
.password-form-note{margin:0 0 14px;padding:10px 12px;border:1px solid #c6dccd;border-radius:8px;background:#f0f8f2;color:#335840;line-height:1.65;font-size:12px}
#user-form .form-field small,#password-form #password-policy-hint,#reset-password-form #reset-password-hint{font-size:11px;line-height:1.6;color:#52675a;white-space:normal}
@media(max-width:760px){.password-change-reminder{justify-content:space-between;gap:6px;padding:7px 12px;font-size:11px}.password-change-reminder .button{min-height:32px;font-size:11px}.password-form-note{padding:9px 10px;font-size:12px}}


/* dashboard-layout.css */
/* The homepage gives working items priority; figures remain individually available. */
.dashboard-home{--home-ink:#20352f;--home-muted:#61756d;--home-line:#dce7e1;display:grid;gap:14px;color:var(--home-ink);min-width:0}
.dashboard-home *{box-sizing:border-box}
.dashboard-home .home-header.welcome-banner{display:block;position:relative;isolation:isolate;min-height:0;margin:0;padding:15px 18px;border:1px solid #bdd7c8;border-top:3px solid #519d80;border-radius:12px;background:radial-gradient(ellipse at 85% 10%,#cbe5d566,transparent 52%),linear-gradient(115deg,#fafffc,#e9f4ed);box-shadow:inset 0 1px #fff,0 3px 0 #d2e2d8,0 8px 20px #203f2e0b;overflow:hidden}
.dashboard-home .home-header:after{content:'';position:absolute;inset:0 0 0 62%;z-index:-1;opacity:.35;pointer-events:none;background:repeating-linear-gradient(125deg,transparent 0 38px,#bdd8c44d 39px 40px,transparent 41px 78px);transform:none;border-radius:0;width:auto;height:auto;right:0;top:0}
.dashboard-home .home-header .hero-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.14;pointer-events:none;z-index:-1}
.dashboard-home .home-header .welcome-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:20px;min-width:0;position:relative;z-index:1}
.dashboard-home .welcome-copy>.chip{justify-self:start;max-width:100%;white-space:normal;padding:0;border:0;background:none;box-shadow:none;color:#4b7a62;font-size:10px;line-height:1.5;letter-spacing:.4px;margin:0 0 3px;grid-column:1}
.dashboard-home .welcome-copy h1{display:block;font-size:22px;line-height:1.4;margin:0;color:#203e32;letter-spacing:.2px;grid-column:1;overflow-wrap:anywhere}
.dashboard-home .welcome-copy>p{font-size:11px;line-height:1.55;color:#5c7466;margin:4px 0 0;grid-column:1;overflow-wrap:anywhere}
.dashboard-home .home-header .quick-actions{grid-column:2;grid-row:1/4;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px;max-width:390px;margin:0}
.dashboard-home .quick-actions>.button{min-height:32px;padding:6px 10px;font-size:11px;border-radius:7px;white-space:nowrap}
.dashboard-home .quick-actions .dashboard-effects-controls{margin:2px 0 0;justify-content:flex-end;flex-basis:100%}
.dashboard-home .dashboard-effects-controls .dashboard-effects-toggle{min-height:25px;font-size:9px;padding:4px 7px}
.dashboard-home .dashboard-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border-top:1px solid #cfe0d5;padding-top:10px;margin:10px 0 0}
.dashboard-home .dashboard-controls label{display:flex;align-items:center;gap:7px;font-size:10px;color:#516e5d;min-width:0;flex:none}
.dashboard-home .dashboard-controls select{width:168px;max-width:100%;min-height:29px;font-size:11px!important;padding:4px 8px;background:#ffffffd9;border-color:#c5dacb;border-radius:6px;box-shadow:inset 0 1px 2px #3759410a,0 1px #fff}
.dashboard-home .home-workspace{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(300px,1fr);align-items:stretch;gap:14px;min-width:0}
.dashboard-home .home-action-column,.dashboard-home .home-insight-column{display:flex;flex-direction:column;min-width:0}
.dashboard-home .home-action-column>.home-today,.dashboard-home .home-insight-column>.home-month-shell,.dashboard-home .home-month-shell>.home-month{flex:1;min-height:0}
.dashboard-home .home-month-shell{--home-month-heading-height:51px;position:relative;display:flex;flex-direction:column;min-width:0}
.dashboard-home .home-today,.dashboard-home .home-month[open]{display:flex;flex-direction:column}
.dashboard-home .home-month-body{flex:1;display:flex;flex-direction:column}
.dashboard-home .panel{margin:0;padding:15px;border:1px solid var(--home-line);border-radius:11px;background:linear-gradient(155deg,#fff,#fcfefd);box-shadow:inset 0 1px #fff,0 3px 0 #e1e9e4,0 8px 20px #263e3008;min-width:0}
.dashboard-home .home-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;min-width:0;margin-bottom:12px}
.dashboard-home .home-section-head h2{font-size:15px;line-height:1.4;color:#263c31;margin:0;letter-spacing:.1px}
.dashboard-home .home-section-head p,.dashboard-home .home-section-head small{font-size:10px;line-height:1.5;color:var(--home-muted);margin:3px 0 0}
.dashboard-home .home-section-head>.button,.dashboard-home .home-section-head .button{min-height:28px;padding:4px 8px;font-size:10px;border-radius:6px}
.dashboard-home .home-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.dashboard-home .home-task.summary-tile{--task-color:#ac7935;--task-tint:#fbf5e9;position:relative;display:grid;grid-template-columns:1fr auto;align-content:start;gap:4px 5px;min-width:0;min-height:100px;width:100%;padding:11px;border:1px solid #e4d9c3;border-radius:9px;text-align:left;color:var(--home-ink);background:linear-gradient(145deg,#fff,var(--task-tint));box-shadow:inset 0 1px #fff,0 2px 0 #e8e2d6,0 4px 10px #51432608;cursor:pointer;overflow:hidden}
.dashboard-home .home-task:nth-child(2){--task-color:#4d83b1;--task-tint:#eff5fb;border-color:#d2dfea;box-shadow:inset 0 1px #fff,0 2px 0 #dce6ef,0 4px 10px #28405a08}
.dashboard-home .home-task:nth-child(3){--task-color:#46896b;--task-tint:#edf6f0;border-color:#cfdfd4;box-shadow:inset 0 1px #fff,0 2px 0 #dce9df,0 4px 10px #28413208}
.dashboard-home .home-task .home-task-icon{display:grid;place-items:center;grid-column:2;grid-row:1/3;width:28px;height:28px;color:var(--task-color);background:#ffffffa6;border:1px solid color-mix(in srgb,var(--task-color),transparent 76%);border-radius:8px}
.dashboard-home .home-task-icon svg{width:17px;height:17px;display:block}
.dashboard-home .home-task .stat-label{grid-column:1;display:block;font-size:11px;font-weight:600;line-height:1.4;color:#35473c;margin:0;min-height:0}
.dashboard-home .home-task .stat-value{grid-column:1;font-size:27px;line-height:1.1;font-weight:700;color:var(--task-color);margin:2px 0;overflow-wrap:anywhere}
.dashboard-home .home-task .stat-hint{grid-column:1/-1;font-size:9px;line-height:1.5;color:#66766c;margin:0;min-height:0}
.dashboard-home .home-today-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 0;padding:10px 0 0;border-top:1px solid #e6ede8}
.dashboard-home .home-today-stat{min-width:0;padding:8px 9px;border:1px solid #dce8e0;border-radius:7px;background:#f7faf8}
.dashboard-home .home-today-stat dt{font-size:10px;line-height:1.35;color:#546a5c;overflow-wrap:anywhere}
.dashboard-home .home-today-stat dd{margin:4px 0 0;font-size:17px;line-height:1.2;font-weight:700;color:#254d3a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-home .home-today-stat small{display:none}
.dashboard-home .home-task:where(:hover,:focus-visible){border-color:var(--task-color);box-shadow:inset 0 1px #fff,0 3px 0 #d9e5dc,0 8px 15px #24453113}
.dashboard-home .home-total-strip{display:flex;align-items:center;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;margin-top:auto;padding-top:12px;border-top:1px solid #e6ede8}
.dashboard-home .home-total-strip>:is(button,div,span){display:flex;align-items:center;gap:7px;min-height:26px;margin:0;padding:0;border:0;background:none;box-shadow:none;font-size:11px;color:#5b7064;line-height:1.4;text-align:left}
.dashboard-home .home-total-strip button{cursor:pointer}.dashboard-home .home-total-strip strong{font-size:15px;color:#253e31;font-variant-numeric:tabular-nums}
.dashboard-home .home-total-strip button:hover{color:#167252;text-decoration:underline;text-underline-offset:3px}
.dashboard-home :is(.home-task,.welcome-metric)[aria-disabled=true]{cursor:default}
.dashboard-home .home-priority.panel{border-top:2px solid #b1c9bb}
.dashboard-home .home-priority .home-section-head{margin-bottom:9px}
.dashboard-home .priority-tools{display:flex;gap:8px;align-items:center}.dashboard-home .priority-tools>:is(small,span){font-size:9px;background:none;padding:0;border:0;color:#7d7968}
.dashboard-home .priority-limit-note{font-size:10px;line-height:1.5;margin:0 0 8px;color:#6a776e}
.dashboard-home .home-priority .priority-list{display:grid;gap:5px;max-height:270px;overflow-y:auto;min-height:0;padding:1px 4px 4px 0;scrollbar-width:thin;scrollbar-color:#bbd2c3 transparent;overscroll-behavior:contain}
.dashboard-home .home-priority .priority-item{display:flex;align-items:center;gap:9px;min-width:0;width:100%;min-height:47px;padding:7px 8px;border:1px solid #e0e9e4;border-left:3px solid #a6c9b5;border-radius:7px;background:linear-gradient(#fff,#f9fcfa);box-shadow:inset 0 1px #fff,0 1px 1px #2a48320b;text-align:left;cursor:pointer}
.dashboard-home .home-priority .priority-item:nth-child(3n+2){border-left-color:#b7cbdc}.dashboard-home .home-priority .priority-item:nth-child(3n){border-left-color:#cbbfdc}
.dashboard-home .priority-item>.avatar{width:29px;height:29px;min-width:29px;font-size:12px;border-radius:9px;box-shadow:inset 0 1px #fff,0 1px 2px #38534110}
.dashboard-home .priority-item>div{min-width:0;flex:1}.dashboard-home .priority-item strong{display:block;font-size:12px;line-height:1.45;color:#243b2f;overflow-wrap:anywhere}.dashboard-home .priority-item small{display:block;font-size:10px;line-height:1.4;color:#748177;margin-top:1px;overflow-wrap:anywhere}
.dashboard-home .priority-item .badge{flex:none;font-size:9px;padding:3px 5px;border-radius:5px;white-space:nowrap;max-width:100%}
.dashboard-home .priority-item:hover{border-color:#a8c5b5;background:#f3f9f5}
.dashboard-home .home-month{padding:0;overflow:hidden}
.dashboard-home .home-month>summary{display:flex;align-items:center;gap:9px;min-height:var(--home-month-heading-height);list-style:none;padding:6px 15px;cursor:pointer;color:#2a4436;flex-wrap:nowrap}
.dashboard-home .home-month>summary::-webkit-details-marker{display:none}
.dashboard-home .home-month>summary>div{flex:1;min-width:0}
.dashboard-home .home-month>summary h2{width:max-content;max-width:100%;white-space:nowrap}
.dashboard-home .home-month>summary{margin:0}
.dashboard-home .home-month-chevron{display:none}
.dashboard-home .home-month>summary h2{font-size:15px;margin:0;line-height:1.4;color:#2b4435}
.dashboard-home .home-month>summary small{font-size:10px;color:#6c8173;line-height:1.5}
.dashboard-home .home-month>summary::after{content:'⌄';font-size:17px;line-height:1;color:#71907a;transform:rotate(-90deg)}
.dashboard-home .home-month[open]>summary::after{transform:none}
.dashboard-home .home-month>summary>[aria-hidden=true]{display:none}
.dashboard-home .home-month-body{padding:0 15px 12px;border-top:1px solid #e6eee8}
.dashboard-home .home-month-metrics{display:grid;gap:0;margin:0}
.dashboard-home .home-month-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid #eef2ef}
.dashboard-home .home-month-metrics dt{font-size:11px;color:#4f6557;min-width:0;line-height:1.5}
.dashboard-home .home-month-metrics dt small{display:none}
.dashboard-home .home-month-metrics dd{margin:0;color:#294b36;font-size:15px;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:50%;text-align:right}
.dashboard-home .home-month-stock.welcome-metric{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 0;padding:7px 9px;min-height:32px;width:100%;border:1px solid #d8e5dc;border-radius:6px;color:#476a53;background:#f0f7f2;box-shadow:inset 0 1px #fff;text-align:left;cursor:pointer}
.dashboard-home .home-month-stock span{font-size:10px;line-height:1.5}.dashboard-home .home-month-stock strong{font-size:15px;margin:0;line-height:1.5;color:#2e6645;font-variant-numeric:tabular-nums}
.dashboard-home .home-month-stock span:last-child:not(:first-child){font-size:9px;color:#6d8271}
.dashboard-home .home-progress.panel{border-top:2px solid #a7c6b7}
.dashboard-home .home-progress .home-section-head{margin-bottom:7px}
.dashboard-home .home-stage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;max-height:278px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#bbd2c3 transparent;padding:0 2px 1px 0;min-width:0}
.dashboard-home .home-stage-list .stage-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px;align-content:start;width:100%;min-width:0;min-height:47px;margin:0;padding:8px 0 6px;border:0;border-bottom:1px solid #edf1ee;border-radius:0;background:none;box-shadow:none;text-align:left;color:#435c4b;cursor:pointer}
.dashboard-home .home-stage-label{display:block}.dashboard-home .home-stage-label span,.dashboard-home .stage-item>span{min-height:0;font-size:10px;line-height:1.45;color:#4c6354;overflow-wrap:anywhere;grid-column:1;margin:0}
.dashboard-home .home-stage-label strong,.dashboard-home .stage-item>strong{grid-column:2;font-size:13px;line-height:1.45;margin:0;color:#35543f;font-variant-numeric:tabular-nums}
.dashboard-home .stage-item .home-stage-track{grid-column:1/-1;height:4px;width:100%;background:#ecf2ee;border-radius:3px;overflow:hidden}
.dashboard-home .home-stage-track>div,.dashboard-home .home-stage-track>span{display:block;height:100%;background:var(--stage-accent,#80ad94);border-radius:3px;min-width:0;margin:0}
.dashboard-home .stage-item>small{grid-column:1/-1;font-size:8px;line-height:1.3;color:#8b978e;margin:0}
.dashboard-home .home-stage-list .stage-item.focus-stage{background:none;border-left:0}
.dashboard-home .stage-item.focus-stage .home-stage-label{color:#246747;font-weight:650}
.dashboard-home .home-task:not(button),.dashboard-home .home-month-stock:not(button){cursor:default}
.dashboard-home .home-stage-list .stage-item:hover,.dashboard-home .home-stage-list .stage-item:focus-visible{background:#f0f7f2;box-shadow:none}
.dashboard-home .home-meetings.panel{padding:7px 13px}.dashboard-home .home-meetings .home-section-head{margin-bottom:3px}
.dashboard-home .home-meetings #dashboard-meetings{display:grid;gap:0}
.dashboard-home .home-meeting{padding:0;border:0;border-bottom:1px solid #edf1ee;border-radius:0;background:none;box-shadow:none;min-width:0}
.dashboard-home .home-meeting:last-child{border-bottom:0}
.dashboard-home .home-meeting>summary{display:flex;gap:14px;align-items:center;padding:9px 0;list-style:none;cursor:pointer;min-width:0}
.dashboard-home .home-meeting>summary::-webkit-details-marker{display:none}.dashboard-home .home-meeting time{font-size:10px;color:#7a887e;flex:none}
.dashboard-home .home-meeting strong{min-width:0;flex:1;font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:#3b5342}
.dashboard-home .home-meeting>summary>span{font-size:9px;color:#7e9585;flex:none}.dashboard-home .home-meeting>p{font-size:11px;line-height:1.7;margin:0 0 10px 0;padding:9px 12px;background:#f5f9f6;border-left:2px solid #bfd8c8;white-space:pre-wrap;overflow-wrap:anywhere;color:#53695a}
.dashboard-home .empty{padding:24px 12px;font-size:11px;line-height:1.7;color:#7c8b80;background:none}
.dashboard-home :is(button,summary):focus-visible{outline:2px solid #40966d;outline-offset:3px}
@media(min-width:1550px){.dashboard-home .home-workspace{grid-template-columns:minmax(0,1.6fr) minmax(360px,1fr)}.dashboard-home .home-task.summary-tile{min-height:105px;padding:12px 14px}.dashboard-home .home-task .stat-value{font-size:29px}.dashboard-home .home-priority .priority-list{max-height:280px}}
@media(min-width:761px) and (max-width:1100px){.dashboard-home .home-workspace{grid-template-columns:minmax(0,1.25fr) minmax(270px,1fr);gap:12px}.dashboard-home .home-header .welcome-copy{grid-template-columns:1fr}.dashboard-home .home-header .quick-actions{grid-column:1;grid-row:auto;max-width:none;justify-content:flex-start;margin-top:9px}.dashboard-home .quick-actions .dashboard-effects-controls{margin:0 0 0 auto;flex-basis:auto}.dashboard-home .home-task-grid{gap:6px}.dashboard-home .home-task.summary-tile{padding:9px 8px;min-height:96px}.dashboard-home .home-task .home-task-icon{width:22px;height:22px}.dashboard-home .home-task-icon svg{width:14px;height:14px}.dashboard-home .home-task .stat-label{font-size:10px}.dashboard-home .home-task .stat-value{font-size:25px}.dashboard-home .home-task .stat-hint{font-size:9px}.dashboard-home .panel{padding:12px}.dashboard-home .home-month{padding:0}.dashboard-home .home-stage-list{column-gap:10px}}
@media(max-width:760px){
 .dashboard-home{gap:12px}.dashboard-home .home-header.welcome-banner{padding:12px;border-radius:11px;border-top-width:2px}.dashboard-home .home-header .welcome-copy{display:block}.dashboard-home .welcome-copy h1{font-size:19px;line-height:1.4;max-width:none}.dashboard-home .welcome-copy>.chip{font-size:9px;margin-bottom:3px;display:inline-block}.dashboard-home .welcome-copy>p{font-size:10px;line-height:1.5;margin-top:4px}.dashboard-home .home-header .quick-actions{justify-content:flex-start;max-width:none;margin-top:10px;gap:6px}.dashboard-home .quick-actions>.button{min-height:33px;font-size:10px;padding:6px 8px}.dashboard-home .quick-actions .dashboard-effects-controls{margin:0;flex-basis:auto;gap:4px}.dashboard-home .dashboard-effects-controls .dashboard-effects-toggle{min-height:28px;font-size:9px;padding:4px 6px}
 .dashboard-home .dashboard-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;padding-top:8px}.dashboard-home .dashboard-controls label{display:grid;gap:4px;font-size:9px}.dashboard-home .dashboard-controls select{width:100%;min-height:33px;font-size:12px!important;padding:5px 6px}
 .dashboard-home .home-workspace{grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}.dashboard-home .home-action-column>.home-today,.dashboard-home .home-insight-column>.home-month-shell,.dashboard-home .home-month-shell>.home-month{flex:auto}.dashboard-home .panel{padding:12px;border-radius:10px}.dashboard-home .home-section-head{gap:5px 8px;margin-bottom:10px}.dashboard-home .home-section-head h2{font-size:14px}.dashboard-home .home-section-head p,.dashboard-home .home-section-head small{font-size:9px}.dashboard-home .home-section-head .button{min-height:31px;font-size:10px}
 .dashboard-home .home-today-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px;padding-top:9px}.dashboard-home .home-today-stat{padding:8px}.dashboard-home .home-today-stat dt{font-size:10px}.dashboard-home .home-today-stat dd{font-size:17px}.dashboard-home .home-total-strip{margin-top:10px}
 .dashboard-home .home-task-grid{gap:6px}.dashboard-home .home-task.summary-tile{display:block;min-height:95px;padding:9px 8px}.dashboard-home .home-task .home-task-icon{position:absolute;top:8px;right:7px;width:19px;height:19px;border:0;background:none;opacity:.65}.dashboard-home .home-task-icon svg{width:15px;height:15px}.dashboard-home .home-task .stat-label{font-size:10px;line-height:1.4;max-width:68px;min-height:28px;padding-right:7px}.dashboard-home .home-task .stat-value{font-size:24px;margin:3px 0;line-height:1.1;display:block}.dashboard-home .home-task .stat-hint{font-size:8px;line-height:1.5;display:block}.dashboard-home .home-total-strip{gap:5px 12px;margin-top:10px;padding-top:8px}.dashboard-home .home-total-strip>:is(button,div,span){font-size:10px;min-height:29px}.dashboard-home .home-total-strip strong{font-size:14px}
 .dashboard-home .home-priority .priority-list{max-height:256px;gap:6px;padding-right:3px}.dashboard-home .home-priority .priority-item{min-height:48px;padding:7px;gap:8px}.dashboard-home .priority-item strong{font-size:12px}.dashboard-home .priority-item small{font-size:10px}.dashboard-home .priority-item .badge{font-size:9px;padding:3px 4px}.dashboard-home .priority-tools{gap:6px}.dashboard-home .priority-tools>:is(small,span){font-size:8px}
 .dashboard-home .home-month{padding:0}.dashboard-home .home-month>summary{padding:5px 12px}.dashboard-home .home-month>summary h2{font-size:14px}.dashboard-home .home-month>summary small{font-size:9px}.dashboard-home .home-month-body{padding:0 12px 11px}.dashboard-home .home-month-metrics>div{padding:8px 0}.dashboard-home .home-month-metrics dt{font-size:11px}.dashboard-home .home-month-metrics dd{font-size:15px}.dashboard-home .home-month-stock.welcome-metric{min-height:35px;padding:7px 9px;border-radius:6px}.dashboard-home .home-month-stock span{font-size:10px}.dashboard-home .home-month-stock strong{font-size:15px}
 .dashboard-home .home-stage-list{max-height:310px;gap:0 16px}.dashboard-home .home-stage-list .stage-item{min-height:53px;padding:9px 0 7px}.dashboard-home .home-stage-label span{font-size:10px}.dashboard-home .home-stage-label strong{font-size:14px}.dashboard-home .stage-item>small{font-size:8px}.dashboard-home .home-meetings.panel{padding:7px 10px}.dashboard-home .home-meeting>summary{gap:8px;flex-wrap:wrap;padding:8px 0}.dashboard-home .home-meeting time{font-size:9px}.dashboard-home .home-meeting strong{font-size:11px;flex-basis:65%}.dashboard-home .home-meeting>p{font-size:11px;padding:8px 10px}.dashboard-home .empty{padding:20px 10px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.dashboard-home :is(.home-task,.stage-item,.priority-item){transition:none}.dashboard-home :is(.home-task,.stage-item,.priority-item):hover{transform:none}}
@media(max-width:760px){
 .dashboard-home .welcome-copy>.chip{max-width:calc(100% - 125px)}
 .dashboard-home .welcome-copy h1{margin-top:7px}
 .dashboard-home .quick-actions .dashboard-effects-controls{position:absolute;right:0;top:-2px;flex-basis:auto;max-width:120px;margin:0}
 .dashboard-home .dashboard-effects-controls .dashboard-effects-toggle{min-height:23px;font-size:8px;padding:3px 5px}
 .dashboard-home .dashboard-controls label{display:flex;align-items:center;gap:5px;font-size:8px;white-space:nowrap}
 .dashboard-home .dashboard-controls select{flex:1;min-width:0}
}

.dashboard-home .home-meeting>summary>.home-notice-kind{font-size:10px;line-height:1.5;padding:2px 6px;border-radius:4px;background:#eaf3ed;color:#355d47;max-width:110px;overflow-wrap:anywhere}
.dashboard-home .home-notice-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px;font-size:11px;color:#657b6d;flex-wrap:wrap}.dashboard-home .home-notice-footer .button{font-size:11px;min-height:28px;padding:4px 8px}


/* navigation-theme.css */
/* Green navigation surfaces only. No layout, control-size or content/table
   rules. The dashboard owns its welcome/home header and is excluded below. */
.shell .topbar {
  background:
    radial-gradient(ellipse at 96% -35%, #a6d0b74d 0 82px, #a6d0b700 83px),
    repeating-linear-gradient(130deg, #ffffff00 0 19px, #6d9d8110 19px 20px),
    linear-gradient(110deg, #eef9f2 0%, #e1f1e7 58%, #d8ebdf 100%);
  border-color: #bdd8c7;
  box-shadow: inset 0 1px 0 #ffffffeb, 0 2px 0 #d0e2d6, 0 5px 13px #284c3510;
  color: #203b2c;
}

.shell .topbar #breadcrumb,
.shell .topbar .header-meta {
  color: #203b2c;
}

.shell .topbar .header-meta small {
  color: #506a5a;
}

.shell .sidebar .sidebar-head {
  background:
    radial-gradient(ellipse at 100% 0, #afd5bb4d 0 52px, #afd5bb00 53px),
    repeating-linear-gradient(135deg, #ffffff00 0 16px, #79a88b0d 16px 17px),
    linear-gradient(135deg, #edf8f0, #d8eddf);
  border-color: #bfd9c8;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #ffffffeb, inset 0 0 0 1px #c8dfcf, 0 2px 0 #d0e2d6, 0 5px 10px #294d3610;
  color: #203b2c;
}

.shell .sidebar .sidebar-head .brand {
  color: #203b2c;
}

.shell .sidebar .sidebar-head .brand small {
  color: #506a5a;
}

.shell .page-title:not(.dashboard-home):not(.dashboard-home .page-title),
.shell .rec-header,
.shell .approval-heading {
  background:
    radial-gradient(ellipse at 96% 8%, #b0d8be40 0 70px, #b0d8be00 71px),
    repeating-linear-gradient(135deg, #ffffff00 0 22px, #75a3890d 22px 23px),
    linear-gradient(110deg, #f0faf3 0%, #e4f3e9 60%, #dbeee1 100%);
  border-color: #c3dccb;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #ffffffeb, inset 0 0 0 1px #cbded1, 0 2px 0 #d8e7dd, 0 5px 12px #2d50380c;
  color: #203b2c;
}

.shell .page-title:not(.dashboard-home):not(.dashboard-home .page-title) h1,
.shell .rec-header h1,
.shell .approval-heading h1 {
  color: #203b2c;
}

.shell .page-title:not(.dashboard-home):not(.dashboard-home .page-title) p,
.shell .rec-header .rec-heading p,
.shell .rec-header .rec-eyebrow,
.shell .approval-heading p,
.shell .approval-heading .approval-eyebrow {
  color: #506a5a;
}

/* Actual nested page-navigation headers, including shared-space and team
   views; document bodies, content editors and data table headers stay as-is. */
.shell .page-title:not(.dashboard-home .page-title) {
  padding: 8px 12px;
}
.shell .office-room-head,
.shell .org-roster-header,
.shell .org-sidebar-heading {
  background:
    repeating-linear-gradient(135deg, #ffffff00 0 23px, #76a38a09 23px 24px),
    linear-gradient(110deg, #f1faf4, #e4f2e9);
  border-color: #c6dccd;
  box-shadow: inset 0 1px 0 #ffffffeb, inset 0 -1px 0 #d7e7dc;
  color: #294837;
}

.shell .office-room-head .office-room-title h2,
.shell .org-roster-header h2,
.shell .org-sidebar-heading h2 {
  color: #203b2c;
}

.shell .office-room-head .office-room-copy > p,
.shell .org-roster-header p,
.shell .org-sidebar-heading > span {
  color: #506a5a;
}

.sidebar .nav-button[data-route="notices"]:not(.active),
.sidebar .nav-button.priority-view-nav:not(.active) {
  color: #f2fff7;
  font-weight: 800;
}
.sidebar .nav-button[data-route="notices"] > span:first-child,
.sidebar .nav-button.priority-view-nav > span:first-child {
  color: currentColor;
  font-weight: 800;
}
html[data-crm-theme] .sidebar .nav-button[data-route="notices"]:not(.active),
html[data-crm-theme] .sidebar .nav-button.priority-view-nav:not(.active) {
  color: color-mix(in srgb, var(--crm-ink) 92%, black);
}
.button.priority-action,
.button.priority-action:hover,
.button.priority-action:focus-visible {
  background: #17434f;
  border-color: #103640;
  color: #f7fffc;
  font-weight: 800;
}
.button.priority-action:disabled { opacity: .55; box-shadow: none; cursor: default; }
.priority-view-heading,
.priority-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.priority-view-toolbar { margin: 14px 0; }
.priority-view-toolbar label { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .shell .page-title:not(.dashboard-home .page-title) {
    padding: 7px 10px;
  }
  .shell .topbar {
    background:
      repeating-linear-gradient(135deg, #ffffff00 0 20px, #76a38a09 20px 21px),
      linear-gradient(110deg, #edf8f1, #dfefe5);
    border-color: #bfd8c8;
    box-shadow: inset 0 1px 0 #ffffffeb, 0 1px 0 #d0e3d6, 0 4px 10px #284c350c;
  }

  .shell .page-title:not(.dashboard-home):not(.dashboard-home .page-title),
  .shell .rec-header,
  .shell .approval-heading {
    background:
      repeating-linear-gradient(135deg, #ffffff00 0 22px, #76a38a08 22px 23px),
      linear-gradient(110deg, #f0faf3, #e2f1e7);
    box-shadow: inset 0 1px 0 #ffffffeb, inset 0 0 0 1px #cbded1, 0 2px 0 #dbe9e0, 0 4px 9px #2d50380a;
  }
}


/* company-themes.css */
/* Company palette: navigation, surfaces and data controls share one theme. */
html[data-crm-theme=ocean]{color-scheme:dark;--crm-bg:#102738;--crm-surface:#183346;--crm-soft:#203c50;--crm-nav:#152d40;--crm-nav-head:#29485e;--crm-selected:#37546a;--crm-ink:#f2f7fa;--crm-muted:#bfd0dc;--crm-border:#4d697d;--crm-accent:#f1c779;--crm-shadow:0 3px 0 #0005,0 8px 24px #0003}
html[data-crm-theme=burgundy]{--crm-bg:#faf4f5;--crm-surface:#fffafa;--crm-soft:#faf0f2;--crm-nav:#f1dfe3;--crm-nav-head:#e8cdd5;--crm-selected:#dfb9c5;--crm-ink:#3b2029;--crm-muted:#765863;--crm-border:#dfc5cc;--crm-accent:#923d50}
html[data-crm-theme=forest]{color-scheme:dark;--crm-bg:#132c28;--crm-surface:#1c3831;--crm-soft:#26483f;--crm-nav:#18362e;--crm-nav-head:#2d5142;--crm-selected:#3b6250;--crm-ink:#ecfaf2;--crm-muted:#b6d1c3;--crm-border:#527867;--crm-accent:#9edbb6;--crm-shadow:0 3px 0 #0005,0 8px 24px #0003}
html[data-crm-theme=lemon]{--crm-bg:#faf9ee;--crm-surface:#fffef7;--crm-soft:#faf8e5;--crm-nav:#f0edc4;--crm-nav-head:#e8e2ab;--crm-selected:#ded791;--crm-ink:#33301c;--crm-muted:#726c4e;--crm-border:#ded8b4;--crm-accent:#7c6b18}
html[data-crm-theme=plum]{color-scheme:dark;--crm-bg:#251d34;--crm-surface:#33263f;--crm-soft:#423254;--crm-nav:#2e2240;--crm-nav-head:#4b365f;--crm-selected:#604676;--crm-ink:#faf1ff;--crm-muted:#d4bfdf;--crm-border:#79608a;--crm-accent:#e4b6fa;--crm-shadow:0 3px 0 #0005,0 8px 24px #0003}
html[data-crm-theme=monochrome]{--crm-bg:#f4f4f4;--crm-surface:#fff;--crm-soft:#f2f2f2;--crm-nav:#e6e6e6;--crm-nav-head:#d8d8d8;--crm-selected:#c9c9c9;--crm-ink:#151515;--crm-muted:#565656;--crm-border:#bdbdbd;--crm-accent:#222}
html:is([data-crm-theme=ocean],[data-crm-theme=forest],[data-crm-theme=plum]) .button.primary{color:#152820}
.org-sidebar-heading .org-heading-toggle{width:28px;min-width:28px;padding:3px;margin-left:auto;min-height:26px}
.company-category-nav{max-height:calc(100dvh - 90px);overflow:auto}
.company-workspace-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 14px}.company-workspace-tabs .button{min-height:31px}
/* Keep the administrator identity, scope and assignment controls close together. */
.administrator-list{display:grid;gap:7px}
.administrator-row{min-width:0;border:1px solid var(--crm-border);border-radius:8px;padding:8px;background:var(--crm-soft)}
.administrator-identity{display:flex;gap:7px;align-items:center}
.administrator-identity>.form-field{flex:1}
.administrator-row .form-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0;gap:6px;margin:0}
.administrator-identity>[data-remove-administrator]{flex:none;white-space:nowrap}
.administrator-levels{min-inline-size:0;margin:5px 0 7px;padding:0;border:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr));gap:5px}
.administrator-levels legend{font-size:12px;margin-bottom:4px}
.administrator-levels>label{display:flex;min-width:0;gap:6px;align-items:flex-start;border:1px solid var(--crm-border);border-radius:6px;padding:5px 7px;background:var(--crm-surface)}
.administrator-levels input[type=radio]{flex:none;width:15px;height:15px;min-width:0;min-height:0;margin:1px 0 0}
.administrator-levels span{display:grid;min-width:0;gap:2px;line-height:1.25}
.administrator-levels small{color:var(--crm-muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.administrator-row>[data-admin-departments]>p{margin:4px 0 0;line-height:1.35}
.company-policy-save{position:sticky;bottom:0;z-index:3;background:var(--crm-surface);padding:10px 0;border-top:1px solid var(--crm-border)}
.column-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.column-config{min-width:0;border:1px solid var(--crm-border);border-radius:8px;padding:10px}.column-config h3{font-size:14px;margin-bottom:8px}.column-config-row{display:flex;gap:5px;align-items:center;padding:4px;border-bottom:1px solid var(--crm-border)}.column-config-row .checkbox-row{flex:1;min-width:0;font-size:12px}.column-config-row>span{font-size:11px;color:var(--crm-muted);white-space:nowrap}.column-config-row .button{padding:2px 6px;min-height:25px}.column-config-row:last-child{border:0}
.fixed-view-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px}.fixed-view-list{display:flex;flex-direction:column;align-items:stretch;gap:6px}.fixed-view-list .button{justify-content:flex-start;white-space:normal;text-align:left}.fixed-view-filters{display:grid;gap:8px;margin:12px 0}.fixed-view-filter{display:grid;grid-template-columns:minmax(100px,1fr) minmax(90px,.8fr) minmax(110px,1.5fr) 26px;gap:6px;align-items:center}.fixed-view-filter :is(input,select){min-width:0;width:100%;font-size:12px;min-height:32px;padding:5px 7px}.fixed-view-filter select[multiple]{max-height:100px}.fixed-view-value{min-width:0}.view-filter-range{display:flex;gap:5px;align-items:center}
.role-members{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.role-member{display:inline-flex;gap:5px;align-items:center;font-size:12px}.role-member .customer-avatar{width:24px;height:24px;margin:0}.role-member-summary,.role-permission-summary{margin:8px 0;font-size:12px}.permission-group-tools{display:flex;gap:6px;margin:3px 0 8px}
@media(max-width:760px){.company-category-nav{max-height:none}.column-lists{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.column-config{padding:5px}.column-config-row{flex-wrap:wrap}.column-config-row .checkbox-row{flex-basis:100%;font-size:11px}.fixed-view-layout{grid-template-columns:1fr}.fixed-view-list{flex-direction:row;flex-wrap:wrap}.fixed-view-filter{grid-template-columns:1fr 1fr 26px}.fixed-view-value{grid-column:1/3;grid-row:2}.fixed-view-filter>[data-fixed-filter-remove]{grid-column:3;grid-row:1/3}.administrator-levels{grid-template-columns:minmax(0,1fr)}.company-policy-save{bottom:calc(66px + env(safe-area-inset-bottom,0px))}}
:root{--crm-bg:#f3f7f5;--crm-surface:#fff;--crm-soft:#f1f7f4;--crm-nav:#e4f2e9;--crm-nav-head:#d5e9dd;--crm-selected:#c7e5d3;--crm-ink:#172c29;--crm-muted:#526a60;--crm-border:#cdded4;--crm-accent:#247c62;--crm-shadow:0 3px 0 #b8ccc84d,0 9px 24px #203e3510}
html[data-crm-theme=white]{--crm-bg:#f5f6f8;--crm-surface:#fff;--crm-soft:#f7f8fa;--crm-nav:#f8f9fb;--crm-nav-head:#edf0f4;--crm-selected:#e3e8ef;--crm-ink:#18222f;--crm-muted:#566272;--crm-border:#d5dce4;--crm-accent:#425d7c}
html[data-crm-theme=colorful]{--crm-bg:#f4f3fb;--crm-surface:#fff;--crm-soft:#f4f1fc;--crm-nav:#eeeafa;--crm-nav-head:#e0d8f5;--crm-selected:#d6cbf2;--crm-ink:#29243b;--crm-muted:#675b7a;--crm-border:#dcd4eb;--crm-accent:#6d58a5}
html[data-crm-theme=blue]{--crm-bg:#f2f6fb;--crm-surface:#fff;--crm-soft:#f0f6fc;--crm-nav:#e2edf8;--crm-nav-head:#d2e3f4;--crm-selected:#c4dcf3;--crm-ink:#182e43;--crm-muted:#506b81;--crm-border:#cadbea;--crm-accent:#316ea6}
html[data-crm-theme=beige]{--crm-bg:#f8f5ef;--crm-surface:#fffefa;--crm-soft:#faf5ea;--crm-nav:#f1e8d8;--crm-nav-head:#e7dbc3;--crm-selected:#e2d0ad;--crm-ink:#332a20;--crm-muted:#796a55;--crm-border:#e1d5c1;--crm-accent:#8c6842}
html[data-crm-theme=lavender]{--crm-bg:#f7f4fb;--crm-surface:#fff;--crm-soft:#f8f3fc;--crm-nav:#eee5f6;--crm-nav-head:#e1d4ef;--crm-selected:#d9c6ed;--crm-ink:#30253c;--crm-muted:#756280;--crm-border:#dfd2ea;--crm-accent:#79609d}
html[data-crm-theme=graphite]{--crm-bg:#f0f2f4;--crm-surface:#fff;--crm-soft:#f4f5f6;--crm-nav:#e5e8ec;--crm-nav-head:#d7dce2;--crm-selected:#c9d1da;--crm-ink:#202b36;--crm-muted:#5b6673;--crm-border:#ced5dd;--crm-accent:#536478}
html[data-crm-theme=dark]{color-scheme:dark;--crm-bg:#111827;--crm-surface:#1f2937;--crm-soft:#253343;--crm-nav:#192535;--crm-nav-head:#27394a;--crm-selected:#335546;--crm-ink:#f1f5f9;--crm-muted:#b8c6d3;--crm-border:#415164;--crm-accent:#8bd8c1;--crm-shadow:0 3px 0 #0005,0 8px 24px #0003}
html[data-crm-theme]{--ink:var(--crm-ink);--muted:var(--crm-muted);--paper:var(--crm-surface);--canvas:var(--crm-bg);--line:var(--crm-border);--teal:var(--crm-accent);--teal-dark:var(--crm-accent);--shadow:var(--crm-shadow)}
html[data-crm-theme] body,html[data-crm-theme] .main{background:var(--crm-bg);color:var(--crm-ink)}
html[data-crm-theme] .sidebar{background:linear-gradient(140deg,var(--crm-soft),var(--crm-nav));color:var(--crm-ink);border-color:var(--crm-border)}
html[data-crm-theme] .sidebar .brand,html[data-crm-theme] .sidebar .brand small,html[data-crm-theme] .sidebar-bottom{color:var(--crm-ink)}
html[data-crm-theme] .nav-group{background:color-mix(in srgb,var(--crm-nav) 78%,var(--crm-surface));border-color:var(--crm-border);box-shadow:var(--crm-shadow)}
html[data-crm-theme] .nav-label{background:linear-gradient(var(--crm-nav),var(--crm-nav-head));color:var(--crm-ink);border-color:var(--crm-border);text-shadow:none}
html[data-crm-theme] .nav-button,html[data-crm-theme] .nav-new-view{background:linear-gradient(115deg,var(--crm-surface),var(--crm-soft));color:var(--crm-ink);border-color:var(--crm-border)}
html[data-crm-theme] .nav-button.active{background:linear-gradient(115deg,var(--crm-selected),var(--crm-nav-head));color:var(--crm-ink);border-color:var(--crm-accent)}
html[data-crm-theme] .topbar{background:linear-gradient(115deg,var(--crm-nav),var(--crm-soft));color:var(--crm-ink);border-color:var(--crm-border)}
html[data-crm-theme] .topbar #breadcrumb,html[data-crm-theme] .header-meta small{color:var(--crm-ink)}
html[data-crm-theme] :is(.panel,.filter-panel,.modal,.notice-dialog,.customer-card,.office-document-editor,.column-filter-popover,.filter-popover){background:var(--crm-surface);color:var(--crm-ink);border-color:var(--crm-border);box-shadow:var(--crm-shadow)}
html[data-crm-theme] :is(input,select,textarea){background:var(--crm-surface);color:var(--crm-ink);border-color:var(--crm-border)}
html[data-crm-theme] :is(th,.toolbar,.modal-header,.modal-footer,.org-sidebar-heading,.org-roster-header,.office-toolbar,.rec-toolbar){background:var(--crm-soft);color:var(--crm-ink);border-color:var(--crm-border)}
html[data-crm-theme] {
  --crm-field-header: color-mix(in srgb, var(--crm-soft) 97%, #000);
  --crm-field-header-gradient: linear-gradient(var(--crm-soft), var(--crm-field-header));
  --crm-field-header-shadow: inset 0 1px 0 color-mix(in srgb, var(--crm-soft) 90%, #fff),
    inset 0 -1px 0 color-mix(in srgb, var(--crm-field-header) 55%, var(--crm-border));
}
html[data-crm-theme] :is(.customer-results > .table-wrap > table, .priority-customer-table, .workflow-grid-table) thead th {
  background-color: var(--crm-field-header);
}
html[data-crm-theme] .workflow-grid-table thead th {
  background-image: var(--crm-field-header-gradient);
  box-shadow: var(--crm-field-header-shadow);
}
html[data-crm-theme] .workflow-workspace .workflow-grid-table thead :is(.workflow-grid-select-cell, .workflow-fixed) {
  background-color: var(--crm-field-header) !important;
  background-image: var(--crm-field-header-gradient) !important;
}
html[data-crm-theme] .workflow-workspace .workflow-grid-table thead .workflow-grid-select-cell {
  box-shadow: 1px 0 var(--crm-border), var(--crm-field-header-shadow);
}
html[data-crm-theme] :is(td,.org-branch,.department-select,.checkbox-row,.form-field,h1,h2,h3,.customer-name,.link-button){color:var(--crm-ink)}
html[data-crm-theme] :is(.button.secondary,.button.ghost,.tab,.chip,.summary-tile,.home-total-item,.home-month-stock,.priority-item,.org-all-row,.filter-checklist label,.filter-tree summary){background:var(--crm-soft);color:var(--crm-ink);border-color:var(--crm-border)}
html[data-crm-theme] .button.primary{background:var(--crm-accent);color:#fff;border-color:var(--crm-accent)}
html:is([data-crm-theme=dark],[data-crm-theme=indigo],[data-crm-theme=copper]) .button.primary{color:#10271e}
html[data-crm-theme] :is(.tab.active,.org-branch.active,.department-select.active){background:var(--crm-selected);color:var(--crm-ink)}
html[data-crm-theme] :is(.muted,.tiny.muted,.stat-label,.stat-hint,.home-section-head small,.home-month-metrics dt,.priority-item small){color:var(--crm-muted)}
html[data-crm-theme] tbody tr:nth-child(even){background:var(--crm-soft)}
html[data-crm-theme] tbody tr:hover{background:var(--crm-selected)}
html:is([data-crm-theme=dark],[data-crm-theme=indigo],[data-crm-theme=copper]) :is(.role-card,.approval-template,.approval-type,.detail-edit-panel,.follow-form,.customer-detail-left,.org-sidebar,.office-sidebar,.office-file-column,.rec-sidebar,.material-categories,.home-meeting,.filter-tree,.filter-checklist){background:var(--crm-soft);color:var(--crm-ink);border-color:var(--crm-border)}
html:is([data-crm-theme=dark],[data-crm-theme=indigo],[data-crm-theme=copper]) .badge{background:#334155;color:#f1f5f9}
html:is([data-crm-theme=dark],[data-crm-theme=indigo],[data-crm-theme=copper]) :is(.badge.warning,.badge.critical){background:#5b3434;color:#ffd6c3}
/* A second heading is unnecessary beside the persistent global breadcrumb. */
.main>.page-title>div:first-child:has(h1){display:contents}.main>.page-title>div:first-child:has(h1)>:is(h1,p){display:none}.main>.page-title:not(:has(button,a,input,select)){display:none}.main>.page-title{justify-content:flex-end;margin-bottom:8px;padding:0;min-height:0;background:none;border:0;box-shadow:none}
.company-settings{display:grid;grid-template-columns:156px minmax(0,1fr);gap:12px;align-items:start}.company-category-nav{position:sticky;top:66px;display:flex;flex-direction:column;gap:5px;background:var(--crm-surface);border:1px solid var(--crm-border);padding:10px;border-radius:10px;box-shadow:var(--crm-shadow)}.company-category-nav strong{padding:5px 9px}.company-category-nav button{justify-content:flex-start}.settings-section{padding:14px!important}.settings-section h2{font-size:15px;margin-bottom:10px}.settings-section p{margin-bottom:12px}.settings-section+.settings-section{margin-top:12px}.settings-action-list{display:flex;gap:9px;flex-wrap:wrap}.company-theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.theme-choice{display:flex;flex-direction:column;gap:6px;text-align:left;padding:10px;border:1px solid var(--crm-border);border-radius:9px;background:var(--crm-surface);color:var(--crm-ink);box-shadow:0 3px 0 #0000000a}.theme-choice.selected{border:2px solid var(--crm-accent);padding:9px}.theme-choice small{color:var(--crm-muted);font-size:11px}.theme-swatch{display:flex;width:100%;height:44px;border:1px solid var(--crm-border);border-radius:5px;overflow:hidden}.theme-swatch i{flex:1}.theme-swatch i:first-child{flex:2}.settings-save-bar{display:flex;gap:8px;margin-top:14px}.follow-colors-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.scope-overrides{margin:10px 0;display:grid;gap:8px}.scope-overrides details{border:1px solid var(--crm-border);border-radius:7px;padding:8px}.scope-overrides details>label,.pool-permission-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0}.scope-overrides select,.pool-permission-row select{width:155px}.settings-category-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}.settings-grid.settings-categorized{display:block}.settings-grid.settings-categorized>div{display:contents}.settings-categorized section{margin:0!important}.customer-fixed-views{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.customer-fixed-views button{font-size:12px}.stage-badge.stage-plain{background:none!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:0}.stage-badge.stage-custom{background:color-mix(in srgb,var(--stage-color) 13%,var(--crm-surface))!important;color:var(--stage-color)!important;border:1px solid color-mix(in srgb,var(--stage-color) 30%,transparent)!important}.customer-avatar{display:inline-flex;flex-shrink:0;width:27px;height:27px;vertical-align:middle;border:1px solid var(--crm-border);border-radius:8px;overflow:hidden;background:var(--crm-soft);margin-right:7px}.customer-avatar svg{width:100%;height:100%}.org-person-row{display:flex;gap:7px;align-items:center;width:100%;background:none;color:var(--crm-ink);border:0;padding:5px 9px;text-align:left}.org-person-row .customer-avatar{width:23px;height:23px;margin:0}.org-person-row:hover{background:var(--crm-selected)}.role-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:10px!important}.role-card{padding:12px!important}.role-card .panel-head{margin-bottom:7px}.role-card .permission-tags{gap:4px}.role-card .permission-tags .chip{padding:2px 5px}.role-card p{margin:7px 0;font-size:12px}
@media(min-width:761px){.organization-grid,.office-layout,.materials-layout,.rec-layout{height:calc(100dvh - 105px);min-height:300px}.organization-grid>*,.office-layout>*,.materials-layout>*,.rec-layout>*{max-height:100%;overflow:auto;overscroll-behavior:contain}.detail-columns{min-height:0}.detail-columns>*{max-height:calc(100dvh - 290px);overflow:auto;overscroll-behavior:contain}.customer-results>.table-wrap{max-height:calc(100dvh - 260px);overflow:auto;overscroll-behavior:contain}}
@media(max-width:1050px){.company-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.company-settings{display:block}.company-category-nav{position:static;flex-direction:row;flex-wrap:wrap;gap:3px;margin-bottom:9px;padding:6px}.company-category-nav strong{display:none}.company-category-nav button{flex:1;padding:6px;min-width:70px;font-size:12px}.company-theme-grid{gap:8px}.theme-choice{padding:8px}.theme-choice.selected{padding:7px}.theme-choice small{font-size:10px}.follow-colors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-save-bar{flex-wrap:wrap}.main>.page-title{margin-bottom:6px}.customer-fixed-views{gap:4px}.customer-fixed-views button{padding:5px 8px;min-height:30px}.role-grid{grid-template-columns:1fr!important}}
.home-scope-bar{display:flex;align-items:center;min-height:32px}.home-scope-bar label{display:flex;gap:10px;align-items:center;font-size:12px}.home-scope-bar select{width:170px;min-height:30px;padding:4px 8px}.dashboard-home .home-workspace{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.dashboard-home .home-section-head h2{color:var(--crm-ink)}.dashboard-home .stat-value,.dashboard-home .home-total-item strong,.dashboard-home .home-month-metrics dd,.dashboard-home .home-month-stock strong{color:var(--crm-ink)}.dashboard-home .home-month-row dt{color:var(--crm-ink)}.dashboard-home .home-today{border-top:3px solid #5b9bb9}.dashboard-home .home-priority{border-top:3px solid #ceaa68}.dashboard-home .home-month{border-top:3px solid #9679bd}.dashboard-home .home-meetings{border-top:3px solid #69a58c}.dashboard-home .home-task.summary-tile{min-height:86px;padding:9px}.dashboard-home .home-task .stat-value{font-size:25px}.dashboard-home .home-task .stat-hint{font-size:10px}.dashboard-home .home-section-head{margin-bottom:8px}.dashboard-home .priority-item{padding:8px}.dashboard-home .home-priority .priority-list{max-height:260px}.customer-profile>.customer-avatar{width:44px;height:44px;margin-right:0;border-radius:12px}.topbar{position:relative;isolation:isolate}.topbar:after{content:'';position:absolute;inset:0;z-index:-1;background-image:var(--company-art,none);background-size:cover;background-position:center;opacity:.12;pointer-events:none}.import-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:110px;background:var(--crm-soft);border:2px dashed var(--crm-border);border-radius:10px;color:var(--crm-ink);cursor:pointer}.import-dropzone.drag-active{border-color:var(--crm-accent);background:var(--crm-selected)}.import-dropzone.is-busy{opacity:.6;cursor:wait}.import-dropzone small{font-size:12px;color:var(--crm-muted)}.import-steps{display:flex;gap:16px;margin-bottom:14px;font-size:12px;color:var(--crm-muted)}.import-steps b{color:var(--crm-accent)}.import-file-summary{display:flex;justify-content:space-between;gap:10px;margin:15px 0 8px}.customer-import-modal{max-width:880px}.customer-import-modal .table-wrap{max-height:300px}.customer-import-modal td:last-child{max-width:240px;white-space:normal}.import-result p{margin:10px 0}.settings-categorized>section:not([hidden])+div>section:not([hidden]){margin-top:12px!important}
@media(max-width:760px){.dashboard-home .home-workspace{grid-template-columns:minmax(0,1fr)}.home-scope-bar select{width:145px}.import-steps{gap:8px;font-size:11px}.import-file-summary{flex-direction:column;font-size:12px}.import-dropzone{min-height:95px;padding:12px;text-align:center}.customer-import-modal td:last-child{min-width:130px}.company-settings .settings-action-list{flex-direction:column}.scope-overrides select{width:130px}}

html[data-crm-theme] .sidebar .nav-group.collapsible-nav{background:linear-gradient(140deg,var(--crm-soft),var(--crm-nav));border-color:var(--crm-border);box-shadow:var(--crm-shadow)}
html[data-crm-theme] .sidebar .collapsible-nav>summary.nav-label{background:linear-gradient(115deg,var(--crm-nav),var(--crm-nav-head));color:var(--crm-ink);box-shadow:inset 0 1px color-mix(in srgb,var(--crm-surface),transparent 20%)}
.main .page-title>h1{display:none}

html[data-crm-theme] .team-pane-toggle{background:var(--crm-soft)!important;color:var(--crm-ink)!important;border-color:var(--crm-border)!important}
.company-category-nav .team-pane-toggle{font-size:11px}.company-nav-collapsed{grid-template-columns:38px minmax(0,1fr)}
@media(max-width:760px){.company-settings.team-pane-collapsed,.organization-grid.team-pane-collapsed{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important}.company-category-nav .team-pane-toggle{width:100%}}

/* Additional palettes retain the same layout and permission controls. */
html[data-crm-theme=mint]{--crm-bg:#f3faf7;--crm-surface:#ffffff;--crm-soft:#eef8f3;--crm-nav:#deefe6;--crm-nav-head:#cce6d9;--crm-selected:#bbddcb;--crm-ink:#18362c;--crm-muted:#506f60;--crm-border:#c9dfd3;--crm-accent:#26785c;}
html[data-crm-theme=teal]{--crm-bg:#f1f8f8;--crm-surface:#ffffff;--crm-soft:#edf6f6;--crm-nav:#dcecec;--crm-nav-head:#c9e1e1;--crm-selected:#b8d8d9;--crm-ink:#183136;--crm-muted:#527179;--crm-border:#c6dfe0;--crm-accent:#216c72;}
html[data-crm-theme=sky]{--crm-bg:#f4f9fe;--crm-surface:#ffffff;--crm-soft:#f0f7ff;--crm-nav:#deedfa;--crm-nav-head:#ccdfef;--crm-selected:#b9d9f4;--crm-ink:#1a3145;--crm-muted:#526f85;--crm-border:#ccdfea;--crm-accent:#2779ac;}
html[data-crm-theme=rose]{--crm-bg:#fcf6f8;--crm-surface:#ffffff;--crm-soft:#fcf1f5;--crm-nav:#f4e3e9;--crm-nav-head:#ead1dc;--crm-selected:#e9c4d4;--crm-ink:#3c2630;--crm-muted:#7d5b6b;--crm-border:#e8d1dc;--crm-accent:#a34f6a;}
html[data-crm-theme=peach]{--crm-bg:#fcf8f2;--crm-surface:#fffefd;--crm-soft:#fcf4ea;--crm-nav:#f3e6d7;--crm-nav-head:#ecd9c2;--crm-selected:#edccaa;--crm-ink:#3d2d21;--crm-muted:#7e6754;--crm-border:#e8d7c5;--crm-accent:#a3652d;}
html[data-crm-theme=olive]{--crm-bg:#f7f8f2;--crm-surface:#fffffc;--crm-soft:#f3f5e9;--crm-nav:#e7ead9;--crm-nav-head:#dce2c6;--crm-selected:#d1dbae;--crm-ink:#303824;--crm-muted:#687154;--crm-border:#d8dfc9;--crm-accent:#69753d;}
html[data-crm-theme=indigo]{color-scheme:dark;--crm-bg:#151c35;--crm-surface:#202c48;--crm-soft:#263353;--crm-nav:#1c2843;--crm-nav-head:#2a3b5c;--crm-selected:#354e77;--crm-ink:#f1f5ff;--crm-muted:#bdc9e4;--crm-border:#405477;--crm-accent:#a8bfff;--crm-shadow:0 3px 0 #0005,0 8px 24px #0003;}
html[data-crm-theme=copper]{color-scheme:dark;--crm-bg:#201d1a;--crm-surface:#2d2823;--crm-soft:#35302b;--crm-nav:#2b2621;--crm-nav-head:#3d342b;--crm-selected:#574431;--crm-ink:#fff4e8;--crm-muted:#d1c1b1;--crm-border:#5c4d3e;--crm-accent:#ebbc8a;--crm-shadow:0 3px 0 #0005,0 8px 24px #0003;}

@media(max-width:760px){html[data-crm-theme] :is(.mobile-app-nav,.mobile-app-sheet,.mobile-office-entry){background:var(--crm-surface);color:var(--crm-ink);border-color:var(--crm-border)}html[data-crm-theme] .mobile-app-nav>button,html[data-crm-theme] .mobile-app-sheet small{color:var(--crm-muted)}html[data-crm-theme] .mobile-app-nav>button.is-active{background:var(--crm-soft);color:var(--crm-accent)}html[data-crm-theme] .mobile-app-nav .is-active .mobile-tab-icon{background:var(--crm-selected);color:var(--crm-accent)}html[data-crm-theme] :is(.mobile-account-card,.mobile-more-group .nav-button){background:var(--crm-soft);color:var(--crm-ink);border-color:var(--crm-border)}}

.fixed-view-filter[data-implicit-operator=true]{grid-template-columns:minmax(100px,1fr) minmax(140px,2fr) 26px}.fixed-view-advanced{font-size:10px!important;min-height:21px!important;padding:1px 3px!important;opacity:.85}.fixed-view-value{display:flex;gap:3px;align-items:center;flex-wrap:wrap}.fixed-view-value>select,.fixed-view-value>input{flex:1;min-width:100px}.fixed-view-value>.tiny{flex-basis:100%}@media(max-width:760px){.fixed-view-filter[data-implicit-operator=true]{grid-template-columns:minmax(90px,1fr) minmax(110px,1.3fr) 26px}.fixed-view-filter[data-implicit-operator=true]>.fixed-view-value{grid-row:1;grid-column:2}.fixed-view-filter[data-implicit-operator=true]>[data-fixed-filter-remove]{grid-row:1;grid-column:3}}

html[data-crm-theme=aurora]{color-scheme:dark;--crm-bg:#13152b;--crm-surface:#20223e;--crm-soft:#2c3150;--crm-nav:#1c3a3c;--crm-nav-head:#285153;--crm-selected:#35615e;--crm-ink:#f2f4ff;--crm-muted:#c3c9e6;--crm-border:#52617d;--crm-accent:#81f1dc;--crm-primary-ink:#102621;}
html[data-crm-theme=royal]{color-scheme:light;--crm-bg:#e6efff;--crm-surface:#ffffff;--crm-soft:#edf3ff;--crm-nav:#c4d7ff;--crm-nav-head:#aec8f8;--crm-selected:#95b9f2;--crm-ink:#142344;--crm-muted:#4e6284;--crm-border:#a9bddf;--crm-accent:#173f9c;--crm-primary-ink:#ffffff;}
html[data-crm-theme=sunset]{color-scheme:light;--crm-bg:#fff0df;--crm-surface:#fffaf2;--crm-soft:#ffead3;--crm-nav:#f7c28f;--crm-nav-head:#e7a66d;--crm-selected:#efb279;--crm-ink:#3c2519;--crm-muted:#785842;--crm-border:#dfb88f;--crm-accent:#9b3b0a;--crm-primary-ink:#ffffff;}
html[data-crm-theme=coral]{color-scheme:light;--crm-bg:#fff0f4;--crm-surface:#fffafb;--crm-soft:#ffe6ee;--crm-nav:#f4b9cc;--crm-nav-head:#eaa0ba;--crm-selected:#e68eac;--crm-ink:#42182a;--crm-muted:#805166;--crm-border:#d8a6b8;--crm-accent:#a62351;--crm-primary-ink:#ffffff;}
html[data-crm-theme=jade]{color-scheme:dark;--crm-bg:#0d3027;--crm-surface:#163f34;--crm-soft:#205044;--crm-nav:#16483b;--crm-nav-head:#26604c;--crm-selected:#34765b;--crm-ink:#f2fff4;--crm-muted:#bfdfc8;--crm-border:#568470;--crm-accent:#f4dc8d;--crm-primary-ink:#192c1d;}
html[data-crm-theme=paper]{color-scheme:light;--crm-bg:#f6edda;--crm-surface:#fffaf0;--crm-soft:#f0e3c6;--crm-nav:#d8c69b;--crm-nav-head:#ccba8a;--crm-selected:#bbaa7c;--crm-ink:#252c38;--crm-muted:#696759;--crm-border:#b9b18d;--crm-accent:#203d6c;--crm-primary-ink:#ffffff;}
html[data-crm-theme=espresso]{color-scheme:dark;--crm-bg:#2a1914;--crm-surface:#3a241c;--crm-soft:#4e3024;--crm-nav:#35231a;--crm-nav-head:#5a3a2a;--crm-selected:#73503b;--crm-ink:#fff2df;--crm-muted:#dfc3a9;--crm-border:#97735c;--crm-accent:#f1c28e;--crm-primary-ink:#2a1914;}
html[data-crm-theme=neon]{color-scheme:dark;--crm-bg:#11120b;--crm-surface:#1e2113;--crm-soft:#2f331a;--crm-nav:#21270c;--crm-nav-head:#343c0c;--crm-selected:#4b5614;--crm-ink:#faffdd;--crm-muted:#cdd6a0;--crm-border:#77834c;--crm-accent:#ecff42;--crm-primary-ink:#171d00;}
html:is([data-crm-theme=aurora],[data-crm-theme=royal],[data-crm-theme=sunset],[data-crm-theme=coral],[data-crm-theme=jade],[data-crm-theme=paper],[data-crm-theme=espresso],[data-crm-theme=neon]) .button.primary{color:var(--crm-primary-ink)!important}

html:is([data-crm-theme=dark],[data-crm-theme=indigo],[data-crm-theme=copper],[data-crm-theme=ocean],[data-crm-theme=forest],[data-crm-theme=plum]) .button.primary{color:#102321!important}

.company-category-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:4px}.company-category-heading .button{min-width:0!important;min-height:24px!important;font-size:10px!important;padding:2px 4px!important;flex:none!important}
.company-category-row{display:flex;align-items:stretch;gap:2px;min-width:0;margin-bottom:3px}.company-category-row>[data-company-category]{flex:1;min-width:0!important;white-space:normal;text-align:left;line-height:1.35;justify-content:flex-start}.company-category-grip{display:flex;align-items:center;flex:none;width:9px;font-size:11px;color:var(--crm-muted);cursor:grab;user-select:none}.company-category-controls{display:flex;flex-direction:column;justify-content:center;flex:none;gap:1px}.company-category-nav .company-category-controls .button{flex:none!important;width:19px!important;min-width:19px!important;min-height:15px!important;height:15px!important;padding:0!important;font-size:10px!important;line-height:12px;box-shadow:none!important;border-radius:3px}.company-category-drop{outline:2px solid var(--crm-accent);outline-offset:-2px;border-radius:6px}
@media(max-width:760px){.company-category-heading{flex-basis:100%}.company-category-row{flex:1 1 145px;margin:0}.company-category-grip{display:none}.company-category-nav .company-category-controls .button{min-height:20px!important;height:20px!important;width:23px!important;min-width:23px!important}}


/* workflows.css */
.workflow-workspace{min-width:0;color:#18251f}.workflow-workspace .page-title{margin-bottom:9px}.workflow-workspace h1{font-size:18px;margin:0}.workflow-header-actions,.workflow-toolbar,.workflow-tabs,.workflow-pagination,.workflow-inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.workflow-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;min-width:0}.workflow-sidebar{padding:7px;background:linear-gradient(150deg,#f4faf6,#e9f3ed);border:1px solid #cbdcd1;border-radius:8px;box-shadow:inset 0 1px #fff,0 3px 8px #2847370c;align-self:start;position:sticky;top:8px;max-height:calc(100dvh - 130px);overflow:auto}.workflow-sidebar button{display:flex;align-items:center;gap:6px;text-align:left;width:100%;border:1px solid transparent;padding:8px;font:inherit;font-size:12px;background:transparent;border-radius:5px;color:#254435;cursor:pointer}.workflow-sidebar button:hover{background:#e5f0e9}.workflow-sidebar button.is-active{background:#d7eadd;border-color:#b6d4c2;box-shadow:inset 0 1px #f9fffb;font-weight:650}.workflow-sidebar .workflow-collapse{justify-content:space-between;border-bottom:1px solid #cfddd3;border-radius:0;margin-bottom:5px}.workflow-sidebar small{font-size:10px;color:#466052}.workflow-layout.is-collapsed{grid-template-columns:34px minmax(0,1fr)}.workflow-layout.is-collapsed .workflow-sidebar{padding:4px}.workflow-layout.is-collapsed .workflow-sidebar button:not(.workflow-collapse){display:none}.workflow-layout.is-collapsed .workflow-collapse span{display:none}.workflow-layout.is-collapsed .workflow-collapse{justify-content:center;padding:5px}.workflow-content{min-width:0}.workflow-panel{background:#fff;border:1px solid #cfdbd3;border-radius:8px;box-shadow:inset 0 1px #fff,0 3px 0 #e5ece7,0 7px 15px #243a2b09;overflow:hidden}.workflow-toolbar{justify-content:space-between;padding:8px;border-bottom:1px solid #dbe4df;background:linear-gradient(#fff,#f5f8f6);font-size:12px}.workflow-search{display:flex;gap:5px;align-items:center;min-width:0}.workflow-search input{width:220px;min-width:0;min-height:29px;padding:5px 7px;font-size:12px}.workflow-table-wrap{overflow:auto;max-height:calc(100dvh - 235px);min-height:200px;overscroll-behavior:contain;scrollbar-gutter:stable}.workflow-table{border-collapse:separate;border-spacing:0;font-size:12px;width:max-content;min-width:100%;table-layout:fixed}.workflow-table th{position:sticky;top:0;z-index:2;background:#eef4f0;color:#213e2d;font-size:11px;font-weight:650;border-right:1px solid #d4dfd8;border-bottom:1px solid #bdcfc3;padding:7px 9px;min-width:128px;max-width:260px;white-space:nowrap}.workflow-table td{padding:0!important;min-width:128px;max-width:260px;border-right:1px solid #e2e8e4;border-bottom:1px solid #e2e8e4;background:#fff;vertical-align:middle}.workflow-table tr:nth-child(even) td{background:#fafcfb}.workflow-table th.workflow-fixed,.workflow-table td.workflow-fixed{position:sticky;right:0;min-width:75px;max-width:90px;z-index:1;box-shadow:-2px 0 4px #203c2b09}.workflow-table th.workflow-fixed{z-index:3}.workflow-cell{display:block;width:100%;min-height:31px;padding:6px 9px;border:0;background:transparent;text-align:left;font:inherit;color:#1c2b23;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:0}.workflow-cell.is-readonly{cursor:default;color:#34463c}.workflow-cell:not(.is-readonly):hover{box-shadow:inset 0 0 0 1px #b5d1c1;background:#f1f8f4}.workflow-cell.is-draft{background:#fff5db;box-shadow:inset 3px 0 #ce9940}.workflow-cell.is-danger{color:#b42332;background:#fff0f1;font-weight:700}.workflow-cell-editor{width:100%;min-width:110px;min-height:31px!important;margin:0;border-radius:0!important;box-shadow:inset 0 0 0 1px #29966a!important;border:1px solid #29966a!important;padding:5px 8px!important;background:#fff!important;color:#10251b!important;font-size:12px!important}.workflow-cell-status{font-size:10px;color:#557365;padding:0 7px}.workflow-pagination{justify-content:space-between;padding:7px 9px;background:#f8fbf9;font-size:11px;border-top:1px solid #d7e3db}.workflow-pagination select{width:auto;min-height:27px;font-size:11px;padding:4px}.workflow-draft-banner{padding:7px 10px;border:1px solid #e6c68c;background:#fff8e9;border-radius:6px;font-size:12px;margin-bottom:8px;color:#74501b;display:flex;justify-content:space-between;align-items:center;gap:8px}.workflow-empty{padding:35px 15px;text-align:center;color:#5c6f63;font-size:12px}.workflow-detail-modal{max-width:1060px}.workflow-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 14px}.workflow-detail-grid label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#3a5043;min-width:0}.workflow-detail-grid input,.workflow-detail-grid select,.workflow-detail-grid textarea{font-size:12px;min-height:31px;padding:6px 8px;min-width:0;width:100%}.workflow-detail-value{padding:7px 8px;min-height:31px;background:#f4f7f5;border:1px solid #e0e7e2;border-radius:5px;overflow-wrap:anywhere;color:#1a2c21}.workflow-detail-info{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;color:#566e60;border-bottom:1px solid #d8e3dc;padding-bottom:9px;margin-bottom:12px}.workflow-save-status{font-size:11px;color:#476652}.workflow-settings-modal{max-width:1150px}.workflow-settings-tabs{display:flex;gap:6px;margin-bottom:12px;border-bottom:1px solid #d7e2db;padding-bottom:8px}.workflow-settings-table{width:100%;border-collapse:collapse;font-size:11px}.workflow-settings-table th,.workflow-settings-table td{padding:5px!important;border:1px solid #d9e3dd;vertical-align:middle}.workflow-settings-table th{background:#eef4f0}.workflow-settings-table input:not([type=checkbox]),.workflow-settings-table select{min-height:28px;padding:4px 5px;font-size:11px;width:100%;min-width:90px}.workflow-settings-table .workflow-field-id{max-width:150px;color:#516558;font-family:monospace}.workflow-settings-table .workflow-options{min-width:150px}.workflow-settings-scroll{overflow:auto;max-height:60dvh}.workflow-help{font-size:11px;color:#506658;line-height:1.65;background:#f3f8f4;border:1px solid #dce8df;padding:8px;border-radius:5px;margin:8px 0}.workflow-grant{border:1px solid #cfded4;border-radius:7px;padding:10px;margin:8px 0;background:#fbfdfb}.workflow-grant-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.workflow-grant-head select{font-size:12px;min-height:29px;width:auto;max-width:220px;padding:4px 6px}.workflow-permission-options{display:flex;gap:7px 13px;flex-wrap:wrap;font-size:11px}.workflow-permission-options label{display:flex;gap:4px;align-items:center}.workflow-grant-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.workflow-grant-fields select{width:100%;min-height:95px;font-size:11px}.workflow-org-tree{border:1px solid #d7e3db;border-radius:6px;max-height:270px;overflow:auto;background:#fff;padding:6px;font-size:12px}.workflow-org-tree details{margin-left:12px}.workflow-org-tree summary{padding:4px;cursor:pointer}.workflow-org-tree label{display:inline-flex;gap:5px;align-items:center;margin:3px 7px 3px 0}.workflow-org-users{padding-left:23px;display:flex;flex-direction:column}.workflow-org-tree input{width:14px;height:14px}.workflow-receiver-block{padding:10px;border:1px solid #d2e0d7;border-radius:7px;margin:8px 0;background:#f8fcf9}.workflow-receiver-head{display:flex;align-items:center;gap:7px;font-weight:650;font-size:13px}.workflow-receiver-body{margin-top:9px}.workflow-receiver-body[hidden]{display:none}.workflow-receiver-search{min-height:29px!important;font-size:12px!important;margin-bottom:6px}.workflow-analysis-tools{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:10px;background:#f5faf7;border-bottom:1px solid #d7e3db}.workflow-analysis-tools label{font-size:11px;display:flex;flex-direction:column;gap:4px}.workflow-analysis-tools input,.workflow-analysis-tools select{min-height:29px;font-size:12px;padding:5px 7px}.workflow-analysis-summary{display:flex;gap:10px;flex-wrap:wrap;padding:9px;border-bottom:1px solid #dde6e0}.workflow-analysis-summary>span{padding:6px 9px;background:#f2f7f4;border:1px solid #d9e5dd;border-radius:5px;font-size:11px}.workflow-analysis-summary b{margin-left:5px;color:#193e29}.workflow-analysis-table td{padding:7px 9px!important;font-size:12px}.workflow-analysis-table input{width:105px;font-size:12px;min-height:27px;padding:4px 5px}.workflow-logs{font-size:12px}.workflow-log{padding:9px 3px;border-bottom:1px solid #dce5df}.workflow-log header{display:flex;justify-content:space-between;gap:8px;color:#2e4c39}.workflow-log p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#182d20}.workflow-log time{font-size:10px;color:#607669}.workflow-conflict{border:1px solid #e2c18d;border-radius:6px;padding:9px;background:#fff9ef;margin:7px 0;font-size:12px}.workflow-conflict p{margin:4px 0;overflow-wrap:anywhere}.workflow-conflict label{display:flex;align-items:center;gap:6px;margin-top:6px}.workflow-conflict input{width:auto}.workflow-workspace .button.small,.workflow-detail-modal .button.small{min-height:27px;font-size:11px;padding:4px 8px}
@media(max-width:760px){.workflow-layout{grid-template-columns:1fr;gap:7px}.workflow-sidebar{position:static;max-height:none;display:flex;gap:4px;overflow:auto;padding:5px;white-space:nowrap}.workflow-sidebar button{width:auto;flex:none;padding:6px 8px}.workflow-sidebar .workflow-collapse{display:none}.workflow-layout.is-collapsed{grid-template-columns:1fr}.workflow-layout.is-collapsed .workflow-sidebar{width:auto;padding:5px;visibility:visible}.workflow-layout.is-collapsed .workflow-sidebar button:not(.workflow-collapse){display:flex}.workflow-table-wrap{max-height:calc(100dvh - 260px);min-height:230px}.workflow-table th,.workflow-table td{min-width:112px}.workflow-cell{min-height:38px;padding:8px;font-size:12px}.workflow-cell-editor{min-height:38px!important}.workflow-workspace .page-title{display:flex;align-items:center;gap:7px}.workflow-workspace h1{font-size:17px}.workflow-header-actions{gap:4px}.workflow-header-actions .button{min-height:32px;padding:5px 8px;font-size:11px}.workflow-toolbar{gap:6px}.workflow-search{flex:1}.workflow-search input{width:100%;flex:1}.workflow-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.workflow-detail-grid input,.workflow-detail-grid select{min-height:37px}.workflow-grant-fields{grid-template-columns:1fr}.workflow-grant-head{flex-wrap:wrap}.workflow-settings-table td,.workflow-settings-table th{padding:4px!important}.workflow-settings-tabs{overflow:auto;flex-wrap:nowrap}.workflow-settings-tabs button{white-space:nowrap}.workflow-pagination .button{min-height:34px}.workflow-analysis-table td{white-space:nowrap}.workflow-org-tree{max-height:220px}.workflow-org-tree label{min-height:31px}.workflow-org-tree input{width:16px;height:16px}.workflow-detail-info{gap:6px 12px}.workflow-draft-banner{font-size:11px}.workflow-draft-banner .button{flex:none}.workflow-receiver-block{padding:8px}}

/* Every company palette drives the new business workspaces. */
.workflow-workspace{color:var(--crm-ink,var(--ink,#18251f))}
.workflow-panel,.workflow-table td,.workflow-cell,.workflow-detail-value,.workflow-org-tree,.workflow-grant{background:var(--crm-surface,var(--paper,#fff));color:var(--crm-ink,var(--ink,#18251f));border-color:var(--crm-border,var(--line,#cfdbd3))}
.workflow-panel,.workflow-sidebar{box-shadow:var(--crm-shadow,var(--shadow,0 3px 10px #203e3510))}
.workflow-sidebar{background:linear-gradient(150deg,var(--crm-soft,#f1f7f4),var(--crm-nav,#e4f2e9));border-color:var(--crm-border,#cdded4)}
.workflow-sidebar button,.workflow-sidebar small,.workflow-workspace h1,.workflow-cell.is-readonly,.workflow-detail-grid label,.workflow-detail-info,.workflow-save-status,.workflow-settings-table,.workflow-log header,.workflow-log p,.workflow-analysis-summary b{color:var(--crm-ink,var(--ink,#18251f))}
.workflow-sidebar button.is-active{background:var(--crm-selected,#c7e5d3);border-color:var(--crm-border,#cdded4);box-shadow:inset 0 1px color-mix(in srgb,var(--crm-surface,#fff) 70%,transparent)}
.workflow-sidebar button:hover,.workflow-table tr:nth-child(even) td,.workflow-pagination,.workflow-toolbar,.workflow-help,.workflow-analysis-tools,.workflow-analysis-summary>span,.workflow-receiver-block,.workflow-settings-table th,.workflow-table th{background:var(--crm-soft,#f1f7f4);border-color:var(--crm-border,#cdded4);color:var(--crm-ink,#18251f)}
.workflow-cell:not(.is-readonly):hover{background:var(--crm-selected,#c7e5d3);box-shadow:inset 0 0 0 1px var(--crm-accent,#247c62)}
.workflow-table th,.workflow-table td,.workflow-settings-table th,.workflow-settings-table td,.workflow-toolbar,.workflow-pagination,.workflow-detail-info,.workflow-settings-tabs,.workflow-grant,.workflow-org-tree,.workflow-receiver-block,.workflow-log,.workflow-analysis-summary{border-color:var(--crm-border,#cdded4)}
.workflow-pagination,.workflow-cell-status,.workflow-empty,.workflow-log time,.workflow-help,.workflow-settings-table .workflow-field-id,.workflow-detail-info,.workflow-save-status{color:var(--crm-muted,var(--muted,#526a60))}
.workflow-cell-editor{background:var(--crm-surface,#fff)!important;color:var(--crm-ink,#172c29)!important;border-color:var(--crm-accent,#247c62)!important;box-shadow:inset 0 0 0 1px var(--crm-accent,#247c62)!important}
:is(.workflow-workspace,.workflow-settings-modal,.workflow-detail-modal) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--crm-surface,#fff);color:var(--crm-ink,#172c29);border-color:var(--crm-border,#cdded4)}
:is(.workflow-workspace,.workflow-settings-modal,.workflow-detail-modal) input:is([type=checkbox],[type=radio]){accent-color:var(--crm-accent,#247c62)}
.workflow-draft-banner,.workflow-conflict,.workflow-cell.is-draft{background:color-mix(in srgb,var(--crm-soft,#fff8e9) 86%,#c68a2b);color:var(--crm-ink,#74501b);border-color:color-mix(in srgb,var(--crm-border,#e6c68c) 65%,#c68a2b)}
.workflow-cell.is-danger{background:#fff0f1;color:#b42332;font-weight:700}
html[data-crm-theme=dark] .workflow-cell.is-danger{background:#511f2a;color:#ffc5c9}
.workflow-fee-unpaid{color:var(--crm-accent,#247c62);font-weight:650}

/* Reveal editable cells clear of the sticky operation column. */
.workflow-table-wrap{scroll-padding-inline-end:110px}
.workflow-table td:not(.workflow-fixed),.workflow-table th:not(.workflow-fixed),.workflow-table .workflow-cell{scroll-margin-inline-end:110px}

/* Board navigation stays horizontal; company settings retain their separate entry. */
.workflow-workspace>.workflow-tabs{margin:0 0 7px;padding:3px;background:var(--crm-soft,#f3f7f4);border:1px solid var(--crm-border,#cddbd1);border-radius:5px;gap:3px;box-shadow:inset 0 1px color-mix(in srgb,var(--crm-surface,#fff) 80%,transparent)}
.workflow-workspace>.workflow-tabs button{border:1px solid transparent;border-radius:3px;min-height:28px;padding:4px 12px;background:transparent;color:var(--crm-muted,#61786a);font-size:11px;cursor:pointer;white-space:nowrap}
.workflow-workspace>.workflow-tabs button.is-active{color:var(--crm-ink,#203a2c);background:var(--crm-surface,#fff);border-color:var(--crm-border,#cddbd1);box-shadow:0 1px 3px #102d2510;font-weight:650}
.workflow-workspace>.workflow-content{width:100%;min-width:0}.workflow-workspace .workflow-panel{border-radius:5px}.workflow-workspace .workflow-toolbar{padding:5px 7px}.workflow-workspace .page-title{margin-bottom:7px}
@media(max-width:760px){.workflow-workspace>.workflow-tabs{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;gap:2px}.workflow-workspace>.workflow-tabs button{min-height:32px;padding:5px 10px;flex:none}.workflow-workspace .workflow-toolbar{padding:5px;gap:5px}.workflow-workspace .workflow-search input{min-height:31px}.workflow-workspace .workflow-save-status{font-size:10px}.workflow-workspace .workflow-header-actions .button{min-height:30px}}
.workflow-settings-table .workflow-list-visible,.workflow-settings-table .workflow-field-color>label{display:flex;align-items:center;gap:4px;font-size:11px;white-space:nowrap;min-height:24px}
.workflow-settings-table .workflow-field-color{min-width:105px}.workflow-field-color>div{display:flex;align-items:center;gap:5px}.workflow-settings-table .workflow-field-color input[type=color]{width:35px!important;min-width:35px!important;height:27px;min-height:27px;padding:2px;border-radius:3px;cursor:pointer}.workflow-settings-table .workflow-field-color input[type=color]:disabled{opacity:.45;cursor:default}.workflow-settings-table .workflow-field-color .button{min-height:25px;font-size:10px;padding:3px 6px}
@media(max-width:760px){.workflow-settings-table .workflow-list-visible,.workflow-settings-table .workflow-field-color>label{min-height:30px}.workflow-settings-table .workflow-field-color input[type=color]{min-height:31px;height:31px}.workflow-settings-table .workflow-field-color .button{min-height:31px}}
.workflow-handoff{border:1px solid var(--crm-border,#cfdbd3);border-radius:6px;background:var(--crm-soft,#f3f7f4);padding:9px;margin-bottom:8px;box-shadow:inset 0 1px color-mix(in srgb,var(--crm-surface,#fff) 80%,transparent)}
.workflow-handoff-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:12px}.workflow-handoff-head>label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--crm-muted,#61786a)}.workflow-handoff-head input{min-height:27px;width:140px;font-size:11px;padding:4px 6px;background:var(--crm-surface,#fff);color:var(--crm-ink,#203a2c);border:1px solid var(--crm-border,#cddbd1);border-radius:3px}
.workflow-handoff-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 10px}.workflow-handoff-grid label{position:relative;display:block;line-height:1.5}.workflow-handoff-grid input,.workflow-handoff-grid textarea{display:block;margin-top:3px;resize:vertical}.workflow-handoff-contract{grid-column:span 2}.workflow-handoff-notes{grid-column:1/-1}.workflow-required{color:#b42332}.workflow-handoff-help,.workflow-submit-draft-note{font-size:10px;color:var(--crm-muted,#61786a);line-height:1.6;margin:6px 0 0}.workflow-submit-draft-note{margin:0 auto 0 0}.workflow-submit-error{font-size:12px;line-height:1.6;color:#b42332;white-space:pre-wrap;margin:5px 0}.workflow-submit-error:empty{display:none}html[data-crm-theme=dark] .workflow-submit-error,html[data-crm-theme=indigo] .workflow-submit-error,html[data-crm-theme=copper] .workflow-submit-error{color:#ffc5c9}
@media(max-width:760px){.workflow-handoff{padding:7px}.workflow-handoff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}.workflow-handoff-contract{grid-column:1/-1}.workflow-handoff-head{align-items:flex-start;flex-wrap:wrap;gap:5px}.workflow-handoff-head input{min-height:31px;width:130px}.workflow-handoff-grid input,.workflow-handoff-grid textarea{min-height:36px}.workflow-handoff-help{font-size:10px}.workflow-submit-draft-note{width:100%;margin-bottom:4px}}

/* Business assignment and pagination remain separate from the cell selection. */
.workflow-toolbar-tools{display:flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
.workflow-workspace .workflow-toolbar-tools .workflow-grid-tools{padding:0;border:0;background:transparent;flex-wrap:wrap}
.workflow-toolbar-tools .workflow-grid-hint,.workflow-toolbar-tools .workflow-grid-save{display:none}
.workflow-workspace .workflow-search input{width:180px}
.workflow-toolbar-tools button{font-size:10px;min-height:27px;padding:4px 7px}
.workflow-workspace .workflow-pagination{padding:6px 8px;gap:5px 10px;border-color:var(--crm-border,#cdded4);background:var(--crm-soft,#f1f7f4)}
.workflow-workspace .workflow-pagination-top{border-top:0;border-bottom:1px solid var(--crm-border,#cdded4);justify-content:flex-end}
.workflow-pagination strong{font-size:11px;color:var(--crm-ink,#253b34);font-weight:600;font-variant-numeric:tabular-nums}
.workflow-pagination strong>span{font-weight:400;color:var(--crm-muted,#62776d)}
.workflow-page-jump,.workflow-page-jump>label{display:flex;align-items:center;gap:4px;min-width:0;font-size:11px}
.workflow-page-jump input{width:48px;min-width:0;min-height:27px;padding:3px 4px;font-size:11px;text-align:center}
.workflow-current-assignment{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:12px 0 4px;padding:8px;border:1px solid var(--crm-border,#cdded4);border-radius:5px;background:var(--crm-soft,#f1f7f4);font-size:12px;color:var(--crm-ink,#253b34)}
.workflow-current-assignment small{font-size:10px;color:var(--crm-muted,#62776d)}
.workflow-assigned-person{display:inline-flex;align-items:center;gap:5px}
.workflow-assigned-department{font-size:11px;padding:3px 6px;border:1px solid var(--crm-border,#cdded4);border-radius:4px;background:var(--crm-surface,#fff)}
.workflow-assignment-popover{overscroll-behavior:contain}
.workflow-assignment-popover .workflow-assignment-controls{padding:0;margin:0;border:0;min-width:0}
.workflow-assignment-popover .org-form-scroll{padding:0 9px 8px;scroll-padding-top:44px}
.workflow-assignment-popover .workflow-assignment-search-label{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:8px;margin:0;padding:6px 0;background:var(--crm-surface,#fff);font-size:12px}
.workflow-assignment-popover .workflow-assignment-search-label input{flex:1;min-width:0;min-height:32px;font-size:12px;padding:5px 7px}
.workflow-assignment-popover #workflow-assignment-tree{max-height:none;overflow:visible;margin:0;padding:3px 5px;border:1px solid var(--crm-border,#cdded4);border-radius:6px;background:var(--crm-surface,#fff)}
.workflow-assignment-popover #workflow-assignment-tree .tree-department{padding:1px 3px}
.workflow-assignment-popover #workflow-assignment-tree .tree-department summary{min-height:28px;padding:4px 5px;font-size:12px}
.workflow-assignment-popover #workflow-assignment-tree .checkbox-row{display:flex;align-items:center;gap:5px;min-height:28px;padding:2px 5px;font-size:12px}
.workflow-assignment-popover #workflow-assignment-tree .person-option-name{color:var(--crm-ink,#253b34);font-size:12px}
.workflow-assignment-popover .workflow-assignment-empty{font-size:12px;color:var(--crm-muted,#62776d);margin:5px 0}
.workflow-assignment-popover form>.workflow-assignment-error{line-height:1.5;outline:none;border-top:1px solid var(--crm-border,#cdded4)}
.workflow-assignment-popover .workflow-assignment-count{margin-right:auto;font-size:11px;color:var(--crm-muted,#62776d);white-space:nowrap}
.workflow-assignment-popover #workflow-assignment-form[aria-busy=true]{cursor:progress}
@media(max-width:760px){
 .workflow-assignment-popover .org-form-scroll{padding:0 8px 7px;scroll-padding-top:48px}
 .workflow-assignment-popover .workflow-assignment-search-label input{font-size:16px;min-height:38px}
 .workflow-assignment-popover #workflow-assignment-tree .checkbox-row,.workflow-assignment-popover #workflow-assignment-tree .tree-department summary{min-height:34px}
 .workflow-assignment-popover #workflow-assignment-tree input{width:16px;height:16px}
 .workflow-assignment-popover form>.modal-footer{padding:6px 8px;gap:4px}
 .workflow-assignment-popover form>.modal-footer .button{min-height:40px;padding:4px 7px;font-size:12px;white-space:nowrap}
}
@media(max-width:760px){.workflow-workspace .workflow-search{flex:1 1 100%}.workflow-workspace .workflow-search input{width:100%}.workflow-toolbar-tools{flex:1 1 auto}.workflow-toolbar-tools .workflow-grid-tools{display:flex!important}.workflow-toolbar-tools button{min-height:32px;font-size:10px}.workflow-workspace .workflow-pagination-top{justify-content:space-between}.workflow-pagination .workflow-inline-actions{gap:5px}.workflow-page-jump{flex-basis:100%;justify-content:flex-end}.workflow-page-jump input{min-height:34px;font-size:16px}}

/* Searchable employee/department grant subject; the shell owns settings scrolling. */
.workflow-grant-head{align-items:flex-start}
.workflow-subject-field{display:flex;flex-direction:column;gap:4px;min-width:210px;flex:1}
.workflow-subject-field-label,.workflow-scope-control>span{font-size:11px;color:var(--crm-muted,#62776d)}
.workflow-subject-picker{min-width:0;border:1px solid var(--crm-border,#cdded4);border-radius:5px;background:var(--crm-surface,#fff);color:var(--crm-ink,#253b34)}
.workflow-subject-picker>[data-wf-subject-summary]{display:flex;align-items:center;gap:6px;min-height:32px;padding:5px 8px;font-size:12px;cursor:pointer;list-style:none;min-width:0}
.workflow-subject-picker>[data-wf-subject-summary]:after{content:'▾';margin-left:auto;color:var(--crm-muted,#62776d);flex:none;font-size:11px}
.workflow-subject-picker[open]>[data-wf-subject-summary]:after{content:'▴'}
.workflow-subject-picker>[data-wf-subject-summary]::-webkit-details-marker{display:none}
.workflow-subject-picker>[data-wf-subject-summary]>span:not(.person-avatar){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflow-subject-picker>[data-wf-subject-summary]>small{font-size:10px;color:var(--crm-muted,#62776d);min-width:0;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflow-subject-popover{padding:7px;border-top:1px solid var(--crm-border,#cdded4);background:var(--crm-soft,#f1f7f4)}
.workflow-subject-popover>[type=search]{width:100%;min-width:0;min-height:31px;margin:0 0 5px;padding:5px 7px;font-size:12px;color:var(--crm-ink,#253b34);background:var(--crm-surface,#fff)}
.workflow-subject-tree{max-height:250px;overflow:auto;border:1px solid var(--crm-border,#cdded4);padding:4px;border-radius:4px;background:var(--crm-surface,#fff);overscroll-behavior:contain}
@media(min-width:761px){
 .workflow-subject-popover.organization-floating-panel>.workflow-subject-tree{
  flex:0 1 auto;min-height:0;max-height:none;overflow:auto;scrollbar-gutter:stable;border:0;padding:0
 }
 .workflow-subject-popover.organization-floating-panel .workflow-subject-children{
  min-width:0;margin:1px 0 0 6px;padding:2px 0 0 8px;border-left-color:var(--org-desktop-line,var(--crm-border,#cdded4))
 }
 .workflow-subject-popover.organization-floating-panel .workflow-subject-department>summary label>span{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
 }
}
.workflow-subject-department{margin:1px 0}
.workflow-subject-department>summary{font-size:12px;padding:3px 2px;cursor:pointer;line-height:1.4;color:var(--crm-ink,#253b34)}
.workflow-subject-tree [data-wf-subject-label],.workflow-subject-tree [data-wf-subject-retained]{display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:29px;margin:0;padding:3px 4px;font-size:12px;line-height:1.5;color:var(--crm-ink,#253b34);cursor:pointer}
.workflow-subject-tree [data-wf-subject-user]{display:flex}
.workflow-subject-tree [data-wf-subject-label]>input,.workflow-subject-tree [data-wf-subject-retained]>input{flex:none;width:14px;height:14px;min-height:0;margin:0;padding:0;box-shadow:none}
.workflow-subject-tree [data-wf-subject-label]>span{min-width:0;overflow-wrap:anywhere}
.workflow-subject-tree [data-wf-subject-label]>small{font-size:10px;color:var(--crm-muted,#62776d);margin-left:4px}
.workflow-subject-tree [data-wf-subject-retained]{display:flex;color:var(--crm-muted,#62776d);cursor:default;padding:5px;border-bottom:1px solid var(--crm-border,#cdded4);margin-bottom:4px}
.workflow-subject-children{margin-left:11px;padding-left:8px;border-left:1px solid var(--crm-border,#cdded4)}
.workflow-subject-tree [data-wf-subject-empty]{font-size:11px;color:var(--crm-muted,#62776d);padding:8px 5px;margin:0}
.workflow-scope-control{display:flex;flex-direction:column;gap:4px;flex:0 1 220px;min-width:180px}
.workflow-scope-control>select{width:100%;max-width:100%!important;margin:0}
.workflow-grant-head>[data-wf-grant-remove]{margin-left:auto;align-self:flex-start;margin-top:18px;flex:none}
.workflow-scope-help,.workflow-grant-retained-note{font-size:11px;line-height:1.6;margin:0 0 8px;color:var(--crm-muted,#62776d)}
.workflow-grant-retained-note{padding:5px 7px;border:1px solid var(--crm-border,#cdded4);border-radius:4px;background:var(--crm-soft,#f1f7f4)}
.workflow-access-help details{margin-top:2px}.workflow-access-help summary{cursor:pointer}.workflow-access-help p{margin:5px 0;line-height:1.6}
/* One bounded grid and one visible footer, without a second title row. */
.workflow-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;padding:0!important;margin:-1px!important}
#main:has(>.workflow-workspace){max-width:none;padding:10px 12px;min-height:0}
.workflow-workspace{display:flex;flex-direction:column;height:var(--workflow-workspace-height,calc(100dvh - 110px));min-height:240px;min-width:0;margin:0!important}
.workflow-workspace>.workflow-tabs{flex:none;margin:0 0 5px;padding:0 0 4px;gap:4px}
.workflow-workspace>.workflow-tabs button{min-height:28px;padding:4px 10px;font-size:11px}
.workflow-content{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
#workflow-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;padding:0!important;overflow:hidden}
.workflow-workspace .workflow-toolbar{flex:none;display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0;padding:5px 6px;border:0;border-bottom:1px solid var(--crm-border,#d4ded8);background:var(--crm-surface,#fff)}
.workflow-workspace .workflow-search{flex:0 1 250px;display:flex;gap:4px;margin:0;min-width:150px}
.workflow-workspace .workflow-search input{flex:1;width:0;min-width:90px;min-height:28px;padding:4px 7px;font-size:12px}
.workflow-workspace .workflow-toolbar .button{min-height:28px;padding:4px 7px;font-size:11px;white-space:nowrap}
.workflow-workspace .workflow-header-actions{display:flex;align-items:center;gap:5px;margin-left:auto;flex:none}
.workflow-workspace .workflow-save-status{font-size:10px;white-space:nowrap;min-width:0}
#workflow-grid-host{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.workflow-workspace #workflow-grid-host .workflow-grid-scroll{flex:1;min-height:80px;max-height:none}
.workflow-workspace #workflow-grid-host .workflow-grid-formula,.workflow-workspace #workflow-grid-host .workflow-grid-status{flex:none}
#workflow-pagination{flex:none;position:sticky;bottom:0;z-index:5;background:var(--crm-surface,#fff);box-shadow:0 -2px 6px #163d2710}
#workflow-pagination>.workflow-pagination{margin:0;padding:5px 8px;min-height:37px;border:0;border-top:1px solid var(--crm-border,#d4ded8);font-size:11px;display:flex;gap:5px 10px;flex-wrap:wrap;justify-content:flex-end}
#workflow-pagination [data-wf-page-info]{margin-right:auto;font-size:11px;white-space:nowrap}
#workflow-pagination :is(button,select,input){min-height:26px;font-size:11px;padding:3px 6px}
#workflow-pagination .workflow-page-jump{flex-basis:auto;gap:3px}
/* Save feedback must never resize or displace the active grid. */
#workflow-drafts{position:absolute;right:8px;bottom:70px;z-index:6;max-width:calc(100% - 16px);pointer-events:none}
.workflow-workspace #workflow-drafts .workflow-draft-banner{margin:0;padding:5px 8px;font-size:11px;min-height:30px;max-width:38rem;pointer-events:auto;box-shadow:0 2px 8px #163d2724}
.workflow-workspace #workflow-drafts .workflow-draft-banner .button{flex:none;min-height:26px;padding:3px 6px;font-size:11px}
@media(max-width:760px){
 #main:has(>.workflow-workspace){padding:7px 6px;min-height:0}
 .workflow-workspace .workflow-toolbar{gap:4px;padding:4px}
 .workflow-workspace .workflow-search{flex:1 1 170px;width:auto}
 .workflow-workspace .workflow-search input{min-height:32px;font-size:16px}
 .workflow-workspace .workflow-toolbar .button{min-height:31px;font-size:10px;padding:4px 6px}
 .workflow-workspace .workflow-header-actions{margin-left:0;gap:4px}
 .workflow-workspace .workflow-toolbar-tools{flex:1 1 100%;order:2}
 .workflow-workspace .workflow-save-status{font-size:9px;margin-left:auto}
 #workflow-pagination>.workflow-pagination{justify-content:flex-start;gap:4px 6px;min-height:36px;padding:5px}
 #workflow-pagination [data-wf-page-info]{font-size:10px}
 #workflow-pagination .workflow-page-jump{display:none}
 #workflow-pagination :is(button,select){min-height:29px;font-size:10px}
 #workflow-pagination .workflow-inline-actions{gap:3px;flex-wrap:wrap}
}
@media(max-width:760px){.workflow-subject-field{flex-basis:100%;min-width:0;width:100%}.workflow-subject-picker>[data-wf-subject-summary]{min-height:39px}.workflow-subject-popover>[type=search]{font-size:16px;min-height:39px}.workflow-subject-tree{max-height:240px}.workflow-subject-tree [data-wf-subject-label],.workflow-subject-tree [data-wf-subject-retained]{min-height:38px;font-size:13px}.workflow-subject-tree [data-wf-subject-label]>input,.workflow-subject-tree [data-wf-subject-retained]>input{width:17px;height:17px}.workflow-scope-control{flex:1;min-width:0}.workflow-scope-control>select{min-height:38px}.workflow-grant-head>[data-wf-grant-remove]{min-height:37px;margin-top:16px}.workflow-scope-help{font-size:11px}}

.workflow-access-settings{display:flex;min-height:0;flex-direction:column;height:100%}.workflow-access-settings>form{display:flex;flex-direction:column;min-height:0;flex:1}.workflow-access-settings .workflow-grants-scroll{flex:1;min-height:120px;overflow:auto;max-height:calc(100dvh - 290px)}.workflow-access-settings .modal-footer{position:sticky;bottom:0;flex:none;z-index:2;background:var(--crm-surface,#fff);padding:8px;border-top:1px solid var(--crm-border,#cedbd3)}.workflow-grant.workflow-grant{display:block;padding:0;margin:0 0 6px;overflow:visible}.workflow-grant-summary{display:flex;align-items:center;gap:7px;padding:8px 10px;cursor:pointer;font-size:12px;list-style:none}.workflow-grant-summary:before{content:'›';font-size:17px}.workflow-grant[open]>.workflow-grant-summary:before{transform:rotate(90deg)}.workflow-grant-summary .person-avatar{width:24px;height:24px;flex:none}.workflow-grant-summary>span:first-of-type{font-weight:650}.workflow-grant-summary>small:last-child{margin-left:auto;white-space:nowrap}.workflow-grant-body{padding:8px 10px;border-top:1px solid var(--crm-border,#d3ded7)}.workflow-choice-tools{display:flex;align-items:center;gap:6px;font-size:12px}.workflow-grant-field-choices{min-width:0;margin:6px 0 0;padding:6px 8px;border:1px solid var(--crm-border,#d5dfd9);border-radius:5px}.workflow-grant-field-choices legend{font-size:12px;font-weight:650}.workflow-field-checkboxes{max-height:160px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:3px}.workflow-field-checkboxes label{display:flex;align-items:center;gap:4px;font-size:12px;margin:0}.workflow-field-checkboxes input{width:13px;height:13px}.workflow-settings-error{color:#b82333;font-size:12px;white-space:pre-wrap}.workflow-grant-summary small{font-size:11px;color:var(--crm-muted,#5d7064)}

.workflow-analysis-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none;margin-bottom:5px}.workflow-analysis-tools{display:flex;align-items:center;gap:5px;margin:0}.workflow-analysis-tools label,.workflow-analysis-group{display:flex;align-items:center;gap:5px;font-size:12px;margin:0}.workflow-analysis-tools input,.workflow-analysis-group select{width:auto;min-height:28px!important;height:28px;padding:3px 7px!important}.workflow-month-tabs{display:flex;gap:3px;overflow:auto;min-width:100px;flex:1}.workflow-month-tabs button{white-space:nowrap}.workflow-analysis-summary{display:flex;flex-wrap:wrap;gap:5px 18px;padding:7px 9px;margin:0!important;border:1px solid var(--crm-border,#d6e0d9);border-radius:6px;background:var(--crm-soft,#f2f7f4);flex:none}.workflow-analysis-summary>span{display:inline-flex;gap:7px;align-items:center;font-size:12px}.workflow-analysis-summary b{font-size:15px}.workflow-analysis-summary small{font-size:11px;margin-left:auto;align-self:center}.workflow-analysis-basis{font-size:11px;color:var(--crm-muted,#596e60);margin:4px 0 6px;flex:none}.workflow-analysis-basis span{margin-left:12px}.workflow-analysis-basis strong{font-weight:600;margin-left:8px;color:#a05d17}.workflow-analysis-scroll{flex:1;min-height:80px;max-height:none!important;overflow:auto}.workflow-analysis-table th,.workflow-analysis-table td{height:29px!important;padding:4px 8px!important;font-size:12px;white-space:nowrap}.workflow-analysis-table thead{position:sticky;top:0;z-index:3}.workflow-analysis-pagination{flex:none;margin-top:3px!important}.workflow-analysis-pagination select{width:auto;min-height:26px;padding:2px 5px}.workflow-analysis-filter{margin:0;padding:0;border:0;border-radius:0;position:relative}.workflow-analysis-filter summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;font-size:12px}.workflow-analysis-filter summary>span{margin-left:auto}.workflow-analysis-filter form{position:absolute;top:100%;left:0;width:200px;background:var(--crm-surface,#fff);border:1px solid var(--crm-border,#cadbd0);padding:8px;border-radius:5px;box-shadow:0 6px 20px #163d2b24;z-index:20;display:grid;gap:5px}.workflow-analysis-filter :is(input,select){width:100%;min-height:28px!important;padding:3px 6px!important}.workflow-analysis-filter-sort{display:flex;gap:4px}.workflow-view-condition{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto;gap:5px;margin:6px 0}.workflow-view-condition :is(select,input){min-width:0}.workflow-view-condition [hidden]{display:none!important}@media(max-width:760px){.workflow-analysis-toolbar{gap:5px}.workflow-month-tabs{order:3;flex-basis:100%}.workflow-analysis-summary{gap:5px 10px}.workflow-analysis-summary b{font-size:13px}.workflow-analysis-summary small{margin:0}.workflow-analysis-basis span{display:block;margin:0}.workflow-view-condition{grid-template-columns:1fr 1fr}.workflow-view-condition button{justify-self:start}.workflow-analysis-pagination{flex-wrap:nowrap!important;gap:4px}.workflow-analysis-pagination>span{font-size:10px}.workflow-analysis-pagination :is(button,label){font-size:11px}}
.workflow-receipt-modal{width:min(700px,95vw)}.workflow-receipt-compact .workflow-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.workflow-receipt-compact label{font-size:12px}.workflow-receipt-compact input{min-height:32px;height:32px;padding:5px 7px;font-size:12px}.workflow-receipt-compact small{font-size:10px;color:var(--crm-muted)}@media(max-width:600px){.workflow-receipt-compact .workflow-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.workflow-assets-analysis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:auto;min-height:0}.workflow-assets-analysis h3{font-size:13px;margin:8px 0}.workflow-asset-allocation-row{display:grid;grid-template-columns:minmax(140px,1fr) 120px auto;gap:8px;align-items:end;margin:8px 0}.workflow-asset-allocation-row label{font-size:12px}.workflow-asset-allocation-row input{min-height:32px;height:32px;padding:4px 7px}.workflow-asset-department .department-picker>summary{min-height:32px;padding:5px 8px}.workflow-asset-department{min-width:0}#workflow-assets-form{max-width:800px}#workflow-assets-form .modal-footer{position:sticky;bottom:0;background:var(--crm-surface,#fff);z-index:3}#workflow-assets-form [data-asset-allocation-rows]{max-height:50dvh;overflow:auto;padding-right:4px}@media(max-width:760px){.workflow-assets-analysis{grid-template-columns:1fr}.workflow-asset-allocation-row{grid-template-columns:minmax(100px,1fr) 90px auto;gap:5px}.workflow-asset-allocation-row input{font-size:16px;height:36px}.workflow-asset-allocation-row button{padding:5px}.workflow-assets-analysis .workflow-table-wrap{min-height:80px}}

/* Import mappings and row results scroll inside a stable, compact dialog. */
.workflow-import{font-size:12px;min-width:0}.workflow-import-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:9px 0}.workflow-import-actions>label{cursor:pointer;margin:0}.workflow-import [data-wfi-progress]{display:flex;align-items:center;gap:10px;margin:12px 0;flex-wrap:wrap}.workflow-import [data-wfi-progress][hidden]{display:none}.workflow-import progress{width:210px;max-width:100%;height:14px;accent-color:var(--crm-accent,#247c62)}.workflow-import-table{max-height:42dvh;overflow:auto;scrollbar-gutter:stable;border:1px solid var(--crm-border,#cddbd1);border-radius:5px;margin:8px 0}.workflow-import-table table{width:100%;border-collapse:collapse;table-layout:fixed}.workflow-import-table td,.workflow-import-table th{padding:6px 8px;border-bottom:1px solid var(--crm-border,#cddbd1);text-align:left;overflow-wrap:anywhere;vertical-align:top}.workflow-import-table th{position:sticky;top:0;background:var(--crm-soft,#f3f7f4);z-index:1}.workflow-import-table select{width:100%;min-width:0;min-height:30px!important;font-size:12px}.workflow-import-modal .modal-body{overflow-x:hidden;scrollbar-gutter:stable}.workflow-import .settings-save-bar{position:sticky;bottom:0;background:var(--crm-surface,#fff);padding:8px 0;margin-top:8px}.workflow-import-result{margin-top:12px}.workflow-import [data-wfi-error]{white-space:pre-wrap;overflow-wrap:anywhere}

/* The customer list shares one header with its tabs and authorized actions. */
.workflow-workspace>.workflow-topbar{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;padding:4px 6px;margin-bottom:6px;border:1px solid var(--crm-border,#cddbd1);border-radius:5px;background:var(--crm-soft,#f3f7f4)}.workflow-topbar>.workflow-tabs{gap:3px;flex:none;margin:0;padding:0}.workflow-topbar>.workflow-tabs button{min-height:28px;padding:4px 9px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--crm-muted,#61786a);font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}.workflow-topbar>.workflow-tabs button.is-active{color:var(--crm-ink,#203a2c);background:var(--crm-surface,#fff);border-color:var(--crm-border,#cddbd1);font-weight:650}.workflow-topbar>.workflow-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:1;min-width:0;margin:0;padding:0!important;border:0;background:transparent}.workflow-topbar .workflow-header-actions{gap:4px;flex-wrap:nowrap;margin-left:auto}.workflow-topbar .workflow-search{margin-left:auto}.workflow-topbar .workflow-search input{width:150px;min-height:28px}.workflow-topbar .workflow-save-status{font-size:10px}.workflow-topbar .workflow-toolbar-tools:empty{display:none}.workflow-topbar .workflow-toolbar-tools:has(>.workflow-grid-tools[hidden]){display:none}.workflow-topbar .workflow-toolbar .button{white-space:nowrap}.workflow-topbar [data-wf=assign-selected]{order:99}.workflow-topbar [data-wf=delete-selected]{order:98}
@media(max-width:1100px){.workflow-topbar>.workflow-toolbar{flex-basis:70%}.workflow-topbar .workflow-search input{width:135px}}@media(max-width:760px){.workflow-workspace>.workflow-topbar{align-items:flex-start;padding:4px}.workflow-topbar>.workflow-toolbar{flex-basis:100%;flex-wrap:wrap}.workflow-topbar .workflow-header-actions{flex-wrap:wrap}.workflow-topbar .workflow-search{flex:1;margin-left:0}.workflow-topbar .workflow-search input{width:100%;min-width:90px}.workflow-topbar .workflow-save-status{margin-left:auto}}

/* Keep the wider advertising metrics readable without widening every column. */
.workflow-workspace .workflow-ad-analysis-table{table-layout:fixed;width:auto;min-width:0!important}
.workflow-workspace .workflow-ad-analysis-table :is(th,td){min-width:0;max-width:none;padding:4px 5px!important;font-size:12px;text-align:center;vertical-align:middle}
.workflow-workspace .workflow-ad-analysis-table th{position:relative;white-space:normal;padding:0 4px!important}
.workflow-workspace .workflow-ad-analysis-table th:first-child{min-width:0}
.workflow-workspace .workflow-ad-analysis-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflow-ad-analysis-table .workflow-ad-sort{display:block;width:100%;min-height:34px;margin:0;padding:4px 3px;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none!important;font:inherit;font-weight:650;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center;cursor:pointer}
.workflow-ad-analysis-table .workflow-ad-sort:focus-visible{outline:2px solid var(--crm-accent,#218577);outline-offset:-2px}
.workflow-ad-analysis-table [data-wf-ad-resize]{position:absolute;z-index:4;top:0;right:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;user-select:none}
.workflow-ad-analysis-table [data-wf-ad-resize]:is(:hover,:focus-visible){background:color-mix(in srgb,var(--crm-accent,#218577) 22%,transparent);outline:0}
.workflow-ad-analysis-table.is-resizing{cursor:col-resize;user-select:none}
.workflow-workspace .workflow-ad-analysis-table [data-wf-budget]{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;padding:3px 6px!important}
.workflow-workspace .workflow-ad-analysis-table .workflow-ad-cost-high,.workflow-workspace .workflow-ad-analysis-table .workflow-ad-cost-high strong{color:#c62828!important}
html[data-crm-theme=dark] .workflow-workspace .workflow-ad-analysis-table .workflow-ad-cost-high,html[data-crm-theme=dark] .workflow-workspace .workflow-ad-analysis-table .workflow-ad-cost-high strong{color:#ffc5c9!important}
.workflow-ad-analysis-toolbar{gap:6px;align-items:center;padding:6px 8px;border:1px solid var(--crm-border,#d6e0d9);border-radius:6px;background:var(--crm-soft,#f2f7f4)}
.workflow-ad-analysis-toolbar .workflow-analysis-tools{flex:none;flex-wrap:nowrap;align-items:center;gap:6px;padding:0;border:0;background:transparent}
.workflow-ad-analysis-toolbar .workflow-analysis-tools label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px;white-space:nowrap}
.workflow-ad-analysis-toolbar .workflow-analysis-tools input[type=month]{width:136px!important;min-width:0;max-width:none;height:30px!important;min-height:30px!important;margin:0;padding:4px 6px!important;font-size:12px!important;line-height:20px}
.workflow-ad-analysis-toolbar .button.small{height:30px!important;min-height:30px!important;margin:0;padding:4px 8px!important;line-height:20px;white-space:nowrap}
.workflow-ad-analysis-toolbar>.button{flex:none}
.workflow-ad-analysis-toolbar .workflow-month-tabs{align-items:center;min-width:160px;margin:0}
@media(max-width:760px){.workflow-ad-analysis-toolbar .workflow-month-tabs{flex-basis:100%;min-width:0}.workflow-ad-analysis-toolbar{gap:6px}}

/* Selection summaries share the fixed pagination footer instead of a row. */
.workflow-workspace .workflow-grid-status{display:none}.workflow-pagination .workflow-selection-stats{flex:1;min-width:0;font-size:10px;color:var(--crm-muted,#61786a);overflow-wrap:anywhere}.workflow-workspace .workflow-pagination{gap:5px 12px}.workflow-pagination>.workflow-inline-actions{margin-left:auto}@media(max-width:760px){.workflow-pagination .workflow-selection-stats{order:3;flex-basis:100%;font-size:9px}.workflow-pagination>.workflow-inline-actions{flex-wrap:wrap;justify-content:flex-end}}

.workflow-new-tags-field{display:flex;min-width:0;flex-direction:column;gap:4px;font-size:12px;color:var(--crm-ink,var(--ink,#18251f))}
.workflow-new-tags-field .choice-dropdown{min-width:0}
.workflow-detail-grid .workflow-new-tags-field summary{min-height:31px}
.workflow-new-tags-field .choice-popover label[hidden]{display:none}
.workflow-new-tags-field .choice-popover .checkbox-row{flex-direction:row}
.workflow-new-tags-field .choice-popover .checkbox-row input{width:14px;min-height:0}
@media(max-width:760px){.workflow-detail-grid .workflow-new-tags-field summary{min-height:37px}}

.workflow-cost-template{padding:8px 12px;overflow:auto;min-height:0}
.workflow-cost-template :is([data-cost-amount],[data-cost-percentage]){width:9em;max-width:100%}
.workflow-cost-template [data-cost-legacy-commission]:not(:empty){display:block;max-width:17em;white-space:normal}
.workflow-cost-template [data-cost-label]{width:13em;max-width:100%}
.workflow-cost-product{display:block;max-width:16em;white-space:normal;overflow-wrap:anywhere}
.workflow-cost-template .workflow-cost-calculation{min-width:10em;white-space:normal;overflow-wrap:anywhere}
.workflow-cost-calculation strong,.workflow-cost-calculation small{display:block}
.workflow-cost-calculation small{margin-top:2px;color:var(--crm-muted,#61786a);font-size:11px;line-height:1.4}
.finance-profit-controls{flex-wrap:wrap;max-width:100%;min-width:0}
.finance-profit-controls>details{max-width:100%}
.finance-profit-controls>details>summary{overflow:hidden;text-overflow:ellipsis}
.finance-profit-orders[data-active=true]>summary{border-color:var(--crm-accent,#268269);background:var(--crm-selected,#d7ecdf);color:var(--crm-ink,#203a2c);font-weight:700}
.finance-profit-orders .finance-profit-order-panel{white-space:normal;max-width:calc(100vw - 16px);container:finance-profit-order/inline-size}
.finance-profit-order-body{display:grid;grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr);gap:8px;margin:5px 0}
.finance-profit-order-body>section{min-width:0}
.finance-profit-order-body h4{margin:2px 0 5px;font-size:12px;overflow-wrap:anywhere}
.finance-profit-order-organization{padding-inline-end:7px;border-inline-end:1px solid var(--crm-border,#d7e2da)}
.finance-profit-order-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.finance-profit-order-tree,.finance-profit-order-list{max-height:min(258px,40dvh);overflow:auto;overscroll-behavior:contain}
.finance-profit-order-list{margin-top:4px}
.finance-profit-order-tree [hidden]{display:none}
.finance-profit-order-tree .finance-profit-order-branch>summary{display:flex;align-items:center;gap:2px;min-height:25px;padding:0 2px;border:0;border-radius:0;background:transparent;font-weight:650;line-height:1.3;cursor:pointer;list-style:none}
.finance-profit-order-branch>summary::-webkit-details-marker{display:none}
.finance-profit-order-branch>summary::after{content:none}
.finance-profit-order-branch>summary::before{content:'▸';width:14px;flex:none;text-align:center;color:var(--crm-muted,#61786a)}
.finance-profit-order-branch[open]>summary::before{content:'▾'}
.finance-profit-order-branch>:is(.finance-profit-order-branch,[data-profit-order-group]){margin-inline-start:8px}
.finance-profit-order-tree [data-profit-order-group]{display:flex;align-items:center;gap:4px;width:100%;min-width:0;min-height:25px;padding:2px 4px;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;font:inherit;line-height:1.25;text-align:start;cursor:pointer}
.finance-profit-order-branch>[data-profit-order-group]{width:calc(100% - 8px)}
.finance-profit-order-tree [data-profit-order-group][hidden]{display:none}
.finance-profit-order-tree [data-profit-order-group]:is(:hover,[aria-pressed=true]){border-color:var(--crm-border,#d7e2da);background:var(--crm-selected,#e6f3e9)}
.finance-profit-group-name{min-width:0;overflow-wrap:anywhere}
.finance-profit-order-tree [data-profit-group-count]{margin-inline-start:auto;flex:none;white-space:nowrap}
.finance-profit-order-tree .person-avatar{width:17px;height:17px;min-width:17px;flex-basis:17px}
.finance-profit-order-row{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:27px;padding:1px 3px;border-bottom:1px solid var(--crm-border,#d7e2da)}
.finance-profit-order-row:has(:checked){background:var(--crm-selected,#e6f3e9)}
.finance-profit-order-row>label{display:flex;flex:1;align-items:center;gap:4px;min-width:0;cursor:pointer}
.finance-profit-order-row :is(input,button){flex:none;margin:0}
.finance-profit-order-row>button{padding:2px 4px;min-height:24px}
.finance-profit-order-name{min-width:0;overflow-wrap:anywhere}
.finance-profit-order-panel small{color:var(--crm-muted,#61786a);font-size:.9em}
.finance-profit-order-row small{flex:none;white-space:nowrap}
.finance-profit-order-panel [data-profit-order-status]{margin:4px 0}
.finance-profit-order-panel [data-profit-order-status]:empty{display:none}
.finance-profit-order-footer{justify-content:flex-end;padding-top:4px;border-top:1px solid var(--crm-border,#d7e2da)}
.finance-profit-order-footer>span{margin-inline-end:auto;color:var(--crm-muted,#61786a)}
@container finance-profit-order (max-width:490px){
 .finance-profit-order-body{grid-template-columns:minmax(0,1fr);gap:5px}
 .finance-profit-order-organization{border-inline-end:0;padding-inline-end:0;padding-bottom:4px;border-bottom:1px solid var(--crm-border,#d7e2da)}
 .finance-profit-order-tree{max-height:min(116px,19dvh)}
 .finance-profit-order-list{max-height:min(166px,27dvh)}
 .finance-profit-order-tree [data-profit-order-group],.finance-profit-order-row{min-height:30px}
 .finance-profit-order-row>label{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:5px;row-gap:0}
 .finance-profit-order-row input{grid-row:span 2}
 .finance-profit-order-row small{grid-column:2}
}
.workflow-cost-quantity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:12px}
.workflow-cost-quantities{display:grid;gap:4px;align-content:start}
.workflow-cost-quantities h3{margin:8px 0 2px;font-size:inherit}
.workflow-cost-quantities label{display:flex;justify-content:space-between;align-items:center;gap:8px}
.workflow-cost-quantities input{width:7em;max-width:42%}

.workflow-fee-reminder-scroll{max-width:100%;overflow:auto}
.workflow-table.workflow-fee-reminder-table{width:max-content;min-width:0;table-layout:auto}
.workflow-table.workflow-fee-reminder-table th,.workflow-table.workflow-fee-reminder-table td{max-width:190px;padding:4px 8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.workflow-fee-reminder-table .button.small{min-height:24px;padding:2px 6px}
.workflow-fee-summary{display:flex;flex-wrap:wrap;gap:5px 16px;align-items:baseline;padding:4px 8px;font-size:12px;color:var(--crm-muted,#556579)}
.workflow-fee-summary:empty{display:none}
.workflow-fee-summary b{color:var(--crm-ink,#182337);font-variant-numeric:tabular-nums}
.workflow-header-actions>[data-wf=fill-selected][hidden]{display:none!important}
@media(min-width:761px){
  .workflow-workspace .workflow-header-actions{gap:4px}
  .workflow-workspace .workflow-header-actions>.button{padding-inline:6px}
  .workflow-topbar>.workflow-toolbar.compact-panel-collapsed:has([data-wf=fill-selected]:not([hidden])){
    height:auto!important;
    min-height:28px!important;
  }
  .workflow-toolbar.compact-panel-collapsed>.workflow-header-actions:has(>[data-wf=fill-selected]:not([hidden])){display:flex!important}
  .workflow-toolbar.compact-panel-collapsed>.workflow-header-actions>.button:not([data-wf=fill-selected]){display:none!important}
}
@media(max-width:760px){.workflow-header-actions>[data-wf=fill-selected]{display:none!important}}


/* workspace-layout.css */
/* Compact actions, personalized navigation and resizable content panes. */
.shell>.sidebar{overscroll-behavior-y:contain;overflow-anchor:none;scroll-behavior:auto;scrollbar-gutter:stable}
.shell>.sidebar>*{flex-shrink:0}
.shell>.sidebar .nav-button{transform:none;transition:background .12s,color .12s}
.shell>.sidebar .nav-button:is(:hover,:focus-visible,.active){transform:none}
.detail-columns:has(>section[hidden]){grid-template-columns:minmax(0,1fr)}.detail-columns>section[hidden]{display:none!important}
.sidebar-create{display:flex;width:100%;justify-content:center;gap:8px;margin:8px 0;min-height:34px}
.sidebar-layout-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 3px 5px}
.sidebar-layout-controls button{border:0;background:none;color:var(--crm-muted);font:inherit;font-size:10px;cursor:pointer;padding:3px}
.sidebar-layout-controls button:hover{color:var(--crm-accent)}
.nav-layout-reset,.nav-drag-grip,.nav-reorder-actions{display:none}
.navigation-editing .nav-layout-reset{display:inline-block}.navigation-editing .nav-drag-grip{display:inline;cursor:grab;color:var(--crm-muted);margin-right:4px;font-size:15px}
.navigation-editing .nav-reorder-actions{display:flex;gap:2px;margin-left:auto}.nav-sort-entry{display:flex;align-items:center;min-width:0}.nav-sort-entry>.nav-button{flex:1;min-width:0}.nav-reorder-actions>.nav-reorder{border:1px solid var(--crm-border);border-radius:4px;background:var(--crm-surface);color:var(--crm-ink);padding:3px;min-width:22px;cursor:pointer}
.navigation-editing .nav-sort-entry .nav-button{white-space:normal}.navigation-editing .nav-label{display:flex;align-items:center}.navigation-editing .nav-label>.nav-chevron{display:none}
.sidebar-edge-toggle{position:fixed;left:calc(var(--sidebar) - 1px);top:calc(50dvh - 20px);z-index:35;width:19px;height:40px;border:1px solid var(--crm-border);border-left:0;border-radius:0 7px 7px 0;background:linear-gradient(100deg,var(--crm-selected),var(--crm-surface));color:var(--crm-accent);box-shadow:2px 2px 6px #132c251c;font-size:23px;cursor:pointer}
.sidebar-collapsed .sidebar-layout-controls{display:none}.sidebar-collapsed .sidebar-create{font-size:18px;padding:4px}.sidebar-collapsed .nav-sort-entry{display:block}
.customer-create-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:10px 0}.customer-create-choices .button{min-height:54px}
.customer-results-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 12px}.customer-results-toolbar>.top-actions{flex-wrap:wrap;gap:6px}.customer-results>.customer-results-toolbar .public-quick-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0}
.customer-results-toolbar>.customer-fixed-views{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0}.customer-result-export{margin-left:auto;display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.customer-result-export:empty{display:none}
.customer-results-toolbar .customer-fixed-views button{padding:5px 8px;min-height:29px;font-size:11px}.customer-results-toolbar .result-count{margin:0 3px}
#sales-delete-form [data-sales-delete-status]{height:36px;min-height:36px;overflow:auto}
/* Keep action buttons while removing the duplicate large page heading. */
.main .rec-header,.main .approval-heading{display:flex;justify-content:flex-end;min-height:0;margin:0 0 7px;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.main .rec-header>.rec-heading,.main .approval-heading>div:first-child{display:none}.main .rec-header:not(:has(button)){display:none}.main .rec-header-actions{display:flex;gap:6px}.main .rec-header-actions .button{min-height:30px;padding:5px 9px;font-size:11px}
.resizable-team-layout{position:relative;grid-template-columns:minmax(0,var(--team-pane-width,230px)) minmax(0,1fr)!important;min-width:0}
.resizable-team-layout>.team-pane{position:relative;min-width:0;overflow:auto}.resizable-team-layout>:last-child{min-width:0}
.team-pane-resizer{position:absolute;top:40px;bottom:0;right:-5px;width:10px;cursor:col-resize;touch-action:none;z-index:7;border-radius:4px}
.team-pane-resizer:after{content:'';position:absolute;top:40%;left:4px;width:3px;height:40px;border-radius:3px;background:var(--crm-border)}.team-pane-resizer:hover:after,.team-pane-resizer:focus-visible:after{background:var(--crm-accent)}
.resizable-team-layout.team-pane-collapsed,.resizable-team-layout.office-sidebar-collapsed{grid-template-columns:38px minmax(0,1fr)!important}.team-pane-collapsed .team-pane-resizer,.office-sidebar-collapsed .team-pane-resizer{display:none}
/* The organization toggle lives in its heading; keep it reachable when collapsed. */
.organization-grid.team-pane-collapsed>.org-sidebar>.org-sidebar-heading{display:flex!important;justify-content:center;padding:0!important;margin:0}
.organization-grid.team-pane-collapsed>.org-sidebar>.org-sidebar-heading>:not(.team-pane-toggle){display:none!important}
.organization-grid.team-pane-collapsed .org-heading-toggle{margin:0!important}
html[data-crm-theme] .dashboard-home{--home-ink:var(--crm-ink);--home-muted:var(--crm-muted);--home-line:var(--crm-border)}
.dashboard-home .home-workspace{grid-template-columns:minmax(0,1.45fr) minmax(290px,1fr);align-items:stretch}.dashboard-home .home-today{border-top:3px solid #6babb7;background:linear-gradient(135deg,var(--crm-surface),color-mix(in srgb,var(--crm-soft) 65%,var(--crm-surface)))}
.dashboard-home .home-task-grid{gap:8px}.dashboard-home .home-task.summary-tile{border-radius:9px;border:1px solid var(--crm-border);box-shadow:inset 0 1px #ffffff6b,0 3px 0 color-mix(in srgb,var(--crm-border) 65%,transparent),0 5px 12px #102d2010;min-height:91px;padding:10px}
.dashboard-home .home-task:nth-child(1){border-top:3px solid #5b9bb9}.dashboard-home .home-task:nth-child(2){border-top:3px solid #d6a34e}.dashboard-home .home-task:nth-child(3){border-top:3px solid #66a591}.dashboard-home .home-month{border-top:3px solid #9679bd}.dashboard-home .home-month-body{padding:0 12px 12px}.dashboard-home .home-month-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;padding-top:7px}.dashboard-home .home-month-metrics>.home-month-row{display:block;padding:8px;background:var(--crm-soft);border:1px solid var(--crm-border);border-radius:6px;box-shadow:inset 0 1px #ffffff48}.dashboard-home .home-month-metrics dd{text-align:left;max-width:100%;font-size:20px;margin-top:4px}.dashboard-home .home-month-metrics dt{font-size:11px;color:var(--crm-muted)}
@media(max-width:760px){
 .sidebar-edge-toggle{display:none}.sidebar-layout-controls{justify-content:flex-start}.navigation-editing .nav-reorder-actions>.nav-reorder{min-height:30px;min-width:28px}.sidebar-collapsed .sidebar-layout-controls{display:flex}.customer-results-toolbar{gap:6px}.customer-results-toolbar>.top-actions{font-size:12px}.customer-results-toolbar>.customer-fixed-views{order:3;flex:1 0 100%}.customer-result-export{align-self:flex-start}.customer-results-toolbar .customer-fixed-views button{flex:1;white-space:nowrap;font-size:10px;padding:5px 3px}
 .resizable-team-layout{display:grid!important;grid-template-columns:minmax(110px,min(var(--team-pane-width,170px),44vw)) minmax(0,1fr)!important;gap:7px}.resizable-team-layout.team-pane-collapsed,.resizable-team-layout.office-sidebar-collapsed{grid-template-columns:34px minmax(0,1fr)!important}.company-settings.resizable-team-layout:not(.team-pane-collapsed){grid-template-columns:minmax(98px,min(var(--team-pane-width,156px),44vw)) minmax(0,1fr)!important}.company-category-nav{flex-direction:column}.company-category-nav button{width:100%;min-width:0}.team-pane-resizer{right:-5px}.dashboard-home .home-workspace{grid-template-columns:minmax(0,1fr);align-items:start}.dashboard-home .home-task.summary-tile{min-height:88px;padding:8px}.dashboard-home .home-month-metrics{gap:6px}.dashboard-home .home-month-metrics dd{font-size:18px}.customer-create-choices{grid-template-columns:1fr}
}

/* Keep resize handles inside scrollable panes and within their hit area. */
.resizable-team-layout .team-pane-resizer{right:0;width:8px}.resizable-team-layout .team-pane-resizer:after{left:4px}

/* The business grid already has one synchronized compact horizontal control.
   Hide only its duplicate native horizontal rail; keep native vertical scroll. */
#main .workflow-workspace #workflow-list-scroll.workflow-grid-scroll::-webkit-scrollbar{height:0;width:12px}
#main .workflow-workspace #workflow-list-scroll.workflow-grid-scroll::-webkit-scrollbar-thumb{background:var(--crm-border,#bbd3c5);border-radius:5px}
.customer-scroll-side-space{max-width:calc(100% - 24px)!important}
.customer-table-scroll-next{position:fixed;z-index:19;width:21px;min-width:21px;height:36px;min-height:36px;padding:0;border:1px solid var(--crm-border,#bbd3c5);border-radius:0 6px 6px 0;background:linear-gradient(100deg,var(--crm-selected,#e0efe5),var(--crm-surface,#fff));color:var(--crm-accent,#247c62);box-shadow:2px 2px 5px #163b2920;font:25px/32px sans-serif;text-align:center;cursor:pointer;touch-action:manipulation}
.customer-table-scroll-next:hover,.customer-table-scroll-next:focus-visible{color:var(--crm-ink,#193d29);border-color:var(--crm-accent,#247c62);outline:2px solid color-mix(in srgb,var(--crm-accent,#247c62) 45%,transparent);outline-offset:1px}
.customer-table-scroll-next:disabled{opacity:.3;cursor:default;box-shadow:none}.customer-table-scroll-next[hidden]{display:none}.modal-open .customer-table-scroll-next{visibility:hidden}

@media(max-width:760px){.shell.mobile-navigation-editing.menu-open>.sidebar{display:flex!important;z-index:110;transform:none;box-shadow:0 0 0 100vmax #132c2550}.mobile-layout-entry{margin:0 0 12px}}


/* workflow-detail.css */
.modal.detail-modal.workflow-record-detail{width:960px;max-width:calc(100vw - 40px);max-height:min(720px,calc(100dvh - 48px));height:auto;color:var(--crm-ink,#253b34);background:var(--crm-surface,#fff)}
.workflow-record-detail [hidden]{display:none!important}
.modal.detail-modal.workflow-record-detail .modal-body{padding:14px 16px;background:var(--crm-surface,#fff)}
.modal.detail-modal.workflow-record-detail .workflow-record-profile{padding:0 0 10px;margin:0;border-bottom:1px solid var(--crm-border,#d2ded7)}
.workflow-record-detail .workflow-record-profile>.customer-avatar{width:36px;height:36px;min-width:36px;flex:0 0 36px;margin:0;border-radius:10px;overflow:hidden;display:inline-flex}
.workflow-record-detail .workflow-record-profile>.customer-avatar svg{width:100%;height:100%}
.workflow-record-detail .workflow-record-profile>div:first-of-type{flex:1;min-width:0}
.workflow-record-detail .workflow-record-profile h2{overflow-wrap:anywhere;color:var(--crm-ink,#253b34)}
.workflow-record-detail .workflow-record-profile p{color:var(--crm-muted,#62776d);overflow-wrap:anywhere}
.workflow-record-detail .detail-primary-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.modal.detail-modal.workflow-record-detail .workflow-record-context{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0 10px;font-size:11px;color:var(--crm-muted,#62776d)}
.workflow-record-context .workflow-detail-edit-status{margin-left:auto;max-width:100%;overflow-wrap:anywhere;font-size:11px}
.workflow-record-context .workflow-detail-edit-status:empty{display:none}
.workflow-record-context:not(:has(>[data-wf=assign-one],>[data-wf=fees],>[data-wf=asset-allocations],>.workflow-detail-widgets:not(:empty))):has([data-wf-detail-save-status]:empty):not(:has([data-wf-detail-drafts]:not([hidden]))){display:none!important}
.modal.detail-modal.workflow-record-detail .workflow-detail-columns{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.15fr);gap:18px;padding-top:12px;height:auto}
.workflow-record-detail .workflow-detail-columns>section{min-width:0;max-height:calc(100dvh - 250px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.modal.detail-modal.workflow-record-detail .workflow-detail-columns>section:first-child{padding-right:16px;border-right:1px solid var(--crm-border,#d2ded7)}
.workflow-record-detail .workflow-detail-fields{margin:0;min-width:0}
.modal.detail-modal.workflow-record-detail .workflow-detail-field-row{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;gap:9px;min-width:0;margin:0;padding:7px 0;border-top:0;border-bottom:1px solid var(--crm-border,#d2ded7);background:transparent}
.modal.detail-modal.workflow-record-detail .workflow-detail-field-row:last-child{border-bottom:0}
.workflow-record-detail .workflow-detail-field-row dt{min-width:0;font-size:11px;line-height:1.7;overflow-wrap:anywhere;color:var(--crm-muted,#62776d)}
.workflow-record-detail .workflow-detail-field-row dt small{display:block;font-size:9px;color:var(--crm-muted,#62776d)}
.workflow-record-detail .workflow-detail-field-row dd{min-width:0;margin:0;font-size:12px;line-height:1.7;color:var(--crm-ink,#253b34)}
.workflow-record-detail .workflow-detail-value{display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
.workflow-record-detail .workflow-detail-field-editor{display:block;min-width:0}
.workflow-record-detail .workflow-detail-field-editor>input,.workflow-record-detail .workflow-detail-field-editor>select,.workflow-record-detail .workflow-detail-field-editor>textarea{display:block;width:100%;min-width:0;min-height:30px;margin:0;padding:5px 7px;font-size:12px;border:1px solid var(--crm-border,#d2ded7);border-radius:4px;background:var(--crm-surface,#fff);color:var(--crm-ink,#253b34)}
.workflow-record-detail .workflow-current-assignment{margin:10px 0 0;font-size:11px;padding:7px}
.workflow-record-detail .workflow-current-assignment strong{font-size:11px}
.workflow-follow-composer{padding:8px;margin:0 0 10px;border:1px solid var(--crm-border,#d2ded7);border-radius:7px;background:var(--crm-soft,#f3f7f3)}
.workflow-follow-composer .follow-composer-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}
.workflow-follow-composer [data-wf-follow-status]{font-size:11px;color:var(--crm-muted,#62776d)}
.modal.detail-modal.workflow-record-detail .workflow-follow-composer textarea{display:block;width:100%;min-height:38px;height:38px;max-height:38px;resize:none;padding:7px 8px;font-size:12px;line-height:1.6;color:var(--crm-ink,#253b34);background:var(--crm-surface,#fff);border-color:var(--crm-border,#d2ded7)}
.modal.detail-modal.workflow-record-detail .workflow-follow-composer.is-expanded textarea{height:85px;min-height:70px;max-height:180px;resize:vertical}
.workflow-follow-next{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--crm-muted,#62776d);margin:8px 0}
.workflow-follow-next input{min-width:0;max-width:100%;min-height:30px;font-size:12px;padding:5px 7px}
.workflow-follow-error{margin:7px 0 0;padding:7px 8px;font-size:11px;line-height:1.6;border:1px solid #bd796d;border-radius:4px;color:var(--crm-ink,#253b34);background:var(--crm-surface,#fff);overflow-wrap:anywhere}
.workflow-detail-empty{padding:12px 5px;font-size:12px;line-height:1.6;color:var(--crm-muted,#62776d);overflow-wrap:anywhere}
.workflow-record-detail .follow-history-head{font-size:11px;margin:7px 0 6px}
.workflow-record-detail .workflow-follow-timeline{padding:0 0 0 2px;min-height:0;overflow:visible}
.workflow-record-detail .workflow-follow-record{padding:7px 0 10px 12px;margin-left:4px;border-color:var(--crm-border,#d2ded7)}
.workflow-record-detail .workflow-follow-record .follow-record-header{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:11px;line-height:1.5;margin:0 0 4px;color:var(--crm-muted,#62776d)}
.workflow-record-detail .follow-record-header strong{font-size:11px;color:var(--crm-ink,#253b34)}
.workflow-record-detail .follow-record-header .record-type{font-size:10px;padding:1px 5px;background:var(--crm-soft,#f3f7f3);color:var(--crm-muted,#62776d)}
.workflow-record-detail .workflow-follow-record .follow-record-content{font-size:12px;line-height:1.7;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--crm-ink,#253b34)}
.workflow-record-detail .follow-record-next{display:block;margin-top:4px;font-size:10px;color:var(--crm-muted,#62776d)}
.workflow-record-detail .follow-pagination{padding:7px 0 2px;font-size:11px}
.workflow-detail-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:9px;margin-top:10px;border-top:1px solid var(--crm-border,#d2ded7);color:var(--crm-muted,#62776d);font-size:10px}
@media(max-width:760px){
 .modal.detail-modal.workflow-record-detail{width:100%;max-width:100%;max-height:calc(var(--mobile-viewport-height,100dvh) - 20px)}
 .modal.detail-modal.workflow-record-detail .modal-body{padding:11px}
 .workflow-record-detail .workflow-record-profile>.customer-avatar{width:34px;height:34px;min-width:34px;flex-basis:34px}
 .workflow-record-detail .detail-primary-actions{flex-basis:100%;justify-content:flex-start}
 .modal.detail-modal.workflow-record-detail .workflow-detail-columns{display:block;padding-top:10px}
 .workflow-record-detail .workflow-detail-columns>section{max-height:none;overflow:visible;scrollbar-gutter:auto}
 .modal.detail-modal.workflow-record-detail .workflow-detail-columns>section:first-child{border-right:0;border-bottom:1px solid var(--crm-border,#d2ded7);padding:0 0 10px;margin-bottom:12px}
 .modal.detail-modal.workflow-record-detail .workflow-detail-field-row{padding:6px 0}
 .workflow-record-detail .workflow-detail-field-editor>input,.workflow-record-detail .workflow-detail-field-editor>select,.workflow-record-detail .workflow-detail-field-editor>textarea{min-height:36px;font-size:16px}
 .workflow-record-detail .workflow-follow-composer textarea{font-size:16px!important}
 .workflow-follow-next input{min-height:36px;font-size:16px}
 .workflow-detail-footer{position:sticky;bottom:-11px;margin:10px -11px -11px;padding:9px 11px;background:var(--crm-surface,#fff);z-index:2;box-shadow:0 -3px 8px #223d2e07}
}

/* Module catalogs stay beside the profile; literal editing stays in place. */
.workflow-record-detail .workflow-detail-inline-value{display:block;min-height:24px;cursor:text;border-radius:4px;padding:2px 4px;margin:-2px -4px;outline-offset:2px}
.workflow-record-detail .workflow-detail-inline-value:hover{background:var(--crm-hover,#edf4f0);box-shadow:inset 0 0 0 1px var(--crm-border,#cfddd4)}
.workflow-record-detail .workflow-detail-widgets{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:8px 0;border-bottom:1px solid var(--crm-border,#d3dfd7)}
.workflow-detail-widgets label,.workflow-detail-widgets>div{margin:0}.workflow-stage-control,.workflow-tags-control,.workflow-stars-control{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}.workflow-stage-control select{width:auto;max-width:200px;min-height:28px!important;padding:3px 24px 3px 7px!important}.workflow-tag-choice{display:inline-flex!important;align-items:center;gap:4px;padding:3px 7px;border:1px solid var(--workflow-tag-color,var(--crm-border,#c8dacf));border-radius:5px}.workflow-tag-choice input{width:13px;height:13px;margin:0}.workflow-stars-control>div{display:flex}.workflow-stars-control [data-wf-star]{min-width:23px!important;width:23px!important;min-height:26px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#a6aaa7!important;font-size:21px;line-height:26px}.workflow-stars-control [data-wf-star].is-selected{color:#bf7800!important}.workflow-stars-control.is-risk [data-wf-star].is-selected{color:#cf293a!important}.workflow-stars-control .workflow-star-clear{font-size:11px!important;width:auto!important;color:var(--crm-muted,#586b60)!important}.workflow-detail-widgets>div>span,.workflow-stage-control>span{font-weight:650}.workflow-detail-widgets small{font-size:11px;color:var(--crm-muted,#586b60)}
.workflow-tag-choice[style]{background:color-mix(in srgb,var(--workflow-tag-color) 12%,#fff);color:var(--workflow-tag-color);border-color:color-mix(in srgb,var(--workflow-tag-color) 24%,#fff)}
.workflow-tags-control .workflow-detail-tag-picker{min-width:106px;max-width:min(246px,calc(100vw - 108px))}
.workflow-detail-tag-caption{display:flex;align-items:center;gap:4px;min-width:0}
.workflow-detail-tag-picker>summary{min-height:28px;padding:3px 23px 3px 6px}
.workflow-detail-tag-picker>summary[aria-disabled=true]{opacity:.6;cursor:default}
.workflow-detail-tag-caption>.workflow-tag-choice{display:block!important;min-width:0;max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 5px}
@media(max-width:760px){.workflow-record-detail .workflow-detail-widgets{gap:7px 12px}.workflow-record-detail .workflow-detail-inline-value{min-height:28px}.workflow-stage-control select{font-size:16px!important;max-width:170px}}

.workflow-stars-control [data-wf-star].is-selected,.workflow-stars-control.is-risk [data-wf-star].is-selected{color:var(--workflow-star-color,#9A6C18)!important}


.workflow-risk-control[style] select{color:var(--workflow-risk-color)!important;border-color:color-mix(in srgb,var(--workflow-risk-color),transparent 45%)!important;background:color-mix(in srgb,var(--workflow-risk-color),white 94%)!important;font-weight:650}

.workflow-risk-with-contract{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap}
.workflow-record-detail .workflow-contract-button{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:3px 8px;border:1px solid #b8cee5;border-radius:6px;background:#eaf3ff;color:#205d99;box-shadow:none;white-space:nowrap;font-size:12px}
.workflow-record-detail .workflow-contract-button:hover,.workflow-record-detail .workflow-contract-button[aria-expanded=true]{background:#dcecff}
.workflow-contract-button svg{width:15px;height:15px}

.workflow-record-detail .workflow-record-context>.workflow-detail-widgets {
  padding:0;
  border:0;
  gap:6px 14px;
  min-width:0;
  max-width:100%;
}
.workflow-record-detail .workflow-record-context>.workflow-detail-widgets:empty{display:none}


/* workflow-submit.css */
.workflow-submit-modal{width:min(900px,96vw)}.workflow-submit-modal .modal-body{position:relative}.workflow-submit-topbar{position:sticky;top:-1px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;background:var(--crm-surface,var(--paper));border-bottom:1px solid var(--crm-border,var(--line));box-shadow:0 3px 5px #203c3210;margin-bottom:10px}.workflow-submit-topbar>strong{font-size:14px}.workflow-submit-receiver-tools{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;margin:10px 0}.workflow-submit-receiver-tools>strong{font-size:13px}.workflow-submit-form .workflow-org-tree details{margin:0;padding:0;border:0;box-shadow:none;background:transparent}.workflow-submit-form .workflow-org-tree details>summary{padding:5px 3px;display:list-item!important;margin:0;line-height:24px}.workflow-submit-form .workflow-org-tree summary>label{display:inline-flex;align-items:center;gap:6px}.workflow-submit-form .workflow-org-tree summary>small{font-size:11px;margin-left:8px;color:var(--crm-muted,var(--muted))}.workflow-submit-form .workflow-org-tree details>details{margin-left:18px;border-left:1px solid var(--crm-border,var(--line));padding-left:7px}.workflow-submit-form .workflow-org-users{padding-left:20px}.workflow-submit-form [data-wf-org-user]{display:flex;align-items:center;gap:7px;padding:4px 0}.workflow-receiver-unavailable{font-weight:400;color:var(--crm-muted,var(--muted))}.workflow-receiver-empty{font-size:12px;color:var(--crm-muted,var(--muted));padding:8px}.workflow-submit-form .workflow-handoff-grid textarea{resize:vertical;min-height:64px}.workflow-submit-form .workflow-receiver-search{margin-bottom:6px}.workflow-submit-form .workflow-submit-error:empty{display:none}.workflow-submit-form .workflow-handoff-head{flex-wrap:wrap}.workflow-submit-form .workflow-org-tree{max-height:340px;overflow:auto}.workflow-submit-form .workflow-submit-error{white-space:pre-wrap;padding:7px 0}.workflow-submit-form .workflow-handoff-grid>label:has(textarea){grid-column:auto}.workflow-submit-form .modal-footer{justify-content:space-between}@media(max-width:760px){.workflow-submit-modal{width:96vw}.workflow-submit-topbar{gap:6px;padding:7px 0;align-items:center}.workflow-submit-topbar>strong{font-size:12px}.workflow-submit-topbar .button{font-size:12px;min-height:35px;padding:6px 9px}.workflow-submit-form .workflow-handoff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.workflow-submit-form .workflow-handoff-grid>label:has(textarea){grid-column:1/-1}.workflow-submit-form .workflow-org-tree{max-height:270px}.workflow-submit-form .workflow-org-tree summary>small{display:block;margin-left:22px;line-height:1.4}.workflow-submit-form .workflow-handoff-head input{max-width:160px}.workflow-submit-receiver-tools .button{font-size:11px;min-height:33px}}
/* A submission is a short handoff followed by the actual receiving organization. */
.workflow-submit-modal{width:min(900px,96vw)}
.workflow-submit-modal .modal-header{padding:13px 18px;min-height:0}.workflow-submit-modal .modal-header h2{font-size:17px}
.workflow-submit-modal .modal-body{padding:12px 18px}.workflow-submit-topbar{padding:4px 0 8px;margin-bottom:8px}
.workflow-submit-topbar .workflow-submit-confirm{min-height:30px;font-size:12px;padding:5px 10px}
.workflow-submit-form .workflow-handoff{padding:9px;margin-bottom:7px}.workflow-submit-form .workflow-handoff-head{margin-bottom:6px;font-size:12px}.workflow-submit-form .workflow-handoff-head input{width:110px;min-height:26px}
.workflow-submit-form .workflow-handoff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:8px 12px}
.workflow-submit-form .workflow-handoff-grid>label{font-size:12px;min-width:0;align-self:start}.workflow-submit-form .workflow-handoff-grid input,.workflow-submit-form .workflow-handoff-grid select,.workflow-submit-form .workflow-handoff-grid textarea{width:100%;min-height:30px;height:30px;padding:5px 7px;font-size:12px;box-sizing:border-box}
.workflow-submit-form .workflow-handoff-grid textarea{min-height:30px;max-height:200px;resize:vertical;transition:height .12s}.workflow-submit-form .workflow-handoff-grid textarea:focus{height:110px;min-height:110px}
.workflow-submit-form .workflow-help{font-size:11px;line-height:1.6;margin:5px 0;padding:5px 7px}.workflow-submit-form .workflow-handoff-help{font-size:10px;margin-top:5px}
.workflow-submit-form .workflow-receiver-block{padding:7px 9px;margin:6px 0;border:1px solid var(--crm-border);border-radius:5px;background:var(--crm-surface)}
.workflow-submit-form .workflow-receiver-body{padding:0}.workflow-submit-form .workflow-org-tree{max-height:280px;border:0;padding:0;overflow:auto}
.workflow-submit-form .workflow-org-tree details>summary{line-height:21px;padding:3px 2px;font-size:12px}.workflow-submit-form [data-wf-org-user]{padding:3px 0;font-size:12px}.workflow-submit-form .person-avatar{width:22px;height:22px;min-width:22px}
.workflow-submit-form .workflow-submit-receiver-tools{margin:8px 0 4px}.workflow-submit-form .workflow-submit-receiver-tools>strong{font-size:12px}.workflow-submit-form .workflow-submit-receiver-tools button{min-height:26px;font-size:10px;padding:3px 7px}
@media(max-width:560px){.workflow-submit-modal .modal-body{padding:10px 12px}.workflow-submit-form .workflow-handoff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.workflow-submit-form .workflow-handoff-grid>label:has(textarea){grid-column:auto}.workflow-submit-form .workflow-handoff-grid input,.workflow-submit-form .workflow-handoff-grid select,.workflow-submit-form .workflow-handoff-grid textarea{min-height:33px;height:33px}}
/* Handoffs stay inside the current customer detail and grow only as needed. */
.workflow-submit-panel{position:absolute;z-index:12;box-sizing:border-box;display:flex;flex-direction:column;min-width:0;max-width:100%;overflow:hidden;border:1px solid var(--crm-border,#c9d8d0);border-radius:10px;background:var(--crm-surface,#fff);color:var(--crm-ink,#253b34);box-shadow:0 9px 28px #183d3040;isolation:isolate}
.workflow-submit-panel *{box-sizing:border-box}.workflow-submit-panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:9px 12px;border-bottom:1px solid var(--crm-border,#c9d8d0);background:var(--crm-soft,#f1f7f2)}.workflow-submit-panel-header h3{margin:0;font-size:14px;font-weight:700}.workflow-submit-panel-header button{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:1px solid var(--crm-border,#c9d8d0);border-radius:5px;background:var(--crm-surface,#fff);color:var(--crm-ink,#253b34);font-size:20px;cursor:pointer}
.workflow-submit-panel-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:9px 12px}.workflow-submit-panel-body [data-workflow-submit-loading]{min-height:55px;padding:13px 5px;color:var(--crm-muted,#60766b);font-size:12px}.workflow-submit-panel .workflow-submit-topbar{top:0}.workflow-submit-panel .workflow-submit-form{margin:0}.workflow-submit-panel .workflow-submit-form .modal-footer{margin-bottom:0}.workflow-submit-panel :is(button,input,select,textarea):focus-visible{outline:2px solid var(--crm-accent,#247c62);outline-offset:2px}
@media(max-width:560px){.workflow-submit-panel-header{padding:7px 9px}.workflow-submit-panel-body{padding:7px 9px}.workflow-submit-panel .workflow-submit-form .workflow-handoff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.workflow-submit-panel .workflow-submit-form .workflow-handoff-grid>label:has(textarea){grid-column:1/-1}}
.workflow-submit-form .workflow-handoff-choice{display:grid;align-self:start;gap:4px;min-width:0;font-size:12px;font-weight:600}
.workflow-submit-form .workflow-multiple-choice{min-width:0}
.workflow-submit-form .workflow-handoff-grid input.filter-choice{width:14px;height:14px;min-height:0;padding:0}
.workflow-submit-form [data-handoff-input-field][hidden]{display:none!important}.workflow-handoff-destinations{display:block;color:var(--crm-muted,#60766b);font-size:10px;font-weight:400;line-height:1.35;margin:1px 0 3px;overflow-wrap:anywhere}

.workflow-handoff-ordinary-submitter{color:var(--crm-muted,var(--muted));font-size:11px}
.workflow-submit-form .workflow-submit-receiver-tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 9px}
.workflow-submit-receiver-tools>[data-workflow-submit-reload]{grid-column:3;justify-self:end;white-space:nowrap}
.workflow-submit-form .workflow-handoff-submitter{display:grid;grid-template-columns:minmax(0,185px) minmax(0,max-content);align-items:center;gap:5px;min-width:0}
.workflow-handoff-delegate,.workflow-handoff-following{min-width:0}
.workflow-handoff-submitter .user-tree-popup{width:100%;min-width:0;max-width:100%;font-size:12px}
.workflow-handoff-submitter .user-tree-popup>summary{min-height:28px;padding:4px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workflow-handoff-following .button{max-width:100%;min-height:28px;padding:3px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workflow-submit-form input[data-wfs-required]:disabled{opacity:1;cursor:default}
@media(min-width:761px){
 .workflow-submit-panel-body,.workflow-submit-modal .modal-body{overflow-anchor:none}
}
@media(max-width:760px){
 .workflow-submit-form .workflow-submit-receiver-tools{grid-template-columns:minmax(0,1fr) auto;gap:4px 6px}
 .workflow-submit-receiver-tools>[data-workflow-submit-reload]{grid-column:2;grid-row:1}
 .workflow-submit-form .workflow-handoff-submitter{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(0,max-content)}
 .workflow-handoff-submitter .user-tree-popup>summary,.workflow-handoff-following .button{min-height:34px}
 .workflow-submit-form .workflow-submit-receivers .workflow-receiver-block{padding:3px 5px;margin:3px 0}
 .workflow-submit-form .workflow-submit-receivers .workflow-org-tree{max-height:none;overflow:visible}
 .workflow-submit-form .workflow-submit-receivers .workflow-org-tree details>details{margin-left:8px;padding-left:4px}
 .workflow-submit-form .workflow-submit-receivers .workflow-org-users{padding-left:13px}
 html body #modal-root .workflow-submit-form .workflow-submit-receivers .workflow-org-tree :is(summary,[data-wf-org-user]){
  min-height:26px;line-height:20px;padding:2px 1px;font-size:12px!important;
 }
 .workflow-submit-form .workflow-submit-receivers .workflow-org-tree summary>label{gap:4px;vertical-align:middle}
 .workflow-submit-form .workflow-submit-receivers .workflow-org-tree summary>small{display:inline;margin-left:4px;line-height:1.2;font-size:10px}
 .workflow-submit-form .workflow-submit-receivers [data-wf-org-user]{gap:4px}
 .workflow-submit-form .workflow-submit-receivers .person-avatar{width:18px;height:18px;min-width:18px}
 .workflow-submit-form .workflow-submit-receivers .workflow-org-tree input[type=checkbox]{width:14px;height:14px;min-height:14px;margin:0 2px}
 .workflow-submit-form .workflow-submit-receivers .workflow-receiver-empty{margin:0;padding:3px 1px;font-size:11px}
}


/* workflow-settings-compact.css */
/* Keep field actions visible while the field rows alone scroll. */
.workflow-settings-modal:has(#workflow-settings-form):not(.maximized){width:min(1280px,calc(100vw - 28px));max-width:calc(100vw - 28px);height:min(84dvh,780px);max-height:calc(100dvh - 24px)}
.workflow-settings-modal:has(#workflow-settings-form)>.modal-body{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding:10px 12px 0}
.workflow-settings-modal .workflow-settings-tabs{flex:none;margin:0 0 6px;padding-bottom:6px}
.workflow-settings-modal #workflow-settings-form{flex:1;min-height:0;overflow:auto}
.workflow-settings-modal #workflow-settings-form:has(.workflow-settings-scroll,.workflow-grants-scroll){display:flex;flex-direction:column;overflow:hidden}
.workflow-settings-modal #workflow-settings-form>.workflow-help{flex:none;max-height:64px;overflow:auto;font-size:11px;line-height:1.5;padding:6px 8px;margin:0 0 8px}
.workflow-settings-modal #workflow-settings-form>:is(.workflow-settings-scroll,.workflow-grants-scroll){flex:1 1 0;min-height:80px;max-height:none;overflow:auto;overscroll-behavior:contain}
.workflow-settings-modal #workflow-settings-form>.modal-footer{position:sticky;bottom:0;z-index:4;flex:none;min-height:46px;margin:0;padding:8px 0;gap:7px;background:var(--crm-surface,#fff);border-top:1px solid var(--crm-border,#d4e0d8);box-shadow:0 -3px 8px #203c2a0b}
.workflow-settings-modal #workflow-settings-form>.modal-footer .button{min-height:31px;padding:5px 10px;font-size:12px}
.workflow-settings-modal .workflow-settings-table{font-size:12px}
.workflow-settings-modal .workflow-settings-table :is(th,td){padding:4px 5px!important;vertical-align:middle}
.workflow-settings-modal .workflow-settings-table thead th{position:sticky;top:0;z-index:2;white-space:nowrap;box-shadow:0 1px var(--crm-border,#d4e0d8)}
.workflow-settings-modal .workflow-settings-table .workflow-field-id{min-width:90px;max-width:140px;font-size:10px;overflow-wrap:anywhere;line-height:1.3}
.workflow-settings-modal .workflow-field-id small{display:block;font-size:9px;margin-top:2px;color:var(--crm-muted,#526a60)}
.workflow-settings-modal .workflow-settings-table input:not([type=checkbox]):not([type=color]),.workflow-settings-modal .workflow-settings-table select{min-height:29px;min-width:76px;font-size:12px;padding:4px 5px}
.workflow-settings-modal .workflow-settings-table input[name=label]{min-width:125px}
.workflow-settings-modal .workflow-settings-table .workflow-options{min-width:110px;font-size:11px}
.workflow-settings-modal .workflow-options textarea[name=options]{width:125px;min-width:110px;height:30px;min-height:30px;max-height:120px;padding:4px 5px;font-size:12px;resize:vertical}
.workflow-settings-modal .workflow-options textarea[name=options]:focus{height:72px}
.workflow-settings-modal [data-wf-field-row]:not(:has(select[name=type] option[value=select]:checked)) textarea[name=options]{display:none}
.workflow-settings-modal [data-wf-field-row]:not(:has(select[name=type] option[value=select]:checked)):not(:has(select[name=type] option[value=formula]:checked)) .workflow-options:after{content:'—';color:var(--crm-muted,#526a60)}
.workflow-settings-modal .workflow-settings-table :is(.workflow-list-visible,.workflow-field-color>label){min-height:18px;font-size:11px;gap:4px}
.workflow-settings-modal .workflow-field-color{min-width:100px}
.workflow-settings-modal .workflow-field-color>div{display:flex;align-items:center;gap:3px}
.workflow-settings-modal .workflow-settings-table .workflow-field-color input[type=color]{width:30px!important;min-width:30px!important;height:23px;min-height:23px;padding:1px}
.workflow-settings-modal .workflow-settings-table .workflow-field-color .button{min-height:23px;padding:2px 5px;font-size:10px}
.workflow-settings-modal .workflow-settings-table [data-wf-field-move]{min-height:27px;padding:2px 5px}
@media(max-width:760px){
 .workflow-settings-modal:has(#workflow-settings-form):not(.maximized){height:calc(var(--mobile-viewport-height,100dvh) - 16px);max-height:calc(var(--mobile-viewport-height,100dvh) - 16px);width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
 .workflow-settings-modal:has(#workflow-settings-form)>.modal-body{padding:8px 8px 0}
 .workflow-settings-modal #workflow-settings-form>.workflow-help{max-height:56px;font-size:10px}
 .workflow-settings-modal #workflow-settings-form>.modal-footer{min-height:49px;padding:7px 0}
 .workflow-settings-modal #workflow-settings-form>.modal-footer .button{min-height:35px;font-size:12px}
 .workflow-settings-modal .workflow-settings-table :is(input:not([type=checkbox]):not([type=color]),select){min-height:34px}
}


/* workflow-field-settings.css */
.workflow-field-settings{min-width:0}.workflow-fields-grid{display:grid!important;grid-template-columns:minmax(0,2.2fr) minmax(220px,1fr);gap:12px;align-items:start}.workflow-field-list,.workflow-field-options{min-width:0;padding:12px!important}.workflow-field-list .panel-head{position:sticky;top:0;z-index:2;background:var(--crm-surface,#fff);padding-bottom:9px;margin-bottom:0}.workflow-field-list .panel-head small{font-size:11px;font-weight:400;color:var(--crm-muted)}.workflow-field-list>.table-wrap{max-height:calc(100dvh - 225px);overflow:auto;margin:0}.workflow-field-list table{font-size:12px;width:100%}.workflow-field-list :is(th,td){padding:6px 8px!important;white-space:nowrap;height:35px}.workflow-field-list thead th{position:sticky;top:0;z-index:1;background:var(--crm-soft,#eef5f1)}.workflow-field-list .button.small{font-size:11px;min-height:25px;padding:3px 6px}.workflow-field-list :is(input[type=checkbox]){width:15px;height:15px;min-height:15px}.workflow-field-list .link-button{font-size:12px;white-space:normal;max-width:180px;text-align:left}.workflow-field-inactive,.workflow-field-system{font-size:10px;margin-left:5px;color:var(--crm-muted)}.workflow-field-options .empty{padding:16px 5px;min-height:0;font-size:12px}.workflow-field-option-list{padding-left:23px;max-height:230px;overflow:auto;font-size:12px;line-height:1.7}.workflow-field-summary{display:grid;grid-template-columns:80px 1fr;font-size:12px;gap:7px;margin:16px 0 12px;padding-top:12px;border-top:1px solid var(--crm-border)}.workflow-field-summary :is(dt,dd){margin:0}.workflow-field-summary dt{color:var(--crm-muted)}.workflow-field-order{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px}.workflow-field-editor:not(.maximized){width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.workflow-field-editor>.modal-body{overflow:hidden;min-height:0;display:flex;flex-direction:column;padding:12px 14px 0}.workflow-field-editor #workflow-field-form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 115px)}.workflow-field-editor-scroll{overflow:auto;min-height:0;padding-right:4px}.workflow-field-editor .form-field{margin-bottom:11px;font-size:12px;gap:5px}.workflow-field-editor :is(input:not([type=checkbox]):not([type=color]),select,textarea){min-height:32px;padding:6px 8px;font-size:13px}.workflow-field-editor [hidden]{display:none!important}.workflow-field-editor-switches{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin-bottom:12px}.workflow-field-editor-switches label,.workflow-field-editor-color label{display:flex;align-items:center;gap:6px}.workflow-field-editor-color{display:flex;gap:8px;align-items:center;font-size:12px;margin-bottom:12px}.workflow-field-editor-color input[type=color]{width:34px;height:27px;min-height:27px;padding:1px}.workflow-field-editor #workflow-field-form>.modal-footer{flex:none;position:sticky;bottom:0;z-index:3;margin:0;padding:10px 0;background:var(--crm-surface,#fff);border-top:1px solid var(--crm-border);display:flex;gap:8px}.workflow-field-editor-error{font-size:12px;color:var(--danger,#b42e41);padding-bottom:8px}.workflow-field-editor .tiny{font-size:11px;line-height:1.5}
@media(max-width:1000px){.workflow-fields-grid{grid-template-columns:minmax(0,1fr)!important}.workflow-field-list>.table-wrap{max-height:55dvh}.workflow-field-options{max-width:100%}}@media(max-width:760px){.workflow-field-list,.workflow-field-options{padding:9px!important}.workflow-field-list :is(th,td){padding:5px 6px!important}.workflow-field-editor-switches{grid-template-columns:1fr}.workflow-field-editor:not(.maximized){width:calc(100vw - 16px);max-height:calc(var(--mobile-viewport-height,100dvh) - 16px)}.workflow-field-editor #workflow-field-form{max-height:calc(var(--mobile-viewport-height,100dvh) - 105px)}.workflow-field-editor #workflow-field-form>.modal-footer .button{min-height:36px}}

.workflow-field-categories{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:0 0 8px}.workflow-field-categories [data-wfs-refresh]{margin-left:auto}.workflow-field-settings .workflow-fields-grid[hidden]{display:none}.workflow-catalog-settings{min-width:0;border:1px solid var(--crm-border,#d2dfd6);background:var(--crm-surface,#fff);border-radius:8px;padding:10px}.workflow-catalog-settings .table-wrap{max-height:calc(100dvh - 260px);overflow:auto}.workflow-catalog-flags{display:flex;gap:16px;margin:8px 0}.workflow-catalog-flags label{display:flex;align-items:center;gap:5px;font-size:12px}.workflow-catalog-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:middle}.workflow-field-settings .panel-head{min-height:36px}.workflow-field-settings .panel-head h2{font-size:14px}.workflow-field-settings :is(input[type=checkbox]){width:14px;height:14px}.workflow-field-settings .page-title{display:none}

.workflow-field-settings>.workflow-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;margin:-1px!important;padding:0!important;border:0!important}
.workflow-risk-option{display:inline-block;max-width:100%;padding:2px 8px;border:1px solid color-mix(in srgb,var(--workflow-widget-color,var(--crm-accent,#39836c)),transparent 55%);border-radius:5px;background:color-mix(in srgb,var(--workflow-widget-color,var(--crm-accent,#39836c)),transparent 92%);color:var(--workflow-widget-color,var(--crm-ink,#244235));font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.workflow-risk-option-list li{padding:2px 0}.workflow-risk-editor{margin:0 0 11px}.workflow-risk-editor>strong{display:block;font-size:12px;margin-bottom:4px}.workflow-risk-editor .tiny{margin:0 0 8px}.workflow-risk-editor-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:5px 0;border-bottom:1px solid var(--crm-border,#d0ddd4);font-size:12px}.workflow-risk-editor-row>input[type=text]{flex:1 1 130px;min-width:90px}.workflow-risk-editor-row>label{display:inline-flex;gap:4px;align-items:center}.workflow-risk-editor-row input[type=color]{width:34px;height:29px;min-height:29px;padding:2px}.workflow-risk-editor-row input[type=checkbox]{width:14px;height:14px;min-height:14px}.workflow-risk-editor>[data-wfs-risk-add]{margin-top:8px}


/* department-tree-ui.css */
.department-picker,.department-picker *{box-sizing:border-box}
.department-picker.department-picker{min-width:0;max-width:100%;width:100%;margin:0;padding:0;border:1px solid var(--crm-border,#cddbd1);border-radius:5px;background:var(--crm-surface,#fff);color:var(--crm-ink,#213b30);font-size:12px;text-align:left}
.department-picker>[data-department-summary-control]{display:flex;align-items:center;gap:6px;min-height:30px;margin:0;padding:5px 8px;cursor:pointer;list-style:none;line-height:18px;font-weight:400}
.department-picker>[data-department-summary-control]::-webkit-details-marker{display:none}
.department-picker>[data-department-summary-control]:after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0 auto;flex:none}
.department-picker[open]>[data-department-summary-control]:after{transform:rotate(225deg);margin-top:3px}
.department-picker [data-department-summary]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.department-picker[data-department-disabled]{opacity:.65}.department-picker[data-department-disabled]>summary{cursor:default}
.department-picker>[data-department-summary-control]:focus-visible,.department-picker :is(input,button):focus-visible{outline:2px solid var(--crm-accent,#2163a2);outline-offset:2px}
.department-picker-panel{padding:7px;border-top:1px solid var(--crm-border,#cddbd1);min-width:0}
.department-picker [data-department-search]{width:100%;min-width:0;min-height:30px;margin:0 0 5px;padding:5px 7px;border:1px solid var(--crm-border,#cddbd1);border-radius:4px;background:var(--crm-surface,#fff);color:var(--crm-ink,#213b30);font:inherit}
.department-picker-toolbar{display:flex;align-items:center;gap:5px;margin-bottom:5px;flex-wrap:wrap}.department-picker-toolbar button{min-height:26px;padding:3px 7px;border:1px solid var(--crm-border,#cddbd1);border-radius:4px;background:var(--crm-soft,#edf5ef);color:var(--crm-ink,#213b30);font:inherit;font-size:11px;cursor:pointer}
.department-tree-options{max-height:260px;overflow:auto;overscroll-behavior:contain;min-width:0}
.department-tree-options .department-tree-branch{margin:0;border:0;padding:0;background:transparent}
.department-picker .department-tree-branch>summary{display:flex;align-items:center;gap:4px;list-style:none;cursor:pointer;margin:0;padding:0;font-weight:400}
.department-tree-branch>summary::-webkit-details-marker{display:none}
.department-tree-branch>summary:before{content:'';flex:none;width:5px;height:5px;margin:0 3px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg)}
.department-tree-branch[open]>summary:before{transform:rotate(45deg);margin-top:-3px}
.department-tree-children{margin-left:9px;padding-left:7px;border-left:1px solid var(--crm-border,#dce6df)}
.department-tree-options [data-department-choice-label]{display:flex;align-items:center;gap:6px;flex:1;min-width:0;margin:0;padding:5px 4px;min-height:30px;font-size:12px;line-height:18px;font-weight:400;cursor:pointer}
.department-tree-options [data-department-choice-label]>span{min-width:0;overflow-wrap:anywhere}
.department-tree-options [data-department-context-only]{cursor:default;color:var(--crm-muted,#53685e)}.department-tree-options [data-department-context-only]>small{margin-left:auto;font-size:10px;white-space:nowrap;font-weight:400}
.department-tree-options [data-department-choice]{width:14px;height:14px;min-width:14px;min-height:14px;padding:0;margin:0;flex:none;accent-color:var(--crm-accent,#236b4b)}
.department-tree-options .department-tree-leaf{padding-left:13px}.department-tree-options [data-department-root]{border-bottom:1px solid var(--crm-border,#dce6df);margin-bottom:3px}
.department-tree-retained,.department-tree-empty{margin:5px 2px;font-size:11px;line-height:1.5;color:var(--crm-muted,#53685e)}
.department-tree-retained-item{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--crm-muted,#53685e)}
.department-tree-retained-item [data-department-retained-remove]{margin:3px 0;padding:3px 5px;min-height:26px;border:1px solid var(--crm-border,#cddbd1);border-radius:4px;background:var(--crm-surface,#fff);color:var(--crm-ink,#213b30);font:inherit;cursor:pointer}
.department-picker .department-picker-done{display:block;margin:6px 0 0 auto;padding:4px 10px;min-height:28px;border:1px solid var(--crm-border,#cddbd1);border-radius:4px;background:var(--crm-soft,#edf5ef);color:var(--crm-ink,#213b30);font:inherit;cursor:pointer}
.department-picker [hidden]{display:none!important}
@media(max-width:760px){.department-picker>[data-department-summary-control]{min-height:36px}.department-picker [data-department-search]{font-size:16px;min-height:36px}.department-tree-options{max-height:min(280px,44dvh)}.department-tree-options [data-department-choice-label]{min-height:36px;font-size:13px}.department-tree-options [data-department-choice]{width:16px;height:16px;min-width:16px;min-height:16px}}


/* customer-entry.css */
/* Manual creation only; customer detail and its inline editor keep their layout. */
.modal.customer-entry-modal{width:1020px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 36px);color:var(--crm-ink,#253b34);background:var(--crm-surface,#fff)}
.customer-entry-modal .modal-body{padding:14px 16px 0;min-height:0;overflow:auto;background:var(--crm-surface,#fff)}
.customer-entry-form{min-width:0;margin:0}
.customer-entry-form fieldset{min-width:0;padding:0;margin:0;border:0}
.customer-entry-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:16px;align-items:stretch}
.customer-entry-form .customer-entry-layout.customer-entry-no-sidebar{grid-template-columns:minmax(0,1fr)}
.entry-custom-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.entry-custom-tools input[type=search]{min-width:0;width:100%;flex:1 1 150px;max-width:420px}
.entry-custom-tools .button{margin-left:auto}
.entry-custom-settings .interaction-choice-row{gap:10px}
.entry-custom-settings .interaction-choice-row>label{flex:1;min-width:0;overflow-wrap:anywhere}
.entry-custom-field-type{font-size:11px;color:var(--crm-muted,#66786f);white-space:nowrap}
.entry-custom-required{font-size:11px;color:var(--crm-accent,#247c62);white-space:nowrap}
.customer-entry-layout h3{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 0 9px;font-size:13px;line-height:1.5;color:var(--crm-ink,#253b34)}
.customer-entry-layout h3>span{font-size:10px;font-weight:400;color:var(--crm-muted,#66786f)}
.customer-entry-main{min-width:0}
.customer-entry-rows{border:1px solid var(--crm-border,#d4e0d8);border-radius:7px;overflow:hidden;box-shadow:0 1px 3px #18382808}
.customer-entry-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0;margin:0;min-width:0;align-items:stretch;border-bottom:1px solid var(--crm-border,#d4e0d8);font-size:12px}
.customer-entry-row:last-child{border-bottom:0}
.customer-entry-label{display:flex;align-items:center;gap:4px;min-width:0;padding:8px 10px;background:var(--crm-soft,#f1f5f3);font-size:12px;color:var(--crm-ink,#253b34);overflow-wrap:anywhere}
.customer-entry-control{min-width:0;display:block;padding:5px 8px;background:var(--crm-surface,#fff)}
.customer-entry-control>input,.customer-entry-control>select,.customer-entry-control>textarea{display:block;width:100%;min-width:0;min-height:30px;padding:5px 8px;font-size:12px;color:var(--crm-ink,#253b34);border:1px solid var(--crm-border,#d4e0d8);border-radius:4px;background:var(--crm-surface,#fff);box-shadow:inset 0 1px 2px #182c2406}
.customer-entry-control>textarea{min-height:58px;resize:vertical}
.customer-entry-control>[aria-invalid=true]{border-color:#bd4b40;outline-color:#bd4b40}
.customer-entry-form .customer-entry-phone{display:flex;align-items:stretch;gap:4px;min-width:0}
.customer-entry-form .customer-entry-phone>input,.customer-entry-form .customer-entry-phone-none{flex:1;min-width:0;min-height:30px;padding:5px 8px;font-size:12px;color:var(--crm-ink,#253b34);border:1px solid var(--crm-border,#d4e0d8);border-radius:4px;background:var(--crm-surface,#fff)}
.customer-entry-form .customer-entry-phone>input[hidden]{display:none!important}
.customer-entry-form .customer-entry-phone>input[aria-invalid=true]{border-color:#bd4b40;outline-color:#bd4b40}
.customer-entry-phone-none{display:flex;align-items:center}
.customer-entry-form .customer-entry-phone-picker{flex:none;align-self:stretch;margin:0!important;padding:0!important;border:0!important;background:none!important}
.customer-entry-form .customer-entry-phone :is([data-entry-phone-toggle],[data-entry-phone-clear]){display:grid;place-items:center;flex:none;min-width:30px;min-height:30px;margin:0!important;padding:0 7px!important;border:1px solid var(--crm-border,#d4e0d8);border-radius:4px;background:var(--crm-soft,#f1f5f3);color:var(--crm-ink,#253b34);font-size:14px;line-height:1;box-shadow:none;cursor:pointer;list-style:none}
.customer-entry-form [data-entry-phone-toggle]::after,.customer-entry-form [data-entry-phone-toggle]::-webkit-details-marker{display:none}
.customer-entry-form .customer-entry-phone-options.organization-floating-panel{padding:4px!important}
.customer-entry-form [data-entry-phone-none]{width:100%;min-height:28px;margin:0;padding:4px 8px;border:0;border-radius:3px;background:var(--crm-soft,#f1f5f3);color:var(--crm-ink,#253b34);font-size:12px;text-align:left;cursor:pointer}
.customer-entry-form [data-entry-phone-none]:hover{background:var(--crm-selected,#e0efe5)}
.customer-entry-tags{min-width:0;border-left:1px solid var(--crm-border,#d4e0d8);padding:0 0 12px 14px;background:var(--crm-surface,#fff)}
.customer-entry-tags input[type=search]{width:100%;min-width:0;min-height:30px;padding:5px 7px;font-size:12px;background:var(--crm-surface,#fff)}
.customer-entry-tag-list{display:flex;align-content:flex-start;gap:5px;flex-wrap:wrap;max-height:400px;overflow:auto;margin-top:8px;padding:1px}
.customer-entry-tag-option{display:flex;align-items:center;gap:5px;min-width:0;min-height:29px;border:1px solid var(--crm-border,#d4e0d8);border-radius:5px;padding:3px 6px;background:var(--crm-surface,#fff);cursor:pointer}
.customer-entry-tag-option input{margin:0;flex:none}
.customer-entry-tag-option .tag{font-size:11px;margin:0;max-width:100%;overflow-wrap:anywhere}
.customer-entry-tag-option:has(input:checked){background:var(--crm-selected,#e0efe5);border-color:var(--crm-accent,#247c62)}
.customer-entry-routing{border-top:1px solid var(--crm-border,#d4e0d8)!important;margin-top:14px!important}
.customer-entry-destination{display:flex;align-items:center;gap:13px;flex-wrap:wrap;min-width:0;padding:11px 0 8px;font-size:12px}
.customer-entry-destination>label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;min-height:28px;cursor:pointer}
.customer-entry-destination>label:has(input:disabled){opacity:.5;cursor:default}
.customer-entry-destination input{margin:0;min-height:0;box-shadow:none}
.customer-entry-summary{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere;color:var(--crm-muted,#66786f);margin-left:4px}
.customer-entry-colleague{margin-top:10px;border:1px solid var(--crm-border,#d4e0d8);border-radius:7px;padding:9px;background:var(--crm-soft,#f1f5f3)}
.customer-entry-colleague-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:12px}
.customer-entry-colleague-head input{min-width:0;width:200px;max-width:65%;min-height:30px;padding:5px 8px;font-size:12px;background:var(--crm-surface,#fff)}
.customer-entry-colleague .tree-picker{max-height:210px;overflow:auto;border:1px solid var(--crm-border,#d4e0d8);padding:6px;background:var(--crm-surface,#fff);border-radius:5px}
.customer-entry-colleague .checkbox-row{gap:6px;min-height:29px;padding:3px 5px;font-size:12px}
.customer-entry-colleague .person-option-name{font-size:12px;color:var(--crm-ink,#253b34)}
.customer-entry-colleague summary{font-size:12px}
.customer-entry-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:0;margin:0 -16px;padding:10px 16px;background:var(--crm-surface,#fff);border-top:1px solid var(--crm-border,#d4e0d8);box-shadow:0 -3px 8px #223d2e07;z-index:2}
.customer-entry-status{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0;color:var(--crm-muted,#66786f);font-size:10px;line-height:1.6}
.customer-entry-status .button{font-size:10px;min-height:25px;padding:3px 5px}
.customer-entry-actions{display:flex;gap:7px;flex:none}
.customer-entry-actions .button{min-height:32px;padding:6px 14px;font-size:12px}
.customer-entry-error{padding:9px 11px;margin-bottom:10px;border:1px solid #c5796e;border-radius:6px;background:var(--crm-surface,#fff);color:#a73e33;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.customer-entry-form[aria-busy=true]{cursor:progress}
.customer-create-chooser,.customer-entry-popover,.customer-import-popover{max-width:calc(100dvw - 16px)}
.customer-create-chooser .customer-create-choices{gap:7px;padding:9px}
.customer-create-chooser .customer-create-choices .button{min-width:0;min-height:36px;padding:6px 8px;white-space:normal}
.customer-entry-popover .customer-entry-loading{padding:12px}
.customer-entry-popover>header{cursor:move;touch-action:none;user-select:none}
.customer-entry-popover .customer-entry-scroll{
  min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;
  padding:11px 12px 0;
}
.customer-entry-popover .customer-entry-bottom{position:static;flex:none;margin:0;padding-inline:12px}
.customer-entry-popover .customer-entry-error:not([hidden]){margin:6px 10px 0;border-radius:5px}
.customer-entry-popover .customer-entry-error[hidden]{display:none}
.org-form-popover.customer-entry-success,
#notice-root .notice-dialog[data-notification-tone=success]{
  --entry-feedback-border:#75af91;--entry-feedback-header:#c5e8d4;--entry-feedback-ink:#164d35;
  background:#e9f7ef;border-color:var(--entry-feedback-border);
}
.org-form-popover.customer-entry-duplicate,
#notice-root .notice-dialog[data-notification-tone=duplicate]{
  --entry-feedback-border:#c08a43;--entry-feedback-header:#ffdda6;--entry-feedback-ink:#6d390b;
  background:#fff2db;border-color:var(--entry-feedback-border);
}
.org-form-popover:is(.customer-entry-success,.customer-entry-duplicate)>header{
  color:var(--entry-feedback-ink);background:var(--entry-feedback-header);border-color:var(--entry-feedback-border);
}
#notice-root .notice-dialog[data-notification-tone]{
  max-height:calc(var(--mobile-viewport-height,100dvh) - 32px);overflow:auto;
}
#notice-root .notice-dialog[data-notification-tone] .notice-symbol{background:var(--entry-feedback-header)}
#notice-root .notice-backdrop[data-quiet-arrival]{
  -webkit-backdrop-filter:none;backdrop-filter:none;
}

.notification-customer-details{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;margin:0 0 12px;padding:9px 12px;
  text-align:left;background:var(--entry-feedback-header);color:var(--entry-feedback-ink);border-radius:7px;
}
.notification-customer-details dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.customer-entry-feedback{overflow:auto;overscroll-behavior:contain;padding:10px 12px}
.customer-entry-feedback>p{margin:0 0 8px;line-height:1.5;overflow-wrap:anywhere}
.customer-entry-feedback>p:empty{display:none}
.customer-entry-feedback dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;margin:0 0 8px}
.customer-entry-feedback dt{color:var(--crm-muted,#66786f)}
.customer-entry-feedback dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.customer-entry-feedback-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.customer-import-popover .customer-import-workspace{
  min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:11px 12px;
}
.customer-import-popover .import-steps{flex-wrap:wrap;gap:7px 14px;margin-bottom:9px}
.customer-import-popover .import-dropzone{min-height:86px;padding:9px;text-align:center}
.customer-import-popover .settings-save-bar{flex-wrap:wrap;margin-top:9px}
.customer-import-popover .import-file-summary strong{min-width:0;overflow-wrap:anywhere}
.customer-import-popover .table-wrap{max-height:min(300px,42dvh);margin-bottom:8px}
.customer-import-popover .table-wrap :is(th,td){white-space:normal;overflow-wrap:anywhere;padding:6px}
.customer-import-popover #import-mapping table{table-layout:fixed}
.customer-import-popover #import-mapping th:nth-child(2){width:42%}
.customer-import-popover #import-mapping select{width:100%;min-width:0}
.customer-import-popover #import-mapping .tiny{margin:8px 0}
.workflow-new-profile{margin-bottom:14px}
.workflow-new-profile:empty{display:none}
.workflow-new-full-width{grid-template-columns:minmax(0,1fr)}
.workflow-new-profile .customer-entry-rows{overflow:visible}
.workflow-new-profile .customer-entry-row:first-child .customer-entry-label{border-top-left-radius:6px}
.workflow-new-profile .customer-entry-row:last-child .customer-entry-label{border-bottom-left-radius:6px}
.workflow-new-profile .customer-entry-control>details>summary{min-height:30px}
.workflow-new-profile .customer-entry-tags .choice-dropdown{width:100%}
.workflow-new-profile .workflow-new-loading{padding:12px 0;color:var(--crm-muted,#66786f)}
@media(max-width:760px){
 .modal.customer-entry-modal{width:100%;max-width:100%;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px)}
 .customer-entry-modal .modal-body{padding:10px 10px 0}
 .customer-entry-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .customer-entry-layout h3{margin-bottom:7px;font-size:13px}
 .customer-entry-row{grid-template-columns:88px minmax(0,1fr)}
 .customer-entry-label{padding:8px;font-size:12px}
 .customer-entry-control{padding:4px 6px}
 .customer-entry-control>input,.customer-entry-control>select,.customer-entry-control>textarea{min-height:38px;font-size:16px;padding:7px 8px}
 html body .customer-entry-form .customer-entry-phone>input{min-height:38px;font-size:16px;padding:7px 8px}
 .customer-entry-form .customer-entry-phone-none,.customer-entry-form .customer-entry-phone :is([data-entry-phone-toggle],[data-entry-phone-clear]){min-height:38px;min-width:36px}
 .customer-entry-form [data-entry-phone-none]{min-height:38px;font-size:13px}
 html body .customer-entry-form .mobile-native-select-proxy{min-height:38px;padding:6px 8px;font-size:14px;border-radius:4px}
 .customer-entry-tags{padding:10px 0 0;border-left:0;border-top:1px solid var(--crm-border,#d4e0d8)}
 .customer-entry-tags input[type=search],.customer-entry-colleague-head input{min-height:38px;font-size:16px}
 .customer-entry-tag-list{max-height:145px}
 .customer-entry-tag-option{min-height:35px;padding:5px 7px}
 .customer-entry-tag-option .tag{font-size:12px}
 .customer-entry-routing{margin-top:11px!important}
 .customer-entry-destination{gap:12px;padding:8px 0}
 .customer-entry-destination>label{min-height:38px;font-size:13px}
 .customer-entry-destination input,.customer-entry-tag-option input{width:16px;height:16px}
 .customer-entry-summary{flex-basis:100%;margin:0}
 .customer-entry-colleague{padding:7px}
 .customer-entry-colleague .checkbox-row{min-height:38px;font-size:13px}
 .customer-entry-colleague .tree-picker{max-height:240px}
 .customer-entry-colleague-head{gap:7px}
 .customer-entry-bottom{margin:0 -10px;padding:9px 10px;align-items:flex-end;gap:8px}
 .customer-entry-status{font-size:10px;max-width:52%}
 .customer-entry-status .button{min-height:30px}
 .customer-entry-actions{gap:5px}
 .customer-entry-actions .button{font-size:12px;min-height:40px;padding:7px 10px}
 .customer-entry-popover .customer-entry-scroll{padding:8px 8px 0}
 .customer-entry-popover .customer-entry-bottom{padding-inline:8px}
 .customer-import-popover .customer-import-workspace{padding:8px}
 .customer-import-popover #import-mapping select{font-size:16px;padding-inline:4px}
}
@media(min-width:761px){
 body:not(:has(#main[data-ready-route="organization"],#main[data-ready-route="hr"])) .customer-entry-colleague [data-entry-owner-search]{display:none!important}
}


/* assignment-actions.css */
/* Assignment is a distinct action in every theme. Keep all existing sizing,
   layout, permissions and click behavior; ordinary filters/share stay unchanged. */
:is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]){
  background:linear-gradient(155deg,#326b9a,#244e79);
  color:#fff;
  border-color:#204970;
  text-shadow:0 1px 1px #15334e33;
  box-shadow:inset 0 1px 0 #ffffff40,0 2px 0 #193c60,0 4px 9px #163b6426;
}
@media(hover:hover){
  :is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]):not(:disabled):not([aria-disabled="true"]):hover{
    background:linear-gradient(155deg,#2d618d,#1d4165);
    color:#fff;
    border-color:#173a5e;
    box-shadow:inset 0 1px 0 #ffffff52,0 2px 0 #153653,0 5px 11px #163b6430;
  }
}
:is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]):not(:disabled):not([aria-disabled="true"]):active{
  background:linear-gradient(155deg,#244f78,#193c60);
  color:#fff;
  box-shadow:inset 0 2px 4px #102e4b55,0 1px 0 #193c60;
}
:is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]):focus-visible{
  outline:3px solid #dfa945;
  outline-offset:3px;
  box-shadow:inset 0 1px 0 #ffffff40,0 0 0 2px var(--crm-surface,#fff),0 2px 0 #193c60;
}
:is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]):is(:disabled,[aria-disabled="true"]){
  background:#50677b;
  color:#fff;
  border-color:#4b6275;
  opacity:1;
  text-shadow:none;
  box-shadow:inset 0 1px 0 #ffffff24;
  cursor:not-allowed;
}
@media(forced-colors:active){
  :is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]){
    background:ButtonFace;color:ButtonText;border-color:ButtonText;text-shadow:none;box-shadow:none;
  }
  :is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]):focus-visible{outline-color:Highlight}
  :is(button[data-action="bulk-assign"],button[data-action="assign-detail"],#assign-form button[type="submit"],#assign-form button:not([type]),.workflow-assignment-button,#workflow-assignment-form button[type="submit"]):is(:disabled,[aria-disabled="true"]){color:GrayText;border-color:GrayText}
}


/* round8-layout.css */
/* Compact reading layouts, with controls that stay reachable when collapsed. */
.dashboard-home .home-meetings.panel{height:139px;min-height:139px;max-height:139px;display:flex;flex-direction:column;background:linear-gradient(120deg,color-mix(in srgb,var(--crm-accent) 10%,var(--crm-surface)),color-mix(in srgb,#9d83bf 10%,var(--crm-surface)));border-top:3px solid color-mix(in srgb,#9d83bf 65%,var(--crm-accent))}
.dashboard-home .home-meetings #dashboard-meetings{display:block;overflow:auto;min-height:0;flex:1}.dashboard-home .home-meeting>summary{min-height:25px;padding:3px 0}.dashboard-home .home-meeting>p{padding:7px 10px;margin:0 0 5px;white-space:pre-wrap;font-size:12px}.dashboard-home .home-meetings .empty{padding:7px 10px}
.home-meetings-pages{display:flex;align-items:center;gap:6px;flex:none;padding-top:3px;font-size:10px}.home-meetings-pages>span{margin-right:auto}.home-meetings-pages .button{min-height:24px;padding:3px 7px}
.home-panel-scope{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;color:var(--crm-muted)}.home-panel-scope select{width:auto;min-width:85px;padding:4px 6px;min-height:28px;font-size:11px}.home-section-head .home-panel-scope{margin-left:auto}.dashboard-home .home-month-shell>.home-month-scope{position:absolute;z-index:1;inset-block-start:1px;inset-inline-end:39px;height:var(--home-month-heading-height);max-width:calc(100% - 123px);display:flex;align-items:center}
.dashboard-home .home-month-shell>.home-month:not([open])+.home-month-scope{display:none}
.dashboard-home .home-month-scope .home-panel-scope{min-width:0;max-width:100%;flex-wrap:nowrap}
.dashboard-home .home-month-scope .home-panel-scope>label{display:flex;min-width:0;font-size:0}
.dashboard-home .home-month-scope .home-panel-scope select{min-width:0;max-width:100%;text-overflow:ellipsis}
.dashboard-home .home-month-scope .dashboard-organization-picker{flex:none}
.dashboard-home .home-month-body>.home-scope-status{margin:4px 0;overflow-wrap:anywhere}
.dashboard-home .home-month .home-month-metrics{display:block;padding-top:0}.dashboard-home .home-month .home-month-metrics>.home-month-row{display:flex;justify-content:space-between;align-items:center;min-height:33px;border:0;border-radius:0;border-bottom:1px solid var(--crm-border);background:transparent;box-shadow:none;padding:7px 2px}.dashboard-home .home-month .home-month-row dt{font-size:12px}.dashboard-home .home-month .home-month-row dt small{display:none}.dashboard-home .home-month .home-month-row dd{font-size:17px;line-height:1.1;margin:0}.dashboard-home .home-month-stock{display:flex;min-height:36px;gap:8px;align-items:center;margin:8px 0 0;padding:8px 10px}.dashboard-home .home-month-stock strong{font-size:18px}.dashboard-home .home-month-stock>span:last-child{margin-left:auto;font-size:10px}
.dashboard-home .home-priority{background:linear-gradient(120deg,var(--crm-surface),color-mix(in srgb,#dcac67 7%,var(--crm-surface)))}.dashboard-home .priority-list{max-height:275px;gap:0}.dashboard-home .priority-item{min-height:39px!important;border-radius:0!important;border-width:0 0 1px!important;border-color:var(--crm-border)!important;box-shadow:none!important;background:transparent!important;padding:6px 3px!important;display:flex;gap:8px}.dashboard-home .priority-item .avatar{width:25px;height:25px;font-size:11px}.dashboard-home .priority-item>div{display:flex;align-items:center;flex:1;gap:10px;min-width:0}.dashboard-home .priority-item strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.dashboard-home .priority-item small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-home .priority-item>.badge{font-size:10px;white-space:nowrap}
.filter-panel[data-compact-panel],.workflow-toolbar[data-compact-panel]{position:relative;padding-right:65px}.compact-panel-toggle{position:absolute;right:5px;top:5px;z-index:3;min-height:25px!important;padding:3px 6px!important;font-size:10px!important}.compact-panel-collapsed{min-height:32px!important;height:32px!important;margin-bottom:7px;padding-top:0!important;padding-bottom:0!important}.compact-panel-collapsed>:not(.compact-panel-toggle){display:none!important}.workflow-toolbar.compact-panel-collapsed+#workflow-grid-host .workflow-grid-formula{display:none!important}
.workflow-horizontal-scroll{display:flex;align-items:center;gap:5px;flex:0 0 24px;min-height:24px;padding:0 4px;background:var(--crm-soft);border-top:1px solid var(--crm-border);position:sticky;bottom:0;z-index:8}.workflow-horizontal-scroll input[type=range]{appearance:none;-webkit-appearance:none;flex:1;width:0;padding:0;border:0;border-radius:8px;height:12px;background:color-mix(in srgb,var(--crm-muted) 18%,var(--crm-surface));cursor:ew-resize;box-shadow:inset 0 1px 3px #0002}.workflow-horizontal-scroll input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:55px;height:12px;border:1px solid var(--crm-accent);border-radius:7px;background:color-mix(in srgb,var(--crm-accent) 65%,var(--crm-surface))}.workflow-horizontal-scroll button{padding:0;border:0;background:none;color:var(--crm-accent);font-size:22px;width:23px;height:23px;cursor:pointer}.workflow-horizontal-scroll :disabled{opacity:.35}
@media(max-width:760px){.dashboard-home .home-section-head{flex-wrap:wrap}.home-panel-scope{font-size:9px}.dashboard-home .priority-item>div{gap:4px;flex-wrap:wrap}.dashboard-home .priority-item small{font-size:9px}.dashboard-home .home-month .home-month-row dt{font-size:11px}.filter-panel[data-compact-panel],.workflow-toolbar[data-compact-panel]{padding-right:58px}}
.interaction-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.interaction-fields-scroll{overflow:auto;max-height:65dvh}.interaction-fields-table{width:100%;min-width:600px}.interaction-fields-table th,.interaction-fields-table td{padding:7px 9px;font-size:12px}.interaction-fields-table input:not([type=checkbox]),.interaction-fields-table select{min-height:31px;padding:5px 7px}.interaction-fields-table td:first-child{min-width:180px}.interaction-row-actions{display:flex;gap:4px;white-space:nowrap}.interaction-fields-table textarea{min-height:45px}.interaction-error{color:var(--crm-danger,#b94747)}.interaction-choice-row{display:flex;align-items:center;gap:8px;padding:7px 4px;border-bottom:1px solid var(--crm-border)}.interaction-choice-row>label{display:flex;align-items:center;gap:7px;flex:1}.entry-display-choices{max-height:65dvh;overflow:auto}
.handoff-recipient-settings{min-width:0}.handoff-recipient-settings>.tiny{margin:5px 0;line-height:1.6}.handoff-catalog-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}.handoff-catalog-tools>input{flex:1;min-width:min(210px,100%);max-width:420px;min-height:32px}.handoff-catalog-tools>span{font-size:11px;color:var(--crm-muted);white-space:nowrap}.handoff-field-recipients{display:block;font-size:10px;font-weight:400;color:var(--crm-muted);margin-top:3px;line-height:1.35}.handoff-field-options{display:block;max-width:190px;max-height:40px;overflow:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.handoff-unavailable-fields{padding:7px 9px;border:1px solid #dfb87e;border-radius:5px;background:color-mix(in srgb,#efac44 9%,var(--crm-surface));font-size:11px;line-height:1.6}.handoff-recipient-settings .interaction-fields-scroll{max-width:100%;max-height:58dvh;border:1px solid var(--crm-border);border-radius:5px}.handoff-recipient-settings .interaction-fields-table{min-width:650px}.handoff-recipient-settings .interaction-fields-table th{position:sticky;top:0;z-index:1;background:var(--crm-soft)}.handoff-recipient-settings .interaction-fields-table :is(th,td){padding:6px 8px}.handoff-recipient-settings .interaction-fields-table td:first-child{min-width:150px}.handoff-recipient-settings .interaction-fields-table td label{display:flex;align-items:center;gap:4px;white-space:nowrap}.handoff-recipient-settings .interaction-fields-table tr[hidden]{display:none!important}.handoff-recipient-settings .settings-save-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.handoff-catalog-empty{padding:10px}.handoff-recipient-settings .settings-save-bar .button{margin-left:auto}@media(max-width:560px){.handoff-catalog-tools>input{max-width:none;width:100%;flex-basis:100%}.handoff-recipient-settings .interaction-fields-scroll{max-height:52dvh}.handoff-recipient-settings .settings-save-bar>.tiny{font-size:10px}}
.customer-entry-sidebar{overflow:auto;max-height:calc(82dvh - 170px)}.customer-entry-side-section{padding:0 0 16px;margin-bottom:12px;border-bottom:1px solid var(--crm-border)}.customer-entry-side-section:last-child{border-bottom:0}.customer-entry-side-section>h3{margin-bottom:8px}.customer-entry-stars{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.customer-entry-stars>button[data-entry-star]{border:0;background:transparent;color:var(--crm-border);font-size:31px;padding:0;line-height:1.3;cursor:pointer}.customer-entry-stars>button[data-entry-star].is-selected{color:var(--entry-star-color)}.customer-entry-stars>[data-entry-star-clear]{border:0;background:transparent;color:var(--crm-muted);font-size:10px;cursor:pointer}.customer-entry-layout:has(>.customer-entry-sidebar[hidden]){grid-template-columns:1fr}

/* Short handles keep the complete toolbar width available for real controls. */
.filter-panel[data-compact-panel],.workflow-toolbar[data-compact-panel]{padding-right:12px;padding-bottom:14px;margin-bottom:10px}
.compact-panel-toggle{top:auto;right:auto;bottom:-9px;left:50%;transform:translateX(-50%);width:34px;height:18px;min-height:18px!important;padding:0!important;line-height:14px;font-size:15px!important;border:1px solid var(--crm-border)!important;background:var(--crm-surface)!important;border-radius:8px;z-index:9;box-shadow:none!important}
.compact-panel-toggle:focus-visible{outline:2px solid var(--crm-accent);outline-offset:2px}
.compact-panel-collapsed{height:12px!important;min-height:12px!important;margin-bottom:12px;padding:0!important}
/* Ratings follow surrounding type instead of stretching the customer row. */
.numbered-stars{gap:1px;line-height:1;font-size:inherit}
.numbered-star,.editable-stars .numbered-star,.star-color-options .numbered-star{width:1.1em;height:1.2em;min-height:0;min-width:0;font-size:inherit}
.numbered-star>span,.editable-stars .numbered-star>span,.star-color-options .numbered-star>span{font-size:1.25em;line-height:1}
.numbered-star>b,.editable-stars .numbered-star>b{font-size:.42em;padding-top:.15em}
.editable-stars .numbered-star:hover{transform:none;filter:brightness(1.1)}
.customer-entry-stars>button[data-entry-star]{font-size:1em;min-height:24px;min-width:20px;line-height:1}
.detail-star-field{gap:7px}.detail-star-field #detail-star-control{font-size:13px}
.star-current-label{font-size:10px;margin-left:5px}.star-color-options{justify-content:flex-start;gap:14px}
/* The dialog shell never scrolls independently of its body. Form footers stay
   inside the actual body padding instead of inheriting desktop full-bleed
   negative margins after compact/mobile padding changes. */
html{scrollbar-gutter:stable}
.modal{overflow:hidden}
.modal>.modal-body{min-width:0;overscroll-behavior:contain}
.modal:has(>.modal-body>form):not(.detail-modal):not(.workflow-field-editor):not(.workflow-settings-modal)>.modal-body{scrollbar-gutter:stable}
.modal-body>form>.modal-footer{margin-inline:0;margin-bottom:0}
@media(max-width:760px){
 .company-settings.resizable-team-layout>.company-category-nav>.company-category-row{flex:none}
 .company-settings .sales-field-settings .settings-grid.settings-categorized[data-settings-category=fields]{grid-template-columns:minmax(160px,1.4fr) minmax(120px,1fr)!important;overflow-x:auto}
}
.employee-form-modal{width:min(780px,96vw)}
.employee-form-modal .modal-body{padding:15px 18px;scroll-padding-block:8px 68px}
.employee-form-modal .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}
.employee-form-modal .form-field{gap:4px;margin:0;font-size:12px;min-width:0;align-self:start}
.employee-form-modal input:not([type=checkbox]),.employee-form-modal select,.employee-form-modal .choice-dropdown>summary,.employee-form-modal .department-picker>summary{min-height:32px;padding:5px 8px;font-size:12px}
.employee-form-modal input[type=file]{width:100%;max-width:100%;min-width:0;font-size:10px}
.employee-form-modal .form-field small{font-size:10px;line-height:1.5}
.employee-form-modal .required-mark{color:#bc3845;font-weight:600;font-size:11px}
.employee-form-modal .form-grid>fieldset{grid-column:1/-1;padding:9px;margin:0}
/* This form uses narrower padding than the generic dialog. Do not inherit its
   negative full-bleed footer margins: they overflow and add a second scrollbar. */
.employee-form-modal .modal-body>#user-form>.modal-footer{position:sticky;bottom:0;background:var(--crm-surface);padding:10px 0 0;margin:12px 0 0;z-index:2}
.recording-setup-modal{width:min(620px,94vw);max-height:min(680px,88dvh)}
.recording-setup-modal .modal-body{padding:16px 20px;overflow:auto}
.recording-setup-download{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--crm-border)}
.recording-setup-download small{display:block;font-size:11px;color:var(--crm-muted);margin-top:4px}
.recording-setup ol{padding-left:22px;margin:14px 0}.recording-setup li{padding:4px 0;font-size:12px}.recording-setup li p{margin:4px 0 8px;line-height:1.65;color:var(--crm-muted)}
@media(max-width:760px){.employee-form-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.employee-form-modal .modal-body{padding:12px}.filter-panel[data-compact-panel],.workflow-toolbar[data-compact-panel]{padding-right:8px}.recording-setup-modal{height:auto!important;inset:auto!important;max-height:86dvh;width:94vw!important}.recording-setup-modal .modal-body{padding:12px 15px}}
#fee-reminder-root{--reminder-height:55dvh;position:fixed;right:16px;bottom:16px;z-index:410;display:grid;gap:5px;width:min(330px,calc(100vw - 24px));pointer-events:none}
#notice-root .notice-backdrop{z-index:415}
.fee-reminder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;height:35px;padding:3px 8px;border:1px solid var(--crm-border,#cddbd1);border-radius:7px;background:var(--crm-surface,#fff);color:var(--crm-ink,#283a35);pointer-events:auto;box-shadow:0 2px 8px #24382e12;font-size:12px}
.fee-reminder-toolbar .button{min-height:27px;padding:3px 8px;font-size:11px}
.fee-reminder-toolbar [data-fee-reminder-count],.fee-reminder-group-title span{color:#236c5e}
.fee-reminder-items{display:grid;gap:6px}
.fee-reminder-group-title{margin:0;padding:0 6px;border-radius:5px 5px 0 0;background:var(--crm-surface,#fff);color:var(--crm-ink,#283a35);font-size:11px;line-height:18px}
.fee-reminder-list{display:flex;flex-direction:column;gap:5px;max-height:calc(var(--reminder-height) - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;pointer-events:auto}
.fee-reminder-list>.fee-reminder-card{flex:none}
.fee-reminder-items[data-mixed=true] .fee-reminder-list{max-height:calc((var(--reminder-height) - 82px) / 2)}
#fee-reminder-root[data-collapsed=true]{width:auto;max-width:calc(100vw - 24px);overflow:visible}.fee-reminder-collapsed{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;border:1px solid #93bdb0;border-radius:10px;background:var(--crm-surface,#fff);color:var(--crm-ink,#283a35);box-shadow:0 4px 16px #24382e20;font:inherit;font-size:12px;cursor:pointer;pointer-events:auto}.fee-reminder-collapsed strong{min-width:21px;padding:2px 5px;border-radius:12px;background:#246e61;color:#fff;text-align:center;font-size:11px}.fee-reminder-expand-label{font-weight:700;color:#236c5e}.fee-reminder-collapsed:focus-visible{outline:2px solid #246e61;outline-offset:2px}.fee-reminder-collapsed:disabled{opacity:.75;cursor:wait}
.fee-reminder-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;background:var(--crm-surface,#fff);color:var(--crm-ink,#283a35);border:1px solid #d97a2b;border-left:4px solid #d95032;border-radius:7px;padding:5px 6px;box-shadow:0 2px 8px #37271924;pointer-events:auto;font-size:11px}
.fee-reminder-card header{display:flex;align-items:center;gap:4px;min-width:0}.fee-reminder-card header strong,.fee-reminder-card p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fee-reminder-card header strong{font-size:12px;line-height:16px}.fee-reminder-card header span{color:#b84025;background:#fff0df;padding:1px 3px;border-radius:4px;font-weight:700;white-space:nowrap;font-size:10px}.fee-reminder-card p{margin:1px 0 0;line-height:14px}.fee-reminder-actions{display:flex;gap:4px;justify-content:flex-end}.fee-reminder-actions .button{min-height:27px;padding:3px 6px;font-size:11px;white-space:nowrap}
.operating-fee-reminder-card p{white-space:normal;overflow-wrap:anywhere}
.monthly-turnover-reminder-card{border-color:#b9d4ca;border-left-color:#267e6d;background:linear-gradient(140deg,var(--crm-surface,#fff),#f2fbf6)}
.monthly-turnover-reminder-card header span{color:#236c5e;background:#e4f5eb}
.monthly-turnover-reminder-card .button{background:#246e61;border-color:#246e61}
.assignment-reminder-card{border-color:#c9d6e5;border-left-color:#42688c}
@media(max-width:760px){#fee-reminder-root{right:12px;bottom:calc(var(--mobile-bottom,0px) + 74px);--reminder-height:min(45dvh,calc(64dvh - var(--mobile-bottom,0px) - 74px))}}
@media(max-width:760px) and (max-height:400px){
 #fee-reminder-root,.fee-reminder-items{gap:3px}
 .fee-reminder-toolbar{height:30px;padding-block:0}
 .fee-reminder-group-title{line-height:14px}
 .fee-reminder-items[data-mixed=true] .fee-reminder-list{max-height:calc((var(--reminder-height) - 64px) / 2)}
}
.employee-form-modal .person-avatar-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.employee-form-modal .person-avatar-group{padding:4px 0;border:0}.employee-form-modal .person-avatar-group>legend{font-size:11px;padding:0}.employee-form-modal .person-avatar-picker>p{margin-bottom:5px;font-size:10px}.employee-form-modal .person-avatar-choice-grid{gap:5px}.employee-form-modal .person-avatar-choice-grid>.person-avatar-choice{min-height:52px;padding:5px 2px 3px;gap:2px}.employee-form-modal .person-avatar-choice-grid>.person-avatar-choice>.customer-avatar.person-avatar{width:24px;height:24px;min-width:24px;flex-basis:24px;margin:0}.employee-form-modal .person-avatar-choice-grid>.person-avatar-choice>.person-avatar-choice-label{font-size:9px}.employee-form-modal .person-avatar-choice-grid>.person-avatar-choice>input{width:11px;height:11px;left:3px;top:3px}@media(max-width:560px){.employee-form-modal .person-avatar-groups{grid-template-columns:1fr;gap:6px}.employee-form-modal .person-avatar-choice-grid>.person-avatar-choice{min-height:47px}}

/* Priority follows use the same authorized columns and cell renderer as customers. */
.dashboard-home .home-priority .priority-list.table-wrap{display:block;gap:0;max-width:100%;max-height:275px;min-height:0;overflow:auto;padding:0;scrollbar-gutter:auto;background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:5px}
.priority-customer-table{width:max-content;min-width:900px;table-layout:auto;font-size:12px;line-height:1.35}
.priority-customer-table th,.priority-customer-table td{height:29px;padding:4px 6px;white-space:nowrap;vertical-align:middle}
.priority-customer-table th{position:sticky;top:0;z-index:1;background:var(--crm-soft);font-size:12px}
.priority-customer-table .customer-name{font-size:12px;line-height:1.35}.priority-customer-table .button.small{min-height:22px;padding:2px 5px;font-size:11px;line-height:1.25}
.priority-customer-table .follow-cell{max-width:175px;width:175px;overflow:hidden;text-overflow:ellipsis}.priority-customer-table .badge,.priority-customer-table .tag,.priority-customer-table .stage-badge{font-size:11px;padding:1px 5px;line-height:1.35}
@media(max-width:760px){.dashboard-home .home-priority .priority-list.table-wrap{display:block;max-height:270px}.priority-customer-table th,.priority-customer-table td{height:32px;padding:5px 6px;font-size:12px}}

/* Independent dashboard scopes reuse the compact organization popover. */
.home-panel-scope>label{display:flex;align-items:center;gap:5px;font-size:inherit;white-space:nowrap}
.home-panel-scope select{max-width:170px}
.home-panel-scope>.dashboard-organization-picker{flex:none;width:auto;min-width:0;margin:0}
.dashboard-organization-picker>summary{min-width:0;min-height:28px;padding:4px 7px;border:1px solid var(--crm-border,#cddbd1);border-radius:5px;background:var(--crm-surface,#fff);font-size:11px;line-height:18px;cursor:pointer;list-style:none}
.dashboard-organization-panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 16px);padding:9px;background:var(--crm-surface,#fff);color:var(--crm-ink,#243c31)}
.dashboard-organization-panel>strong{display:block;font-size:12px;margin-bottom:7px}
.dashboard-organization-panel .choice-search{width:100%;font-size:12px;min-height:31px;padding:6px 8px;margin-bottom:5px}
.dashboard-organization-panel .dashboard-scope-department{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;padding:2px 4px;text-align:left;cursor:pointer}
.dashboard-organization-panel .dashboard-scope-department[aria-pressed=true]{color:var(--crm-accent,#268269);background:var(--crm-selected,#d7ecdf);border-radius:4px}
.dashboard-organization-panel .dashboard-scope-department:disabled{opacity:.65;cursor:default}
.home-scope-status{flex-basis:100%;margin:3px 0 0;font-size:10px;color:var(--crm-muted,#63796d);text-align:right}
@media(max-width:760px){.home-panel-scope select{max-width:160px}.dashboard-organization-picker>summary{min-height:31px}.dashboard-organization-panel .dashboard-scope-department{min-height:30px}.dashboard-organization-panel .choice-search{font-size:16px}}

.button.crm-pink-action{background:#ffe6f9;border-color:#ffbaee;color:#c10088;box-shadow:0 2px 0 #f3b8e1;font-weight:700}
.button.crm-pink-action:hover:not(:disabled),.button.crm-pink-action[aria-expanded=true]{background:#ffd0ee;border-color:#ec69c2;color:#960063}
.button.crm-pink-action:focus-visible{outline:2px solid #b00076;outline-offset:2px}
.handoff-recipient-settings{container:handoff-settings / inline-size}
.handoff-settings-split{display:grid;grid-template-columns:minmax(0,min(47%,520px)) minmax(0,1fr);gap:8px;align-items:start}
.handoff-field-settings,.handoff-routing-settings,.handoff-routing-pickers>div{min-width:0}
.handoff-field-settings>.tiny,.handoff-routing-settings>.tiny{margin:4px 0;line-height:1.45}
.handoff-routing-settings{border:1px solid var(--crm-border);border-radius:6px;padding:7px;background:var(--crm-soft)}
.handoff-routing-title,.handoff-routing-rule-title{display:flex;justify-content:space-between;align-items:center;gap:5px}
.handoff-routing-title h3{font-size:14px;margin:0}
.handoff-routing-rule-list{display:grid;gap:5px;max-height:min(58dvh,max(140px,calc(100dvh - 255px)));overflow:auto;overscroll-behavior:contain;scroll-padding:5px}
.handoff-routing-rule-list:empty{display:none}
.handoff-routing-rule{background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:5px;padding:6px;font-size:12px;min-width:0}
.handoff-routing-pickers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px}
.handoff-routing-pickers>div>strong{display:block;margin-bottom:3px}
.handoff-routing-settings .organization-scope-panel.is-floating-open{display:flex!important;flex-direction:column}
.handoff-routing-settings .organization-scope-panel>.organization-scope-options{min-height:0}
.handoff-routing-settings .organization-scope-panel>:not(.organization-scope-options){flex-shrink:0}

.handoff-routing-rule-title .button{font-size:11px;padding:3px 6px}
.handoff-field-settings .interaction-fields-scroll{scroll-padding-top:29px}
.handoff-recipient-settings .handoff-field-settings .interaction-fields-table{min-width:300px;table-layout:fixed}
.handoff-recipient-settings .handoff-field-settings .interaction-fields-table :is(th,td){padding:4px 5px;font-size:12px;line-height:1.35;vertical-align:middle}
.handoff-recipient-settings .handoff-field-settings .interaction-fields-table td:first-child{min-width:0}
.handoff-field-settings .interaction-fields-table :is(th,td):nth-child(2){width:55px}
.handoff-field-settings .interaction-fields-table :is(th,td):is(:nth-child(3),:nth-child(4)){width:38px;text-align:center}
.handoff-field-settings .interaction-fields-table :is(th,td):last-child{width:24%}
.handoff-field-settings .interaction-fields-table .handoff-field-check{min-height:25px;justify-content:center;cursor:pointer}
.handoff-field-settings .interaction-fields-table input[type=checkbox]{width:15px;height:15px;margin:0;min-height:0;vertical-align:middle;cursor:pointer}
.handoff-field-settings .handoff-field-options{max-width:none;max-height:32px}
.handoff-field-name{display:grid;grid-template-columns:21px minmax(0,1fr);align-items:center;gap:3px;overflow-wrap:anywhere}
.handoff-field-name>div{grid-column:2;grid-row:1}
.handoff-field-grip{grid-column:1;grid-row:1;box-sizing:border-box;width:21px;height:25px;min-height:0;padding:0;border:0;border-radius:4px;background:transparent;color:var(--crm-muted);font:16px/1 system-ui;cursor:grab;touch-action:none;user-select:none}
.handoff-field-grip:hover,.handoff-field-grip:focus-visible{background:var(--crm-soft);color:var(--crm-accent)}
.handoff-field-settings [data-handoff-dragging]{opacity:.55}
.handoff-field-settings [data-handoff-dragging] .handoff-field-grip{cursor:grabbing}
.handoff-field-settings [data-handoff-drop=before]>td{box-shadow:inset 0 2px var(--crm-accent)}
.handoff-field-settings [data-handoff-drop=after]>td{box-shadow:inset 0 -2px var(--crm-accent)}
.handoff-order-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container handoff-settings (max-width:620px){.handoff-settings-split{grid-template-columns:minmax(0,1fr)}}
@supports not selector(:popover-open){.handoff-recipient-settings{container:none}}

@media(max-width:760px){
  .handoff-settings-split{grid-template-columns:minmax(0,1fr)}
  .handoff-routing-rule-list{max-height:none;overflow:visible}
  .handoff-routing-settings :is(button,summary){scroll-margin-block:12px 82px}
  .handoff-field-grip{width:23px;height:32px}
}


/* activity-history.css */
.modal .activity-change-lines{display:grid;gap:2px;font-size:11px;line-height:1.45;color:var(--crm-ink)}
.modal .activity-change-lines p{display:flex;align-items:baseline;gap:6px;margin:0;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.modal .activity-change-lines strong{flex:0 1 auto;max-width:35%;overflow-wrap:anywhere;font-size:11px;font-weight:600;color:var(--crm-muted)}
.modal .activity-change-lines p>span{min-width:0}
.modal.detail-modal #follow-history .follow-record,.workflow-record-detail .workflow-follow-record,.workflow-record-detail .workflow-activity-record{padding-top:5px;padding-bottom:6px}
.modal.detail-modal #follow-history .follow-record-header,.workflow-record-detail .follow-record-header{margin-bottom:2px;line-height:1.35}
.workflow-record-detail .workflow-activity-record{margin-left:4px;border-color:var(--crm-border)}


/* login.css */
.login-screen{--login-image:url('/backgrounds/alpine-lake.webp');position:relative;isolation:isolate;min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,440px);align-items:center;gap:clamp(35px,6vw,110px);padding:clamp(28px,4vw,65px) clamp(28px,6vw,100px);background:#15363e var(--login-image) center/cover no-repeat;color:#fff;color-scheme:dark;overflow:hidden}
.login-screen:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071f32a8 0%,#0c293959 38%,#0b1727a6 48%,#0b1727a6 100%);pointer-events:none}
.login-screen .login-art{position:relative;z-index:0;min-width:0;align-self:stretch;min-height:min(670px,calc(100svh - 100px));display:flex;flex-direction:column;justify-content:space-between;gap:35px;padding:0;background:none;overflow:visible;isolation:auto}
.login-screen .login-art:before,.login-screen .login-art:after{display:none}
.login-screen .login-art .brand{color:#fff;font-size:21px;gap:11px;text-shadow:0 2px 9px #102e3840}
.login-screen .brand-mark{width:43px;height:45px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#d3ffe8,#83d4b1);color:#174e42;border:1px solid #e3fff0b3;box-shadow:inset 0 1px 1px #ffffffb3,0 4px 0 #20664a5e,0 8px 18px #062c3440}
.login-screen .login-art-copy{padding:20px 0 30px;max-width:650px}
.login-screen .login-art-copy .chip{font-size:12px;letter-spacing:2px;color:#ecfff5;background:#ffffff14;border:1px solid #ffffff4d;box-shadow:inset 0 1px 0 #ffffff20,0 3px 12px #092b3520;backdrop-filter:blur(8px);border-radius:7px;padding:7px 13px;margin-bottom:24px}
.login-screen .login-art h1{color:#fff!important;font-size:clamp(36px,4.25vw,64px);font-weight:750;line-height:1.27;letter-spacing:1px;margin:0 0 22px;text-shadow:0 3px 2px #09283924,0 7px 26px #06253780}
.login-screen .login-art p{font-size:15px;color:#f1f8fc;line-height:1.9;max-width:420px;text-shadow:0 2px 9px #052633b3}
.login-screen .login-preview{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.login-screen .login-preview span{font-size:12px;color:#fff;border:1px solid #ffffff45;border-radius:10px;padding:12px 15px;background:linear-gradient(135deg,#ffffff24,#ffffff08);box-shadow:inset 0 1px 0 #ffffff20,0 7px 20px #06283726;backdrop-filter:blur(9px)}
.login-screen .login-art>.tiny{color:#e7f5f0;font-size:11px;letter-spacing:2px;margin:0;text-shadow:0 2px 8px #052530}
.login-screen .login-card{position:relative;min-width:0;width:100%;padding:34px 24px 22px;margin:0;border:0;background:none;color:#fff;box-shadow:none;text-shadow:0 1px 4px #0a1529a6}
.login-screen .login-card h2{font-size:26px;line-height:1.4;font-weight:750;color:#fff;margin:0 0 9px;letter-spacing:.5px}
.login-screen .login-card>p{font-size:13px;color:#f6fbff;margin:0 0 25px}
.login-screen .login-form{gap:19px;margin:0}
.login-screen .login-form label{font-size:13px;font-weight:650;gap:8px;color:#fff}
.login-screen .login-form .form-field input{height:48px;min-height:48px;font-size:15px;color:#fff;background:#0c1e3359;border:1px solid #ffffff8c;border-radius:10px;padding:11px 14px;box-shadow:none}
.login-screen .login-form .form-field input::placeholder{color:#ebf4ff;opacity:1}
.login-screen .login-form .form-field input:focus{border-color:#d2fff2;outline:2px solid #d2fff280;outline-offset:1px}
.login-screen .login-form .login-remember{display:flex;flex-direction:row;align-items:center;align-self:flex-start;min-height:36px;margin:-6px 0;font-size:14px;white-space:nowrap;cursor:pointer}
.login-screen .login-remember input[type=checkbox]{flex:none;width:16px;height:16px;margin:0;padding:0;accent-color:#a7ebd5}
.login-screen .login-remember input:focus-visible{outline:2px solid #d2fff2;outline-offset:3px}
.login-screen .login-form .button{min-height:49px;border-radius:11px;padding:11px 16px;font-size:15px;font-weight:700;color:#fff;background:linear-gradient(140deg,#328c7b,#1e6a60);border:1px solid #217565;box-shadow:inset 0 1px 0 #b6eddb66,0 4px 0 #174e47,0 9px 17px #1d5a4f35;margin-top:6px;transition:transform .12s,box-shadow .12s}
.login-screen .login-form .button:hover{background:linear-gradient(140deg,#389d89,#21766a);transform:translateY(-1px);box-shadow:inset 0 1px 0 #c3f5e066,0 5px 0 #174e47,0 12px 22px #1d5a4f40}
.login-screen .login-form .button:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #c3f5e066,0 2px 0 #174e47,0 5px 10px #1d5a4f30}
.login-screen .login-form .button:focus-visible{outline:3px solid #76b9a7;outline-offset:5px}
.login-screen .login-card>.tiny{font-size:11px;color:#edf5fb;line-height:1.7;border-top:1px solid #ffffff52;margin:22px 0 0;padding-top:13px}
.login-screen .login-card>.login-credit{margin:10px 0 0;color:#fff;font-size:13px;line-height:1.5}
.login-screen #login-error:empty{display:none}.login-screen #login-error{font-size:12px;color:#ffdbe3;margin-top:1px}
@media(max-height:750px) and (min-width:761px){.login-screen{padding-top:26px;padding-bottom:28px}.login-screen .login-art{min-height:calc(100svh - 65px)}.login-screen .login-art-copy{padding:12px 0}.login-screen .login-card{padding-top:24px;padding-bottom:16px}.login-screen .login-card>.tiny{margin-top:20px;padding-top:13px}}
@media(max-width:1000px) and (min-width:761px){.login-screen{grid-template-columns:minmax(0,1fr) 360px;padding:30px;gap:32px}.login-screen .login-card{padding:28px 18px 20px}.login-screen .login-art h1{font-size:37px}.login-screen .login-preview{gap:6px}.login-screen .login-preview span{padding:10px;font-size:10px}}
@media(max-width:760px){.login-screen{grid-template-columns:minmax(0,1fr);gap:20px;padding:25px 20px 35px;align-content:center;background-position:35% center}.login-screen:before{background:linear-gradient(180deg,#082c4266,#09273438)}.login-screen .login-art{min-height:0;gap:16px;align-self:auto}.login-screen .login-art .brand{font-size:17px}.login-screen .brand-mark{width:36px;height:38px;font-size:21px;border-radius:11px}.login-screen .login-art-copy{padding:10px 0 0}.login-screen .login-art-copy .chip,.login-screen .login-art-copy p,.login-screen .login-preview,.login-screen .login-art>.tiny,.login-screen .login-card .mobile-brand{display:none}.login-screen .login-art h1{font-size:27px;line-height:1.4;margin:0}.login-screen .login-art h1 br{display:none}.login-screen .login-card{max-width:440px;justify-self:center;padding:21px 10px 14px}.login-screen .login-card h2{font-size:23px}.login-screen .login-card>p{margin-bottom:20px}.login-screen .login-form{gap:17px}.login-screen .login-form .form-field input{font-size:16px}.login-screen .login-card>.login-credit{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.login-screen .login-form .button{transition:none}.login-screen .login-form .button:hover{transform:none}}
.login-screen .login-phone-copy{display:none}
@media(max-width:760px){
 .login-screen{background-image:url('/backgrounds/mobile-bead-dream-v1.webp');background-position:center center}
 .login-screen:before{background:linear-gradient(180deg,#111b2f74 0%,#111b2fa3 24%,#111b2fa3 88%,#111b2f8c 100%)}
 .login-screen .login-desktop-copy{display:none}
 .login-screen span.login-phone-copy{display:inline}
 .login-screen p.login-phone-copy{display:block}
 .login-screen .login-art h1{font-size:clamp(21px,6vw,27px)}
 .login-screen .login-card h2{margin-bottom:17px}
}


/* customer-list-height.css */
/* Use the available screen for real customer rows, without altering pagination. */
#main.customer-list-viewport{min-height:0;padding-bottom:8px}
#main>.customer-results.customer-results-viewport{display:flex;flex-direction:column;box-sizing:border-box;height:var(--customer-results-height,auto);min-height:0;min-width:0;overflow:visible}
#main>.customer-results.customer-results-viewport>.customer-results-toolbar,
#main>.customer-results.customer-results-viewport>.pagination,
#main>.customer-results.customer-results-viewport>.mobile-filter-columns{flex:none}
#main>.customer-results.customer-results-viewport>.table-wrap{flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
#main>.customer-results.customer-results-viewport>.pagination{margin-top:4px;padding-top:4px;gap:6px;min-height:30px;font-size:11px}
#main>.customer-results.customer-results-viewport>.pagination .top-actions{gap:5px}
#main>.customer-results.customer-results-viewport>.pagination :is(select,.button){min-height:26px;padding:3px 7px;font-size:11px;line-height:1.4}
@media(max-width:760px){
 #main>.customer-results.customer-results-viewport>.table-wrap{display:none}
 #main>.customer-results.customer-results-viewport>.mobile-customer-cards{display:block;flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #main>.customer-results.customer-results-viewport>.mobile-filter-columns{margin:4px 0;padding:0 0 4px;gap:4px}
 #main>.customer-results.customer-results-viewport>.pagination{min-height:38px;gap:5px;padding-top:4px;margin-top:3px}
 #main>.customer-results.customer-results-viewport>.pagination .top-actions{gap:4px;min-width:0}
 #main>.customer-results.customer-results-viewport>.pagination :is(select,.button){min-height:34px;padding:4px 6px;font-size:11px}
}

#main :is(.customer-results,.priority-view-page) [data-sales-fill-background]{
 background:var(--sales-fill-background)!important;
 color:var(--sales-fill-ink)!important;
}
#main :is(.customer-results,.priority-view-page) [data-sales-fill-background] :is(.customer-name,.phone-link,.customer-follow-preview-target,.card-details small,.card-details>div>span){
 color:var(--sales-fill-ink)!important;
}
#main [data-sales-fill-selected][hidden]{display:none!important}
@media(max-width:760px){
 #main [data-sales-fill-selected]{display:none!important}
 #main .mobile-customer-cards [data-sales-fill-field][data-sales-fill-background]{border-radius:4px}
}


/* display-readability.css */
/* Render interface text at native CSS-pixel sizes. Narrow viewports reflow or
   scroll; neither screen resolution nor pixel density scales the whole app. */
html{font-size:14px}
body{font-size:14px;font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:auto;text-rendering:auto}

/* Keep dense tables compact while avoiding the old 11–12px primary text.
   Settings, rich documents, icons and the small filter arrows retain their
   individual sizing. Explicit column widths and scroll controls are untouched. */
@media(min-width:761px){
 html body :is(#main>.customer-results,.home-priority,#employee-table)>.table-wrap>table,
 html body :is(#main>.customer-results,.home-priority,#employee-table)>.table-wrap>table>:is(thead,tbody)>tr>:is(th,td),
 html body :is(#main>.customer-results,.home-priority,#employee-table)>.table-wrap :is(.table-sort,.customer-name,.link-button){font-size:13px;line-height:1.4}
 html body :is(#main>.customer-results,.home-priority,#employee-table)>.table-wrap .button.small{font-size:12px}
 html body .customer-results .follow-cell{font-size:13px}
 .customer-results-toolbar,.customer-results .result-count{font-size:13px}
 .customer-results-toolbar :is(.button,.customer-fixed-views button),
 .customer-filter-toolbar .filter-actions .button,
 .customer-filter-toolbar .condition-mode,
 .customer-filter-toolbar .condition-mode select{font-size:12px}
 .sidebar .nav-button,.sidebar .nav-button.saved-view{font-size:13px}
 body .workflow-workspace .workflow-grid-table .workflow-cell,
 body .workflow-workspace .workflow-grid-table .workflow-grid-label,
 body .workflow-workspace .workflow-grid-table .workflow-grid-label-wrap>button.workflow-grid-label{font-size:13px}
 body .workflow-workspace .workflow-grid-table .workflow-cell-editor{font-size:13px!important}
 body .workflow-workspace .workflow-grid-formula :is(input,textarea){font-size:13px}
 .workflow-toolbar,.workflow-workspace>.workflow-tabs,
 .workflow-toolbar .button,.workflow-search input{font-size:12px}
}


/* mobile-ec-ui.css */
/* Phone appearance only. Reuse the CRM's real routes, labels and controls. */
@media (max-width:760px) {
  .shell {
    --crm-bg:#f5f6f8;
    --crm-surface:#fff;
    --crm-soft:#f7f8fa;
    --crm-nav:#f5f7fa;
    --crm-nav-head:#f0f4f7;
    --crm-selected:#e9faf1;
    --crm-ink:#202124;
    --crm-muted:#92969d;
    --crm-border:#eaedf0;
    --crm-accent:#07c866;
    --crm-shadow:none;
    --ink:var(--crm-ink);
    --muted:var(--crm-muted);
    --paper:var(--crm-surface);
    --canvas:var(--crm-bg);
    --line:var(--crm-border);
    --teal:var(--crm-accent);
    --teal-dark:var(--crm-accent);
    --shadow:none;
    color-scheme:light;
    color:#202124;
    background:#f5f6f8;
  }

  .shell .workspace {
    background:#f5f6f8!important;
  }

  .shell .workspace .main {
    color:#202124;
    background:#f5f6f8;
    background-image:none!important;
  }

  .shell .workspace .topbar {
    color:#202124;
    background:linear-gradient(110deg,#fff2f4 0%,#f4f8ff 50%,#e9faf4 100%);
    border-bottom:1px solid #eef0f3;
    box-shadow:none;
    backdrop-filter:none;
  }

  .shell .workspace .topbar::after {
    background-image:none!important;
    opacity:0;
  }

  .shell .topbar #breadcrumb {color:#16191e;font-weight:650}
  .shell .topbar .header-meta small {color:#8b9198}
  .shell .mobile-app-tools,
  .shell .mobile-app-tools button {
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    color:#313b3a;
  }

  .shell .workspace :is(.panel,.filter-panel,.customer-results,.office-layout,.approval-content,.rec-card,.office-space-card,.approval-card,.library-card-v2,.material-card,.org-roster) {
    background:#fff;
    background-image:none;
    border-color:#eceff2;
    border-radius:10px;
    box-shadow:none;
  }

  .shell .workspace :is(.office-content,.office-sidebar,.notice-workspace) {
    background-image:none!important;
    box-shadow:none;
  }

  .shell .workspace .button.primary {
    background:#07c866;
    background-image:none;
    border-color:#07c866;
    color:#fff;
    box-shadow:none;
    text-shadow:none;
  }

  .shell .workspace .button.primary:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible,:active) {background:#06b95f;border-color:#06b95f;color:#fff;box-shadow:none}
  .shell .workspace .button.primary:focus-visible {outline:2px solid #78dfa8;outline-offset:2px}

  .shell .workspace :is(.button.secondary,.button.ghost) {
    background:#fff;
    background-image:none;
    border-color:#e7eaed;
    color:#3b4148;
    box-shadow:none;
    text-shadow:none;
  }

  .shell .workspace :is(.button.ghost.danger,.button.secondary.danger) {color:var(--danger,#c35150);border-color:#f2dcd9;background:#fff}
  .shell :is(input[type=checkbox],input[type=radio]) {accent-color:#07c866}

  .shell .workspace :is(.tab.active,.department-select.active,.org-branch.active) {
    background:#eafaef;
    border-color:#d8f5e3;
    color:#06aa59;
    box-shadow:none;
  }

  .shell .workspace .dashboard-home {
    --home-ink:#202124;
    --home-muted:#8d929a;
    --home-line:#eceff2;
    background:none;
  }

  .shell .dashboard-home :is(.home-today,.home-month,.home-priority,.home-meetings) {
    background:#fff;
    background-image:none!important;
    border:1px solid #eceff2;
    border-radius:10px;
    box-shadow:none;
  }

  .shell .dashboard-home :is(.home-section-head h2,.home-month>summary h2) {color:#202124}
  .shell .dashboard-home :is(.home-section-head p,.home-section-head small,.home-month>summary small) {color:#92969d}

  .shell .dashboard-home .home-task.summary-tile {
    background:#fff;
    background-image:none;
    border:1px solid #edf0f3;
    border-radius:10px;
    box-shadow:none;
  }

  .shell .dashboard-home .home-task .stat-label {color:#383e45}
  .shell .dashboard-home .home-task .stat-value {color:#202124}
  .shell .dashboard-home .home-task .stat-hint {color:#92969d}
  .shell .dashboard-home .home-today-stat {background:#fafbfc;border-color:#eef1f3;box-shadow:none}
  .shell .dashboard-home .home-today-stat dt {color:#858b94}
  .shell .dashboard-home .home-today-stat dd {color:#202124}
  .shell .dashboard-home .home-total-strip {border-color:#eff1f3}
  .shell .dashboard-home .home-total-item {background:transparent!important;border:0!important;box-shadow:none!important;color:#858b94}
  .shell .dashboard-home .home-total-item strong {color:#202124}
  .shell .dashboard-home .home-month-body {border-color:#eff1f3}
  .shell .dashboard-home .home-month-metrics>div {border-color:#eff1f3}
  .shell .dashboard-home .home-month-metrics dt {color:#707780}
  .shell .dashboard-home .home-month-metrics dd {color:#202124}
  .shell .dashboard-home .home-month-stock.welcome-metric {background:#f7fcf9;border-color:#e5f4eb;box-shadow:none;color:#4e735c}
  .shell .dashboard-home .home-meeting {background:none;border-color:#eff1f3;box-shadow:none}
  .shell .dashboard-home .home-meeting strong {color:#30363d}

  .shell .customer-filter-toolbar>.tabs {background:#f5f6f8;border-radius:8px}
  .shell .customer-filter-toolbar .tab {background:transparent;border-color:transparent;box-shadow:none;color:#818791}
  .shell .customer-filter-toolbar .tab.active {background:#fff;color:#06ad5c;box-shadow:none}
  .shell .customer-filter-toolbar .search-input {background:#f7f8fa;border-color:#edf0f3;border-radius:8px;box-shadow:none}
  .shell .mobile-filter-toggle {background:#fff;border-color:#e7eaed;color:#505963;box-shadow:none}
  .shell .mobile-filter-toggle[aria-expanded=true] {background:#edfaf2;border-color:#d9f3e5;color:#07ae5d}
  .shell .customer-results>.toolbar {background:#fff;border-color:#f0f1f3;box-shadow:none}
  .shell .mobile-customer-cards .customer-card {
    margin-bottom:0;
    padding:14px 0;
    background:#fff;
    background-image:none;
    border:0;
    border-bottom:1px solid #edf0f3;
    border-radius:0;
    box-shadow:none;
  }
  .shell .mobile-customer-cards .customer-card:last-child {border-bottom:0}
  .shell .customer-card .customer-name {color:#202124}
  .shell .customer-card .card-head {border-color:#f0f2f4}
  .shell .customer-card .card-details small {color:#9ba0a7}
  .shell .customer-card .card-details .phone-link {color:#06ac5a}
  .shell .mobile-customer-avatar {background:linear-gradient(145deg,#e9f8f4,#e7effb);border-color:#e3f0ea;color:#62a98a}
  .shell .customer-card .card-head>.button {border-color:#edf0f3;border-radius:8px;box-shadow:none}

  .shell .mobile-app-nav {
    background:#fff;
    border-top:1px solid #eef0f3;
    box-shadow:none;
    backdrop-filter:none;
  }
  .shell .mobile-app-nav>button {color:#484d55;font-weight:400}
  .shell .mobile-app-nav .mobile-tab-icon {background:transparent;box-shadow:none}
  .shell .mobile-tab-icon svg {stroke-width:1.65}
  .shell .mobile-app-nav>button.is-active {color:#07c866;font-weight:500}
  .shell .mobile-app-nav>button.is-active .mobile-tab-icon {background:transparent;box-shadow:none}
  .shell .mobile-reminder-count {background:#fb6a63;border-color:#fff}

  .shell .mobile-app-backdrop {background:#25334238;backdrop-filter:blur(1px)}
  .shell .mobile-app-sheet {
    background:#f5f6f8;
    border-color:#eef0f3;
    border-radius:14px;
    box-shadow:0 8px 30px #24324118;
  }
  .shell .mobile-sheet-handle {background:#d4d9df}
  .shell .mobile-app-sheet>header {background:linear-gradient(110deg,#fff2f5,#f2f7ff 52%,#eafbf5);border-color:#edf0f3}
  .shell .mobile-app-sheet>header h2 {color:#1c2127}
  .shell .mobile-app-sheet>header small {color:#9399a1}
  .shell .mobile-app-sheet>header button {background:transparent;border:0;border-radius:8px;box-shadow:none;color:#333c44}
  .shell .mobile-sheet-scroll {padding:10px}
  .shell .mobile-account-card {background:transparent;border:0;padding:10px 6px;box-shadow:none}
  .shell .mobile-account-card>span {width:48px;height:48px;background:linear-gradient(140deg,#e6eafb,#f4e3ec);border-radius:11px;color:#9b8ca6}
  .shell .mobile-account-card strong {color:#202124}
  .shell .mobile-account-card small {color:#92969d}
  .shell .mobile-account-card button {background:#fff;border-color:#e8ecef;box-shadow:none;color:#4d555d}
  .shell .mobile-layout-entry {background:#fff;border-color:#eceff2;border-radius:8px;box-shadow:none;color:#41484f}
  .shell .mobile-more-group {background:#fff;margin:0 0 10px;padding:13px 8px 14px;border-radius:10px}
  .shell .mobile-more-group h3 {padding:0 6px 12px;color:#202124;font-weight:600}
  .shell .mobile-more-group>div {gap:8px 3px}
  .shell .mobile-more-group :is(.nav-button,.nav-new-view,.view-delete) {background:#fff;background-image:none;border-color:transparent;box-shadow:none;border-radius:8px;color:#343a41}
  .shell .mobile-more-group .nav-button {min-height:78px;padding:8px 3px;gap:8px}
  .shell .mobile-more-group .nav-text {white-space:normal;overflow-wrap:anywhere;color:#343a41;font-weight:400}
  .shell .mobile-more-group .nav-button>span:not(.nav-text):not(.nav-drag-grip) {display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#e6fbf4,#d5f5eb);color:#16bb8b}
  .shell .mobile-more-group .nav-button:nth-child(4n+2)>span:not(.nav-text):not(.nav-drag-grip) {background:linear-gradient(135deg,#fff2da,#ffe5bf);color:#eeb05d}
  .shell .mobile-more-group .nav-button:nth-child(4n+3)>span:not(.nav-text):not(.nav-drag-grip) {background:linear-gradient(135deg,#e6f6ff,#d6ecff);color:#54aef0}
  .shell .mobile-more-group .nav-button:nth-child(4n)>span:not(.nav-text):not(.nav-drag-grip) {background:linear-gradient(135deg,#f0eaff,#e9e0ff);color:#a18be6}
  .shell .mobile-more-group .nav-button.active {background:#edfaf3;border-color:#e0f5e9;box-shadow:none}
  .shell .mobile-office-grid {background:#fff;border-radius:10px;padding:14px 6px;gap:14px 4px}
  .shell .mobile-office-entry {align-items:center;text-align:center;padding:9px 4px;min-height:100px;border:0;border-radius:8px;background:#fff;box-shadow:none;color:#343a41}
  .shell .mobile-office-entry>span {background:linear-gradient(135deg,#e5fcf4,#d2f5e8);border:0;border-radius:9px;color:#12bb8b}
  .shell .mobile-office-entry:nth-child(4n+2)>span {background:linear-gradient(135deg,#fff1d9,#ffe2b7);color:#ecad50}
  .shell .mobile-office-entry:nth-child(4n+3)>span {background:linear-gradient(135deg,#e5f6ff,#d9eaff);color:#4aa8e9}
  .shell .mobile-office-entry:nth-child(4n)>span {background:linear-gradient(135deg,#efe8ff,#e8dfff);color:#a18be6}
  .shell .mobile-office-entry strong {color:#343a41;font-weight:500;overflow-wrap:anywhere}
  .shell .mobile-office-entry small {color:#a0a5ad}
  .shell .mobile-logout {background:#fff;border-color:#eceff2;border-radius:10px;box-shadow:none;color:#e06460}
}

@media (min-width:360px) and (max-width:760px) {
  .shell .mobile-more-group>div,
  .shell .mobile-office-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}


/* mobile-shell.css */
/* EC-like phone placement, using only the CRM's existing routes and actions. */
.mobile-customer-title,.mobile-customer-tools,.mobile-customer-views,.mobile-customer-menu-backdrop,.mobile-business-views{display:none}
@media(max-width:760px){
 .shell>.mobile-app-page{z-index:200;display:block;background:linear-gradient(110deg,#fff2f4,#f1f8ff 50%,#e6faf4);padding:0;top:var(--mobile-viewport-top,0px)!important;left:var(--mobile-viewport-left,0px)!important;width:var(--mobile-viewport-width,100vw)!important;height:calc(var(--mobile-viewport-height,100dvh) - var(--mobile-nav-height) - var(--mobile-bottom))!important;backdrop-filter:none}
 .shell>.mobile-app-page[inert]{z-index:90}
 .shell.mobile-my-workspace .topbar>.mobile-app-tools{display:none}
 .shell>.mobile-app-page>.mobile-app-sheet{display:flex;flex-direction:column;position:relative;width:100%;height:100%;max-height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
 .shell .mobile-app-page .mobile-sheet-handle{display:none}
 .shell .mobile-app-page .mobile-app-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:12px 18px;border:0;background:transparent;flex:none}
 .shell .mobile-app-page .mobile-app-sheet>header h2{margin:0;color:#17191e}
 .shell .mobile-app-page [data-mobile-close]{display:grid;place-items:center;width:40px;min-height:40px;padding:8px;border:0;background:transparent;color:#41484c;box-shadow:none}
 .shell .mobile-app-page .mobile-sheet-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 12px 18px;-webkit-overflow-scrolling:touch}
 .shell .mobile-office-section{padding:16px 12px 18px;margin:0 0 12px;background:#fff;border:0;border-radius:14px}
 .shell .mobile-office-section h3{margin:0 0 20px;padding:0 3px}
 .shell .mobile-office-section .mobile-office-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:23px 8px;padding:0;border:0;background:transparent}
 .shell .mobile-office-grid .mobile-office-entry{display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:10px;min-height:84px;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:center;color:#17191e}
 .shell .mobile-office-entry>.mobile-feature-icon{display:block;width:36px;height:36px;flex:none;filter:drop-shadow(0 2px 2px #1e625e12)}
 .shell .mobile-office-entry strong{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-weight:400;line-height:1.45}
 .shell .mobile-app-page.mobile-my-page{background:#f4f6f8}
 .shell .mobile-my-page .mobile-app-sheet>header{background:linear-gradient(110deg,#fff2f4,#f3f8ff 50%,#e6faf4)}
 .shell .mobile-my-page .mobile-sheet-scroll{padding:0 0 18px}
 .shell .mobile-profile-row{display:flex;align-items:center;gap:15px;padding:20px 20px 24px;background:#fff;margin-bottom:12px;min-height:106px}
 .shell .mobile-profile-picture{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:13px;color:#229872;background:#dff8ed;font-size:26px}
 .shell .mobile-profile-row>div{display:flex;flex-direction:column;gap:5px;min-width:0}
 .shell .mobile-profile-row strong{font-size:20px;font-weight:600;color:#1c2227;overflow-wrap:anywhere}
 .shell .mobile-profile-row small{font-size:14px;color:#8b9197;overflow-wrap:anywhere}
 .shell .mobile-my-section{display:block;margin:0 0 12px;padding:0 18px;background:#fff;border:0;border-radius:0;overflow:hidden}
 .shell .mobile-my-row{display:flex;align-items:center;gap:13px;min-width:0;width:100%;min-height:56px;margin:0;padding:12px 2px;border:0;border-bottom:1px solid #f0f1f3;border-radius:0;background:#fff;box-shadow:none;color:#22282c;text-align:left;white-space:normal;font-size:16px;font-weight:400}
 .shell .mobile-my-row:last-child{border-bottom:0}
 .shell .mobile-my-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
 .shell .mobile-my-row>.mobile-feature-icon,.shell .mobile-my-row>.mobile-line-icon{display:block;flex:none;width:24px;height:24px;color:#8d9ba4}
 .shell .mobile-my-row>.mobile-line-icon:last-child{width:16px;height:16px;color:#bdc2c6;margin-left:auto}
 .shell .mobile-my-row.mobile-logout{justify-content:center;text-align:left;color:#e06060}
 .shell .mobile-app-nav{z-index:60}
 .shell:has(>.mobile-app-page)>.mobile-app-nav{z-index:210}
 body:has(.shell :is(.mobile-app-page,.mobile-customer-menu-backdrop,.mobile-org-open,.mobile-customer-batch-open)) #fee-reminder-root,body:has(#modal-root .modal-backdrop) #fee-reminder-root{z-index:80}
 .shell .mobile-app-nav>button{font-weight:400}
 .shell .mobile-app-nav>button.is-active{font-weight:400}
 .shell .mobile-app-nav>button.is-active .mobile-tab-icon{background:transparent;box-shadow:none}
 .shell .workflow-workspace>.mobile-business-views{display:flex;align-items:center;flex-wrap:nowrap;flex:none;width:100%;min-width:0;max-width:100%;gap:8px;min-height:50px;padding:0 12px;margin:0;overflow-x:auto;overflow-y:hidden;background:#fff;border-bottom:1px solid #eceff2;overscroll-behavior-inline:contain;scrollbar-width:none;box-sizing:border-box}
 .shell .workflow-workspace>.mobile-business-views:not(:has(.mobile-business-view-item)){display:none}
 .shell .mobile-business-view-item{position:relative;display:flex;align-items:center;flex:none;min-width:0;max-width:100%;height:34px;margin:7px 0;border-radius:18px;background:#f3f4f6}
 .shell .mobile-business-view{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;min-height:34px;height:34px;margin:0;padding:6px 13px;border:0;border-radius:18px;background:transparent!important;color:#40454b;box-shadow:none;font-size:14px;font-weight:400;line-height:1.4;white-space:nowrap}
 .shell .mobile-business-view-item:has(.view-delete)>.mobile-business-view{padding-right:3px}
 .shell .mobile-business-view-item:has(.is-active){background:#edf8f2}
 .shell .mobile-business-view.is-active{color:#08b866;font-weight:500}
 .shell .mobile-business-view-item:has(.is-active):after{content:'';position:absolute;bottom:-8px;left:30%;right:30%;height:2px;border-radius:2px;background:#07c66c}
 .shell .mobile-business-view-item>.view-delete{display:grid;place-items:center;min-width:28px;width:28px;height:34px;min-height:34px;margin:0;padding:4px;border:0;background:transparent!important;box-shadow:none;color:#939ca3;font-size:15px}

 .shell.mobile-customer-active .topbar{height:calc(60px + env(safe-area-inset-top,0px));min-height:60px;gap:0;padding-inline:12px}
 .shell.mobile-customer-active .topbar>.top-actions:first-child{min-width:0;flex:1}
 .shell.mobile-customer-active .topbar .header-meta,.shell.mobile-customer-active .mobile-app-tools{display:none}
 .shell.mobile-customer-active .mobile-customer-title{display:flex;align-items:center;gap:6px;min-height:44px;min-width:0;max-width:100%;padding:6px 0;border:0;border-radius:0;color:#17191e;background:transparent;box-shadow:none;text-align:left;font-size:20px;font-weight:500;line-height:1.4}
 .shell .mobile-customer-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .shell .mobile-customer-title>b{flex:none;font-size:16px;font-weight:400}
 .shell.mobile-customer-active .mobile-customer-tools{display:flex;align-items:center;gap:0;flex:none}
 .shell .mobile-customer-tools>button{display:grid;place-items:center;width:40px;min-width:40px;height:44px;min-height:44px;padding:8px;border:0;background:transparent;box-shadow:none;color:#182d2c;border-radius:6px}
 .shell .mobile-customer-tools svg{width:25px;height:25px}
 .shell .mobile-customer-tools>button[aria-pressed=true]{color:#07ba66;background:#effbf5}
 .shell.mobile-customer-active #main:has(>.customer-results){padding:0 0 8px;background:#fff;min-width:0}
 .shell.mobile-customer-active #main>.filter-panel{padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff}
 .shell.mobile-customer-active #main>.filter-panel.compact-panel-collapsed{height:auto!important;min-height:0!important;padding:0!important;margin:0}
 .shell.mobile-customer-active .filter-panel>.compact-panel-toggle{display:none!important}
 .shell.mobile-customer-active .filter-panel>.customer-filter-toolbar{display:flex!important;gap:0;padding:0;margin:0;min-height:0}
 .shell.mobile-customer-active .filter-panel .tabs,.shell.mobile-customer-active #search-form>[data-mobile-filter]{display:none!important}
 .shell.mobile-customer-active #search-form{display:none!important}
 .shell.mobile-customer-active .mobile-search-open #search-form{display:flex!important;flex:1 1 100%;width:100%;margin:0;padding:9px 12px 10px;gap:8px;background:#fff;box-sizing:border-box}
 .shell.mobile-customer-active #search-form .search-input{flex:1;width:0;max-width:none;min-height:42px;padding:9px 12px;border:0;border-radius:8px;background:#f3f5f7;box-shadow:none;color:#24282d}
 .shell.mobile-customer-active #search-form>.button{border:0;background:transparent;min-height:42px;padding:8px 4px;font-size:15px;color:#1f2928;box-shadow:none}
 .shell.mobile-customer-active .filter-panel:not(.mobile-filters-open) :is(.filter-actions,#filter-rows){display:none!important}
 .shell.mobile-customer-active .mobile-filters-open .filter-actions{display:flex;flex-wrap:wrap;padding:10px 12px;gap:8px;margin:0;border-top:1px solid #edf0f2}
 .shell.mobile-customer-active .mobile-filters-open .filter-actions .button{min-height:40px;padding:8px 10px;font-size:14px}
 .shell.mobile-customer-active .mobile-filters-open #filter-rows{display:block;padding:0 12px 12px;max-height:42vh;overflow:auto;overscroll-behavior:contain}
 .shell.mobile-customer-active .mobile-filters-open .filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;gap:7px;min-width:0;padding-block:6px}
 .shell.mobile-customer-active .mobile-filters-open .filter-row.date-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px}
 .shell.mobile-customer-active .mobile-filters-open .filter-row.date-filter .filter-input-wrap{grid-column:1/3;grid-row:2}
 .shell.mobile-customer-active .mobile-filters-open .filter-row :is(input,select,summary){min-height:42px;min-width:0;width:100%;max-width:100%}
 .shell.mobile-customer-active .mobile-filters-open .filter-row .filter-remove{grid-column:3;grid-row:1;min-width:36px;min-height:42px}
 .shell.mobile-customer-active .mobile-customer-views{display:flex;flex-wrap:nowrap;align-items:center;min-height:50px;width:100%;max-width:100%;padding:0 12px;gap:8px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;white-space:nowrap;border-bottom:1px solid #eceff2;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .shell .mobile-customer-views::-webkit-scrollbar{display:none}
 .shell .mobile-customer-views>button{position:relative;display:flex;align-items:center;justify-content:center;flex:none;min-width:0;min-height:34px;height:34px;margin:7px 0;padding:6px 13px;border:0;border-radius:18px;box-shadow:none;background:#f3f4f6!important;color:#40454b;font-size:14px;font-weight:400;line-height:1.4;white-space:nowrap}
 .shell .mobile-customer-views>button:is(.primary,.is-active,.active){color:#08b866;background:#edf8f2!important;font-weight:500}
 .shell .mobile-customer-views>button:is(.primary,.is-active,.active)::after{content:'';position:absolute;bottom:-8px;left:30%;right:30%;height:2px;border-radius:2px;background:#07c66c}
 .shell.mobile-customer-active #main>.customer-results{padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;min-width:0}
 .shell.mobile-customer-active .customer-results>.customer-results-toolbar{display:none}
 .shell.mobile-customer-active .customer-fixed-views{display:none!important}
 .shell.mobile-customer-active .mobile-customer-cards .customer-card{padding:14px 14px 12px;margin:0;border:0;border-bottom:1px solid #edf0f2;border-radius:0;background:#fff;box-shadow:none}
 .shell.mobile-customer-active .customer-card .card-head{border:0;margin:0 0 6px;padding:0;min-height:36px}
 .shell.mobile-customer-active .customer-card .card-head .checkbox-row{min-height:36px;gap:9px;flex:0 1 auto;min-width:0}
 .shell.mobile-customer-active .customer-card .card-head{display:flex;gap:8px;flex-wrap:nowrap;align-items:center}
 .shell.mobile-customer-active .customer-card .mobile-customer-tag-row{display:none!important}
 .shell.mobile-customer-active .customer-card .card-head:has(.mobile-customer-name-tags)>.checkbox-row{max-width:48%;min-width:0}
 .shell.mobile-customer-active .customer-card .card-head:has(.mobile-customer-name-tags) .customer-name{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .shell.mobile-customer-active .customer-card .mobile-customer-name-tags{display:flex;flex:1 1 48px;min-width:48px;align-items:center;gap:4px;overflow:auto;overscroll-behavior-inline:contain;scrollbar-width:none;white-space:nowrap}
 .shell.mobile-customer-active .customer-card .mobile-customer-name-tags::-webkit-scrollbar{display:none}
 .shell.mobile-customer-active .customer-card .mobile-customer-name-tags .tag{flex:none;margin:0;border:0;border-radius:2px;background:var(--tag-color,#63a5ee);color:#fff;padding:1px 4px;font-size:12px!important;font-weight:400;line-height:1.6;box-shadow:none}
 .shell.mobile-customer-active .customer-card .mobile-customer-call{display:grid;place-items:center;flex:none;width:42px;min-width:42px;min-height:40px;height:40px;padding:9px;border:0;border-radius:22px;background:#f4f5f8;color:#747b84;box-shadow:none;margin-left:auto}
 .shell.mobile-customer-active .customer-card .mobile-customer-call svg{width:23px;height:23px}
 .shell.mobile-customer-active .customer-card .card-head>.crm-recording-assistant-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .shell.mobile-customer-active .customer-card .customer-name{font-size:16px;color:#20252a;font-weight:500;line-height:1.5}
 .shell.mobile-customer-active .customer-card .card-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
 .shell.mobile-customer-active .customer-card .card-details>div{grid-column:auto!important;min-height:30px;padding:4px 0;min-width:0;border:0!important;box-shadow:none}
 .shell.mobile-customer-active .customer-card .card-details>[data-field="lastFollowText"]{grid-column:1/-1!important}
 .shell.mobile-customer-active .customer-card .card-details small{font-size:12px;max-width:none;color:#93999f;font-weight:400}
 .shell.mobile-customer-active .customer-card .card-details span{font-size:14px;color:#555e65;font-weight:400;overflow-wrap:anywhere}
 .shell.mobile-customer-active .customer-card .card-details .tag{display:inline-block;background:var(--tag-color,#63a5ee);color:#fff;border:0;border-radius:2px;padding:2px 4px;line-height:1.5;font-weight:400}
 .shell.mobile-customer-active .customer-card .customer-check{display:none}
 .shell.mobile-customer-active .priority-view-page{padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;min-width:0;overflow:auto}
 .shell.mobile-customer-active .priority-view-page>.priority-view-heading,
 .shell.mobile-customer-active .priority-view-page>.table-wrap,
 .shell.mobile-customer-active .priority-view-page>.priority-view-toolbar{display:none}
 .shell.mobile-customer-active .priority-view-page>.mobile-customer-cards{display:block}
 .shell.mobile-customer-active .priority-view-page .priority-view-check{display:none}
 .shell.mobile-customer-active .mobile-customer-batch-open .priority-view-page .priority-view-check{display:inline-block;flex:none;width:20px;height:20px;min-width:20px;min-height:20px}
 .shell.mobile-customer-active .priority-view-page>.pagination{padding:8px 12px;margin:0;font-size:12px;border-top:1px solid #eef1f3}
 .shell.mobile-customer-active .priority-view-page>.pagination button{font-size:14px;min-height:40px;padding:7px 8px}
 .shell.mobile-customer-active .mobile-customer-batch-open .customer-card .customer-check{display:inline-block;flex:none;min-width:20px;min-height:20px;width:20px;height:20px}
 .shell:has(#main.mobile-customer-batch-open)>.mobile-app-nav{visibility:hidden;pointer-events:none}
 .shell:has(#main.mobile-customer-batch-open)>.mobile-app-nav>[data-mobile-tab]{display:none}
 .shell.mobile-customer-active .mobile-customer-batch-open :is(.customer-results>.customer-results-toolbar,.priority-view-toolbar){display:grid;grid-template-columns:repeat(var(--mobile-batch-action-count,1),minmax(0,1fr));align-items:center;gap:0;position:fixed;z-index:60;bottom:0;left:0;right:0;width:auto;min-width:0;max-width:none;height:calc(var(--mobile-nav-height) + var(--mobile-bottom));padding:5px max(7px,env(safe-area-inset-right)) var(--mobile-bottom) max(7px,env(safe-area-inset-left));box-sizing:border-box;margin:0;border:0;border-top:1px solid #e8ecef;border-radius:0;background:#fff;box-shadow:none}
 .shell:is(.mobile-modal-visible,.mobile-keyboard-open,.mobile-sales-detail-visible) .mobile-customer-batch-open :is(.customer-results-toolbar,.priority-view-toolbar){visibility:hidden;pointer-events:none}
 .shell.mobile-customer-active .mobile-customer-batch-open .customer-results-toolbar>:is(.top-actions,.customer-result-export),
 .shell.mobile-customer-active .mobile-customer-batch-open :is(.customer-results-toolbar,.priority-view-toolbar)>.mobile-customer-feed-batch{display:contents}
 .shell.mobile-customer-active .mobile-customer-batch-open :is(.customer-results-toolbar,.priority-view-toolbar) strong,
 .shell.mobile-customer-active .mobile-customer-batch-open .customer-results-toolbar .public-quick-filters{display:none}
 .shell.mobile-customer-active .mobile-customer-batch-open button[data-mobile-batch-label]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:44px;margin:0;padding:1px 0 3px;border:0;border-radius:10px;background:none!important;box-shadow:none!important;color:#4e5661!important;font-size:0!important;line-height:0!important;text-shadow:none!important;font-weight:400;touch-action:manipulation}
 .shell.mobile-customer-active .mobile-customer-batch-open button[data-mobile-batch-label]::before{content:"";width:23px;height:23px;background:currentColor;-webkit-mask:var(--mobile-batch-icon) center/contain no-repeat;mask:var(--mobile-batch-icon) center/contain no-repeat}
 .shell.mobile-customer-active .mobile-customer-batch-open button[data-mobile-batch-label]::after{content:attr(data-mobile-batch-label);font-size:12px;line-height:1.2;white-space:nowrap}
 .shell.mobile-customer-active .mobile-customer-batch-open button[data-mobile-batch-label]:is(:disabled,[aria-disabled=true]){opacity:.4;cursor:default}
 .shell.mobile-customer-active .mobile-customer-batch-open button:is([data-action="bulk-assign"],[data-action="priority-bulk-assign"]){order:-1}
 .shell.mobile-customer-active .customer-results>.pagination{padding:8px 12px;margin:0;min-height:48px;border-top:1px solid #eef1f3;background:#fff;font-size:12px}
 .shell.mobile-customer-active .customer-results>.pagination :is(select,button){min-height:40px;padding:7px 8px;font-size:14px}

 .shell>.mobile-customer-menu-backdrop{position:fixed;z-index:90;inset:calc(var(--mobile-viewport-top,0px) + 60px + env(safe-area-inset-top,0px)) 0 0;display:block;background:#1a293426;padding:0;overscroll-behavior:contain}
 .shell .mobile-customer-menu{display:block;max-height:calc(var(--mobile-viewport-height,100dvh) - 80px - env(safe-area-inset-top,0px));width:100%;overflow:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 12px 24px #203b4314;border-radius:0 0 12px 12px;padding-bottom:10px}
 .shell .mobile-customer-menu>header{display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 16px;border-bottom:1px solid #f0f2f4}
 .shell .mobile-customer-menu>header>button{display:grid;place-items:center;width:36px;height:40px;min-height:40px;border:0;background:transparent;color:#858e94;padding:8px}
 .shell .mobile-customer-menu>header>strong{font-size:15px;font-weight:400;color:#8a9298}
 .shell .mobile-customer-menu-row{display:flex;align-items:center;gap:15px;width:100%;min-height:58px;padding:12px 20px;border:0;border-radius:0;background:#fff;box-shadow:none;color:#24292d;text-align:left;font-size:17px;font-weight:400;line-height:1.5;white-space:normal}
 .shell .mobile-menu-line-icon{display:grid;place-items:center;flex:none;color:#a3a8ad;width:24px;height:28px}
 .shell .mobile-menu-line-icon svg{width:24px;height:24px}
 .shell .mobile-menu-check{color:#07c96b;font-size:25px;line-height:1;margin-left:auto;font-weight:500}
 .shell .mobile-customer-menu-divider{border-top:1px solid #eff1f3;margin:5px 16px}
 .shell .mobile-view-edit-row{display:flex;align-items:center;border-bottom:1px solid #f1f3f5;padding-right:12px}
 .shell .mobile-view-edit-row>.mobile-customer-menu-row{flex:1;width:0;min-height:44px;padding:9px 16px;font-size:var(--mobile-ui-body,14px);overflow-wrap:anywhere}
 .shell .mobile-view-edit-row>.view-delete{flex:none;min-width:44px;min-height:44px;border:0;background:transparent;color:#8d969d}
 .shell :is(.mobile-customer-menu-row,.mobile-my-row,.mobile-office-entry,.mobile-customer-tools>button):focus-visible{outline:2px solid #4bd39a;outline-offset:-2px}
}
@media(max-width:350px){
 .shell.mobile-customer-active .topbar{padding-inline:9px}
 .shell.mobile-customer-active .mobile-customer-title{font-size:18px}
 .shell .mobile-customer-tools>button{width:38px;min-width:38px;padding:7px}
 .shell .mobile-office-section{padding-inline:9px}
 .shell .mobile-office-section .mobile-office-grid{column-gap:6px}
}

@media(max-width:760px){
 .mobile-app-update-dot:not([hidden]){position:absolute;inset:0 -4px auto auto;width:8px;height:8px;border-radius:50%;background:#e74748}
 .shell :is(.mobile-native-account[hidden],.mobile-native-account [hidden]){display:none!important}
 .shell .mobile-native-account .mobile-my-row{min-height:49px;padding-block:8px}
 .mobile-native-label{display:grid;gap:1px}
 .mobile-native-label small,.mobile-native-update-details p,.mobile-native-error{font-size:12px;color:#53636d}
 .mobile-native-update-row{display:flex;align-items:center;gap:8px}
 .mobile-native-update-row>.mobile-my-row{flex:1;width:auto}
 .mobile-native-update-row>[data-native-android-action="install-update"]{flex:none;min-height:40px;white-space:nowrap}
 .mobile-native-update-details{padding:8px 2px 12px}
 .mobile-native-update-details p,.mobile-native-error{margin:0 0 6px}
 .mobile-native-update-details p:empty{display:none}
 .mobile-native-update-details button{min-height:40px}
 .mobile-native-error{color:#a52b39}
}


/* mobile-office.css */
/* Phone layouts for the existing office workspaces. The original controls,
   permissions, file inputs and event targets stay in place. */
@media (max-width:760px) {
  html body .shell :is(.office-layout,.approval-workspace,.rec-workspace,.materials-layout,.notice-workspace,.knowledge-blocks,.library-grid) {
    min-width:0;
    max-width:100%;
  }

  /* Shared spaces use the full phone width. Space navigation occupies a
     short strip above files instead of taking half of a narrow screen. */
  html body .shell #main>.office-layout,
  html body .shell .office-layout:not(.office-sidebar-collapsed) {
    display:flex;
    flex-direction:column;
    gap:0;
    grid-template-columns:none;
    overflow:hidden;
  }
  html body .shell .office-layout>.office-sidebar {
    width:100%;
    flex:none;
    max-height:min(210px,38dvh);
    padding:6px 8px 8px;
    border:0;
    border-bottom:1px solid var(--crm-border,#e9edf0);
    overflow:auto;
    overscroll-behavior:contain;
  }
  html body .shell .office-layout.office-sidebar-collapsed>.office-sidebar {display:none}
  html body .shell .office-sidebar-heading {display:flex;align-items:center;padding:0;min-height:40px;gap:6px}
  html body .shell .office-sidebar-heading>strong {margin-right:auto}
  html body .shell .office-sidebar-tabs,
  html body .shell .office-space-links {
    display:flex;
    gap:6px;
    margin:0;
    padding:3px 0;
    min-height:0;
    flex:none;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  html body .shell .office-sidebar :is(.office-nav,.office-space-link) {
    display:flex;
    flex:0 0 auto;
    width:auto;
    align-items:center;
    gap:6px;
    min-height:40px;
    max-width:240px;
    padding:8px 10px;
    margin:0;
    white-space:nowrap;
  }
  html body .shell .office-sidebar .office-space-link>span:nth-child(2) {overflow:hidden;text-overflow:ellipsis}
  html body .shell .office-sidebar-label {display:flex;align-items:center;gap:8px;padding:4px 0 0;margin:0;min-height:26px}
  html body .shell .office-sidebar-note {display:none}
  html body .shell .office-layout>.office-content {width:100%;min-width:0;flex:1;min-height:0;overflow:hidden}
  html body .shell .office-overview {padding:10px}
  html body .shell .office-overview-heading {gap:8px;align-items:flex-start;margin-bottom:10px}
  html body .shell .office-overview-heading>div {min-width:0;flex-wrap:wrap}
  html body .shell .office-overview-heading h2 {margin:0;min-width:0;overflow-wrap:anywhere}
  html body .shell .office-spaces-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  html body .shell .office-space-card {min-width:0;overflow:hidden}
  html body .shell .office-card-open {display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;min-width:0;min-height:82px;text-align:left;padding:9px 44px 9px 10px;gap:10px}
  html body .shell .office-cover {width:56px;height:56px;min-height:0;padding:7px;border-radius:9px}
  html body .shell .office-cover>span {font-size:32px}
  html body .shell .office-card-copy {padding:0;min-width:0}
  html body .shell .office-card-copy :is(h3,p) {margin:0 0 4px;overflow-wrap:anywhere}
  html body .shell .office-card-copy>div {display:flex;flex-wrap:wrap;gap:3px 8px}
  html body .shell .office-pin {width:40px;min-width:40px;min-height:40px;right:4px;top:20px}
  html body .shell .office-room-summary {padding:8px;gap:6px;align-items:flex-start;flex-wrap:wrap}
  html body .shell .office-room-summary .office-room-copy {flex:1 1 calc(100% - 48px);min-width:0}
  html body .shell .office-room-title {gap:5px;flex-wrap:wrap}
  html body .shell .office-room-title h2 {min-width:0;overflow-wrap:anywhere}
  html body .shell .office-room-copy>p {margin:4px 0 0;overflow-wrap:anywhere}
  html body .shell .office-room-summary .office-room-actions {width:100%;padding:0;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
  html body .shell .office-toolbar {display:flex;flex-wrap:wrap;gap:7px;padding:8px;min-width:0}
  html body .shell .office-tool-actions {display:flex;flex:1 1 100%;gap:6px;flex-wrap:wrap;min-width:0;margin:0}
  html body .shell .office-tool-actions>.button {flex:0 1 auto;white-space:normal}
  html body .shell .office-toolbar .office-search {display:flex;flex:1 1 100%;width:100%;min-width:0;max-width:none;margin:0;order:2}
  html body .shell .office-search input {min-width:0;width:100%;flex:1}
  html body .shell .office-toolbar .office-view-switch {margin:0 0 0 auto;display:flex;gap:5px;flex:none;order:3}
  html body .shell .office-breadcrumb {gap:5px;padding:6px 9px;flex-wrap:wrap;min-width:0}
  html body .shell .office-breadcrumb>div {min-width:0;max-width:100%;display:flex;align-items:center;gap:5px;overflow:auto;white-space:nowrap}
  html body .shell #office-sync-status {overflow-wrap:anywhere;max-width:100%}
  html body .shell .office-content>.office-file-area {min-height:70px;overflow:auto;overscroll-behavior:contain}
  html body .shell .office-file-area>.office-table-wrap {padding:0 8px 8px;max-width:100%;overflow:auto}
  html body .shell .office-file-table {display:block;width:100%;min-width:0!important;table-layout:auto}
  html body .shell .office-file-table thead {display:block;position:sticky;top:0;z-index:3;background:var(--crm-surface,#fff)}
  html body .shell .office-file-table thead tr {display:flex;align-items:center;gap:3px;overflow-x:auto;border-bottom:1px solid var(--crm-border,#e9edf0)}
  html body .shell .office-file-table thead th {display:block;width:auto!important;min-width:0;max-width:none;padding:0;border:0;flex:0 0 auto}
  html body .shell .office-file-table thead th:first-child {width:34px!important;display:grid;place-items:center}
  html body .shell .office-file-table thead th:last-child {display:none}
  html body .shell .office-file-table thead th>button {min-height:40px;padding:7px 9px;white-space:nowrap}
  html body .shell .office-file-table tbody {display:block}
  html body .shell .office-file-table tbody tr {display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:2px 7px;padding:10px 0;border-bottom:1px solid var(--crm-border,#e9edf0);min-width:0}
  html body .shell .office-file-table tbody td {display:block;width:auto!important;min-width:0;max-width:none;height:auto;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
  html body .shell .office-file-table tbody td:first-child {grid-column:1;grid-row:1/5;display:flex;align-items:flex-start;justify-content:center;padding-top:10px}
  html body .shell .office-file-table tbody td:nth-child(2) {grid-column:2/4;grid-row:1;padding-right:44px}
  html body .shell .office-file-table tbody td:nth-child(3) {grid-column:2;grid-row:2;color:var(--crm-muted,#8c939d)}
  html body .shell .office-file-table tbody td:nth-child(4) {grid-column:2;grid-row:3;color:var(--crm-muted,#8c939d)}
  html body .shell .office-file-table tbody td:nth-child(5) {grid-column:3;grid-row:3;align-self:center;text-align:right;color:var(--crm-muted,#8c939d)}
  html body .shell .office-file-table tbody td:last-child {grid-column:3;grid-row:1/3;justify-self:end;align-self:start;z-index:1}
  html body .shell .office-file-primary {display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
  html body .shell .office-file-primary>.office-filename {display:flex;align-items:center;width:100%;max-width:100%;min-width:0;min-height:40px;gap:7px;text-align:left;white-space:normal}
  html body .shell .office-layout .office-file-primary .office-item-name {max-width:none!important;min-width:0;overflow-wrap:anywhere;white-space:normal;overflow:visible;text-overflow:clip}
  html body .shell .office-row-actions {display:flex;flex-direction:column;gap:4px}
  html body .shell .office-file-table :is(input[type=checkbox]) {width:20px;height:20px;margin:0}
  html body .shell .office-file-table .office-select-cell {min-height:40px}
  html body .shell .office-selection-bar {padding:8px;gap:6px;align-items:flex-start;flex-wrap:wrap}
  html body .shell .office-selection-bar>div {display:flex;max-width:100%;overflow-x:auto;flex-wrap:nowrap;gap:5px;padding-bottom:3px}
  html body .shell .office-selection-bar button {flex:none;white-space:nowrap}
  html body .shell .office-files-grid,
  html body .shell .office-layout:not(.office-sidebar-collapsed) .office-files-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
  html body .shell .office-files-grid .office-file-thumbnail {height:72px}
  html body .shell .office-file-open {min-width:0;min-height:40px}
  html body .shell .office-file-open>strong {white-space:normal;overflow-wrap:anywhere}
  html body .shell .office-columns {max-width:100%;min-width:0;overflow:auto;scroll-snap-type:x proximity}
  html body .shell .office-file-column {width:min(270px,calc(100vw - 46px));min-width:min(270px,calc(100vw - 46px));scroll-snap-align:start}
  html body .shell .office-file-column .office-column-item {min-height:40px}
  html body .shell .office-room-footer {padding:7px 9px;gap:4px;flex-wrap:wrap}
  html body .shell .office-room-footer>span {max-width:100%;overflow-wrap:anywhere}

  /* Approval views are real, horizontally scrollable tabs. No tiny sidebar
     or squeezed vertical characters on phones. */
  html body .shell #approval-workspace .approval-layout {display:flex;flex-direction:column;gap:8px;min-width:0}
  html body .shell #approval-workspace .approval-nav {display:flex;align-items:center;flex:none;gap:6px;width:100%;max-width:100%;height:auto;max-height:none;padding:6px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;border:0;border-radius:8px;scrollbar-width:none}
  html body .shell #approval-workspace .approval-nav>button {display:flex;align-items:center;flex:0 0 auto;width:max-content;min-width:80px;min-height:42px;margin:0;padding:8px 11px;gap:6px;white-space:nowrap;word-break:normal;writing-mode:horizontal-tb}
  html body .shell #approval-workspace .approval-nav>p {display:none}
  html body .shell #approval-workspace .approval-content {width:100%;padding:10px;min-width:0;overflow:auto}
  html body .shell .approval-section-heading {align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:10px}
  html body .shell .approval-section-heading h2 {margin:0;min-width:0;overflow-wrap:anywhere}
  html body .shell .approval-cards {display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  html body .shell .approval-card {display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:4px 9px;min-height:0;padding:11px!important;text-align:left}
  html body .shell .approval-card .approval-card-symbol {grid-column:1;grid-row:1/4;width:40px;height:40px;align-self:start}
  html body .shell .approval-card h3 {grid-column:2;grid-row:1;margin:0;overflow-wrap:anywhere}
  html body .shell .approval-card p {grid-column:2;grid-row:2;margin:0;min-width:0;overflow-wrap:anywhere}
  html body .shell .approval-card small {grid-column:2;grid-row:3;margin:0;min-width:0;overflow-wrap:anywhere}
  html body .shell .approval-card .button {grid-column:2;grid-row:4;justify-self:start;min-width:110px;min-height:40px;margin-top:4px;padding:8px 10px;align-self:auto}
  html body .shell .approval-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px;min-width:0;margin-bottom:10px}
  html body .shell .approval-filters>* {min-width:0;max-width:100%}
  html body .shell .approval-filters :is(input,select) {width:100%;min-width:0}
  html body .shell .approval-row {display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:6px 8px;width:100%;min-width:0;padding:11px 7px;text-align:left}
  html body .shell .approval-row-main {min-width:0;overflow-wrap:anywhere}
  html body .shell .approval-row-main :is(strong,span,small) {display:block;white-space:normal;overflow-wrap:anywhere}
  html body .shell .approval-row>.approval-status {grid-column:2;justify-self:start}
  html body .shell .approval-row>span:last-child {grid-column:3;grid-row:1/3}
  html body .shell .approval-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html body .shell .approval-stat-group>summary {display:block;padding:10px;min-height:44px;overflow-wrap:anywhere}
  html body .shell .approval-stat-group>summary>span {display:block;margin-top:5px;white-space:normal}
  html body .shell .approval-manage-row {display:flex;gap:8px;align-items:center;min-width:0}
  html body .shell .approval-manage-row>div {min-width:0;flex:1;overflow-wrap:anywhere}

  /* Recording actions are separated into clear rows, with the same study,
     import, export and file controls. */
  html body .shell .rec-header {margin-bottom:9px}
  html body .shell .rec-heading {gap:9px;min-width:0}
  html body .shell .rec-heading>div {min-width:0}
  html body .shell .rec-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}
  html body .shell .rec-metrics>div {padding:9px;gap:7px;min-width:0}
  html body .shell .rec-metrics small {white-space:normal;overflow-wrap:anywhere}
  html body .shell .rec-workspace>.rec-content {display:flex;flex-direction:column;gap:8px;min-width:0}
  html body .shell .rec-content>.rec-sidebar {display:flex;align-items:center;flex:none;width:100%;height:auto;max-height:60px;padding:5px;gap:6px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin:0}
  html body .shell .rec-sidebar :is(.rec-sidebar-title,.rec-sidebar-divider,.rec-sidebar-tip) {display:none}
  html body .shell .rec-sidebar .rec-directory {flex:0 0 auto;width:auto;min-height:42px;margin:0;padding:8px 11px;white-space:nowrap}
  html body .shell .rec-content>.rec-library {min-width:0;width:100%;display:flex;flex-direction:column;min-height:0}
  html body .shell .rec-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:8px;min-width:0}
  html body .shell .rec-toolbar .rec-import-actions {display:flex;flex:1 1 100%;width:100%;gap:7px;min-width:0}
  html body .shell .rec-import-actions>.button {flex:1;min-width:0;min-height:42px;white-space:normal;padding:8px 7px}
  html body .shell .rec-toolbar #rec-search {display:flex;flex:1 1 100%;width:100%;max-width:none;min-width:0;gap:6px;order:1}
  html body .shell #rec-search input {width:100%;min-width:0;flex:1}
  html body .shell .rec-toolbar #rec-learning {flex:1;max-width:100%;min-width:100px;order:2}
  html body .shell .rec-toolbar>[data-rec=export] {flex:0 0 auto;order:3}
  html body .shell .rec-toolbar .rec-view-switch {display:flex;gap:4px;margin-left:auto;order:4}
  html body .shell .rec-toolbar>[data-rec=refresh] {order:5}
  html body .shell .rec-list-caption {padding:7px 9px;gap:5px;flex-wrap:wrap}
  html body .shell .rec-library>.rec-compact-list {max-height:none;min-height:0;overflow:auto}
  html body .shell .rec-compact-row {display:grid;grid-template-columns:28px minmax(0,1fr);gap:4px 7px;padding:11px 7px;min-width:0}
  html body .shell .rec-list-select {grid-column:1;grid-row:1/6;display:grid;align-content:start;place-items:center;min-height:40px;padding-top:10px}
  html body .shell .rec-list-select>input {width:20px;height:20px;margin:0}
  html body .shell .rec-list-title {display:flex;grid-column:2;grid-row:1;min-width:0;min-height:40px;text-align:left;gap:7px}
  html body .shell .rec-list-title>span:last-child {min-width:0}
  html body .shell .rec-list-title :is(strong,small) {display:block;white-space:normal;overflow-wrap:anywhere;max-width:none}
  html body .shell .rec-list-owner {display:block;grid-column:2;grid-row:2;white-space:normal;overflow-wrap:anywhere}
  html body .shell .rec-list-owner small {display:inline;margin-left:7px}
  html body .shell .rec-list-category {display:block;grid-column:2;grid-row:3;overflow-wrap:anywhere}
  html body .shell .rec-compact-row>.rec-status {display:block;grid-column:2;grid-row:4;justify-self:start}
  html body .shell .rec-list-size {display:none}
  html body .shell .rec-list-actions {display:flex;flex-direction:row;flex-wrap:wrap;grid-column:2;grid-row:5;gap:6px;margin-top:3px;min-width:0}
  html body .shell .rec-list-actions>.button {min-height:40px!important;min-width:40px;max-width:100%;padding:8px 10px!important}
  html body .shell .rec-library>.rec-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-height:0;overflow:auto}
  html body .shell .rec-card {min-width:0}
  html body .shell .rec-card h3>button {min-height:40px;text-align:left}
  html body .shell .rec-card-bottom {display:flex;gap:5px;flex-wrap:wrap}
  html body .shell .rec-card-buttons {display:flex;gap:6px;flex-wrap:wrap}
  html body .shell .rec-card-buttons>.button {min-height:40px!important;min-width:40px;padding:8px!important}

  /* Knowledge and materials do not share a desktop left/right split on a
     phone. Wide authored tables remain scrollable inside their own block. */
  html body .shell .library-compact-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:9px;min-width:0;max-width:100%}
  html body .shell .library-compact-toolbar>strong {min-width:0;max-width:100%;overflow-wrap:anywhere}
  html body .shell .library-compact-toolbar>.top-actions {display:flex;flex:1 1 100%;width:100%;margin:0;gap:6px;flex-wrap:wrap;min-width:0}
  html body .shell .library-compact-toolbar>.top-actions>.button {flex:0 1 auto;min-width:0;white-space:normal}
  html body .shell .library-ai-web-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%;margin:0;padding:6px 0}
  html body .shell .knowledge-compact-toolbar>.library-ai-web-toolbar {flex:1 1 100%;order:3}
  html body .shell .knowledge-compact-toolbar>.top-actions {order:4}
  html body .shell .library-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
  html body .shell .library-card-v2 {min-width:0;padding:12px;gap:9px}
  html body .shell .library-card-v2 .library-open {min-width:0;max-width:100%;min-height:44px}
  html body .shell .library-open :is(strong,small) {white-space:normal;overflow-wrap:anywhere;max-width:100%}
  html body .shell .knowledge-blocks {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;min-width:0}
  html body .shell .knowledge-block {width:100%;min-width:0;max-width:100%;margin:0;padding:12px;overflow:hidden}
  html body .shell .knowledge-block .panel-head {display:flex;flex-wrap:wrap;gap:7px;min-width:0}
  html body .shell .knowledge-block>.rich-document {min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
  html body .shell .knowledge-block :is(.library-table-wrap,.library-mindmap) {width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior:contain}
  html body .shell .knowledge-block .library-table {min-width:max-content;max-width:none}
  html body .shell .knowledge-block .library-mindmap>div {min-width:max-content}
  html body .shell .materials-layout {display:flex;flex-direction:column;gap:9px;height:auto;min-height:0;max-width:100%}
  html body .shell .materials-layout>.material-categories {display:block;flex:none;width:100%;min-width:0;max-width:100%;max-height:190px;overflow:auto;padding:9px;margin:0}
  html body .shell .material-categories>h2 {margin:0 0 7px}
  html body .shell .material-category-node {width:100%;min-width:0;max-width:100%}
  html body .shell .material-category-row {display:flex;align-items:center;gap:5px;min-width:0;width:100%}
  html body .shell .material-category-row>.department-select {flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
  html body .shell .material-category-children {padding-left:14px;min-width:0}
  html body .shell .material-categories .department-select {min-height:40px;width:100%;padding:8px 10px;margin:3px 0}
  html body .shell .materials-layout>.material-grid {display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;max-width:100%;gap:9px;overflow:visible}
  html body .shell .material-grid.material-list-view .material-card {display:grid;grid-template-columns:64px minmax(0,1fr);gap:9px;padding:10px!important;min-width:0;max-width:100%}
  html body .shell .material-list-view .material-preview-link {width:64px;align-self:start}
  html body .shell .material-list-view .material-preview-link img {width:64px!important;height:64px!important;min-height:0;object-fit:cover}
  html body .shell .material-list-view .material-card-body {display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px;min-width:0;padding:0}
  html body .shell .material-card-body>:is(strong,p,small) {margin:0;min-width:0;white-space:normal;overflow-wrap:anywhere}
  html body .shell .material-list-view .material-card-actions {display:flex;flex-direction:row;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}
  html body .shell .material-card-actions>.button {min-height:40px;min-width:40px;padding:8px!important}
  html body .shell .material-grid:not(.material-list-view) .material-preview-link img {height:180px!important;max-width:100%;object-fit:cover}
  html body .shell .material-view-switch {display:flex;flex-wrap:nowrap;gap:5px;max-width:100%}

  /* Received/published/completed and their actual search/publish operations
     stay available, with separate phone rows instead of a crowded PC bar. */
  html body .shell .notice-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px;min-width:0;max-width:100%}
  html body .shell .notice-boxes {display:flex;flex:1 1 100%;width:100%;min-width:0;gap:5px;overflow-x:auto}
  html body .shell .notice-boxes>.button {flex:1 0 auto;min-width:84px;min-height:42px;padding:8px;white-space:nowrap}
  html body .shell #notice-search {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;flex:1 1 100%;width:100%;margin:0;min-width:0;max-width:100%}
  html body .shell #notice-search>input {grid-column:1/3;width:100%;min-width:0;max-width:none}
  html body .shell #notice-search>select {grid-column:1;width:100%;min-width:0;max-width:none}
  html body .shell #notice-search>.button {grid-column:2;min-width:62px}
  html body .shell .notice-toolbar>[data-notice-publish] {margin-left:auto;min-height:42px}
  html body .shell .notice-list {display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-width:0}
  html body .shell .notice-item {min-width:0;max-width:100%;padding:12px!important}
  html body .shell .notice-item :is(header,footer,.notice-item-line) {display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
  html body .shell .notice-item :is(.notice-title,.notice-meta) {min-width:0;white-space:normal;overflow-wrap:anywhere;max-width:100%}
  html body .shell .notice-pagination {display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap;padding:8px 0}
  html body .shell .notice-pagination>span {flex:1 1 100%}

  /* Touch sizes target interface controls only. Authored document typography,
     audio elements, drawing tools and the original field editors are retained. */
  html body .shell :is(.office-layout,.office-popover,.approval-workspace,.rec-workspace,.library-compact-toolbar,.library-grid,.knowledge-blocks,.material-categories,.material-card-actions,.notice-workspace) :is(button:not(.doc-number-badge),a.button,.office-download-link,.office-download-selected) {min-height:40px;touch-action:manipulation}
  html body .shell :is(.office-layout,.approval-workspace,.rec-workspace,.notice-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select) {min-height:42px}
  html body .shell .office-icon-button {min-width:40px;min-height:40px}
  html body .shell .knowledge-block>a[download] {display:inline-flex;align-items:center;min-height:40px}
  html body :is(.office-popover,.material-form-popover,.rec-import-popover) {max-width:calc(100vw - 16px)}
  html body :is(.office-popover,.material-form-popover,.rec-import-popover) :is(button,a.button,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select) {min-height:40px;touch-action:manipulation}
}

/* Micro-drive presentation: these are dedicated phone rows and controls,
   rather than a compressed desktop sidebar or card grid. */
@media(max-width:760px){
 html body .shell:has(#main>.mobile-drive-workspace) .workspace>.topbar{display:none}
 html body .shell #main:has(>.mobile-drive-workspace){padding:0!important;background:#fff;min-width:0}
 html body .shell #main>.mobile-drive-workspace{width:100%;max-width:100%;height:var(--workspace-available-height,calc(100dvh - 76px));min-height:220px;margin:0;padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:hidden;color:#191c20;font-size:16px;font-weight:400}
 html body .shell .mobile-drive-workspace>.office-sidebar{display:none!important}
 html body .shell .mobile-drive-workspace>.office-content{width:100%;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}
 html body .shell .mobile-drive-header{display:flex;align-items:center;gap:6px;height:58px;min-height:58px;padding:5px 10px;background:#fff;border-bottom:0;flex:none;box-sizing:border-box}
 html body .shell .mobile-drive-header>strong{flex:1;min-width:0;margin:0;font-size:18px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#15191d}
 html body .shell .mobile-drive-header>div{display:flex;gap:1px;flex:none}
 html body .shell .mobile-drive-header button{display:grid;place-items:center;flex:none;width:40px;min-width:40px;height:44px;min-height:44px;margin:0;padding:8px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:26px;font-weight:400;color:#242b31}
 html body .shell .mobile-drive-header svg{width:24px;height:24px;stroke-width:1.65}
 html body .shell .mobile-drive-tabs{display:flex;align-items:stretch;gap:23px;padding:0 15px;height:45px;min-height:45px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;border-bottom:1px solid #f1f2f4;background:#fff;flex:none;scrollbar-width:none}
 html body .shell .mobile-drive-tabs button{position:relative;display:block;flex:none;min-height:44px;padding:10px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#b1b4b8;font-size:14px;font-weight:400;white-space:nowrap}
 html body .shell .mobile-drive-tabs button.is-active{color:#161b22;font-weight:500}
 html body .shell .mobile-drive-tabs button.is-active:after{content:'';position:absolute;bottom:0;left:25%;right:25%;height:3px;background:#387ccc;border-radius:1px}
 html body .shell .mobile-drive-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#fff;padding:0 13px}
 html body .shell .mobile-drive-group-label{font-size:12px;color:#a2a6ac;margin:18px 0 4px;padding:0 2px;font-weight:400}
 html body .shell .mobile-drive-space-row,html body .shell .mobile-drive-file-list>.office-item{display:flex;align-items:center;gap:8px;min-width:0;min-height:69px;margin:0;padding:5px 0;border:0;border-bottom:1px solid #f6f7f8;border-radius:0;background:#fff;box-shadow:none;position:relative}
 html body .shell .mobile-drive-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:58px;max-width:100%;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;white-space:normal;font-weight:400;color:#181c21}
 html body .shell .mobile-drive-open>span{display:block;min-width:0;flex:1}
 html body .shell .mobile-drive-open strong{display:block;margin:0;font-size:16px;font-weight:400;color:#191c20;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
 html body .shell .mobile-drive-open small{display:block;margin-top:3px;font-size:12px;line-height:1.4;font-weight:400;color:#a8acb1;overflow-wrap:anywhere}
 html body .shell .mobile-drive-file-icon{display:block;flex:none;width:29px;height:31px;filter:none}
 html body .shell .mobile-drive-row-more{display:grid;place-items:center;flex:none;width:36px;min-width:36px;min-height:44px;margin:0;padding:6px;border:0;background:transparent;box-shadow:none;border-radius:0;color:#b6b9be;font-size:23px;font-weight:400}
 html body .shell .mobile-drive-thumbnail{display:block;flex:none;width:30px;height:34px;object-fit:cover;border-radius:2px}
 html body .shell .mobile-drive-breadcrumb{display:flex;align-items:center;gap:5px;min-height:40px;padding:1px 13px;overflow:auto;white-space:nowrap;font-size:12px;color:#b0b5bb;flex:none;scrollbar-width:none}
 html body .shell .mobile-drive-breadcrumb button{display:block;min-width:0;min-height:38px;padding:6px 0;border:0;background:none;box-shadow:none;border-radius:0;font-size:12px;font-weight:400;color:inherit;white-space:nowrap}
 html body .shell .mobile-drive-breadcrumb button:last-child{color:#3b424b}
 html body .shell .mobile-drive-office .office-file-area{flex:1;min-height:80px;max-height:none;height:auto;padding:0 13px;background:#fff;border:0;overflow:auto}
 html body .shell .mobile-drive-search{display:flex;align-items:center;gap:7px;padding:7px 13px;background:#f5f6f8;flex:none;min-width:0}
 html body .shell .mobile-drive-search[hidden]{display:none!important}
 html body .shell .mobile-drive-search input{flex:1;min-width:0;width:0;min-height:40px;border:0;background:#fff;box-shadow:none;border-radius:4px;font-size:16px;font-weight:400;padding:9px}
 html body .shell .mobile-drive-search button{min-height:40px;flex:none;border:0;background:transparent;box-shadow:none;padding:6px;color:#337bc6;font-size:15px}
 html body .shell .mobile-drive-empty{padding:50px 16px;text-align:center;font-size:14px;color:#acb1b7;font-weight:400}
 html body .shell .mobile-drive-sync{display:block;flex:none;max-height:28px;font-size:12px;color:#8192a1;overflow:hidden}
 html body .shell .mobile-drive-item-check{display:grid;place-items:center;min-height:44px;width:25px;min-width:25px;margin:0;flex:none}
 html body .shell .mobile-drive-item-check[hidden]{display:none!important}
 html body .shell .mobile-drive-item-check input{width:20px;height:20px;margin:0;accent-color:#387dc9}
 html body .shell .mobile-drive-office:not(.is-selecting) .office-selection-bar{display:none!important}
 html body .shell .mobile-drive-office .office-selection-bar{background:#f4f8fc;border-radius:0;flex:none;padding:7px 12px}
 html body .shell .mobile-drive-office .office-selection-bar button{min-height:40px;color:#3174bc}
 .mobile-drive-sheet-backdrop{position:fixed;inset:0;z-index:60000;display:flex;align-items:flex-end;background:#0005;overscroll-behavior:contain}
 .mobile-drive-sheet{width:100%;max-height:86dvh;overflow:auto;background:#f3f4f7;border-radius:14px 14px 0 0;padding:0 11px max(14px,env(safe-area-inset-bottom));box-sizing:border-box;color:#20252b;box-shadow:none;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px}
 .mobile-drive-sheet>header{display:flex;align-items:center;gap:11px;min-height:76px;padding:12px 4px;border-bottom:1px solid #edeef0;box-sizing:border-box}
 .mobile-drive-sheet>header>svg{width:31px;height:34px;flex:none}
 .mobile-drive-sheet>header>div{flex:1;min-width:0}
 .mobile-drive-sheet>header strong{display:block;font-size:16px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
 .mobile-drive-sheet>header small{display:block;color:#a4a8af;font-size:12px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
 .mobile-drive-sheet>header>button{border:0;border-radius:50%;width:38px;min-width:38px;height:40px;background:#e8ebef;color:#8a929a;font-size:24px;box-shadow:none}
 .mobile-drive-sheet-actions{margin:9px 0 0;padding:0;border-radius:10px;background:white;overflow:hidden}
 .mobile-drive-sheet-action{display:flex;align-items:center;gap:15px;width:100%;min-height:49px;margin:0;padding:12px 15px;box-sizing:border-box;border:0;border-bottom:1px solid #f1f3f5;background:#fff;box-shadow:none;color:#353c44;font-size:16px;font-weight:400;text-align:left;text-decoration:none;line-height:1.5}
 .mobile-drive-sheet-action:last-child{border-bottom:0}
 .mobile-drive-sheet-action>svg{flex:none;width:24px;height:25px}
 .mobile-drive-sheet-action.is-danger{color:#cb6c70}
 .mobile-drive-sheet-action:disabled{opacity:.35}
 .mobile-drive-sheet-content{background:#fff;border-radius:9px;margin-top:8px;padding:12px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
 .mobile-share-link-label{display:block;font-size:14px}.mobile-share-link-label textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;font-size:16px;min-height:80px}
 .mobile-drive-zoom-surface{touch-action:pan-x pan-y;transform-origin:0 0}
 html body .mobile-drive-image-modal{background:#060606!important;border-radius:0!important;color:white}
 html body .mobile-drive-image-modal .modal-body,html body .mobile-drive-image-modal .office-file-preview{background:#060606;color:white;padding:0!important;overflow:auto}
 html body .mobile-drive-image-modal .modal-header{background:#060606;color:white;border:0}
 html body .mobile-drive-image-modal .office-image-preview{display:block;width:100%;height:auto;max-width:none;max-height:none;object-fit:contain}
 html body .office-document-modal .office-document-read{padding:18px 14px;white-space:pre-wrap;line-height:1.8;background:white;color:#252b31;min-height:70vh;max-width:none;overflow-wrap:anywhere}
 html body .office-grid-modal .office-grid-viewport{touch-action:pan-x pan-y;overflow:auto}
 html body .office-grid-modal .office-grid-cell-editor{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:88px!important;width:calc(100vw - 24px)!important;min-height:48px!important;height:48px!important;z-index:2000;background:#fff;border:1px solid #438bce;border-radius:6px;font-size:18px!important;box-shadow:0 2px 14px #203a5a25}
 html body .shell .mobile-drive-recordings{display:flex;flex-direction:column;background:#fff}
 html body .shell .mobile-drive-recordings>.rec-library{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:#fff;overflow:hidden}
 html body .shell .mobile-drive-recordings .rec-compact-list{flex:1;min-height:0;width:100%;max-height:none;margin:0;padding:0 13px;border:0;border-radius:0;box-shadow:none;box-sizing:border-box;overflow:auto;background:#fff}
 html body .shell .mobile-drive-recording-row{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 0;margin:0;border:0;border-bottom:1px solid #f4f5f7;border-radius:0;background:white;box-shadow:none}
 html body .shell .mobile-drive-recording-status{display:flex;align-items:center;gap:8px;flex:none;padding:5px 13px;color:#adb2b8;font-size:12px}
 html body .shell .mobile-drive-recording-status select{width:auto;max-width:180px;min-height:32px;border:0;background:transparent;padding:3px 0;box-shadow:none;color:#8a929a;font-size:12px!important}
 html body .shell .mobile-drive-recording-status>span{margin-left:auto}
 html body .shell .mobile-drive-original-actions[hidden]{display:none!important}
 html body .shell .mobile-drive-materials{display:flex;flex-direction:column;background:#fff}
 html body .shell .mobile-drive-materials>.mobile-drive-content{padding:0 13px}
 html body .shell .mobile-drive-materials .mobile-drive-material-files{display:block!important;width:100%;min-width:0;margin:0;padding:0;background:#fff;overflow:visible;max-height:none}
 html body .shell .mobile-drive-materials .material-card.mobile-drive-space-row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:5px 0!important;border:0;border-bottom:1px solid #f4f5f7;border-radius:0;background:#fff;box-shadow:none;min-height:69px;overflow:visible}
 html body .shell .mobile-drive-materials .material-card>.mobile-drive-open{display:flex;flex-direction:row;align-items:center;flex:1;width:0;gap:12px;padding:6px 0;min-width:0;border-radius:0;text-align:left;overflow:visible}
 html body .shell .mobile-drive-materials .material-card .mobile-drive-thumbnail{flex:none;width:30px!important;height:34px!important;max-width:30px!important;min-height:0!important;object-fit:cover;border-radius:2px;transform:none}
 html body .shell .mobile-drive-material-files.is-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body .shell .mobile-drive-material-files.is-grid .material-card.mobile-drive-space-row{display:flex!important;flex-wrap:wrap;min-width:0;padding:8px 0!important}
 html body .shell .mobile-drive-material-files.is-grid .material-card>.mobile-drive-open{display:flex;flex:1 1 100%;width:100%;flex-direction:column;align-items:flex-start}
 html body .shell .mobile-drive-material-files.is-grid .material-card .mobile-drive-thumbnail{width:100%!important;max-width:100%!important;height:120px!important;object-fit:cover}
 html body .shell .mobile-drive-material-files.is-grid .mobile-drive-row-more{position:absolute;right:0;bottom:0}
 html body .mobile-drive-image-modal .material-detail-content{margin:0;padding:0;min-height:70vh;display:flex;align-items:center;justify-content:center;background:#060606;overflow:auto}
 html body .mobile-drive-image-modal .material-detail-content>:not(img){display:none}
 html body .mobile-drive-image-modal .material-detail-content>img{display:block;width:100%;max-width:none!important;height:auto;max-height:none!important;object-fit:contain;border-radius:0}
 html body .mobile-drive-image-modal .modal-footer{display:none!important}
 html body .mobile-drive-image-modal .modal-header h2{color:#fff;font-size:16px;font-weight:400}
 html body .mobile-drive-preview-more{display:grid;place-items:center;width:40px;min-width:40px;min-height:42px;padding:5px;border:0;background:transparent;color:inherit;box-shadow:none;font-size:25px}
}

/* Latest phone density: file and space rows are two thirds of the reference height. */
@media(max-width:760px){
 html body .shell .mobile-drive-workspace .mobile-drive-space-row,
 html body .shell .mobile-drive-workspace .mobile-drive-file-list>.office-item,
 html body .shell .mobile-drive-workspace .mobile-drive-recording-row,
 html body .shell .mobile-drive-materials .material-card.mobile-drive-space-row{min-height:49px;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box}
 html body .shell .mobile-drive-workspace .mobile-drive-open{min-height:48px;padding-top:4px!important;padding-bottom:4px!important;gap:11px}
 html body .shell .mobile-drive-open strong{font-size:15px!important;line-height:1.3!important;font-weight:400!important}
 html body .shell .mobile-drive-open small{font-size:11px!important;line-height:1.25!important;margin-top:2px}
 html body .shell .mobile-drive-row-more{width:44px;min-width:44px;min-height:44px;padding:10px;box-sizing:border-box}
 html body .shell .mobile-drive-row-more svg{display:block;width:22px;height:22px}
 html body .shell .mobile-drive-group-label{padding:6px 0 2px;margin:0;min-height:0;line-height:1.4;font-size:12px}
 html body .shell .mobile-drive-workspace .mobile-drive-file-icon{width:28px;height:30px;flex:none}
 html body .shell .mobile-drive-recording-row .mobile-drive-open small:last-child{display:none}
 html body .shell .mobile-drive-recordings .rec-compact-list.is-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}
 html body .shell .mobile-drive-recordings .rec-compact-list.is-grid>.mobile-drive-recording-row{position:relative;flex-wrap:wrap;border:1px solid #f0f2f5;padding:8px!important;min-width:0}
 html body .shell .mobile-drive-recordings .rec-compact-list.is-grid .mobile-drive-open{flex:1 1 100%;width:100%;flex-direction:column;align-items:flex-start}
 html body .shell .mobile-drive-recordings .rec-compact-list.is-grid .mobile-drive-file-icon{height:64px;width:64px;align-self:center;margin:8px}
 html body .shell .mobile-drive-recordings .rec-compact-list.is-grid .mobile-drive-row-more{position:absolute;right:0;top:0}
 html body .shell .mobile-drive-knowledge .library-grid{display:block;max-height:none;overflow:auto;padding:0 13px}
 html body .shell .mobile-drive-knowledge .library-card{display:flex;align-items:center;border:0;border-bottom:1px solid #f4f5f7;border-radius:0;box-shadow:none;background:white;margin:0;padding:0}
 html body .shell .mobile-drive-knowledge .library-open.mobile-drive-open{display:flex;flex:1;width:0;flex-direction:row;align-items:center;border:0;background:white;text-align:left;box-shadow:none}
 html body .shell .mobile-drive-knowledge .knowledge-blocks{display:block;max-height:none;overflow:auto;padding:0 13px;margin:0}
 html body .shell .mobile-drive-knowledge .knowledge-block{border:0;border-bottom:1px solid #eef0f3;border-radius:0;box-shadow:none;padding:12px 0;margin:0;background:white}
 html body .shell .mobile-drive-knowledge .library-table-wrap{max-width:100%;overflow:auto}
 html body .shell .mobile-drive-approvals>.approval-layout{display:flex;flex-direction:column;overflow:auto;min-height:0;flex:1}
 html body .shell .mobile-drive-approvals .approval-content{width:100%;padding:0 13px;min-width:0;box-sizing:border-box;overflow:visible}
 html body .shell .mobile-drive-approvals>.approval-nav{display:flex;flex:none;flex-direction:row;gap:0;border:0;border-top:1px solid #edf0f3;border-radius:0;padding:0;overflow-x:auto;background:#fff;min-height:54px}
 html body .shell .mobile-drive-approvals>.approval-nav>button{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:76px;min-height:52px;padding:5px 9px;font-size:12px;line-height:1.4;white-space:nowrap;border:0;background:#fff;border-radius:0;box-shadow:none;color:#7b858e}
 html body .shell .mobile-drive-approvals>.approval-nav>button.approval-active{color:#347bc6;background:#fff}
 html body .shell .mobile-drive-approvals>.approval-nav>p{display:none}
 html body .shell .mobile-drive-approvals .approval-section-heading{padding:10px 0;border:0;min-height:0}
 html body .shell .mobile-drive-approvals .approval-section-heading h2{font-size:13px;font-weight:400;color:#6f7b87}
 html body .shell .mobile-drive-approvals .approval-section-heading>span,.mobile-drive-approvals .approval-refresh{display:none!important}
 html body .shell .mobile-drive-approvals .approval-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
 html body .shell .mobile-drive-approvals .approval-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-height:105px;padding:12px 4px;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff;min-width:0}
 html body .shell .mobile-drive-approvals .approval-card-symbol{width:34px;height:35px;margin:0;background:none;box-shadow:none}
 html body .shell .mobile-drive-approvals .approval-card h3{margin:0;text-align:center;font-size:14px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
 html body .shell .mobile-drive-approvals .approval-card p,.mobile-drive-approvals .approval-card>small{display:none}
 html body .shell .mobile-drive-approvals .mobile-approval-template-hit{position:absolute;inset:0;width:100%;height:100%;opacity:0;padding:0;min-height:44px}
 html body .shell .mobile-drive-approvals .approval-card:has(button:disabled){opacity:.5}
 html body .shell .mobile-drive-notices .notice-toolbar[hidden]{display:none!important}
 html body .shell .mobile-drive-notices .notice-list{display:block;flex:1;overflow:auto;padding:0 13px;min-height:0}
 html body .shell .mobile-drive-notices .notice-item{border:0;border-bottom:1px solid #eef1f4;border-radius:0;box-shadow:none;background:white;margin:0;padding:13px 0}
 html body .shell .mobile-drive-notices .notice-pagination{padding:7px 13px;min-height:44px;flex:none}
}
@media(max-width:760px){
 html body :is(.office-popover,.material-form-popover,.rec-import-popover){left:8px!important;right:8px!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box}
 html body .shell .mobile-drive-materials .mobile-drive-open small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow-wrap:normal}
 html body .shell .mobile-drive-materials .mobile-drive-open small:last-child{display:none}
}
@media(max-width:760px){
 html body .modal-backdrop:has(>.mobile-drive-preview-modal),html body .modal-backdrop:has(>.mobile-drive-image-modal){position:fixed!important;inset:0!important;padding:0!important;margin:0!important;border-radius:0;align-items:stretch!important}
 html body .mobile-drive-preview-modal,html body .mobile-drive-image-modal{position:relative!important;inset:auto!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;display:flex;flex-direction:column;background:#fff;box-shadow:none!important;overflow:hidden}
 html body .mobile-drive-preview-modal>.modal-header,html body .mobile-drive-image-modal>.modal-header{display:flex;align-items:center;gap:7px;padding:5px 10px!important;min-height:54px;height:auto;box-sizing:border-box;border-bottom:1px solid #eff1f4;flex:none;background:white}
 html body .mobile-drive-preview-modal .modal-header h2,html body .mobile-drive-image-modal .modal-header h2{flex:1;min-width:0;order:1;padding:0!important;margin:0;font-size:16px!important;line-height:1.4;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body .mobile-drive-preview-back{order:0!important;min-width:38px;width:38px;min-height:44px;padding:8px!important;border:0;background:transparent;box-shadow:none}
 html body .mobile-drive-preview-back svg{width:23px;height:23px}
 html body .mobile-drive-preview-more,html body .mobile-drive-preview-command{order:2;flex:none;min-width:40px;width:auto;min-height:44px;padding:8px!important;border:0!important;background:transparent!important;color:#303c47;box-shadow:none!important;font-size:16px}
 html body .mobile-drive-preview-command svg{width:22px;height:22px}
 html body .mobile-drive-preview-modal>.modal-body{flex:1;min-height:0;max-height:none;overflow:auto!important;padding:0!important;background:white}
 html body .mobile-drive-preview-modal .modal-footer{display:none!important}
 html body .mobile-drive-preview-modal .office-document-header{display:flex;gap:4px;flex-wrap:wrap;padding:6px 12px;font-size:11px;color:#b3b7bd;border-bottom:1px solid #f3f4f6}
 html body .mobile-drive-preview-modal .office-document-header span{font-size:11px!important;color:inherit;background:none;border:0;padding:0}
 html body .mobile-drive-preview-modal #office-document-form{height:100%;display:flex;flex-direction:column;min-height:0}
 html body .mobile-drive-preview-modal .office-document-read{flex:1;min-height:0;margin:0;padding:16px;font-size:16px;line-height:1.8;color:#202830;overflow:auto}
 html body .mobile-drive-preview-modal .office-document-editor{flex:1;width:100%;height:100%;min-height:60dvh;margin:0;padding:16px;border:0;box-shadow:none;border-radius:0;font-size:16px;line-height:1.8;box-sizing:border-box}
 html body .mobile-drive-preview-modal .office-grid-host{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:0}
 html body .mobile-drive-preview-modal .office-grid-viewport{height:auto!important;max-height:none!important;flex:1;min-height:120px;overflow:auto!important}
 html body .mobile-drive-preview-modal:not(.mobile-drive-editing) .office-grid-toolbar,html body .mobile-drive-preview-modal:not(.mobile-drive-editing) .office-grid-formula{display:none}
 html body .mobile-drive-preview-modal.mobile-drive-editing .office-grid-toolbar{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:4px;max-width:100%;box-sizing:border-box}
 html body .mobile-drive-preview-modal .office-grid-toolbar>*{flex:none;min-height:40px}
 html body .mobile-drive-preview-modal .office-grid-formula{display:flex;flex:none;max-width:100%;box-sizing:border-box}
 html body .mobile-drive-preview-modal .office-grid-formula-input{min-width:0;min-height:40px;font-size:16px}
 html body .mobile-drive-preview-modal .office-grid-footer{display:block;font-size:11px;flex:none;padding:4px 8px;white-space:normal}
 html body .mobile-drive-image-modal>.modal-header{background:#060606!important;color:white}
 html body .mobile-drive-image-modal .mobile-drive-preview-more,html body .mobile-drive-image-modal .mobile-drive-preview-back{color:inherit}
 html body .mobile-drive-preview-modal .office-preview-meta{padding:6px 12px;display:flex;flex-wrap:wrap;gap:5px;font-size:11px;color:#a7afb7}
 html body .mobile-drive-preview-modal .office-file-preview{min-height:70dvh;padding:0;background:#fff;overflow:auto}
 html body .mobile-drive-preview-modal .office-file-preview>video,html body .mobile-drive-preview-modal .office-file-preview>audio{display:block;max-width:100%;margin:auto}
 html body .mobile-drive-preview-modal .office-pdf-preview{width:100%;height:calc(100dvh - 110px);border:0}
}
@media(max-width:760px){
 html body :is(.mobile-drive-preview-modal,.mobile-drive-image-modal)>.modal-header>.top-actions{display:none!important}
 html body :is(.mobile-drive-preview-modal,.mobile-drive-image-modal) [data-action=maximize-modal]{display:none!important}
 html body .mobile-drive-approvals .approval-content{border:0!important;border-radius:0!important;background:white;box-shadow:none!important}
 html body .mobile-drive-approvals .approval-filters{background:#f7f8fa;border:0;border-radius:5px}
}
@media(max-width:760px){
 html body .shell .mobile-drive-workspace .mobile-drive-item-check{width:40px;min-width:40px;min-height:44px}
 html body .shell .mobile-drive-approvals .mobile-approval-template-hit{min-width:0!important;max-width:100%;margin:0!important;padding:0!important}
}
@media(max-width:760px){
 /* The original .library-card is a column. File rows must explicitly replace
    that direction so the flexible file opener has the full remaining width. */
 html body .shell .mobile-drive-knowledge .library-card.mobile-drive-space-row{flex-direction:row!important;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0;width:100%;box-sizing:border-box}
 html body .shell .mobile-drive-knowledge .library-card.mobile-drive-space-row>.library-open{display:flex;flex-direction:row!important;flex:1 1 0%;width:0;min-width:0;max-width:none;min-height:48px;gap:11px;padding:4px 0}
 html body .shell .mobile-drive-knowledge .library-card.mobile-drive-space-row>.library-open>span{display:block;flex:1;min-width:0;width:auto}
 html body .shell .mobile-drive-knowledge .library-card.mobile-drive-space-row>.mobile-drive-row-more{flex:0 0 44px;width:44px;min-height:44px;align-self:center;margin:0}
}


/* mobile-business.css */
/* Mobile business screens use the real grid and organization controls. Nothing
   in this file changes the desktop layout, data, formulas or authorization. */
@media (max-width:760px) {
  html body .shell #main:has(>.workflow-workspace) {padding:8px;max-width:100%;min-width:0}
  html body .shell .workflow-workspace {width:100%;max-width:100%;min-width:0;overflow:hidden}
  html body .shell .workflow-workspace>.workflow-topbar {display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px;margin-bottom:8px;border-radius:10px;flex:none}
  html body .shell .workflow-workspace .workflow-topbar>.workflow-tabs,
  html body .shell .workflow-workspace>.workflow-tabs {display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;width:100%;min-width:0;gap:4px;padding:0 0 3px;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  html body .shell .workflow-workspace .workflow-tabs>button {flex:none;min-height:42px;padding:8px 12px}
  html body .shell .workflow-topbar>.workflow-toolbar {display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-content:stretch;gap:7px;width:100%;min-width:0;flex:none}
  html body .shell .workflow-topbar>.workflow-toolbar.compact-panel-collapsed {height:auto!important;min-height:0!important;margin:0;padding:0!important}
  html body .shell .workflow-topbar .workflow-search {display:flex;order:0;width:100%;min-width:0;max-width:none;flex:none;margin:0;gap:6px}
  html body .shell .workflow-topbar>.workflow-toolbar.compact-panel-collapsed>.workflow-search {display:flex!important}
  html body .shell .workflow-topbar .workflow-search input {width:0;min-width:0;max-width:none;min-height:44px;flex:1;padding:8px 10px;border-radius:7px}
  html body .shell .workflow-topbar .workflow-search>button {flex:none;min-height:44px;padding-inline:12px}
  html body .shell .workflow-topbar .workflow-header-actions {order:1;display:flex;flex-wrap:nowrap;align-items:center;gap:7px;max-width:100%;min-width:0;width:100%;margin:0;padding-bottom:3px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain}
  html body .shell .workflow-topbar>.workflow-toolbar.compact-panel-collapsed>.workflow-header-actions:not(:empty) {display:flex!important}
  html body .shell .workflow-topbar .workflow-header-actions>.button {flex:none;min-height:42px;padding:8px 11px}
  html body .shell .workflow-toolbar-tools {order:2;display:block;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:2px;overscroll-behavior-inline:contain}
  html body .shell .workflow-toolbar-tools .workflow-grid-tools {display:flex;flex-wrap:nowrap;min-width:max-content;gap:6px}
  html body .shell .workflow-toolbar-tools .workflow-grid-tools button {flex:none;min-height:40px;padding:7px 10px}
  html body .shell .workflow-topbar .workflow-save-status {order:3;margin:0;white-space:normal}
  html body .shell .workflow-topbar>.workflow-toolbar.compact-panel-collapsed>.workflow-save-status {display:block!important}
  html body .shell .workflow-topbar .workflow-toolbar>.compact-panel-toggle {position:static;order:4;display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px!important;width:100%;height:auto;transform:none;margin:0;padding:6px!important;border:0!important;border-radius:6px}
  html body .shell .workflow-topbar .workflow-toolbar>.compact-panel-toggle::before {content:'表格工具'}
  html body .shell .workflow-content,html body .shell #workflow-panel,html body .shell #workflow-grid-host {min-width:0;max-width:100%}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-scroll {width:100%;max-width:100%;min-width:0;min-height:130px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table tbody :is(td,.workflow-cell) {height:44px;min-height:44px}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table .workflow-cell {display:flex;align-items:center;padding:8px;line-height:1.45}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table :is(.workflow-customer-link,.workflow-name-edit,.workflow-fixed .button) {min-height:40px!important;display:inline-flex;align-items:center}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table .workflow-cell-editor:not(.workflow-tags-editor) {height:44px!important;min-height:44px!important;padding:8px!important}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-formula {flex:none;min-height:46px;padding:5px;gap:6px}
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-formula-input {min-height:36px!important}
  html body .shell #workflow-pagination {max-width:100%;min-width:0}
  html body .shell #workflow-pagination>.workflow-pagination {padding:7px;gap:6px;justify-content:space-between}
  html body .shell #workflow-pagination :is(button,select,input),html body .shell .warehouse-op-pagination :is(button,select) {min-height:40px;max-width:100%}
  html body .shell #workflow-pagination .workflow-inline-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0}
  html body .shell .workflow-workspace :is(.workflow-analysis-tools,.workflow-ad-analysis-toolbar) {width:100%;max-width:100%;min-width:0;flex-wrap:wrap;align-items:center;gap:8px;padding:8px}
  html body .shell .workflow-ad-analysis-toolbar .workflow-analysis-tools {flex:1 1 100%;width:100%;flex-wrap:wrap}
  html body .shell .workflow-analysis-tools>label {flex:1 1 130px;min-width:0;max-width:100%}
  html body .shell .workflow-analysis-tools :is(input,select,button) {min-height:42px;max-width:100%}
  html body .shell .workflow-workspace :is(.workflow-analysis-summary,.warehouse-op-summary) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
  html body .shell .workflow-workspace :is(.workflow-analysis-summary,.warehouse-op-summary)>span {display:block;min-width:0;max-width:100%;margin:0;padding:10px;white-space:normal;overflow-wrap:anywhere}
  html body .shell .workflow-workspace :is(.workflow-analysis-summary,.warehouse-op-summary)>small {grid-column:1/-1;min-width:0}
  html body .shell .workflow-workspace :is(.workflow-table-wrap,.workflow-analysis-scroll,.warehouse-op-table-scroll) {max-width:100%;min-width:0;overflow:auto;touch-action:pan-x pan-y;overscroll-behavior:contain}
  html body .shell .workflow-workspace :is(.workflow-assets-analysis,.workflow-detail-grid,.workflow-handoff-grid,.workflow-grant-fields) {grid-template-columns:minmax(0,1fr)!important;min-width:0}
  html body .shell .workflow-workspace :is(.workflow-handoff-contract,.workflow-handoff-notes) {grid-column:1/-1}
  html body .shell .workflow-asset-allocation-row {grid-template-columns:minmax(0,1fr) minmax(70px,.45fr) auto;gap:6px}
  html body .shell .workflow-draft-banner {flex-wrap:wrap;align-items:center;max-width:100%;min-width:0;gap:6px}
  html body .shell .workflow-draft-banner .button {min-height:40px}

  html body .modal.workflow-record-detail .workflow-detail-columns {display:block;grid-template-columns:minmax(0,1fr);min-width:0}
  html body .modal.workflow-record-detail .workflow-detail-columns>section {width:100%;max-width:100%;max-height:none;overflow:visible;padding-right:0;min-width:0}
  html body .modal.workflow-record-detail .workflow-detail-field-row {grid-template-columns:minmax(70px,.28fr) minmax(0,1fr);gap:10px;min-height:44px;padding:10px 0}
  html body .modal.workflow-record-detail .detail-primary-actions {display:flex;flex-wrap:nowrap;justify-content:flex-start;max-width:100%;min-width:0;width:100%;overflow:auto;padding-bottom:3px;gap:6px}
  html body .modal.workflow-record-detail .detail-primary-actions>.button {flex:none;min-height:42px;padding:8px 10px}
  html body .modal.workflow-record-detail :is(.workflow-detail-grid,.workflow-handoff-grid) {grid-template-columns:minmax(0,1fr)!important}
  html body .modal.workflow-record-detail .workflow-detail-inline-value {min-height:36px;display:flex;align-items:center}
  html body .modal.workflow-record-detail .workflow-detail-field-editor>:is(input,select,textarea) {min-height:44px;padding:9px}
  html body .modal.workflow-record-detail .workflow-detail-widgets {gap:10px;padding:10px 0;min-width:0}
  html body .modal.workflow-record-detail :is(.workflow-stage-control,.workflow-tags-control,.workflow-stars-control) {max-width:100%;min-width:0}

  html body .shell .warehouse-operations {min-width:0;max-width:100%;height:100%;overflow:hidden}
  html body .shell .warehouse-op-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:8px;min-width:0;max-width:100%}
  html body .shell .warehouse-op-toolbar>form {display:flex;flex:1 1 100%;min-width:0;width:100%;gap:6px}
  html body .shell .warehouse-op-toolbar>form input {width:0;min-width:0;max-width:none;flex:1;min-height:44px;height:44px;padding:8px 10px}
  html body .shell .warehouse-op-toolbar>form button {min-height:44px}
  html body .shell .warehouse-op-toolbar>[data-wo-tools] {display:block;flex:1 1 100%;width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-inline:contain}
  html body .shell .warehouse-op-toolbar .workflow-grid-tools {display:flex;flex-wrap:nowrap;width:max-content;max-width:none;gap:6px}
  html body .shell .warehouse-op-toolbar .workflow-grid-tools button {min-height:40px;flex:none;padding:7px 10px}
  html body .shell .warehouse-op-toolbar>:is(button,a) {min-height:42px;flex:none;padding:8px 10px}
  html body .shell .warehouse-op-pagination {flex-wrap:wrap;gap:6px;padding:7px;min-width:0;max-width:100%;justify-content:flex-end}
  html body .shell .warehouse-op-pagination>span {flex:1 1 100%;max-width:100%}
  html body .warehouse-op-detail-layout {display:block;min-width:0;max-width:100%}
  html body .warehouse-op-fields>label {grid-template-columns:minmax(75px,.28fr) minmax(0,1fr);gap:10px;min-height:44px}
  html body .warehouse-op-fields :is(input,select,textarea) {min-height:44px;padding:8px}
  html body .warehouse-op-form-actions {flex-wrap:wrap;gap:6px;padding:8px 0}
  html body .warehouse-op-form-actions>.button {min-height:42px}
  html body .warehouse-op-log {border-left:0;border-top:1px solid var(--crm-border,#e3e7e5);padding:12px 0;margin-top:12px}

  /* The same organization tree works inline and as the roster's chooser. */
  html body .shell .organization-v3.mobile-organization-ready,
  html body .shell .organization-v3.mobile-organization-ready.team-pane-collapsed,
  html body .shell .organization-v3.mobile-organization-ready.resizable-team-layout {display:block!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;max-width:100%;width:100%;height:auto;min-height:0;overflow:visible;border:0;background:transparent}
  html body .shell .organization-v3.mobile-organization-ready>.org-sidebar {display:none!important}
  html body .shell #main:has(>.mobile-organization-ready)>.page-title {display:none}
  html body .shell .mobile-organization-ready>.mobile-org-views {display:flex;gap:6px;padding:4px;margin:0 0 8px;border-radius:9px;background:var(--crm-soft,#f0f4f2)}
  html body .shell .mobile-org-views>button {flex:1;min-width:0;min-height:42px;margin:0;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--crm-muted,#53636c);font:inherit;font-size:14px;font-weight:600}
  html body .shell .mobile-org-views>button[aria-pressed=true] {background:var(--crm-surface,#fff);color:var(--crm-accent,#14795d)}
  html body .shell .mobile-organization-ready[data-mobile-org-view=tree]>.org-sidebar {display:block!important;width:100%!important;max-height:none!important;overflow:visible!important;border:0;border-radius:9px;background:var(--crm-surface,#fff)}
  html body .shell .mobile-organization-ready[data-mobile-org-view=tree]>.org-roster {display:none!important}

  html body .shell .organization-v3.mobile-organization-ready>.org-roster {width:100%;min-width:0;max-width:100%;max-height:none;overflow:visible;border:0;border-radius:10px}
  html body .shell .mobile-org-department-button {display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1 1 100%;width:100%;min-width:0;min-height:44px;padding:9px 12px;background:var(--crm-surface,#fff);color:inherit;border:1px solid var(--crm-border,#e3e7e5);border-radius:8px;text-align:left;white-space:normal}
  html body .shell .organization-v3.mobile-organization-ready .org-roster-header {display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;min-height:0}
  html body .shell .organization-v3.mobile-organization-ready .org-roster-header>div {flex:1;min-width:0}
  html body .shell .organization-v3.mobile-organization-ready .org-roster-header select {width:auto;min-width:0;max-width:100%;min-height:44px;flex:0 1 auto}
  html body .shell .organization-v3.mobile-organization-ready .org-roster-toolbar {display:flex;flex-wrap:wrap;gap:8px;padding:8px 10px}
  html body .shell .organization-v3.mobile-organization-ready .org-roster-toolbar>.tiny {display:none}
  html body .shell .organization-v3.mobile-organization-ready .org-roster-toolbar :is(button,label) {min-height:40px}
  html body .shell .organization-v3.mobile-organization-ready .org-roster :is(button,input,select,summary) {scroll-margin-top:80px;scroll-margin-bottom:calc(var(--mobile-nav-height,64px) + var(--mobile-bottom,0px) + 16px)}
  html body .shell .organization-v3.mobile-organization-ready .team-pane-resizer {display:none!important}
  html body .shell .organization-v3.mobile-org-open>.org-sidebar {display:block!important;position:fixed;z-index:125;top:calc(var(--mobile-viewport-top,0px) + 10px);left:calc(var(--mobile-viewport-left,0px) + 8px);right:auto;bottom:auto;width:calc(var(--mobile-viewport-width,100vw) - 16px)!important;max-width:none!important;max-height:calc(var(--mobile-viewport-height,100dvh) - 20px)!important;padding:0!important;overflow:auto!important;border:1px solid var(--crm-border,#e3e7e5);border-radius:12px;box-shadow:0 12px 40px #142b3330;background:var(--crm-surface,#fff);overscroll-behavior:contain}
  html body .shell .mobile-organization-ready:is(.mobile-org-open,[data-mobile-org-view=tree])>.org-sidebar>.org-sidebar-heading {display:flex!important;justify-content:space-between!important;padding:8px 12px!important;background:var(--crm-surface,#fff)}
  html body .shell .organization-v3.mobile-org-open>.org-sidebar>.org-sidebar-heading {position:sticky;top:0;z-index:3}
  html body .shell .mobile-organization-ready:is(.mobile-org-open,[data-mobile-org-view=tree])>.org-sidebar>.org-sidebar-heading>span {display:inline!important;font-size:13px}
  html body .shell .mobile-organization-ready:is(.mobile-org-open,[data-mobile-org-view=tree])>.org-sidebar>.org-sidebar-heading>.org-heading-toggle {display:none!important}
  html body .shell .mobile-organization-ready:is(.mobile-org-open,[data-mobile-org-view=tree])>.org-sidebar>.org-all-row {display:flex!important;justify-content:space-between}
  html body .shell .mobile-organization-ready:is(.mobile-org-open,[data-mobile-org-view=tree])>.org-sidebar>:is(#org-tree,.org-sidebar-hint) {display:block!important}
  html body .shell .mobile-organization-ready:is(.mobile-org-open,[data-mobile-org-view=tree])>.org-sidebar>.org-sidebar-toolbar {display:flex!important;padding:0 12px 8px}
  html body .shell .mobile-organization-ready .org-sidebar-heading>.mobile-org-close {display:none!important}
  html body .shell .organization-v3.mobile-org-open .org-sidebar-heading>.mobile-org-close {display:inline-flex!important;order:1;align-items:center;justify-content:center;flex:none;min-width:50px;min-height:40px;border:0;border-radius:7px;padding:5px 8px;color:var(--crm-accent,#08ad79);background:var(--crm-soft,#f4f7f6)}
  html body .shell .mobile-organization-ready .org-sidebar :is(.org-search,.org-create-menu>summary) {height:42px;min-height:42px}
  html body .shell .mobile-organization-ready .org-sidebar :is(.org-tree-row,.org-branch,.org-person-row,.org-all-row) {min-height:42px;font-size:14px}
  html body .shell .mobile-organization-ready .org-sidebar .org-actions-menu>summary {min-height:38px;display:flex;align-items:center;padding:5px;opacity:1}
  html body .shell .mobile-organization-ready .org-sidebar .org-menu-popover button {min-height:42px}
  html body .shell .mobile-organization-ready .org-children {margin-left:7px;padding-left:5px}
  html body:has(.mobile-org-open) .org-menu-popover.org-menu-floating {z-index:128}
  html body:has(.mobile-org-open) .org-menu-popover.org-menu-floating button {min-height:44px}
  html body .shell .mobile-organization-ready .org-expand {height:42px;min-height:42px;min-width:28px}
  html body .shell .organization-v3.mobile-org-open .org-sidebar :is(button,input,summary) {scroll-margin-top:76px;scroll-margin-bottom:12px}
  html body .shell .mobile-org-backdrop {position:fixed;z-index:124;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#152a334d;cursor:default}
  html body :is(.org-form-popover.org-employee-form,.employee-form-modal) .form-grid {grid-template-columns:minmax(0,1fr)!important;min-width:0;gap:10px}
  html body :is(.org-form-popover.org-employee-form,.employee-form-modal) .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px}
  html body :is(.org-form-popover.org-employee-form,.employee-form-modal) .modal-footer .button {min-height:44px}

  /* Keep the live employee fields and actions in the original table rows. */
  html body .shell .mobile-organization-ready .org-roster #employee-table .table-wrap {width:100%;max-width:100%;overflow:visible;margin:0;border:0;box-shadow:none}
  html body .shell .mobile-organization-ready .org-roster #employee-table table {display:block;table-layout:auto;width:100%!important;min-width:0!important;max-width:100%;border:0;background:transparent}
  html body .shell .mobile-organization-ready #employee-table :is(colgroup,.employee-column-resizer) {display:none!important}
  html body .shell .mobile-organization-ready #employee-table thead {display:block}
  html body .shell .mobile-organization-ready #employee-table thead tr {display:block;padding:0 10px}
  html body .shell .mobile-organization-ready #employee-table thead th {display:none;border:0;position:static;width:auto!important}
  html body .shell .mobile-organization-ready #employee-table thead th[data-employee-selection] {display:flex;align-items:center;gap:7px;min-height:38px;padding:6px 8px!important;background:transparent;text-align:left}
  html body .shell .mobile-organization-ready #employee-table thead th[data-employee-selection]::after {content:'全选当前列表'}
  html body .shell .mobile-organization-ready #employee-table tbody {display:grid;grid-template-columns:minmax(0,1fr);padding:0 10px 6px}
  html body .shell .mobile-organization-ready #employee-table tbody tr {display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:5px;align-items:center;min-width:0;max-width:100%;padding:0 6px;border-bottom:1px solid var(--crm-border,#e3e7e5);background:var(--crm-surface,#fff)}
  html body .shell .mobile-organization-ready #employee-table tbody td {grid-column:1/-1;display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:8px;padding:4px 0!important;min-width:0;width:auto!important;border:0;background:transparent!important;overflow-wrap:anywhere}
  html body .shell .mobile-organization-ready #employee-table tbody td::before {content:attr(data-mobile-employee-label);color:var(--crm-muted,#7b858e)}
  html body .shell .mobile-organization-ready #employee-table tbody td[data-employee-field=name] {display:block;grid-column:1;grid-row:1;padding:0!important}
  html body .shell .mobile-organization-ready #employee-table tbody td[data-employee-field=status] {display:block;grid-column:2;grid-row:1;padding:3px 8px!important;border-radius:999px;background:var(--crm-soft,#eef5f0)!important;color:var(--crm-muted,#53636c);font-size:12px}
  html body .shell .mobile-organization-ready #employee-table tbody td[data-mobile-employee-status=在职] {color:var(--crm-accent,#19786b)}
  html body .shell .mobile-organization-ready #employee-table tbody td[data-employee-selection] {display:flex;grid-column:3;grid-row:1;align-items:center;justify-content:center;min-height:42px;width:30px!important;padding:0!important}
  html body .shell .mobile-organization-ready #employee-table tbody td[data-employee-field=actions] {display:block;margin:3px 0 6px;padding-top:7px!important;border-top:1px solid var(--crm-border,#e3e7e5)}
  html body .shell .mobile-organization-ready #employee-table tbody td:is([data-employee-field=name],[data-employee-field=status],[data-employee-field=actions],[data-employee-selection],[colspan])::before {display:none}
  html body .shell .mobile-organization-ready #employee-table tbody tr:not([data-mobile-employee-open]) td[data-employee-field]:not([data-employee-field=name],[data-employee-field=status]) {display:none}
  html body .shell .mobile-organization-ready .mobile-org-employee-toggle {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:42px;margin:0;padding:5px 6px;border:0;border-radius:5px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:14px}
  html body .shell .mobile-organization-ready .mobile-org-employee-toggle::after {content:'';width:6px;height:6px;flex:none;margin:0 4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);color:var(--crm-muted,#65727d)}
  html body .shell .mobile-organization-ready .mobile-org-employee-toggle[aria-expanded=true]::after {transform:rotate(45deg)}
  html body .shell .mobile-organization-ready #employee-table .employee-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-width:none}
  html body .shell .mobile-organization-ready #employee-table .employee-actions>.button.small {min-height:42px!important;height:auto!important;padding:6px!important;margin:0;white-space:normal}
  html body .shell .mobile-organization-ready #employee-table td[colspan] {display:block;grid-column:1/-1}
}

/* Phone department tabs retain their original actions and date affordance. */
@media(max-width:760px){
 html body .shell #main:has(>.workflow-workspace){padding:0 6px 4px}
 html body .shell .workflow-workspace>.workflow-topbar{gap:0;padding:0!important;margin:0 0 4px!important;border:0;border-radius:0;background:transparent;box-shadow:none;min-height:0}
 html body .shell .workflow-workspace .workflow-topbar>.workflow-tabs,html body .shell .workflow-workspace>.workflow-tabs{align-items:center;gap:8px;min-height:50px;padding:0 7px!important;background:#fff;border:0;border-bottom:1px solid #eceff2;box-sizing:border-box;scrollbar-width:none}
 html body .shell .workflow-workspace .workflow-tabs>button:not(.mobile-business-original-action),html body .shell .workflow-workspace .workflow-tabs>.workflow-receipt-tab>button:not(.workflow-receipt-month-trigger){position:relative;display:flex;align-items:center;justify-content:center;flex:none;height:34px;min-height:34px;margin:7px 0;padding:6px 13px;border:0!important;border-radius:18px;background:#f3f4f6!important;color:#40454b;font-size:14px!important;font-weight:400;line-height:1.4;box-shadow:none;white-space:nowrap}
 html body .shell .workflow-workspace .workflow-tabs>.workflow-receipt-tab{align-items:center;height:34px;margin:7px 0}
 html body .shell .workflow-workspace .workflow-tabs>.workflow-receipt-tab>button:not(.workflow-receipt-month-trigger){margin:0}
 html body .shell .workflow-workspace .workflow-tabs>button.is-active,html body .shell .workflow-workspace .workflow-tabs>.workflow-receipt-tab>button.is-active{background:#edf8f2!important;color:#08b866;font-weight:500}
 html body .shell .workflow-workspace .workflow-tabs>button.is-active:after,html body .shell .workflow-workspace .workflow-tabs>.workflow-receipt-tab>button.is-active:not(.workflow-receipt-month-trigger):after{content:'';position:absolute;bottom:-8px;left:30%;right:30%;height:2px;border-radius:2px;background:#07c66c}
 html body .shell .workflow-workspace .workflow-topbar .workflow-receipt-tab>.workflow-receipt-month-trigger{display:block;right:-2px;bottom:-1px;width:17px;height:17px;min-width:0;min-height:0;padding:0;margin:0;border-radius:2px;background:transparent!important;color:#c43845;box-shadow:none}
 html body .shell .workflow-workspace .workflow-topbar>.mobile-business-source-toolbar{padding:0!important;margin:0!important;min-height:0!important;gap:0!important}
 html body .shell.mobile-business-toolbar-ready .workflow-workspace [data-wfm-batch]{display:none}
}

/* Department records use the available space and scroll directly on touch. */
@media(max-width:760px){
  html:has(.workflow-workspace #workflow-grid-host>#workflow-list-scroll){scrollbar-gutter:auto}
  html body .shell .workflow-workspace:has(#workflow-grid-host>#workflow-list-scroll){
    height:auto;
    min-height:0;
    max-height:var(--workflow-workspace-height,calc(100dvh - 110px));
  }
  html body .shell .workflow-workspace #workflow-grid-host>#workflow-list-scroll{
    min-height:0;
    max-width:100%!important;
    scrollbar-width:none;
    scrollbar-gutter:auto;
  }
  #main .workflow-workspace #workflow-grid-host>#workflow-list-scroll.workflow-grid-scroll::-webkit-scrollbar{
    display:none;
    width:0;
    height:0;
  }
  .workflow-workspace #workflow-grid-host>.workflow-mobile-tail[hidden]{
    display:none;
  }
}


/* mobile-business-toolbar.css */
@media (max-width:760px) {
  html body .shell.mobile-business-toolbar-ready .topbar {gap:4px;min-width:0}
  html body .shell.mobile-business-toolbar-ready .topbar>.top-actions:first-child {flex:1;min-width:0}
  html body .shell.mobile-business-toolbar-ready .topbar .header-meta {min-width:0}
  html body .shell.mobile-business-toolbar-ready #breadcrumb {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%}
  html body .shell.mobile-business-toolbar-ready .mobile-app-tools {display:none!important}
  html body .shell .mobile-business-tools {display:flex;align-items:center;justify-content:flex-end;flex:none;gap:0;min-width:0;margin-left:auto}
  html body .shell .mobile-business-tools>button {display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;min-width:40px;height:44px;min-height:44px;padding:7px;border:0;border-radius:0;box-shadow:none;background:transparent;color:#172d2b;line-height:1}
  html body .shell .mobile-business-tools>button:disabled {opacity:.32}
  html body .shell .mobile-business-tools>button .mobile-line-icon {width:25px;height:25px;pointer-events:none}
  html body .shell.mobile-business-toolbar-ready #main .mobile-business-toolbar-workspace .workflow-toolbar .workflow-save-status.mobile-business-idle-status {display:none!important}
  html body .shell.mobile-business-toolbar-ready #main .mobile-business-source-toolbar .mobile-business-original-action,
  html body .shell.mobile-business-toolbar-ready #main .mobile-business-source-toolbar>.workflow-header-actions,
  html body .shell.mobile-business-toolbar-ready #main .mobile-business-source-toolbar>#workflow-search,
  html body .shell.mobile-business-toolbar-ready #main .mobile-business-source-toolbar>[data-wo-search],
  html body .shell.mobile-business-toolbar-ready #main .mobile-business-toolbar-workspace .workflow-market-send-button.mobile-business-original-action {display:none!important}
  html body .shell .mobile-business-toolbar-workspace .workflow-topbar {gap:4px;padding:6px 8px}
  html body .shell .mobile-business-layer {position:fixed;inset:0;z-index:1900;display:flex;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 62px) 10px calc(env(safe-area-inset-bottom,0px) + 74px);background:rgba(20,34,34,.22);overflow:auto;overscroll-behavior:contain}
  html body .shell .mobile-business-layer-panel {width:100%;max-width:520px;min-width:0;max-height:100%;display:flex;flex-direction:column;background:#fff;border-radius:12px;box-shadow:0 12px 38px #1b39352a;overflow:hidden}
  html body .shell .mobile-business-layer-panel:has(:is(#workflow-search,[data-wo-search])) {background:#edf3f1;border:1px solid #cedbd6}
  html body .shell .mobile-business-layer-panel>header {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:4px 10px 4px 15px;border-bottom:1px solid #edf0ef;color:#172d2b}
  html body .shell .mobile-business-layer-panel>header>button {display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;flex:none;padding:8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}
  html body .shell .mobile-business-layer-content {padding:8px 12px 12px;overflow:auto;min-height:0;overscroll-behavior:contain}
  html body .shell .mobile-business-layer-content>:is(#workflow-search,[data-wo-search]) {display:flex!important;width:100%;min-width:0;max-width:none;align-items:center;gap:8px;margin:0}
  html body .shell .mobile-business-layer-content>:is(#workflow-search,[data-wo-search])>input {flex:1;min-width:0;width:0;min-height:44px;padding:8px 10px;border:1px solid #dfe8e5;border-radius:7px}
  html body .shell .mobile-business-layer-content>:is(#workflow-search,[data-wo-search])>button {min-height:44px;flex:none;padding:8px 14px}
  html body .shell .mobile-business-layer-content>[data-mobile-business-tool] {display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:11px 4px;text-align:left;border:0;border-bottom:1px solid #f0f2f1;border-radius:0;box-shadow:none;background:#fff;color:#172d2b;white-space:normal;line-height:1.4}
  html body .shell .mobile-business-layer-content>[data-mobile-business-tool]:disabled {opacity:.38}
  html body .shell .mobile-business-layer-content>[data-mobile-business-tool].is-danger {color:#b64a4a}
  html body .shell .mobile-business-layer-content>[data-mobile-business-tool]>.mobile-line-icon {width:23px;height:23px;flex:none}
  html body #modal-root .modal:has(#workflow-view-form) {width:100%;max-width:100%;min-width:0}
  html body #modal-root #workflow-view-form {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;max-width:100%}
  html body #modal-root #workflow-view-form>.form-field {margin:0;min-width:0;gap:5px}
  html body #modal-root #workflow-view-form :is(input,select,button) {max-width:100%;min-width:0;min-height:44px;font-size:16px}
  html body #modal-root #workflow-view-form #workflow-view-conditions {display:grid;gap:8px;min-width:0}
  html body #modal-root #workflow-view-form .workflow-view-condition {display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0;margin:0;padding:10px;background:#f6f8f8;border-radius:8px}
  html body #modal-root #workflow-view-form .workflow-view-condition>:is(select,input) {width:100%}
  html body #modal-root #workflow-view-form .workflow-view-condition>button {justify-self:start;padding-inline:12px}
  html body #modal-root #workflow-view-form>.workflow-detail-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-width:0}
  html body #modal-root #workflow-view-form .modal-footer {display:flex;flex-wrap:wrap;gap:8px;margin:0;padding-top:6px}
  html body #modal-root #workflow-view-form .modal-footer>button {flex:1 1 80px}
}

@media(max-width:760px){
 html body .shell.mobile-business-toolbar-ready .topbar{--mobile-business-tool-width:32px}
 html body .shell .mobile-business-tools>button{width:var(--mobile-business-tool-width,32px);min-width:var(--mobile-business-tool-width,32px);height:44px;min-height:44px;padding:6px}
 html body .shell .mobile-business-tools>button .mobile-line-icon{width:20px;height:20px}
}
@media(max-width:360px){html body .shell.mobile-business-toolbar-ready .topbar{--mobile-business-tool-width:30px}}

/* The saved view uses the same fields and request as the desktop form. */
@media(max-width:760px){
 html body #modal-root .workflow-personal-view-modal>.modal-header{min-height:46px;padding:3px 10px 3px 13px;background:#e9f1ee}
 html body #modal-root .workflow-personal-view-modal>.modal-header h2{font-size:16px!important;font-weight:500}
 html body #modal-root .workflow-personal-view-modal>.modal-header button{min-height:40px;min-width:40px;font-size:18px}
 html body #modal-root .workflow-personal-view-modal>.modal-body{padding:9px 12px;overflow:auto;overscroll-behavior:contain;background:#f5f8f7}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form{gap:7px;font-size:13px;line-height:1.4}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>.workflow-view-search-term,
 html body #modal-root .workflow-personal-view-modal #workflow-view-form label:has(>[name=pageSize]),
 html body #modal-root .workflow-personal-view-modal #workflow-view-form [hidden]{display:none!important}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form :is(label,.form-field){font-size:13px!important;font-weight:500}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form :is(input,select,button){min-height:36px;padding:5px 8px;font-size:14px!important;font-weight:400;line-height:1.45;box-shadow:none}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form input:focus{font-size:16px!important}
 html body #modal-root .workflow-personal-view-modal #workflow-view-conditions{gap:5px}
 html body #modal-root .workflow-personal-view-modal #workflow-view-conditions:empty{display:none}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form .workflow-view-condition{grid-template-columns:minmax(80px,1.12fr) minmax(0,.73fr) minmax(0,1.25fr) 34px;gap:4px;padding:5px;border:1px solid #dce7e3;background:#edf3f0}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition>:is([data-wfv-field],[data-wfv-field]+.mobile-native-select-proxy){grid-area:1/1}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition>:is([data-wfv-op],[data-wfv-op]+.mobile-native-select-proxy){grid-area:1/2}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition>:is([data-wfv-value],[data-wfv-value]+.mobile-native-select-proxy){grid-area:1/3}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition>[data-wfv-to]:not([hidden]){grid-area:2/3}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form .workflow-view-condition>:is(input,select,.mobile-native-select-proxy){width:100%;min-height:34px;padding-inline:5px;gap:2px}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form [data-wfv-remove]{grid-area:1/4;min-height:34px;width:100%;padding-inline:0;color:#61716c}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form .workflow-view-condition:has([data-wfv-value][type=date]:not([hidden])){grid-template-columns:minmax(80px,1fr) minmax(54px,.66fr) minmax(116px,1.4fr) 34px}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition>[data-wfv-value][type=datetime-local]{grid-area:2/1/3/-1}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition:has(>[data-wfv-value][type=datetime-local])>[data-wfv-to]:not([hidden]){grid-area:3/1/4/-1}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition:has([data-wfv-to]:not([hidden]))>[data-wfv-to]{grid-column:2/4}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form [data-wfv-add]{justify-self:start;color:#078b58}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>.workflow-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>.workflow-detail-grid>label{display:grid;gap:3px;min-width:0}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>p{margin:1px 0;font-size:11px!important;line-height:1.4}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>p:empty{display:none}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>.modal-footer{gap:5px;padding-top:4px}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>.modal-footer>button{min-height:40px}
 html body #modal-root .workflow-personal-view-modal #workflow-view-form>.modal-footer>.primary{background:#0abf73;border-color:#0abf73;color:#fff}
}
@media(max-width:359px){
 html body #modal-root .workflow-personal-view-modal #workflow-view-form .workflow-view-condition:has([data-wfv-value][type=date]:not([hidden])){grid-template-columns:minmax(80px,1.12fr) minmax(0,.73fr) minmax(0,1.25fr) 34px}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition>[data-wfv-value][type=date]{grid-area:2/1/3/-1}
 html body #modal-root .workflow-personal-view-modal .workflow-view-condition:has(>[data-wfv-value][type=date])>[data-wfv-to]:not([hidden]){grid-area:3/1/4/-1}
}


/* mobile-admin.css */
/* Existing operation logs and duplicate records, on signed-in phones only.
   More specific selectors also survive audit-log-ui.css loading later. */
@media (max-width:760px) {
  .shell .audit-log {
    min-width:0;
    max-width:100%;
    font-size:14px;
    line-height:1.5;
    font-weight:400;
  }
  .shell .audit-log .audit-log-summary {
    gap:8px;
    margin-bottom:10px;
    font-size:14px;
    line-height:1.5;
  }
  .shell .audit-log .audit-log-summary strong {font-size:14px;font-weight:500}
  .shell .audit-log .audit-mobile-list {border-radius:10px;border-color:#e6eaf0}
  .shell .audit-log .audit-mobile-entry {padding:4px 8px;border-color:#edf0f3;background:#fff}
  .shell .audit-log .audit-mobile-meta {gap:2px 6px;margin-bottom:0;font-size:12px;line-height:1.25}
  .shell .audit-log .audit-date {font-size:11px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
  .shell .audit-log .audit-mobile-meta .audit-actor {font-size:12px;font-weight:400}
  .shell .audit-log .audit-operation {font-size:11px;line-height:1.25;font-weight:400;padding:0 4px}
  .shell .audit-log .audit-entry-detail {min-width:0;font-size:14px;line-height:1.5}
  .shell .audit-log .audit-entry-detail>summary,
  .shell .audit-log .audit-entry-detail[open]>summary {
    align-items:center;
    min-height:21px;
    gap:5px;
    padding:1px 0;
  }
  .shell .audit-log .audit-detail-preview {font-size:13px;line-height:1.3}
  .shell .audit-log .audit-detail-toggle {font-size:11px;line-height:1.3;font-weight:400}
  .shell .audit-log .audit-detail-full {
    min-width:0;
    max-width:100%;
    padding:10px;
    font-size:14px;
    line-height:1.6;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .shell .audit-log .audit-pager {gap:8px;margin-top:12px;font-size:12px;line-height:1.5}
  .shell .audit-log .audit-page-size {gap:7px;font-size:12px;line-height:1.5}
  .shell .audit-log .audit-page-size select {min-height:44px;width:86px;padding:8px;font-size:16px!important;font-weight:400}
  .shell .audit-log .audit-page-status {font-size:12px;line-height:1.5}
  .shell .audit-log .audit-page-buttons {width:100%;gap:6px}
  .shell .audit-log .audit-page-buttons>button {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    min-width:0;
    padding:8px;
    font-size:14px;
    line-height:1.5;
    font-weight:400;
    white-space:normal;
  }
  .shell .audit-log .audit-log-empty {font-size:14px;line-height:1.6}

  .shell .audit-log .duplicate-record {min-width:0;padding:4px 0;gap:2px 0;grid-template-columns:repeat(2,minmax(0,1fr))}
  .shell .audit-log .duplicate-record-time {grid-column:1/-1;padding:3px 7px!important;font-size:11px;color:#818b97}
  .shell .audit-log .duplicate-record>section {min-width:0;padding:3px 7px 5px;border-left:0}
  .shell .audit-log .duplicate-record>section:last-child {border-left:1px solid #edf0f3}
  .shell .audit-log .duplicate-record h3 {margin:0 0 4px;font-size:13px;font-weight:500;line-height:1.35}
  .shell .audit-log .duplicate-record-pairs {grid-template-columns:minmax(0,1fr);gap:2px;margin:0}
  .shell .audit-log .duplicate-record-pairs>div {grid-template-columns:38px minmax(0,1fr);gap:4px;align-items:start}
  .shell .audit-log .duplicate-record-pairs dt {font-size:11px;font-weight:400;line-height:1.4}
  .shell .audit-log .duplicate-record-pairs dd {font-size:12px;font-weight:400;line-height:1.4;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
  .shell .audit-log .duplicate-record-link {
    display:inline-flex;
    align-items:center;
    max-width:100%;
    min-height:24px;
    margin:-3px 0;
    padding:3px 0;
    font-size:12px;
    line-height:1.4;
    font-weight:400;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}


/* mobile-typography.css */
/* Mobile UI text only. Keep authored document/formula typography and KPI values.
   The EC reference uses regular body text, larger navigation rows and quiet
   captions; small labels do not shrink further on narrow phones. */
@media (max-width:760px) {
  body:has(.shell) {
    --mobile-ui-title:20px;
    --mobile-ui-section:16px;
    --mobile-ui-row:17px;
    --mobile-ui-body:14px;
    --mobile-ui-caption:12px;
    --mobile-ui-control:16px;
    --mobile-ui-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC",system-ui,"Segoe UI",sans-serif;
  }

  .shell {
    font-family:var(--mobile-ui-font);
    font-size:var(--mobile-ui-body);
    font-weight:400;
  }

  .shell :is(.topbar #breadcrumb,.page-title h1,.approval-heading h1,.rec-heading h1,.mobile-app-sheet>header h2) {
    font-family:var(--mobile-ui-font);
    font-size:var(--mobile-ui-title)!important;
    font-weight:600;
    line-height:1.4;
  }

  .shell :is(.panel-head h2,.home-section-head h2,.home-month>summary h2,.mobile-more-group h3,.mobile-office-section h3,.office-room-title h2,.org-roster-header h2,.settings-section h3) {
    font-size:var(--mobile-ui-section)!important;
    font-weight:600;
    line-height:1.5;
    letter-spacing:normal;
  }

  /* Every text-bearing home selector is covered, including the old 8–10px
     organization captions, notice pager and monthly stock helper. */
  .shell .dashboard-home :is(.home-task .stat-label,.home-total-item>span,.home-month-metrics dt,.home-stage-label span,.stage-item>span,.priority-item strong,.home-meeting strong) {
    font-size:var(--mobile-ui-body)!important;
    line-height:1.5;
    font-weight:400;
    letter-spacing:normal;
  }

  .shell .dashboard-home :is(.home-task .stat-hint,.home-section-head p,.home-section-head small,.home-month>summary small,.home-today-stat dt,.home-today-stat>small,.home-month-metrics dt small,.home-month-stock span,.home-meeting time,.home-meeting>summary>span,.home-meeting>p,.home-notice-footer,.home-notice-footer>span,.home-meetings-pages>span,.priority-tools>small,.priority-tools>span,.priority-limit-note,.priority-item small,.priority-item .badge,.stage-item>small,.empty,.dashboard-controls label,.home-panel-scope>label) {
    font-size:var(--mobile-ui-caption)!important;
    line-height:1.5;
    font-weight:400;
    letter-spacing:normal;
  }

  .shell .dashboard-home :is(.home-meetings-pages .button,.home-section-head .button,.home-notice-footer .button,.quick-actions>.button,.dashboard-effects-toggle,.home-panel-scope>details>summary) {
    font-size:var(--mobile-ui-caption)!important;
    line-height:1.5;
    font-weight:400;
    letter-spacing:normal;
  }
  .shell .dashboard-home .home-panel-scope :is(.tiny,.user-tree-count,.person-option-meta) {
    font-size:var(--mobile-ui-caption)!important;
    line-height:1.5;
    font-weight:400;
  }

  .shell .dashboard-home .home-panel-scope :is(select,input) {
    font-size:var(--mobile-ui-control)!important;
    font-weight:400;
    font-family:var(--mobile-ui-font);
    line-height:1.5;
  }

  .shell .dashboard-home .home-task .stat-label {
    max-width:none;
    min-height:42px;
    padding-right:0;
  }
  .shell .dashboard-home .home-task .stat-hint {min-height:36px}
  .shell .dashboard-home .home-task {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;height:auto;min-width:0}
  .shell .dashboard-home .home-task .home-task-icon {position:static;margin:0 0 6px;width:20px;height:20px}

  .shell :is(.mobile-office-entry strong,.mobile-office-entry .mobile-feature-label,.mobile-more-group .nav-text,.mobile-more-group .nav-new-view) {
    font-family:var(--mobile-ui-font);
    font-size:var(--mobile-ui-body)!important;
    line-height:1.5;
    font-weight:400;
    letter-spacing:normal;
  }

  .shell :is(.mobile-office-entry small,.mobile-app-sheet>header small,.mobile-account-card small,.page-title p,.topbar .header-meta small,.office-room-footer,.office-file-open small,.rec-heading p,.rec-card-meta,.rec-card-body>p,.approval-card small,.approval-card p,.approval-heading p,.approval-eyebrow,.material-card-body>p,.library-open small) {
    font-size:var(--mobile-ui-caption)!important;
    line-height:1.5;
    font-weight:400;
    letter-spacing:normal;
  }

  .shell :is(.mobile-account-card strong,.mobile-my-name,.mobile-profile-name) {
    font-size:18px!important;
    font-weight:600;
    line-height:1.5;
  }

  .shell :is(.mobile-my-row,.mobile-profile-row,.mobile-customer-scope-row,.mobile-scope-menu-row) {
    font-size:var(--mobile-ui-row)!important;
    font-weight:400;
    line-height:1.5;
  }

  .shell :is(.rec-card h3,.approval-card h3,.library-open strong,.office-item-name,.office-file-open strong,.material-card-body>strong,.workflow-card-title) {
    font-size:var(--mobile-ui-body)!important;
    line-height:1.5;
    font-weight:500;
  }

  .shell :is(.customer-card .card-details small,.customer-card .card-details .tag,.customer-card .card-details span,.customer-card .card-details .phone-link,.pagination,.pagination .button,.customer-results .result-count,.result-filter-hint,.rec-directory,.org-roster td,.org-roster th,.org-roster td .button,.office-file-table td,.office-context-menu button,.approval-nav>button,.approval-row,.approval-card .button,.material-card-actions .button,.rec-toolbar .button) {
    font-size:var(--mobile-ui-body)!important;
    line-height:1.5;
    font-weight:400;
  }
  .shell .customer-card .customer-name {font-size:17px!important;font-weight:500;line-height:1.5}
  .shell .mobile-app-nav>button {font-size:12px!important;font-weight:400;line-height:1.3}
  .shell :is(.workflow-toolbar,.workflow-toolbar-tools button,.workflow-pagination,.workflow-page-jump,.workflow-page-jump>label,.workflow-workspace>.workflow-tabs button,.workflow-sidebar button) {
    font-size:var(--mobile-ui-body)!important;
    line-height:1.5;
    font-weight:400;
  }
  .shell :is(.workflow-save-status,.workflow-sidebar small,.workflow-help,.workflow-log time,.workflow-current-assignment small,.workflow-assigned-department,.workflow-draft-banner,.workflow-handoff-help,.workflow-submit-draft-note) {
    font-size:var(--mobile-ui-caption)!important;
    line-height:1.5;
    font-weight:400;
  }

  /* Dialogs live outside the shell. Only signed-in CRM forms are targeted;
     user-authored rich content and spreadsheet/editor cells are excluded. */
  body:has(.shell) :is(.modal>.modal-header h2,.org-form-popover>header h2,.customer-entry-popover>header h2) {
    font-family:var(--mobile-ui-font);
    font-size:var(--mobile-ui-title)!important;
    font-weight:600;
    line-height:1.4;
  }
  body:has(.shell) :is(.customer-entry-label,.customer-entry-row,.customer-entry-destination>label,.form-field>span,.form-field>label,.settings-grid label,.workflow-detail-grid label,.workflow-detail-field-row dt,.workflow-detail-value,.modal.detail-modal .profile-fields dt,.modal.detail-modal .profile-fields dd,.customer-entry-actions .button,.modal-footer .button) {
    font-family:var(--mobile-ui-font);
    font-size:var(--mobile-ui-body)!important;
    font-weight:400;
    line-height:1.5;
  }
  body:has(.shell) :is(.customer-entry-status,.customer-entry-layout h3>span,.form-field>small,.workflow-record-context,.follow-record-header,.follow-record-next,.follow-pagination) {
    font-family:var(--mobile-ui-font);
    font-size:var(--mobile-ui-caption)!important;
    font-weight:400;
    line-height:1.5;
  }
  body:has(.shell) :is(.customer-entry-control,.customer-entry-colleague-head,.customer-entry-tags,.form-field,.filter-row,.workflow-detail-field-editor,.approval-filters) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),select,textarea),
  .shell :is(.customer-filter-toolbar #search-form .search-input,.mobile-customer-search-input) {
    font-family:var(--mobile-ui-font)!important;
    font-size:var(--mobile-ui-control)!important;
    font-weight:400!important;
    line-height:1.5;
    letter-spacing:normal;
  }

  .shell .mobile-feature-icon {display:block;width:36px;height:36px;flex:none;overflow:visible;filter:drop-shadow(0 1px 1px #344c7012)}
  .shell .mobile-line-icon {display:block;width:24px;height:24px;flex:none;overflow:visible}
  .shell :is(.mobile-office-entry,.mobile-more-group .nav-button)>span:has(>.mobile-feature-icon) {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    background:none!important;
    border:0!important;
    border-radius:0;
    box-shadow:none;
    color:inherit;
  }

  /* Workflow formatting currently stores color, fill and bold only. Raise the
     default UI size without overriding a present or future inline font size.
     Do not target the separate office spreadsheet or user document editors. */
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table .workflow-cell:not([style*="font-size" i]):not([style*="font:" i]),
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table .workflow-grid-label-wrap>button.workflow-grid-label:not([style*="font-size" i]):not([style*="font:" i]) {
    font-size:var(--mobile-ui-body);
  }
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table .workflow-cell-editor:not(.workflow-tags-editor):not([style*="font-size" i]):not([style*="font:" i]),
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-formula-input:not([style*="font-size" i]):not([style*="font:" i]) {
    font-size:var(--mobile-ui-control)!important;
  }
  html body .shell :is(.workflow-workspace,.warehouse-operations) .workflow-grid-table :is(.workflow-widget-tag,.workflow-widget-stage,.workflow-widget-unset):not([style*="font-size" i]):not([style*="font:" i]) {
    font-size:var(--mobile-ui-caption);
  }

  .shell .organization-v3 :is(.org-branch,.org-person-row,.org-all-row,.org-menu-popover button):not([style*="font-size" i]):not([style*="font:" i]) {
    font-size:var(--mobile-ui-body);
  }
  .shell .organization-v3 .org-branch:not([style*="font-size" i]):not([style*="font:" i]) {line-height:20px}
  .shell .organization-v3 :is(.org-branch small,.org-all-row small,.org-sidebar-heading>span,.org-sidebar-hint,.org-search-empty,.org-roster-header p) {
    font-size:var(--mobile-ui-caption);
    font-weight:400;
  }
  body:has(.shell) :is(.department-tree-options [data-department-choice-label],.user-select-tree .tree-department>summary,.user-select-tree .tree-department-select,.user-select-tree .person-option-name,.organization-people-picker .checkbox-row,.organization-people-picker .tree-department-select,.org-menu-floating button) {
    font-size:var(--mobile-ui-body);
  }
  body:has(.shell) .organization-people-picker>[data-organization-summary-control] {
    font-size:var(--mobile-ui-body)!important;
  }
  body:has(.shell) :is(.department-tree-options [data-department-context-only]>small,.department-tree-retained,.department-tree-retained-item,.department-tree-empty,.user-select-tree .tree-department-count,.user-select-tree .tree-department-scope,.user-select-tree .user-tree-help,.user-select-tree .user-tree-empty,.user-select-tree .person-option-position,.organization-people-retained,.organization-people-no-match) {
    font-size:var(--mobile-ui-caption);
  }
}


/* mobile-dashboard.css */
/* Phone density only. All metric values, scope controls and drilldown handlers
   remain in the original dashboard renderer. */
.mobile-home-greeting{display:none}
.mobile-dashboard-short-label{display:none}
@media(max-width:760px){
 html body .shell.mobile-home-active .topbar :is(.header-meta,.mobile-app-tools){display:none!important}
 html body .shell.mobile-home-active .topbar>.top-actions:first-child{width:100%;min-width:0}
 html body .shell.mobile-home-active .mobile-home-greeting{display:block;width:100%;min-width:0;padding:2px 0}
 html body .shell.mobile-home-active .mobile-home-greeting>div{display:flex;align-items:baseline;justify-content:center;gap:8px;flex-wrap:wrap;color:#737c83;font-size:13px;font-weight:400;line-height:1.5;text-align:center}
 html body .shell.mobile-home-active .mobile-home-greeting [data-mobile-home-name]{font:inherit;color:inherit;overflow-wrap:anywhere}
 html body .shell.mobile-home-active .mobile-home-greeting p{font-size:18px;font-weight:500;line-height:1.5;margin:2px 0 0;color:#242b30;text-align:center;overflow-wrap:anywhere}
 html body .shell .dashboard-home .home-today{padding:12px;gap:0}
 html body .shell .dashboard-home .home-today>.home-section-head{margin-bottom:10px;align-items:center;gap:8px;flex-wrap:wrap}
 html body .shell .dashboard-home .home-today>.home-section-head>div>small{display:none}
 html body .shell .dashboard-home .home-panel-scope{gap:6px;max-width:100%;min-width:0}
 html body .shell .dashboard-home .home-panel-scope>label{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px!important;font-weight:400}
 html body .shell .dashboard-home .home-panel-scope :is(select,option){font:400 16px/1.5 var(--mobile-ui-font)!important;letter-spacing:normal}
 html body .shell .dashboard-home .home-panel-scope select{width:auto;min-width:0;max-width:164px;min-height:40px;padding:7px 24px 7px 9px;box-shadow:none}
 html body .shell .dashboard-home .home-panel-scope>details>summary{min-height:40px;padding:9px 8px;box-shadow:none;font-size:14px!important}
 html body .shell .dashboard-home .home-task-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 html body .shell .dashboard-home .home-task.summary-tile{display:flex;position:relative;min-height:84px;height:auto;padding:8px;gap:3px;justify-content:flex-start;align-items:flex-start;border:1px solid #edf0f3;border-radius:8px;box-shadow:none;box-sizing:border-box}
 html body .shell .dashboard-home .home-task .stat-label{font-size:12px!important;font-weight:400;line-height:1.5;min-height:36px;max-width:100%;padding:0 13px 0 0;margin:0;overflow-wrap:anywhere}
 html body .shell .dashboard-home .home-task .stat-value{font-size:24px;line-height:1.15;font-weight:600;margin:0;color:#20252a}
 html body .shell .dashboard-home .home-task .home-task-icon{position:absolute;top:9px;right:6px;width:13px;height:13px;min-height:13px;margin:0;border:0;background:transparent;opacity:.6}
 html body .shell .dashboard-home .home-task .home-task-icon svg{width:13px;height:13px}
 html body .shell .dashboard-home .home-task .stat-hint{display:none}
 html body .shell .dashboard-home .home-today-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px;padding-top:8px;gap:6px}
 html body .shell .dashboard-home .home-today-stat{padding:7px 8px;border-radius:7px;min-height:56px}
 html body .shell .dashboard-home .home-today-stat dt{font-size:12px!important;font-weight:400;line-height:1.5}
 html body .shell .dashboard-home .home-today-stat .mobile-dashboard-full-label{display:none}
 html body .shell .dashboard-home .home-today-stat .mobile-dashboard-short-label{display:inline}
 html body .shell .dashboard-home .home-today-stat dd{font-size:20px;line-height:1.3;font-weight:600;margin-top:3px}
 html body .shell .dashboard-home .home-month-shell{--home-month-heading-height:49px}
 html body .shell .dashboard-home .home-month-shell>.home-month-scope{inset-inline-end:35px;max-width:calc(100% - 118px)}
 html body .shell .dashboard-home .home-month>summary{flex-wrap:nowrap}
 html body .shell .dashboard-home .home-month>summary small{display:none}
 html body .shell .dashboard-home .home-month-scope .home-panel-scope{gap:4px}
 html body .shell .dashboard-home .home-month-scope .home-panel-scope>label{gap:0;font-size:0!important}
 html body .shell .dashboard-home .home-month-scope .home-panel-scope select{width:auto;min-width:0;max-width:100%;padding-inline:6px 21px}
 html body .shell .dashboard-home .home-month-scope .home-panel-scope>details>summary{padding-inline:7px;white-space:nowrap}
 html body .shell .dashboard-home .home-meetings{height:auto;min-height:0;max-height:none;padding-bottom:7px}
 html body .shell .dashboard-home #dashboard-meetings{min-height:0;max-height:86px;flex:0 1 auto;overflow:auto}
 html body .shell .dashboard-home .home-meetings .empty{min-height:30px;padding:6px 10px;font-size:12px!important}
 html body .shell .dashboard-home .home-meetings .home-meeting>summary{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:0 5px;min-height:32px;padding:3px 0}
 html body .shell .dashboard-home .home-meetings .home-meeting>summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body .shell .dashboard-home .home-meetings .home-meeting[open]>summary strong{white-space:normal}
 html body .shell .dashboard-home .home-meetings-pages{margin-top:4px;min-height:32px;padding-top:0;font-size:12px!important}
 html body .shell .dashboard-home .home-meetings-pages :is(button,span){font-size:12px!important;font-weight:400}
 html body .shell .dashboard-home .home-meetings-pages button{min-height:32px;padding:3px 8px}
}


/* mobile-dashboard-scope.css */
@media(max-width:760px){
 html body .home-panel-scope select.mobile-dashboard-native-scope{display:none!important}
 html body .home-panel-scope .mobile-dashboard-scope-button{display:inline-flex;align-items:center;justify-content:space-between;gap:5px;min-width:118px;max-width:100%;min-height:44px;margin:0;padding:6px 8px;box-sizing:border-box;border:1px solid #e5e9ee;border-radius:5px;background:#fff;box-shadow:none;color:#28333d;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;text-align:left;white-space:normal}
 html body .home-panel-scope .mobile-dashboard-scope-button>span{min-width:0;overflow-wrap:anywhere;font:inherit;color:inherit}
 html body .home-panel-scope .mobile-dashboard-scope-button>svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 html body .home-panel-scope .mobile-dashboard-scope-button:disabled{opacity:.48}
 html body .home-panel-scope .mobile-dashboard-scope-button[hidden]{display:none!important}
 .mobile-dashboard-scope-backdrop{position:fixed;inset:0;z-index:68000;background:#0002;overscroll-behavior:contain}
 .mobile-dashboard-scope-popup{position:fixed;width:224px;max-width:calc(100vw - 16px);overflow:auto;box-sizing:border-box;margin:0;padding:0;border:1px solid #e9edf1;border-radius:9px;background:#fff;box-shadow:0 6px 24px #1f293d24;color:#28333d;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
 .mobile-dashboard-scope-popup>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 10px 0 14px;border-bottom:1px solid #f0f2f5;background:#fff;box-sizing:border-box}
 .mobile-dashboard-scope-popup>header>strong{margin:0;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#7e8992}
 .mobile-dashboard-scope-close{display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:0;background:#fff;box-shadow:none;color:#5c6974}
 .mobile-dashboard-scope-close>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body .mobile-dashboard-scope-option{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;margin:0;padding:11px 14px;box-sizing:border-box;border:0;border-bottom:1px solid #f4f5f7;border-radius:0;background:#fff;box-shadow:none;color:#28333d;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;text-align:left;white-space:normal}
 html body .mobile-dashboard-scope-option>span{font:inherit;color:inherit;overflow-wrap:anywhere}
 html body .mobile-dashboard-scope-option>svg{flex:none;width:19px;height:19px;fill:none;stroke:#09b877;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
 html body .mobile-dashboard-scope-option[aria-selected=true]>svg{visibility:visible}
 html body .mobile-dashboard-scope-option:disabled{color:#b6bdc4}
 html body .mobile-dashboard-scope-option:focus-visible{outline:2px solid #a0ddc5;outline-offset:-3px}
 html body .mobile-dashboard-scope-option:active{background:#f3faf7}
}


/* mobile-customer-detail.css */
/* EC presentation for the existing sales detail only. Desktop rules and DOM
   are restored by the adapter when the viewport crosses 760px. */
@media(max-width:760px){
 #modal-root>.modal-backdrop:has(>.mobile-ec-customer-detail){padding:0!important;height:var(--mobile-viewport-height,100dvh)!important}
 body:has(.shell) #modal-root .modal.mobile-ec-customer-detail{position:fixed!important;left:var(--mobile-viewport-left,0px)!important;top:var(--mobile-viewport-top,0px)!important;margin:0!important;width:var(--mobile-viewport-width,100vw)!important;max-width:none!important;height:var(--mobile-viewport-height,100dvh)!important;max-height:none!important;border:0;border-radius:0;display:flex;flex-direction:column;background:#f5f6f8;color:#24282d;box-shadow:none;overflow:hidden}
 .modal.mobile-ec-customer-detail>.modal-header{order:0;min-height:56px;padding:6px 12px;border:0;border-radius:0;background:linear-gradient(110deg,#eaf7fb,#eeeef9 65%,#eff5fc);flex:none}
 .modal.mobile-ec-customer-detail>.modal-header>h2{display:none}
 .modal.mobile-ec-customer-detail>.modal-header>.top-actions{width:100%;justify-content:flex-start}
 .modal.mobile-ec-customer-detail>.modal-header [data-action=close-modal]{width:44px!important;height:44px!important;padding:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:0!important;color:#252a30}
 .modal.mobile-ec-customer-detail>.modal-header [data-action=close-modal]:before{content:'';display:block;width:12px;height:12px;border-left:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);margin-left:7px}
 .modal.mobile-ec-customer-detail>.modal-body{flex:1;min-height:0;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;padding:12px 10px 90px!important;scroll-padding-bottom:100px;background:linear-gradient(115deg,#eef6fa,#f0f0f9 110px,#f5f6f8 260px);font-size:14px;line-height:1.65}
 .modal.mobile-ec-customer-detail .mobile-detail-hero{background:#fff;border-radius:7px;padding:12px 12px 0;margin:0;overflow:hidden}
 .modal.mobile-ec-customer-detail .customer-profile{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:0 0 8px;margin:0;border:0}
 .modal.mobile-ec-customer-detail .customer-profile>.customer-avatar{width:56px;height:56px;flex:none;border-radius:12px;overflow:hidden}
 .modal.mobile-ec-customer-detail .customer-profile>div:not(.detail-primary-actions){flex:1;min-width:0;width:auto}
 .modal.mobile-ec-customer-detail .customer-profile h2{font-size:20px!important;font-weight:500;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}
 .modal.mobile-ec-customer-detail .customer-profile p{font-size:12px!important;line-height:1.6;color:#a0a3a8;margin:0}
 .modal.mobile-ec-customer-detail .customer-profile.mobile-detail-has-owner [data-sales-profile-context]{display:none}
 .modal.mobile-ec-customer-detail .detail-primary-actions,.mobile-ec-customer-detail .detail-top-controls,.mobile-ec-customer-detail .detail-command-bar>button{display:none!important}
 .modal.mobile-ec-customer-detail .detail-command-bar{padding:0;margin:0;border:0}
 .modal.mobile-ec-customer-detail [data-sales-readonly-status]{padding:12px;margin-top:8px;background:#fff;border-radius:6px;font-size:12px;color:#89919a}
 .mobile-detail-button{font-family:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1.5;min-width:44px;min-height:44px;border:0;border-radius:0;box-shadow:none;background:transparent;color:#292c31;padding:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
 .mobile-detail-button:disabled{opacity:.65;cursor:default}
 .mobile-detail-stage:disabled,.mobile-detail-tags:disabled{opacity:1}
 .mobile-detail-button:focus-visible{outline:2px solid #51c28b;outline-offset:-2px}
 .mobile-detail-icon,.mobile-detail-icon svg{display:block;width:22px;height:22px;flex:none}
 .mobile-detail-stage{display:flex;width:100%;gap:10px;padding:8px 0 12px;text-align:left}
 .mobile-detail-stage-text{font-size:14px;white-space:normal;max-width:42%;line-height:1.4}
 .mobile-detail-stage-rail{height:8px;display:flex;flex:1;gap:1px;border-radius:8px;overflow:hidden;min-width:40px}
 .mobile-detail-stage-rail>i{position:relative;flex:1;background:#e4e5e9;min-width:2px}
 .mobile-detail-stage-rail>i.is-complete{background:#11c96a}
 .mobile-detail-stage-rail>i:not(:last-child):after{content:'';position:absolute;right:1px;top:0;width:5px;height:5px;border-top:1px solid #fff;border-right:1px solid #fff;transform:rotate(45deg);opacity:.65}
 .mobile-detail-chevron{font-size:24px;line-height:1;color:#c8cbd0;flex:none}
 .mobile-detail-tags{display:flex;width:100%;min-height:54px;justify-content:space-between;padding:12px 0;border-top:1px solid #f0f0f2}
 .mobile-detail-tag-values,.mobile-detail-selected-tags{display:flex;flex-wrap:wrap;gap:4px;min-width:0;text-align:left}
 .modal.mobile-ec-customer-detail :is(.mobile-detail-tag-values,.mobile-detail-selected-tags) .tag{font-size:12px!important;font-weight:400;line-height:1.5;padding:2px 5px;border-radius:3px;white-space:normal}
 .mobile-detail-no-tags{color:#b4b7bd;font-size:12px}
 .mobile-detail-tabs{display:flex;gap:22px;align-items:center;min-height:58px;padding:0 12px}
 .mobile-detail-tabs>.mobile-detail-tab{position:relative;padding:12px 0;min-width:44px;font-size:14px!important;color:#9da1a6}
 .mobile-detail-tabs>.mobile-detail-tab[aria-selected=true]{color:#24282c;font-weight:500!important}
 .mobile-detail-tabs>.mobile-detail-tab[aria-selected=true]:after{content:'';height:2px;width:22px;border-radius:2px;background:#43c37c;position:absolute;bottom:6px;left:calc(50% - 11px)}
 .modal.mobile-ec-customer-detail .detail-columns{display:block;border:0;padding:0;margin:0;height:auto}
 .modal.mobile-ec-customer-detail .detail-columns>section{padding:12px!important;margin:0;border:0!important;border-radius:7px;background:#fff;overflow:visible;max-height:none}
 .modal.mobile-ec-customer-detail .detail-columns>section.mobile-detail-tab-hidden{display:none!important}
 .modal.mobile-ec-customer-detail .detail-columns>section>.section-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px!important;font-weight:400;margin:0 0 10px}
 .mobile-detail-info-edit{padding:0;min-width:44px;min-height:44px;margin:-8px -8px -8px 0}
 .mobile-detail-info-edit>span:last-child{display:none}
 .modal.mobile-ec-customer-detail .profile-fields>div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:8px 0;border:0;align-items:start}
 .modal.mobile-ec-customer-detail .profile-fields dt{font-size:14px!important;font-weight:400;color:#a2a5aa;line-height:1.7;white-space:normal}
 .modal.mobile-ec-customer-detail .profile-fields dd,.mobile-ec-customer-detail .profile-fields dd :is(.customer-name,.phone-link){font-size:14px!important;font-weight:400;color:#4d555f;line-height:1.7;overflow-wrap:anywhere}
 .modal.mobile-ec-customer-detail .detail-inline-fields .modal-footer{position:static;flex-wrap:wrap;padding:10px 0;margin-top:12px;gap:8px}
 .modal.mobile-ec-customer-detail .detail-inline-fields .modal-footer>button{display:none!important}
 .modal.mobile-ec-customer-detail .detail-inline-fields .modal-footer:not(:has(.customer-edit-error:not([hidden]))){padding:0;margin:0;min-height:0}
 .modal.mobile-ec-customer-detail .detail-inline-fields .customer-edit-error{position:static;flex-basis:100%;max-height:none;font-size:12px!important;line-height:1.7;padding:4px 0;overflow-wrap:anywhere}
 .modal.mobile-ec-customer-detail .detail-star-field{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 0}
 .modal.mobile-ec-customer-detail .detail-star-field>strong{min-width:86px;font-size:14px;font-weight:400;color:#a2a5aa}
 .modal.mobile-ec-customer-detail #detail-star-control{display:flex;align-items:center;gap:4px;flex:1;min-width:0;flex-wrap:wrap}
 .modal.mobile-ec-customer-detail .detail-star-field .numbered-star{width:30px;min-width:30px;height:44px;min-height:44px}
 .modal.mobile-ec-customer-detail .detail-star-field .numbered-star>span{font-size:26px!important}
 .modal.mobile-ec-customer-detail .detail-star-field .numbered-star>b{display:none}
 .modal.mobile-ec-customer-detail .detail-star-field .star-current-label{font-size:12px!important;font-weight:400;color:#9ca4ad;margin:0}
 .modal.mobile-ec-customer-detail .detail-columns>section:nth-child(2)>.section-heading{display:none}
 .modal.mobile-ec-customer-detail .detail-columns>section>p.tiny{font-size:12px!important;color:#a5a9af;margin:10px 0 0}
 .mobile-detail-activity-head{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:#8f949c;font-size:12px;padding-bottom:8px}
 .mobile-detail-activity-add{padding:0;border-radius:50%;background:#f5f6f8}
 .mobile-detail-activity-add>span:last-child{display:none}
 .modal.mobile-ec-customer-detail .detail-columns #follow-form{display:none}
 .modal.mobile-ec-customer-detail #follow-history .follow-history-head{font-size:12px!important;color:#a2a7ae;margin:0 0 6px}
 .modal.mobile-ec-customer-detail #follow-history .follow-record{padding:4px 0 8px 10px;border-left:1px solid #edf0f2;margin:0 0 4px 4px}
 .modal.mobile-ec-customer-detail #follow-history .follow-record-header{display:flex;gap:0 4px;align-items:center;min-height:44px;padding-right:88px;margin-bottom:2px;font-size:12px!important;line-height:1.5;flex-wrap:wrap;color:#a6aab1;position:relative}
 .modal.mobile-ec-customer-detail #follow-history .follow-record-header>time{flex-basis:100%}
 .modal.mobile-ec-customer-detail #follow-history .follow-record-actor{max-width:calc(100% - 52px)}
 .modal.mobile-ec-customer-detail .follow-record-actor{font-size:12px!important;font-weight:400;color:#8e949c;overflow-wrap:anywhere}
 .modal.mobile-ec-customer-detail #follow-history .record-type{font-size:12px!important;font-weight:400;background:transparent;color:#343a42;padding:0}
 .modal.mobile-ec-customer-detail #follow-history .follow-record-content{font-size:14px!important;font-weight:400;line-height:1.6;color:#858c96;white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0}
 .modal.mobile-ec-customer-detail .activity-change-lines{font-size:14px!important;line-height:1.6;color:#858c96}
 .modal.mobile-ec-customer-detail .activity-change-lines strong{font-size:14px!important;font-weight:400;color:#858c96}
 .modal.mobile-ec-customer-detail .follow-record-attachment>a{font-size:12px!important;line-height:1.7;min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere}
 .mobile-detail-record-actions{position:absolute;right:-6px;top:0;display:flex;margin:0;align-items:center;gap:0}
 .mobile-detail-record-actions>.mobile-detail-button{padding:10px;min-width:44px;min-height:44px;color:#9aa1aa}
 .mobile-detail-record-actions>.mobile-detail-button>span:last-child{display:none}
 .mobile-detail-record-open .mobile-detail-icon{width:18px;height:18px;color:#55c78d}
 .mobile-detail-record-comment .mobile-detail-icon{width:17px;height:17px}
 .modal.mobile-ec-customer-detail .follow-record-next,.mobile-ec-customer-detail .follow-pagination{font-size:12px!important;font-weight:400;color:#a0a6ae}
 .modal.mobile-ec-customer-detail .follow-pagination .button{font-size:14px!important;min-height:44px;padding:8px 12px;box-shadow:none;border-color:#ebedf0}
 .modal.mobile-ec-customer-detail .mobile-detail-dock{position:absolute;z-index:3;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));min-height:62px;display:flex;align-items:center;justify-content:space-around;gap:4px;border-radius:32px;background:#ffffffed;backdrop-filter:blur(10px);box-shadow:0 2px 14px #c3cbd326;padding:3px 15px}
 .mobile-detail-dock>.mobile-detail-button{display:flex;flex:1;flex-direction:column;gap:3px;min-height:54px;padding:5px 2px;color:#777d85;font-size:12px!important;white-space:nowrap}
 .mobile-detail-dock>.mobile-detail-button svg{width:22px;height:22px}
 .shell.mobile-sales-detail-visible:not(:has(.mobile-app-page))>.mobile-app-nav{visibility:hidden;pointer-events:none}
 .shell.mobile-sales-detail-visible:has(.mobile-app-page)>.mobile-app-nav{visibility:visible;pointer-events:auto}
 .mobile-customer-detail-layer{position:absolute;z-index:5;inset:54px 0 0;display:flex;flex-direction:column;min-height:0;background:#fff;border-radius:14px 14px 0 0;box-shadow:0 -100px 0 100px #2229363d;overflow:hidden}
 .mobile-detail-layer-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:56px;flex:none;padding:4px 12px;border-bottom:1px solid #f5f5f7;background:#fff}
 .mobile-detail-layer-header>h2{grid-column:2;margin:0;font-size:16px!important;font-weight:400!important;line-height:1.5;text-align:center;overflow-wrap:anywhere}
 .mobile-detail-layer-header>button{grid-column:1;grid-row:1;padding:10px}
 .mobile-detail-layer-header>button>span:last-child{display:none}
 .mobile-detail-layer-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 16px 16px;background:#fff;font-size:14px}
 .mobile-detail-layer-status{font-size:12px;color:#89949f;line-height:1.6;margin:0;padding:0 16px;white-space:pre-wrap;overflow-wrap:anywhere;flex:none}
 .mobile-detail-layer-status:empty{display:none}
 .mobile-detail-layer-status[data-error=true]{color:#b75555;padding-top:8px;padding-bottom:8px}
 .mobile-detail-layer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:66px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #f5f5f7;background:#fff}
 .mobile-detail-layer-footer:empty,.mobile-detail-layer-footer:has(>.mobile-detail-comment-form[hidden]){display:none}
 .mobile-detail-confirm{background:#0acb67;color:#fff;border-radius:3px;min-width:66px;padding:8px 16px}
 .mobile-detail-confirm:disabled{background:#b8ebce;opacity:1}
 .mobile-detail-selected-label{font-size:12px;color:#6c747e;background:#f5f6f8;padding:3px 7px;max-width:70%;overflow-wrap:anywhere}
 .mobile-detail-stage-choices{display:flex;flex-direction:column}
 .mobile-detail-stage-choice{position:relative;justify-content:flex-start;padding:16px 0;min-height:56px;border-bottom:1px solid #f5f5f7;text-align:left;font-size:16px!important}
 .mobile-detail-stage-choice.is-selected:after{content:'✓';position:absolute;right:5px;color:#58c58c;font-size:22px}
 .mobile-detail-tag-choices{display:flex;gap:10px;flex-wrap:wrap;align-content:flex-start;padding:10px 0}
 .mobile-detail-tag-choice{padding:8px;background:#f6f7f8;border-radius:3px;min-height:44px}
 .mobile-detail-tag-choice .tag{font-size:14px!important;line-height:1.5;white-space:normal;max-width:100%}
 .mobile-detail-tag-choice:not(.is-selected) .tag{background:transparent!important;color:#6e747c!important}
 .mobile-detail-tag-choice.is-selected{outline:1px solid #c2e9d1;outline-offset:-1px}
 .mobile-detail-selected-tags{flex:1}
 .mobile-detail-more-item{display:flex;width:100%;justify-content:flex-start;min-height:50px;padding:12px 4px;border-bottom:1px solid #f3f4f6;font-size:16px!important}
 .mobile-detail-menu-label{font-size:12px;color:#a3a8ae;margin:20px 4px 4px}
 .mobile-ec-customer-detail .mobile-detail-recording-status{display:block;font-size:12px!important;line-height:1.7;white-space:normal;overflow-wrap:anywhere;margin-top:10px;padding:8px 12px;background:#fff;border-radius:6px;color:#909ba7}
 .mobile-detail-follow-customer{display:flex;gap:16px;justify-content:space-between;padding:12px 0 18px;font-size:14px;color:#a0a6af}
 .mobile-detail-follow-customer strong{font-size:14px;font-weight:400;color:#757f8d;text-align:right;overflow-wrap:anywhere}
 .mobile-customer-detail-layer #follow-form:not([hidden]){display:block!important;margin:0;padding:0;border:0;background:#fff}
 .mobile-customer-detail-layer #follow-form textarea{font-size:16px!important;line-height:1.7;height:200px!important;min-height:200px;max-height:50dvh;border:0;border-radius:0;padding:12px 0;box-shadow:none;resize:vertical}
 .mobile-customer-detail-layer #follow-form .follow-composer-head{font-size:12px;color:#a3a8af}
 .mobile-customer-detail-layer #follow-form :is(input,select){font-size:16px!important;min-height:44px}
 .mobile-customer-detail-layer #follow-form .button{font-size:14px!important;min-height:44px;box-shadow:none}
 .mobile-customer-detail-layer #follow-form .tiny{font-size:12px!important;line-height:1.7}
 .mobile-customer-detail-layer #follow-form .audio-tools{display:flex;flex-wrap:wrap;gap:8px}
 .mobile-ec-customer-detail #follow-form .audio-upload,.mobile-ec-customer-detail #follow-form #record-button:not(.mobile-detail-stop-recording),.mobile-ec-customer-detail #follow-composer-tools>p{display:none!important}
 .mobile-ec-customer-detail #follow-form:not(.mobile-detail-recording-active):not(.mobile-detail-has-pending-audio) #audio-status{display:none!important}
 .mobile-customer-detail-layer #follow-form [type=submit]{display:block;margin:16px 0 0 auto;background:#0acb67;border-color:#0acb67;color:#fff}
 .mobile-detail-record-full{font-size:14px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
 .mobile-detail-record-full .follow-record-header{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#9ba2ac}
 .mobile-detail-record-full .follow-record-content{font-size:14px;line-height:1.9;white-space:pre-wrap;color:#727c88}
 .mobile-detail-record-full audio{max-width:100%}
 .mobile-detail-comment{padding:14px 0;border-bottom:1px solid #f1f3f5}
 .mobile-detail-comment>header{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:12px;color:#a0a7b0}
 .mobile-detail-comment>header>strong{font-size:14px;font-weight:400;color:#596574}
 .mobile-detail-comment>p{font-size:14px;line-height:1.8;color:#6e7886;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
 .mobile-detail-comment-empty{font-size:14px;color:#a0a7b0;text-align:center;padding:30px 0}
 .mobile-detail-comment-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#9aa3ae}
 .mobile-detail-comment-form{display:flex;align-items:flex-end;gap:10px;flex:1;width:100%}
 .mobile-detail-comment-form textarea{flex:1;min-width:0;font-size:16px!important;line-height:1.5;min-height:44px;max-height:160px;padding:10px;border:0;background:#f6f7f9;border-radius:3px;resize:vertical;color:#3c4653}
}

/* Opened only from a phone customer detail; original PC actions retain their modal. */
.mobile-sales-action-panel{position:absolute;inset:8px;z-index:32;display:flex;flex-direction:column;min-width:0;max-width:720px;max-height:calc(100% - 16px);margin:auto;background:#fff;border:1px solid #e9ecef;border-radius:14px;box-shadow:0 14px 50px #142b4230;overflow:hidden;color:#252a2f}
.mobile-sales-action-header{display:flex;align-items:center;gap:12px;flex:none;min-height:52px;padding:4px 8px 4px 16px;border-bottom:1px solid #edf0f2}
.mobile-sales-action-header>h2{flex:1;margin:0;font-size:18px;font-weight:500;line-height:1.4}
.mobile-sales-action-header>button{min-width:44px;min-height:44px;padding:8px;border:0;box-shadow:none;background:transparent;color:#343a40;font-size:26px}
.mobile-sales-action-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px}
@media(max-width:760px){
 .mobile-sales-action-body :is(input,select,textarea){font-size:16px}
 .mobile-sales-action-body :is(button,summary,.organization-person){min-height:44px}
 .mobile-sales-action-body p{font-size:14px;line-height:1.6}
 .mobile-sales-action-body .modal-footer{position:sticky;bottom:-14px;z-index:3;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:12px -16px -14px;padding:10px 16px;background:#fff;border-top:1px solid #edf0f2}
}
.mobile-sales-action-body .tree-picker{max-height:none;overflow:visible}
@media(max-width:760px){
 .mobile-ec-customer-detail .mobile-sales-action-panel .mobile-sales-action-body :is(button,summary){min-height:44px!important}
 .mobile-ec-customer-detail .mobile-sales-action-panel .mobile-sales-action-body .button{font-size:16px!important;padding:10px 14px}
}
.mobile-sales-action-panel{bottom:auto;overflow:visible}
.mobile-sales-action-header>h2{color:#252a2f}
.mobile-sales-action-body{max-height:calc(100dvh - 100px);border-radius:0 0 14px 14px}
@media(max-width:760px){.mobile-ec-customer-detail .mobile-sales-action-body .modal-footer{background:#fff}}

.mobile-sales-action-backdrop{position:absolute;inset:0;z-index:32;overflow:hidden;background:#243b531c}


/* mobile-workflow-detail.css */
@media(max-width:760px){
 html body .mobile-ec-workflow-detail{display:flex;flex-direction:column;width:100vw!important;height:var(--mobile-viewport-height,100dvh)!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden;background:#fff}
 html body .mobile-ec-workflow-detail>.modal-header{min-height:45px;padding:5px 12px!important;flex:none;background:#fff;border:0}
 html body .mobile-ec-workflow-detail>.modal-header h2{font-size:14px!important;font-weight:400;color:#84909a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body .mobile-ec-workflow-detail>.modal-body{flex:1;min-height:0;max-height:none!important;padding:5px 16px 14px!important;overflow:auto;overscroll-behavior:contain;background:white}
 html body .mobile-ec-workflow-detail .workflow-record-profile{display:flex;align-items:center;gap:11px;padding:7px 0 12px!important;margin:0!important;border:0!important;background:transparent}
 html body .mobile-ec-workflow-detail .workflow-record-profile>.customer-avatar{width:46px;height:46px;min-width:46px;flex-basis:46px;border-radius:50%}
 html body .mobile-ec-workflow-detail [data-wf-detail-name]{font-size:20px!important;font-weight:600;line-height:1.35;letter-spacing:0;margin:0!important;color:#252a30}
 html body .mobile-ec-workflow-detail [data-wf-detail-context]{display:none}
 html body .mobile-ec-workflow-detail .mobile-workflow-owner-line{font-size:13px!important;line-height:1.45;margin:5px 0 0;color:#8c949d}
 html body .mobile-ec-workflow-detail .detail-primary-actions,html body .mobile-ec-workflow-detail .workflow-record-context,html body .mobile-ec-workflow-detail .workflow-detail-footer{display:none!important}
 html body .mobile-ec-workflow-detail .workflow-detail-widgets{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:3px 0 11px!important;margin:0;border:0}
 html body .mobile-ec-workflow-detail .workflow-detail-widgets[hidden]{display:none!important}
 html body .mobile-ec-workflow-detail .workflow-detail-widgets :is(label,select,summary,button){font-size:14px!important;font-weight:400}
 html body .mobile-ec-workflow-detail .workflow-stage-control{display:flex;align-items:center;gap:6px;margin:0;min-width:0}
 html body .mobile-ec-workflow-detail select.mobile-workflow-native-stage{display:none!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-stage-button{display:flex;align-items:center;min-height:40px;padding:6px 9px;border:0;border-radius:5px;background:#eef2fc;color:#6e86bd;box-shadow:none;max-width:100%;font-size:14px!important}
 html body .mobile-ec-workflow-detail .workflow-detail-tag-caption{min-height:40px;padding:6px 9px;font-size:13px!important;line-height:1.4;background:#f4f7fa;border:0;border-radius:5px}
 html body .mobile-ec-workflow-detail .workflow-tag-choice{font-size:12px!important;line-height:1.4;min-height:24px;padding:3px 6px;border:0;border-radius:4px}
 html body .mobile-ec-workflow-detail .mobile-workflow-tabs{display:flex;gap:28px;border-bottom:1px solid #edf0f3;margin:0 0 10px;padding:0 4px}
 html body .mobile-ec-workflow-detail .mobile-workflow-tab{position:relative;display:flex;align-items:center;min-height:45px;margin:0;padding:8px 2px;border:0;border-radius:0;background:white;box-shadow:none;font-size:15px!important;font-weight:400;color:#9a9fa7}
 html body .mobile-ec-workflow-detail .mobile-workflow-tab[aria-selected=true]{color:#0ac27c}
 html body .mobile-ec-workflow-detail .mobile-workflow-tab[aria-selected=true]:after{position:absolute;content:"";height:3px;width:21px;background:#0ac27c;border-radius:2px;bottom:0;left:50%;transform:translateX(-50%)}
 html body .mobile-ec-workflow-detail .workflow-detail-columns{display:block!important;margin:0;padding:0!important;min-width:0}
 html body .mobile-ec-workflow-detail .workflow-detail-columns>section{width:100%;max-height:none!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important;min-width:0}
 html body .mobile-ec-workflow-detail .mobile-workflow-panel-hidden{display:none!important}
 html body .mobile-ec-workflow-detail .section-heading{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin:0 0 3px;padding:0;border:0;font-size:14px!important;font-weight:400;color:#4c5965}
 html body .mobile-ec-workflow-detail .mobile-workflow-edit{display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;margin:0;padding:10px;border:0;background:transparent;color:#4f5a65;box-shadow:none;font-size:0!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-edit:before{content:"";display:block;width:22px;height:22px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m4 16-1 5 5-1L21 7l-4-4zM14 6l4 4'/%3E%3C/svg%3E")}
 html body .mobile-ec-workflow-detail[data-wf-detail-editing=true] .mobile-workflow-edit:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round' d='M4 3h13l4 4v14H3V3h1zm3 0v7h10V3M7 21v-8h10v8'/%3E%3C/svg%3E");color:#0bbd79}
 html body .mobile-ec-workflow-detail .workflow-detail-field-row{display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px;min-height:41px;padding:9px 0!important;border-bottom:1px solid #f0f2f5!important}
 html body .mobile-ec-workflow-detail .workflow-detail-field-row dt{font-size:12px!important;line-height:1.55;color:#9a9fa8;overflow-wrap:anywhere}
 html body .mobile-ec-workflow-detail .workflow-detail-field-row dd,html body .mobile-ec-workflow-detail .workflow-detail-value{font-size:14px!important;line-height:1.55;color:#3e4c59;overflow-wrap:anywhere}
 html body .mobile-ec-workflow-detail .workflow-detail-field-editor>:is(input,select,textarea){min-height:42px;font-size:16px!important;line-height:1.5;padding:8px;box-sizing:border-box;max-width:100%}
 html body .mobile-ec-workflow-detail .mobile-workflow-save-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;font-size:12px;color:#87929c}
 html body .mobile-ec-workflow-detail .mobile-workflow-save-line:has([data-wf-detail-save-status]:empty):not(:has([data-wf-detail-drafts]:not([hidden]))){display:none}
 html body .mobile-ec-workflow-detail .mobile-workflow-save-line button{min-height:40px;font-size:12px}
 html body .mobile-ec-workflow-detail .mobile-workflow-notice:empty{display:none}
 html body .mobile-ec-workflow-detail .mobile-workflow-notice{font-size:12px;color:#b97a45;margin:3px 0 7px;line-height:1.45}
 html body .mobile-ec-workflow-detail .mobile-workflow-activity-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;font-size:13px;color:#929aa4}
 html body .mobile-ec-workflow-detail .mobile-workflow-activity-header button{display:flex;align-items:center;gap:4px;min-height:42px;padding:4px;border:0;background:none;box-shadow:none;font-size:12px;color:#8395ac}
 html body .mobile-ec-workflow-detail .mobile-workflow-activity-header svg{width:18px;height:18px}
 html body .mobile-ec-workflow-detail .workflow-detail-follow-section>.section-heading,html body .mobile-ec-workflow-detail:not(.mobile-workflow-layer-open) #workflow-follow-area{display:none!important}
 html body .mobile-ec-workflow-detail #workflow-follow-history .timeline{gap:0;margin-top:0}
 html body .mobile-ec-workflow-detail #workflow-follow-history .follow-record{padding:9px 0;margin:0;border:0;border-bottom:1px solid #f0f2f4;border-radius:0;background:white;box-shadow:none}
 html body .mobile-ec-workflow-detail #workflow-follow-history .follow-record-header{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 4px;line-height:1.3;font-size:11px}
 html body .mobile-ec-workflow-detail #workflow-follow-history .follow-record-content{margin:3px 0;font-size:14px!important;line-height:1.45!important;white-space:pre-wrap}
 html body .mobile-ec-workflow-detail #workflow-follow-history :is(.activity-change-lines p,.follow-record-next){line-height:1.45;margin:3px 0;font-size:12px}
 html body .mobile-ec-workflow-detail .mobile-workflow-dock{display:flex;align-items:stretch;justify-content:space-around;gap:3px;flex:none;min-height:61px;padding:3px 7px max(3px,env(safe-area-inset-bottom));border-top:1px solid #e9edf1;background:#fff;box-sizing:border-box}
 html body .mobile-ec-workflow-detail .mobile-workflow-dock>:is(button,a){display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;margin:0;padding:4px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#5a6775;font-size:12px!important;font-weight:400;text-align:center;text-decoration:none;line-height:1.3}
 html body .mobile-ec-workflow-detail .mobile-workflow-dock>*>svg{width:23px;height:23px;flex:none}
 html body .mobile-ec-workflow-detail .mobile-workflow-dock>:is(.mobile-workflow-call,.mobile-workflow-assign){font-size:0!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-call:before,html body .mobile-ec-workflow-detail .mobile-workflow-assign:before{content:"";display:block;width:23px;height:23px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m7 3 3 5-3 3a16 16 0 0 0 6 6l3-3 5 3-1 4C10 23 1 14 3 4z'/%3E%3C/svg%3E")}
 html body .mobile-ec-workflow-detail .mobile-workflow-call:after{content:"打电话";font-size:12px}
 html body .mobile-ec-workflow-detail .mobile-workflow-assign:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' d='M8 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8M2 22v-3a6 6 0 0 1 12 0v3m1-10h8m-3-3 3 3-3 3'/%3E%3C/svg%3E")}
 html body .mobile-ec-workflow-detail .mobile-workflow-assign:after{content:"分配";font-size:12px}
 html body .mobile-workflow-layer{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;background:#fff;border-radius:0;overflow:hidden}
 html body .mobile-workflow-layer-header{display:flex;align-items:center;gap:9px;flex:none;min-height:51px;padding:5px 10px;border-bottom:1px solid #eef1f4;box-sizing:border-box}
 html body .mobile-workflow-layer-header>h2{min-width:0;flex:1;font-size:16px!important;line-height:1.4;font-weight:400;margin:0;color:#28333d}
 html body .mobile-workflow-layer-header>button{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:10px;border:0;background:transparent;box-shadow:none}
 html body .mobile-workflow-layer-header>button>span{display:none}
 html body .mobile-workflow-layer-header svg{width:23px;height:23px;color:#44515e}
 html body .mobile-workflow-layer-body{flex:1;min-height:0;overflow:auto;padding:13px 16px;overscroll-behavior:contain}
 html body .mobile-workflow-layer .workflow-follow-composer{border:0;box-shadow:none;background:#fff;margin:0;padding:0}
 html body .mobile-workflow-layer .workflow-follow-composer textarea{display:block;width:100%;min-height:160px;padding:12px;border:1px solid #e7ebef;background:#fbfcfd;border-radius:6px;font-size:16px!important;line-height:1.55;box-sizing:border-box}
 html body .mobile-workflow-layer #workflow-follow-tools{display:flex;flex-direction:column;gap:13px;margin-top:13px}
 html body .mobile-workflow-layer .workflow-follow-next{display:flex;flex-direction:column;gap:7px;font-size:13px}
 html body .mobile-workflow-layer input{font-size:16px!important;min-height:44px;box-sizing:border-box;max-width:100%}
 html body .mobile-workflow-layer [type=submit],html body .mobile-workflow-layer .mobile-workflow-confirm{min-height:44px;border:0;border-radius:6px;background:#0bc47e;color:#fff;box-shadow:none;font-size:15px!important}
 html body .mobile-workflow-layer-status{flex:none;margin:0;padding:6px 16px;font-size:12px;line-height:1.45;color:#b47d46}
 html body .mobile-workflow-layer-status:empty{display:none}
 html body .mobile-workflow-more-original,html body .mobile-workflow-menu-link{display:flex!important;align-items:center;width:100%;min-height:49px;margin:0;padding:12px 3px;border:0!important;border-bottom:1px solid #f0f2f4!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;text-align:left;color:#344250!important;font-size:14px!important;font-weight:400}
 html body .mobile-workflow-more-original[hidden]{display:none!important}
 html body .mobile-workflow-menu-label{margin:14px 0 5px;font-size:12px;color:#a0a7b1}
 html body .mobile-workflow-stage-option{display:flex;align-items:center;justify-content:space-between;min-height:49px;width:100%;padding:10px 4px;border:0;border-bottom:1px solid #f0f2f5;border-radius:0;background:#fff;box-shadow:none;color:#3e4d58;font-size:14px!important;text-align:left}
 html body .mobile-workflow-stage-option[aria-checked=true]:after{content:"✓";color:#09c37c;font-size:18px}
 html body .mobile-workflow-layer-footer{display:flex;justify-content:flex-end;flex:none;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid #edf1f4}
 html body .mobile-workflow-confirm{min-width:104px;padding:8px 16px}
 html body .mobile-ec-workflow-detail .choice-dropdown[open]>.choice-popover{position:fixed;z-index:80;left:12px;right:12px;top:20%;width:calc(100vw - 24px);max-width:none;max-height:60dvh;overflow:auto;box-sizing:border-box;background:#fff;border:1px solid #e5e9ef;border-radius:9px;box-shadow:0 8px 30px #263a5626;padding:12px}
 html body .mobile-ec-workflow-detail .choice-dropdown[open]>.choice-popover button,html body .mobile-ec-workflow-detail .choice-dropdown[open]>.choice-popover label{min-height:40px;font-size:14px!important}
 html body .mobile-workflow-detail-visible>.mobile-app-nav{visibility:hidden;pointer-events:none}
}
@media(max-width:760px){
 html body .mobile-ec-workflow-detail .mobile-workflow-submit-slot{display:flex;flex:1;min-width:0;align-items:stretch}
 html body .mobile-ec-workflow-detail .mobile-workflow-submit-slot[hidden],html body .mobile-ec-workflow-detail .mobile-workflow-submit-slot>[hidden]{display:none!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-submit-slot>button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;margin:0;padding:4px;border:0;border-radius:0;background:white;box-shadow:none;color:#5a6775;font-size:12px!important;line-height:1.3;font-weight:400}
 html body .mobile-ec-workflow-detail .mobile-workflow-submit-slot svg{width:23px;height:23px}
 html body .mobile-ec-workflow-detail .mobile-workflow-submit-slot>.mobile-workflow-submit-original{font-size:0!important}
 html body .mobile-workflow-submit-original:before{content:"";display:block;width:23px;height:23px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M12 17V3m-5 5 5-5 5 5M4 16v5h16v-5'/%3E%3C/svg%3E")}
 html body .mobile-workflow-submit-original:after{content:"提交";font-size:12px}
}
@media(max-width:760px){
 html body .modal-backdrop:has(>.mobile-ec-workflow-detail){padding:0!important;align-items:stretch!important}
 html body .mobile-workflow-layer .workflow-follow-composer textarea{height:160px!important;min-height:160px!important;max-height:50dvh!important}
}
@media(max-width:760px){
 html body #modal-root>.modal-backdrop>.mobile-ec-workflow-detail{position:fixed!important;left:var(--mobile-viewport-left,0px)!important;top:var(--mobile-viewport-top,0px)!important;right:auto!important;bottom:auto!important;transform:none!important;box-sizing:border-box}
 html body .mobile-ec-workflow-detail #workflow-follow-history .follow-history-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;font-size:12px;margin:0 0 4px}
 html body .mobile-ec-workflow-detail .workflow-detail-widgets .workflow-stage-control>span,html body .mobile-ec-workflow-detail .workflow-detail-widgets .workflow-tags-control>span{font-size:12px!important;font-weight:400;color:#98a0a9}
}
@media(max-width:760px){
 /* An original submit/fee/contract popover opened from the chooser remains
    above that chooser, with its own unchanged close and busy controls. */
 html body .mobile-ec-workflow-detail.mobile-workflow-layer-open>:is([role=dialog],[role=alertdialog],.workflow-submit-popover):not(.mobile-workflow-layer){z-index:90!important}
}
@media(max-width:760px){
 html body .mobile-ec-workflow-detail #workflow-follow-history .follow-record{padding-top:6px;padding-bottom:7px}
 html body .mobile-ec-workflow-detail #workflow-follow-history .activity-change-lines,html body .mobile-ec-workflow-detail #workflow-follow-history .activity-change-lines p{font-size:14px!important;line-height:1.45}
}
@media(max-width:760px){
 html body .mobile-ec-workflow-detail .mobile-workflow-denied{display:none!important}
 html body #modal-root>.modal-backdrop>.mobile-ec-workflow-detail>.mobile-workflow-dock{position:absolute;z-index:3;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));min-height:62px;display:flex;align-items:center;justify-content:space-around;gap:4px;border:0;border-radius:32px;background:#ffffffed;backdrop-filter:blur(10px);box-shadow:0 2px 14px #c3cbd326;padding:3px 15px;box-sizing:border-box}
 html body #modal-root>.modal-backdrop>.mobile-ec-workflow-detail .mobile-workflow-dock>:is(button,a),html body #modal-root>.modal-backdrop>.mobile-ec-workflow-detail .mobile-workflow-submit-slot>button{background:transparent!important;background-image:none!important;color:#777d85!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:54px;padding:5px 2px;gap:3px;white-space:nowrap}
 html body #modal-root>.modal-backdrop>.mobile-ec-workflow-detail>.modal-body{padding-bottom:88px!important;background:#f5f6f8}
 html body .mobile-ec-workflow-detail .workflow-record-profile{background:#fff!important;border-radius:12px;padding:12px!important}
 html body .mobile-ec-workflow-detail .workflow-detail-widgets{background:#fff;border-radius:0 0 12px 12px;padding:0 12px 12px!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-tabs{background:#fff;border-radius:9px 9px 0 0;padding:0 12px;margin-top:10px}
 html body .mobile-ec-workflow-detail .workflow-detail-columns>.workflow-detail-profile-section,html body .mobile-ec-workflow-detail .workflow-detail-columns>.workflow-detail-follow-section{background:#fff!important;border-radius:0 0 9px 9px;padding:0 12px 10px!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-save-line{background:#fff;padding:0 12px}
}
@media(max-width:760px){
 body:has(.shell) #modal-root>.modal-backdrop:has(>.mobile-ec-workflow-detail){top:var(--mobile-viewport-top,0px)!important;bottom:auto!important;padding:0!important;height:var(--mobile-viewport-height,100dvh)!important}
 body:has(.shell) #modal-root .modal.mobile-ec-workflow-detail{position:fixed!important;left:var(--mobile-viewport-left,0px)!important;top:var(--mobile-viewport-top,0px)!important;width:var(--mobile-viewport-width,100vw)!important;height:var(--mobile-viewport-height,100dvh)!important;max-height:none!important;max-width:none!important;margin:0!important;overflow:hidden;resize:none;background:#f5f6f8;box-shadow:none}
 html body .mobile-ec-workflow-detail>.modal-header{min-height:56px;padding:6px 12px!important;background:linear-gradient(110deg,#eaf7fb,#eeeef9 65%,#eff5fc);border:0;border-radius:0}
 html body .mobile-ec-workflow-detail>.modal-header>h2{display:none!important}
 html body .mobile-ec-workflow-detail>.modal-header>.top-actions{width:100%;justify-content:flex-start}
 html body .mobile-ec-workflow-detail>.modal-header [data-action=maximize-modal]{display:none!important}
 html body .mobile-ec-workflow-detail>.modal-header [data-action=close-modal]{display:grid;place-items:center;width:44px!important;min-width:44px;min-height:44px!important;padding:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#252a30;font-size:0!important}
 html body .mobile-ec-workflow-detail>.modal-header [data-action=close-modal]:before{content:'';display:block;width:12px;height:12px;border-left:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);margin-left:7px}
 html body #modal-root .mobile-ec-workflow-detail>.modal-body{padding:12px 10px 90px!important;scroll-padding-bottom:100px;background:linear-gradient(115deg,#eef6fa,#f0f0f9 110px,#f5f6f8 260px)}
 html body .mobile-ec-workflow-detail .workflow-record-profile{border-radius:7px 7px 0 0;padding:12px 12px 8px!important}
 html body .mobile-ec-workflow-detail .workflow-record-profile>.customer-avatar{width:56px;height:56px;min-width:56px;flex-basis:56px;border-radius:12px}
 html body .mobile-ec-workflow-detail [data-wf-detail-name]{font-weight:500;line-height:1.4}
 html body .mobile-ec-workflow-detail .mobile-workflow-owner-line{font-size:12px!important;color:#a0a3a8;line-height:1.6}
 html body .mobile-ec-workflow-detail .workflow-detail-widgets{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0 12px!important;border-radius:0 0 7px 7px}
 html body .mobile-ec-workflow-detail .workflow-stage-control:has(>select[data-wf-widget=workflowStage]){display:block;width:100%}
 html body .mobile-ec-workflow-detail .workflow-stage-control:has(>select[data-wf-widget=workflowStage])>span{display:none!important}
 html body .mobile-ec-workflow-detail .mobile-workflow-stage-button{display:flex;align-items:center;width:100%;gap:10px;min-height:44px;padding:8px 0 12px;background:transparent!important;color:#292c31;border:0;border-radius:0;text-align:left;box-shadow:none}
 html body .mobile-ec-workflow-detail .mobile-workflow-stage-button>span:first-child{flex:none;max-width:42%;font-size:14px;line-height:1.4;white-space:normal}
 html body .mobile-workflow-stage-rail{display:flex;flex:1;gap:1px;height:8px;min-width:40px;border-radius:8px;overflow:hidden}
 html body .mobile-workflow-stage-rail:empty{display:none}
 html body .mobile-workflow-stage-rail>i{position:relative;flex:1;min-width:2px;background:#e4e5e9}
 html body .mobile-workflow-stage-rail>i.is-complete{background:#11c96a}
 html body .mobile-workflow-stage-rail>i:not(:last-child):after{content:'';position:absolute;right:1px;top:0;width:5px;height:5px;border-top:1px solid #fff;border-right:1px solid #fff;transform:rotate(45deg);opacity:.65}
 html body .mobile-ec-workflow-detail .workflow-tags-control{display:block;width:100%;min-width:0;border-top:1px solid #f0f0f2}
 html body .mobile-ec-workflow-detail .workflow-tags-control>span:first-child{display:none!important}
 html body .mobile-ec-workflow-detail .workflow-tags-control>details{width:100%}
 html body .mobile-ec-workflow-detail .workflow-tags-control .workflow-detail-tag-caption{display:flex;align-items:center;gap:5px;min-height:54px;padding:12px 0;border:0;border-radius:0;background:transparent;font-size:12px!important}
 html body .mobile-ec-workflow-detail .workflow-tags-control summary.workflow-detail-tag-caption:after{content:'›';margin-left:auto;color:#a5aab0;font-size:22px;line-height:1}
 html body .mobile-ec-workflow-detail .mobile-workflow-tabs{min-height:58px;gap:22px;align-items:center;border:0;background:#fff;border-radius:7px 7px 0 0;margin:10px 0 0;padding:0 12px}
 html body .mobile-ec-workflow-detail .mobile-workflow-tab{padding:12px 0;min-width:44px;font-size:14px!important;color:#9da1a6}
 html body .mobile-ec-workflow-detail .mobile-workflow-tab[aria-selected=true]{color:#24282c;font-weight:500}
 html body .mobile-ec-workflow-detail .mobile-workflow-tab[aria-selected=true]:after{bottom:6px;height:2px;width:22px;background:#43c37c}
 html body .mobile-ec-workflow-detail .workflow-detail-field-row{grid-template-columns:86px minmax(0,1fr);gap:10px;padding:8px 0!important;min-height:0;border:0!important}
 html body .mobile-ec-workflow-detail .workflow-detail-field-row dt{font-size:14px!important;font-weight:400;color:#a2a5aa!important;line-height:1.7}
 html body .mobile-ec-workflow-detail .workflow-detail-field-row dd,html body .mobile-ec-workflow-detail .workflow-detail-value{font-size:14px!important;font-weight:400;color:#4d555f;line-height:1.7}
}
@media(max-width:760px){
 html body #modal-root .mobile-ec-workflow-detail .mobile-workflow-edit{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
}


/* mobile-call-guide.css */
.mobile-call-guide-backdrop{display:none}
@media(max-width:760px){
 .shell>.mobile-call-guide-backdrop{display:flex;position:fixed;z-index:630;inset:0;background:#0005;align-items:flex-end;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
 .shell .mobile-call-guide{background:#fff;color:#20252a;width:100%;max-height:calc(var(--mobile-viewport-height,100dvh) - 36px);overflow:auto;border-radius:16px;padding:0;box-shadow:0 8px 32px #0002;font:400 14px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
 .shell .mobile-call-guide>header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eff1f3}
 .shell .mobile-call-guide h2{font-size:17px;font-weight:500;margin:0}
 .shell .mobile-call-guide>header button{display:grid;place-items:center;width:40px;height:40px;padding:10px;border:0;background:transparent;color:#737c83}
 .shell .mobile-call-guide svg{width:22px;height:22px}
 .shell .mobile-call-guide-body{padding:0 18px 4px}
 .shell .mobile-call-guide-body ol{padding-left:21px}
 .shell .mobile-call-guide-body li{margin-block:8px}
 .shell .mobile-call-guide-note{color:#8d949b;font-size:12px}
 .shell .mobile-call-guide>footer{display:flex;gap:10px;padding:12px 16px 16px}
 .shell .mobile-call-guide>footer button{flex:1;border:0;border-radius:8px;background:#f1f3f5;color:#353b42;font-size:15px;min-height:44px;padding:10px;box-shadow:none}
 .shell .mobile-call-guide>footer :is([data-mobile-call-continue],[data-mobile-call-download]){background:#08bf6a;color:#fff}
 .shell .mobile-call-setup .recording-setup-download{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-block:12px}
 .shell .mobile-call-setup .recording-setup-download small{display:block;font-size:12px;color:#8d949b}
 .shell .mobile-call-setup .recording-setup-download .button{flex:none;min-height:44px;padding:10px;font-size:14px;box-shadow:none}
 .shell .mobile-call-setup .tiny{font-size:12px;line-height:1.6}
}


/* workflow-mobile-list.css */
@media(max-width:760px){
 .workflow-mobile-continuous>#workflow-pagination,.workflow-mobile-continuous #workflow-pagination{display:none!important}
 .workflow-mobile-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:30px;padding:3px 8px;color:#92999d;font-size:12px;line-height:1.4}
 .workflow-mobile-summary-actions{display:flex;align-items:center;gap:6px;min-width:0}
 .workflow-mobile-summary button{min-height:30px;padding:4px 5px;background:transparent;border:0;box-shadow:none;color:inherit;font:inherit}
 .workflow-mobile-tail{flex:none;display:flex;align-items:center;justify-content:center;gap:10px;min-height:32px;font-size:12px;color:#92999d}
 .workflow-mobile-tail button{min-height:40px;padding:7px 12px}
 .workflow-mobile-options{display:grid;gap:0}.workflow-mobile-options>button{min-height:48px;text-align:left;background:transparent;border:0;border-bottom:1px solid #edf0ef;box-shadow:none;font-size:16px}
 .workflow-mobile-quantity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.workflow-mobile-quantity>button{min-width:0;min-height:48px;font-size:16px}
}



/* mobile-customer-feed.css */
.mobile-customer-feed-batch{display:none}
@media(max-width:760px){
 .shell.mobile-customer-active .priority-view-page.mobile-customer-feed{display:flex;flex-direction:column;min-height:0;height:var(--mobile-feed-height,60dvh);max-height:var(--mobile-feed-height,60dvh);overflow:hidden;padding-bottom:0}
 .shell.mobile-customer-active .priority-view-page.mobile-customer-feed>.mobile-customer-cards{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior-y:contain}
 .mobile-customer-feed>.pagination{display:none!important}
 .mobile-customer-feed-controls{flex:none;margin:0;background:#fff;border:0;padding:0 12px}
 .mobile-customer-feed-head{display:flex;align-items:center;gap:8px;min-height:42px;color:#949ba3}
 .mobile-customer-feed-head>small{font-size:12px!important;white-space:nowrap;margin-right:auto}
 .mobile-customer-feed-head>div{display:flex;gap:0}
 .mobile-customer-feed-head button{min-width:44px;min-height:44px;padding:8px 6px;border:0;background:transparent;box-shadow:none;color:#8e959d;font-size:13px!important;font-weight:400}
 .mobile-customer-feed-head button.is-active{color:#18b773}
 .mobile-pull-refresh{position:relative;z-index:6;flex:none;height:0;pointer-events:none}
 .mobile-pull-refresh>span{position:absolute;top:6px;left:50%;transform:translateX(-50%);padding:4px 10px;border-radius:12px;background:#eaf9f4;color:#398673;white-space:nowrap;font-size:12px;line-height:1.4}
 .mobile-customer-feed-tail{text-align:center;padding:12px 12px 25px;background:#fff;font-size:12px;color:#9a9fa7}
 .mobile-customer-feed-tail p:empty{display:none}
 .mobile-customer-feed-tail p[data-error=true]{color:#af5b51}
 .mobile-customer-feed-tail button{min-height:44px;border:0;box-shadow:none;background:transparent;font-size:14px;color:#7f8994}
 [data-mobile-feed-sentinel]{display:block;height:1px}
 .mobile-customer-feed-picker{position:fixed;inset:0;z-index:1900;display:flex;align-items:flex-end;background:#202b353d}
 .mobile-customer-feed-picker>section{width:100%;max-height:80dvh;overflow:auto;background:#fff;border-radius:14px 14px 0 0;padding:12px 16px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box}
 .mobile-customer-feed-picker header{display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:400}
 .mobile-customer-feed-picker button{min-height:44px;border:0;background:transparent;box-shadow:none;font-size:16px;color:#3d4855}
 .mobile-customer-feed-picker header button{width:44px}
 .mobile-customer-feed-picker section>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 0}
 .mobile-customer-feed-picker section>div button{background:#f4f6f8;border-radius:6px}
 .mobile-customer-feed-picker section>footer{display:flex;gap:8px}
 .mobile-customer-feed-picker section>footer button{flex:1;color:#087c56}
 .mobile-customer-feed-picker button:disabled{opacity:.45}
 .mobile-customer-feed-picker p{font-size:12px;color:#8d969f}
}


/* mobile-company-settings.css */
@media(max-width:760px) {
  html body .shell .company-settings.mobile-company-ready {
    display:block!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;min-width:0;max-width:100%;height:auto;
    overflow:visible;position:relative;
  }
  html body .shell .mobile-company-ready>.company-category-nav {display:none!important}
  .shell .mobile-company-trigger {
    display:flex;justify-content:space-between;align-items:center;gap:10px;
    width:100%;min-width:0;min-height:44px;margin:0 0 10px;padding:8px 12px;
    border:1px solid var(--crm-border,#e2e7eb);border-radius:9px;
    background:var(--crm-surface,#fff);color:var(--crm-ink,#202930);
    font:inherit;font-size:15px;text-align:left;overflow-wrap:anywhere;touch-action:manipulation;
  }
  .shell .mobile-company-trigger>span:last-child {flex:none;color:var(--crm-muted,#66747d);font-size:18px}
  .shell .mobile-company-backdrop {
    display:block;position:fixed;inset:0;z-index:124;
    margin:0;padding:0;border:0;border-radius:0;background:#152a334d;
  }
  html body .shell .mobile-company-ready.mobile-company-open>.company-category-nav {
    display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;
    position:fixed;z-index:125;top:calc(var(--mobile-viewport-top,0px) + max(8px,env(safe-area-inset-top,0px)));
    left:calc(var(--mobile-viewport-left,0px) + 8px);right:auto;bottom:auto;
    box-sizing:border-box;width:calc(var(--mobile-viewport-width,100vw) - 16px)!important;
    min-width:0;max-width:none!important;
    max-height:calc(var(--mobile-viewport-height,100dvh) - max(8px,env(safe-area-inset-top,0px)) - max(8px,env(safe-area-inset-bottom,0px)))!important;
    margin:0;padding:0;overflow:auto!important;overscroll-behavior:contain;
    scroll-padding-block:55px 8px;border-radius:12px;
    background:var(--crm-surface,#fff);box-shadow:0 12px 40px #142b3330;
  }
  html body .shell .mobile-company-ready .company-category-nav :is(.team-pane-toggle,.team-pane-resizer,.company-category-controls) {display:none!important}
  html body .shell .mobile-company-ready .company-category-nav>.company-category-heading {
    display:flex!important;justify-content:space-between;align-items:center;gap:6px;
    position:sticky;top:0;z-index:1;min-height:50px;
    margin:0;padding:4px 8px 4px 12px;flex:none;
    background:var(--crm-surface,#fff);border-bottom:1px solid var(--crm-border,#e2e7eb);
  }
  html body .shell .mobile-company-ready .company-category-heading>strong {
    display:block!important;flex:1;min-width:0;padding:0;font-size:15px;overflow-wrap:anywhere;
  }
  html body .shell .mobile-company-ready .company-category-heading>button {
    flex:none;min-width:44px;width:auto;min-height:42px;margin:0;padding:5px 7px;
    font-size:12px;white-space:nowrap;
  }
  .shell .mobile-company-close {
    color:var(--crm-accent,#19786b);background:none;border:0;border-radius:7px;touch-action:manipulation;
  }
  html body .shell .mobile-company-ready .company-category-nav>.company-category-row {
    display:flex!important;flex:none;min-width:0;margin:0;padding:0 8px;
  }
  html body .shell .mobile-company-ready .company-category-row>[data-company-category] {
    display:flex!important;align-items:center;min-height:44px;
    border:0;border-bottom:1px solid var(--crm-border,#e2e7eb);border-radius:0;
    background:none;box-shadow:none;padding:9px 5px;margin:0;font-size:14px;
  }
  html body .shell .mobile-company-ready .company-category-row>[data-company-category].secondary {
    color:var(--crm-accent,#19786b);font-weight:700;
  }
  .shell .mobile-company-trigger:focus-visible,.shell .mobile-company-close:focus-visible {
    outline:2px solid var(--crm-accent,#19786b);outline-offset:-2px;
  }
  body:has(.mobile-company-open) #fee-reminder-root {z-index:80}

  /* Wide data grids scroll locally; the controls and the fields alongside
     them keep the full width of the phone. No field columns are removed. */
  .shell .mobile-company-ready #company-category-content,
  .shell .mobile-company-ready #company-category-content :is([data-company-active-page],.panel,.settings-section,.fixed-view-layout,.fixed-view-value,.form-field,.scope-overrides,.company-org-policy) {
    min-width:0;max-width:100%;
  }
  html body .shell .mobile-company-ready #company-category-content :is(
    .sales-field-settings .settings-grid.settings-categorized[data-settings-category=fields],
    .workflow-field-settings .workflow-fields-grid:not([hidden]),
    .fixed-view-layout,.column-lists,.form-grid
  ) {grid-template-columns:minmax(0,1fr)!important}
  .shell .mobile-company-ready #company-category-content :is(.table-wrap,.interaction-fields-scroll) {
    max-width:100%;min-width:0;overflow:auto;overscroll-behavior-inline:contain;
  }
  .shell .mobile-company-ready #company-category-content :is(.company-workspace-tabs,.workflow-field-categories,.panel-head,.settings-save-bar,.entry-custom-tools,.handoff-catalog-tools,.permission-group-tools) {
    flex-wrap:wrap;min-width:0;gap:6px;
  }
  .shell .mobile-company-ready #company-category-content :is(.settings-save-bar,.settings-action-list) .button {min-height:44px;white-space:normal}
  .shell .mobile-company-ready #company-category-content :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=color]),textarea,select) {
    min-width:0;max-width:100%;min-height:40px;font-size:16px;
  }
  .shell .mobile-company-ready #company-category-content .company-theme-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .shell .mobile-company-ready #company-category-content :is(.company-org-entry,.scope-overrides details>label,.pool-permission-row) {flex-wrap:wrap;overflow-wrap:anywhere}
  .shell.mobile-keyboard-open .mobile-company-ready {
    --company-keyboard-gap:max(0px,calc(100dvh - var(--mobile-viewport-height,100dvh) - var(--mobile-viewport-top,0px)));
    padding-bottom:var(--company-keyboard-gap);
  }
  .shell.mobile-keyboard-open .mobile-company-ready .company-policy-save {bottom:var(--company-keyboard-gap)}

  /* Both original organization form surfaces keep their footer above the
     visible keyboard. The tree and its original radio/checkbox values stay
     inside the scrollable fields. */
  html body .org-form-popover:has(> .org-form-body > :is(#user-form,#department-form)) {
    max-height:min(670px,calc(var(--mobile-viewport-height,100dvh) - 16px))!important;
    overscroll-behavior:contain;
  }
  html body .org-form-popover :is(#user-form,#department-form)>.org-form-scroll {
    flex:1 1 auto;scroll-padding-block:8px;overscroll-behavior:contain;
  }
  #modal-root .modal:has(#user-form)>.modal-body {
    display:flex;flex-direction:column;min-height:0;overflow:hidden;
  }
  #modal-root .modal #user-form {
    display:flex;flex-direction:column;flex:1 1 auto;min-height:0;
  }
  #modal-root .modal #user-form>.form-grid {
    flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:8px;
  }
  #modal-root .modal #user-form>:is(.modal-footer,.tiny) {flex:none}
  html body :is(.org-form-popover,#modal-root .modal) :is(#user-form,#department-form) .form-field
    :is(input:not([type=checkbox],[type=radio],[type=hidden]),textarea,select) {
    min-width:0;max-width:100%;min-height:44px;font-size:16px;
  }
  html body :is(.org-form-popover,#modal-root .modal) :is(#user-form,#department-form)>.modal-footer {
    flex:none;margin:0;padding:5px 8px;max-width:100%;
    background:var(--crm-surface,#fff);
  }
  html body :is(.org-form-popover,#modal-root .modal) :is(#user-form,#department-form)>.modal-footer>.button {min-height:44px}
}


/* mobile-reminders.css */
.mobile-reminders-page{display:none}
@media(max-width:760px){
 body.mobile-reminders-open{overflow:hidden}
 html body .shell>.mobile-app-page.mobile-reminders-page{position:fixed;z-index:95;display:flex;flex-direction:column;overflow:hidden;background:#f6f7f9;color:#242a30;font:400 14px/1.45 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
 html body .shell>.mobile-app-page.mobile-reminders-page.is-tab-front{z-index:200}
 html body .shell.mobile-keyboard-open>.mobile-reminders-page{height:var(--mobile-viewport-height,100dvh)!important}
 .mobile-reminder-header{display:flex;align-items:center;gap:4px;min-height:54px;flex:none;box-sizing:border-box;padding:env(safe-area-inset-top,0px) max(8px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));background:linear-gradient(110deg,#fff2f4,#f1f8ff 50%,#e6faf4);border-bottom:1px solid #edf0f2}
 .mobile-reminder-header h2{flex:1;min-width:0;margin:0 0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:600;line-height:1.3}
 .mobile-reminders-page.is-subpage .mobile-reminder-header{background:#fff}
 .mobile-reminders-page.is-subpage h2{margin-left:0;font-size:16px;font-weight:500}
 .mobile-reminder-icon{display:grid;place-items:center;width:44px;min-height:44px;flex:none;padding:10px;border:0;background:transparent;box-shadow:none;color:#263838}
 .mobile-reminder-icon[hidden],.mobile-reminder-error[hidden]{display:none!important}
 .mobile-reminder-icon svg{width:23px;height:23px}
 .mobile-reminder-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px max(9px,env(safe-area-inset-right,0px)) 16px max(9px,env(safe-area-inset-left,0px))}
 .mobile-reminder-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;width:100%;margin:0 0 3px;padding:8px 12px;border:0;border-radius:8px;background:#fff;box-shadow:none;color:inherit;text-align:left;box-sizing:border-box}
 .mobile-reminder-copy{min-width:0;flex:1;display:grid;gap:3px}
 .mobile-reminder-copy strong,.mobile-reminder-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-reminder-copy strong{font:500 14px/1.45 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
 .mobile-reminder-copy small,.mobile-reminder-aside time{font-size:12px;color:#818a95}
 .mobile-reminder-aside{flex:none;display:flex;align-items:center;gap:5px}
 .mobile-reminder-artwork{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#eaf8f1;color:#08a86a}
 .mobile-reminder-artwork svg{width:16px;height:16px}
 .mobile-reminder-unread{font-size:10px;line-height:17px;text-align:center;min-width:17px;border-radius:10px;padding:0 3px;background:#ee6362;color:#fff}
 .mobile-reminder-detail,.mobile-reminder-empty{padding:12px;margin:0;background:white;border-radius:8px;overflow-wrap:anywhere}
 .mobile-reminder-detail h3{margin:0 0 3px;font-size:15px;font-weight:500}
 .mobile-reminder-detail time,.mobile-reminder-note,.mobile-reminder-list-status{font-size:12px;color:#858e99}
 .mobile-reminder-detail p{margin:8px 0;white-space:pre-line}
 .mobile-reminder-targets{display:grid;gap:5px}
 .mobile-reminder-target,.mobile-reminder-retry{min-height:42px;padding:7px 10px;margin-top:5px;border:0;border-radius:6px;background:#edf8f2;box-shadow:none;color:#078959;font:inherit;text-align:left}
 .mobile-reminder-retry{margin-inline:6px}
 .mobile-reminder-error{color:#b74545}
 .mobile-reminder-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0 0}
 .mobile-reminder-metrics>div{padding:8px 9px;min-width:0;border:1px solid #ebedf1;border-radius:6px;background:#fff}
 .mobile-reminder-metrics dt{font-size:12px;color:#747f88}
 .mobile-reminder-metrics dd{margin:2px 0 0;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .mobile-reminder-detail .mobile-native-select-proxy{margin-top:8px}
 .mobile-reminder-call-tools{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:5px 0 8px;background:#f6f7f9}
 .mobile-reminder-call-tools>*{min-width:0;min-height:38px;border:0;border-radius:6px;padding:5px 7px;background:#fff;box-shadow:none;color:#46515a;font:inherit}
 .mobile-reminder-call-tools>input{flex:1 0 108px;font-size:16px}
 .mobile-reminder-call-tools>button.is-active{color:#079d66;background:#e9f8ef}
 .mobile-reminder-call-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,.9fr);gap:6px;align-items:center;min-height:44px;padding:5px 8px;border-bottom:1px solid #f0f2f4;background:#fff;box-sizing:border-box;overflow-wrap:anywhere}
 .mobile-reminder-call-row time,.mobile-reminder-call-row small{font-size:12px;color:#727d87}
 .mobile-reminder-call-row strong{font-size:14px;font-weight:500}
}

@media(max-width:760px){
 .sidebar .nav-sort-entry[data-sort-route=reminders],.sidebar .nav-button[data-route=reminders]{display:none!important}
}
.desktop-reminders-page{
 display:flex;flex-direction:column;overflow:hidden;min-height:260px;
 max-height:calc(100dvh - 108px);padding:0;
}
.desktop-reminders-page .mobile-reminder-header{
 display:flex;align-items:center;gap:8px;min-height:49px;padding:6px 13px;
 border-bottom:1px solid var(--crm-border,#d5ded9);background:var(--crm-soft,#f4f7f5);
}
.desktop-reminders-page .mobile-reminder-header h2{
 flex:1;min-width:0;margin:0;font-size:16px;font-weight:650;overflow-wrap:anywhere;
}
.desktop-reminders-page .mobile-reminder-icon{
 display:grid;place-items:center;width:32px;height:32px;flex:none;padding:6px;
 border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;box-shadow:none;
}
.desktop-reminders-page .mobile-reminder-icon[hidden],
.desktop-reminders-page .mobile-reminder-error[hidden]{display:none}
.desktop-reminders-page .mobile-reminder-icon svg{width:18px;height:18px}
.desktop-reminders-page .mobile-reminder-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 13px 13px}
.desktop-reminders-page .mobile-reminder-row{
 display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:56px;width:100%;margin:0 0 4px;padding:8px 11px;
 border:1px solid var(--crm-border,#d5ded9);border-radius:6px;background:var(--crm-surface,#fff);color:inherit;box-shadow:none;text-align:left;
}
.desktop-reminders-page .mobile-reminder-row:not(.is-read){background:var(--crm-soft,#f4f7f5)}
.desktop-reminders-page :is(.mobile-reminder-row,.mobile-reminder-icon,.mobile-reminder-target):is(:hover,:focus-visible){border-color:var(--crm-accent,#42836b)}
.desktop-reminders-page .mobile-reminder-copy{display:grid;gap:2px;min-width:0}
.desktop-reminders-page .mobile-reminder-copy :is(strong,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desktop-reminders-page .mobile-reminder-copy strong{font-size:14px;font-weight:650}
.desktop-reminders-page .mobile-reminder-row.is-read .mobile-reminder-copy strong{font-weight:500}
.desktop-reminders-page .mobile-reminder-aside{display:flex;align-items:center;gap:7px;flex:none}
.desktop-reminders-page .mobile-reminder-artwork{
 display:grid;place-items:center;width:26px;height:26px;border-radius:5px;
 background:var(--crm-soft,#f4f7f5);color:var(--crm-accent,#42836b);
}
.desktop-reminders-page .mobile-reminder-artwork svg{width:16px;height:16px}
.desktop-reminders-page .mobile-reminder-unread{
 min-width:18px;padding:0 4px;border-radius:8px;background:#b94052;color:#fff;text-align:center;font-size:11px;line-height:18px;
}
.desktop-reminders-page :is(.mobile-reminder-copy small,.mobile-reminder-aside time,.mobile-reminder-detail time,.mobile-reminder-note,.mobile-reminder-list-status){
 color:var(--crm-muted,#566b61);font-size:12px;
}
.desktop-reminders-page :is(.mobile-reminder-detail,.mobile-reminder-empty){padding:11px 2px;overflow-wrap:anywhere}
.desktop-reminders-page .mobile-reminder-detail h3{margin:0 0 4px;font-size:15px}
.desktop-reminders-page .mobile-reminder-detail p{margin:8px 0;white-space:pre-line}
.desktop-reminders-page .mobile-reminder-targets{display:flex;flex-wrap:wrap;gap:6px}
.desktop-reminders-page :is(.mobile-reminder-target,.mobile-reminder-retry,.mobile-reminder-call-tools button){
 min-height:32px;padding:5px 10px;border:1px solid var(--crm-border,#d5ded9);border-radius:5px;
 background:var(--crm-soft,#f4f7f5);color:var(--crm-ink,#223c32);box-shadow:none;text-align:left;
}
.desktop-reminders-page .mobile-reminder-retry{margin-left:6px}
.desktop-reminders-page .mobile-reminder-error{color:#b04043;flex-basis:100%}
.desktop-reminders-page .mobile-reminder-metrics{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(106px,1fr));gap:6px;margin:10px 0 0;
}
.desktop-reminders-page .mobile-reminder-metrics>div{padding:6px 8px;border:1px solid var(--crm-border,#d5ded9);border-radius:5px}
.desktop-reminders-page .mobile-reminder-metrics dt{color:var(--crm-muted,#566b61);font-size:12px}
.desktop-reminders-page .mobile-reminder-metrics dd{margin:3px 0 0;font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.desktop-reminders-page .mobile-report-scope{display:block;margin-top:6px;max-width:100%}
.desktop-reminders-page .mobile-reminder-call-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:5px 0}
.desktop-reminders-page .mobile-reminder-call-tools button.is-active{color:var(--crm-accent,#42836b);border-color:currentColor}
.desktop-reminders-page .mobile-reminder-call-row{
 display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:9px;align-items:center;
 min-height:38px;padding:4px 8px;border-bottom:1px solid var(--crm-border,#d5ded9);overflow-wrap:anywhere;
}


/* mobile-form-select.css */
.mobile-native-select-proxy,.mobile-native-select-layer{display:none}
@media(max-width:760px){
 html body select.mobile-native-select-source{display:none!important}
 html body .mobile-native-select-proxy{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%;max-width:100%;min-height:40px;margin:0;padding:8px 10px;box-sizing:border-box;border:1px solid #dfe4eb;border-radius:6px;background:#fff;color:#353c45;box-shadow:none;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;text-align:left}
 html body .mobile-native-select-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit}
 html body .mobile-native-select-arrow{flex:none;font:inherit;color:#78828c}
 html body .mobile-native-select-proxy:disabled{opacity:.5}
 html body .mobile-native-select-proxy[aria-invalid=true]{border-color:#d65a61}
 html body .mobile-native-select-layer{position:fixed;inset:auto;top:var(--mobile-viewport-top,0px);left:var(--mobile-viewport-left,0px);width:var(--mobile-viewport-width,100vw);height:var(--mobile-viewport-height,100dvh);z-index:69000;display:flex;align-items:flex-end;justify-content:center;margin:0;border:0;background:#17222d47;box-sizing:border-box;padding:12px 10px max(10px,env(safe-area-inset-bottom));overscroll-behavior:contain}
 html body .mobile-native-select-panel{display:flex;flex-direction:column;flex:1;min-width:0;max-width:580px;max-height:min(82%,560px);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 30px #1f29372b;color:#303941;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
 html body .mobile-native-select-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:3px 10px 3px 16px;border-bottom:1px solid #edf0f3}
 html body .mobile-native-select-panel>header strong{font-size:15px;font-weight:500;line-height:1.4}
 html body .mobile-native-select-panel>header button{width:44px;min-height:44px;padding:8px;border:0;background:transparent;box-shadow:none;color:#56616c;font:400 24px/1 system-ui}
 html body .mobile-native-select-panel>input{width:calc(100% - 24px);min-height:40px;margin:10px 12px;padding:8px 10px;box-sizing:border-box;border:0;border-radius:7px;background:#f3f5f7;font-size:16px;box-shadow:none}
 html body .mobile-native-select-panel>input[hidden]{display:none}
 html body .mobile-native-select-options{min-height:0;overflow:auto;padding:0 12px 8px;overscroll-behavior:contain}
 html body .mobile-native-select-option{display:flex;align-items:center;width:100%;min-height:44px;margin:0;padding:10px 5px;border:0;border-bottom:1px solid #f0f2f4;border-radius:0;background:#fff;box-shadow:none;color:#37414b;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere}
 html body .mobile-native-select-option[aria-selected=true]{color:#08b978;background:#effaf5}
 html body .mobile-native-select-option:disabled{opacity:.4}
 html body .mobile-native-select-done{flex:none;min-height:42px;margin:3px 12px 10px;padding:7px 12px;border:0;border-radius:6px;background:#0abd74;color:#fff;font-size:14px;font-weight:500;box-shadow:none}
 html body .mobile-native-select-empty{padding:20px 8px;color:#9299a1;font-size:14px}
 html body .mobile-native-select-layer.is-filter-picker{padding:0;background:#17222d14}
 html body .is-filter-picker .mobile-native-select-panel{position:absolute;box-sizing:border-box;max-width:none;border:1px solid #cddad7;border-radius:9px;background:#f0f5f3;box-shadow:0 8px 25px #1c393531}
 html body .is-filter-picker .mobile-native-select-panel>header{flex:none;min-height:36px;padding:0 5px 0 10px;border-color:#dce6e2}
 html body .is-filter-picker .mobile-native-select-panel>header strong{font-size:13px}
 html body .is-filter-picker .mobile-native-select-panel>header button{width:36px;min-height:36px;padding:4px;font-size:20px}
 html body .is-filter-picker .mobile-native-select-panel>input{flex:none;width:calc(100% - 16px);min-height:34px;margin:5px 8px;padding:4px 7px;border:1px solid #d3e0db;background:#fff;font-size:14px}
 html body .is-filter-picker .mobile-native-select-panel>input:focus{font-size:16px}
 html body .is-filter-picker .mobile-native-select-options{padding:2px 6px 6px}
 html body .is-filter-picker .mobile-native-select-option{min-height:34px;padding:5px 7px;border-color:#e5ebe9;background:transparent}
 html body .is-filter-picker .mobile-native-select-option[aria-selected=true]{color:#087b52;background:#dcefe6}
 html body .is-filter-picker .mobile-native-select-done{min-height:34px;margin:2px 8px 6px;padding:4px 8px}
 html body .is-filter-picker .mobile-native-select-empty{margin:0;padding:8px;font-size:13px}
}

@media(max-width:760px){
 html body .mobile-workflow-submit-menu .mobile-workflow-layer-body{padding:4px 13px}
 html body #modal-root .mobile-workflow-submit-menu button.mobile-workflow-more-original{justify-content:flex-start!important;min-height:44px;padding:7px 5px;text-align:left;font-size:14px!important;font-weight:400!important;line-height:1.45;white-space:normal}
 html body .mobile-workflow-submit-menu button.mobile-workflow-more-original::after{content:"›";margin-left:auto;color:#9aa4ad;font-size:18px}
 html body #modal-root :is(.mobile-ec-workflow-detail,.mobile-ec-customer-detail)>.workflow-submit-panel{inset:0!important;width:100%!important;height:100%!important;max-height:100%!important;border:0;border-radius:0;z-index:90!important;background:#fff}
 html body #modal-root :is(.workflow-submit-panel-header,.workflow-submit-modal>.modal-header){min-height:46px;padding:2px 10px 2px 13px;background:#fff}
 html body #modal-root :is(.workflow-submit-panel-header h3,.workflow-submit-modal>.modal-header h2){font-size:16px!important;font-weight:500;line-height:1.4}
 html body #modal-root .workflow-submit-panel-header>button{min-width:40px;min-height:40px;border:0;background:transparent;box-shadow:none}
 html body #modal-root :is(.workflow-submit-panel-body,.workflow-submit-modal>.modal-body){padding:0 10px 8px;min-height:0;overflow:auto}
 html body #modal-root .workflow-submit-form .workflow-submit-topbar{top:0;margin:0 0 6px;padding:3px 1px 5px;min-height:43px;background:white}
 html body #modal-root .workflow-submit-form .workflow-submit-topbar>span{min-width:0;font-size:12px!important;line-height:1.35}
 html body #modal-root .workflow-submit-form .workflow-submit-confirm{flex:none;min-height:38px;padding:6px 8px;font-size:13px!important;font-weight:500}
 html body #modal-root .workflow-submit-form .workflow-handoff{padding:7px;margin-bottom:5px}
 html body #modal-root .workflow-submit-form .workflow-handoff-grid{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #modal-root .workflow-submit-form .workflow-handoff-grid>label:has(textarea){grid-column:1/-1}
 html body #modal-root .workflow-submit-form :is(.workflow-handoff-grid>label,.workflow-handoff-choice,.workflow-handoff-head,.workflow-receiver-tools>strong){font-size:13px!important;font-weight:500;line-height:1.4}
 html body #modal-root .workflow-submit-form .workflow-handoff-grid :is(input,textarea,select,.mobile-native-select-proxy){min-height:36px;font-size:14px!important;font-weight:400;line-height:1.4}
 html body #modal-root .workflow-submit-form .workflow-handoff-grid :is(input,textarea):focus{font-size:16px!important}
 html body #modal-root .workflow-submit-form .workflow-handoff-destinations{font-size:11px!important}
 html body #modal-root .workflow-submit-form :is(.workflow-help,.workflow-handoff-help,.workflow-submit-draft-note){font-size:11px!important;line-height:1.45}
 html body #modal-root .workflow-submit-form .workflow-submit-receiver-tools{gap:5px}
 html body #modal-root .workflow-submit-form .workflow-submit-receiver-tools button{min-height:36px;font-size:12px!important;padding:4px 6px}
 html body #modal-root .workflow-submit-form .workflow-org-tree :is(summary,[data-wf-org-user]){font-size:13px!important;font-weight:400;min-height:32px}
 html body #modal-root .workflow-submit-form .workflow-handoff-grid input.filter-choice{min-height:0}
}


/* mobile-sales-filter.css */
@media (max-width:760px) {
  .shell.mobile-customer-active #main > .filter-panel.mobile-filters-open,
  .shell.mobile-customer-active #main.mobile-search-open #search-form {
    background:#f0f3f5;
  }
  .shell.mobile-customer-active #main.mobile-search-open #search-form {
    padding:6px 10px;
    gap:6px;
  }
  .shell.mobile-customer-active #main #search-form .search-input {
    min-height:36px;
    padding:5px 9px;
    border:1px solid #dbe1e5;
    background:#e7ecf0;
  }
  .shell.mobile-customer-active #main #search-form > .button {min-height:36px;padding-block:5px}
  .shell.mobile-customer-active #main .mobile-filters-open .filter-actions {
    padding:6px 10px;
    gap:5px;
    border-color:#e1e6e9;
  }
  .shell.mobile-customer-active #main .mobile-filters-open .filter-actions :is(.button,select,.mobile-native-select-proxy) {
    min-height:34px;
    padding-block:4px;
    font-size:13px!important;
  }
  .shell.mobile-customer-active #main .mobile-filters-open #filter-rows {padding:0 10px 6px}
  .shell.mobile-customer-active #main #filter-rows .filter-row {
    grid-template-columns:minmax(0,.95fr) minmax(0,1.3fr) 32px;
    gap:5px;
    align-items:center;
    margin:0;
    padding:3px 0;
  }
  .shell.mobile-customer-active #main #filter-rows .filter-row.date-filter {
    grid-template-columns:minmax(68px,.94fr) minmax(48px,.65fr) minmax(0,1.35fr) 32px;
  }
  #main #filter-rows .filter-row > :is(.filter-field,.filter-field + .mobile-native-select-proxy) {
    grid-column:1;
    grid-row:1;
  }
  #main #filter-rows .filter-row > .filter-input-wrap {grid-column:2;grid-row:1;min-width:0}
  #main #filter-rows .filter-row > .filter-remove {grid-column:3;grid-row:1}
  #main #filter-rows .date-filter > :is(.filter-operator,.filter-operator + .mobile-native-select-proxy) {
    grid-column:2;
    grid-row:1;
  }
  .shell.mobile-customer-active #main #filter-rows .date-filter > .filter-input-wrap {
    grid-column:3;
    grid-row:1;
  }
  #main #filter-rows .date-filter > .filter-remove {grid-column:4;grid-row:1}
  .shell.mobile-customer-active #main #filter-rows .date-filter:has(.between-inputs) > .filter-input-wrap {
    grid-column:1/-1;
    grid-row:2;
  }
  #main #filter-rows .between-inputs {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:5px;
  }
  .shell.mobile-customer-active #main #filter-rows .filter-row > :is(select,.mobile-native-select-proxy),
  .shell.mobile-customer-active #main #filter-rows .filter-input-wrap > .filter-value,
  .shell.mobile-customer-active #main #filter-rows .filter-input-wrap > details > summary,
  .shell.mobile-customer-active #main #filter-rows .between-inputs input {
    box-sizing:border-box;
    width:100%;
    height:36px;
    min-width:0;
    min-height:36px;
    padding:4px 6px;
    border-color:#d7dfe4;
    border-radius:5px;
    background:#e9eef1;
    color:#293741;
    font-size:14px!important;
    line-height:1.3;
    box-shadow:none;
  }
  #main #filter-rows .filter-input-wrap :is(.choice-dropdown,.department-picker) {min-width:0;margin:0}
  #main #filter-rows .filter-input-wrap > .department-picker {border:0;background:none}
  #main #filter-rows .filter-input-wrap > .department-picker > summary {border:1px solid #d7dfe4}
  .shell.mobile-customer-active #main #filter-rows .filter-input-wrap > .choice-dropdown > summary {padding-right:20px}
  #main #filter-rows .filter-input-wrap > .choice-dropdown > summary::after {right:6px;top:7px}
  #main #filter-rows .filter-input-wrap :is(input:not([type=checkbox]),.choice-search):focus {font-size:16px!important}
  .shell.mobile-customer-active #main #filter-rows .filter-row > .filter-remove {
    width:32px;
    min-width:0;
    height:36px;
    min-height:36px;
    margin:0;
    padding:0;
    color:#53616b;
    font-size:17px!important;
    line-height:1;
    box-shadow:none;
  }

  #main #filter-rows .filter-input-wrap .organization-floating-panel.is-floating-open {
    right:auto;
    bottom:auto;
    max-width:calc(var(--mobile-viewport-width,100vw) - 16px)!important;
    padding:6px!important;
    border-color:#d6dfe4!important;
    border-radius:8px!important;
    background:#f2f5f7!important;
    color:#28353e;
    box-shadow:0 5px 18px #24343f2b;
  }
  #main #filter-rows .organization-floating-panel .choice-toolbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto auto;
    align-items:center;
    gap:4px;
    margin:0 0 5px;
    padding:0 0 5px;
    border-color:#dce3e7;
  }
  #main #filter-rows .organization-floating-panel :is(input[type=search],.choice-search) {
    height:34px;
    min-height:34px;
    margin:0!important;
    padding:4px 6px;
    border:1px solid #d7dfe4;
    background:#e7ecf0;
    font-size:13px!important;
  }
  #main #filter-rows .organization-floating-panel input[type=search]:focus {font-size:16px!important}
  #main #filter-rows .organization-floating-panel :is(.choice-toolbar .button,.department-picker-toolbar button,.department-picker-done) {
    min-height:32px;
    padding:3px 5px;
    font-size:12px!important;
  }
  #main #filter-rows .organization-floating-panel .department-picker-toolbar {margin-top:5px}
  #main #filter-rows .organization-floating-panel .filter-checklist {gap:3px;margin-top:0;padding:0;max-height:180px}
  #main #filter-rows .organization-floating-panel .filter-tree {padding:0;max-height:none;overflow:visible}
  #main #filter-rows .organization-floating-panel :is(.department-tree-options,.user-select-tree) {max-height:min(186px,34dvh)!important}
  #main #filter-rows .organization-floating-panel :is(.checkbox-row,details.tree-department > summary,details.department-tree-branch > summary) {
    width:auto;
    min-height:31px;
    padding-block:3px;
    font-size:13px!important;
    line-height:1.35;
  }
  #main #filter-rows .organization-floating-panel .checkbox-row {gap:5px}
  #main #filter-rows .organization-floating-panel .filter-checklist .checkbox-row {background:#e8edf0}
  #main #filter-rows .organization-floating-panel .filter-checklist .checkbox-row:has(input:checked) {background:#dceee6;color:#19674c}
  #main #filter-rows .organization-floating-panel .filter-checklist .checkbox-row > span {white-space:normal;overflow-wrap:anywhere}
  #main #filter-rows .organization-floating-panel input[type=checkbox] {
    flex:none;
    width:16px!important;
    height:16px!important;
    min-width:16px!important;
    min-height:0!important;
    margin:0;
    padding:0!important;
  }
}
