#salesDailyView { padding:0; min-width:0; font-size:13px; }
#salesDailyLegacy[hidden], #salesDailyWorkspace [hidden] { display:none!important; }
#salesDailyWorkspace { background:#fff; border:1px solid #dbe5f0; border-radius:4px; padding:0 20px 16px; color:#29425e; min-width:0; }
#salesDailyWorkspace *, .sd-dialog * { box-sizing:border-box; letter-spacing:0; }
#salesDailyWorkspace h2 { font-size:20px; margin:0; }
#salesDailyWorkspace h3, .sd-dialog h3 { font-size:14px; margin:0; }
#salesDailyWorkspace button, #salesDailyWorkspace input, #salesDailyWorkspace select { font:inherit; box-shadow:none; }
#salesDailyWorkspace button { cursor:pointer; }
#salesDailyWorkspace button:disabled { opacity:.45; cursor:default; }
#salesDailyWorkspace :focus-visible { outline:2px solid #287dcc; outline-offset:2px; }
#salesDailyWorkspace .icon-button { width:30px; height:30px; min-width:30px; padding:5px; border-radius:4px; }
#salesDailyWorkspace button svg { width:15px; height:15px; }
#salesDailyWorkspace .ghost-button { display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:5px 10px; border-radius:4px; }
.sd-muted, .sd-footnote { color:#75859b; font-size:12px; }
.sd-heading, .sd-toolbar, .sd-section-heading, .sd-actions, .sd-record-tools, .sd-pager { display:flex; align-items:center; gap:10px; }
.sd-heading { justify-content:space-between; padding:15px 0 12px; }
.sd-heading>.sd-toolbar { margin-left:auto; padding:0; gap:8px; }
.sd-heading>.sd-toolbar label { font-size:12px; }
#sdScope { display:none; }
.sd-heading>div { display:flex; align-items:baseline; gap:12px; }
.sd-tabs { display:flex; gap:24px; border-bottom:1px solid #dbe5f0; }
.sd-tabs button { background:none; border:0; border-bottom:2px solid transparent; padding:10px 0; color:#65778f; }
.sd-tabs button[aria-pressed=true] { color:#166cce; border-bottom-color:#267dcc; font-weight:650; }
.sd-toolbar { padding:12px 0; flex-wrap:wrap; }
.sd-toolbar label { display:flex; align-items:center; gap:8px; white-space:nowrap; }
#salesDailyWorkspace input, #salesDailyWorkspace select { border:1px solid #d8e3ef; border-radius:4px; height:32px; min-height:32px; padding:4px 8px; color:#29425e; background:#fff; }
#salesDailyWorkspace select { padding-right:28px; min-width:120px; max-width:200px; }
.sd-toolbar .sd-muted { margin-left:auto; }
.sd-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:20px 0; border-bottom:1px solid #dbe5ef; }
.sd-kpis>div { padding:0 20px; display:flex; align-items:center; gap:18px; border-right:1px solid #e3eaf2; }
.sd-kpis>div>div { display:flex; flex-direction:column; gap:6px; min-width:0; }
.sd-kpis>div>svg { width:32px; height:32px; flex-shrink:0; color:#169e87; }
.sd-kpis>div:nth-child(2)>svg { color:#d68d20; }
.sd-kpis>div:nth-child(3)>svg { color:#277be4; }
.sd-kpis>div:nth-child(4)>svg { color:#e76159; }
.sd-kpis>div:first-child { padding-left:0; }
.sd-kpis>div:last-child { border-right:0; }
.sd-kpis strong { font-size:28px; line-height:1.2; color:#169e87; font-variant-numeric:tabular-nums; }
.sd-kpis>div:nth-child(2) strong { color:#af7923; }
.sd-kpis>div:nth-child(3) strong { color:#267dcc; }
.sd-kpis>div:nth-child(4) strong { color:#d75b55; }
.sd-duty-kpis>div:nth-child(1)>svg,.sd-duty-kpis>div:nth-child(1) strong { color:#267dcc; }
.sd-duty-kpis>div:nth-child(2)>svg,.sd-duty-kpis>div:nth-child(2) strong { color:#148b7a; }
.sd-duty-kpis>div:nth-child(3)>svg,.sd-duty-kpis>div:nth-child(3) strong { color:#af7923; }
.sd-duty-kpis>div:nth-child(4)>svg,.sd-duty-kpis>div:nth-child(4) strong { color:#65778f; }
.sd-kpis small { font-size:12px; color:#78899d; font-weight:400; margin-left:6px; }
.sd-section-heading { justify-content:space-between; padding:12px 0; min-height:46px; }
.sd-day-layout { display:grid; grid-template-columns:minmax(0,2.3fr) minmax(270px,1fr); gap:22px; padding-top:6px; }
.sd-calendar-section { border-right:1px solid #e3eaf2; padding-right:18px; }
.sd-calendar,.sd-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.sd-weekdays span { text-align:center; padding:7px 0; color:#8190a4; font-size:12px; }
.sd-calendar button { height:43px; border:1px solid transparent; border-radius:4px; color:#29425e; background:#f7f9fc; padding:4px; display:flex; flex-direction:column; gap:5px; align-items:center; }
.sd-calendar button small { display:flex; gap:3px; min-height:5px; }
.sd-calendar .is-outside { opacity:.35; }
.sd-calendar .is-today { border-color:#96bce7; }
.sd-calendar button[aria-pressed=true] { background:#e2efff; border-color:#247bcf; color:#125da8; font-weight:700; }
.sd-dot { display:inline-block; height:5px; width:5px; border-radius:50%; }
.sd-dot.is-daily { background:#159a91; }.sd-dot.is-checkin { background:#3382ce; }
.sd-legend { display:flex; gap:16px; color:#78899d; font-size:12px; padding:12px 0; }.sd-legend b { margin-right:5px; }
.sd-people-section { min-width:0; }
.sd-table-wrap { max-height:490px; overflow:auto; scrollbar-width:thin; scrollbar-gutter:stable; }
.sd-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.sd-table th { background:#f5f8fc; color:#71839a; font-weight:500; position:sticky; top:0; z-index:1; text-align:left; padding:9px 10px; border-bottom:1px solid #dbe5ef; }
.sd-table td { padding:10px; border-bottom:1px solid #e6edf5; vertical-align:middle; line-height:1.5; overflow-wrap:anywhere; }
.sd-table td small { display:block; font-size:12px; color:#8290a3; margin-top:3px; }
.sd-table tr:hover { background:#f7faff; }
#sdDayPanel th:nth-child(1),#sdRecordsPanel th:nth-child(1) { width:16%; }
#sdDayPanel th:nth-child(2),#sdRecordsPanel th:nth-child(2) { width:14%; }
#sdDayPanel th:nth-child(3) { width:21%; }
#sdDayPanel th:nth-child(4),#sdRecordsPanel th:nth-child(4) { width:29%; }
#sdDayPanel th:last-child { width:20%; }
#sdRecordsPanel th:last-child { width:58px; }
.sd-clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sd-status { color:#79879b; font-size:12px; }.sd-status.is-good { color:#148b7a; }.sd-status.is-warning { color:#ae7720; }
.sd-text-button { background:none; border:0; padding:0; color:#2473c4; font-weight:600!important; text-align:left; }
.sd-footnote { margin:10px 0 0; line-height:1.5; }
.sd-record-tools { padding:12px 0; flex-wrap:wrap; }
.sd-search { display:flex; align-items:center; position:relative; width:360px; max-width:100%; }
.sd-search svg { position:absolute; left:9px; width:16px; color:#8290a5; }
#salesDailyWorkspace .sd-search input { padding-left:32px; width:100%; }
.sd-pager { justify-content:space-between; padding:10px 0; color:#70829a; }
.sd-chart { height:250px; position:relative; }
.sd-quality { display:flex; align-items:center; gap:8px; padding:7px 10px; color:#a06e19; background:#fff9ed; border-left:2px solid #d9a33c; font-size:12px; }
.sd-quality svg { width:14px; height:14px; }.sd-quality button { background:none; border:0; color:#287dcc; padding:0; margin-left:auto; }
.sd-empty { padding:36px 10px!important; text-align:center; color:#8190a4; }
.sd-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; }
#sdMap { height:440px; min-width:0; background:#f4f7fa; isolation:isolate; z-index:0; overflow:hidden; }
#sdLocations { max-height:440px; overflow:auto; }
#sdLocations article { padding:12px 34px 12px 0; border-bottom:1px solid #e3eaf2; display:flex; flex-direction:column; gap:6px; position:relative; }
#sdLocations article button { position:absolute; right:0; top:10px; }#sdLocations small { color:#8290a3; }
.sd-dialog { width:720px; max-width:calc(100vw - 48px); max-height:calc(100vh - 64px); border:1px solid #dbe5ef; border-radius:6px; padding:0; color:#29425e; font-size:14px; }
.sd-dialog::backdrop { background:rgb(12 30 50 / 40%); }
.sd-dialog header,.sd-dialog footer { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; border-bottom:1px solid #e3eaf2; }.sd-dialog h2 { margin:0; font-size:18px; }.sd-dialog footer { justify-content:flex-end; border-top:1px solid #e3eaf2; border-bottom:0; }
#sdDetail { padding:16px 20px; max-height:65vh; overflow:auto; overflow-wrap:anywhere; }#sdDetail h3 { margin:18px 0 8px; }#sdDetail dl { display:grid; grid-template-columns:1fr 1fr; margin:0; gap:12px; }#sdDetail dt { color:#8290a4; font-size:12px; }#sdDetail dd { margin:4px 0; }
.sd-full-content { white-space:pre-wrap; line-height:1.7; }
.sd-day-heading { flex-wrap:wrap; justify-content:flex-start; gap:12px; }
.sd-day-heading h3 { white-space:nowrap; }
.sd-day-heading .sd-search { margin-left:auto; width:210px; }
.sd-status-filters { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.sd-status-filters button { padding:5px 8px; min-height:30px; border:1px solid #dbe5ef; border-radius:4px; background:#fff; color:#5c718d; white-space:nowrap; }
.sd-status-filters button[aria-pressed=true] { background:#edf5ff; border-color:#9cc2f4; color:#1970d4; }
.sd-status-filters b { margin-left:4px; font-variant-numeric:tabular-nums; }
.sd-day-table-wrap { max-height:375px; min-height:220px; }
#sdPeople td { padding:8px 10px; }
#sdPeople td:nth-child(4)>.sd-clamp,#sdPeople td:last-child>.sd-clamp { -webkit-line-clamp:1; }
.sd-table tr.is-selected { background:#eaf3ff; box-shadow:inset 2px 0 #408bea; }
#sdPeople tr { cursor:pointer; }
.sd-list-footer { padding-top:10px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:12px; color:#7a8aa0; }
.sd-recent-chart { height:172px; position:relative; min-width:0; }
.sd-context { border-left:1px solid #e1e8f0; padding-left:22px; min-width:0; }
#salesDailyWorkspace .sd-context h3 { font-size:17px; }
.sd-context h4 { display:flex; align-items:center; gap:8px; font-size:14px; margin:0 0 10px; color:#213e5d; }
.sd-context h4 svg { width:18px; height:18px; color:#247bd5; }
.sd-context .sd-assistance svg { color:#dc9829; }
.sd-context p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.75; margin:0; }
.sd-context section { padding:16px 0; border-top:1px solid #e4ebf3; }
.sd-context-meta { margin:0; padding:4px 0 16px; }
.sd-context-meta>div { display:grid; grid-template-columns:82px minmax(0,1fr); gap:8px; padding:7px 0; }
.sd-context-meta dt { display:flex; align-items:center; gap:6px; color:#7c8da4; font-size:12px; }
.sd-context-meta dt svg { width:15px; height:15px; }
.sd-context-meta dd { margin:0; overflow-wrap:anywhere; }
.sd-customer-link { display:block; line-height:1.6; overflow-wrap:anywhere; max-width:100%; }
.sd-record-customers { margin-top:4px; font-size:12px; }
.sd-context-record { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
#salesDailyWorkspace .sd-context-record select { min-width:0; max-width:100%; flex:1; }
.sd-full-button { width:100%; justify-content:center; }
#salesDailyWorkspace .primary-button { min-height:32px; padding:6px 12px; border-radius:4px; display:inline-flex; align-items:center; gap:6px; background:#2077e5; color:#fff; border:1px solid #2077e5; }
.sd-editor-body { padding:14px 20px; overflow:auto; max-height:68vh; }
.sd-editor-body>label,.sd-form-grid>label { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; font-size:13px; }
.sd-editor-body textarea { font:inherit; color:#29425e; border:1px solid #d8e3ef; border-radius:4px; padding:8px; width:100%; resize:vertical; }
.sd-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
#salesDailyWorkspace .sd-form-grid select { max-width:none; }
.sd-customer-picker { border-top:1px solid #e4ebf3; border-bottom:1px solid #e4ebf3; padding-bottom:12px; margin-bottom:14px; }
.sd-customer-options { display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; margin-top:8px; max-height:150px; overflow:auto; }
.sd-customer-options label { display:flex; align-items:flex-start; gap:8px; padding:5px 0; font-size:13px; cursor:pointer; }
#salesDailyWorkspace .sd-customer-options input { width:16px; height:16px; min-height:16px; margin-top:2px; flex-shrink:0; }
.sd-customer-options small { display:block; color:#7b8ba0; font-size:12px; }
.sd-form-error { color:#b74637; }
#sdEditor footer { gap:10px; flex-wrap:wrap; }
#sdEditor footer .sd-form-error { flex:1 1 280px; margin:0 auto 0 0; font-size:12px; line-height:1.5; }
.sd-detail-customers { display:flex; flex-wrap:wrap; align-items:center; gap:10px; border-bottom:1px solid #e4ebf3; padding-bottom:12px; }
.sd-dialog input,.sd-dialog select { max-width:100%; }
.sd-dialog .sd-text-button { font:inherit; }
.sd-dialog [hidden] { display:none!important; }
.sd-dialog input,.sd-dialog select { font:inherit; border:1px solid #d8e3ef; border-radius:4px; height:34px; min-height:34px; padding:5px 8px; color:#29425e; background:#fff; }
.sd-dialog .sd-search input { width:100%; padding-left:32px; }
.sd-dialog .sd-customer-options input { width:16px; height:16px; min-height:16px; margin-top:2px; flex-shrink:0; }
.sd-dialog button { font:inherit; box-shadow:none; cursor:pointer; }
.sd-dialog button svg { width:16px; height:16px; }
.sd-dialog .icon-button { width:30px; height:30px; min-width:30px; padding:5px; border-radius:4px; }
.sd-dialog .ghost-button,.sd-dialog .primary-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:5px 12px; border-radius:4px; }
.sd-dialog .primary-button { background:#2077e5; border:1px solid #2077e5; color:#fff; }
.sd-duty-button { display:inline-flex; align-items:center; gap:4px; text-align:left; background:none; border:0; padding:0; line-height:1.5; }
.sd-duty-button svg { width:12px; height:12px; flex-shrink:0; }
.sd-context-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
#sdWorkEditor { width:480px; }
#sdWorkEditor footer { gap:10px; flex-wrap:wrap; }
#sdWorkError { flex:1 1 100%; margin:0; line-height:1.5; font-size:12px; }
@media(min-width:1450px) { .sd-day-heading .sd-search { width:220px; }.sd-day-layout { grid-template-columns:minmax(0,2.4fr) minmax(300px,1fr); } }
@media(max-width:1200px) { .sd-day-layout { grid-template-columns:minmax(0,1fr) 270px; gap:16px; }.sd-day-heading .sd-search { margin-left:0; width:100%; }.sd-context { padding-left:16px; }.sd-kpis>div { padding:0 12px; gap:10px; }.sd-kpis>div>svg { width:24px; }.sd-toolbar .sd-muted { margin-left:0; }.sd-map-layout { grid-template-columns:minmax(0,1fr) 230px; } }
@media(max-width:850px) { .sd-day-layout,.sd-map-layout { grid-template-columns:1fr; }.sd-calendar-section { max-width:320px; border:0; }.sd-kpis { grid-template-columns:1fr 1fr; row-gap:16px; }.sd-table { min-width:630px; } }
@media(max-width:850px) { .sd-context { border-left:0; padding-left:0; border-top:1px solid #e1e8f0; }.sd-heading { flex-wrap:wrap; }.sd-day-heading .sd-search { width:100%; }.sd-kpis>div:nth-child(2) { border:0; } }
@media(max-width:1350px) { .sd-heading { flex-wrap:wrap; }.sd-heading>.sd-toolbar { order:3; width:100%; margin-left:0; padding:4px 0; }.sd-heading>.sd-actions { margin-left:auto; } }
@media(max-width:1200px) { .sd-day-layout { grid-template-columns:minmax(0,1fr); }.sd-context { border-left:0; padding-left:0; border-top:1px solid #e1e8f0; } }
@media(max-width:520px) { #salesDailyWorkspace { padding:0 12px 12px; }.sd-tabs { gap:16px; }.sd-heading>div { flex-wrap:wrap; gap:6px; }.sd-kpis>div { padding:0 8px; gap:7px; }.sd-kpis>div>svg { display:none; }.sd-form-grid,.sd-customer-options { grid-template-columns:1fr; }.sd-dialog { max-width:calc(100vw - 20px); }.sd-toolbar .sd-muted { width:100%; } }
