/* ============================================
   AINTEL Theme CSS
   - To change the palette globally, edit only the "Theme Tokens" blocks.
   ============================================ */

/* =========================
   Theme Tokens
   ========================= */

/* Dark (default) */
body {
	color-scheme: dark;
	--theme-body-bg: #2d2d2d;
	--theme-grid-divider: #4b5058;
	--theme-calendar-muted: #abb4c3;
	--theme-calendar-sunday: #ff9389;
	--theme-calendar-saturday: #8fbafa;
	--theme-body-fg: #e0e0e0;
	--theme-cancel-confirmed-fg: var(--theme-bizcall-cell-fg, #e0e0e0);

	--theme-control-bg: #3a3a3a;
	--theme-control-fg: #e0e0e0;
	--theme-control-border: #555;
	--theme-control-focus-border: #6a9fd5;
	--theme-control-focus-shadow: 0 0 0 2px rgba(106, 159, 213, 0.35);
	--theme-control-border-hover: #707070;
	--theme-control-readonly-bg: #333;
	--theme-control-readonly-fg: #999;

	--theme-button-bg: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
	--theme-button-border: #555;
	--theme-button-fg: #ffffff;
	--theme-button-bg-hover: linear-gradient(180deg, #555 0%, #454545 100%);
	--theme-button-border-hover: #666;
	--theme-button-bg-active: #383838;
	--theme-button-shadow-active: inset 0 1px 2px rgba(0, 0, 0, 0.3);

	--theme-choice-accent: #4a7090;
	--theme-choice-accent-checked: #5a80a0;

	--theme-label-fg: #d0d0d0;
	--theme-link-fg: #ccc;
	--theme-link-hover-fg: #8bc34a;

	--theme-info-fg: #e0e0e0;

	--theme-menu-bar-bg: linear-gradient(180deg, #4a5662 0%, #3a4550 100%);
	--theme-menu-bar-border: #2a3540;

	--theme-top-tab-on-bg: linear-gradient(180deg, #5a6878 0%, #4a5868 100%);
	--theme-top-tab-on-border: #6a7888;
	--theme-top-tab-on-border-bottom: #7a9abb;
	--theme-top-tab-on-fg: #e8f0f8;
	--theme-top-tab-on-shadow: 0 -2px 4px rgba(122, 154, 187, 0.15);

	--theme-top-tab-off-bg: linear-gradient(180deg, #3a4550 0%, #2d3640 100%);
	--theme-top-tab-off-border: #4a5560;
	--theme-top-tab-off-fg: #b8c8d8;
	--theme-top-tab-off-bg-hover: linear-gradient(180deg, #4a5662 0%, #3a4550 100%);
	--theme-top-tab-off-border-hover: #5a6672;
	--theme-top-tab-off-fg-hover: #c8d8e8;

	--theme-call-receive-bar-bg: #2d2d2d;

	--theme-menu-text-fg: #b8c8d8;
	--theme-menu-text-fg-hover: #e8f0ff;
	--theme-menu-text-fg-selected: #ffffff;

	--theme-action-btn-bg: linear-gradient(180deg, #3a4a5a 0%, #2d3a48 100%);
	--theme-action-btn-border: #4a5a6a;
	--theme-action-btn-fg: #b8c8d8;
	--theme-action-btn-bg-hover: linear-gradient(180deg, #455565 0%, #384552 100%);

	--theme-big-phone-bg: linear-gradient(180deg, #3a4555 0%, #2a3545 100%);
	--theme-big-phone-border: #4a5565;
	--theme-big-phone-fg: inherit;

	--theme-search-bg: #3a3a3a;
	--theme-search-border: #555;

	--theme-etc-tabheader-border: 1px solid #555;
	--theme-etc-tab-bg: #454545;
	--theme-etc-tab-fg: #c3ccd6;
	--theme-etc-tab-border: #333;
	--theme-etc-tab-bg-hover: #3a3a3a;
	--theme-etc-tab-fg-hover: #ccc;
	--theme-etc-tab-on-bg: #555;
	--theme-etc-tab-on-fg: #fff;
	--theme-etc-tab-on-border: #555;

	--theme-counter-bg: #404040;
	--theme-counter-border: #555;
	--theme-counter-fg: #e0e0e0;

	--theme-panel-bg: #30343c;
	--theme-panel-border: #4b5563;
	--theme-panel-header-bg: #3f4754;
	--theme-panel-header-fg: #e7edf6;
	--theme-divider: #596475;
	--theme-divider-strong: #7c8797;
	--theme-danger-fg: #ff6b6b;

	--theme-accent: #3f7fd0;
	--theme-accent-fg: #ffffff;
	--theme-focus-ring: #8ab8ee;
	--theme-row-selected-accent: #7fb2f5;
	--theme-menu-item-hover-bg: #474d57;
	--theme-menu-item-hover-fg: #ffffff;
	--theme-popup-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	--theme-tab-accent: #7a9abb;
	--theme-scroll-track: #33363b;
	--theme-scroll-thumb: #62676f;
	--theme-scroll-thumb-hover: #858b95;

	/* Tabulator */
	--theme-tabulator-bg: #1e222d;
	--theme-tabulator-border: #2a2f3e;
	--theme-tabulator-fg: #d1d5db;
	--theme-tabulator-header-bg: #252a37;
	--theme-tabulator-header-fg: #b9c0cb;
	--theme-tabulator-header-border: #222;
	--theme-tabulator-col-border: #222;
	--theme-tabulator-row-bg: #454545;
	--theme-tabulator-row-bg-odd: #555555;
	--theme-tabulator-row-bg-hover: #5a6472;
	--theme-tabulator-row-border: #222;
	--theme-tabulator-row-fg: #e0e0e0;
	--theme-tabulator-row-bg-selected: rgba(59, 130, 246, 0.4);
	--theme-tabulator-row-fg-selected: #fff;
	--theme-tabulator-footer-bg: transparent;
	--theme-tabulator-footer-border: transparent;

	/* Select (dark/black only) */
	--theme-select-option-bg: #3a3a3a;
	--theme-select-option-fg: #e0e0e0;
	--theme-select-option-bg-active: #333333;
	--theme-select-option-fg-active: #fff;
	--theme-select-hover-bg: #333333;
	--theme-select-hover-border: #777;
	--theme-select-focus-bg: #3a3a3a;
	--theme-select-focus-border: #6a9fd5;
	--theme-select-focus-shadow: 0 0 0 2px rgba(106, 159, 213, 0.3);

	/* callReceive */
	--theme-call-result-fg: #ffffff;

	/* bizCall zebra table */
	--theme-bizcall-row-even-bg: #3a3a3a;
	--theme-bizcall-row-odd-bg: #454545;
	--theme-bizcall-row-hover-bg: #4f5863;
	--theme-bizcall-cell-fg: #e0e0e0;
	--theme-bizcall-cell-border: #333;
	--theme-bizcall-th-bg: linear-gradient(180deg, #252a37 0%, #1e222d 100%);
	--theme-bizcall-th-fg: #b9c0cb;
	--theme-bizcall-th-border: #222;
	--theme-bizcall-table-border-top: none;
	--theme-bizcall-table-border-bottom: none;

	--theme-call-subbtn-bg: var(--theme-button-bg);
	--theme-call-subbtn-border: var(--theme-button-border);
	--theme-call-subbtn-fg: var(--theme-button-fg);
	--theme-call-subbtn-hover-bg: var(--theme-button-bg-hover);
	--theme-call-subbtn-hover-border: var(--theme-button-border);
	--theme-call-subbtn-hover-fg: var(--theme-button-fg);
	--theme-call-subbtn-active-bg: var(--theme-button-bg);
	--theme-call-subbtn-active-border: #ff7a7a;
	--theme-call-subbtn-active-fg: #ff7a7a;

	background: var(--theme-body-bg) !important;
	color: var(--theme-body-fg);
}

body:not(.light, .black) {
	--theme-control-bg: #4b525d;
	--theme-control-border: #a2adbb;
	--theme-control-border-hover: #b2bdcb;
	--theme-control-readonly-bg: #414955;
	--theme-control-readonly-fg: #b6c0cd;
	--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-row-bg: #353a42;
	--theme-tabulator-row-bg-odd: #4e5662;
	--theme-bizcall-row-even-bg: var(--theme-tabulator-row-bg);
	--theme-bizcall-row-odd-bg: var(--theme-tabulator-row-bg-odd);
}

/* Light */
body.light {
	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-cancel-confirmed-fg: #000000;

	--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;
}

/* White */
body.light.white {
	--theme-body-bg: #fff;
	--theme-control-bg: #fff;
	--theme-control-readonly-bg: #fff;
	--theme-button-bg: #fff;
	--theme-button-bg-hover: #e9f1fb;
	--theme-button-bg-active: #cfe0f6;
	--theme-menu-bar-bg: #fff;
	--theme-menu-bar-border: #d0d0d0;
	--theme-menu-text-fg: #555;
	--theme-menu-text-fg-hover: #2f6fbf;
	--theme-menu-text-fg-selected: #1d2b3a;
	--theme-top-tab-on-bg: #e9f1fb;
	--theme-top-tab-on-border: #c7ced6;
	--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-etc-tab-bg: #fff;
	--theme-etc-tab-bg-hover: #e9f1fb;
	--theme-etc-tab-on-bg: #fff;
	--theme-counter-bg: #fff;
	--theme-panel-header-bg: #fff;
	--theme-scroll-track: #fff;
	--theme-tabulator-header-bg: #fff;
	--theme-table-row-bg: var(--theme-tabulator-row-bg-odd);
	--theme-table-row-even-bg: var(--theme-tabulator-row-bg);
	--theme-tabulator-footer-bg: #fff;
	--theme-bizcall-row-even-bg: #fff;
	--theme-bizcall-th-bg: #fff;
	--theme-select-option-bg: #fff;
	--theme-select-option-fg: #333;
	--theme-select-option-bg-active: #e9f1fb;
	--theme-select-option-fg-active: #1d2b3a;
	--theme-select-hover-bg: #fff;
	--theme-select-focus-bg: #fff;
}

body.light.white .login-container {
	--login-glow: transparent;
	--login-glow-soft: transparent;
}

/* Black (dark + pure black background) */
body.black {
	--theme-body-bg: #000000;
	--theme-grid-divider: #515c68;
	--theme-control-bg: #484f5a;
	--theme-control-border: #9caab9;
	--theme-control-border-hover: #aebccc;
	--theme-control-readonly-bg: #3c434e;
	--theme-control-readonly-fg: #b6c0cd;
	--theme-button-bg: #373f4a;
	--theme-button-bg-hover: #43515f;
	--theme-button-border: #667586;
	--theme-menu-bar-bg: #303946;
	--theme-menu-bar-border: #516071;
	--theme-call-receive-bar-bg: var(--theme-panel-header-bg);
	--theme-search-bg: var(--theme-control-bg);
	--theme-search-border: var(--theme-control-border);

	--theme-tabulator-bg: var(--theme-panel-bg);
	--theme-tabulator-border: #46515e;
	--theme-tabulator-fg: #f0f0f0;
	--theme-tabulator-header-bg: var(--theme-panel-header-bg);
	--theme-tabulator-header-fg: #fff;
	--theme-tabulator-header-border: #526071;
	--theme-tabulator-col-border: #526071;
	--theme-tabulator-row-bg: #22272f;
	--theme-tabulator-row-bg-odd: #3a4350;
	--theme-tabulator-row-bg-hover: #435263;
	--theme-tabulator-row-border: #46515e;
	--theme-tabulator-row-fg: #f0f0f0;
	--theme-tabulator-row-bg-selected: #2d5b8a;
	--theme-tabulator-row-fg-selected: #f8fbff;
	--theme-tabulator-footer-bg: var(--theme-panel-header-bg);
	--theme-tabulator-footer-border: #526071;

	--theme-panel-bg: #262b33;
	--theme-panel-border: #46515e;
	--theme-panel-header-bg: #3c4652;
	--theme-panel-header-fg: #f5f5f5;
	--theme-divider: #46515e;
	--theme-divider-strong: #667586;
	--theme-danger-fg: #ff7a7a;

	--theme-menu-item-hover-bg: #435263;
	--theme-popup-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
	--theme-scroll-track: #2e3540;
	--theme-scroll-thumb: #77889b;
	--theme-scroll-thumb-hover: #91a2b6;

	--theme-select-option-bg: var(--theme-panel-bg);
	--theme-select-hover-bg: var(--theme-control-bg);
	--theme-select-hover-border: var(--theme-control-border-hover);
	--theme-select-focus-bg: var(--theme-control-bg);

	--theme-bizcall-cell-border: var(--theme-tabulator-row-border);
	--theme-bizcall-row-even-bg: var(--theme-tabulator-row-bg);
	--theme-bizcall-row-odd-bg: var(--theme-tabulator-row-bg-odd);
	--theme-bizcall-row-hover-bg: var(--theme-tabulator-row-bg-hover);
	--theme-bizcall-th-bg: var(--theme-tabulator-header-bg);
	--theme-bizcall-th-fg: #ffffff;
	--theme-bizcall-th-border: var(--theme-tabulator-header-border);
	--theme-bizcall-table-border-top: 2px solid var(--theme-panel-border);
	--theme-bizcall-table-border-bottom: 1px solid var(--theme-panel-border);

	--theme-call-subbtn-active-border: #ff8d8d;
	--theme-call-subbtn-active-fg: #ff8d8d;
}

/* =========================
   Component Styles
   ========================= */

input[type="text"], input[type="tel"], input[type="password"] {
	border: 1px solid var(--theme-control-border);
	border-radius: 4px;
	padding: 0 6px;
	font-size: 12px;
	background: var(--theme-control-bg);
	color: var(--theme-control-fg);
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="password"]:focus {
	border-color: var(--theme-control-focus-border);
	box-shadow: var(--theme-control-focus-shadow);
}

input[name="searchStr"],
#searchStr {
	background: var(--theme-control-bg) !important;
	color: var(--theme-control-fg) !important;
	border-color: var(--theme-control-border) !important;
	caret-color: var(--theme-control-fg) !important;
}

input[name="searchStr"]:focus,
#searchStr:focus {
	border-color: var(--theme-control-focus-border) !important;
	box-shadow: var(--theme-control-focus-shadow) !important;
}

input[name="searchStr"]::placeholder,
#searchStr::placeholder {
	color: var(--theme-label-fg) !important;
	opacity: 0.85;
}

input[id$="DatePicker"] {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 1px !important;
	padding-right: 1px !important;
	text-indent: 0 !important;
	letter-spacing: 0 !important;
}

input[readonly] {
	background: var(--theme-control-readonly-bg);
	color: var(--theme-control-readonly-fg);
}

select {
	border: 1px solid var(--theme-control-border);
	border-radius: 4px;
	padding: 0 2px;
	line-height: normal;
	flex-shrink: 0;
	font-size: 12px;
	background: var(--theme-control-bg);
	color: var(--theme-control-fg);
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
}

select:focus {
	border-color: var(--theme-control-focus-border);
}

.record-management-page {
	display: grid;
	grid-template-columns: 500px 198px minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 4px;
	padding: 0 4px 4px 0 !important;
	box-sizing: border-box;
	min-height: 0;
}

.record-editor-pane {
	display: contents;
	min-height: 0;
}

.tabheader.record-editor-header {
	grid-row: 1;
	grid-column: 1;
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end;
	align-content: flex-end;
	justify-content: flex-end;
	gap: 4px;
	padding: 2px 18px;
	margin: 0 !important;
	min-height: 32px;
}

.record-editor-header > ul {
	display: flex !important;
	align-items: stretch !important;
	gap: 4px;
	height: 26px !important;
	width: auto !important;
	margin: 0 auto 0 0 !important;
	flex: 0 0 auto;
}

.record-editor-header > ul > li {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	float: none;
	width: auto !important;
	min-width: 60px;
	height: 26px !important;
	padding: 0 6px !important;
	margin: 0 !important;
	white-space: nowrap;
}

.record-editor-header > select {
	position: static !important;
	width: auto !important;
	height: 24px !important;
	margin: 0 !important;
	flex: 0 0 auto;
}

.record-editor-pane > [data-name='driverTab'],
.record-editor-pane > [data-name='managerTab'] {
	grid-row: 2;
	grid-column: 1;
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	width: 100% !important;
	height: 100%;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
	border: 1px solid var(--theme-panel-border);
	border-radius: 4px;
}

.record-tree-heading {
	grid-row: 1;
	grid-column: 2;
	display: flex;
	align-items: center;
	padding: 2px 4px;
	min-height: 32px;
	border-bottom: var(--theme-etc-tabheader-border);
}

.record-list-toolbar {
	grid-row: 1;
	grid-column: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	justify-content: flex-start;
	gap: 2px 0;
	min-width: 0;
	min-height: 32px;
	padding: 2px 4px;
	border-bottom: var(--theme-etc-tabheader-border);
}

.record-list-toolbar input,
.record-list-toolbar select,
.record-list-toolbar button {
	height: 24px !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	flex-shrink: 0;
}

.record-list-filters {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-right: 6px;
	flex: 0 0 auto;
}

.record-list-filters > select {
	position: static !important;
	width: auto !important;
	margin: 0 !important;
}

.record-list-toolbar > p,
.record-list-toolbar > span {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	white-space: nowrap;
}

.record-tree-pane,
.record-list-pane {
	grid-row: 2;
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: auto;
}

.record-tree-pane {
	grid-column: 2;
	padding: 4px !important;
}

.record-list-pane {
	grid-column: 3;
}

.tree span {
	white-space: nowrap;
	line-height: 1.3 !important;
}

textarea {
	border: 1px solid var(--theme-control-border);
	border-radius: 4px;
	padding: 6px 8px;
	font-size: 12px;
	background: var(--theme-control-bg);
	color: var(--theme-control-fg);
	resize: none;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
	border-color: var(--theme-control-focus-border);
	box-shadow: var(--theme-control-focus-shadow);
}

textarea:hover,
textarea:focus {
	background: var(--theme-control-bg);
	color: var(--theme-control-fg);
}

.rectBtn, .rectDiv {
	background: var(--theme-button-bg);
	border: 1px solid var(--theme-button-border);
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	color: var(--theme-button-fg);
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.rectBtn:hover {
	background: var(--theme-button-bg-hover);
	border-color: var(--theme-button-border-hover);
	color: var(--theme-button-fg);
}

.rectBtn:active {
	background: var(--theme-button-bg-active);
	border-color: var(--theme-button-border-hover);
	color: var(--theme-button-fg);
	box-shadow: var(--theme-button-shadow-active);
}

.rectBtn:focus-visible {
	outline: 2px solid var(--theme-focus-ring);
	outline-offset: 1px;
}

.rectBtn:disabled {
	background: var(--theme-control-readonly-bg);
	border-color: var(--theme-control-border);
	color: var(--theme-control-readonly-fg);
	box-shadow: none;
	cursor: default;
}

.app-calendar-panel {
	background: var(--theme-panel-bg);
	border-color: var(--theme-control-border);
}

.app-calendar-title {
	color: var(--theme-body-fg);
}

.app-calendar-trigger,
.app-calendar-nav,
.app-calendar-day {
	background: var(--theme-control-bg);
	color: var(--theme-control-fg);
}

.app-calendar-trigger,
.app-calendar-nav {
	border-color: var(--theme-control-border);
}

.app-calendar-trigger:hover,
.app-calendar-nav:hover,
.app-calendar-day:hover {
	background: var(--theme-bizcall-row-hover-bg);
	border-color: var(--theme-control-focus-border);
}

.app-calendar-weekday,
.app-calendar-day.is-other-month {
	color: var(--theme-calendar-muted);
}

.app-calendar-weekday.is-sunday,
.app-calendar-day.is-sunday {
	color: var(--theme-calendar-sunday);
}

.app-calendar-weekday.is-saturday,
.app-calendar-day.is-saturday {
	color: var(--theme-calendar-saturday);
}

.app-calendar-day.is-selected {
	background: var(--theme-accent);
	border-color: var(--theme-accent);
	color: var(--theme-accent-fg);
}

.app-calendar-day:focus-visible,
.app-calendar-nav:focus-visible,
.app-calendar-trigger:focus-visible {
	outline: 2px solid var(--theme-focus-ring);
	outline-offset: 1px;
}

.rectBtnOn {
	background: var(--theme-tabulator-row-bg-selected) !important;
	border-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.rectBtnOn:hover,
.rectBtnOn:active {
	background: var(--theme-tabulator-row-bg-selected) !important;
	border-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

.page-panel {
	background: var(--theme-panel-bg) !important;
	border: 1px solid var(--theme-panel-border) !important;
	border-radius: 4px !important;
	color: var(--theme-body-fg) !important;
}

.page-sidebar {
	background: var(--theme-panel-bg) !important;
	border: 1px solid var(--theme-panel-border) !important;
	border-radius: 4px !important;
	color: var(--theme-body-fg) !important;
}

.page-toolbar {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 4px !important;
	color: var(--theme-body-fg) !important;
}

.page-form-table td {
	color: var(--theme-body-fg) !important;
}

.page-form-label-cell {
	background: var(--theme-panel-header-bg) !important;
	color: var(--theme-panel-header-fg) !important;
}

.page-divider-cell {
	background: var(--theme-divider) !important;
}

.page-strong-divider {
	background: var(--theme-divider-strong) !important;
}

.page-danger-text {
	color: var(--theme-danger-fg) !important;
}

.env-section-title {
	background: var(--theme-panel-header-bg) !important;
	color: var(--theme-panel-header-fg) !important;
	border: 1px solid var(--theme-panel-border) !important;
	border-radius: 4px !important;
	box-sizing: border-box;
}

.env-section-title p,
.env-section-title label,
.env-section-title span,
.env-section-title div {
	color: inherit !important;
}

.env-section-box {
	background: var(--theme-panel-bg) !important;
	color: var(--theme-body-fg) !important;
	border: 1px solid var(--theme-panel-border) !important;
	border-radius: 4px !important;
	box-sizing: border-box;
}

.env-section-box p,
.env-section-box label,
.env-section-box div {
	color: inherit !important;
}

.env-subtitle {
	color: var(--theme-panel-header-fg) !important;
}

.grid-shell {
	background: var(--theme-tabulator-bg) !important;
	border: 1px solid var(--theme-tabulator-border) !important;
	border-radius: 4px !important;
}

.grid-shell .tabulator {
	border: none !important;
}

input[type="checkbox"], input[type="radio"] {
	accent-color: var(--theme-choice-accent);
	cursor: pointer;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
	accent-color: var(--theme-choice-accent-checked);
}

label {
	color: var(--theme-label-fg);
}

a { color: var(--theme-link-fg); }
a:hover { color: var(--theme-link-hover-fg); }

#infoDate, #infoTime {
	color: var(--theme-info-fg);
}

.main-menu-bar {
	background: var(--theme-menu-bar-bg) !important;
	border-bottom: 1px solid var(--theme-menu-bar-border) !important;
}

.ton {
	background: var(--theme-top-tab-on-bg) !important;
	border: 1px solid var(--theme-top-tab-on-border) !important;
	border-bottom: 2px solid var(--theme-top-tab-on-border-bottom) !important;
	border-radius: 4px 4px 0 0 !important;
	color: var(--theme-top-tab-on-fg) !important;
	box-shadow: var(--theme-top-tab-on-shadow) !important;
}

body.light .main-header-bar .ton {
	position: relative;
	z-index: 1;
	border-bottom-width: 3px !important;
}

.toff {
	background: var(--theme-top-tab-off-bg) !important;
	border: 1px solid var(--theme-top-tab-off-border) !important;
	border-bottom: none !important;
	border-radius: 4px 4px 0 0 !important;
	color: var(--theme-top-tab-off-fg) !important;
}

.toff:hover {
	background: var(--theme-top-tab-off-bg-hover) !important;
	border-color: var(--theme-top-tab-off-border-hover) !important;
	color: var(--theme-top-tab-off-fg-hover) !important;
}

.call-receive-bar {
	background: var(--theme-call-receive-bar-bg) !important;
}

#callReceiveDiv {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}

#callReceiveDiv > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1;
	padding: 0 8px !important;
}

.menutext {
	color: var(--theme-menu-text-fg);
	border: none !important;
	font-weight: normal;
}

.menutext:hover,
.menutext:active {
	color: var(--theme-menu-text-fg-hover) !important;
	border: none !important;
}

.menutext-sel {
	color: var(--theme-menu-text-fg-selected) !important;
	border: none !important;
	font-weight: normal !important;
}

#regBtn, #modiBtn {
	background: var(--theme-action-btn-bg) !important;
	border-color: var(--theme-action-btn-border) !important;
	color: var(--theme-action-btn-fg) !important;
	font-weight: 500;
}

#regBtn:hover, #modiBtn:hover {
	background: var(--theme-action-btn-bg-hover) !important;
}

#bigPhoneNum {
	background: var(--theme-big-phone-bg) !important;
	border: 1px solid var(--theme-big-phone-border);
	border-radius: 4px;
	color: var(--theme-big-phone-fg);
	font-family: Impact, 'Arial Black', sans-serif !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 26px !important;
	letter-spacing: 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	padding: 0 4px !important;
	box-sizing: border-box !important;
}

#searchLocaDiv {
	background: var(--theme-search-bg) !important;
	border-color: var(--theme-search-border) !important;
	color: var(--theme-body-fg) !important;
	border-width: 1px !important;
	border-radius: 6px !important;
	box-shadow: var(--theme-popup-shadow) !important;
}

#searchLocaDiv > div:first-child {
	background: var(--theme-panel-header-bg) !important;
	border-bottom-color: var(--theme-divider) !important;
	color: var(--theme-panel-header-fg) !important;
}

#searchLocaDiv > div:first-child p {
	color: inherit !important;
}

#searchLocaResultDiv {
	background: var(--theme-panel-bg) !important;
	color: var(--theme-body-fg) !important;
}

	#searchLocaResultDiv p[name='searchLocaRow'],
	#searchLocaResultDiv .search-loca-row {
		background: var(--theme-panel-bg) !important;
		color: var(--theme-body-fg) !important;
		border-bottom-color: var(--theme-divider) !important;
		font-weight: 400 !important;
	}

	#searchLocaResultDiv .search-loca-poi,
	#searchLocaResultDiv .search-loca-address-line,
	#searchLocaResultDiv .search-loca-address,
	#searchLocaResultDiv .search-loca-separator {
		font-weight: 400 !important;
	}

	#searchLocaResultDiv .search-loca-poi {
		color: var(--theme-body-fg) !important;
	}

	#searchLocaResultDiv .search-loca-address-line {
		color: var(--theme-label-fg) !important;
	}

	#searchLocaResultDiv p[name='searchLocaRow'] a.search-loca-address,
	#searchLocaResultDiv .search-loca-row a.search-loca-address {
		display: inline !important;
		color: var(--theme-label-fg) !important;
	}

	#searchLocaResultDiv p[name='searchLocaRow'] a.search-loca-road,
	#searchLocaResultDiv .search-loca-row a.search-loca-road {
		color: var(--theme-body-fg) !important;
	}

	#searchLocaResultDiv .search-loca-separator {
		display: inline !important;
		color: var(--theme-divider-strong) !important;
	}

#searchLocaResultDiv .loca {
	background: var(--theme-panel-bg) !important;
	color: var(--theme-body-fg) !important;
	border-bottom: 1px solid var(--theme-divider) !important;
	padding: 6px 8px !important;
	cursor: pointer;
}

#searchLocaResultDiv .loca strong {
	color: var(--theme-body-fg) !important;
	font-weight: 400 !important;
}

#searchLocaResultDiv .loca small {
	color: var(--theme-label-fg) !important;
}

#searchLocaResultDiv .loca:hover {
	background: var(--theme-tabulator-row-bg-hover) !important;
}

	#searchLocaResultDiv p[name='searchLocaRow'] a,
	#searchLocaResultDiv .search-loca-row a {
		color: inherit !important;
		display: inline !important;
	}

#searchLocaResultDiv p[name='searchLocaRow']:hover,
#searchLocaResultDiv .search-loca-row:hover {
	background: var(--theme-tabulator-row-bg-hover) !important;
	color: var(--theme-tabulator-row-fg) !important;
}

#searchLocaResultDiv p[name='searchLocaRow'].selRow,
#searchLocaResultDiv .search-loca-row.selRow,
#searchLocaResultDiv p[name='searchLocaRow'].selRow:hover,
#searchLocaResultDiv .search-loca-row.selRow:hover {
	background: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

	#searchLocaResultDiv p[name='searchLocaRow'].selRow a,
	#searchLocaResultDiv .search-loca-row.selRow a,
	#searchLocaResultDiv p[name='searchLocaRow'].selRow a:hover,
	#searchLocaResultDiv .search-loca-row.selRow a:hover {
		color: inherit !important;
	}

	#searchLocaResultDiv p[name='searchLocaRow'].selRow .search-loca-poi,
	#searchLocaResultDiv .search-loca-row.selRow .search-loca-poi,
	#searchLocaResultDiv p[name='searchLocaRow'].selRow .search-loca-address-line,
	#searchLocaResultDiv .search-loca-row.selRow .search-loca-address-line,
#searchLocaResultDiv p[name='searchLocaRow'].selRow .search-loca-separator,
#searchLocaResultDiv .search-loca-row.selRow .search-loca-separator {
	color: var(--theme-tabulator-row-fg-selected) !important;
}

/* Root-manager context popups still carry legacy inline light colours.
 * Keep their surface, text, borders, separators and selected rows on the
 * active palette so a theme change cannot leave light text on a light panel
 * (or the inverse in the light theme). */
#mapLoca,
#mainDrivers,
#headerMenu,
#tableMenu,
.sidemenu {
	background: var(--theme-panel-bg) !important;
	color: var(--theme-body-fg) !important;
}

#mainDrivers,
#headerMenu,
#tableMenu,
.sidemenu {
	border-color: var(--theme-panel-border) !important;
}

#headerMenu,
#tableMenu,
.sidemenu,
#mapLoca {
	border: 1px solid var(--theme-panel-border) !important;
	border-radius: 6px !important;
	box-shadow: var(--theme-popup-shadow);
}

#mainDrivers {
	border-radius: 4px;
	box-shadow: var(--theme-popup-shadow);
}

#headerMenu .menuitem,
#tableMenu .menuitem,
.sidemenu .menuitem {
	border-radius: 4px;
}

#mainDrivers ul,
#mainDrivers li,
#headerMenu .menuitem,
#tableMenu .menuitem,
.sidemenu .menuitem {
	color: var(--theme-body-fg) !important;
}

#headerMenu .menuitem:hover,
#headerMenu .menuitem:active,
#tableMenu .menuitem:hover,
#tableMenu .menuitem:active,
.sidemenu .menuitem:hover,
.sidemenu .menuitem:active {
	background: var(--theme-menu-item-hover-bg) !important;
	color: var(--theme-menu-item-hover-fg) !important;
	border-color: transparent !important;
}

#headerMenu .menuitem-sel,
#tableMenu .menuitem-sel,
.sidemenu .menuitem-sel,
#headerMenu .menuitem-sel:hover,
#tableMenu .menuitem-sel:hover,
.sidemenu .menuitem-sel:hover {
	background: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#headerMenu .menuitem-sel:hover,
#tableMenu .menuitem-sel:hover,
.sidemenu .menuitem-sel:hover {
	border-color: var(--theme-control-focus-border) !important;
}

/* 구분선은 1px만 칠하고 기존 3px 높이는 유지한다. */
#headerMenu hr,
#tableMenu hr,
.sidemenu hr {
	background: var(--theme-divider) !important;
	background-clip: content-box !important;
	border-color: transparent !important;
}

.stable th, .atable th, .htable th {
	background: var(--theme-tabulator-header-bg) !important;
	color: var(--theme-tabulator-header-fg) !important;
}

.stable, .atable, .htable, .ntable {
	background: var(--theme-tabulator-bg) !important;
	color: var(--theme-tabulator-row-fg) !important;
	border-color: var(--theme-tabulator-row-border) !important;
	border-top-color: var(--theme-tabulator-header-border) !important;
	border-bottom-color: var(--theme-tabulator-row-border) !important;
}

.stable tbody tr, .atable tbody tr, .htable tbody tr, .ntable tbody tr {
	background: var(--theme-table-row-bg, var(--theme-tabulator-row-bg)) !important;
	color: var(--theme-tabulator-row-fg) !important;
}

.stable tbody tr:nth-child(even), .atable tbody tr:nth-child(even), .htable tbody tr:nth-child(even), .ntable tbody tr:nth-child(even) {
	background: var(--theme-table-row-even-bg, var(--theme-tabulator-row-bg-odd)) !important;
}

.stable tbody tr:hover, .atable tbody tr:hover, .htable tbody tr:hover, .ntable tbody tr:hover {
	background: var(--theme-tabulator-row-bg-hover) !important;
}

.stable td, .atable td, .htable td {
	background: transparent !important;
	color: inherit !important;
	border-color: var(--theme-tabulator-row-border) !important;
}

.in-main-call-panel .atable th {
	white-space: nowrap !important;
	word-break: keep-all !important;
	line-height: 1.15 !important;
}

.in-main-call-panel .loca {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

.in-main-call-panel .loca-sub {
	background: var(--theme-tabulator-row-bg-odd) !important;
	color: inherit !important;
	border-radius: 2px;
}

.in-main-call-panel [name='contsDiv'][data-id='custLoca'],
.in-main-call-panel [name='contsDiv'][data-id='callHistory'],
.in-main-call-panel [name='contsDiv'][data-id='custHistory'],
.in-main-call-panel [name='contsDiv'][data-id='driverList'],
.in-main-call-panel [name='contsDiv'][data-id='avoidList'] {
	flex: 1 1 0 !important;
	height: auto !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 4px 4px 4px 4px !important;
	padding: 0 0 4px 0 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	min-height: 0 !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'],
.in-main-call-panel [name='contsDiv'][data-id='avoidList'] {
	color: var(--theme-body-fg) !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] {
	display: block !important;
	position: relative !important;
	box-sizing: border-box !important;
	margin: 0 0 4px 0 !important;
	padding: 4px 4px 54px 4px !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'][style*='display:none'],
.in-main-call-panel [name='contsDiv'][data-id='cust'][style*='display: none'] {
	display: none !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table,
.in-main-call-panel [name='contsDiv'][data-id='cust'] td {
	color: inherit !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] > table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	table-layout: fixed !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] > table:first-of-type {
	margin: 8px 0 0 0 !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] > table:last-of-type {
	position: absolute !important;
	left: 4px !important;
	bottom: 5px !important;
	width: calc(100% - 8px) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type td {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.05 !important;
	border: none !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:hover,
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:hover td,
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type div:hover {
	background: transparent !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr > td[style*='height:10px'] {
	height: 5px !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	border: none !important;
	background: transparent !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] hr {
	display: none !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] input[type='text'],
.in-main-call-panel [name='contsDiv'][data-id='cust'] select,
.in-main-call-panel [name='contsDiv'][data-id='cust'] textarea {
	border-radius: 0 !important;
	box-sizing: border-box !important;
	padding-left: 2px !important;
	padding-right: 2px !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:first-child td:nth-child(1),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:first-child td:nth-child(4),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(3) td:nth-child(1),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(3) td:nth-child(4),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(5) td:nth-child(1),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(7) td:nth-child(1),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(9) td:nth-child(1) {
	width: 50px !important;
	white-space: nowrap !important;
	word-break: keep-all !important;
	letter-spacing: 0 !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:first-child td:nth-child(2),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:first-child td:nth-child(5),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(3) td:nth-child(2),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(3) td:nth-child(5) {
	width: 166px !important;
	padding-left: 6px !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:first-child td:nth-child(3),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(3) td:nth-child(3) {
	width: 10px !important;
}

.in-main-call-panel #custGroupName,
.in-main-call-panel #custName,
.in-main-call-panel #custPhoneNum2 {
	width: 160px !important;
}

.in-main-call-panel #custPhoneNum1 {
	width: 126px !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(5) td:nth-child(2),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(7) td:nth-child(2),
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:first-of-type tr:nth-child(9) td:nth-child(2) {
	padding-left: 6px !important;
	padding-right: 0 !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:last-of-type td:first-child,
.in-main-call-panel [name='contsDiv'][data-id='cust'] table:last-of-type td:last-child {
	width: calc(50% - 5px) !important;
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] table:last-of-type td:nth-child(2) {
	width: 10px !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.in-main-call-panel #custBlack,
.in-main-call-panel #smsApply {
	accent-color: var(--theme-tabulator-row-bg-selected);
}

.in-main-call-panel [name='contsDiv'][data-id='cust'] textarea {
	background: var(--theme-control-bg) !important;
	color: var(--theme-control-fg) !important;
	border: 1px solid var(--theme-control-border) !important;
	text-align: left !important;
}

.in-main-call-panel #custModiBtn,
.in-main-call-panel #custDelBtn {
	background: var(--theme-button-bg) !important;
	border-color: var(--theme-button-border) !important;
	color: var(--theme-button-fg) !important;
	border-radius: 0 !important;
}

.in-main-call-panel #custModiBtn:hover,
.in-main-call-panel #custDelBtn:hover {
	background: var(--theme-button-bg-hover) !important;
	border-color: var(--theme-button-border-hover) !important;
}

.in-main-call-panel #custModiBtn i,
.in-main-call-panel #custDelBtn i {
	color: inherit !important;
}

.call-driver-panel {
	box-sizing: border-box !important;
	margin: 0 0 4px 0 !important;
	padding: 4px 0 5px 0 !important;
}

.call-driver-main {
	margin: 10px 0 0 0 !important;
}

.in-main-call-panel [name='contsDiv'][data-id='avoidList'] .atable {
	table-layout: fixed;
}

.in-main-call-panel [name='contsDiv'][data-id='avoidList'] .atable th,
.in-main-call-panel [name='contsDiv'][data-id='avoidList'] .atable td {
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ntable th {
	background: var(--theme-tabulator-header-bg) !important;
	color: var(--theme-tabulator-header-fg) !important;
	border-bottom: 1px solid var(--theme-tabulator-row-border) !important;
}

.ntable td {
	background: var(--theme-table-row-bg, var(--theme-tabulator-row-bg)) !important;
	color: var(--theme-tabulator-row-fg) !important;
	border-bottom: 1px solid var(--theme-tabulator-row-border) !important;
}

.ntable tbody tr:nth-child(even) td {
	background: var(--theme-table-row-even-bg, var(--theme-tabulator-row-bg-odd)) !important;
}

.ntable tbody tr:hover td {
	background: var(--theme-tabulator-row-bg-hover) !important;
	color: var(--theme-tabulator-row-fg) !important;
}

.tabheader {
	display: block !important;
	background: transparent !important;
	border: none !important;
	border-bottom: var(--theme-etc-tabheader-border) !important;
	margin-top: 0px !important;
}

.tabheader ul {
	border-bottom-color: var(--theme-etc-tab-border) !important;
}

.tabheader ul li {
	background: var(--theme-etc-tab-bg) !important;
	border-color: var(--theme-etc-tab-border) !important;
	color: var(--theme-etc-tab-fg) !important;
}

.tabheader ul li:hover {
	background: var(--theme-etc-tab-bg-hover) !important;
	color: var(--theme-etc-tab-fg-hover) !important;
}

.tabheader ul li.on {
	background: var(--theme-etc-tab-on-bg) !important;
	border-color: var(--theme-etc-tab-on-border) !important;
	color: var(--theme-etc-tab-on-fg) !important;
	font-weight: normal !important;
	box-shadow: inset 0 2px 0 var(--theme-tab-accent);
}

#carState {
	background: var(--theme-counter-bg) !important;
	border-color: var(--theme-counter-border) !important;
	color: var(--theme-counter-fg) !important;
}

#etcList {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-end !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	border: none !important;
}

#etcList li {
	width: 50px !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	padding: 4px 0 0 0 !important;
	margin: 0 1px 0 0 !important;
	background: var(--theme-etc-tab-bg) !important;
	color: var(--theme-etc-tab-fg) !important;
	border: 1px solid var(--theme-etc-tab-border) !important;
	border-bottom: none !important;
	border-radius: 4px 4px 0 0 !important;
	cursor: pointer !important;
	font-size: 12px !important;
	text-align: center !important;
	position: relative !important;
	top: 0px !important;
	white-space: nowrap !important;
}

#etcList li:hover {
	background: var(--theme-etc-tab-bg-hover) !important;
	color: var(--theme-etc-tab-fg-hover) !important;
}

#etcList li.on {
	background: var(--theme-etc-tab-on-bg) !important;
	color: var(--theme-etc-tab-on-fg) !important;
	border-color: var(--theme-etc-tab-on-border) !important;
	font-weight: normal !important;
	box-shadow: inset 0 2px 0 var(--theme-tab-accent);
}

#totalcnt, #regcnt, #waitcnt, #bookcnt, #proccnt, #stopcnt, #setcnt, #runcnt, #donecnt, #cancelcnt,
p[name='inDriverCnt'] {
	background: var(--theme-counter-bg) !important;
	border-color: var(--theme-counter-border) !important;
	color: var(--theme-counter-fg) !important;
}

.in-driver-toolbar,
.in-driver-statuses {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	width: 100%;
	font-size: 12px;
}

.in-driver-toolbar {
	margin-bottom: 3px;
}

.in-driver-statuses {
	justify-content: space-between;
}

.in-driver-state {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.in-driver-state label,
.in-driver-auto {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 1px;
	margin: 0;
	font-size: 12px;
	white-space: nowrap;
}

.in-driver-state input[type='checkbox'],
.in-driver-auto input[type='checkbox'] {
	width: 12px;
	height: 12px;
	margin: 0;
}

.in-driver-state p[name='inDriverCnt'] {
	box-sizing: border-box;
	width: 32px;
	min-width: 28px;
	margin: 0;
	padding: 2px 0;
	border: 1px solid;
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	white-space: nowrap;
}

.in-driver-toolbar > .rectBtn {
	flex: 0 1 78px;
	min-width: 0;
	height: 22px;
	margin: 0;
	padding: 0 2px;
	font-size: 12px;
	white-space: nowrap;
}

.in-driver-toolbar > #inDriverInitBtn {
	flex-basis: 65px;
}

.in-driver-auto {
	margin-left: auto;
}

/* =========================
   Tabulator Theme
   ========================= */

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
	padding-top: 6px !important;
	text-align: center;
}

.tabulator .tabulator-row .tabulator-cell {
	padding-top: 6px !important;
}

.tabulator .tabulator-tableHolder {
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

.tabulator {
	background-color: var(--theme-tabulator-bg) !important;
	border: 1px solid var(--theme-tabulator-border) !important;
	font-family: inherit;
	color: var(--theme-tabulator-fg) !important;
}

.tabulator .tabulator-header {
	background-color: var(--theme-tabulator-header-bg) !important;
	color: var(--theme-tabulator-header-fg) !important;
	border-bottom: 1px solid var(--theme-tabulator-header-border) !important;
}

.tabulator .tabulator-header .tabulator-col {
	background-color: var(--theme-tabulator-header-bg) !important;
	border-right: 1px solid var(--theme-tabulator-col-border) !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
	color: var(--theme-tabulator-header-fg) !important;
}

.tabulator-row {
	background-color: var(--theme-tabulator-row-bg) !important;
	border-bottom: 1px solid var(--theme-tabulator-row-border) !important;
	color: var(--theme-tabulator-row-fg) !important;
}

.tabulator-row .tabulator-cell {
	border-right: 1px solid var(--theme-tabulator-row-border) !important;
}

.tabulator-row.tabulator-row-odd {
	background-color: var(--theme-tabulator-row-bg-odd) !important;
}

.tabulator-row.tabulator-selected {
	background-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

.tabulator-row:hover,
.tabulator-row.tabulator-selectable:hover {
	background-color: var(--theme-tabulator-row-bg) !important;
	color: var(--theme-tabulator-row-fg) !important;
}

.tabulator-row.tabulator-row-odd:hover {
	background-color: var(--theme-tabulator-row-bg-odd) !important;
	color: var(--theme-tabulator-row-fg) !important;
}

.tabulator-row.tabulator-selectable:not(.tabulator-selected):hover {
	background-color: var(--theme-tabulator-row-bg-hover) !important;
}

.tabulator-row.tabulator-selected {
	box-shadow: inset 3px 0 0 var(--theme-row-selected-accent);
}

.tabulator-row.tabulator-selected:hover {
	background-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#inDriverTable .tabulator-row.tabulator-selected,
#inDriverTable .tabulator-row.tabulator-selected:hover {
	background-color: #1f4e79 !important;
	color: #ffffff !important;
}

#inDriverTable .tabulator-row.tabulator-selected .tabulator-cell,
#inDriverTable .tabulator-row.tabulator-selected:hover .tabulator-cell {
	background-color: transparent !important;
	color: #ffffff !important;
}

.tabulator .tabulator-footer {
	background-color: var(--theme-tabulator-footer-bg) !important;
	border-top: 1px solid var(--theme-tabulator-footer-border) !important;
}

/* Scrollbar Styles */
.tabulator .tabulator-tableHolder::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.tabulator .tabulator-tableHolder::-webkit-scrollbar-track {
	background: transparent;
}

.tabulator .tabulator-tableHolder::-webkit-scrollbar-thumb {
	background: var(--theme-scroll-thumb, #555);
	border-radius: 5px;
}

.tabulator .tabulator-tableHolder::-webkit-scrollbar-thumb:hover {
	background: var(--theme-scroll-thumb-hover, #777);
}

/* Select option styling for dark/black modes */
body:not(.light) select option {
	background-color: var(--theme-select-option-bg);
	color: var(--theme-select-option-fg);
}

body:not(.light) select option:checked,
body:not(.light) select option:hover,
body:not(.light) select option:focus {
	background-color: var(--theme-select-option-bg-active) !important;
	color: var(--theme-select-option-fg-active) !important;
}

body:not(.light) select:hover {
	background-color: var(--theme-select-hover-bg) !important;
	border-color: var(--theme-select-hover-border) !important;
}

body:not(.light) select:focus {
	background-color: var(--theme-select-focus-bg) !important;
	border-color: var(--theme-select-focus-border) !important;
	box-shadow: var(--theme-select-focus-shadow) !important;
}

/* callReceive result/info */
#result, #regInfo {
	color: var(--theme-call-result-fg);
}

.call-receive-grid {
	grid-template-columns: 60px 1fr 60px 1fr !important;
}

.call-receive-label {
	width: 100%;
	text-align: left;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	white-space: nowrap;
	word-break: keep-all;
	line-height: 1.1;
	letter-spacing: -0.2px;
	font-size: 13px;
	color: var(--theme-label-fg);
}

/* bizCall.htm zebra table */
thead th,
.tabulator .tabulator-header .tabulator-col {
	border-left-color: var(--theme-grid-divider) !important;
	border-right-color: var(--theme-grid-divider) !important;
}

#bizCallTableBody tr:nth-child(even) {
	background-color: var(--theme-bizcall-row-even-bg) !important;
}

#bizCallTableBody tr:nth-child(odd) {
	background-color: var(--theme-bizcall-row-odd-bg) !important;
}

#bizCallTableBody tr[data-ids] {
	cursor: pointer;
}

/* .hoverRow는 목록 재생성 직후 :hover가 다시 계산되기 전까지 색을 유지시키는 보조 class다. */
#bizCallTableBody tr[data-ids]:not(.selRow):hover,
#bizCallTableBody tr[data-ids]:not(.selRow):hover td,
#bizCallTableBody tr[data-ids]:not(.selRow).hoverRow,
#bizCallTableBody tr[data-ids]:not(.selRow).hoverRow td {
	background-color: var(--theme-bizcall-row-hover-bg) !important;
}

#bizCallTableBody tr.selRow,
#bizCallTableBody tr.selRow td {
	background-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#bizCallTableBody tr.selRow:hover,
#bizCallTableBody tr.selRow:hover td,
#bizCallTableBody tr:hover td.selRow {
	background-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#bizCallTableBody td.selRow,
#bizCallTableBody tr td.selRow,
#bizCallTableBody tr:nth-child(even) td.selRow,
#bizCallTableBody tr:nth-child(odd) td.selRow,
#bizCallTableBody tr:nth-child(even):hover td.selRow,
#bizCallTableBody tr:nth-child(odd):hover td.selRow,
#bizCallTableBody tr:hover td.selRow {
	background-color: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#bizCallTableBody tr.selRow > td:first-child,
#bizCallTableBody tr:has(> td.selRow) > td:first-child {
	box-shadow: inset 3px 0 0 var(--theme-row-selected-accent);
}

#bizCallTableBody td {
	color: var(--theme-bizcall-cell-fg) !important;
	border-bottom: 1px solid var(--theme-bizcall-cell-border) !important;
}

#bizCallTable th {
	background: var(--theme-bizcall-th-bg) !important;
	color: var(--theme-bizcall-th-fg) !important;
	border-bottom: 1px solid var(--theme-bizcall-th-border) !important;
}

#bizCallTable {
	border-top: var(--theme-bizcall-table-border-top) !important;
	border-bottom: var(--theme-bizcall-table-border-bottom) !important;
}

.biz-noti-page .noti-label-cell,
#notiEditorTable td[style*="background:#E8E8E8"] {
	background: var(--theme-panel-header-bg) !important;
	color: var(--theme-panel-header-fg) !important;
}

.biz-noti-page .noti-divider-row,
#notiEditorTable td[style*="background:#CACACA"] {
	background: var(--theme-divider) !important;
}

.biz-noti-page .noti-divider-strong-row,
#notiEditorTable td[style*="background:#000000"] {
	background: var(--theme-divider-strong) !important;
}

.wait-page,
.wait-page table,
.wait-page th,
.wait-page td,
.wait-page input,
.wait-page select,
.wait-page textarea,
.wait-page label,
.wait-page span,
.wait-page p,
.wait-page ul,
.wait-page li {
	color: var(--theme-body-fg) !important;
}

.wait-page table,
.wait-page th,
.wait-page td,
.wait-page input,
.wait-page select,
.wait-page textarea,
.wait-page label,
.wait-page span,
.wait-page p,
.wait-page ul,
.wait-page li {
	font-size: 11px !important;
}

.wait-main-body {
	align-items: stretch !important;
}

.wait-list-pane {
	height: calc(100% - 4px) !important;
	margin: 0 5px 4px 0 !important;
	box-sizing: border-box !important;
}

.wait-detail-pane {
	height: calc(100% - 4px) !important;
	padding-bottom: 4px !important;
	box-sizing: border-box !important;
	align-items: center !important;
}

.wait-driver-controls {
	margin-bottom: 0 !important;
}

#waitList {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-end !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	border: none !important;
}

#waitList li {
	flex-shrink: 0 !important;
	padding: 3px 0 0 0 !important;
	background: var(--theme-etc-tab-bg) !important;
	color: var(--theme-etc-tab-fg) !important;
	border: 1px solid var(--theme-etc-tab-border) !important;
	border-bottom: none !important;
	border-radius: 4px 4px 0 0 !important;
	font-size: 11px !important;
	line-height: 1.1 !important;
}

#waitList li:hover {
	background: var(--theme-etc-tab-bg-hover) !important;
	color: var(--theme-etc-tab-fg-hover) !important;
}

#waitList li.on {
	background: var(--theme-etc-tab-on-bg) !important;
	color: var(--theme-etc-tab-on-fg) !important;
	border-color: var(--theme-etc-tab-on-border) !important;
	font-weight: normal !important;
	box-shadow: inset 0 2px 0 var(--theme-tab-accent);
}

#inMainWaitGroup,
#inMainWaitSearchStr,
#searchDriver,
#setDriver,
#setCar,
#setRank,
#inMainWaitTableBody td,
#inMainWaitDriverBody td,
#inMainWaitLocaBody td,
#inMainWaitCallBody td,
#inMainWaitTableBody th,
#inMainWaitDriverBody th,
#inMainWaitLocaBody th,
#inMainWaitCallBody th {
	font-size: 11px !important;
}

#inMainWaitSearchStr {
	background: var(--theme-control-bg) !important;
	border-color: var(--theme-control-border) !important;
}

.wait-driver-popup,
#drivers {
	background: var(--theme-panel-bg) !important;
	border: 1px solid var(--theme-panel-border) !important;
	color: var(--theme-tabulator-row-fg) !important;
	font-size: 11px !important;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

.wait-driver-popup-list,
#driversUl {
	color: var(--theme-tabulator-row-fg) !important;
}

#driversUl li {
	font-size: 11px !important;
	color: var(--theme-tabulator-row-fg) !important;
}

#driversUl li.selRow {
	background: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#inMainWaitTableBody tr.wait-row-selected,
#inMainWaitTableBody tr.wait-row-selected td {
	background: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

#inMainWaitTableBody tr.wait-row-selected:hover,
#inMainWaitTableBody tr.wait-row-selected:hover td {
	background: var(--theme-tabulator-row-bg-selected) !important;
	color: var(--theme-tabulator-row-fg-selected) !important;
}

.sms-left-pane,
.sms-right-pane {
	position: relative !important;
	height: 100% !important;
	box-sizing: border-box !important;
}

.sms-main-text {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 80px !important;
	bottom: 4px !important;
	width: auto !important;
	height: auto !important;
	box-sizing: border-box !important;
}

.sms-target-pane {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 27px !important;
	bottom: 4px !important;
	height: auto !important;
	box-sizing: border-box !important;
}

/* =========================
   Interaction States
   ========================= */

input:where([type="text"], [type="tel"], [type="password"]):hover:where(:not(:focus):not([readonly]):not(:disabled)),
textarea:hover:where(:not(:focus):not([readonly]):not(:disabled)) {
	border-color: var(--theme-control-border-hover);
}

body.light select:hover:where(:not(:focus):not(:disabled)) {
	border-color: var(--theme-control-border-hover);
}

input:where([type="text"], [type="tel"], [type="password"]):disabled,
select:disabled,
textarea:disabled {
	background: var(--theme-control-readonly-bg);
	color: var(--theme-control-readonly-fg);
	cursor: default;
}

button:focus-visible,
select:focus-visible,
input[type="button"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
[role='switch']:focus-visible {
	outline: 2px solid var(--theme-focus-ring);
	outline-offset: 1px;
}

#mapViewToggle:focus-visible,
#mainWorkspaceToggle:focus-visible {
	outline-color: var(--theme-focus-ring);
}

#mapViewToggle::before,
#mainWorkspaceToggle::before {
	background: var(--theme-accent);
}

#mapViewToggle:hover {
	border-color: var(--theme-control-focus-border);
}

#mapToolbar #centerX,
#mapToolbar #centerY {
	border-color: var(--theme-control-border);
}

#infoWinResizer:hover::before,
#infoWinResizer:active::before {
	background: var(--theme-accent);
}

#infoDate, #infoTime {
	font-variant-numeric: tabular-nums;
}

/* 메뉴 바: 현재 메뉴와 hover를 배경으로 구분한다. */
body:not(.cheongju-console, .chuncheon-console) .main-menu-bar [data-name='menusTabs'] > .menutext {
	border-radius: 4px;
	transition: background-color 0.12s ease, color 0.12s ease;
}

body:not(.cheongju-console, .chuncheon-console) .main-menu-bar [data-name='menusTabs'] > .menutext:hover {
	background: rgba(255, 255, 255, 0.1);
}

body:not(.cheongju-console, .chuncheon-console) .main-menu-bar [data-name='menusTabs'] > .menutext-sel,
body:not(.cheongju-console, .chuncheon-console) .main-menu-bar [data-name='menusTabs'] > .menutext-sel:hover {
	background: rgba(255, 255, 255, 0.18);
}

body:not(.cheongju-console, .chuncheon-console) .main-menu-bar [data-name='menusTabs'] > span:not(.menutext) {
	opacity: 0.4;
}

/* Scrollbars */
::-webkit-scrollbar {
	background-color: var(--theme-scroll-track, #e6e6e6);
}

::-webkit-scrollbar-track {
	background: var(--theme-scroll-track, #e6e6e6);
	border-radius: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
}

::-webkit-scrollbar-thumb {
	background: var(--theme-scroll-thumb, #a0a4aa);
	border-radius: 5px;
	-webkit-box-shadow: none;
	box-shadow: none;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--theme-scroll-thumb-hover, #80858c);
}

::-webkit-scrollbar-corner {
	background: var(--theme-scroll-track, #e6e6e6);
}

/* Include iframe page padding in its declared width. */
body.unselectable
{
    box-sizing: border-box;
    max-width: 100%;
}
