/* Markentry application theme. Layout and presentation retain the existing CRM modules. */
body[data-crm-theme="markentry"]{--crm-blue:#0046a0;--crm-orange:#ff8100;--crm-text:#172b4d;--crm-muted:#59677a;--crm-canvas:#f5f7fb;--crm-line:#dce3ed;--crm-tint:#eaf1fc;margin:0;background:var(--crm-canvas);color:var(--crm-text);font:14px/1.5 "Segoe UI",system-ui,sans-serif;color-scheme:light}
body[data-crm-theme] *{box-sizing:border-box}
body[data-crm-theme] [hidden]{display:none!important}
body[data-crm-theme] button,body[data-crm-theme] input,body[data-crm-theme] select,body[data-crm-theme] textarea{font:inherit}
body[data-crm-theme] button{border:1px solid var(--crm-line);border-radius:6px;background:#fff;color:var(--crm-text);padding:9px 12px;min-height:36px;line-height:1.4;box-shadow:none}
body[data-crm-theme] button:hover:not(:disabled){background:#f0f5fc;border-color:#aec4e2}
body[data-crm-theme] button:disabled{cursor:not-allowed}
body[data-crm-theme] input,body[data-crm-theme] select,body[data-crm-theme] textarea{color:var(--crm-text);background:#fff;border:1px solid #cbd6e5;border-radius:6px;padding:9px 11px;max-width:100%}
body[data-crm-theme] input[type=checkbox]{accent-color:var(--crm-blue);padding:0}
body[data-crm-theme] button:focus-visible,body[data-crm-theme] a:focus-visible,body[data-crm-theme] input:focus-visible,body[data-crm-theme] select:focus-visible,body[data-crm-theme] textarea:focus-visible,body[data-crm-theme] summary:focus-visible{outline:3px solid #5597ec;outline-offset:3px}
body[data-crm-theme] .primary,body[data-crm-theme] #pipe-new,body[data-crm-theme] #pool-add{background:var(--crm-orange);color:var(--crm-text);border-color:var(--crm-orange);font-weight:600}
body[data-crm-theme] .primary:hover:not(:disabled),body[data-crm-theme] #pipe-new:hover:not(:disabled),body[data-crm-theme] #pool-add:hover:not(:disabled){background:#f57800;border-color:#f57800}
body[data-crm-theme] .layout{min-height:100dvh;padding:0;display:block}
body[data-crm-theme] nav.workspace-header{position:sticky;top:0;z-index:35;display:flex;align-items:center;justify-content:flex-start;gap:20px;flex-wrap:wrap;padding:16px 26px;min-height:76px;background:var(--crm-blue);color:#fff;border:0;border-radius:0;overflow:visible}
body[data-crm-theme] .workspace-brand{display:flex;align-items:center;gap:9px;padding:0;min-height:40px;background:transparent;border:0;color:#fff;text-align:left;flex-shrink:0}
body[data-crm-theme] .workspace-brand:hover{background:transparent!important;border-color:transparent!important}
body[data-crm-theme] .workspace-brand img{width:32px;height:32px;object-fit:contain}
body[data-crm-theme] .workspace-brand strong{display:block;color:#fff;font-size:16px;letter-spacing:.035em;line-height:1.25}
body[data-crm-theme] .workspace-brand small{display:block;color:#d5e7ff;font-size:10px;letter-spacing:.10em;margin-top:3px}
body[data-crm-theme] .workspace-primary{display:flex;align-items:center;gap:5px;flex:1;flex-wrap:wrap}
body[data-crm-theme] .workspace-primary button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;border:0;color:#fff;width:auto;margin:0;border-radius:6px;padding:9px 12px;white-space:nowrap;text-align:center;font-size:14px}
body[data-crm-theme] .workspace-primary button.active{background:#fff;color:var(--crm-blue);font-weight:600}
body[data-crm-theme] .workspace-primary button:hover:not(:disabled):not(.active){background:#185bad;border-color:transparent}
body[data-crm-theme] .workspace-primary button:disabled{color:#c5d7ec;opacity:1;background:transparent;cursor:default}
body[data-crm-theme] .workspace-primary svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none}
body[data-crm-theme] .workspace-header .home-tabs,body[data-crm-theme] #sections-menu{display:none!important}
body[data-crm-theme] .workspace-header .nav-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
body[data-crm-theme] .workspace-header .icon-control{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:8px;background:transparent;border:0;color:#e5efff;border-radius:6px}
body[data-crm-theme] .workspace-header .icon-control:hover{background:#185bad;border-color:transparent}
body[data-crm-theme] .workspace-header .icon-control svg{width:20px;height:20px}
body[data-crm-theme] .workspace-header .user-menu{top:44px;right:0;background:#fff;color:var(--crm-text);border:1px solid var(--crm-line);border-radius:8px;box-shadow:0 12px 30px #172b4d24;padding:9px;min-width:230px;z-index:40}
body[data-crm-theme] .workspace-header .user-menu button{display:block;width:100%;text-align:left;background:#fff;color:var(--crm-text);font-size:14px;padding:10px;margin:0}
body[data-crm-theme] .workspace-header .user-menu small{color:var(--crm-muted);font-size:12px}
body[data-crm-theme] #live-scope,body[data-crm-theme] #global-company-select{max-width:225px;min-height:38px;border-color:#99b8e0;border-radius:6px;background:#fff;color:var(--crm-text);font-size:13px}
body[data-crm-theme] #global-company-name{color:#fff;font-size:13px}
body[data-crm-theme] .workspace-agenda-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;min-height:38px;background:transparent;color:#fff;border:1px solid #99b8e0;border-radius:6px;white-space:nowrap}
body[data-crm-theme] .workspace-agenda-toggle svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none}
body[data-crm-theme] .workspace-agenda-toggle:hover,body[data-crm-theme] .workspace-agenda-toggle[aria-expanded=true],body[data-crm-theme] .workspace-agenda-toggle.current{background:#fff;color:var(--crm-blue);border-color:#fff}
body[data-crm-theme] .workspace-agenda-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;background:var(--crm-orange);color:var(--crm-text);border-radius:12px;font-size:12px;font-weight:700}
body[data-crm-theme] .layout>main{background:var(--crm-canvas);border:0;border-radius:0;padding:26px;max-width:none;width:100%;min-height:calc(100dvh - 76px)}
body[data-crm-theme] .workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 22px}
body[data-crm-theme] #workspace-title{font-size:26px;line-height:1.25;font-weight:650;margin:0 0 6px;color:var(--crm-text)}
body[data-crm-theme] #workspace-description{font-size:13px;color:var(--crm-muted);margin:0}
body[data-crm-theme] #workspace-agenda-return{background:#fff}
body[data-crm-theme] .workspace-commercial-tabs{display:flex;gap:24px;border-bottom:1px solid var(--crm-line);margin-bottom:20px}
body[data-crm-theme] .workspace-commercial-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--crm-muted);padding:0 2px 12px;min-height:36px;font-weight:600}
body[data-crm-theme] .workspace-commercial-tabs button.active{border-bottom-color:var(--crm-blue);color:var(--crm-blue)}
body[data-crm-theme] .workspace-commercial-tabs button:hover{background:transparent;border-bottom-color:#9bb9e0}
body[data-crm-theme] #inicio>h1,body[data-crm-theme] #inicio>.intro,body[data-crm-theme] #administracion>h1,body[data-crm-theme] #administracion>.intro{display:none}
body[data-crm-theme] .home-tab.panel{min-height:0;padding:0;margin:0;background:transparent;border:0}
body[data-crm-theme] .muted,body[data-crm-theme] small{color:var(--crm-muted)}
body[data-crm-theme] .pipeline-toolbar{gap:14px;margin-bottom:13px}
body[data-crm-theme] .pipeline-filters{gap:12px}
body[data-crm-theme] .pipeline-filters label{font-size:12px;color:var(--crm-muted);margin-bottom:5px}
body[data-crm-theme] .pipeline-filters select,body[data-crm-theme] .pipeline-filters input{font-size:14px;padding:9px 10px}
body[data-crm-theme] .pipeline-filters #pipe-search{width:245px}
body[data-crm-theme] .pipeline-toolbar-right{gap:12px;flex-wrap:wrap}
body[data-crm-theme] .pipeline-toolbar-right .pipeline-closed-toggle{font-size:12px;color:var(--crm-muted);gap:6px}
body[data-crm-theme] .pipeline-toolbar #pipe-new{width:auto;height:auto;min-height:38px;display:inline-flex;align-items:center;padding:9px 12px;font-size:13px;white-space:nowrap}
body[data-crm-theme] .pipeline-subline{font-size:12px;color:var(--crm-muted);margin:0 0 15px}
body[data-crm-theme] .pipeline-board{grid-template-columns:repeat(var(--pipeline-columns,4),minmax(210px,1fr));gap:12px;padding-bottom:10px;min-height:360px}
body[data-crm-theme] .pipeline-stage{background:#edf1f7;border:0;border-radius:8px;padding:12px;min-height:360px}
body[data-crm-theme] .pipeline-stage-heading{border-bottom:2px solid #c7d5e7;padding:3px 2px 11px;margin-bottom:12px}
body[data-crm-theme] .pipeline-stage-heading h3{font-size:14px;color:var(--crm-text)}
body[data-crm-theme] .pipeline-stage-heading>span{font-size:12px;color:var(--crm-muted)}
body[data-crm-theme] .pipeline-opportunity{padding:15px;margin-bottom:11px;border:1px solid #d8e1ed;border-radius:7px;background:#fff;box-shadow:0 1px 2px #172b4d05}
body[data-crm-theme] .pipeline-opportunity:hover{border-color:#6395d6;background:#fff}
body[data-crm-theme] .pipeline-card-header{gap:6px;margin-bottom:7px}
body[data-crm-theme] .pipeline-card-header strong{font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;font-weight:650}
body[data-crm-theme] .pipeline-card-title{font-size:13px;line-height:1.5;white-space:normal;margin-bottom:8px}
body[data-crm-theme] .pipeline-opportunity>small,body[data-crm-theme] .pipeline-assignment,body[data-crm-theme] .pipeline-opportunity .pipe-last-activity{font-size:12px;color:var(--crm-muted)}
body[data-crm-theme] .pipeline-opportunity .pipeline-next{font-size:12px;white-space:normal;line-height:1.5;margin-top:10px;padding-top:10px;border-color:#edf0f5;color:var(--crm-text)}
body[data-crm-theme] .pipeline-attention{font-size:11px;padding:4px 6px;margin-top:8px;background:#fff1dc;color:#78500a;border-radius:4px;line-height:1.4}
body[data-crm-theme] .pipe-card-menu>summary{width:26px;height:28px;font-size:20px;color:var(--crm-muted)}
body[data-crm-theme] .pipe-card-menu-list button,body[data-crm-theme] .pipe-card-menu-items button{font-size:13px;padding:9px}
body[data-crm-theme] .pipeline-column-add{font-size:20px;min-height:36px;color:var(--crm-muted);border-color:transparent;background:transparent}
body[data-crm-theme] .company-logo{background:#5a7190;color:#fff;border-radius:5px;font-size:11px}
body[data-crm-theme] .business-toolbar{margin-bottom:20px;gap:14px}
body[data-crm-theme] .view-segments{border:1px solid var(--crm-line);background:#edf1f7;border-radius:8px;padding:4px;gap:3px;flex-wrap:wrap}
body[data-crm-theme] .view-segments button,body[data-crm-theme] .business-toolbar .view-segments button{font-size:14px;padding:8px 12px;min-height:34px;border:0;border-radius:5px;color:var(--crm-muted);background:transparent}
body[data-crm-theme] .view-segments button.active{background:#fff;color:var(--crm-blue);box-shadow:0 1px 3px #172b4d12;font-weight:600}
body[data-crm-theme] .business-toolbar-filters input,body[data-crm-theme] .business-toolbar-filters select{font-size:14px;padding:9px 11px}
body[data-crm-theme] #business-search{width:270px}
body[data-crm-theme] #business-new{width:38px;height:38px;min-height:38px;font-size:23px;background:var(--crm-orange);color:var(--crm-text);border-color:var(--crm-orange)}
body[data-crm-theme] .business-directory{grid-template-columns:235px minmax(0,1fr);gap:20px}
body[data-crm-theme] .business-index{border:0;padding-right:0}
body[data-crm-theme] .business-index-title{font-size:12px;color:var(--crm-muted);margin-bottom:12px}
body[data-crm-theme] .business-choice{background:#fff;border:1px solid var(--crm-line);border-radius:7px;padding:13px;margin-bottom:8px;gap:10px}
body[data-crm-theme] .business-choice.active{background:var(--crm-tint);border-color:#9ab7df}
body[data-crm-theme] .business-choice strong{font-size:14px;font-weight:600}
body[data-crm-theme] .business-choice small{font-size:12px;color:var(--crm-muted);line-height:1.5}
body[data-crm-theme] .business-detail{border:1px solid var(--crm-line);border-radius:8px;padding:22px;background:#fff}
body[data-crm-theme] .business-identity h2{font-size:20px;margin-bottom:5px;color:var(--crm-text)}
body[data-crm-theme] .business-identity small{font-size:13px}
body[data-crm-theme] #business-detail-header>button{font-size:13px;padding:8px 11px}
body[data-crm-theme] .business-detail-tabs{gap:4px;margin:20px 0;padding-bottom:9px;border-color:var(--crm-line)}
body[data-crm-theme] .business-detail-tabs button{font-size:14px;padding:8px 10px;border:0;background:transparent;min-height:36px;white-space:nowrap}
body[data-crm-theme] .business-detail-tabs button.active{color:var(--crm-blue);background:var(--crm-tint);font-weight:600}
body[data-crm-theme] .business-section-heading h3{font-size:14px;font-weight:600}
body[data-crm-theme] .business-section-heading>button{font-size:13px;padding:6px 9px;width:auto;min-width:30px;min-height:30px}
body[data-crm-theme] .business-fact{grid-template-columns:135px minmax(0,1fr);font-size:14px;padding:11px 0;gap:14px;border-color:#edf0f5}
body[data-crm-theme] .business-fact small{font-size:12px}
body[data-crm-theme] .business-related{font-size:14px;padding:13px 0;border:0;border-bottom:1px solid #edf0f5;border-radius:0}
body[data-crm-theme] .business-related small{font-size:12px}
body[data-crm-theme] .contact-data-row,body[data-crm-theme] .business-data-row,body[data-crm-theme] .business-customer-row{font-size:14px;padding:13px 0}
body[data-crm-theme] .contact-data-row small,body[data-crm-theme] .business-data-row small{font-size:12px}
body[data-crm-theme] .pool-toolbar{gap:10px;margin-bottom:18px;flex-wrap:wrap}
body[data-crm-theme] .pool-toolbar input,body[data-crm-theme] .pool-toolbar select{font-size:14px;padding:9px 11px}
body[data-crm-theme] #pool-add{width:auto;min-height:38px;height:auto;padding:9px 12px;font-size:13px;white-space:nowrap}
body[data-crm-theme] .pool-workspace{gap:20px}
body[data-crm-theme] .pool-source,body[data-crm-theme] .pool-company-panel{background:#fff;border:1px solid var(--crm-line);border-radius:8px;padding:20px;min-width:0}
body[data-crm-theme] .pool-pane-head h2{font-size:18px}
body[data-crm-theme] .pool-source-row{padding:13px 0;gap:10px}
body[data-crm-theme] .pool-source-copy strong,body[data-crm-theme] .pool-company-copy strong{font-size:14px}
body[data-crm-theme] .pool-source-copy small,body[data-crm-theme] .pool-workspace-help,body[data-crm-theme] .pool-priority-head small{font-size:12px;color:var(--crm-muted)}
body[data-crm-theme] .pool-priority-head{font-size:13px;margin-top:18px;background:#f4f7fc;padding:9px;border-radius:4px}
body[data-crm-theme] .pool-mini-heading{font-size:14px;margin-top:18px}
body[data-crm-theme] .lead-state-badge{font-size:12px;padding:4px 6px;white-space:nowrap}
body[data-crm-theme] .calendar-topline{gap:14px;flex-wrap:wrap}
body[data-crm-theme] .calendar-topline .period-controls #week-label{font-size:20px;color:var(--crm-text)}
body[data-crm-theme] .calendar-toolbar{gap:14px;flex-wrap:wrap;margin:20px 0}
body[data-crm-theme] .calendar-heading,body[data-crm-theme] .calendar-hour{font-size:12px;color:var(--crm-muted)}
body[data-crm-theme] .calendar{background:#fff;border-color:var(--crm-line);border-radius:7px}
body[data-crm-theme] .calendar .event-copy strong{font-size:12px;line-height:1.4}
body[data-crm-theme] .calendar .event-copy small{font-size:11px;line-height:1.4;color:#46566c}
body[data-crm-theme] .agenda-create{gap:8px}
body[data-crm-theme] .agenda-create button{font-size:13px;padding:9px 10px}
body[data-crm-theme] .day-detail{background:#fff;border:1px solid var(--crm-line);border-radius:8px}
body[data-crm-theme] dialog{background:#fff;color:var(--crm-text);border:1px solid var(--crm-line);border-radius:10px;padding:25px;box-shadow:0 20px 70px #102c5f33;max-width:calc(100vw - 28px)}
body[data-crm-theme] dialog::backdrop{background:#112f5c66}
body[data-crm-theme] dialog h2{font-size:21px;color:var(--crm-text);line-height:1.35}
body[data-crm-theme] dialog label{font-size:13px;color:var(--crm-muted)}
body[data-crm-theme] dialog input,body[data-crm-theme] dialog select,body[data-crm-theme] dialog textarea{font-size:14px;padding:10px 11px}
body[data-crm-theme] dialog .note,body[data-crm-theme] .reference-help{font-size:12px;color:var(--crm-muted)}
body[data-crm-theme] .order-lines-table{font-size:13px}
body[data-crm-theme] .live-access{border:1px solid var(--crm-line);box-shadow:0 8px 32px #172b4d09;border-radius:10px;padding:30px}
body[data-crm-theme] .live-access h1{color:var(--crm-blue);font-size:24px}
body[data-crm-theme] .live-access p{color:var(--crm-muted);font-size:14px}
body[data-crm-theme] .workspace-agenda-peek{position:fixed;right:22px;top:84px;z-index:60;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;background:#fff;color:var(--crm-text);border:1px solid #d2ddeb;border-radius:10px;box-shadow:0 16px 44px #123b7033;padding:20px}
body[data-crm-theme] .workspace-agenda-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:15px}
body[data-crm-theme] .workspace-agenda-heading h2{font-size:19px;font-weight:650;margin:0 0 4px;color:var(--crm-text)}
body[data-crm-theme] .workspace-muted{font-size:12px;color:var(--crm-muted);margin:0}
body[data-crm-theme] .workspace-peek-close{border:0;min-height:30px;width:30px;padding:0;font-size:23px;background:transparent;color:var(--crm-muted);flex-shrink:0}
body[data-crm-theme] .workspace-agenda-group{font-size:12px;font-weight:650;letter-spacing:.03em;margin:16px 0 3px;color:var(--crm-muted)}
body[data-crm-theme] .workspace-agenda-row{display:flex;align-items:start;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f5}
body[data-crm-theme] .workspace-agenda-time{min-width:47px;padding-top:7px;font-size:12px;color:var(--crm-muted);white-space:nowrap}
body[data-crm-theme] .workspace-agenda-row.overdue .workspace-agenda-time{color:#a12828}
body[data-crm-theme] .workspace-agenda-copy{min-width:0;flex:1}
body[data-crm-theme] .workspace-agenda-entry{text-align:left;border:0;border-radius:3px;padding:4px 0;min-height:28px;background:transparent;color:var(--crm-text);font-size:14px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
body[data-crm-theme] .workspace-agenda-entry:hover{background:transparent;border-color:transparent;color:var(--crm-blue)}
body[data-crm-theme] .workspace-agenda-copy small{display:block;font-size:12px;color:var(--crm-muted);line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
body[data-crm-theme] .workspace-agenda-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:end;max-width:70px;flex-shrink:0;padding-top:2px}
body[data-crm-theme] .workspace-agenda-actions button{display:inline-grid;place-items:center;width:29px;min-height:29px;padding:2px;font-size:15px;color:var(--crm-blue);background:#fff}
body[data-crm-theme] .workspace-agenda-empty{font-size:14px;line-height:1.6;color:var(--crm-muted);margin:18px 0}
body[data-crm-theme] .workspace-agenda-more{font-size:12px;color:var(--crm-muted);margin:15px 0 0}
body[data-crm-theme] .workspace-agenda-footer{margin-top:18px}
body[data-crm-theme] .workspace-open-agenda{width:100%;min-height:40px;font-size:14px}
@media(max-width:1150px){body[data-crm-theme] nav.workspace-header{gap:14px}body[data-crm-theme] .workspace-primary{order:3;flex-basis:100%}body[data-crm-theme] .workspace-header .nav-tools{margin-left:auto}body[data-crm-theme] .pipeline-toolbar-right{margin-left:0}body[data-crm-theme] .business-summary-grid{grid-template-columns:1fr}}
@media(max-width:850px){body[data-crm-theme] .layout>main{padding:22px 18px}body[data-crm-theme] .business-directory{grid-template-columns:195px minmax(0,1fr);gap:14px}body[data-crm-theme] .business-detail{padding:18px}body[data-crm-theme] .pipeline-board{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}body[data-crm-theme] .pipeline-stage{min-height:240px}body[data-crm-theme] .pool-workspace{grid-template-columns:1fr}body[data-crm-theme] .calendar-layout{grid-template-columns:1fr}body[data-crm-theme] .agenda-create{display:flex;flex-wrap:wrap}body[data-crm-theme] .business-fact{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:600px){body[data-crm-theme] nav.workspace-header{padding:12px;gap:10px}body[data-crm-theme] .workspace-brand img{width:28px;height:28px}body[data-crm-theme] .workspace-brand strong{font-size:14px}body[data-crm-theme] .workspace-brand small{font-size:9px}body[data-crm-theme] .workspace-header .nav-tools{gap:4px}body[data-crm-theme] #live-scope,body[data-crm-theme] #global-company-control{order:5;width:100%;max-width:100%;flex-basis:100%}body[data-crm-theme] #global-company-select{width:100%;max-width:100%}body[data-crm-theme] .workspace-header .nav-tools{display:contents}body[data-crm-theme] .workspace-agenda-toggle{margin-left:auto;padding:8px;gap:5px}body[data-crm-theme] .workspace-header .icon-control{width:30px;height:34px;min-height:34px;padding:5px}body[data-crm-theme] .workspace-primary{gap:3px;order:3}body[data-crm-theme] .workspace-primary button{font-size:13px;padding:8px 9px;white-space:normal}body[data-crm-theme] .layout>main{padding:20px 12px}body[data-crm-theme] #workspace-title{font-size:23px}body[data-crm-theme] .workspace-heading{margin-bottom:19px}body[data-crm-theme] .business-toolbar .view-segments{width:100%}body[data-crm-theme] .business-toolbar .view-segments button{flex:1;padding:8px;font-size:13px}body[data-crm-theme] .business-toolbar-filters{width:100%;gap:8px}body[data-crm-theme] #business-search{width:auto;min-width:0;flex:1}body[data-crm-theme] .business-directory{grid-template-columns:1fr}body[data-crm-theme] #business-list{max-height:230px}body[data-crm-theme] .business-detail{padding:16px}body[data-crm-theme] #business-detail-header{flex-wrap:wrap}body[data-crm-theme] .business-identity{flex-basis:100%}body[data-crm-theme] .business-fact{grid-template-columns:115px minmax(0,1fr);gap:8px}body[data-crm-theme] .pipeline-board{grid-template-columns:1fr}body[data-crm-theme] .pipeline-stage{min-height:0}body[data-crm-theme] .pipeline-filters{width:100%}body[data-crm-theme] .pipeline-filters>div{flex:1;min-width:130px}body[data-crm-theme] .pipeline-filters select,body[data-crm-theme] .pipeline-filters #pipe-search{width:100%}body[data-crm-theme] .pipeline-toolbar-right{width:100%;gap:12px}body[data-crm-theme] .pipeline-toolbar #pipe-new{margin-left:auto}body[data-crm-theme] .pool-toolbar input,body[data-crm-theme] .pool-toolbar select{width:100%;max-width:100%}body[data-crm-theme] .pool-source,body[data-crm-theme] .pool-company-panel{padding:16px}body[data-crm-theme] .calendar-topline .period-controls #week-label{font-size:17px}body[data-crm-theme] .workspace-agenda-peek{left:8px;right:8px;max-width:none;width:auto;padding:16px}body[data-crm-theme] .workspace-agenda-row{gap:9px}body[data-crm-theme] .workspace-agenda-actions{max-width:31px}body[data-crm-theme] .live-access{margin:6vh 14px;padding:24px}body[data-crm-theme] .dialog-fields,body[data-crm-theme] .field-pair{grid-template-columns:1fr}}
@media(max-width:600px){body[data-crm-theme] #business-scope{display:none}body[data-crm-theme] #business-list{display:block;overflow:auto;max-height:230px}body[data-crm-theme] #business-list .business-choice{width:100%;min-width:0;max-width:100%;flex:none}body[data-crm-theme] .business-toolbar-filters{flex-wrap:nowrap}body[data-crm-theme] #business-new{flex-shrink:0}}
@media(max-width:380px){body[data-crm-theme] nav.workspace-header{padding:12px 10px;gap:6px}body[data-crm-theme] .workspace-brand{gap:6px}body[data-crm-theme] .workspace-brand img{width:24px;height:24px}body[data-crm-theme] .workspace-brand strong{font-size:12px}body[data-crm-theme] .workspace-brand small{font-size:8px}body[data-crm-theme] .workspace-agenda-toggle{font-size:13px;padding:7px;gap:4px}body[data-crm-theme] .workspace-agenda-count{min-width:18px;height:18px;font-size:11px;padding:0 3px}body[data-crm-theme] .workspace-header .icon-control{width:28px;min-height:32px;height:32px}body[data-crm-theme] .workspace-primary button{font-size:12px;padding:8px 7px}body[data-crm-theme] .business-toolbar .view-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(pointer:coarse){body[data-crm-theme] button,body[data-crm-theme] .workspace-header .icon-control,body[data-crm-theme] .workspace-agenda-actions button{min-height:44px;min-width:44px}body[data-crm-theme] input:not([type=checkbox]),body[data-crm-theme] select,body[data-crm-theme] textarea{font-size:16px;min-height:44px}body[data-crm-theme] .workspace-agenda-actions{max-width:46px}}
@media(max-width:380px) and (pointer:coarse){body[data-crm-theme] .workspace-brand>span{display:none}}
@media(prefers-reduced-motion:reduce){body[data-crm-theme] *,body[data-crm-theme] *::before,body[data-crm-theme] *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Consistent close controls and compact calendar previews. */
body[data-crm-theme] .dialog-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;margin:0;line-height:1;box-sizing:border-box;transform:none}
body[data-crm-theme] .dialog-close svg{display:block;width:18px;height:18px;flex:none;margin:0}
body[data-crm-theme] dialog h2,body[data-crm-theme] .preview-body h3{padding-right:36px}
body[data-crm-theme] .week-slot-cell .event{box-sizing:border-box;padding:4px 5px 7px;align-items:flex-start;gap:4px}
body[data-crm-theme] .week-slot-cell .event-copy{width:100%;min-width:0;line-height:12px}
body[data-crm-theme] .week-slot-cell .event-copy strong{line-height:12px;margin:0 0 3px}
body[data-crm-theme] .week-slot-cell .event-copy small{line-height:11px;margin:0}
body[data-crm-theme] .week-slot-cell .event.short-event{padding:3px 4px 6px}
body[data-crm-theme] .week-slot-cell .short-event .event-copy strong{margin:0;line-height:11px}
body[data-crm-theme] .week-slot-cell .short-event .event-copy small{display:none}
body[data-crm-theme] #preview-circles{display:flex;flex-wrap:wrap;align-items:center;gap:2px;min-width:0;max-width:120px;overflow:visible;flex:none}
body[data-crm-theme] #preview-circles .day-entry-circle{display:grid;place-items:center;width:22px;height:22px;min-width:22px;min-height:22px;flex:0 0 22px;padding:0;margin:0;background:transparent!important;border:0;border-radius:4px;box-shadow:none;transform:none}
body[data-crm-theme] #preview-circles .day-entry-circle:after{content:'';display:block;width:8px;height:8px;background:var(--entry-dot,#8a93a3);border-radius:50%}
body[data-crm-theme] #preview-circles .day-entry-circle[hidden]{display:none!important}
body[data-crm-theme] #preview-circles .day-entry-circle.active{outline:1px solid #77849b;outline-offset:-2px}
body[data-crm-theme] .preview-footer{gap:6px;padding:9px 12px;flex-wrap:wrap}
body[data-crm-theme] .preview-entry-navigation{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px}
body[data-crm-theme] .preview-entry-navigation button{display:grid;place-items:center;width:25px;height:25px;min-width:25px;min-height:25px;padding:0;margin:0;font-size:18px;line-height:1}

body[data-crm-theme] .event[data-preview-overflow][hidden]{display:none!important}
body[data-crm-theme] #preview-circles{flex-wrap:nowrap;max-width:108px;max-height:none}
body[data-crm-theme] #preview-circles .day-entry-circle{box-sizing:border-box;width:20px;height:20px;min-width:20px;min-height:20px;flex-basis:20px}
/* Compact catalogue with one row per saleable reference. */
body[data-crm-theme] .crm-catalogue-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
body[data-crm-theme] .crm-catalogue-toolbar>input{flex:1;min-width:220px;max-width:430px;margin:0}
body[data-crm-theme] .crm-catalogue-toolbar .inline-checkbox{margin:0;font-size:12px;white-space:nowrap}
body[data-crm-theme] .crm-catalogue-count{margin-left:auto;font-size:11px;color:#6c7888;white-space:nowrap}
body[data-crm-theme] .crm-catalogue-table-wrap{overflow:auto;max-height:65vh;border:1px solid #e2e7ee;border-radius:7px;isolation:isolate}
body[data-crm-theme] .crm-catalogue-table{width:100%;min-width:778px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.45}
body[data-crm-theme] .crm-catalogue-table th,body[data-crm-theme] .crm-catalogue-table td{padding:9px 8px;text-align:left;border-bottom:1px solid #e9edf2;vertical-align:middle}
body[data-crm-theme] .crm-catalogue-table thead{position:sticky;top:0;z-index:3}
body[data-crm-theme] .crm-catalogue-table th{background:#f3f6fa;color:#53647b;font-size:10px;font-weight:650;white-space:nowrap}
body[data-crm-theme] .crm-catalogue-table th:last-child{position:sticky;right:0;z-index:4;min-width:96px;width:96px;text-align:right}
body[data-crm-theme] .crm-catalogue-table td:nth-child(1){min-width:65px;max-width:120px;overflow-wrap:anywhere}
body[data-crm-theme] .crm-catalogue-table td:nth-child(2){min-width:170px;max-width:320px;font-weight:550;overflow-wrap:anywhere}
body[data-crm-theme] .crm-catalogue-table td:nth-child(3),body[data-crm-theme] .crm-catalogue-table td:nth-child(4){font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-crm-theme] .crm-catalogue-table td:nth-child(5){min-width:80px;max-width:180px;overflow-wrap:anywhere}
body[data-crm-theme] .crm-catalogue-table td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
body[data-crm-theme] .crm-catalogue-table small{display:block;font-size:10px;font-weight:400;color:#7a8593}
body[data-crm-theme] .crm-catalogue-table .catalogue-price-cell{white-space:nowrap;text-align:right;min-width:90px;font-variant-numeric:tabular-nums}
body[data-crm-theme] .crm-catalogue-table tbody tr:hover>td{background:#f8fafc}
body[data-crm-theme] .crm-catalogue-table tr:last-child td{border-bottom:0}
body[data-crm-theme] .crm-catalogue-table .catalogue-inactive{color:#8993a1}
body[data-crm-theme] .crm-catalogue-table .catalogue-actions-cell{position:sticky;right:0;z-index:1;background:white;width:92px;min-width:92px;padding:5px 7px;box-shadow:-2px 0 4px #20375308}
body[data-crm-theme] .catalogue-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px}
body[data-crm-theme] .crm-catalogue-table .catalogue-icon-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:26px;height:26px;min-width:26px;min-height:26px;padding:4px;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#60718a;line-height:1;box-shadow:none}
body[data-crm-theme] .crm-catalogue-table .catalogue-icon-button svg{display:block;width:15px;height:15px;flex:none}
body[data-crm-theme] .crm-catalogue-table .catalogue-icon-button:hover{background:#eaf0f8;color:#234b7c;border-color:#d6e1ef}
body[data-crm-theme] .crm-catalogue-table .catalogue-pending-alert{color:#aa720d;background:#fff4d7}
body[data-crm-theme] .crm-catalogue-table .catalogue-pending-alert:hover{background:#ffeab2;color:#865400}
