/* Cheongju manager console. Call-state colors and saved column widths remain data-driven. */
body:is(.cheongju-console, .chuncheon-console)
{
    --console-shell-bg: #1a2937;
    --console-nav-bg: #263b4d;
    --console-shell-fg: #dce7ef;
    --console-shell-muted: #afbfcc;
    --console-shell-hover: #324b60;
    --console-shell-active: #3e5b73;
    --console-shell-line: #486075;
    --console-toolbar: #2d3f4e;
    --console-grid-header: #334957;
    --console-grid-vertical: #354653;
    --console-status-bg: #3b566b;
    --console-status-fg: #e0eaf1;
    --console-surface: #24333e;
    --console-surface-soft: #2b3c49;
    --console-line: #405361;
    --console-muted: #aab7c7;
    --console-accent: #a6c6dc;
    --console-selected: #304968;
    --console-hover: #2c4156;
    --console-primary: #476c88;
    --console-primary-hover: #4a718e;
    --console-primary-active: #3d607b;
    --console-scroll-thumb: #73889a;
    --console-scroll-thumb-hover: #9aafc1;
    --console-row: #24333e;
    --console-row-alt: #293a47;
    --console-ink: #e0e7f0;
    --theme-body-bg: #1d242e;
    --theme-body-fg: var(--console-ink);
    --theme-control-bg: var(--console-surface);
    --theme-control-fg: var(--console-ink);
    --theme-control-border: var(--console-line);
    --theme-control-focus-border: var(--console-accent);
    --theme-control-focus-shadow: 0 0 0 2px #88b7ff40;
    --theme-control-border-hover: var(--console-scroll-thumb);
    --theme-control-readonly-bg: var(--console-surface-soft);
    --theme-control-readonly-fg: var(--console-muted);
    --theme-button-bg: var(--console-surface);
    --theme-button-bg-hover: var(--console-surface-soft);
    --theme-button-bg-active: var(--console-selected);
    --theme-button-border: var(--console-line);
    --theme-button-border-hover: var(--console-accent);
    --theme-button-fg: var(--console-ink);
    --theme-choice-accent: var(--console-primary);
    --theme-choice-accent-checked: var(--console-primary);
    --theme-label-fg: var(--console-muted);
    --theme-info-fg: var(--console-ink);
    --theme-link-fg: var(--console-ink);
    --theme-link-hover-fg: var(--console-accent);
    --theme-menu-bar-bg: var(--console-surface);
    --theme-menu-bar-border: var(--console-line);
    --theme-menu-text-fg: var(--console-muted);
    --theme-menu-text-fg-hover: var(--console-accent);
    --theme-menu-text-fg-selected: var(--console-accent);
    --theme-top-tab-on-bg: var(--console-selected);
    --theme-top-tab-on-fg: var(--console-accent);
    --theme-top-tab-on-border: var(--console-line);
    --theme-top-tab-on-border-bottom: var(--console-accent);
    --theme-top-tab-on-shadow: none;
    --theme-top-tab-off-bg: transparent;
    --theme-top-tab-off-fg: var(--console-muted);
    --theme-top-tab-off-border: transparent;
    --theme-top-tab-off-bg-hover: var(--console-surface-soft);
    --theme-top-tab-off-fg-hover: var(--console-ink);
    --theme-top-tab-off-border-hover: transparent;
    --theme-call-receive-bar-bg: var(--theme-body-bg);
    --theme-action-btn-bg: var(--console-primary);
    --theme-action-btn-fg: #fff;
    --theme-action-btn-border: var(--console-primary);
    --theme-action-btn-bg-hover: var(--console-primary-hover);
    --theme-big-phone-bg: var(--console-selected);
    --theme-big-phone-border: var(--console-line);
    --theme-big-phone-fg: var(--console-accent);
    --theme-search-bg: var(--console-surface);
    --theme-search-border: var(--console-line);
    --theme-panel-bg: var(--console-surface);
    --theme-panel-border: var(--console-line);
    --theme-panel-header-bg: var(--console-toolbar);
    --theme-panel-header-fg: var(--console-ink);
    --theme-counter-bg: var(--console-surface-soft);
    --theme-counter-border: var(--console-line);
    --theme-counter-fg: var(--console-ink);
    --theme-divider: var(--console-line);
    --theme-divider-strong: var(--console-line);
    --theme-grid-divider: var(--console-line);
    --theme-etc-tabheader-border: 1px solid var(--console-line);
    --theme-etc-tab-bg: transparent;
    --theme-etc-tab-fg: var(--console-muted);
    --theme-etc-tab-border: transparent;
    --theme-etc-tab-bg-hover: var(--console-surface-soft);
    --theme-etc-tab-fg-hover: var(--console-ink);
    --theme-etc-tab-on-bg: var(--console-selected);
    --theme-etc-tab-on-fg: var(--console-accent);
    --theme-etc-tab-on-border: var(--console-line);
    --theme-tabulator-bg: var(--console-surface);
    --theme-tabulator-border: var(--console-line);
    --theme-tabulator-fg: var(--console-ink);
    --theme-tabulator-header-bg: var(--console-grid-header);
    --theme-tabulator-header-fg: var(--console-ink);
    --theme-tabulator-header-border: var(--console-line);
    --theme-tabulator-col-border: var(--console-line);
    --theme-tabulator-row-bg: var(--console-row);
    --theme-tabulator-row-bg-odd: var(--console-row-alt);
    --theme-tabulator-row-bg-hover: var(--console-hover);
    --theme-tabulator-row-border: var(--console-line);
    --theme-tabulator-row-fg: var(--console-ink);
    --theme-tabulator-row-bg-selected: var(--console-selected);
    --theme-tabulator-row-fg-selected: var(--console-ink);
    --theme-bizcall-row-even-bg: var(--console-row);
    --theme-bizcall-row-odd-bg: var(--console-row-alt);
    --theme-bizcall-row-hover-bg: var(--console-hover);
    --theme-bizcall-cell-fg: var(--console-ink);
    --theme-bizcall-cell-border: var(--console-line);
    --theme-bizcall-th-bg: var(--console-grid-header);
    --theme-bizcall-th-fg: var(--console-ink);
    --theme-bizcall-th-border: var(--console-line);
    --theme-select-option-bg: var(--console-surface);
    --theme-select-option-fg: var(--console-ink);
    --theme-select-option-bg-active: var(--console-selected);
    --theme-select-option-fg-active: var(--console-ink);
    --theme-select-hover-bg: var(--console-surface-soft);
    --theme-select-hover-border: var(--console-accent);
    --theme-select-focus-bg: var(--console-surface);
    --theme-select-focus-border: var(--console-accent);
    --theme-select-focus-shadow: var(--theme-control-focus-shadow);
    --theme-accent: var(--console-primary);
    --theme-accent-fg: #fff;
    --theme-focus-ring: var(--console-accent);
    --theme-row-selected-accent: var(--console-accent);
    --theme-menu-item-hover-bg: var(--console-hover);
    --theme-menu-item-hover-fg: var(--console-ink);
    --theme-popup-shadow: 0 8px 24px #00000066;
    --theme-tab-accent: var(--console-accent);
    --theme-scroll-track: var(--console-surface-soft);
    --theme-scroll-thumb: var(--console-scroll-thumb);
    --theme-scroll-thumb-hover: var(--console-scroll-thumb-hover);
}

body:is(.cheongju-console, .chuncheon-console):not(.light, .black)
{
    --console-row: #27343f;
    --console-row-alt: #42525f;
    --theme-control-bg: #465768;
    --theme-control-border: #a2b2c3;
    --theme-control-border-hover: #b3c2d1;
    --theme-control-readonly-bg: #3a4957;
    --theme-search-bg: var(--theme-control-bg);
    --theme-search-border: var(--theme-control-border);
}

body:is(.cheongju-console, .chuncheon-console).light
{
    --console-shell-bg: #34485d;
    --console-nav-bg: #415b73;
    --console-shell-fg: #e3ebf2;
    --console-shell-muted: #c8d5e0;
    --console-shell-hover: #4b657d;
    --console-shell-active: #4e6b83;
    --console-shell-line: #657f95;
    --console-toolbar: #d4dfe8;
    --console-grid-header: #c8d5df;
    --console-grid-vertical: #dae2e8;
    --console-status-bg: #4b657d;
    --console-status-fg: #edf2f7;
    --console-surface: #edf1f4;
    --console-surface-soft: #e1e8ee;
    --console-line: #c3cfd9;
    --console-muted: #4d6275;
    --console-accent: #345e80;
    --console-selected: #d1e0eb;
    --console-hover: #dae5ee;
    --console-primary: #456782;
    --console-primary-hover: #375970;
    --console-primary-active: #2e5069;
    --console-scroll-thumb: #708294;
    --console-scroll-thumb-hover: #52697c;
    --console-row: #edf1f4;
    --console-row-alt: #e3eaf0;
    --console-ink: #263b4d;
    --theme-body-bg: #e4ebf0;
    --theme-control-bg: #f4f6f7;
    --theme-control-readonly-bg: #dfe7ed;
    --theme-button-bg: #e3ebf1;
    --theme-button-bg-hover: #d4e0e9;
    --theme-button-bg-active: #c8d8e4;
    --theme-danger-fg: #b52f3a;
    --theme-control-focus-shadow: 0 0 0 2px #3c648238;
    --theme-popup-shadow: 0 8px 24px #263b4d2e;
}

body:is(.cheongju-console, .chuncheon-console).black
{
    --console-shell-bg: #26323e;
    --console-nav-bg: #2d3b48;
    --console-shell-hover: #344759;
    --console-shell-active: #405972;
    --console-shell-line: #8192a5;
    --console-toolbar: #35414e;
    --console-grid-header: #3e4b59;
    --console-grid-vertical: #465260;
    --console-status-bg: #385467;
    --console-surface: #2a323d;
    --console-surface-soft: #303b47;
    --console-line: #505f70;
    --console-muted: #b9c6d4;
    --console-accent: #b2d0ff;
    --console-selected: #365170;
    --console-hover: #435468;
    --console-primary: #416ca3;
    --console-primary-hover: #4876aa;
    --console-primary-active: #365785;
    --console-scroll-thumb: #74899e;
    --console-scroll-thumb-hover: #93aac1;
    --console-row: #222a33;
    --console-row-alt: #394653;
    --console-ink: #dce5f0;
    --theme-body-bg: #000000;
    --theme-control-bg: #46515e;
    --theme-control-border: #9caebf;
    --theme-control-border-hover: #afc0d0;
    --theme-control-readonly-bg: #3b4653;
    --theme-select-hover-bg: var(--theme-control-bg);
    --theme-select-focus-bg: var(--theme-control-bg);
    --theme-search-bg: var(--theme-control-bg);
    --theme-search-border: var(--theme-control-border);
    --theme-tabulator-footer-bg: var(--console-toolbar);
    --theme-tabulator-footer-border: var(--console-line);
    --theme-popup-shadow: 0 8px 24px #000000b3;
}

body:is(.cheongju-console, .chuncheon-console) :is(button, input[type='button'], .rectBtn, .menutext, .ton, .toff)
{
    font-family: var(--app-font-base, 'Jeju Gothic', sans-serif) !important;
}

body:is(.cheongju-console, .chuncheon-console) :is(input, select, textarea, button, .rectBtn)
{
    border-radius: 4px;
    box-shadow: none;
}

body:is(.cheongju-console, .chuncheon-console) :is(input:not([type='checkbox']):not([type='radio']), select)
{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: normal !important;
}

body:is(.cheongju-console, .chuncheon-console) :is(input[type='checkbox'], input[type='radio'])
{
    accent-color: var(--console-primary);
}

body:is(.cheongju-console, .chuncheon-console) :is(button, .rectBtn):focus-visible
{
    outline: 2px solid var(--console-accent);
    outline-offset: 1px;
}

body:is(.cheongju-console, .chuncheon-console) .rectBtn
{
    gap: 4px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.15 !important;
    font-weight: 400;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

body:is(.cheongju-console, .chuncheon-console) .rectBtn:not(td)
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:is(.cheongju-console, .chuncheon-console) td.rectBtn
{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    font-size: 16px !important;
}

body:is(.cheongju-console, .chuncheon-console) tr:has(> td#regBtn.rectBtn)
{
    display: flex;
    gap: 10px;
    width: 100%;
}
body:is(.cheongju-console, .chuncheon-console) tr:has(> td#regBtn.rectBtn) > td.rectBtn
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}
body:is(.cheongju-console, .chuncheon-console) tr:has(> td#regBtn.rectBtn) > td:not(.rectBtn) { display: none; }

body:is(.cheongju-console, .chuncheon-console) :is(.page-panel, .page-sidebar, .env-section-title, .env-section-box)
{
    border-radius: 5px !important;
    box-shadow: none !important;
}

body:is(.cheongju-console, .chuncheon-console) .main-header-bar
{
    height: 38px;
    min-height: 38px;
    margin-top: 0;
    padding: 0 8px;
    box-sizing: border-box;
    gap: 4px;
    background: var(--console-shell-bg);
    border-bottom: 1px solid var(--console-shell-line);
}

.console-brand { display: none; }
body:is(.cheongju-console, .chuncheon-console) .console-brand
{
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    margin: 0 12px 0 4px;
    color: var(--console-shell-fg);
    font-size: calc(var(--app-font-size, 12px) + 3px);
    font-weight: 700;
    letter-spacing: -.5px;
    white-space: nowrap;
}
body:is(.cheongju-console, .chuncheon-console) .console-brand::before
{
    content: '';
    width: 5px;
    height: 16px;
    border-radius: 2px;
    background: #a8c3d6;
}

body:is(.cheongju-console, .chuncheon-console) .main-header-bar [data-name='menus']
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 33px;
    align-self: flex-end;
    margin: 0 0 -1px !important;
    padding: 0;
    border: 1px solid var(--console-shell-line) !important;
    border-bottom: 0 !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: none;
    font-size: calc(var(--app-font-size, 12px) + 2px);
    font-weight: 700;
    cursor: pointer;
}

body:is(.cheongju-console, .chuncheon-console) .main-header-bar .ton
{
    box-shadow: none !important;
}

body:is(.cheongju-console, .chuncheon-console) .main-header-bar :is(select, #logOutBtn)
{
    height: 26px !important;
}
body:is(.cheongju-console, .chuncheon-console) #logOutBtn { width: 56px !important; margin: 0 10px 0 4px !important; }
body:is(.cheongju-console, .chuncheon-console) .main-header-bar label { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
body:is(.cheongju-console, .chuncheon-console) .main-header-bar label:has([name='themeMode'])
{
    padding: 4px 7px !important;
    margin-right: 0 !important;
    border-radius: 4px;
    color: var(--console-muted);
    cursor: pointer;
}
body:is(.cheongju-console, .chuncheon-console) .main-header-bar label:has([name='themeMode']:checked)
{
    background: var(--console-shell-active);
    color: var(--console-shell-fg);
}
body:is(.cheongju-console, .chuncheon-console) .main-header-bar :is(#infoDate, #infoTime) { font-size: 13px !important; font-variant-numeric: tabular-nums; }

body:is(.cheongju-console, .chuncheon-console) .main-menu-bar
{
    height: 36px;
    min-height: 36px;
    border-bottom: 1px solid var(--console-line);
    box-sizing: border-box;
}
body:is(.cheongju-console, .chuncheon-console) [data-name='menusTabs']
{
    padding: 0 8px !important;
    height: 100%;
    align-items: center;
    white-space: nowrap;
}
body:is(.cheongju-console, .chuncheon-console) [data-name='menusTabs'] > .menutext
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    margin: 2px 1px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: calc(var(--app-font-size, 12px) + 1px);
    cursor: pointer;
}
body:is(.cheongju-console, .chuncheon-console) [data-name='menusTabs'] > span:not(.menutext) { color: var(--console-shell-line) !important; }
body:is(.cheongju-console, .chuncheon-console) [data-name='menusTabs'] > .menutext:hover { background: var(--console-shell-hover); }
body:is(.cheongju-console, .chuncheon-console) [data-name='menusTabs'] > .menutext-sel
{
    background: var(--console-shell-active);
    font-weight: 700 !important;
}
body:is(.cheongju-console, .chuncheon-console) #managerInfo { width: auto !important; flex: 0 0 auto; font-size: 12px !important; color: var(--console-shell-fg); }
body:is(.cheongju-console, .chuncheon-console) .call-receive-bar { border-bottom: 1px solid var(--console-line); box-sizing: border-box; }
body:is(.cheongju-console, .chuncheon-console) #openCallReceiveBtn { background: var(--console-primary); border-color: var(--console-primary); color: #fff; }
body:is(.cheongju-console, .chuncheon-console) #openCallReceiveBtn:hover { background: var(--console-primary-hover); }
body:is(.cheongju-console, .chuncheon-console) #callReceiveDiv { gap: 3px; padding: 0 6px; }
body:is(.cheongju-console, .chuncheon-console) #callReceiveDiv > button { height: 24px !important; }
body:is(.cheongju-console, .chuncheon-console) #infoWin { border-bottom: 1px solid var(--console-line) !important; }
body:is(.cheongju-console, .chuncheon-console) #contsMain { background: var(--theme-body-bg) !important; }
body:is(.cheongju-console, .chuncheon-console) #bigPhoneNum { background: var(--theme-big-phone-bg); color: var(--theme-big-phone-fg) !important; border-radius: 5px; }
body:is(.cheongju-console, .chuncheon-console) .call-receive-label { color: var(--console-muted); }
body:is(.cheongju-console, .chuncheon-console) .call-receive-grid { row-gap: 3px; }

body:is(.cheongju-console, .chuncheon-console) :is(.tabheader ul li, #etcList li, [name='etcTabs'])
{
    box-shadow: none !important;
    border-radius: 4px 4px 0 0;
}
body:is(.cheongju-console, .chuncheon-console) .tabheader ul li.on { box-shadow: inset 0 -2px var(--console-accent) !important; }
body:is(.cheongju-console, .chuncheon-console) #etcList .on { box-shadow: inset 0 -2px var(--console-accent) !important; }
body:is(.cheongju-console, .chuncheon-console) :is(.page-toolbar, .record-list-toolbar) { background: var(--console-toolbar); }
body:is(.cheongju-console, .chuncheon-console) .record-list-toolbar { border-bottom: 1px solid var(--console-line); }
body:is(.cheongju-console, .chuncheon-console) .record-management-page > .record-editor { background: var(--console-surface); }
body:is(.cheongju-console, .chuncheon-console) :is(#bizTree, .tree) { color: var(--console-muted); }
body:is(.cheongju-console, .chuncheon-console) .selTree { color: var(--console-accent) !important; background: var(--console-selected) !important; border-radius: 3px; }

body:is(.cheongju-console, .chuncheon-console) :is(.tabulator, .stable, .atable, .htable, .ntable)
{
    border-radius: 0;
    border-width: 1px;
    box-shadow: none;
}
body:is(.cheongju-console, .chuncheon-console) :is(.stable th, .atable th, .htable th, #bizCallTableHeader th, .tabulator-col-title)
{
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-weight: 500;
    line-height: 1.25 !important;
}
body:is(.cheongju-console, .chuncheon-console) #bizCallTableHeader th { padding-left: 2px !important; padding-right: 2px !important; }
body:is(.cheongju-console, .chuncheon-console) .tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 6px 3px; }
body:is(.cheongju-console, .chuncheon-console) .tabulator .tabulator-header { border-bottom: 1px solid var(--console-line); }
body:is(.cheongju-console, .chuncheon-console) :is(.stable td, .atable td, .htable td, .tabulator-cell) { border-color: var(--console-line) !important; }
body:is(.cheongju-console, .chuncheon-console) .tabulator-row.tabulator-selected { box-shadow: inset 3px 0 var(--console-accent); }
body:is(.cheongju-console, .chuncheon-console) #carState { border-radius: 4px; }

body:is(.cheongju-console, .chuncheon-console) #mapToolbar { padding-top: 3px; padding-bottom: 3px; }
body:is(.cheongju-console, .chuncheon-console) #mainPage #mapToolbar :is(#mainWorkspaceToggle, #mapViewToggle)
{
    width: 126px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 12px;
    border-color: var(--console-line);
    background: var(--console-surface);
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}
body:is(.cheongju-console, .chuncheon-console) #mainPage #mapToolbar :is(#mainWorkspaceToggle, #mapViewToggle)::before
{
    background: var(--console-primary);
    border-radius: 10px;
}
body:is(.cheongju-console, .chuncheon-console) #mainWorkspaceToggle span { z-index: 1; }
body:is(.cheongju-console, .chuncheon-console) #autoReceptionPanel { background: var(--console-surface); }
body:is(.cheongju-console, .chuncheon-console) #autoReceptionTranscript { padding: 10px 12px; font-size: 12px; }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-detail-header { min-height: 28px; }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-progress { border-radius: 3px; background: var(--console-selected); color: var(--console-accent); }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-progress.is-failed { color: var(--theme-danger-fg); }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-dialog { align-items: flex-start; gap: 9px; padding: 7px 0; }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-speaker { padding: 1px 3px; border-radius: 3px; background: var(--console-surface-soft); text-align: center; }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-dialog.is-customer .auto-reception-speaker { background: var(--console-selected); color: var(--console-accent); }
body:is(.cheongju-console, .chuncheon-console) .auto-reception-dialog p { font-weight: 400; }

body:is(.cheongju-console, .chuncheon-console) .env-section-title { border-color: var(--console-line) !important; font-weight: 500; }
body:is(.cheongju-console, .chuncheon-console) .env-section-box { border: 1px solid var(--console-line) !important; background: var(--console-surface) !important; }
body:is(.cheongju-console, .chuncheon-console) :is(#headerMenu, #tableMenu, .sidemenu, #searchLocaDiv)
{
    border: 1px solid var(--console-line) !important;
    border-radius: 6px !important;
    box-shadow: var(--theme-popup-shadow) !important;
}
body:is(.cheongju-console, .chuncheon-console) :is(.modal-dialog, .modal-content, .swal2-popup)
{
    background: var(--console-surface);
    color: var(--console-ink);
    border: 1px solid var(--console-line);
    border-radius: 8px;
}

body:is(.cheongju-console, .chuncheon-console) .main-header-bar .console-control-text,
body:is(.cheongju-console, .chuncheon-console) .main-header-bar #showInfoWin + span
{
    position: relative;
    top: 2px !important;
}

body:is(.cheongju-console, .chuncheon-console) .manager-driver-phone-cell
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-width: 0;
}
body:is(.cheongju-console, .chuncheon-console) #inDriverTable .tabulator-cell[tabulator-field='name']
{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body:is(.cheongju-console, .chuncheon-console) .manager-driver-phone-cell > span
{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body:is(.cheongju-console, .chuncheon-console) .manager-phone-field
{
    display: flex;
    align-items: center;
    gap: 4px;
    width: 160px;
    height: 22px;
}
body:is(.cheongju-console, .chuncheon-console) .manager-phone-field > input
{
    flex: 1 1 0;
    width: 0 !important;
    min-width: 0;
}
body:is(.cheongju-console, .chuncheon-console) #generalTable tr > td:nth-child(5) > .manager-phone-field
{
    width: 168px;
    margin-left: auto;
}
body:is(.cheongju-console, .chuncheon-console) .manager-phone-button
{
    flex: 0 0 24px;
    width: 24px;
    height: 22px;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--console-accent);
    cursor: pointer;
}
body:is(.cheongju-console, .chuncheon-console) .manager-driver-phone-cell .manager-phone-button
{
    flex-basis: 20px;
    width: 20px;
    height: 20px;
}
body:is(.cheongju-console, .chuncheon-console) .manager-phone-button i { font-size: 11px; pointer-events: none; }
body:is(.cheongju-console, .chuncheon-console) .manager-phone-button:disabled
{
    color: var(--theme-control-readonly-fg);
    opacity: .55;
    cursor: default;
}

/* Persistent navigation and work bands. */
body:is(.cheongju-console, .chuncheon-console) .main-header-bar
{
    color-scheme: dark;
    --theme-control-bg: var(--console-shell-hover);
    --theme-control-fg: var(--console-shell-fg);
    --theme-control-border: var(--console-shell-line);
    --theme-control-focus-border: #bfd3e1;
    --theme-button-bg: var(--console-shell-hover);
    --theme-button-bg-hover: var(--console-shell-active);
    --theme-button-bg-active: var(--console-nav-bg);
    --theme-button-border: var(--console-shell-line);
    --theme-button-fg: var(--console-shell-fg);
    --theme-label-fg: var(--console-shell-muted);
    --theme-info-fg: var(--console-shell-fg);
    --theme-select-option-bg: var(--console-shell-bg);
    --theme-select-option-fg: var(--console-shell-fg);
    --theme-select-option-bg-active: var(--console-shell-active);
    --theme-select-option-fg-active: var(--console-shell-fg);
    --theme-select-hover-bg: var(--console-shell-hover);
    --theme-select-focus-bg: var(--console-shell-hover);
}
body:is(.cheongju-console, .chuncheon-console) .main-header-bar :is(.ton, .toff)
{
    position: relative;
    color: var(--console-shell-muted) !important;
    background: transparent !important;
}
body:is(.cheongju-console, .chuncheon-console) .main-header-bar .ton
{
    background: var(--console-nav-bg) !important;
    color: var(--console-shell-fg) !important;
}

body:is(.cheongju-console, .chuncheon-console) .main-header-bar .toff:hover
{
    background: var(--console-shell-hover) !important;
    color: var(--console-shell-fg) !important;
}
body:is(.cheongju-console, .chuncheon-console) .main-header-bar label:has([name='themeMode']) { color: var(--console-shell-muted); }
body:is(.cheongju-console, .chuncheon-console) .main-header-bar :is(input[type='checkbox'], input[type='radio']) { accent-color: #b9d0e1; }
body:is(.cheongju-console, .chuncheon-console) .main-header-bar :is(button, select):focus-visible { outline-color: #bfd3e1; }
body:is(.cheongju-console, .chuncheon-console) .main-menu-bar
{
    --theme-menu-text-fg: var(--console-shell-muted);
    --theme-menu-text-fg-hover: var(--console-shell-fg);
    --theme-menu-text-fg-selected: var(--console-shell-fg);
    background: var(--console-nav-bg) !important;
    border-bottom-color: var(--console-shell-line) !important;
}
body:is(.cheongju-console, .chuncheon-console) .call-receive-bar { background: var(--console-toolbar) !important; }
body:is(.cheongju-console, .chuncheon-console) :is(#mapToolbar, .record-editor-header, .record-tree-header, .record-list-toolbar)
{
    background: var(--console-toolbar) !important;
    border-bottom: 1px solid var(--console-line);
}
body:is(.cheongju-console, .chuncheon-console) #mapToolbar { box-sizing: border-box; }
body:is(.cheongju-console, .chuncheon-console) .tabheader { background: var(--console-toolbar) !important; }
body:is(.cheongju-console, .chuncheon-console) .tabheader ul li.on { background: var(--console-surface) !important; }
body:is(.cheongju-console, .chuncheon-console) .env-section-title { background: var(--console-grid-header) !important; }
body:is(.cheongju-console, .chuncheon-console) .record-list-toolbar #searchBtn,
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar #searchBtn
{
    background: var(--console-primary);
    border-color: var(--console-primary);
    color: #fff;
}
body:is(.cheongju-console, .chuncheon-console) .record-list-toolbar #searchBtn:hover,
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar #searchBtn:hover { background: var(--console-primary-hover); }
body:is(.cheongju-console, .chuncheon-console) .tabulator-row .tabulator-cell { border-right-color: var(--console-grid-vertical) !important; }
body:is(.cheongju-console, .chuncheon-console) .tabulator .tabulator-header .tabulator-col { border-right-color: var(--console-line) !important; }
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar
{
    background: var(--console-toolbar);
    border-top: 1px solid var(--console-line);
    border-bottom: 1px solid var(--console-line);
    box-sizing: border-box;
    padding: 3px 0;
}
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar > div:first-child td { padding: 0 2px !important; }
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar .call-state-label
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-sizing: border-box;
    width: 52px;
    height: 22px;
    padding: 0 2px;
    margin: 0;
    border-radius: 3px;
    background: var(--console-status-bg);
    color: var(--console-status-fg);
    white-space: nowrap;
}
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar .call-state-label input { margin: 0; accent-color: #c4d6e3; }
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar .call-state-label-text { top: 1px; margin-left: 0; color: inherit; }
body:is(.cheongju-console, .chuncheon-console) .console-call-toolbar .call-state-count
{
    width: 52px;
    height: 22px;
    margin: 2px 0 0;
    padding: 3px 0;
    top: 0;
    border-radius: 3px;
    background: var(--console-surface) !important;
}

body:is(.cheongju-console, .chuncheon-console) div:has(> #searchBtn) { background: var(--console-toolbar); }
body:is(.cheongju-console, .chuncheon-console) #searchBtn:not(:disabled)
{
    background: var(--console-primary) !important;
    color: #fff !important;
    border-color: var(--console-primary) !important;
}
body:is(.cheongju-console, .chuncheon-console) #searchBtn:not(:disabled):hover { background: var(--console-primary-hover) !important; }

body:is(.cheongju-console, .chuncheon-console) select:is(:hover, :focus)
{
    background-color: var(--theme-control-bg) !important;
    color: var(--theme-control-fg) !important;
}
body:is(.cheongju-console, .chuncheon-console) select option
{
    background-color: var(--theme-select-option-bg) !important;
    color: var(--theme-select-option-fg) !important;
}
body:is(.cheongju-console, .chuncheon-console) select option:is(:checked, :hover, :focus)
{
    background-color: var(--theme-select-option-bg-active) !important;
    color: var(--theme-select-option-fg-active) !important;
}

body:is(.cheongju-console, .chuncheon-console) #etcList
{
    padding-top: 1px !important;
    background: var(--console-toolbar);
    border-bottom: 1px solid var(--console-line) !important;
}
body:is(.cheongju-console, .chuncheon-console) #etcList li
{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    box-sizing: border-box;
    padding: 0 !important;
    margin-bottom: -1px !important;
    border: 1px solid var(--console-line) !important;
    border-bottom-color: transparent !important;
    border-radius: 5px 5px 0 0 !important;
    box-shadow: none !important;
}
body:is(.cheongju-console, .chuncheon-console) #etcList li.on
{
    background: var(--console-surface) !important;
    border-bottom-color: var(--console-surface) !important;
    color: var(--console-accent) !important;
    box-shadow: none !important;
}
body:is(.cheongju-console, .chuncheon-console) .in-line-query
{
    display: grid;
    grid-template-columns: 86px 104px 78px minmax(0, 1fr) 56px 56px;
    gap: 3px;
    overflow: visible;
    padding-bottom: 5px !important;
    box-sizing: border-box;
}
body:is(.cheongju-console, .chuncheon-console) .in-line-query > :is(input, select, button)
{
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

body:is(.cheongju-console, .chuncheon-console) .in-line-query :is(#inLineNumSearchBtn, #inLineNumExcelBtn)
{
    width: 100% !important;
    min-width: 0 !important;
}

/* Interaction feedback keeps the same geometry in every theme. */
body:is(.cheongju-console, .chuncheon-console) :is(input, textarea)::placeholder
{
    color: var(--theme-label-fg) !important;
    opacity: 1 !important;
}

body:is(.cheongju-console, .chuncheon-console) :is(#regBtn, #modiBtn, #searchBtn, #openCallReceiveBtn):not(:disabled):active
{
    background: var(--console-primary-active) !important;
    color: #fff !important;
}

body:is(.cheongju-console, .chuncheon-console) :is(#regBtn, #modiBtn, #searchBtn, #openCallReceiveBtn):disabled,
body:is(.cheongju-console, .chuncheon-console) :is(button, input[type='button'], .rectBtn):disabled
{
    background: var(--theme-control-readonly-bg) !important;
    border-color: var(--theme-control-border) !important;
    color: var(--theme-control-readonly-fg) !important;
    box-shadow: none !important;
    opacity: 1;
    cursor: default;
}

body:is(.cheongju-console, .chuncheon-console) :is(input, select, textarea, button, .rectBtn, .menutext, .ton, .toff, .tabheader li):focus-visible,
body:is(.cheongju-console, .chuncheon-console) #etcList li:focus-visible
{
    outline: 2px solid var(--console-accent);
    outline-offset: 1px;
}

body:is(.cheongju-console, .chuncheon-console) :is(.main-header-bar, .main-menu-bar) :focus-visible
{
    outline-color: #bfd3e1;
}

body:is(.cheongju-console, .chuncheon-console) :is(.env-color-option, .env-distance-mode-option):has(input:focus-visible)
{
    outline: 2px solid var(--console-accent);
    outline-offset: 1px;
}

body:is(.cheongju-console, .chuncheon-console) .modal-box[data-type='success'] .modal-btn-confirm:not(:disabled)
{
    background: #287b4c;
    border-color: #236841;
}

body:is(.cheongju-console, .chuncheon-console) .modal-box[data-type='success'] .modal-btn-confirm:not(:disabled):hover
{
    background: #236841;
}

body:is(.cheongju-console, .chuncheon-console)::-webkit-scrollbar,
body:is(.cheongju-console, .chuncheon-console) ::-webkit-scrollbar
{
    background: var(--console-surface-soft);
}

body:is(.cheongju-console, .chuncheon-console)::-webkit-scrollbar-track,
body:is(.cheongju-console, .chuncheon-console) ::-webkit-scrollbar-track
{
    background: var(--console-surface-soft);
    box-shadow: none;
}

body:is(.cheongju-console, .chuncheon-console)::-webkit-scrollbar-thumb,
body:is(.cheongju-console, .chuncheon-console) ::-webkit-scrollbar-thumb
{
    background: var(--console-scroll-thumb);
    box-shadow: none;
}

body:is(.cheongju-console, .chuncheon-console)::-webkit-scrollbar-thumb:hover,
body:is(.cheongju-console, .chuncheon-console) ::-webkit-scrollbar-thumb:hover
{
    background: var(--console-scroll-thumb-hover);
}

body:is(.cheongju-console, .chuncheon-console)::-webkit-scrollbar-corner,
body:is(.cheongju-console, .chuncheon-console) ::-webkit-scrollbar-corner
{
    background: var(--console-surface-soft);
}

/* Bright keeps the classic palette. White inherits its contrast and state colors. */
body:is(.cheongju-console, .chuncheon-console).light:is(.bright, .white)
{
    --console-shell-bg: #f5f3ef;
    --console-nav-bg: linear-gradient(180deg, #3a4a68 0%, #2a3a58 100%);
    --console-shell-fg: #333333;
    --console-shell-muted: #555555;
    --console-shell-hover: #e8e4dc;
    --console-shell-active: #e0dcd4;
    --console-shell-line: #c0b8a8;
    --console-toolbar: #f0f0f0;
    --console-grid-header: #eeeeee;
    --console-grid-vertical: #e0e0e0;
    --console-status-bg: #e3ead2;
    --console-status-fg: #333333;
    --console-surface: #ffffff;
    --console-surface-soft: #f0ede8;
    --console-line: #d0d0d0;
    --console-muted: #555555;
    --console-accent: #4070a0;
    --console-selected: #cfe0f6;
    --console-hover: #e9f1fb;
    --console-primary: #45749f;
    --console-primary-hover: #4070a0;
    --console-primary-active: #345d85;
    --console-scroll-thumb: #a8a8a8;
    --console-scroll-thumb-hover: #888888;
    --console-row: #ffffff;
    --console-row-alt: #f9f9f9;
    --console-ink: #333333;

	color-scheme: light;
	--theme-grid-divider: #d0d0d0;
	--theme-calendar-muted: #687589;
	--theme-calendar-sunday: #b34a43;
	--theme-calendar-saturday: #3f6ea3;
	--theme-body-bg: #f5f3ef;
	--theme-body-fg: #333;

	--theme-control-bg: #fdfcfa;
	--theme-control-fg: #333;
	--theme-control-border: #c0b8a8;
	--theme-control-focus-border: #5b8fd0;
	--theme-control-focus-shadow: 0 0 0 2px rgba(47, 111, 191, 0.25);
	--theme-control-border-hover: #a39a88;
	--theme-control-readonly-bg: #f0ede8;
	--theme-control-readonly-fg: #777;

	--theme-button-bg: linear-gradient(180deg, #f8f6f2 0%, #e8e4dc 100%);
	--theme-button-border: #c0b8a8;
	--theme-button-fg: #444;
	--theme-button-bg-hover: linear-gradient(180deg, #fff 0%, #f0ece4 100%);
	--theme-button-border-hover: #a8a090;
	--theme-button-bg-active: #e0dcd4;
	--theme-button-shadow-active: inset 0 1px 2px rgba(0, 0, 0, 0.1);

	--theme-choice-accent: #5080b0;
	--theme-choice-accent-checked: #4070a0;

	--theme-label-fg: #555;
	--theme-link-fg: #666;
	--theme-link-hover-fg: #4a7a3a;

	--theme-info-fg: #333;

	--theme-menu-bar-bg: linear-gradient(180deg, #3a4a68 0%, #2a3a58 100%);
	--theme-menu-bar-border: #1a2a48;

	--theme-top-tab-on-bg: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
	--theme-top-tab-on-border: #4a4a4a;
	--theme-top-tab-on-border-bottom: #f6bd4f;
	--theme-top-tab-on-fg: #ffffff;
	--theme-top-tab-on-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);

	--theme-top-tab-off-bg: linear-gradient(180deg, #3a4a68 0%, #2a3a58 100%);
	--theme-top-tab-off-border: #4a5a78;
	--theme-top-tab-off-fg: #b8c8e0;
	--theme-top-tab-off-bg-hover: linear-gradient(180deg, #4a5a78 0%, #3a4a68 100%);
	--theme-top-tab-off-border-hover: #5a6a88;
	--theme-top-tab-off-fg-hover: #c8d8f8;

	--theme-call-receive-bar-bg: #f0f0f0;

	--theme-action-btn-fg: #ffffff;

	--theme-big-phone-bg: linear-gradient(180deg, #2a3a58 0%, #1a2a48 100%);
	--theme-big-phone-border: #3a4a68;
	--theme-big-phone-fg: #ffffff;

	--theme-search-bg: #fdfcfa;
	--theme-search-border: #c0b8a8;

	--theme-etc-tabheader-border: 2px solid #c0b8a8;
	--theme-etc-tab-bg: #e8e4dc;
	--theme-etc-tab-fg: #5f5a52;
	--theme-etc-tab-border: #c0b8a8;
	--theme-etc-tab-bg-hover: #f0ece4;
	--theme-etc-tab-fg-hover: #333;
	--theme-etc-tab-on-bg: #fdfcfa;
	--theme-etc-tab-on-fg: #333;
	--theme-etc-tab-on-border: #c0b8a8;

	--theme-counter-bg: #e3ead2;
	--theme-counter-border: #b0bb96;
	--theme-counter-fg: #333;

	--theme-panel-bg: #ffffff;
	--theme-panel-border: #d0d0d0;
	--theme-panel-header-bg: #edf0f3;
	--theme-panel-header-fg: #333333;
	--theme-divider: #c7ced6;
	--theme-divider-strong: #9aa8b6;
	--theme-danger-fg: #c63b3b;

	--theme-accent: #2f6fbf;
	--theme-accent-fg: #ffffff;
	--theme-focus-ring: #2f6fbf;
	--theme-row-selected-accent: #2f6fbf;
	--theme-menu-item-hover-bg: #e4edf8;
	--theme-menu-item-hover-fg: #1d2b3a;
	--theme-popup-shadow: 0 8px 24px rgba(40, 45, 60, 0.18);
	--theme-tab-accent: #3a4a68;
	--theme-scroll-track: #eceae5;
	--theme-scroll-thumb: #b5afa3;
	--theme-scroll-thumb-hover: #948d7f;

	--theme-tabulator-bg: #ffffff;
	--theme-tabulator-border: #d0d0d0;
	--theme-tabulator-fg: #333333;
	--theme-tabulator-header-bg: #eeeeee;
	--theme-tabulator-header-fg: #000000;
	--theme-tabulator-header-border: #d0d0d0;
	--theme-tabulator-col-border: #d0d0d0;
	--theme-tabulator-row-bg: #ffffff;
	--theme-tabulator-row-bg-odd: #f9f9f9;
	--theme-tabulator-row-bg-hover: #e9f1fb;
	--theme-tabulator-row-border: #e0e0e0;
	--theme-tabulator-row-fg: #333333;
	--theme-tabulator-row-bg-selected: #cfe0f6;
	--theme-tabulator-row-fg-selected: #000;
	--theme-tabulator-footer-bg: #eeeeee;
	--theme-tabulator-footer-border: #d0d0d0;

	--theme-call-result-fg: #333333;

	--theme-bizcall-row-even-bg: #fbfaf8;
	--theme-bizcall-row-odd-bg: #f0eeea;
	--theme-bizcall-row-hover-bg: #e2edfa;
	--theme-bizcall-cell-fg: #333333;
	--theme-bizcall-cell-border: #d0d0d0;
	--theme-bizcall-th-bg: linear-gradient(180deg, #eeeeee 0%, #e0e0e0 100%);
	--theme-bizcall-th-fg: #333333;
	--theme-bizcall-th-border: #c0c0c0;
	--theme-bizcall-table-border-top: 2px solid #888;
	--theme-bizcall-table-border-bottom: 1px solid #888;

	--theme-call-subbtn-bg: #ffffff;
	--theme-call-subbtn-border: #808080;
	--theme-call-subbtn-fg: #000000;
	--theme-call-subbtn-hover-bg: #dce4ed;
	--theme-call-subbtn-hover-border: #808080;
	--theme-call-subbtn-hover-fg: #000000;
	--theme-call-subbtn-active-bg: #ffffff;
	--theme-call-subbtn-active-border: #ff0000;
	--theme-call-subbtn-active-fg: #ff0000;
}

body:is(.cheongju-console, .chuncheon-console):is(.bright, .white) .main-header-bar
{
    color-scheme: light;
    --theme-control-bg: inherit;
    --theme-control-fg: inherit;
    --theme-control-border: inherit;
    --theme-control-focus-border: inherit;
    --theme-button-bg: inherit;
    --theme-button-bg-hover: inherit;
    --theme-button-bg-active: inherit;
    --theme-button-border: inherit;
    --theme-button-fg: inherit;
    --theme-label-fg: inherit;
    --theme-info-fg: inherit;
    --theme-select-option-bg: inherit;
    --theme-select-option-fg: inherit;
    --theme-select-option-bg-active: inherit;
    --theme-select-option-fg-active: inherit;
    --theme-select-hover-bg: inherit;
    --theme-select-focus-bg: inherit;
}

body:is(.cheongju-console, .chuncheon-console):is(.bright, .white) .main-header-bar :is(input[type='checkbox'], input[type='radio'])
{
    accent-color: var(--theme-choice-accent);
}
body:is(.cheongju-console, .chuncheon-console):is(.bright, .white) .main-header-bar :is(button, select):focus-visible
{
    outline-color: var(--theme-control-focus-border);
}
body:is(.cheongju-console, .chuncheon-console):is(.bright, .white) .main-header-bar .ton
{
    background: var(--theme-top-tab-on-bg) !important;
    color: var(--theme-top-tab-on-fg) !important;
}
body:is(.cheongju-console, .chuncheon-console):is(.bright, .white) .main-header-bar .toff
{
    background: var(--theme-top-tab-off-bg) !important;
    color: var(--theme-top-tab-off-fg) !important;
}
body:is(.cheongju-console, .chuncheon-console):is(.bright, .white) .main-header-bar .toff:hover
{
    background: var(--theme-top-tab-off-bg-hover) !important;
    color: var(--theme-top-tab-off-fg-hover) !important;
}
body:is(.cheongju-console, .chuncheon-console).bright .main-menu-bar
{
    --console-shell-muted: #b8c8e0;
    --console-shell-fg: #ffffff;
    --console-shell-hover: #4a5a78;
    --console-shell-active: #3a4a68;
    --console-shell-line: #5a6a88;
}

body:is(.cheongju-console, .chuncheon-console).light.white
{
    --console-shell-bg: #fff;
    --console-nav-bg: #fff;
    --console-shell-hover: #e9f1fb;
    --console-shell-active: #cfe0f6;
    --console-shell-line: #d0d0d0;
    --console-toolbar: #fff;
    --console-grid-header: #fff;
    --console-status-bg: #fff;
    --console-surface-soft: #fff;
    --theme-body-bg: #fff;
    --theme-control-bg: #fff;
    --theme-control-readonly-bg: #fff;
    --theme-control-border: #d0d0d0;
    --theme-button-bg: #fff;
    --theme-button-bg-hover: #e9f1fb;
    --theme-button-bg-active: #cfe0f6;
    --theme-button-border: #d0d0d0;
    --theme-menu-bar-bg: #fff;
    --theme-menu-bar-border: #d0d0d0;
    --theme-top-tab-on-bg: #e9f1fb;
    --theme-top-tab-on-border: #c7ced6;
    --theme-top-tab-on-border-bottom: #4070a0;
    --theme-top-tab-on-fg: #1d2b3a;
    --theme-top-tab-off-bg: #fff;
    --theme-top-tab-off-border: #d0d0d0;
    --theme-top-tab-off-fg: #555;
    --theme-top-tab-off-bg-hover: #e9f1fb;
    --theme-top-tab-off-border-hover: #c7ced6;
    --theme-top-tab-off-fg-hover: #1d2b3a;
    --theme-call-receive-bar-bg: #fff;
    --theme-big-phone-bg: #fff;
    --theme-big-phone-border: #d0d0d0;
    --theme-big-phone-fg: #182a38;
    --theme-search-bg: #fff;
    --theme-search-border: #d0d0d0;
    --theme-etc-tabheader-border: 1px solid #d0d0d0;
    --theme-etc-tab-bg: #fff;
    --theme-etc-tab-bg-hover: #e9f1fb;
    --theme-etc-tab-on-bg: #fff;
    --theme-counter-bg: #fff;
    --theme-counter-border: #d0d0d0;
    --theme-panel-header-bg: #fff;
    --theme-scroll-track: #fff;
    --theme-tabulator-header-bg: #fff;
    --theme-tabulator-footer-bg: #fff;
    --theme-bizcall-row-even-bg: #fff;
    --theme-bizcall-th-bg: #fff;
}
