/* TY Life administrator design, 2026-10-01. Presentation only; business rules stay in the API. */
body:has(.workspace), body:has(.ty-login) {
  --background: #f5f7fb;
  --foreground: #172033;
  --border: #dce4ef;
  --sidebar: #fff;
  --sidebar-foreground: #475569;
  --sidebar-border: #e2e8f0;
  --sidebar-accent: #eff6ff;
  --sidebar-accent-foreground: #2563eb;
  --sidebar-primary: #2563eb;
  --sidebar-primary-foreground: #fff;
  --work-padding: 20px;
  --work-title: 28px;
  --work-text: 14px;
  --work-control-height: 40px;
  --work-gap: 20px;
  color: #172033;
  background: #f5f7fb;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
[data-slot="sidebar-wrapper"]:has(.workspace) { background: #f5f7fb; }
[data-slot="sidebar-inner"]:has(.brand), [data-slot="sidebar"]:has(.brand) {
  background: #fff; color: #475569;
}
[data-slot="sidebar-container"]:has(.brand) { border-right: 1px solid #e2e8f0; }
.brand { padding: 24px 20px; }
.nav-label { padding: 12px 24px 8px; color: #94a3b8; font-size: 11px; letter-spacing: .04em; }
.work-groups .nav-item { margin: 2px 12px; padding: 11px 14px; color: #475569; font-size: 13px; border-radius: 6px; }
.work-groups .nav-item:hover { background: #f1f5f9; color: #1d4ed8; }
.work-groups .nav-item.active { background: #eff6ff; color: #2563eb; font-weight: 700; box-shadow: inset 3px 0 #2563eb; }
[data-sidebar="sidebar"] .work-groups .nav-item.active { background: #eff6ff; color: #2563eb; }
.work-group-links { border-color: #e2e8f0; }
.nav-item svg { width: 17px; height: 17px; }
.sidebar-guide { margin: 20px 16px; padding: 16px; border-color: #e2e8f0; background: #f8fafc; color: #64748b; }
[data-slot="sidebar-content"] .sidebar-guide { background: #f8fafc; border-color: #e2e8f0; }
[data-sidebar="sidebar"] .sidebar-guide strong { color: #334155; }
[data-sidebar="sidebar"] .sidebar-guide p { color: #64748b; }
.sidebar-guide strong { color: #334155; font-size: 12px; }
.sidebar-guide p, .sidebar-guide svg { color: #64748b; }
.profile { padding: 16px 20px; border-color: #e2e8f0; color: #334155; font-size: 13px; }
.profile > span { background: #eff6ff; color: #2563eb; border-radius: 8px; }
.profile small { color: #94a3b8; font-size: 11px; }
.workspace .topbar { height: 56px; min-height: 56px; padding: 0 32px; color: #64748b; font-size: 12px; border-color: #e2e8f0; }
.workspace .content { max-width: none; width: 100%; padding: 28px 32px 40px; box-sizing: border-box; }
.workspace .workspace-session-bar { margin-bottom: 16px; }
.workspace .content :is(h1,.page-heading h1,.admin-heading h1) { color: #172033; font-size: var(--work-title); letter-spacing: -.04em; }
.workspace .content :is(h2,h3) { color: #1e293b; }
.workspace .content :is(.page-heading p,.admin-heading p,.eyebrow,.admin-eyebrow) { color: #718096; }
.workspace .content :is(.panel,.admin-card,.consultation-card,.request-link-card) {
  border: 1px solid #dce4ef; border-radius: 8px; box-shadow: none; background: #fff;
}
.workspace .content :is(.panel,.admin-card) { padding: 20px; }
.workspace .content :is(.primary,button.primary) { background: #2563eb; border-color: #2563eb; color: #fff; border-radius: 6px; }
.workspace .content .primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.workspace .content .secondary { border-color: #dce4ef; background: #fff; color: #475569; border-radius: 6px; }
.workspace .content .secondary:hover:not(:disabled) { background: #f8fafc; border-color: #b9c8dc; }
.workspace .content :is(button,a,input,select,textarea):focus-visible { outline-color: #2563eb; }
.workspace .content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) {
  border: 1px solid #dce4ef; border-radius: 6px; background: #fff; color: #334155; padding: 8px 12px;
}
.workspace .content :is(input,select,textarea):focus { border-color: #93b4fa; }
.workspace .content .employee-search input { border: 0; background: transparent; }
.workspace .content :is(.employee-toolbar,.admin-card-title,.admin-filters) { gap: 12px; }
.workspace .content .employee-toolbar { padding: 12px 0; font-size: 12px; border-color: #e2e8f0; }
.workspace .content nav.employee-toolbar { flex-direction: row; justify-content: flex-start; gap: 8px; }
.workspace .content .employee-section-title { padding: 12px 0; font-size: 16px; border-color: #e2e8f0; }
.workspace .content .admin-table-wrap { margin-inline: 0; }
.workspace .content :is([data-slot="table-container"],.admin-table-wrap) { border: 1px solid #e2e8f0; border-radius: 4px; }
.workspace .content :is(table,[data-slot="table"]) { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 18px; text-align: left; }
.workspace .content :is(th,td,[data-slot="table-head"],[data-slot="table-cell"]) {
  box-sizing: border-box; padding: 6px 10px; border: 1px solid #e2e8f0; height: 32px; vertical-align: middle;
}
.workspace .content :is(th,[data-slot="table-head"]) { height: 36px; background: #edf2f8; color: #475569; font-size: 12px; font-weight: 700; white-space: nowrap; }
.workspace .content tbody tr:nth-child(even) { background: #f8fafd; }
.workspace .content tbody tr:hover { background: #eff6ff; }
.workspace .content tbody tr:hover td { background: inherit; }
.workspace .content tr[data-state="selected"] { background: #eff6ff; }
.workspace .content td .text-link { color: #2563eb; font-size: 12px; min-height: 18px; white-space: nowrap; }
.workspace .content :is(.employee-status,.admin-state) { padding: 2px 6px; border-radius: 4px; font-size: 11px; line-height: 16px; white-space: nowrap; }
.workspace .content :is(.employee-summary,.admin-stats,.stats) { gap: 12px; }
.workspace .content :is(.employee-summary>div,.admin-stats>div,.stat) { border: 1px solid #dce4ef; border-radius: 8px; padding: 16px 20px; background: #fff; }
.workspace .content :is(.employee-summary strong,.admin-stats strong) { font-size: 26px; color: #172033; margin-top: 6px; }
.workspace .content :is(.employee-tabs,.work-tabs) { gap: 4px; border-bottom: 1px solid #e2e8f0; }
.workspace .content .employee-tabs :is(a,button) { border-radius: 6px 6px 0 0; font-size: 13px; padding: 9px 14px; }
.workspace .content .employee-tabs :is(.active,[aria-selected="true"]) { background: #eff6ff; border-color: #93b4fa; color: #2563eb; }
.workspace .content :is(.employee-footer,.admin-table-footer) { color: #718096; font-size: 12px; padding: 12px 0 0; }
.workspace .content :is(.work-scope,.admin-selected) { background: #f8fafc; border-color: #e2e8f0; border-radius: 6px; }
.workspace .content .customer-list-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; align-items: start; }
.workspace .content .customer-list-layout.has-selection { grid-template-columns: minmax(0,1fr) 340px; }
.workspace .content .customer-list-layout > .panel { margin: 0; min-width: 0; }
.workspace .content .customer-select { min-height: 18px; padding: 0; background: none; border: 0; text-align: left; font-size: 12px; line-height: 18px; }
.workspace .content tr:has(.customer-select.is-selected) { background: #eff6ff; }
.workspace .content .customer-summary-panel { position: sticky; top: 16px; display: grid; gap: 16px; }
.workspace .content .customer-summary-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace .content .customer-summary-panel header h2 { font-size: 18px; }
.workspace .content .customer-summary-panel p { margin: 0; }
.workspace .content .customer-summary-help { color: #718096; font-size: 12px; line-height: 1.6; }
.workspace .content .customer-summary-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
.workspace .content .customer-summary-counts > div { background: #f8fafc; padding: 12px; border-radius: 6px; }
.workspace .content .customer-summary-counts dt { font-size: 12px; color: #64748b; }
.workspace .content .customer-summary-counts dd { margin: 4px 0 0; font-weight: 700; font-size: 20px; }
.workspace .content .customer-summary-panel ul { list-style: none; margin: 8px 0 0; padding: 0; }
.workspace .content .customer-summary-panel li { padding: 10px 0; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.workspace .content .customer-summary-panel li strong { max-width: 60%; overflow-wrap: anywhere; }
.workspace .content .calendar-day { border-color: #e2e8f0; border-radius: 4px; background: #fff; }
.workspace .content .calendar-day.selected { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.workspace .content .consultation-month-header { color: #334155; }
.workspace .content .consultation-dialog { border: 1px solid #dce4ef; border-radius: 12px; background: #f8fafc; }
.workspace .content dialog::backdrop { background: rgb(15 23 42 / 32%); }
.workspace .content .consultation-card { padding: 16px; }
.workspace .content .consultation-dialog-footer { background: #fff; border-color: #e2e8f0; }
.ty-login { background: #f5f7fb; }
.ty-login .ty-login-card { border: 1px solid #dce4ef; border-radius: 12px; box-shadow: 0 8px 32px rgb(15 23 42 / 5%); }
.ty-login .ty-login-button { border-radius: 6px; }
/* Keep dense records inside their scroll container on small screens. */
@media (min-width: 1001px) {
  .workspace .content :is(td,[data-slot="table-cell"]) { white-space: nowrap; }
  .workspace .content td :is(small,.employee-body) { white-space: normal; max-width: 320px; }
}
@media (max-width: 1000px) {
  .workspace .content { padding: 24px; }
  .workspace .content :is(.employee-columns,.consultation-layout) { grid-template-columns: minmax(0,1fr); }
  .workspace .content .work-scope { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; padding: 16px; }
  .workspace .content .work-scope > :is(label,p,a) { width: 100%; min-width: 0; flex: initial; margin: 0; white-space: normal; overflow-wrap: anywhere; }
  .workspace .content .customer-list-layout.has-selection { grid-template-columns: minmax(0,1fr); }
  .workspace .content .customer-summary-panel { position: static; grid-row: 1; }
}
@media (max-width: 767px) {
  .workspace .content { padding: 16px 12px 32px; --work-title: 24px; --work-control-height: 44px; --work-gap: 16px; }
  .workspace .topbar { padding-inline: 12px; }
  .workspace .content :is(.panel,.admin-card) { padding: 16px; }
  .workspace .content :is(.employee-info,.employee-summary,.admin-stats) { gap: 8px; }
  .workspace .content :is(.page-heading,.admin-heading) { flex-direction: column; align-items: stretch; }
  .workspace .content table { min-width: 640px; }
  .workspace .content .shipment-responsive table { min-width: 0; }
  .workspace .content :is(.employee-toolbar,.admin-filters) { flex-wrap: wrap; }
  .workspace .content .employee-search { width: 100%; }
  .workspace .content .employee-search input { min-width: 0; width: 100%; }
  .workspace .content td .text-link { display: inline-flex; align-items: center; min-height: 32px; }
}
