/* vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNJfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ7QwOk1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNJfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ7QwOk1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNJfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ7QwOk1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNJfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7QwOk1Fig.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ7QwOk1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   通用中文日期/时间选择器 (与 customer-maintenance 风格一致)
   依赖各页面 :root 中定义的 --brand / --text-* / --bg-color 变量
   ============================================================ */
.dtp-wrap { position: relative; }
.dtp-wrap.open { z-index: 70; }              /* 打开时抬升, 避免被表格 sticky 表头遮住 */
.dtp-field { display: flex; align-items: center; gap: 6px; cursor: pointer; min-width: 110px; }
.dtp-field .dtp-text { font-size: 14px; font-weight: 500; color: var(--text-main); white-space: nowrap; }
.dtp-field .dtp-text.placeholder { color: var(--text-light); font-weight: 400; }
.dtp-field .dtp-caret { font-size: 18px; color: var(--text-light); transition: 0.3s; margin-left: auto; }
.dtp-wrap.open .dtp-caret { transform: rotate(180deg); color: var(--brand); }

/* 表单(抽屉)内的选择器: 沿用下划线输入风格, 占满整行 */
.dtp-field.dtp-form { height: 44px; border-bottom: 2px solid rgba(113,128,150,0.2); transition: 0.3s; }
.dtp-field.dtp-form:hover { border-bottom-color: var(--brand); }
.dtp-field.dtp-form > i:first-child { font-size: 20px; color: var(--brand); }

.dtp-pop {
  position: absolute; top: calc(100% + 12px); left: 0; width: 320px; z-index: 60;
  background: #fff; border-radius: 20px; padding: 18px;
  box-shadow: 0 20px 50px rgba(45,55,72,0.18); border: 1px solid rgba(102,126,234,0.08);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: 0.25s cubic-bezier(0.16,1,0.3,1);
}
.dtp-pop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dtp-pop.up { top: auto; bottom: calc(100% + 12px); transform: translateY(8px); }
.dtp-pop.up.show { transform: translateY(0); }

.dtp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dtp-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
.dtp-nav {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-sub); cursor: pointer; transition: 0.25s;
}
.dtp-nav:hover { background: rgba(102,126,234,0.1); color: var(--brand); }

.dtp-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.dtp-week span { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-light); padding: 4px 0; }

.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dtp-cell {
  height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-main); border-radius: 50%;
  cursor: pointer; transition: 0.2s; position: relative;
}
.dtp-cell:hover { background: rgba(102,126,234,0.12); color: var(--brand); }
.dtp-cell.empty { pointer-events: none; }
.dtp-cell.today { color: var(--brand); }
.dtp-cell.today::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
}
.dtp-cell.sel, .dtp-cell.sel:hover { background: var(--brand); color: #fff; box-shadow: 0 6px 14px var(--brand-glow); }
.dtp-cell.sel::after { background: #fff; }

.dtp-time {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed rgba(113,128,150,0.2);
}
.dtp-time > i { font-size: 20px; color: var(--brand); margin-right: 2px; }
.dtp-unit { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.dtp-sel {
  appearance: none; -webkit-appearance: none; border: none; cursor: pointer;
  background: var(--bg-color); border-radius: 10px; padding: 7px 14px;
  font-size: 14px; font-weight: 700; color: var(--text-main); font-family: inherit; outline: none;
  text-align: center; transition: 0.25s;
}
.dtp-sel:hover { background: rgba(102,126,234,0.12); color: var(--brand); }

.dtp-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.dtp-clear, .dtp-now { font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.25s; }
.dtp-clear { color: var(--text-light); }
.dtp-clear:hover { color: var(--accent-1); }
.dtp-now { color: var(--brand); }
.dtp-now:hover { opacity: 0.7; }
.dtp-ok {
  margin-left: auto; background: var(--brand); color: #fff; padding: 8px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.25s; box-shadow: 0 8px 18px var(--brand-glow);
}
.dtp-ok:hover { background: #5a6ed1; transform: translateY(-2px); }
