/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #333; }
body.resizing { user-select: none; -webkit-user-select: none; }
body.resizing-col { cursor: col-resize !important; }
body.resizing-row { cursor: row-resize !important; }

/* ===== THEME VARIABLES ===== */
:root {
  --primary: #002854;
  --primary-light: #004080;
  --left-panel-width: 248.778px;
  --sidebar-resize-width: 1px;
  --bgc2: #003a6b;
  --bgc3: #002854;
  --brd1: #002854;
  --brd2: #ddd;
  --brd5: #8A9CA2;
  --brd6: #ccc;
  --txc1: #fff;
  --txc2: #333;
  --txc3: #8095ac;
  --bg-white: #fff;
  --row-selected: #cde4f7;
  --row-hover: #e8f2fc;
}

/* Generic icon class for raster/svg assets */
.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

/* ===== PLACEHOLDER ICON ===== */
.icon-placeholder {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #8095ac;
  border-radius: 2px;
  background: transparent;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Tree tab icons */
.icon-tab-vehicle { background-image: url("assets/icons/tab-vehicle.png"); }
.icon-tab-driver { background-image: url("assets/icons/tab-driver.png"); }
.icon-tab-geozone { background-image: url("assets/icons/tab-geozone.png"); }
.icon-tab-route { background-image: url("assets/icons/tab-route.png"); }

.icon-calendar { background-image: url("assets/icons/calendar.png"); }


/* ===== MAIN LAYOUT ===== */
.saigon-ui-root { width: 100%; height: 100%; }
.omn-mainpage { display: flex; width: 100%; height: 100%; position: relative; }

/* ===== LEFT PANEL ===== */
.omn-leftPanel {
  width: 248.778px; min-width: 200px; max-width: 300px; height: 100vh;
  background: var(--bg-white);
  display: flex; flex-direction: column; z-index: 30; position: relative;
  border-right: 1px solid var(--primary-light);
  flex-shrink: 0;
}

/* Sidebar resize handle */
.sidebar-resize {
  width: 1px; cursor: col-resize; background: transparent; z-index: 35;
  flex-shrink: 0; position: relative;
}
.sidebar-resize:hover, .sidebar-resize.active { background: rgba(0,56,107,0.15); }
.sidebar-resize::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.omn-menu { 
    height: 72px;
}

.logo {
  background: var(--bgc3); 
  color: var(--txc1);
  padding: 6px 14px; 
  min-height: 36px;
  display: flex; 
  height: 100%;
}
.logo-img {
  width: 158px;
  min-width: 158px;
  max-width: 158px;
  max-height: 100%;
  object-fit: contain;
}

/* Date Picker */
.objectPeriodSelectContainer { padding: 9px 0px; padding-top: 14px;}
.datepicker-widget { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.dp-col { text-align: center; }
.dp-start, .dp-end { flex: 1; }
.dp-divider { flex: 0 0 24px; display: flex; justify-content: center; }
.date-value { font-size: 16px; cursor: pointer; color: var(--txc2); }
.date-sub { font-size: 10px; color: var(--txc3); }
.date-sub span { margin: 0 1px; }

.quick-period-selector { display: flex; margin-top: 10px; gap: 2px; }
.qp-item {
  flex: 1; text-align: center; padding: 3px 0; cursor: pointer;
  font-size: 11px; border-radius: 3px; color: var(--txc3);
}
.qp-item:hover { color: var(--txc2); }
.qp-item.selected { color: var(--txc2);}

/* Tree Tabs */
.omn-treeContainer { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.tree-tabs {
  display: flex;
  align-items: flex-end;
  background: #fff;
  border-bottom: 1px solid var(--brd5);
  height: 56px;
}
.tree-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 5px 0; cursor: pointer;
  background: #fff;
  transition: background-color 0.15s ease;
}
.tree-tab:last-child { border-right: none; }
.tree-tab.selected {
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid var(--brd5);
  border-left: 1px solid var(--brd5);
  border-right: 1px solid var(--brd5);
  border-bottom: 2px solid #fff;
  margin-bottom: -1px;
}
.tree-tab.selected + .tree-tab { border-left: none; }
.tab-count { font-size: 10px; color: var(--txc3); padding-top: 8px;}
.tree-tab.selected .tab-count { color: var(--txc2); padding-top: 8px; }
.tree-tab:hover:not(.selected) { background: #f0f6fc; }

/* Tree Body */
.tree-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.tree-search {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 11px 6px;
}
.tree-search input {
  flex: 1; border: 1px solid #ccc; border-radius: 3px;
  padding: 3px 24px 3px 6px; font-size: 11px; outline: none;
  color: #6f7f92;
  height: 30px;
}
.tree-search input:focus { border-color: var(--brd5); }
.tree-search .icon-search {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  opacity: 0.65;
  filter: grayscale(1);
  pointer-events: none;
}

/* Status filter row */
.status-filter-row {
  display: flex; border-bottom: 1px solid #eee; padding: 4px 6px;
}
.sf-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 10px; cursor: pointer; font-size: 10px; color: var(--txc3);
}

/* Color filter row */
.color-filter-row {
  display: flex; padding: 1px 6px;
  padding-top: 11px;
}
.cf-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 5px; cursor: pointer; padding: 2px;
}
.cf-item.active {border-radius: 3px; }
.filter-dot { width: 14px; height: 14px; border-radius: 20%; display: inline-block; }
.green-dot { background: #4caf50; }
.yellow-dot { background: #ff9800; }
.red-dot { background: #f44336; }
.black-dot { background: #999; }
.blue-dot { background: #01101d; }
.filter-count { font-size: 10px; color: var(--txc3); }

/* Root tree controls */
.tree-root-controls {
  display: flex; gap: 6px; padding: 8px 8px;
  border-bottom: 1px solid #eee; font-size: 13px;
}
.root-ctrl { cursor: pointer; color: var(--txc3); }
.root-ctrl:hover { color: var(--txc2); }
.root-ctrl-checkbox {
  display: inline-flex;
  align-items: center;
}
#rootCheckbox {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #1a7bc8;
  cursor: pointer;
}

/* Vehicle tree list */
.tree-list-wrap { flex: 1; overflow-y: auto; }
.tree-list { list-style: none; padding: 0; }

/* Group */
.tg-item { padding: 0; }
.tg-header {
  display: flex; align-items: center; gap: 3px;
  padding: 3px 6px; cursor: pointer; font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.tg-header:hover { background: var(--row-hover); }
.tg-opener { font-size: 9px; color: var(--txc3); width: 12px; flex-shrink: 0; }
.tg-checkbox { cursor: pointer; font-size: 13px; flex-shrink: 0; }
.tg-folder { flex-shrink: 0; }
.tg-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--txc2); }
.tg-count { color: var(--txc3); font-size: 10px; margin-left: auto; padding-right: 4px; }

/* Vehicle items inside group */
.tg-children { list-style: none; padding-left: 14px; display: none; }
.tg-children.open { display: block; }

.tv-item {
  display: flex; align-items: center; gap: 3px;
  padding: 2px 4px; cursor: pointer; font-size: 11px;
  border-bottom: 1px solid #f8f8f8;
}
.tv-item:hover { background: var(--row-hover); }
.tv-item.selected { background: var(--row-selected); }
.tv-checkbox { cursor: pointer; font-size: 13px; flex-shrink: 0; }
.tv-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #4caf50; }
.tv-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-check { color: #1a7bc8; font-size: 13px; margin-left: auto; display: none; }
.tv-item.selected .tv-check { display: inline; }

/* ===== TOP PANEL ===== */
.omn-topPanel {
  position: fixed; top: 0; left: calc(var(--left-panel-width) + var(--sidebar-resize-width)); right: 0;
  height: 36px; background: var(--bgc2);
  display: flex; align-items: center; z-index: 20;
}
.tab-bar { display: flex; align-items: center; flex-shrink: 0; }
.main-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--bgc2); color: var(--txc1);
  font-size: 13px; cursor: pointer;
  max-width: 240px; height: 36px;
  border-right: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
}
.main-tab.active { opacity: 1; background: var(--bgc3); }
.main-tab:hover { opacity: 0.9; }
.tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-close { color: var(--txc1); opacity: 0.6; cursor: pointer; font-size: 14px; }
.tab-close:hover { opacity: 1; }
.tab-add-wrap { position: relative; display: flex; align-items: center; }
.tab-add { color: var(--txc1); cursor: pointer; font-size: 23px; margin-left: 4px; opacity: 0.7; padding: 0 8px; line-height: 36px; }
.tab-add.tab-add-extended { font-size: 13px; font-weight: 600; letter-spacing: 0.1px; }
.tab-add:hover { opacity: 1; }

/* Report dropdown menu */
.tab-menu {
  display: none; position: absolute; top: 36px; left: 0;
  background: #fff; border: 1px solid #ccc; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100; min-width: 220px; border-radius: 0 0 3px 3px;
}
.tab-menu.open { display: block; }
.tab-menu-item {
  padding: 10px 16px; font-size: 13px; color: #333; cursor: pointer;
  white-space: nowrap;
}
.tab-menu-item:hover { background: var(--row-hover); }
.tab-menu-item.disabled {
  color: #aaa; cursor: default; pointer-events: none;
}

/* Empty state */
.content-empty {
  display: flex; align-items: center; justify-content: center;
  height: calc(100vh - 36px); color: #999; font-size: 15px;
}
.empty-hint b { font-size: 18px; }

.service-panel {
  display: flex; align-items: center; margin-left: auto;
  padding: 0 12px; gap: 14px;
}
.service-link { color: var(--txc1); cursor: pointer; font-size: 12px; white-space: nowrap; }
.service-link:hover { text-decoration: underline; }
.service-logout { font-size: 16px; color: var(--txc3); padding: 0 2px; }
.svc-icon { border-color: rgba(255,255,255,0.5); }

/* ===== CONTENT AREA ===== */
.omn-contentPanel { flex: 1; padding-top: 36px; height: 100vh; overflow: hidden; position: relative; }
.content-split { display: flex; flex-direction: column; height: calc(100vh - 36px); }
.report-view { display: none; flex-direction: column; height: calc(100vh - 36px); }

/* Portlet common */
.portlet { display: flex; flex-direction: column; overflow: hidden; }
.portlet-header {
  display: flex; align-items: center; gap: 6px;
  padding: 0px 6px 0px 8px; min-height: 36px; flex-shrink: 0;
  background: var(--bgc3); 
}
.ph-title { font-size: 12px; color: var(--txc1); white-space: nowrap; }
.ph-vehicles { font-size: 12px; color: var(--txc3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.ph-close { cursor: pointer; font-size: 14px; color: #999; }
.ph-close:hover { color: #fff; }
.map-type-label { font-size: 11px; color: var(--txc1); cursor: pointer; white-space: nowrap; padding-right: 9px;}

/* Map portlet */
.map-portlet { flex: 1; min-height: 60px; display: flex; flex-direction: column; }
.map-portlet.hidden { display: none !important; }

/* Split resize handle */
.split-resize {
  height: 5px; cursor: row-resize; background: transparent; flex-shrink: 0;
}
.split-resize:hover, .split-resize.active { background: rgba(0,56,107,0.12); }
.split-resize.hidden { display: none; }
.map-wrapper { flex: 1; position: relative; }
#map, #mapSummary { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
#map .leaflet-top.leaflet-left,
#mapSummary .leaflet-top.leaflet-left {
  left: auto;
  right: 0;
}
#map .leaflet-top.leaflet-left .leaflet-control,
#mapSummary .leaflet-top.leaflet-left .leaflet-control {
  margin-left: 0;
  margin-right: 10px;
}
.map-coords {
  position: absolute; bottom: 4px; right: 8px;
  font-size: 10px; color: #fff; background: rgba(0,0,0,0.45);
  padding: 1px 6px; border-radius: 2px; z-index: 500;
}

/* Report portlet */
.report-portlet { flex: 1; min-height: 60px; display: flex; flex-direction: column; position: relative; }
.report-portlet.hidden { display: none !important; }
.report-scroll { flex: 1; min-height: 0; overflow: auto; }

/* Report Table */
.report-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; table-layout: auto; }
.report-table thead th {
  padding: 5px 8px; text-align: center; font-weight: 750;
  border: 1px solid #e5e5e5; color: var(--primary);
  position: sticky; top: 0; z-index: 3;
  background: #ffffff;
  overflow: hidden;
}
.report-table .hdr-group th { top: 0; z-index: 4; }
.report-table .hdr-cols th { top: var(--hdr-group-height, 28px); z-index: 4; }
.report-table .hdr-group th.hdr-num { top: 0; z-index: 5; }
.report-table thead th .th-resize {
  position: absolute; top: 0; right: -2px; width: 5px; height: 100%;
  cursor: col-resize; z-index: 5;
}
.report-table thead th .th-resize:hover { background: rgba(0,40,84,0.15); }
.hdr-group th { font-size: 12px; }
.hdr-cols th { font-size: 11px; white-space: normal; line-height: 1.3; }
.hdr-num { width: 30px; }

.report-table tbody td:first-child { color: var(--primary); font-weight: 500; }
.report-table tbody tr.row-total { background: #d7d7d7 }
.report-table tbody td.date-cell { text-align: left; padding-left: 12px; vertical-align: middle; }

.report-table tbody td {
  padding: 7px 8px; border: 1px solid #dde2e8; white-space: nowrap; font-size: 12px;
}
.report-table tbody td.address-cell {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 350px;
}
.report-table tbody tr:hover { background: var(--row-hover); }
.report-table tbody tr.row-selected { background: #cde4f7; }
.report-table tbody tr.row-selected:hover { background: #b8d8f0; }
.report-table tbody tr.row-total td { font-weight: 700; }

/* Pagination */
.report-pagination {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  border-top: 0;
  background: transparent;
  font-size: 11px;
  color: var(--txc3);
}
.pg-floating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border: 1px solid #b8c6d6;
  border-radius: 7px;
  background: #eef3f8;
  box-shadow: 0 2px 7px rgba(37, 66, 97, 0.25);
}
.pg-info {
  min-width: 30px;
  text-align: center;
  color: #5f7898;
}
.pg-btn {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c6088;
  cursor: pointer;
}
.pg-btn-icon .icon {
  width: 10px;
  height: 10px;
}
.pg-btn:hover { opacity: 0.8; }
.pg-size {
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  font-size: 11px;
  height: 14px;
  line-height: 14px;
  color: #5f7898;
  background: transparent;
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  cursor: pointer;
}
.pg-size:focus { outline: none; }

/* ===== SCROLLBAR ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: #8d939b #d4d8de;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
  background: #d4d8de;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: #8d939b;
  border-radius: 999px;
  border: 2px solid #d4d8de;
}
::-webkit-scrollbar-thumb:hover { background: #777f88; }

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.icon-placeholder {
    border: 0;
    background-color: transparent;
}

.icon-calendar { background-image: url("assets/icons/calendar.png"); }
.icon-vehicle { background-image: url("assets/icons/vehicle.png"); }
.icon-driver { background-image: url("assets/icons/driver.png"); }
.icon-geozone { background-image: url("assets/icons/geozone.png"); }
.icon-route { background-image: url("assets/icons/route.png"); }
.icon-search { background-image: url("assets/icons/search.png"); }
.icon-folder { background-image: url("assets/icons/folder.png"); }
.icon-list { background-image: url("assets/icons/list.png"); }
.icon-lock { background-image: url("assets/icons/lock.png"); }
.icon-messages { background-image: url("assets/icons/messages.png"); }
.icon-help { background-image: url("assets/icons/help.png"); }
.icon-fullscreen { background-image: url("assets/icons/fullscreen.png"); }
.icon-devideVert { background-image: url("assets/icons/devideVert.png"); }
.icon-devideHor { background-image: url("assets/icons/devideHor.png"); }
.icon-pg-first { background-image: url("assets/icons/ll.png"); }
.icon-pg-prev { background-image: url("assets/icons/l.png"); }
.icon-pg-next { background-image: url("assets/icons/r.png"); }
.icon-pg-last { background-image: url("assets/icons/rr.png"); }
.icon-clock { background-image: url("assets/icons/clock.png"); }

/* ===== VEHICLE POPUP ON MAP ===== */
.vp-popup .leaflet-popup-content-wrapper {
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  padding: 0;
}
.vp-popup .leaflet-popup-content {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}
.vp-popup .leaflet-popup-close-button {
  top: 6px;
  right: 6px;
  color: #666;
  font-size: 18px;
}
.vp-card {
  padding: 10px 14px;
  min-width: 200px;
}
.vp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e0e0e0;
}
.vp-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}
.vp-title {
  font-weight: 300;
  font-size: 11px;
  color: #cc2900;
}
.vp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}
.vp-label {
  color: #888;
  white-space: nowrap;
}
.vp-value {
  font-weight: 500;
  text-align: right;
}
.vp-address {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #e0e0e0;
  color: #555;
  font-size: 11px;
  line-height: 1.4;
}

/* ===== DATE PICKER MODAL ===== */
.dp-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(237,236,236,0.77);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.dp-modal-overlay.open {
  display: flex;
}
.dp-modal {
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  min-width: 580px;
  max-width: 640px;
  overflow: hidden;
}

/* Header */
.dp-modal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bgc3);
  color: #fff;
  font-size: 13px;
}
.dp-modal-label {
  white-space: nowrap;
}
.dp-modal-range {
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.dp-modal-dash {
  color: #8095ac;
}
.dp-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  padding: 0 4px;
}
.dp-modal-close:hover { opacity: 1; }

/* Quick period row */
.dp-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 13px;
}
.dp-quick-left {
  display: flex;
  gap: 12px;
}
.dp-qp {
  cursor: pointer;
  color: var(--txc3);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.dp-qp:hover { color: var(--txc2); }
.dp-qp.dp-qp-selected {
  color: var(--txc2);
  border-bottom-color: var(--primary);
}
.dp-quick-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--txc2);
}
.dp-minutes-input {
  width: 52px;
  height: 26px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  outline: none;
  padding: 0 4px;
}
.dp-minutes-input:focus { border-color: var(--primary-light); }

/* Calendars container */
.dp-calendars {
  display: flex;
  gap: 24px;
  padding: 8px 20px 4px;
}
.dp-cal {
  flex: 1;
}
.dp-cal-label {
  font-size: 12px;
  color: var(--txc3);
  margin-bottom: 6px;
}
.dp-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.dp-cal-arrow {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--txc3);
  padding: 2px 8px;
  line-height: 1;
}
.dp-cal-arrow:hover { color: var(--txc2); }
.dp-cal-month {
  font-size: 14px;
  font-weight: 500;
  color: var(--txc2);
  min-width: 130px;
  text-align: center;
}

/* Calendar grid */
.dp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.dp-cal-grid .dp-day-hdr {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
  color: var(--txc3);
  text-transform: uppercase;
}
.dp-cal-grid .dp-day-hdr.dp-weekend {
  color: #2196f3;
}
.dp-cal-grid .dp-day {
  text-align: center;
  font-size: 13px;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: background 0.15s;
}
.dp-cal-grid .dp-day:hover {
  background: #e8f2fc;
}
.dp-cal-grid .dp-day.dp-other {
  color: #bbb;
}
.dp-cal-grid .dp-day.dp-weekend-day {
  color: #2196f3;
}
.dp-cal-grid .dp-day.dp-other.dp-weekend-day {
  color: #90caf9;
}
.dp-cal-grid .dp-day.dp-today {
  border: 2px solid var(--primary);
}
.dp-cal-grid .dp-day.dp-selected {
  background: var(--primary);
  color: #fff !important;
  border-radius: 25%;
}

/* Time row */
.dp-time-row {
  display: flex;
  align-items: center;
  padding: 10px 20px 6px;
  gap: 0;
}
.dp-time-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dp-time-end {
  margin-left: auto;
}
.dp-time-icon {
  font-size: 16px;
  color: var(--txc3);
}
.dp-time-input {
  width: 48px;
  height: 26px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  outline: none;
  padding: 0;
}
.dp-time-input:focus { border-color: var(--primary-light); }

/* Timezone checkbox */
.dp-tz-row {
  padding: 8px 20px;
}
.dp-tz-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--txc2);
  cursor: pointer;
}
.dp-tz-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Apply button */
.dp-apply-row {
  padding: 12px 20px 20px;
}
.dp-apply-btn {
  display: block;
  margin: 0 auto;
  padding: 10px 40px;
  background: var(--bgc3);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.dp-apply-btn:hover {
  background: var(--primary-light);
}