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

/* Figma layout release. Real records, existing routes and API permissions are retained. */
.ty-admin-shell { --sidebar-width:240px; --work-control-height:44px; --work-gap:20px; --work-padding:16px; }
.ty-admin-shell .workspace { background:#f5f7fb; min-width:0; }
.ty-admin-shell [data-slot="sidebar-header"] { padding:0; }
.ty-admin-shell .brand { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:24px 24px 14px; }
.ty-admin-shell .brand strong { color:#2563eb; font-size:26px; line-height:39px; letter-spacing:-.04em; }
.ty-admin-shell .brand small { color:#64748b; font-size:12px; font-weight:400; }
.ty-admin-shell .nav-label { padding:8px 24px 12px; }
.ty-admin-shell .work-groups { display:grid; gap:12px; padding:0 24px; }
.ty-admin-shell .work-group .nav-item { margin:0; width:100%; min-height:44px; padding:12px; font-size:14px; border-radius:4px; box-shadow:none; gap:8px; }
.ty-admin-shell .work-group-toggle { display:flex; align-items:center; justify-content:space-between; }
.ty-admin-shell .work-group-indicator { font-size:14px; color:#94a3b8; }
.ty-admin-shell .work-group-links { margin:4px 0 0; padding:0 0 0 8px; border:0; display:grid; gap:2px; }
.ty-admin-shell .work-group-links .nav-item { font-size:12px; min-height:36px; padding:8px 12px; }
.ty-admin-shell .work-group-links .nav-item.active { color:#1d4ed8; background:#eff6ff; }
.ty-admin-shell .profile { border:0; padding:24px; font-size:12px; color:#64748b; }
.ty-admin-shell .profile small { margin-top:4px; }
.ty-admin-shell .topbar { background:#f5f7fb; border:0; height:76px; min-height:76px; padding:24px 40px 16px; }
.ty-admin-shell .workspace-session-actions { margin-left:auto; display:flex; align-items:center; gap:16px; font-size:13px; }
.ty-admin-shell .workspace-session-actions a,.ty-admin-shell .session-logout { color:#64748b; padding:4px 0; background:none; border:0; font-size:13px; cursor:pointer; }
.ty-admin-shell .workspace-session-actions :is(a,button):hover { color:#2563eb; }
.ty-admin-shell .content { padding:8px 40px 40px; max-width:none; width:100%; }
.ty-admin-shell .content :is(.page-heading,.admin-heading) { align-items:flex-start; padding:0; }
.ty-admin-shell .content :is(h1,.page-heading h1) { color:#0f172a; line-height:42px; font-size:28px; }
.ty-admin-shell .content .page-heading p { margin:6px 0 0; color:#64748b; font-size:13px; line-height:20px; }
.ty-admin-shell .content :is(.panel,.admin-card) { border-color:#dce3ee; padding:16px; border-radius:8px; margin:0; }
.ty-admin-shell .content :is(.panel h2,.admin-card h2) { font-size:16px; line-height:24px; margin:0 0 12px; }
.ty-admin-shell .content :is(.primary,.secondary) { min-height:44px; border-radius:8px; padding:10px 18px; font-size:14px; }
.ty-admin-shell .content .page-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ty-admin-shell .content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select) { min-height:44px; }
.ty-admin-shell .content :is(.employee-tabs,.work-tabs,.customer-section-nav) { background:#fff; display:flex; flex-wrap:nowrap; overflow-x:auto; gap:8px; padding:0; border-bottom:1px solid #e3e8ef; }
.ty-admin-shell .content .employee-tabs :is(a,button) { flex:none; font-size:13px; min-height:44px; padding:12px 8px; border:0; border-radius:0; background:transparent; color:#64748b; white-space:nowrap; }
.ty-admin-shell .content .employee-tabs :is([aria-current="page"],[aria-selected="true"],.active) { color:#2563eb; font-weight:700; background:transparent; box-shadow:inset 0 -2px #2563eb; }
.ty-admin-shell .content .employee-toolbar { margin:0; }
.ty-admin-shell .content :is(.employee-summary,.admin-stats,.inbox-metrics) { gap:16px; }
.ty-admin-shell .content :is(.employee-summary>div,.admin-stats>div,.inbox-metric) { padding:20px 24px; border:1px solid #e4e9f0; border-radius:12px; background:#fff; box-shadow:none; }
.ty-admin-shell .content :is(.employee-summary strong,.admin-stats strong,.inbox-metric strong) { color:#0f172a; font-size:28px; }
.ty-admin-shell .content :is(.work-scope,.work-preview-note) { padding:12px 16px; font-size:12px; background:#f8fafc; }
.ty-admin-shell .content .work-scope { border:1px solid #dce3ee; }
.ty-admin-shell .content .work-intake { max-width:none; }
.ty-admin-shell .content .work-intake .work-inline-help { padding:0; }
.ty-admin-shell .content :is(.employee-info,.employee-columns,.admin-grid) { gap:20px; }
.ty-admin-shell .content .employee-info { margin:0; }
.ty-admin-shell .content .employee-info>div { background:#f8fafc; border:1px solid #e3e8ef; padding:12px; border-radius:4px; }
.ty-admin-shell .content :is([data-slot="table-container"],.admin-table-wrap,.inbox-table-wrap) { max-width:100%; overflow:auto; border:1px solid #e3e8ef; border-radius:0; margin:0; }
.ty-admin-shell .content :is(table,[data-slot="table"]) { border-collapse:collapse; font-size:12px; line-height:18px; width:100%; }
.ty-admin-shell .content :is(th,[data-slot="table-head"]) { height:36px; padding:8px; background:#eef2f7; color:#475569; font-weight:700; }
.ty-admin-shell .content :is(td,[data-slot="table-cell"]) { height:32px; padding:6px 8px; border:1px solid #e3e8ef; color:#475569; vertical-align:middle; }
.ty-admin-shell .content tbody tr:nth-child(even) { background:#fafbfd; }
.ty-admin-shell .content tbody tr:hover { background:#eff6ff; }
.ty-admin-shell .content td :is(.text-link,.secondary) { display:inline-flex; align-items:center; min-height:18px; height:auto; margin:0; padding:0; font-size:12px; line-height:18px; background:none; border:0; color:#2563eb; border-radius:0; }
.ty-admin-shell .content .employee-section-title { padding:0 0 12px; border:0; }
.ty-admin-shell .content .admin-empty { padding:16px 0; text-align:left; }
.ty-admin-shell .content .admin-empty p { margin:4px 0 0; }
.ty-admin-shell .content .staff-roles-card { display:grid; gap:12px; }
.ty-admin-shell .content .staff-roles-table td form { display:block; min-width:0; }
.ty-admin-shell .content .staff-roles-table select { min-height:28px; height:28px; padding:2px 8px; font-size:12px; }
.ty-admin-shell .content .staff-roles-table td { padding:2px 8px; }
.ty-admin-shell .content .request-links { max-width:none; margin:0; }
.ty-admin-shell .content .request-links-grid { grid-template-columns:minmax(0,1fr); }
.ty-admin-shell .content .request-link-card { display:grid; gap:12px; grid-template-columns:minmax(0,1fr) auto; }
.ty-admin-shell .content .request-link-card>:is(label,.request-link-description) { grid-column:1/-1; }
.ty-admin-shell .content .request-link-title { color:#2563eb; }
.ty-admin-shell .content .request-link-title svg { display:none; }
.ty-admin-shell .content .request-link-title h2 { margin:0; }
.ty-admin-shell .content .request-link-card>.text-link { justify-self:end; align-self:center; }
.ty-admin-shell .content .request-links-notice:empty { display:none; }
.ty-admin-shell .content .customer-db-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12px; }
.ty-admin-shell .content .customer-db-summary>span { padding:8px 12px; background:#fff; border:1px solid #dbe3ed; border-radius:4px; }
.ty-admin-shell .content .customer-db-summary strong { color:#2563eb; }
.ty-admin-shell .content .customer-db-filters { display:flex; flex-wrap:wrap; gap:8px; padding:0 0 16px; }
.ty-admin-shell .content .customer-db-filters .employee-search { flex:1; min-width:180px; max-width:420px; }
.ty-admin-shell .content .customer-db-filters>span { margin-left:auto; }
.ty-admin-shell .content .customer-list-layout.has-selection { grid-template-columns:minmax(0,1fr) 390px; gap:16px; }
.ty-admin-shell .content .customer-grid-panel { padding:16px; }
.ty-admin-shell .content .customer-grid-panel table { table-layout:fixed; }
.ty-admin-shell .content .customer-grid-panel th:nth-child(1) { width:90px; }
.ty-admin-shell .content .customer-grid-panel th:nth-child(2) { width:130px; }
.ty-admin-shell .content .customer-grid-panel th:nth-child(4) { width:96px; }
.ty-admin-shell .content .customer-grid-panel td { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ty-admin-shell .content .customer-grid-panel th:nth-child(-n+2),.ty-admin-shell .content .customer-grid-panel td:nth-child(-n+2) { position:sticky; left:0; z-index:1; background:#fff; }
.ty-admin-shell .content .customer-grid-panel th:nth-child(2),.ty-admin-shell .content .customer-grid-panel td:nth-child(2) { left:90px; border-right:1px solid #cbd5e1; }
.ty-admin-shell .content .customer-grid-panel th:nth-child(-n+2) { background:#eef2f7; z-index:2; }
.ty-admin-shell .content .customer-grid-panel tr:has(.is-selected) td { background:#eff6ff; }
.ty-admin-shell .content .customer-summary-panel { gap:12px; border-radius:6px; }
.ty-admin-shell .content .customer-section-nav { background:transparent; }
.ty-admin-shell .content .customer-contract-section { margin-top:-20px; }
.ty-admin-shell .content .customer-page [id^="customer-"] { scroll-margin-top:20px; }
.ty-admin-shell .content .consultation-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.ty-admin-shell .content .summary-card { display:flex; flex-direction:column; align-items:flex-start; gap:12px; text-align:left; padding:24px; border-radius:12px; color:#64748b; font-size:13px; }
.ty-admin-shell .content .summary-card strong { color:#0f172a; font-size:28px; }
.ty-admin-shell .content .summary-card small { color:#94a3b8; font-size:11px; }
.ty-admin-shell .content .summary-card.is-active { border-color:#93b4fa; }
.ty-admin-shell .content .consultation-list-panel { display:grid; gap:16px; padding:24px; border-radius:12px; }
.ty-admin-shell .content .consultation-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:16px; background:#f8fafc; margin:0; }
.ty-admin-shell .content .consultation-controls label { display:grid; gap:6px; min-width:140px; font-size:12px; }
.ty-admin-shell .content .consultation-controls input { width:auto; }
.ty-admin-shell .content .employee-page.consultation-list-page .consultation-controls button { width:auto; }
.ty-admin-shell .content .employee-page.consultation-list-page .consultation-pagination button { width:auto; }
.ty-admin-shell .content .list-result-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ty-admin-shell .content .list-result-bar h2 { margin:0; font-size:14px; }
.ty-admin-shell .content .list-result-bar :is(span,small) { color:#64748b; font-size:12px; }
.ty-admin-shell .content .consultation-spreadsheet { min-width:0; }
.ty-admin-shell .content .consultation-spreadsheet table { min-width:840px; }
.ty-admin-shell .content .receipt-row-details summary { cursor:pointer; white-space:nowrap; font-size:11px; }
.ty-admin-shell .content .receipt-row-details[open] { min-width:220px; white-space:normal; }
.ty-admin-shell .content .consultation-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:4px; }
.ty-admin-shell .content .consultation-pagination>div { display:flex; gap:8px; }
.ty-admin-shell .content .consultation-calendar-disclosure>summary { cursor:pointer; color:#2563eb; font-weight:650; }
.ty-admin-shell .content .consultation-calendar-disclosure .consultation-calendar { border:0; padding:20px 0 0; max-width:760px; }
.ty-admin-shell .content .inbox-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ty-admin-shell .content .inbox-table { min-width:760px; table-layout:auto; }
.ty-admin-shell .content .inbox-table td { padding:6px 8px; white-space:nowrap; }
.ty-admin-shell .content .inbox-title { display:block; font-size:12px; margin:0; max-width:360px; overflow:hidden; text-overflow:ellipsis; }
.ty-admin-shell .content .inbox-filters { padding:0 0 16px; border:0; }
.ty-admin-shell .content .inbox-count { padding:0 0 12px; }
.ty-admin-shell .content .complaint-table { min-width:840px; table-layout:auto; }
.ty-admin-shell .content .complaint-table :is(th,td) { font-size:12px; }
.ty-admin-shell .content .complaint-table td small { display:inline; margin-left:6px; font-size:11px; }
.ty-admin-shell .content .complaint-table :is(th,td):nth-child(n) { width:auto; min-width:0; max-width:none; }
.ty-admin-shell .content .complaint-table .complaint-status-select { min-height:28px; height:28px; padding:2px 6px; font-size:12px; }
.ty-admin-shell .content .complaint-table td:has(.complaint-status-select) { padding-block:2px; }
.ty-admin-shell .content .complaint-table .inbox-category { margin:0; padding:0; font-size:12px; color:#475569; background:none; }
.ty-admin-shell .content .template-catalog-layout { grid-template-columns:minmax(0,1fr) 340px; align-items:start; }
.ty-admin-shell .content .template-preview { position:sticky; top:16px; }
.ty-admin-shell .content .contract-source-page { display:grid; gap:20px; }
.ty-login .ty-login-card { border-color:#dce3ee; box-shadow:none; }
@media (max-width:1199px) {
  .ty-admin-shell .content { padding:8px 24px 32px; }
  .ty-admin-shell .topbar { padding-inline:24px; }
  .ty-admin-shell .content .customer-list-layout.has-selection { grid-template-columns:minmax(0,1fr) 320px; }
  .ty-admin-shell .content .template-catalog-layout { grid-template-columns:minmax(0,1fr); }
  .ty-admin-shell .content .template-preview { position:static; }
}
@media (max-width:1000px) {
  .ty-admin-shell .content .customer-list-layout.has-selection { grid-template-columns:minmax(0,1fr); }
  .ty-admin-shell .content .customer-summary-panel { position:static; grid-row:1; }
  .ty-admin-shell .content .consultation-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ty-admin-shell .content .complaint-adaptive-wrap { overflow:auto; }
  .ty-admin-shell .content .complaint-table :is(thead,tbody) { display:table-row-group; }
  .ty-admin-shell .content .complaint-table thead { display:table-header-group; }
  .ty-admin-shell .content .complaint-table tr { display:table-row; padding:0; }
  .ty-admin-shell .content .complaint-table :is(th,td) { display:table-cell; }
  .ty-admin-shell .content .complaint-table td::before { content:none; }
}
@media (max-width:767px) {
  .ty-admin-shell .topbar { height:64px; min-height:64px; padding:16px 12px; }
  .ty-admin-shell .content { padding:8px 12px 32px; }
  .ty-admin-shell .content :is(h1,.page-heading h1) { font-size:24px; line-height:32px; }
  .ty-admin-shell .content .page-heading { gap:12px; }
  .ty-admin-shell .content .page-actions { width:100%; }
  .ty-admin-shell .content .consultation-summary { gap:8px; }
  .ty-admin-shell .content .summary-card { padding:16px; gap:8px; }
  .ty-admin-shell .content .summary-card strong { font-size:24px; }
  .ty-admin-shell .content .consultation-list-panel { padding:16px; }
  .ty-admin-shell .content .consultation-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .ty-admin-shell .content .consultation-controls label { grid-column:1/-1; min-width:0; }
  .ty-admin-shell .content .consultation-controls :is(select,input,button) { width:100%; font-size:16px; }
  .ty-admin-shell .content .employee-page.consultation-list-page .consultation-controls button { width:100%; }
  .ty-admin-shell .content .customer-db-filters>span { width:100%; margin:0; }
  .ty-admin-shell .content .customer-grid-panel table { min-width:640px; }
  .ty-admin-shell .content .request-link-card { grid-template-columns:minmax(0,1fr); }
  .ty-admin-shell .content .request-link-card>.text-link { justify-self:start; }
  .ty-admin-shell .content .employee-info { grid-template-columns:minmax(0,1fr); }
  .ty-admin-shell .content .list-result-bar { align-items:flex-start; flex-direction:column; }
  .ty-admin-shell .content .staff-roles-table select { min-height:44px; height:44px; font-size:16px; }
  .ty-admin-shell .content :is(.employee-summary>div,.admin-stats>div,.inbox-metric) { padding:16px; }
}

/* Multiple contracts remain one complaint, with a readable selection table. */
.ty-admin-shell .complaint-contract-tools { display:flex;flex-wrap:wrap;gap:12px;align-items:end; }
.ty-admin-shell .complaint-contract-tools label { flex:1;min-width:220px; }
.ty-admin-shell .complaint-contract-tools strong { padding:12px 0;white-space:nowrap; }
.ty-admin-shell .complaint-contract-table-wrap { overflow-x:auto;max-height:360px; }
.ty-admin-shell .complaint-contract-table { width:100%;min-width:680px;border-collapse:collapse;background:white;font-size:12px; }
.ty-admin-shell .complaint-contract-table :is(th,td) { padding:8px 10px;height:44px;border:1px solid #dce3ee;text-align:left; }
.ty-admin-shell .complaint-contract-table th { position:sticky;top:0;background:#f5f7fb;z-index:1; }
.ty-admin-shell .complaint-contract-table tr.is-selected { background:#eff6ff; }
.ty-admin-shell .complaint-contract-table input[type=checkbox] { min-height:0;width:18px;height:18px;accent-color:#2563eb;cursor:pointer; }
.ty-admin-shell .complaint-contract-selection,.ty-admin-shell .complaint-linked-contracts { padding:16px;border-radius:8px;background:#eff6ff; }
.ty-admin-shell .complaint-contract-selection>div { display:flex;flex-wrap:wrap;gap:8px;margin-top:10px; }
.ty-admin-shell .complaint-contract-selection button { white-space:normal;text-align:left; }
.ty-admin-shell .complaint-confirmation ul { margin:0;padding-left:20px; }
.ty-admin-shell .complaint-contract-section p { margin:0;color:#64748b;font-size:13px; }
@media(max-width:767px){.ty-admin-shell .complaint-contract-tools label{flex-basis:100%;}.ty-admin-shell .complaint-contract-tools button{flex:1;}}
