:root {
  --bg: #edf4ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --ink: #16324f;
  --muted: #6d7e95;
  --line: rgba(22, 50, 79, 0.12);
  --brand: #124c88;
  --brand-strong: #0d3968;
  --brand-rgb: 18, 76, 136;
  --accent: #5da2e8;
  --accent-soft: rgba(93, 162, 232, 0.14);
  --success: #226a4a;
  --warning: #a75f12;
  --danger: #9e2a2b;
  --shadow: 0 24px 56px rgba(18, 76, 136, 0.12);
  --radius: 24px;
  --radius-small: 16px;
  --font-sans: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(18, 76, 136, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(93, 162, 232, 0.18), transparent 24%),
    linear-gradient(180deg, #f5f9ff 0%, #ebf3ff 100%);
  color: var(--ink);
  font-family: var(--font-sans);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 20px auto;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
}

.hero-panel {
  padding: 32px;
  border-radius: calc(var(--radius) + 8px);
  color: #f5f9ff;
  background:
    linear-gradient(145deg, rgba(8, 34, 67, 0.96), rgba(18, 76, 136, 0.94)),
    linear-gradient(145deg, #124c88, #1e6bbb);
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
  height: fit-content;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff, #d8e9ff);
  color: var(--brand-strong);
}

.eyebrow {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 249, 255, 0.72);
}

.hero-panel h1,
.workspace h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.workspace h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
}

.hero-copy {
  margin: 18px 0 0;
  line-height: 1.7;
  color: rgba(245, 249, 255, 0.82);
}

.hero-card,
.panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  margin-top: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-head,
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-head h2,
.panel-top h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.card-head span,
.panel-top span {
  color: var(--muted);
  font-size: 13px;
}

.hero-card .card-head span {
  color: rgba(245, 249, 255, 0.68);
}

.preset-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.preset-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  text-align: left;
  padding: 14px 16px;
  color: #f5f9ff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  transition: transform 160ms ease, background 160ms ease;
}

.preset-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.preset-btn span,
.preset-btn strong {
  display: block;
}

.preset-btn span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 249, 255, 0.68);
}

.preset-btn strong {
  margin-top: 6px;
  font-size: 15px;
}

.checklist {
  margin: 16px 0 0;
  padding-left: 20px;
  line-height: 1.75;
  color: rgba(245, 249, 255, 0.82);
}

.workspace {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
}

.auth-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.select-field,
.claim-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.select-field:focus,
.claim-editor textarea:focus {
  border-color: rgba(var(--brand-rgb), 0.44);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
}

.auth-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.approve-btn,
.pay-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-btn,
.approve-btn,
.pay-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #f6f4ee;
}

.ghost-btn {
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand);
}

.danger-btn {
  background: rgba(158, 42, 43, 0.12);
  color: var(--danger);
}

.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.approve-btn:hover,
.pay-btn:hover {
  transform: translateY(-1px);
}

.status-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(23, 33, 43, 0.08);
  color: var(--muted);
}

.flash {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.6;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand-strong);
}

.flash.error {
  background: rgba(158, 42, 43, 0.12);
  color: var(--danger);
}

.flash.success {
  background: rgba(34, 106, 74, 0.12);
  color: var(--success);
}

.compact h2 {
  font-size: 24px;
}

.session-grid,
.summary-grid {
  display: grid;
  gap: 14px;
}

.session-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-grid {
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.session-block,
.summary-card,
.claim-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.session-block {
  padding: 18px;
  border-radius: 20px;
  display: grid;
  gap: 6px;
}

.session-block.wide {
  grid-column: span 2;
}

.session-label,
.summary-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.session-block strong,
.summary-value {
  font-size: 18px;
}

.session-block small {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row .tag {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand-strong);
}

.tag-row.muted .tag {
  background: rgba(23, 33, 43, 0.08);
  color: var(--muted);
}

.toolbar-inline {
  display: flex;
  gap: 12px;
}

.toolbar-wrap {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.summary-card {
  padding: 18px;
  border-radius: 20px;
}

.summary-value {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.claim-list {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.claims-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.claims-board,
.detail-shell {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(23, 33, 43, 0.1);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.subpanel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.subpanel-top h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.eyebrow.local {
  margin-top: 0;
  color: var(--muted);
}

.subtle-text {
  font-size: 13px;
  color: var(--muted);
}

.claim-card {
  border-radius: 24px;
  padding: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.claim-card.selected {
  border-color: rgba(var(--brand-rgb), 0.32);
  box-shadow: 0 16px 36px rgba(var(--brand-rgb), 0.12);
  transform: translateY(-1px);
}

.claim-head,
.claim-meta,
.claim-actions {
  display: flex;
  gap: 12px;
}

.claim-head,
.claim-actions {
  justify-content: space-between;
  align-items: flex-start;
}

.claim-title-wrap h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.claim-meta {
  flex-wrap: wrap;
  margin-top: 14px;
}

.claim-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(23, 33, 43, 0.06);
  color: var(--muted);
}

.claim-amount {
  text-align: right;
}

.claim-amount strong {
  display: block;
  font-size: 26px;
}

.tone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.tone-warning {
  background: rgba(167, 95, 18, 0.12);
  color: var(--warning);
}

.tone-success {
  background: rgba(34, 106, 74, 0.12);
  color: var(--success);
}

.tone-danger {
  background: rgba(158, 42, 43, 0.12);
  color: var(--danger);
}

.tone-neutral {
  background: rgba(23, 33, 43, 0.08);
  color: var(--muted);
}

.claim-editor {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.claim-editor textarea {
  min-height: 96px;
  resize: vertical;
}

.claim-actions {
  flex-wrap: wrap;
}

.claim-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.claim-editor.compact {
  margin-top: 14px;
}

.claim-helper {
  font-size: 13px;
  color: var(--muted);
}

.detail-panel-body,
.export-panel-body {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.detail-hero,
.detail-section,
.export-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.detail-title-wrap h3 {
  margin: 6px 0 0;
  font-size: 24px;
}

.detail-chip-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip,
.muted-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.meta-chip {
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand-strong);
}

.muted-pill {
  background: rgba(23, 33, 43, 0.08);
  color: var(--muted);
}

.detail-amount-wrap {
  min-width: 140px;
  text-align: right;
}

.detail-amount-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-amount-wrap strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.detail-amount-wrap small {
  color: var(--muted);
}

.detail-info-grid,
.detail-item-grid {
  display: grid;
  gap: 12px;
}

.detail-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-info-card,
.detail-item-card,
.detail-file-card {
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(23, 33, 43, 0.03);
}

.detail-info-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.detail-info-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-info-card strong {
  font-size: 18px;
}

.detail-info-card small {
  color: var(--muted);
  line-height: 1.5;
}

.detail-section-head,
.detail-item-head,
.detail-file-card,
.export-card-head,
.export-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.detail-section-head h4,
.export-card h4 {
  margin: 0;
  font-size: 18px;
}

.detail-section-head span,
.detail-item-meta span,
.detail-file-meta span,
.timeline-head span,
.timeline-meta span,
.export-meta span {
  color: var(--muted);
  font-size: 13px;
}

.detail-item-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.detail-item-head strong,
.detail-item-head span {
  font-size: 16px;
}

.detail-item-meta {
  display: grid;
  gap: 6px;
}

.detail-file-list,
.timeline,
.export-panel-body {
  display: grid;
  gap: 12px;
}

.detail-file-card {
  padding: 16px;
}

.detail-file-card strong {
  display: block;
  margin-bottom: 8px;
}

.detail-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-btn,
.small-btn {
  border-radius: 999px;
}

.link-btn {
  padding: 10px 14px;
  text-decoration: none;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand-strong);
  font-weight: 600;
}

.link-btn:hover {
  background: rgba(var(--brand-rgb), 0.16);
}

.small-btn {
  padding: 10px 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 0 0 6px rgba(var(--brand-rgb), 0.08);
}

.timeline-body {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(23, 33, 43, 0.03);
}

.timeline-head,
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-body p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.inline-alert {
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
}

.inline-alert.error {
  background: rgba(158, 42, 43, 0.12);
  color: var(--danger);
}

.inline-alert.success {
  background: rgba(46, 125, 92, 0.12);
  color: #2f7a57;
}

.loading-state {
  color: var(--brand-strong);
  background: rgba(var(--brand-rgb), 0.06);
  border-style: solid;
}

.tone-info {
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand);
}

.module-nav {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  width: 100%;
  border: 1px solid rgba(var(--brand-rgb), 0.12);
  border-radius: 20px;
  padding: 18px 18px 16px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.98));
  box-shadow: 0 12px 26px rgba(var(--brand-rgb), 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.24);
}

.module-card.active {
  border-color: rgba(var(--brand-rgb), 0.4);
  background: linear-gradient(180deg, rgba(229, 241, 255, 0.98), rgba(243, 249, 255, 0.98));
  box-shadow: 0 16px 34px rgba(var(--brand-rgb), 0.12);
}

.module-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-card-head strong {
  font-size: 16px;
}

.module-card-head span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.module-card p {
  margin: 12px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.field-input-inline,
.field-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-input-inline {
  min-width: 220px;
}

.field-textarea {
  min-height: 110px;
  resize: vertical;
}

.field-input-inline:focus,
.field-textarea:focus {
  border-color: rgba(var(--brand-rgb), 0.44);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
}

.admin-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions,
.detail-actions,
.board-actions,
.role-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-head-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.detail-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.form-block {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  background: #ffffff;
}

.form-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-block-head strong {
  font-size: 14px;
  color: #1b2c40;
}

.form-block-head span {
  font-size: 12px;
  color: #7c8ea4;
}

.detail-actions,
.board-actions {
  margin-top: 16px;
}

.checkbox-panel {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  background: rgba(242, 248, 255, 0.78);
  display: grid;
  gap: 14px;
}

.checkbox-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkbox-panel-head strong {
  font-size: 15px;
}

.checkbox-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.checkbox-item input {
  margin-top: 2px;
  accent-color: var(--brand);
}

.checkbox-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkbox-item strong {
  color: var(--ink);
  font-size: 14px;
}

.checkbox-item small {
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-item-inline {
  width: 100%;
}

.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.align-left {
  text-align: left;
}

.compact-action-row {
  margin-top: 16px;
  flex-wrap: wrap;
}

.employee-hero {
  align-items: center;
}

.employee-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.avatar-box {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
}

.avatar-preview,
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.avatar-preview {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(var(--brand-rgb), 0.12);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.14), rgba(93, 162, 232, 0.18));
  color: var(--brand-strong);
  font-size: 26px;
  font-weight: 700;
}

.detail-side-title {
  font-size: 24px;
}

.role-pill-row .tag {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand-strong);
}

.truncate-line {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-section {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.board-section + .board-section {
  margin-top: 2px;
}

.board-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.board-section-head h4 {
  margin: 0;
  font-size: 18px;
}

.board-section-head span {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.board-card-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.board-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
}

.board-card.selected {
  border-color: rgba(var(--brand-rgb), 0.32);
  box-shadow: 0 16px 34px rgba(var(--brand-rgb), 0.1);
}

.board-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.board-card-head strong {
  font-size: 17px;
}

.board-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(22, 50, 79, 0.06);
}

.export-card-side {
  text-align: right;
}

.export-card-side strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.export-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.export-actions {
  margin-top: 14px;
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(23, 33, 43, 0.05);
  border: 1px dashed rgba(23, 33, 43, 0.14);
}

@media (max-width: 1080px) {
  .app-shell {
    width: min(100% - 24px, 1440px);
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: static;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .claims-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .panel,
  .hero-panel {
    padding: 22px;
  }

  .auth-grid,
  .session-grid,
  .summary-grid,
  .module-nav,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .detail-info-grid,
  .detail-item-grid {
    grid-template-columns: 1fr;
  }

  .session-block.wide {
    grid-column: auto;
  }

  .claim-head,
  .claim-actions,
  .detail-hero,
  .employee-hero-main,
  .detail-file-card,
  .detail-section-head,
  .export-card-head,
  .export-actions,
  .subpanel-top {
    flex-direction: column;
  }

  .claim-amount {
    text-align: left;
  }

  .claim-toolbar {
    justify-content: flex-start;
  }

  .detail-amount-wrap,
  .export-card-side {
    text-align: left;
  }

  .checkbox-panel-head,
  .module-card-head,
  .board-card-head,
  .board-section-head {
    flex-direction: column;
  }

  .auth-actions {
    flex-direction: column;
  }

  .toolbar-inline,
  .toolbar-wrap {
    width: 100%;
  }

  .field-input-inline {
    min-width: 0;
  }
}

/* Traditional admin workspace overrides */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --ink: #1f2937;
  --muted: #66758a;
  --line: #d8e2ee;
  --brand: #165dff;
  --brand-strong: #0f4bd9;
  --brand-rgb: 22, 93, 255;
  --accent: #5b8cff;
  --accent-soft: rgba(22, 93, 255, 0.08);
  --success: #167a45;
  --warning: #b56a12;
  --danger: #c23934;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-small: 10px;
  --font-sans: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  background: #f3f6fb;
  color: var(--ink);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.flash {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1600;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.login-screen {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.login-intro,
.login-panel {
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.login-screen .login-intro {
  display: grid;
  align-content: start;
  gap: 20px;
  color: #e8f1ff;
  background-color: #123760;
  background-image: linear-gradient(180deg, #123760 0%, #184e88 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-panel {
  background: #ffffff;
  border: 1px solid #dbe6f3;
}

.login-brand {
  margin-bottom: 0;
}

.login-brand .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 16px;
}

.login-brand .brand-copy h1 {
  font-size: 30px;
  line-height: 1.25;
}

.login-screen .login-intro,
.login-screen .login-intro .brand-copy h1,
.login-screen .login-intro .brand-copy p,
.login-screen .login-intro .eyebrow,
.login-screen .login-intro strong,
.login-screen .login-intro span {
  color: #e8f1ff;
}

.login-brand .brand-copy p,
.login-brand .eyebrow,
.login-intro .eyebrow {
  color: rgba(232, 241, 255, 0.76);
}

.login-highlights {
  display: grid;
  gap: 14px;
}

.login-highlight {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-highlight strong {
  font-size: 18px;
  color: #ffffff;
}

.login-highlight span {
  line-height: 1.7;
  color: rgba(232, 241, 255, 0.8);
}

.login-panel .panel-top span,
.login-eyebrow,
.login-panel .field span {
  color: var(--muted);
}

.login-auth-grid {
  grid-template-columns: 1fr;
}

.login-actions {
  margin-top: 6px;
}

.login-actions .primary-btn {
  width: 100%;
}

.login-card {
  margin-top: 24px;
  background: #f7faff;
  border: 1px solid #dbe6f3;
}

.login-card .card-head span {
  color: var(--muted);
}

.login-card .preset-btn {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #dbe6f3;
}

.login-card .preset-btn span {
  color: var(--muted);
}

.login-card .preset-btn strong {
  color: var(--brand-strong);
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  gap: 0;
  grid-template-columns: 304px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.hero-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-width: 0;
  padding: 18px 14px 22px;
  border-radius: 0;
  color: #d8e4f4;
  background: linear-gradient(180deg, #0f2740 0%, #173b5d 100%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.05),
    10px 0 26px rgba(15, 23, 42, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 2;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1,
.hero-panel h1,
.workspace h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy p,
.hero-copy,
.workspace-subtitle {
  margin: 6px 0 0;
  line-height: 1.6;
}

.brand-copy p,
.hero-copy {
  color: rgba(216, 228, 244, 0.74);
}

.workspace h2 {
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  background: #ffffff;
  color: #123a68;
}

.eyebrow {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.no-top {
  margin-top: 0;
}

.sidebar-eyebrow,
.hero-panel .eyebrow {
  color: rgba(216, 228, 244, 0.66);
}

.hero-card,
.sidebar-panel,
.sidebar-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  min-width: 0;
}

.hero-panel .panel,
.hero-panel .hero-card,
.hero-panel .sidebar-panel,
.hero-panel .sidebar-card,
.hero-panel .session-panel,
.hero-panel .auth-panel {
  background: #213d5d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.card-head h2,
.panel-top h2,
.subpanel-top h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.hero-card .card-head span,
.hero-panel .panel-top span {
  color: rgba(216, 228, 244, 0.68);
}

.sidebar-auth-grid,
.sidebar-auth-grid .field span,
.sidebar-session-row .session-label {
  color: rgba(216, 228, 244, 0.74);
}

.sidebar-auth-grid .field input {
  background: rgba(255, 255, 255, 0.98);
}

.sidebar-actions {
  display: grid;
  gap: 10px;
}

.sidebar-actions .primary-btn,
.sidebar-actions .ghost-btn {
  width: 100%;
}

.session-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.session-actions .ghost-btn {
  width: 100%;
}

.sidebar-session-rows {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.sidebar-session-row {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.session-panel .sidebar-session-row strong,
.session-panel .sidebar-session-row small,
.session-panel .sidebar-session-row .session-label {
  color: #dfe9f6;
}

.session-panel .sidebar-session-row strong {
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.session-panel .sidebar-session-row small {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(223, 233, 246, 0.74);
  word-break: break-word;
}

.sidebar-session-tags .tag-row {
  gap: 6px;
}

.session-panel .tag-row .tag {
  background: rgba(255, 255, 255, 0.12);
  color: #eaf2ff;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 12px;
}

.module-nav,
.sidebar-nav {
  margin-top: 12px;
  grid-template-columns: 1fr;
  gap: 8px;
}

.module-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  color: #d8e4f4;
  min-width: 0;
}

.module-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.module-card.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(22, 93, 255, 0.24), rgba(255, 255, 255, 0.06));
  box-shadow: inset 3px 0 0 #7fb1ff;
}

.module-card-head strong,
.module-card p,
.module-card-head span {
  color: inherit;
}

.module-card-head span {
  font-size: 12px;
  color: #a9c1dd;
  flex: 0 0 auto;
}

.sidebar-nav .module-card p {
  display: none;
}

.workspace {
  min-width: 0;
  min-height: 100vh;
  gap: 16px;
  padding: 18px 24px 24px;
  align-content: start;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  background: #f3f6fb;
}

.workspace-header-panel {
  min-width: 0;
  padding: 14px 18px;
  align-self: start;
}

.workspace-header-content,
.workspace-header-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.workspace-header-content {
  flex-wrap: wrap;
  align-items: center;
}

.workspace-header-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-eyebrow {
  margin-top: 0;
  color: var(--brand);
}

.workspace-subtitle {
  color: var(--muted);
}

.panel {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.claims-panel {
  min-width: 0;
  padding: 22px;
}

.panel-top,
.subpanel-top,
.board-section-head,
.detail-section-head,
.export-actions,
.claim-actions,
.claim-head,
.claim-meta,
.toolbar-inline,
.toolbar-wrap {
  align-items: center;
}

.panel-top,
.subpanel-top,
.board-section-head,
.detail-section-head {
  flex-wrap: wrap;
}

.panel-top {
  gap: 12px 16px;
}

.panel-top > div:first-child {
  min-width: 0;
}

.summary-grid {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: none;
}

.summary-label {
  color: var(--muted);
}

.summary-value {
  margin-top: 10px;
  font-size: 24px;
}

.claims-layout {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.claims-workspace {
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
}

.claims-filter-shell,
.claims-side-stack {
  display: grid;
  gap: 14px;
}

.claims-filter-shell {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dfe7f1;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.claims-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.claims-filter-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.claims-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.query-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.query-field span {
  font-size: 12px;
  color: #6a7b92;
}

.query-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.claims-summary-grid {
  margin-top: 16px;
}

.employees-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.18fr);
}

.categories-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.attendance-workspace,
.employee-workspace,
.employee-secondary-grid,
.attendance-form-grid,
.attendance-detail-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.employee-secondary-grid {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.attendance-workspace {
  margin-top: 18px;
}

.attendance-form-grid,
.attendance-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.claims-board,
.detail-shell,
.detail-hero,
.detail-section,
.export-card,
.board-section,
.board-card,
.org-panel-card,
.role-admin-form-shell {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.claims-board,
.detail-shell {
  min-width: 0;
  padding: 18px;
}

.detail-panel-body,
.export-panel-body {
  margin-top: 14px;
  gap: 12px;
}

.claim-list,
.side-stack,
.claims-side-stack,
.board-card-grid {
  gap: 12px;
}

.category-workspace {
  gap: 14px;
}

.claim-card,
.board-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.claim-card.selected,
.board-card.selected {
  border-color: #b7d2ff;
  box-shadow: 0 0 0 1px rgba(22, 93, 255, 0.08);
}

.claim-title-wrap h3,
.detail-title-wrap h3 {
  font-size: 18px;
}

.claim-amount strong,
.detail-amount-wrap strong,
.detail-side-title {
  font-size: 24px;
}

.claim-meta {
  margin-top: 12px;
  flex-wrap: wrap;
}

.claim-meta span,
.board-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--muted);
}

.claim-editor {
  margin-top: 14px;
  gap: 10px;
}

.claim-helper,
.subtle-text,
.detail-info-card small,
.timeline-head span,
.timeline-meta span,
.export-meta span,
.checkbox-panel-head span,
.form-note {
  color: var(--muted);
}

button,
.primary-btn,
.ghost-btn,
.danger-btn,
.approve-btn,
.pay-btn,
.small-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1;
}

.primary-btn,
.approve-btn,
.pay-btn {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
}

.ghost-btn {
  background: #f4f8ff;
  color: var(--brand);
  border: 1px solid #d7e6ff;
}

.danger-btn {
  background: #fff3f2;
  color: var(--danger);
  border: 1px solid #ffd7d4;
}

.link-btn {
  border: 1px solid #d7e6ff;
  background: #f4f8ff;
}

.toolbar-wrap {
  gap: 8px;
}

.toolbar-wrap .field-input-inline,
.toolbar-wrap .select-field {
  min-width: 144px;
  max-width: 188px;
  min-height: 38px;
  padding: 8px 10px;
}

.toolbar-wrap .small-btn,
.toolbar-wrap .ghost-btn,
.toolbar-wrap .primary-btn {
  min-height: 38px;
  padding: 9px 14px;
}

.toolbar-compact {
  justify-content: flex-start;
}

.claims-filter-grid .field-input-inline,
.claims-filter-grid .select-field {
  min-width: 0;
  max-width: none;
}

.query-actions .ghost-btn,
.query-actions .primary-btn {
  min-width: 110px;
}

.field input,
.select-field,
.claim-editor textarea,
.field-input-inline,
.field-textarea {
  border-radius: 10px;
  border: 1px solid #d3ddea;
  padding: 10px 12px;
  background: #ffffff;
}

.field-input-inline {
  min-width: 160px;
}

.field-textarea,
.claim-editor textarea {
  min-height: 96px;
}

.admin-form {
  gap: 12px;
}

.admin-form.compact-form,
.attendance-config-form,
.employee-edit-form,
.category-edit-form {
  gap: 10px;
}

.attendance-config-form .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.attendance-rule-summary-card,
.attendance-group-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7e4f3;
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6fd 100%);
}

.attendance-rule-summary-card strong,
.attendance-group-summary-card strong {
  color: #124c88;
}

.attendance-rule-summary-card span,
.attendance-group-summary-card span {
  color: #49617d;
  line-height: 1.6;
}

.attendance-rule-validation-panel,
.attendance-group-validation-panel {
  display: grid;
  gap: 10px;
}

.attendance-rule-validation-success,
.attendance-group-validation-success {
  border: 1px solid rgba(46, 125, 92, 0.2);
}

.attendance-rule-validation-list,
.attendance-group-validation-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.attendance-rule-validation-list li + li,
.attendance-group-validation-list li + li {
  margin-top: 4px;
}

.attendance-rule-note-list,
.attendance-group-note-list {
  display: grid;
  gap: 8px;
}

.attendance-rule-note-list span,
.attendance-group-note-list span {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid #dce7f3;
  color: #50657e;
  line-height: 1.6;
}

.attendance-config-form .checkbox-item.is-readonly {
  opacity: 0.72;
}

.attendance-config-form .checkbox-item.is-leader {
  border-color: #c7dbf6;
  background: #f4f8ff;
}

.attendance-config-form .checkbox-item.is-active {
  border-color: #b9d2f0;
  background: #f4f8ff;
}

.attendance-location-field {
  min-width: 0;
}

.attendance-location-field-wide {
  grid-column: span 2;
}

.attendance-location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.attendance-location-search-row input {
  min-width: 0;
}

.attendance-location-help {
  display: block;
  margin-top: 8px;
  color: #5f6f86;
  line-height: 1.5;
}

.attendance-location-panel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d9e5f4;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
}

.attendance-location-placeholder,
.attendance-location-summary,
.attendance-location-status,
.attendance-location-error {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.6;
}

.attendance-location-placeholder,
.attendance-location-status {
  color: #5f6f86;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #d4deec;
}

.attendance-location-summary {
  margin-top: 10px;
  color: #124c88;
  background: #edf5ff;
  border: 1px solid #cfe0f7;
}

.attendance-location-error {
  color: #b43d33;
  background: #fff3f2;
  border: 1px solid #ffd4cf;
}

.attendance-location-selected {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cfe0f7;
  background: #ffffff;
}

.attendance-location-selected-head,
.attendance-location-selected-meta,
.attendance-location-selected-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.attendance-location-selected-head strong,
.attendance-location-selected-meta span {
  min-width: 0;
}

.attendance-location-selected-head span {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #124c88;
  font-size: 12px;
  white-space: nowrap;
}

.attendance-location-selected-meta {
  flex-wrap: wrap;
  color: #5f6f86;
  font-size: 13px;
}

.attendance-location-result-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.attendance-location-candidate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7e3f2;
  border-radius: 12px;
  background: #ffffff;
  color: #18324f;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.attendance-location-candidate strong,
.attendance-location-candidate span,
.attendance-location-candidate small {
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
}

.attendance-location-candidate:hover {
  border-color: #82a8d8;
  box-shadow: 0 8px 18px rgba(18, 76, 136, 0.08);
  transform: translateY(-1px);
}

.attendance-location-candidate.active {
  border-color: #124c88;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(18, 76, 136, 0.14);
}

.attendance-location-search-row .small-btn[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.attendance-config-form .checkbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attendance-config-form .checkbox-panel,
.employee-edit-form .checkbox-panel,
.category-edit-form .checkbox-panel {
  padding: 14px;
  border-radius: 12px;
}

.attendance-config-form .checkbox-grid .checkbox-item,
.attendance-config-form .checkbox-panel .checkbox-item,
.employee-edit-form .checkbox-item,
.category-edit-form .checkbox-item-inline {
  padding: 12px 14px;
  border-radius: 12px;
}

.employee-edit-form .form-grid {
  gap: 12px;
}

.category-edit-form .form-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.7fr);
}

.detail-hero,
.detail-section,
.export-card,
.board-section {
  padding: 16px;
}

.detail-info-grid,
.detail-item-grid {
  gap: 10px;
}

.detail-info-card,
.detail-item-card,
.detail-file-card,
.timeline-body {
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e2ebf5;
}

.detail-info-card,
.detail-item-card,
.detail-file-card {
  padding: 14px;
}

.detail-file-card,
.simple-list-row,
.module-card,
.claim-card,
.board-card,
.role-admin-item {
  min-width: 0;
}

.detail-file-card strong,
.simple-list-row strong,
.simple-list-row span,
.tag-row .tag,
.truncate-line {
  overflow-wrap: anywhere;
}

.hero-panel > *,
.workspace > *,
.claims-layout > *,
.employee-workspace > *,
.employee-secondary-grid > *,
.attendance-form-grid > *,
.attendance-detail-grid > * {
  min-width: 0;
}

@media (max-width: 980px) {
  .attendance-location-field-wide {
    grid-column: span 1;
  }

  .attendance-location-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendance-location-selected-head,
  .attendance-location-selected-meta,
  .attendance-location-selected-actions {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }
}

#admin-shell .hero-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
}

#admin-shell .sidebar-brand {
  margin: 0;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#admin-shell .sidebar-card,
#admin-shell .sidebar-panel {
  margin-top: 0;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#admin-shell .card-head,
#admin-shell .session-panel .panel-top {
  padding: 0 14px;
}

#admin-shell .module-nav,
#admin-shell .sidebar-session-rows {
  padding: 0 10px;
}

#admin-shell .module-card {
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 12px 10px;
  background: transparent;
}

#admin-shell .module-card.active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #79aaff;
  box-shadow: none;
}

#admin-shell .module-card-head span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#admin-shell .sidebar-session-row {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

#admin-shell .checklist {
  margin-top: 12px;
  padding: 0 18px 0 34px;
}

#admin-shell .workspace {
  padding: 0;
  background: #f5f7fa;
}

#admin-shell .workspace-header-panel {
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#admin-shell .claims-panel {
  padding: 16px 24px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#admin-shell .claims-panel > .panel-top {
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e8ef;
}

#admin-shell .claims-filter-shell {
  margin-top: 0;
  padding: 14px 0 16px;
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  border-radius: 0;
  background: transparent;
}

#admin-shell .summary-grid,
#admin-shell .detail-summary-strip,
#admin-shell .export-summary-strip {
  gap: 0;
  border: 1px solid #e3e8ef;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .summary-card,
#admin-shell .detail-stat-card {
  border: 0;
  border-right: 1px solid #e3e8ef;
  border-radius: 0;
  background: transparent;
  padding: 14px 16px;
}

#admin-shell .summary-card:last-child,
#admin-shell .detail-stat-card:last-child {
  border-right: 0;
}

#admin-shell .claims-layout {
  gap: 0;
  border: 1px solid #e3e8ef;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .claims-board,
#admin-shell .detail-shell {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

#admin-shell .claims-board {
  border-right: 1px solid #e3e8ef;
}

#admin-shell .subpanel-top {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e8ef;
}

#admin-shell .claim-list,
#admin-shell .detail-panel-body,
#admin-shell .export-panel-body {
  margin-top: 0;
}

#admin-shell .detail-panel-body,
#admin-shell .export-panel-body,
#admin-shell .claim-detail-stack,
#admin-shell .side-stack,
#admin-shell .claims-side-stack {
  gap: 0;
}

#admin-shell .detail-hero,
#admin-shell .detail-section,
#admin-shell .org-panel-card,
#admin-shell .role-admin-form-shell,
#admin-shell .board-section,
#admin-shell .board-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#admin-shell .detail-hero,
#admin-shell .detail-section,
#admin-shell .org-panel-card,
#admin-shell .role-admin-form-shell,
#admin-shell .board-section {
  padding: 16px;
}

#admin-shell .detail-section + .detail-section,
#admin-shell .org-panel-card + .org-panel-card,
#admin-shell .board-section + .board-section {
  border-top: 1px solid #edf2f7;
}

#admin-shell .detail-sheet,
#admin-shell .detail-table-scroll,
#admin-shell .work-table,
#admin-shell .role-admin-form-shell,
#admin-shell .checkbox-panel {
  border-radius: 4px;
}

#admin-shell .work-table {
  border: 0;
  border-radius: 0;
}

#admin-shell .work-table-head {
  padding: 10px 16px;
  background: #f7f9fc;
}

#admin-shell .work-table-row {
  padding: 12px 16px;
}

#admin-shell .simple-list {
  gap: 0;
}

#admin-shell .simple-list-row {
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #edf2f7;
  background: transparent;
}

#admin-shell .simple-list-row:last-child {
  border-bottom: 0;
}

.inline-alert {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d9e6f7;
  background: #f6faff;
  color: #335476;
}

.loading-state {
  border-style: solid;
}

.empty-state {
  padding: 24px 16px;
  border-radius: 12px;
  border: 1px dashed #d2dcea;
  background: #f8fbff;
}

.auth-panel .flash {
  margin-top: 14px;
}

.export-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.org-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.org-panel-card {
  padding: 16px;
}

.org-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.org-panel-head strong {
  display: block;
  font-size: 16px;
}

.org-panel-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.role-admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.role-admin-list,
.simple-list {
  display: grid;
  gap: 8px;
}

.role-admin-list,
.simple-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.role-admin-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: #ffffff;
  color: var(--ink);
}

.role-admin-item.active {
  border-color: #b7d2ff;
  background: #f3f8ff;
}

.role-admin-item strong,
.simple-list-row strong {
  display: block;
  font-size: 14px;
}

.role-admin-item span,
.simple-list-row span,
.simple-list-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.role-admin-form-shell {
  padding: 16px;
  background: #f8fbff;
}

.permission-group + .permission-group {
  margin-top: 12px;
}

.permission-group-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #3f5877;
}

.compact-form .form-grid {
  gap: 12px;
}

.compact-check-panel {
  gap: 12px;
}

.simple-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  background: #ffffff;
}

.simple-list-row > div {
  min-width: 0;
}

.export-shell {
  align-self: start;
}

.export-shell .work-table-body {
  max-height: 360px;
  overflow: auto;
}

.workspace-header-meta .meta-chip,
.detail-chip-row .meta-chip {
  background: #eef4ff;
  color: var(--brand-strong);
}

.status-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.flash.success {
  background: #eef8f1;
  color: var(--success);
}

.flash.error {
  background: #fff3f2;
  color: var(--danger);
}

.work-table {
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.work-table-head,
.work-table-row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.work-table-head {
  padding: 12px 16px;
  background: #f7faff;
  border-bottom: 1px solid #e2ebf5;
  color: #6a7b92;
  font-size: 12px;
  font-weight: 700;
}

.work-table-body {
  display: grid;
}

.work-table-row {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
  background: #ffffff;
}

.work-table-row:last-child {
  border-bottom: 0;
}

.work-table-row.selected {
  background: #f3f8ff;
}

.claims-table-row {
  grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) minmax(100px, 0.9fr) minmax(110px, 0.9fr) minmax(110px, 0.8fr) minmax(120px, 0.9fr) minmax(108px, 0.8fr);
}

.employee-table-row {
  grid-template-columns: minmax(150px, 1.4fr) minmax(100px, 0.9fr) minmax(100px, 0.9fr) minmax(120px, 1fr) minmax(110px, 0.8fr) minmax(120px, 1fr) minmax(120px, 0.9fr);
}

.category-table-row {
  grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(140px, 1fr) 80px 110px 110px;
}

.attendance-rule-table-row {
  grid-template-columns: minmax(170px, 1.4fr) minmax(140px, 1fr) minmax(140px, 1fr) 100px 110px minmax(120px, 0.9fr);
}

.attendance-group-table-row {
  grid-template-columns: minmax(170px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(140px, 1.1fr) 110px minmax(120px, 0.9fr);
}

.export-task-table-row {
  grid-template-columns: minmax(150px, 1.3fr) 110px 120px minmax(120px, 1fr) minmax(120px, 1fr) 110px;
}

.group-member-table-row {
  grid-template-columns: minmax(170px, 1.5fr) minmax(120px, 1fr) 110px 100px;
}

.monitor-summary-table-row {
  grid-template-columns: minmax(170px, 1.4fr) 110px minmax(140px, 1fr) minmax(140px, 1fr);
}

.monitor-record-table-row {
  grid-template-columns: minmax(150px, 1.2fr) 110px 100px minmax(140px, 1fr) minmax(180px, 1.4fr);
}

.cell-stack,
.amount-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cell-stack strong,
.amount-cell strong {
  font-size: 14px;
  color: var(--ink);
}

.cell-stack small,
.amount-cell small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.work-table-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.claims-board .detail-panel-body,
.detail-shell .detail-panel-body,
.detail-shell .export-panel-body,
.attendance-workspace .claims-board,
.attendance-form-grid .detail-shell,
.attendance-detail-grid .detail-shell,
.employee-secondary-grid .detail-shell {
  min-width: 0;
}

.status-cell {
  display: flex;
  align-items: center;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions-cell .small-btn {
  min-width: 64px;
}

.detail-hero-compact {
  padding: 18px 20px;
}

.claim-detail-stack {
  display: grid;
  gap: 12px;
}

.claim-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
  gap: 12px;
}

.claim-workflow-form {
  margin-top: 12px;
}

.claim-workflow-form .field-textarea {
  min-height: 84px;
}

.detail-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-stat-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e2ebf5;
  border-radius: 12px;
  background: #f8fbff;
  display: grid;
  gap: 6px;
}

.detail-stat-label,
.detail-sheet-label {
  font-size: 12px;
  color: #6a7b92;
  letter-spacing: 0.04em;
}

.detail-stat-card strong,
.detail-sheet-main strong {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.detail-stat-card small,
.detail-sheet-row small {
  color: var(--muted);
  line-height: 1.5;
}

.detail-sheet {
  display: grid;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.detail-sheet-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
}

.detail-sheet-row:last-child {
  border-bottom: 0;
}

.detail-sheet-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.detail-subtable {
  margin-top: 6px;
}

.detail-table-scroll {
  margin-top: 6px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.detail-table-scroll .work-table {
  border: 0;
  border-radius: 0;
}

.detail-table-scroll .work-table-head {
  border-bottom-color: #e8eef7;
}

.detail-table-scroll .work-table-body {
  max-height: 280px;
  overflow: auto;
}

.claim-inline-list {
  gap: 10px;
}

.claim-inline-row {
  align-items: center;
}

.detail-inline-side {
  min-width: 116px;
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.detail-inline-side small {
  color: var(--muted);
}

.claim-item-table-row {
  grid-template-columns: minmax(170px, 1.2fr) 120px 110px minmax(180px, 1.4fr);
}

.claim-file-table-row {
  grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.9fr) 90px 120px;
}

.approval-table-row {
  grid-template-columns: minmax(160px, 1.1fr) minmax(140px, 1fr) 100px 140px minmax(200px, 1.5fr);
}

.detail-role-list {
  margin-top: 2px;
}

.detail-role-list .simple-list-row span:last-child {
  text-align: right;
}

@media (max-width: 1080px) {
  .claims-workspace,
  .claim-primary-grid,
  .org-panel-grid,
  .role-admin-layout,
  .employee-secondary-grid,
  .attendance-form-grid,
  .attendance-detail-grid {
    grid-template-columns: 1fr;
  }

  .claims-filter-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-summary-strip,
  .export-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .login-screen {
    padding: 20px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: static;
    min-height: auto;
  }

  .workspace {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .flash {
    left: 14px;
    right: 14px;
    top: 14px;
    min-width: 0;
    max-width: none;
  }

  .login-screen {
    padding: 14px;
  }

  .login-intro,
  .login-panel {
    padding: 20px;
  }

  .workspace {
    padding: 14px;
  }

  .workspace-header-content,
  .workspace-header-meta,
  .claims-filter-head,
  .simple-list-row,
  .auth-actions,
  .sidebar-actions,
  .toolbar-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid,
  .detail-summary-strip,
  .claims-filter-grid,
  .export-summary-strip,
  .detail-info-grid,
  .detail-item-grid,
  .form-grid,
  .checkbox-grid,
  .org-panel-grid,
  .role-admin-layout,
  .employee-secondary-grid,
  .attendance-form-grid,
  .attendance-detail-grid,
  .category-edit-form .form-grid,
  .attendance-config-form .form-grid,
  .attendance-config-form .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .work-table {
    border: 0;
    background: transparent;
  }

  .work-table-head {
    display: none;
  }

  .work-table-row,
  .claims-table-row,
  .employee-table-row,
  .category-table-row,
  .attendance-rule-table-row,
  .attendance-group-table-row,
  .export-task-table-row,
  .claim-item-table-row,
  .claim-file-table-row,
  .approval-table-row,
  .group-member-table-row,
  .monitor-summary-table-row,
  .monitor-record-table-row {
    grid-template-columns: 1fr;
  }

  .work-table-row {
    margin-bottom: 10px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
  }

  .actions-cell {
    justify-content: flex-start;
  }

  .query-actions {
    justify-content: flex-start;
  }

  .detail-sheet-row {
    grid-template-columns: 1fr;
  }

  .detail-role-list .simple-list-row span:last-child {
    text-align: left;
  }

  .detail-inline-side {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }
}

/* Final traditional admin layout overrides */
#admin-shell {
  background: #f5f7fa;
}

#admin-shell .hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #10263d 0%, #173551 100%);
}

#admin-shell .sidebar-brand {
  margin: 0;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#admin-shell .brand-mark,
.login-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

#admin-shell .brand-copy h1 {
  font-size: 17px;
  line-height: 1.25;
}

#admin-shell .brand-copy p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(216, 228, 244, 0.72);
}

#admin-shell .sidebar-card,
#admin-shell .sidebar-panel {
  margin-top: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#admin-shell .sidebar-card + .sidebar-panel,
#admin-shell .sidebar-panel + .sidebar-card,
#admin-shell .sidebar-panel + .sidebar-panel,
#admin-shell .sidebar-card + .sidebar-card {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#admin-shell .card-head,
#admin-shell .session-panel .panel-top {
  padding: 0 14px;
}

#admin-shell .session-panel .panel-top {
  min-height: auto;
  padding-bottom: 0;
  border-bottom: 0;
}

#admin-shell .card-head h2,
#admin-shell .panel-top h2 {
  font-size: 15px;
}

#admin-shell .module-nav-hint,
#admin-shell .hero-card .card-head span,
#admin-shell .panel-top span {
  font-size: 12px;
}

#admin-shell .module-nav,
#admin-shell .sidebar-session-rows {
  margin-top: 8px;
  padding: 0 10px;
}

#admin-shell .module-card {
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 10px 10px 9px;
  background: transparent;
}

#admin-shell .module-card:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.05);
}

#admin-shell .module-card.active {
  border-left-color: #6ea4ff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

#admin-shell .module-card-head {
  align-items: center;
  margin-bottom: 3px;
}

#admin-shell .module-card-head strong {
  font-size: 14px;
}

#admin-shell .module-card-head span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfd4eb;
}

#admin-shell .sidebar-nav .module-card p {
  display: block;
  margin: 0;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9fb6cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-shell .sidebar-session-row {
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

#admin-shell .sidebar-session-row .session-label {
  font-size: 11px;
  letter-spacing: 0.06em;
}

#admin-shell .sidebar-session-row strong {
  font-size: 13px;
  line-height: 1.35;
}

#admin-shell .sidebar-session-row small {
  font-size: 11px;
  line-height: 1.35;
}

#admin-shell .session-panel .tag-row .tag {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-shell .sidebar-session-tags .tag-row {
  gap: 6px;
}

#admin-shell .session-panel .tag-row .tag {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
}

#admin-shell .session-actions {
  margin-top: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#admin-shell .session-actions .ghost-btn {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #eef5ff;
}

#admin-shell .workspace {
  gap: 0;
  padding: 0;
  background: #f5f7fa;
}

#admin-shell .workspace-header-panel {
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid #e4e8ee;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#admin-shell .workspace-module-eyebrow,
#admin-shell .workspace-eyebrow {
  color: #6e8195;
}

#admin-shell .workspace-header-meta .meta-chip {
  border: 1px solid #dce5ef;
  background: #f7fafc;
  color: #35506e;
}

#admin-shell .claims-panel {
  padding: 16px 24px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#admin-shell #claims-panel > .panel-top {
  display: none;
}

#admin-shell .claims-panel > .panel-top {
  min-height: 56px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e4e8ee;
}

#admin-shell .claims-filter-shell {
  margin-top: 0;
  padding: 14px 0 16px;
  border: 0;
  border-bottom: 1px solid #e4e8ee;
  border-radius: 0;
  background: transparent;
}

#admin-shell .claims-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
}

#admin-shell .query-field span {
  color: #61748a;
}

#admin-shell .field-input-inline,
#admin-shell .select-field,
#admin-shell .field input,
#admin-shell .field-textarea,
#admin-shell .claim-editor textarea {
  border-radius: 4px;
}

#admin-shell .summary-grid,
#admin-shell .detail-summary-strip,
#admin-shell .export-summary-strip {
  gap: 0;
  margin-top: 16px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .summary-card,
#admin-shell .detail-stat-card {
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid #e4e8ee;
  border-radius: 0;
  background: transparent;
}

#admin-shell .summary-card:last-child,
#admin-shell .detail-stat-card:last-child {
  border-right: 0;
}

#admin-shell .summary-label,
#admin-shell .detail-stat-label,
#admin-shell .detail-sheet-label {
  color: #6f8194;
}

#admin-shell .claims-layout {
  margin-top: 16px;
  gap: 0;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .claims-board,
#admin-shell .detail-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#admin-shell .claims-board {
  border-right: 1px solid #e4e8ee;
}

#admin-shell .claims-export-shell {
  margin-top: 16px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .workspace-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

#admin-shell .workspace-block-shell {
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .category-form-shell {
  margin-top: 16px;
}

#admin-shell .subpanel-top {
  min-height: 60px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e8ee;
}

#admin-shell .claim-list,
#admin-shell .detail-panel-body,
#admin-shell .export-panel-body {
  margin-top: 0;
}

#admin-shell .claims-export-shell .empty-state,
#admin-shell .claims-export-shell .inline-alert,
#admin-shell .workspace-block-shell .empty-state,
#admin-shell .workspace-block-shell .inline-alert {
  margin: 16px;
}

#admin-shell .claim-detail-stack,
#admin-shell .detail-panel-body,
#admin-shell .export-panel-body,
#admin-shell .claims-side-stack,
#admin-shell .side-stack {
  gap: 0;
}

#admin-shell .detail-hero,
#admin-shell .detail-section,
#admin-shell .board-section,
#admin-shell .board-card,
#admin-shell .org-panel-card,
#admin-shell .role-admin-form-shell {
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#admin-shell .detail-section + .detail-section,
#admin-shell .org-panel-card + .org-panel-card,
#admin-shell .board-section + .board-section,
#admin-shell .detail-hero + .detail-section {
  border-top: 1px solid #edf1f5;
}

#admin-shell .claim-primary-grid {
  gap: 0;
  border-top: 1px solid #edf1f5;
}

#admin-shell .claim-primary-grid > * + * {
  border-left: 1px solid #edf1f5;
}

#admin-shell .detail-sheet,
#admin-shell .detail-table-scroll,
#admin-shell .checkbox-panel,
#admin-shell .role-admin-form-shell,
#admin-shell .form-block {
  border-radius: 4px;
}

#admin-shell .detail-sheet-row {
  padding: 12px 14px;
}

#admin-shell .simple-list {
  gap: 0;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
}

#admin-shell .simple-list-row {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
  background: #ffffff;
}

#admin-shell .simple-list-row:last-child {
  border-bottom: 0;
}

#admin-shell .work-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

#admin-shell .work-table-head {
  padding: 10px 16px;
  background: #f7f9fc;
  border-bottom: 1px solid #e4e8ee;
}

#admin-shell .work-table-row {
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f5;
}

#admin-shell .work-table-row.selected {
  background: #f5f9ff;
}

#admin-shell .work-table-row:last-child {
  border-bottom: 0;
}

#admin-shell .empty-state,
#admin-shell .inline-alert {
  border-radius: 4px;
}

#admin-shell .employee-secondary-grid,
#admin-shell .attendance-form-grid,
#admin-shell .attendance-detail-grid,
#admin-shell .org-panel-grid {
  gap: 0;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .employee-secondary-grid > *,
#admin-shell .attendance-form-grid > *,
#admin-shell .attendance-detail-grid > *,
#admin-shell .org-panel-grid > * {
  border-radius: 0;
}

#admin-shell .employee-secondary-grid > * + *,
#admin-shell .attendance-form-grid > * + *,
#admin-shell .attendance-detail-grid > * + *,
#admin-shell .org-panel-grid > * + * {
  border-left: 1px solid #edf1f5;
}

#admin-shell .role-admin-layout {
  gap: 0;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
}

#admin-shell .role-admin-list {
  gap: 0;
  padding-right: 0;
  border-right: 1px solid #edf1f5;
}

#admin-shell .role-admin-item {
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
}

#admin-shell .role-admin-item:last-child {
  border-bottom: 0;
}

@media (max-width: 1080px) {
  #admin-shell .claims-filter-grid,
  #admin-shell .summary-grid,
  #admin-shell .detail-summary-strip,
  #admin-shell .export-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #admin-shell .claim-primary-grid,
  #admin-shell .claims-layout,
  #admin-shell .employee-secondary-grid,
  #admin-shell .attendance-form-grid,
  #admin-shell .attendance-detail-grid,
  #admin-shell .org-panel-grid,
  #admin-shell .role-admin-layout {
    grid-template-columns: 1fr;
  }

  #admin-shell .claims-board,
  #admin-shell .role-admin-list,
  #admin-shell .claim-primary-grid > * + *,
  #admin-shell .employee-secondary-grid > * + *,
  #admin-shell .attendance-form-grid > * + *,
  #admin-shell .attendance-detail-grid > * + *,
  #admin-shell .org-panel-grid > * + * {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid #edf1f5;
  }
}

@media (max-width: 960px) {
  #admin-shell.app-shell {
    grid-template-columns: 1fr;
  }

  #admin-shell .hero-panel {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  #admin-shell .workspace-header-panel,
  #admin-shell .claims-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  #admin-shell .summary-grid,
  #admin-shell .detail-summary-strip,
  #admin-shell .export-summary-strip,
  #admin-shell .claims-filter-grid {
    grid-template-columns: 1fr;
  }

  #admin-shell .summary-card,
  #admin-shell .detail-stat-card {
    border-right: 0;
    border-bottom: 1px solid #e4e8ee;
  }

  #admin-shell .summary-card:last-child,
  #admin-shell .detail-stat-card:last-child {
    border-bottom: 0;
  }
}

/* Final stacked workspace overrides */
#admin-shell .claims-layout,
#admin-shell .claims-workspace,
#admin-shell .employees-layout,
#admin-shell .categories-layout,
#admin-shell .module-primary-grid,
#admin-shell .module-secondary-grid,
#admin-shell .employee-workspace,
#admin-shell .employee-secondary-grid,
#admin-shell .attendance-form-grid,
#admin-shell .attendance-detail-grid,
#admin-shell .org-panel-grid,
#admin-shell .role-admin-layout {
  grid-template-columns: 1fr;
  gap: 0;
}

#admin-shell .claims-board,
#admin-shell .role-admin-list {
  border-right: 0;
}

#admin-shell .claims-layout > *,
#admin-shell .module-primary-grid > *,
#admin-shell .module-secondary-grid > *,
#admin-shell .employee-workspace > *,
#admin-shell .employee-secondary-grid > *,
#admin-shell .attendance-form-grid > *,
#admin-shell .attendance-detail-grid > *,
#admin-shell .org-panel-grid > *,
#admin-shell .role-admin-layout > * {
  min-width: 0;
}

#admin-shell .claims-layout > * + *,
#admin-shell .module-primary-grid > * + *,
#admin-shell .module-secondary-grid > * + *,
#admin-shell .employee-workspace > * + *,
#admin-shell .employee-secondary-grid > * + *,
#admin-shell .attendance-form-grid > * + *,
#admin-shell .attendance-detail-grid > * + *,
#admin-shell .org-panel-grid > * + *,
#admin-shell .role-admin-layout > * + * {
  border-left: 0;
  border-top: 1px solid #edf1f5;
}

#admin-shell .claims-side-stack,
#admin-shell .module-side-stack,
#admin-shell .side-stack {
  display: grid;
  gap: 0;
}

#admin-shell .claims-side-stack > * + *,
#admin-shell .module-side-stack > * + *,
#admin-shell .side-stack > * + * {
  border-top: 1px solid #edf1f5;
}

#admin-shell .employee-secondary-grid > * + *,
#admin-shell .attendance-form-grid > * + *,
#admin-shell .attendance-detail-grid > * + *,
#admin-shell .org-panel-grid > * + * {
  border-left: 0;
}

#admin-shell .claims-board .subpanel-top h3,
#admin-shell .detail-shell .subpanel-top h3 {
  margin-bottom: 0;
}

#admin-shell .claims-panel .toolbar-inline {
  justify-content: flex-end;
}

#admin-shell .module-toolbar-shell {
  margin-top: 0;
}

#admin-shell .module-summary-strip,
#admin-shell .claims-summary-grid {
  margin-top: 16px;
}

#admin-shell .employee-filter-grid {
  grid-template-columns: minmax(260px, 1.25fr) minmax(180px, 0.75fr) auto;
}

#admin-shell .attendance-workspace {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

#admin-shell .attendance-workspace > * + * {
  border-top: 0;
}

#admin-shell .checkbox-panel {
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  background: #f7f9fc;
}

#admin-shell .checkbox-item {
  padding: 12px 14px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  background: #ffffff;
}

#admin-shell .board-actions {
  margin-top: 0;
}

@media (min-width: 961px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  #login-screen {
    min-height: 100vh;
    overflow-y: auto;
  }

  #admin-shell.app-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  #admin-shell .hero-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  #admin-shell .workspace {
    height: 100vh;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Sidebar layout aligned to light enterprise workbench */
#admin-shell.app-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: 286px minmax(0, 1fr);
  background: #f7f9fc;
}

#admin-shell .hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 14px 16px;
  color: #16253a;
  background: #ffffff;
  border-right: 1px solid #e8edf4;
  box-shadow: none;
}

#admin-shell .sidebar-brand {
  margin: 0;
  padding: 4px 8px 18px;
  border-bottom: 0;
  align-items: flex-start;
  gap: 14px;
}

#admin-shell .brand-mark,
.login-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3d63ff, #5b7cff);
  box-shadow: 0 10px 24px rgba(61, 99, 255, 0.22);
  color: #ffffff;
}

#admin-shell .brand-copy h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #142235;
}

#admin-shell .brand-copy p {
  margin-top: 4px;
  font-size: 12px;
  color: #7b8aa0;
}

#admin-shell .sidebar-card,
#admin-shell .sidebar-panel {
  padding: 0;
  background: transparent;
  border: 0;
}

#admin-shell .sidebar-card + .sidebar-panel,
#admin-shell .sidebar-panel + .sidebar-card,
#admin-shell .sidebar-panel + .sidebar-panel,
#admin-shell .sidebar-card + .sidebar-card {
  border-top: 0;
}

#admin-shell #module-nav-panel {
  flex: 0 0 auto;
  min-height: 0;
}

#admin-shell .card-head {
  padding: 0 8px 8px;
}

#admin-shell .card-head h2 {
  font-size: 14px;
  color: #7b8aa0;
}

#admin-shell .module-nav-hint,
#admin-shell #module-nav-hint {
  font-size: 12px;
  color: #9ca9ba;
}

#admin-shell .module-nav,
#admin-shell .sidebar-nav {
  margin-top: 0;
  padding: 0;
  gap: 4px;
}

#admin-shell .module-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-left: 0;
  border-radius: 12px;
  background: transparent;
  color: #1c2c40;
}

#admin-shell .module-card:hover {
  background: #f5f8fc;
}

#admin-shell .module-card.active {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px #d9e7ff;
}

#admin-shell .module-card-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f6fb;
  color: #70839b;
  font-size: 13px;
  font-weight: 700;
}

#admin-shell .module-card.active .module-card-icon {
  background: linear-gradient(135deg, #3d63ff, #5b7cff);
  color: #ffffff;
}

#admin-shell .module-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

#admin-shell .module-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#admin-shell .module-card-head strong {
  min-width: 0;
  font-size: 14px;
  color: #152538;
}

#admin-shell .module-card-head span {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #7a8ca3;
  font-size: 11px;
}

#admin-shell .module-card.active .module-card-head span {
  background: #dfe8ff;
  color: #3554d8;
}

#admin-shell .sidebar-nav .module-card p {
  display: none;
}

#admin-shell #session-panel {
  margin-top: 16px;
  padding-top: 0;
}

#admin-shell .sidebar-account-card {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #e7ecf3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(20, 34, 53, 0.04);
}

#admin-shell .sidebar-account-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

#admin-shell .sidebar-account-head strong {
  font-size: 14px;
  color: #44566c;
}

#admin-shell .sidebar-account-head small {
  font-size: 12px;
  color: #96a4b5;
}

#admin-shell .sidebar-account-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

#admin-shell .sidebar-account-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #dce7fb;
  background: #f7faff;
  color: #3d63ff;
  font-size: 16px;
  font-weight: 700;
}

#admin-shell .sidebar-account-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#admin-shell .sidebar-account-copy strong {
  font-size: 15px;
  color: #18283c;
  line-height: 1.3;
}

#admin-shell .sidebar-account-copy small {
  font-size: 12px;
  color: #7e90a7;
  line-height: 1.35;
}

#admin-shell .sidebar-account-lines {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

#admin-shell .sidebar-info-line {
  display: grid;
  gap: 3px;
}

#admin-shell .sidebar-info-line span {
  font-size: 11px;
  color: #8a9aae;
}

#admin-shell .sidebar-info-line strong,
#admin-shell .sidebar-info-line small {
  min-width: 0;
  color: #24364b;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

#admin-shell .sidebar-info-line.compact small {
  color: #72839a;
}

#admin-shell .sidebar-account-tags {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

#admin-shell .session-panel .tag-row {
  gap: 6px;
}

#admin-shell .session-panel .tag-row .tag {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3fb;
  color: #556a85;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-shell .session-panel .tag-row.muted .tag {
  background: #f7f9fc;
  color: #7c90aa;
}

#admin-shell .session-actions {
  margin-top: 14px;
  grid-template-columns: 1fr;
  gap: 10px;
}

#admin-shell .session-actions .ghost-btn {
  padding: 12px 14px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #ffffff;
  color: #42566e;
  font-size: 14px;
  font-weight: 600;
}

#admin-shell .session-actions .ghost-btn:hover {
  background: #f8fbff;
  transform: none;
}

#admin-shell .workspace {
  width: 100%;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f9fc;
}

#admin-shell .workspace-header-panel {
  padding: 12px 24px;
  border-bottom: 1px solid #e8edf4;
  background: #ffffff;
}

#admin-shell .workspace-header-content {
  align-items: center;
}

#admin-shell .workspace-module-eyebrow,
#admin-shell .workspace-eyebrow {
  margin-top: 0;
  font-size: 12px;
  color: #8d9aae;
}

#admin-shell .workspace-module-eyebrow:empty,
#admin-shell .workspace-subtitle:empty {
  display: none;
}

#admin-shell .workspace h2,
#admin-shell .workspace-title {
  margin-top: 0;
  font-size: 16px;
  color: #152538;
}

#admin-shell .workspace-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #7f8fa5;
}

#admin-shell .workspace-header-meta .meta-chip {
  border-radius: 999px;
  border: 1px solid #e6ebf2;
  background: #ffffff;
  color: #6f8196;
}

#admin-shell .workspace-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 960px) {
  #admin-shell.app-shell {
    grid-template-columns: 1fr;
  }

  #admin-shell .hero-panel {
    height: auto;
    min-height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #e8edf4;
  }

  #admin-shell .workspace {
    height: auto;
    min-height: 0;
  }

  #admin-shell #session-panel {
    margin-top: 12px;
  }
}

#admin-shell .claim-status-strip {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #f9fbfe;
}

#admin-shell .claim-status-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#admin-shell .claim-status-main strong {
  font-size: 22px;
  color: #1c2d43;
}

#admin-shell .claim-status-main span {
  font-size: 13px;
  color: #6f8196;
}

#admin-shell .claim-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: #5f7288;
}

#admin-shell .claim-action-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #ffffff;
}

#admin-shell .claim-action-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#admin-shell .claim-action-box-head strong {
  font-size: 15px;
  color: #18293e;
}

#admin-shell .claim-action-box-head span {
  font-size: 12px;
  color: #7b8ea6;
}

#admin-shell .claim-workflow-shell .claim-workflow-form {
  margin-top: 0;
}

#admin-shell .claim-workflow-shell .field-textarea {
  min-height: 92px;
}

#admin-shell .claim-workflow-shell .form-actions {
  justify-content: flex-start;
}

@media (max-width: 960px) {
  #admin-shell .claim-status-main,
  #admin-shell .claim-action-box-head,
  #admin-shell .claim-status-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dense claim detail layout */
#admin-shell .detail-shell .subpanel-top {
  min-height: auto;
  padding: 10px 14px;
}

#admin-shell .detail-shell .subpanel-top h3 {
  font-size: 16px;
}

#admin-shell .detail-shell .subpanel-top .eyebrow {
  margin-top: 0;
  font-size: 10px;
}

#admin-shell .claim-detail-stack {
  gap: 0;
}

#admin-shell .detail-section {
  padding: 12px 14px;
}

#admin-shell .detail-section-head {
  min-height: auto;
  padding: 0 0 8px;
  margin-bottom: 8px;
  align-items: flex-start;
}

#admin-shell .detail-section-head h4 {
  font-size: 15px;
  line-height: 1.35;
}

#admin-shell .detail-section-head span {
  font-size: 12px;
  color: #7c8ea4;
}

#admin-shell .detail-head-actions .small-btn {
  min-width: 0;
}

#admin-shell .claim-status-strip {
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
}

#admin-shell .claim-status-main {
  gap: 10px;
}

#admin-shell .claim-status-main strong {
  font-size: 18px;
}

#admin-shell .claim-status-main span,
#admin-shell .claim-status-meta {
  font-size: 12px;
}

#admin-shell .detail-sheet,
#admin-shell .detail-table-scroll,
#admin-shell .simple-list,
#admin-shell .claim-action-box {
  border-radius: 8px;
}

#admin-shell .detail-sheet-row {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
}

#admin-shell .detail-sheet-label {
  font-size: 11px;
}

#admin-shell .detail-sheet-main {
  gap: 2px;
}

#admin-shell .detail-sheet-main strong {
  font-size: 14px;
  line-height: 1.4;
}

#admin-shell .detail-sheet-row small {
  font-size: 12px;
  line-height: 1.4;
}

#admin-shell .detail-table-scroll {
  margin-top: 0;
}

#admin-shell .detail-table-scroll .work-table-head {
  padding: 8px 12px;
}

#admin-shell .detail-table-scroll .work-table-row {
  padding: 10px 12px;
}

#admin-shell .detail-table-scroll .work-table-body {
  max-height: 220px;
}

#admin-shell .simple-list-row {
  padding: 10px 12px;
}

#admin-shell .claim-action-box {
  margin-top: 0;
  padding: 12px;
}

#admin-shell .claim-action-box-head {
  margin-bottom: 8px;
}

#admin-shell .claim-workflow-shell .field span {
  font-size: 12px;
}

#admin-shell .claim-workflow-shell .field-textarea {
  min-height: 72px;
  padding: 10px 12px;
}

#admin-shell .claim-workflow-shell .form-actions {
  gap: 10px;
  margin-top: 8px;
}

#admin-shell .claim-workflow-shell .approve-btn,
#admin-shell .claim-workflow-shell .danger-btn,
#admin-shell .claim-workflow-shell .pay-btn {
  padding: 10px 18px;
}

#admin-shell .overview-workbench {
  display: grid;
  gap: 16px;
}

#admin-shell .overview-top-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#admin-shell .overview-main-grid,
#admin-shell .overview-lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

#admin-shell .overview-strip-shell,
#admin-shell .overview-focus-shell,
#admin-shell .overview-side-shell,
#admin-shell .overview-export-shell,
#admin-shell .overview-entry-shell,
#admin-shell .overview-org-shell {
  align-self: start;
}

#admin-shell .overview-claim-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

#admin-shell .overview-sheet {
  margin-bottom: 12px;
}

#admin-shell .overview-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#admin-shell .overview-shortcut-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #ffffff;
  color: #1a2a3d;
  text-align: left;
}

#admin-shell .overview-shortcut-card:hover {
  border-color: #c9d8ea;
  background: #f8fbff;
}

#admin-shell .overview-shortcut-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #edf4ff;
  color: #124c88;
  font-size: 13px;
  font-weight: 700;
}

#admin-shell .overview-shortcut-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
  text-align: left;
}

#admin-shell .overview-shortcut-copy strong {
  font-size: 14px;
  line-height: 1.4;
}

#admin-shell .overview-shortcut-copy small {
  color: #6f8096;
  line-height: 1.45;
}

#admin-shell .overview-shortcut-meta {
  flex: 0 0 auto;
  color: #7c8a9f;
  font-size: 12px;
  white-space: nowrap;
}

#admin-shell .overview-action-btn {
  padding: 8px 14px;
}

#admin-shell .overview-claim-table-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr) 110px minmax(140px, 0.95fr) 160px;
}

#admin-shell .overview-attendance-table-row {
  grid-template-columns: minmax(0, 1.4fr) 120px 150px 150px;
}

#admin-shell .overview-export-table-row {
  grid-template-columns: minmax(0, 1.5fr) 120px 160px 160px;
}

#admin-shell .overview-claim-table .tone-chip {
  justify-self: start;
}

@media (max-width: 1320px) {
  #admin-shell .overview-top-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #admin-shell .overview-shortcut-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  #admin-shell .overview-top-strip,
  #admin-shell .overview-claim-strip,
  #admin-shell .overview-export-strip,
  #admin-shell .overview-shortcut-grid {
    grid-template-columns: 1fr;
  }

  #admin-shell .overview-claim-table-row,
  #admin-shell .overview-attendance-table-row,
  #admin-shell .overview-export-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#admin-shell .claim-detail-summary-strip,
#admin-shell .employee-detail-summary-strip,
#admin-shell .category-detail-summary-strip,
#admin-shell .attendance-detail-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

#admin-shell .claim-detail-summary-strip .detail-stat-card,
#admin-shell .employee-detail-summary-strip .detail-stat-card,
#admin-shell .category-detail-summary-strip .detail-stat-card,
#admin-shell .attendance-detail-summary-strip .detail-stat-card {
  padding: 14px 16px;
  border-right: 1px solid #e4e8ee;
  border-radius: 0;
  background: transparent;
}

#admin-shell .claim-detail-summary-strip .detail-stat-card:last-child,
#admin-shell .employee-detail-summary-strip .detail-stat-card:last-child,
#admin-shell .category-detail-summary-strip .detail-stat-card:last-child,
#admin-shell .attendance-detail-summary-strip .detail-stat-card:last-child {
  border-right: 0;
}

#admin-shell .claim-overview-sheet,
#admin-shell .employee-invite-sheet {
  margin-top: 0;
}

#admin-shell .claim-workflow-summary-strip {
  margin-bottom: 10px;
}

#admin-shell .employee-profile-shell {
  padding: 16px;
}

#admin-shell .employee-profile-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

#admin-shell .employee-profile-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

#admin-shell .employee-profile-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #132538;
}

#admin-shell .employee-profile-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6f8196;
}

#admin-shell .employee-profile-side {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  background: #f8fbff;
}

#admin-shell .employee-profile-side span {
  font-size: 12px;
  color: #70849c;
}

#admin-shell .employee-profile-side strong {
  font-size: 18px;
  color: #152538;
  line-height: 1.3;
}

#admin-shell .employee-profile-side small {
  font-size: 12px;
  line-height: 1.5;
  color: #6f8196;
  word-break: break-word;
}

#admin-shell .category-table .work-table-body,
#admin-shell .attendance-rule-table .work-table-body,
#admin-shell .attendance-group-table .work-table-body {
  max-height: 220px;
  overflow-y: auto;
}

#admin-shell .category-table .work-table-head,
#admin-shell .attendance-rule-table .work-table-head,
#admin-shell .attendance-group-table .work-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fc;
}

#admin-shell .attendance-group-sheet,
#admin-shell .category-detail-sheet {
  margin-top: 0;
}

#admin-shell .attendance-workspace,
#admin-shell .categories-layout,
#admin-shell .attendance-admin-stack {
  margin-top: 16px;
}

#admin-shell .module-primary-grid,
#admin-shell .module-secondary-grid {
  display: grid;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

#admin-shell .employees-primary-grid,
#admin-shell .categories-primary-grid,
#admin-shell .attendance-primary-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
}

#admin-shell .attendance-secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#admin-shell .module-list-shell,
#admin-shell .module-side-stack {
  min-width: 0;
}

#admin-shell .module-side-stack > .detail-shell,
#admin-shell .module-side-stack > .workspace-block-shell {
  min-width: 0;
}

#admin-shell .attendance-admin-stack .workspace-block-shell + .workspace-block-shell,
#admin-shell .categories-layout > .detail-shell + .detail-shell {
  border-top: 1px solid #edf1f5;
}

#admin-shell .board-section + .board-section {
  margin-top: 12px;
}

#admin-shell .board-section .work-table {
  border-radius: 6px;
  overflow: hidden;
}

#admin-shell .board-section-head h4,
#admin-shell .board-section-head span {
  line-height: 1.35;
}

#admin-shell .overview-claim-table,
#admin-shell .overview-attendance-table,
#admin-shell .claims-table,
#admin-shell .employee-table,
#admin-shell .export-task-table,
#admin-shell .group-member-table,
#admin-shell .monitor-summary-table,
#admin-shell .monitor-record-table {
  border-radius: 6px;
  overflow: hidden;
}

#admin-shell .overview-claim-table .work-table-body,
#admin-shell .overview-attendance-table .work-table-body {
  max-height: 180px;
  overflow-y: auto;
}

#admin-shell .claims-table .work-table-body,
#admin-shell .employee-table .work-table-body {
  max-height: 260px;
  overflow-y: auto;
}

#admin-shell .export-task-table .work-table-body,
#admin-shell .group-member-table .work-table-body,
#admin-shell .monitor-summary-table .work-table-body,
#admin-shell .monitor-record-table .work-table-body {
  max-height: 220px;
  overflow-y: auto;
}

#admin-shell .employee-admin-stack,
#admin-shell .claims-export-shell,
#admin-shell .category-form-shell,
#admin-shell .attendance-admin-stack,
#admin-shell .module-secondary-shell {
  margin-top: 16px;
}

#admin-shell .workspace-block-shell .detail-panel-body > .detail-section:first-child,
#admin-shell .workspace-block-shell .detail-panel-body > .board-section:first-child {
  padding-top: 14px;
}

#admin-shell .workspace-block-shell .detail-panel-body > .detail-section:last-child,
#admin-shell .workspace-block-shell .detail-panel-body > .board-section:last-child {
  padding-bottom: 14px;
}

#admin-shell .employee-admin-stack .workspace-block-shell .detail-panel-body,
#admin-shell .attendance-admin-stack .workspace-block-shell .detail-panel-body,
#admin-shell .category-form-shell .detail-panel-body,
#admin-shell .claims-export-shell .export-panel-body {
  padding: 0 0 16px;
}

@media (max-width: 1240px) {
  #admin-shell .employees-primary-grid,
  #admin-shell .categories-primary-grid,
  #admin-shell .attendance-primary-grid,
  #admin-shell .attendance-secondary-grid {
    grid-template-columns: 1fr;
  }

  #admin-shell .claim-detail-summary-strip,
  #admin-shell .employee-detail-summary-strip,
  #admin-shell .category-detail-summary-strip,
  #admin-shell .attendance-detail-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  #admin-shell .employee-profile-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  #admin-shell .employee-profile-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #admin-shell .claim-detail-summary-strip,
  #admin-shell .employee-detail-summary-strip,
  #admin-shell .category-detail-summary-strip,
  #admin-shell .attendance-detail-summary-strip {
    grid-template-columns: 1fr;
  }

  #admin-shell .employee-profile-shell {
    padding: 14px;
  }

  #admin-shell .employee-profile-row {
    grid-template-columns: 1fr;
  }
}

/* Login screen cleanup */
#login-screen.login-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 20px;
  place-items: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(122, 139, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 84%, rgba(78, 134, 255, 0.1), transparent 20%),
    linear-gradient(90deg, #f3f4ff 0%, #f8fbff 48%, #edf3ff 100%);
  overflow-y: auto;
}

#login-screen .login-shell {
  width: min(452px, 100%);
  display: block;
}

#login-screen .login-panel-simple {
  padding: 0;
  border: 1px solid rgba(225, 232, 243, 0.92);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 54px rgba(17, 31, 61, 0.12),
    0 2px 10px rgba(17, 31, 61, 0.04);
  backdrop-filter: blur(18px);
}

#login-screen .login-panel-inner {
  display: grid;
  gap: 24px;
  padding: 42px 42px 34px;
}

#login-screen .portal-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

#login-screen .portal-switch span {
  font-size: 12px;
  color: #7a8798;
}

#login-screen .portal-switch a {
  color: #124c88;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#login-screen .login-mark-wrap {
  display: grid;
  place-items: center;
}

#login-screen .login-mark {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(180deg, #27344b 0%, #1d2940 100%);
  box-shadow: 0 14px 28px rgba(17, 31, 61, 0.18);
  color: #ffffff;
}

#login-screen .login-mark svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}

#login-screen .login-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

#login-screen .login-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #152236;
}

#login-screen .login-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #7a8798;
}

#login-screen .login-status-pill {
  min-width: 76px;
  padding: 7px 14px;
  background: #eef3fb;
  color: #5e6d80;
}

#login-screen .login-auth-grid {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 14px;
}

#login-screen .login-field {
  gap: 8px;
}

#login-screen .login-field span {
  font-size: 13px;
  color: #556579;
}

#login-screen .login-field input {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  background: #eaf1ff;
  color: #122033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#login-screen .login-field input::placeholder {
  color: #8d9aae;
}

#login-screen .login-field input:focus {
  background: #ffffff;
  border-color: rgba(18, 76, 136, 0.2);
  box-shadow:
    0 0 0 4px rgba(18, 76, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#login-screen .login-advanced {
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  background: #f8fbff;
  padding: 0 14px;
}

#login-screen .login-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: #546274;
  cursor: pointer;
  list-style: none;
}

#login-screen .login-advanced summary::-webkit-details-marker {
  display: none;
}

#login-screen .login-advanced summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: #7b8aa0;
}

#login-screen .login-advanced[open] summary::after {
  content: "-";
}

#login-screen .login-advanced-body {
  padding: 0 0 14px;
}

#login-screen .login-advanced-field {
  gap: 6px;
}

#login-screen .login-actions {
  margin-top: 2px;
}

#login-screen .login-actions .primary-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #253349 0%, #1a273d 100%);
  box-shadow: 0 14px 24px rgba(17, 31, 61, 0.16);
}

#login-screen .login-support {
  border-top: 1px solid #edf1f7;
  padding-top: 18px;
}

#login-screen .login-support-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#login-screen .login-support-head strong {
  font-size: 14px;
  color: #1b2a3e;
}

#login-screen .login-support-head span {
  font-size: 12px;
  color: #7a8798;
}

#login-screen .login-preset-grid {
  margin-top: 0;
  gap: 10px;
}

#login-screen .login-preset-grid .preset-btn {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  color: #152236;
  background: #f8fbff;
  border: 1px solid #dfe7f3;
}

#login-screen .login-preset-grid .preset-btn:hover {
  background: #f2f7ff;
  transform: translateY(-1px);
}

#login-screen .login-preset-grid .preset-btn span {
  color: #7b8aa0;
  letter-spacing: 0;
  text-transform: none;
}

#login-screen .login-preset-grid .preset-btn strong {
  margin-top: 4px;
  color: #124c88;
  font-size: 14px;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.approve-btn,
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Final enterprise workbench cleanup */
#admin-shell .module-nav,
#admin-shell .sidebar-nav {
  gap: 6px;
}

#admin-shell .module-card {
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
}

#admin-shell .module-card-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  font-size: 12px;
}

#admin-shell .module-card-copy {
  display: grid;
  gap: 4px;
}

#admin-shell .module-card-head {
  justify-content: flex-start;
  min-width: 0;
}

#admin-shell .module-card-head span {
  display: none;
}

#admin-shell .sidebar-nav .module-card p {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #7c8ea4;
  text-align: left;
}

#admin-shell .module-card.active p {
  color: #5d76a1;
}

#admin-shell .workspace {
  display: block;
}

#admin-shell .workspace-header-panel {
  position: sticky;
  top: 0;
  z-index: 20;
}

#admin-shell .claims-panel {
  display: block;
  padding: 14px 24px 28px;
}

#admin-shell .claims-panel > .panel-top {
  padding-bottom: 10px;
}

#admin-shell .claims-panel > .claims-filter-shell {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border: 1px solid #e4e8ee;
  border-radius: 6px;
  background: #ffffff;
}

#admin-shell .claims-panel > .module-flow-section,
#admin-shell .claims-panel > .module-secondary-shell,
#admin-shell .claims-panel > .claims-export-shell {
  margin-top: 16px;
  border: 1px solid #e4e8ee;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

#admin-shell .claims-panel > .module-flow-section .subpanel-top,
#admin-shell .claims-panel > .module-secondary-shell .subpanel-top,
#admin-shell .claims-panel > .claims-export-shell .subpanel-top {
  padding: 12px 16px;
  background: #ffffff;
}

#admin-shell .claims-panel > .module-flow-section .claim-list,
#admin-shell .claims-panel > .module-flow-section .detail-panel-body,
#admin-shell .claims-panel > .module-secondary-shell .detail-panel-body,
#admin-shell .claims-panel > .claims-export-shell .export-panel-body {
  padding-bottom: 16px;
}

#admin-shell .claims-panel > .module-flow-section .empty-state,
#admin-shell .claims-panel > .module-flow-section .inline-alert,
#admin-shell .claims-panel > .module-secondary-shell .empty-state,
#admin-shell .claims-panel > .module-secondary-shell .inline-alert,
#admin-shell .claims-panel > .claims-export-shell .empty-state,
#admin-shell .claims-panel > .claims-export-shell .inline-alert {
  margin: 16px;
}

#admin-shell .overview-workbench,
#admin-shell .overview-main-grid,
#admin-shell .overview-lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

#admin-shell .overview-workbench > .detail-shell,
#admin-shell .overview-main-grid > .detail-shell,
#admin-shell .overview-lower-grid > .detail-shell {
  border: 1px solid #e4e8ee;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

#admin-shell .overview-workbench .subpanel-top {
  padding: 12px 16px;
}

#admin-shell .overview-workbench .detail-section,
#admin-shell .overview-workbench .board-section {
  padding: 14px 16px;
}

body.modal-open {
  overflow: hidden;
}

.icon-ghost-btn {
  min-width: 88px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d6e0ec;
  background: #f7fbff;
  color: #20486f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icon-ghost-btn:hover {
  background: #edf5ff;
  border-color: #bfd0e5;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 24, 43, 0.42);
  backdrop-filter: blur(6px);
}

.form-modal-sheet {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(212, 225, 238, 0.9);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(12, 41, 74, 0.2);
  overflow: hidden;
}

.form-modal-sheet.modal-sheet-wide {
  width: min(940px, calc(100vw - 40px));
}

.form-modal-sheet.modal-sheet-large {
  width: min(1120px, calc(100vw - 40px));
}

.form-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid #e3ecf5;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.form-modal-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.form-modal-copy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #153b62;
}

.form-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background: #f5f9fe;
}

.form-modal-body .empty-state,
.form-modal-body .inline-alert {
  margin: 0;
}

@media (max-width: 960px) {
  #admin-shell .workspace-header-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  #login-screen.login-screen {
    padding: 18px 14px;
  }

  #login-screen .login-panel-inner {
    gap: 20px;
    padding: 28px 20px 24px;
  }

  #login-screen .login-head h1 {
    font-size: 24px;
  }

  #login-screen .login-support-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-modal {
    padding: 12px;
    align-items: stretch;
  }

  .form-modal-sheet,
  .form-modal-sheet.modal-sheet-wide,
  .form-modal-sheet.modal-sheet-large {
    width: 100%;
    max-height: 100%;
    border-radius: 14px;
  }

  .form-modal-head,
  .form-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .icon-ghost-btn {
    width: 100%;
  }
}
