/* Approved mint HRM system: tokens, shared components, modules, responsive rules. */
:root {
  color-scheme: light;
  --app-bg: #eef5f1;
  --app-bg-soft: #f5f9f7;
  --surface: #fff;
  --surface-soft: #f8fbf9;
  --surface-mint: #edf7f2;
  --primary: #51a77d;
  --primary-hover: #438f6b;
  --primary-strong: #34795a;
  --primary-soft: #ddefe6;
  --primary-softer: #eef7f2;
  --mint: #8fd4b5;
  --mint-soft: #ddf3e8;
  --cyan: #39bfc4;
  --cyan-soft: #dff6f6;
  --green: #36b77a;
  --green-soft: #e3f6ed;
  --yellow: #e9b94b;
  --yellow-soft: #fff5d8;
  --orange: #f39a45;
  --orange-soft: #fff0df;
  --red: #eb6873;
  --red-soft: #fdecef;
  --blue: #4b9be8;
  --blue-soft: #e8f2fc;
  --text: #18342c;
  --text-secondary: #526d64;
  --text-muted: #81958e;
  --border: rgba(70, 120, 100, 0.15);
  --border-strong: rgba(70, 120, 100, 0.23);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(39, 83, 66, 0.045);
  --shadow-md: 0 10px 30px rgba(39, 83, 66, 0.075);
  --shadow-card: 0 8px 24px rgba(45, 92, 73, 0.06);
  --sidebar-width: 232px;
  --topbar-height: 62px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ui-background: var(--app-bg);
  --ui-surface: var(--surface);
  --ui-surface-subtle: var(--surface-soft);
  --ui-surface-elevated: var(--surface);
  --ui-border: var(--border);
  --ui-border-strong: var(--border-strong);
  --ui-text: var(--text);
  --ui-text-muted: var(--text-secondary);
  --ui-text-subtle: var(--text-muted);
  --ui-primary: var(--primary);
  --ui-primary-hover: var(--primary-hover);
  --ui-primary-soft: var(--primary-soft);
  --ui-success: var(--green);
  --ui-success-soft: var(--green-soft);
  --ui-warning: var(--yellow);
  --ui-warning-soft: var(--yellow-soft);
  --ui-danger: var(--red);
  --ui-danger-soft: var(--red-soft);
  --ui-info: var(--blue);
  --ui-info-soft: var(--blue-soft);
  --ui-sidebar-width: var(--sidebar-width);
  --ui-sidebar-collapsed-width: 72px;
  --ui-topbar-height: var(--topbar-height);
  --ui-content-max: 1600px;
  --ui-page-padding: 24px;
  --ui-page-padding-mobile: 14px;
  --ui-radius-small: var(--radius-sm);
  --ui-radius-medium: var(--radius-md);
  --ui-radius-large: var(--radius-lg);
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-space-8: 32px;
  --ui-shadow-none: none;
  --ui-shadow-subtle: var(--shadow-sm);
  --ui-shadow-elevated: var(--shadow-md);
  --ui-font-page-title: 26px;
  --ui-font-section-title: 18px;
  --ui-font-card-title: 14px;
  --ui-font-body: 14px;
  --ui-font-compact: 12px;
  --ui-font-table: 12px;
  --ui-font-caption: 11px;
  --ui-font-label: 12px;
  --ui-font-kpi: 26px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  background: var(--app-bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
}
body:before,
body:after {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
#app {
  min-height: 100vh;
}
.app-icon {
  display: block;
  flex: 0 0 auto;
}
.boot {
  color: var(--text-muted);
}
.logo-orb,
.app-shell .brand-mark {
  background: linear-gradient(
    145deg,
    #9adabb,
    var(--primary) 65%,
    var(--primary-strong)
  );
  color: #fff;
  box-shadow: none;
}
/* Shell */
.app-shell.redesign-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: var(--app-bg);
}
.app-shell .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  backdrop-filter: blur(10px);
  overflow: auto;
}
.app-shell .brand {
  position: relative;
  gap: 10px;
  min-height: 42px;
  padding: 2px 7px 12px;
}
.app-shell .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 15px;
}
.app-shell .brand-copy b,
.app-shell .brand b {
  font-size: 16px;
  color: var(--primary-strong);
  letter-spacing: -0.02em;
}
.app-shell .brand-copy small,
.app-shell .brand small {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.35;
}
.app-shell .sidebar-collapse {
  display: none;
}
.app-shell .redesign-workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 3px 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: inherit;
  font: inherit;
  text-align: left;
  min-width: 0;
  width: calc(100% - 6px);
  cursor: pointer;
}
.redesign-workspace-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
}
.redesign-workspace > span:last-child {
  min-width: 0;
}
.redesign-workspace small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.redesign-workspace b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text);
}
.app-shell .nav {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.app-shell .nav-group {
  margin: 10px 8px 4px;
  color: #91a29b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.app-shell .nav-system-group > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.app-shell .nav-system-group > summary::-webkit-details-marker { display: none; }
.app-shell .nav-system-group > summary::after {
  content: '⌄';
  float: right;
  transition: transform 140ms ease;
}
.app-shell .nav-system-group:not([open]) > summary::after { transform: rotate(-90deg); }
.app-shell .nav-system-items { display: grid; gap: 2px; }
.app-shell .nav-section { display: grid; gap: 0; }
.app-shell .nav-parent {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #405f54;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.app-shell .nav-parent > i { width: 20px; height: 20px; display: grid; place-items: center; }
.app-shell .nav-parent > b { margin-left: auto; font-size: 15px; font-weight: 500; transition: transform 150ms var(--ease); }
.app-shell .nav-parent.is-open > b { transform: rotate(180deg); }
.app-shell .nav-parent:hover { background: #edf7f2; }
.app-shell .nav-parent.active { background: #edf7f2; color: #34795a; }
.app-shell .nav-group-items {
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 12px;
  margin-left: 10px;
  border-left: 1px solid rgba(70,120,100,.14);
  transition: max-height 180ms var(--ease), opacity 140ms var(--ease);
}
.app-shell .nav-group-items.is-open { max-height: 360px; opacity: 1; }
.app-shell .nav-child { padding-left: 9px; font-size: 12px; }
.app-shell .nav-parent:focus-visible,
.app-shell .nav-group-items .nav-link:focus-visible { outline: 2px solid #7fb99c; outline-offset: 2px; }
.app-shell .app-route-context-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid rgba(70,120,100,.10);
  border-radius: 11px;
  background: rgba(255,255,255,.82);
  scrollbar-width: none;
}
.app-shell .app-route-context-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #65786f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.app-shell .app-route-context-tabs button.is-active,
.app-shell .app-route-context-tabs button[aria-selected="true"] { background: #ddefe6; color: #34795a; }
@media (max-width: 520px) {
  .app-shell .app-route-context-tabs { width: 100%; }
  .app-shell .app-route-context-tabs button { flex: 1 0 auto; padding-inline: 10px; }
}
.app-shell .nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease);
}
.app-shell .nav button i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #6d8b7e;
}
.app-shell .nav button:hover {
  background: var(--primary-softer);
  color: var(--primary-strong);
}
.app-shell .nav button.active,
.app-shell .nav button[aria-current="page"] {
  background: linear-gradient(100deg, #ddf3e8, #edf8f2);
  border-color: transparent;
  box-shadow: none;
  color: var(--primary-strong);
  font-weight: 650;
}
.app-shell .nav button.active i,
.app-shell .nav button[aria-current="page"] i {
  color: var(--primary-strong);
}
.app-shell .side-bottom {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 9px 3px 0;
  border-top: 1px solid var(--border);
}
.app-shell .side-user {
  gap: 8px;
  padding: 7px;
  border-radius: 10px;
}
.app-shell .side-user b {
  font-size: 11px;
  color: var(--text);
}
.app-shell .side-user small {
  font-size: 10px;
  color: var(--text-muted);
}
.avatar,
.mini-avatar {
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.app-shell .workspace {
  min-width: 0;
}
.app-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--topbar-height);
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.app-shell .topbar-context {
  min-width: 100px;
}
.app-shell .breadcrumbs {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-muted);
  font-size: 10px;
}
.app-shell .breadcrumbs strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.app-shell .topbar-caption {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9px;
}
.app-shell .searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(450px, 42vw);
  min-width: 180px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-mint);
  color: var(--text-secondary);
}
.app-shell .searchbox:focus-within {
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(81, 167, 125, 0.08);
}
.app-shell .searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 11px;
}
.app-shell .searchbox input::placeholder {
  color: var(--text-muted);
}
.app-shell kbd {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text-muted);
  font-size: 9px;
  padding: 2px 5px;
}
.app-shell .top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.app-shell .icon-btn,
.app-shell .top-actions .ui-v6-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
}
.app-shell .icon-btn:hover {
  background: var(--primary-softer);
  color: var(--primary-strong);
}
.app-shell .badge-dot {
  background: var(--red);
}
.app-shell .lg-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.app-shell .lg-profile:hover {
  background: var(--surface-soft);
}
.app-shell .lg-profile .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 10px;
}
.app-shell .lg-profile-copy b,
.app-shell .lg-profile-copy small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .lg-profile-copy b {
  font-size: 11px;
}
.app-shell .lg-profile-copy small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}
.app-shell .lg-mobile-menu {
  display: none !important;
}
.app-shell .content {
  width: min(var(--ui-content-max), 100%);
  max-width: none;
  margin: 0 auto;
  padding: 20px clamp(16px, 2vw, 28px) 48px;
  min-width: 0;
}
.app-shell .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}
.app-shell .ui-v6-page-title,
.app-shell .page-head h1 {
  margin: 0;
  color: var(--text);
  font-size: var(--ui-font-page-title);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.app-shell .ui-v6-page-description,
.app-shell .page-head p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.app-shell .lg-eyebrow,
.app-shell .eyebrow {
  color: var(--primary-strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-shell .head-actions,
.app-shell .ui-v6-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
/* Cards, controls, tables and state chips */
.app-shell .panel,
.app-shell .kpi,
.app-shell .ui-v6-card,
.app-shell .stat-card,
.app-shell .ui-v6-hr-kpi,
.app-shell .ui-v6-hr-list,
.app-shell .lg-panel,
.app-shell .lg-metric {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.app-shell .panel {
  padding: 16px;
}
.app-shell .panel.pad0 {
  padding: 0;
  overflow: hidden;
}
.app-shell .panel-title,
.app-shell .lg-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
}
.app-shell .panel-title h2,
.app-shell .lg-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}
.app-shell .panel-title p,
.app-shell .lg-panel-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 10px;
}
.app-shell .kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.app-shell .kpi {
  position: relative;
  padding: 14px;
}
.app-shell .kpi:before {
  display: none;
}
.app-shell .kpi label {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
}
.app-shell .kpi strong {
  margin: 5px 0 2px;
  color: var(--text);
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.app-shell .kpi small {
  color: var(--text-muted);
  font-size: 10px;
}
.app-shell .grid {
  gap: 12px;
}
.app-shell .grid.two {
  grid-template-columns: 1fr 1fr;
}
.app-shell .grid.equal {
  grid-template-columns: 1fr 1fr;
}
.app-shell .grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
  transition:
    transform 150ms var(--ease),
    background 150ms var(--ease),
    border-color 150ms var(--ease);
}
.app-shell .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(70, 120, 100, 0.32);
  background: var(--surface-soft);
  box-shadow: none;
}
.app-shell .btn.primary,
.app-shell .top-actions .ui-v6-button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.app-shell .btn.primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}
.app-shell .btn.success {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.app-shell .btn.danger {
  border-color: rgba(235, 104, 115, 0.2);
  background: var(--red-soft);
  color: #a93f4b;
}
.app-shell .btn.soft {
  background: var(--surface-mint);
}
.app-shell .btn.small {
  min-height: 31px;
  padding: 6px 9px;
  font-size: 10px;
}
.app-shell input:not([type="checkbox"]):not([type="radio"]),
.app-shell select,
.app-shell textarea,
.app-shell .input,
.app-shell .ui-v6-field {
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}
.app-shell .field input,
.app-shell .field select,
.app-shell .field textarea,
.app-shell .input,
.app-shell .ui-v6-field {
  min-height: 38px;
  padding: 8px 10px;
}
.app-shell .field label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}
.app-shell .field textarea {
  min-height: 86px;
}
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus,
.app-shell .input:focus,
.app-shell .ui-v6-field:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(81, 167, 125, 0.12);
}
.app-shell .form-grid {
  gap: 12px;
}
.app-shell .form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-shell .toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.app-shell .toolbar .input {
  min-width: 160px;
}
.app-shell .table-wrap,
.app-shell .ui-v6-hr-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overscroll-behavior-x: contain;
}
.app-shell .table,
.app-shell .ui-v6-hr-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 11px;
}
.app-shell .table th,
.app-shell .ui-v6-hr-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  background: #f3f8f5;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}
.app-shell .table td,
.app-shell .ui-v6-hr-table td {
  padding: 8px 10px;
  border-top: 1px solid rgba(70, 120, 100, 0.1);
  color: var(--text);
  vertical-align: middle;
}
.app-shell .table tbody tr:hover td,
.app-shell .ui-v6-hr-table tbody tr:hover td {
  background: #f8fbf9;
}
.app-shell .table .money,
.app-shell .table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.app-shell .namecell {
  gap: 8px;
}
.app-shell .mini-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.app-shell .table-wrap .actions-inline {
  white-space: nowrap;
}
.app-shell .chip,
.app-shell .status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
}
.app-shell .status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.app-shell .chip.green,
.app-shell .status-chip--success {
  color: #287451;
  background: var(--green-soft);
  border-color: rgba(54, 183, 122, 0.16);
}
.app-shell .chip.orange,
.app-shell .status-chip--warning {
  color: #85651b;
  background: var(--yellow-soft);
  border-color: rgba(233, 185, 75, 0.2);
}
.app-shell .chip.red,
.app-shell .status-chip--danger {
  color: #a93f4b;
  background: var(--red-soft);
  border-color: rgba(235, 104, 115, 0.18);
}
.app-shell .chip.blue,
.app-shell .status-chip--info {
  color: #367357;
  background: var(--primary-softer);
  border-color: var(--border);
}
.app-shell .chip.purple,
.app-shell .status-chip--locked {
  color: #526d64;
  background: #eef7f2;
  border-color: var(--border);
}
.app-shell .empty {
  padding: 30px 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.app-shell .empty b {
  color: var(--text-secondary);
}
.app-shell .list-row,
.app-shell .info-card,
.app-shell .flow-step,
.app-shell .kanban-col,
.app-shell .deal-card,
.app-shell .preflight-row {
  border-color: var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  box-shadow: none;
}
.app-shell .list-row {
  padding: 9px;
}
.app-shell .list-row b,
.app-shell .info-card b,
.app-shell .deal-card b {
  color: var(--text);
}
.app-shell .list-row small,
.app-shell .muted,
.app-shell .info-card label,
.app-shell .deal-card small {
  color: var(--text-muted);
}
.app-shell .progress {
  background: #eaf2ed;
}
.app-shell .progress > span {
  background: var(--primary);
}
/* Shell status */
.app-shell.redesign-shell .lg-page-hero {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--text);
}
.app-shell.redesign-shell .lg-page-hero h1 {
  color: var(--text);
}
.app-shell.redesign-shell .lg-page-hero p {
  color: var(--text-secondary);
}
.app-shell .statusbar {
  gap: 6px;
  margin-bottom: 12px;
}
.app-shell .tabs {
  border-color: var(--border);
}
.app-shell .tabs button.active {
  color: var(--primary-strong);
  border-color: var(--primary);
}
/* Dashboard: compact banner, four metrics and real-data panels */
.app-shell .lg-dashboard {
  display: grid;
  gap: 10px;
}
.app-shell .lg-dashboard-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 20px 24px;
  overflow: hidden;
  border: 1px solid rgba(70, 120, 100, 0.12) !important;
  border-radius: 18px !important;
  background: #668f79 !important;
  box-shadow: var(--shadow-md) !important;
  color: white;
}
.app-shell .lg-dashboard-hero:before {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block !important;
  content: "";
  background: url("/assets/hero-office-mint.png") center 49% / cover no-repeat;
  filter: saturate(0.72) brightness(0.84);
}
.app-shell .lg-dashboard-hero:after {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block !important;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(23, 75, 55, 0.84) 0%,
    rgba(36, 95, 68, 0.65) 39%,
    rgba(40, 93, 69, 0.2) 74%,
    rgba(31, 80, 60, 0.12) 100%
  );
}
.app-shell .lg-dashboard-hero .lg-hero-copy,
.app-shell .lg-dashboard-hero .lg-hero-note {
  position: relative;
  z-index: 1;
}
.app-shell .lg-hero-copy h1 {
  margin: 5px 0 6px;
  color: #fff;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.app-shell .lg-hero-copy p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}
.app-shell .lg-hero-copy small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}
.app-shell .lg-dashboard-hero .lg-eyebrow {
  color: #e5f5ec;
}
.app-shell .lg-hero-note {
  width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  color: var(--text);
}
.app-shell .lg-hero-note span,
.app-shell .lg-hero-note strong {
  display: block;
}
.app-shell .lg-hero-note span {
  color: var(--text-secondary);
  font-size: 10px;
}
.app-shell .lg-hero-note strong {
  margin: 6px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.app-shell .lg-dashboard-hero .v7-text-action {
  color: var(--primary-strong);
}
.app-shell .lg-dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0 1px;
  color: var(--text-secondary);
  font-size: 10px;
}
.app-shell .lg-dashboard-toolbar label {
  font-weight: 650;
}
.app-shell .lg-dashboard-toolbar input {
  width: 130px;
  min-height: 29px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 10px;
}
.app-shell .lg-dashboard-toolbar span {
  color: var(--text-muted);
}
.app-shell .lg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.app-shell .lg-metric {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: 10px;
  row-gap: 3px;
  min-height: 91px;
  padding: 12px 14px;
  overflow: hidden;
}
.app-shell .lg-metric:after {
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e3f6ed;
  opacity: 0.8;
  filter: none;
  content: "";
}
.app-shell .lg-metric-icon {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1/4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--primary);
}
.app-shell .lg-metric:nth-child(2) .lg-metric-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.app-shell .lg-metric:nth-child(3) .lg-metric-icon {
  background: var(--orange-soft);
  color: var(--orange);
}
.app-shell .lg-metric:nth-child(4) .lg-metric-icon {
  background: var(--mint-soft);
  color: var(--green);
}
.app-shell .lg-metric label {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 550;
}
.app-shell .lg-metric strong {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.app-shell .lg-metric strong.lg-money {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.app-shell .lg-delta {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.app-shell .lg-delta.down {
  color: var(--red);
}
.app-shell .lg-delta.same,
.app-shell .lg-delta.unavailable {
  color: var(--text-muted);
}
.app-shell .lg-delta small {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 400;
}
.app-shell .lg-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
}
.app-shell .lg-dashboard-lower {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.app-shell .lg-panel {
  padding: 14px;
  min-height: 0;
}
.app-shell .lg-panel-head h2 {
  font-size: 13px;
}
.app-shell .lg-panel-head p,
.app-shell .lg-muted {
  color: var(--text-muted);
  font-size: 10px;
}
.app-shell .lg-panel .v7-text-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--primary-strong);
  font-size: 10px;
  white-space: nowrap;
}
.app-shell .lg-panel-statline {
  display: flex;
  gap: 7px;
}
.app-shell .lg-panel-statline > div {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(70, 120, 100, 0.08);
  border-radius: 9px;
  background: var(--surface-soft);
}
.app-shell .lg-panel-statline strong,
.app-shell .lg-panel-statline span {
  display: block;
}
.app-shell .lg-panel-statline strong {
  color: var(--text);
  font-size: 16px;
}
.app-shell .lg-panel-statline span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}
.app-shell .lg-flow-line {
  height: 104px;
  margin-top: 9px;
  border-top: 1px solid rgba(70, 120, 100, 0.08);
  border-radius: 8px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 25px,
    rgba(70, 120, 100, 0.08) 25px 26px
  );
}
.app-shell .lg-flow-line svg {
  width: 100%;
  height: 100%;
  filter: none;
}
.app-shell .lg-big-value {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.app-shell .lg-payroll-delta {
  font-size: 10px;
}
.app-shell .lg-payroll-decoration {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 76px;
  margin-top: 9px;
  padding: 0 7px 3px;
  border-bottom: 1px solid var(--border);
}
.app-shell .lg-payroll-decoration span {
  flex: 1;
  min-width: 10px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, #9edfc0, #51a77d);
  opacity: 0.88;
}
.app-shell .lg-payroll-decoration span:nth-child(3n) {
  background: linear-gradient(to top, #beeae8, #55b9b0);
}
.app-shell .lg-contract-overview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-shell .lg-ring {
  display: grid;
  place-content: center;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border: 8px solid #45c59a;
  border-left-color: #45bfc4;
  border-top-color: #9bdfbf;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  text-align: center;
}
.app-shell .lg-ring b {
  color: var(--text);
  font-size: 20px;
}
.app-shell .lg-ring small {
  color: var(--text-muted);
  font-size: 9px;
}
.app-shell .lg-contract-overview > div {
  display: grid;
  flex: 1;
  gap: 4px;
}
.app-shell .lg-contract-overview > div > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
}
.app-shell .lg-contract-overview strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.app-shell .lg-activity-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 1px;
  border-bottom: 1px solid rgba(70, 120, 100, 0.1);
}
.app-shell .lg-activity-row:last-child {
  border-bottom: 0;
}
.app-shell .lg-row-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.app-shell .lg-activity-row b {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .lg-activity-row small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .lg-activity-row time {
  color: var(--text-muted);
  font-size: 9px;
  white-space: nowrap;
}
.app-shell .lg-empty {
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}
/* Personnel, attendance, payroll and workflow refinements */
.app-shell .ui-v6-hr-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.app-shell .ui-v6-hr-list,
.app-shell .ui-v6-hr-kpi {
  padding: 12px;
}
.app-shell .ui-v6-hr-table {
  min-width: 820px;
}
.app-shell .app-att-page {
  color: var(--text);
}
.app-shell .app-att-matrix-panel,
.app-shell .app-data-gov-page > section,
.app-shell .v7-exchange-actions,
.app-shell .v7-exchange-history {
  border-color: var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.app-shell .app-att-matrix {
  border-color: var(--border);
}
.app-shell .app-att-matrix th {
  background: #f3f8f5;
  color: var(--text-secondary);
}
.app-shell .app-att-matrix td {
  border-color: var(--border);
}
.app-shell .app-att-matrix .today {
  background: var(--primary-softer);
  box-shadow: inset 0 0 0 1px rgba(81, 167, 125, 0.4);
}
.app-shell .v7-exchange-flow span {
  border-color: var(--border);
  background: #fff;
  color: var(--text-secondary);
}
.app-shell .v7-exchange-modules article,
.app-shell .v7-exchange-jobs article {
  border-color: var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.app-shell .v7-exchange-actions h2,
.app-shell .v7-panel-head h2 {
  color: var(--text);
}
.app-shell .v7-module-drawer {
  color: var(--text);
}
.app-shell .stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.app-shell .stat-card {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 11px 13px;
}
.app-shell .stat-card > span {
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.app-shell .stat-card strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}
.app-shell .stat-card small {
  color: var(--text-muted);
  font-size: 9px;
}
.app-shell .app-att-filters {
  display: grid;
  grid-template-columns: 150px 210px minmax(180px, 1fr) auto;
  align-items: end;
  gap: 9px;
}
.app-shell .app-att-matrix-head,
.app-shell .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px 9px;
}
.app-shell .app-att-matrix-head h3,
.app-shell .panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
.app-shell .app-att-matrix-scroll {
  max-height: 68vh;
  overflow: auto;
}
.app-shell .app-att-matrix th,
.app-shell .app-att-matrix td {
  min-width: 52px;
  padding: 5px 6px;
  border-color: var(--border);
  font-size: 10px;
}
.v7-bottom-nav {
  display: none;
}
/* Dialogs, mobile drawer, focus and reduced motion */
.modal-backdrop {
  z-index: 100;
  background: rgba(24, 52, 44, 0.26);
  backdrop-filter: blur(3px);
  animation: mint-fade-in 160ms ease both;
}
.modal {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(35, 80, 60, 0.16);
  animation: mint-modal-in 180ms var(--ease) both;
}
.modal-head,
.modal-foot {
  border-color: var(--border);
  background: #fff;
}
.modal-head h3 {
  color: var(--text);
  font-size: 15px;
}
.modal .field label,
.modal .panel-title h2,
.modal .empty b {
  color: var(--text-secondary);
}
.modal input:not([type="checkbox"]):not([type="radio"]),
.modal select,
.modal textarea,
.modal .input {
  color: var(--text);
  background: #fafcfb;
  border-color: var(--border-strong);
}
.modal select option {
  background: #fff;
  color: var(--text);
}
.modal .table-wrap,
.modal .list-row,
.modal .info-card,
.modal .flow-step,
.modal .dropzone {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--text);
}
.modal .table th {
  background: #f3f8f5;
  color: var(--text-secondary);
}
.toast {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.v7-bottom-nav,
.app-mobile-nav {
  color: var(--text-secondary);
}
.v7-module-drawer {
  color: var(--text);
  background: rgba(24, 52, 44, 0.22);
  backdrop-filter: blur(3px);
}
.v7-module-drawer-sheet {
  background: #fff;
  color: var(--text);
}
.v7-module-drawer-head {
  border-color: var(--border);
}
.v7-module-list button {
  color: var(--text-secondary);
}
.app-shell :focus-visible,
.v7-bottom-nav :focus-visible,
.v7-module-drawer :focus-visible {
  outline: 3px solid rgba(81, 167, 125, 0.44);
  outline-offset: 2px;
}
@keyframes mint-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mint-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mint-modal-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.app-shell #content.route-enter > * {
  animation: mint-enter 190ms var(--ease) both;
}
.app-shell #content.route-enter > *:nth-child(2) {
  animation-delay: 20ms;
}
.app-shell #content.route-enter > *:nth-child(3) {
  animation-delay: 40ms;
}
.app-shell .sidebar {
  transition:
    width 160ms var(--ease),
    transform 180ms var(--ease);
}
/* Tablet */
@media (max-width: 960px) {
  :root {
    --sidebar-width: 76px;
  }
  .app-shell .brand {
    justify-content: center;
    padding-inline: 0;
  }
  .app-shell .brand-copy,
  .app-shell .brand > div:not(.brand-mark),
  .app-shell .redesign-workspace,
  .app-shell .nav button span,
  .app-shell .nav-group,
  .app-shell .side-user > div:not(.avatar) {
    display: none;
  }
  .app-shell .nav button {
    justify-content: center;
    padding-inline: 7px;
  }
  .app-shell .nav button i {
    width: 22px;
  }
  .app-shell .side-user {
    justify-content: center;
  }
  .app-shell .lg-dashboard-lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-shell .lg-dashboard-lower .lg-panel:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 1024px) {
  .app-shell .content {
    padding-inline: 18px;
  }
  .app-shell .lg-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-shell .lg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-shell .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  body:has(.app-shell) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .app-shell.redesign-shell {
    display: block;
  }
  .app-shell .sidebar {
    display: flex !important;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(286px, 86vw);
    height: 100dvh;
    padding: 14px 12px;
    z-index: 70;
    transform: translateX(-105%);
    transition: transform 180ms var(--ease);
    box-shadow: var(--shadow-md);
  }
  .app-shell .sidebar .brand {
    justify-content: flex-start;
    padding-inline: 7px;
  }
  .app-shell .sidebar .brand-copy,
  .app-shell .sidebar .brand > div:not(.brand-mark),
  .app-shell .sidebar .redesign-workspace,
  .app-shell .sidebar .nav button span,
  .app-shell .sidebar .nav-group,
  .app-shell .sidebar .side-user > div {
    display: block;
  }
  .app-shell .sidebar .nav button {
    justify-content: flex-start;
    padding-inline: 9px;
  }
  .app-shell.redesign-shell.is-sidebar-expanded .sidebar {
    transform: translateX(0);
  }
  .app-shell .topbar {
    height: 58px;
    gap: 8px;
    padding: 0 12px;
  }
  .app-shell .lg-mobile-menu {
    display: grid !important;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
  .app-shell .topbar-context {
    display: none;
  }
  .app-shell .searchbox {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .app-shell .searchbox kbd {
    display: none;
  }
  .app-shell .content {
    padding: 16px 16px 94px;
  }
  .app-shell .lg-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-shell .modal-backdrop {
    place-items: stretch;
    padding: 0;
  }
  .app-shell .modal,
  .app-shell .modal.wide,
  .app-shell .modal-backdrop:has(.modal.wide) .modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .app-shell .v7-bottom-nav {
    display: none !important;
  }
  #app-mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    gap: 4px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 18px rgba(39, 83, 66, 0.06);
    backdrop-filter: blur(12px);
  }
  #app-mobile-nav .app-mobile-tab {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 56px;
    min-height: 48px;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 9px;
  }
  #app-mobile-nav .app-mobile-tab.active {
    background: var(--primary-softer);
    color: var(--primary-strong);
  }
  #app-mobile-nav .app-mobile-tab-icon {
    min-height: 20px;
  }
  #app-mobile-overlay {
    background: rgba(24, 52, 44, 0.22);
  }
  #app-mobile-drawer {
    border-color: var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }
  .app-mobile-drawer-head {
    border-color: var(--border);
  }
  .app-mobile-drawer-head small {
    color: var(--primary-strong);
  }
  .app-mobile-drawer-head b {
    color: var(--text);
    font-size: 16px;
  }
  .app-mobile-close {
    min-width: 44px;
    min-height: 44px;
    background: var(--surface-mint);
    color: var(--text-secondary);
  }
  .app-mobile-drawer-item {
    min-height: 48px;
    border-color: var(--border);
    border-radius: 11px;
    color: var(--text);
    font-weight: 550;
  }
  .app-mobile-drawer-item.active {
    border-color: var(--border-strong);
    background: var(--primary-softer);
    color: var(--primary-strong);
  }
  .app-mobile-drawer-icon {
    background: var(--surface-mint);
    color: var(--primary-strong);
  }
  .app-mobile-drawer-item.active .app-mobile-drawer-icon {
    background: var(--primary-soft);
  }
}
/* Mobile */
@media (max-width: 640px) {
  .app-shell .content {
    padding: 12px 12px 92px;
  }
  .app-shell .page-head {
    display: block;
    margin-bottom: 14px;
  }
  .app-shell .page-head h1,
  .app-shell .ui-v6-page-title {
    font-size: 23px;
  }
  .app-shell .page-head p,
  .app-shell .ui-v6-page-description {
    font-size: 11px;
  }
  .app-shell .head-actions,
  .app-shell .ui-v6-page-actions {
    margin-top: 10px;
  }
  .app-shell .head-actions .btn {
    min-height: 40px;
  }
  .app-shell .lg-dashboard {
    gap: 9px;
  }
  .app-shell .lg-dashboard-hero {
    min-height: 120px;
    padding: 15px 16px;
    border-radius: 15px !important;
  }
  .app-shell .lg-hero-copy h1 {
    font-size: 22px;
  }
  .app-shell .lg-hero-copy p {
    max-width: 32ch;
    font-size: 10px;
  }
  .app-shell .lg-hero-copy small {
    font-size: 9px;
  }
  .app-shell .lg-hero-note {
    display: none;
  }
  .app-shell .lg-dashboard-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 9px;
  }
  .app-shell .lg-dashboard-toolbar input {
    min-height: 32px;
  }
  .app-shell .lg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .app-shell .lg-metric {
    grid-template-columns: 31px minmax(0, 1fr);
    column-gap: 7px;
    min-height: 82px;
    padding: 10px;
  }
  .app-shell .lg-metric-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .app-shell .lg-metric label {
    font-size: 9px;
  }
  .app-shell .lg-metric strong {
    font-size: 19px;
  }
  .app-shell .lg-metric strong.lg-money {
    font-size: 15px;
  }
  .app-shell .lg-delta {
    font-size: 9px;
  }
  .app-shell .lg-delta small {
    font-size: 8px;
  }
  .app-shell .lg-dashboard-grid,
  .app-shell .lg-dashboard-lower {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .app-shell .lg-dashboard-lower .lg-panel:last-child {
    grid-column: auto;
  }
  .app-shell .lg-panel {
    padding: 12px;
  }
  .app-shell .lg-flow-line {
    height: 88px;
  }
  .app-shell .lg-payroll-decoration {
    height: 68px;
  }
  .app-shell .kpis,
  .app-shell .ui-v6-hr-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .app-shell .kpi {
    padding: 11px;
  }
  .app-shell .kpi strong {
    font-size: 20px;
  }
  .app-shell .panel {
    padding: 12px;
  }
  .app-shell .grid.two,
  .app-shell .grid.equal,
  .app-shell .grid.three,
  .app-shell .form-grid.two {
    grid-template-columns: 1fr;
  }
  .app-shell .toolbar {
    align-items: stretch;
  }
  .app-shell .toolbar .input {
    flex: 1;
    min-width: 120px;
  }
  .app-shell .table-wrap,
  .app-shell .ui-v6-hr-table-wrap {
    max-width: calc(100vw - 24px);
  }
  .app-shell .table {
    min-width: 720px;
  }
  .app-shell .lg-profile {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 2px;
  }
  .app-shell .lg-profile .avatar {
    width: 30px;
    height: 30px;
  }
  .app-shell .lg-profile-copy,
  .app-shell .lg-profile > .app-icon {
    display: none;
  }
  .app-shell #quick-btn {
    display: none;
  }
  .app-shell .top-actions {
    gap: 2px;
  }
  .app-shell .top-actions .icon-btn {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 390px) {
  .app-shell .content {
    padding-inline: 10px;
  }
  .app-shell .lg-dashboard-hero {
    min-height: 116px;
    padding: 13px;
  }
  .app-shell .lg-hero-copy h1 {
    font-size: 20px;
  }
  .app-shell .lg-panel-statline {
    gap: 5px;
  }
  .app-shell .lg-panel-statline > div {
    padding: 6px;
  }
  .app-shell .lg-panel-statline span {
    font-size: 8px;
  }
  .app-shell .lg-activity-row {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 5px;
  }
  .app-shell .lg-activity-row time {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Attendance day cards retain the individual edit action while avoiding a 30 row page. */
.app-shell .redesign-attendance-mobile {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.app-shell .redesign-attendance-mobile .redesign-list-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}
.app-shell .redesign-attendance-mobile .redesign-list-heading p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 10px;
}
.app-shell .redesign-attendance-mobile > .field {
  max-width: 340px;
}
.app-shell .redesign-attendance-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.app-shell .redesign-attendance-day {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}
.app-shell .redesign-attendance-day time {
  grid-column: 1/-1;
  color: var(--text-muted);
  font-size: 9px;
  text-transform: capitalize;
}
.app-shell .redesign-attendance-day > div {
  min-width: 0;
}
.app-shell .redesign-attendance-day b {
  color: var(--text);
  font-size: 11px;
}
.app-shell .redesign-attendance-day small {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .redesign-attendance-day .btn {
  min-width: 38px;
  min-height: 34px;
  padding: 4px 6px;
  font-size: 9px;
}
.app-shell .app-att-matrix-panel:not(.redesign-mobile-matrix-open) {
  display: none;
}
.app-shell .app-att-matrix-panel.redesign-mobile-matrix-open {
  display: block;
}
@media (max-width: 1180px) {
  .app-shell .stats-grid.app-att-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-shell .redesign-attendance-days {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .app-shell .app-att-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .app-shell .stats-grid.app-att-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-shell .redesign-attendance-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-shell .redesign-attendance-day .btn {
    min-width: 44px;
    min-height: 44px;
  }
  .app-shell .app-att-filters {
    grid-template-columns: 1fr;
  }
  .app-shell .app-att-head-actions {
    justify-content: flex-start;
  }
  .app-shell .app-att-matrix-head {
    display: grid;
  }
  .app-shell .app-att-legend {
    font-size: 10px;
  }
}
/* Authentication keeps the same calm product palette as the workspace. */
.auth-page.redesign-auth {
  min-height: 100vh;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--app-bg);
}
.redesign-auth .auth-card,
.redesign-auth .auth-visual {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}
.redesign-auth .auth-card {
  padding: 30px;
}
.redesign-auth .auth-brand .brand-mark {
  background: linear-gradient(
    145deg,
    #9adabb,
    var(--primary) 65%,
    var(--primary-strong)
  );
  color: #fff;
  box-shadow: none;
}
.redesign-auth .auth-card h1,
.redesign-auth .auth-brand b {
  color: var(--text);
}
.redesign-auth .auth-card > p {
  color: var(--text-secondary);
}
.redesign-auth .auth-tabs {
  background: var(--surface-mint);
}
.redesign-auth .auth-tabs button.active {
  color: var(--primary-strong);
}
.redesign-auth .btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.redesign-auth .auth-visual {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(23, 75, 55, 0.82), rgba(36, 95, 68, 0.26)),
    url("/assets/hero-office-mint.png") center/cover no-repeat;
  color: #fff;
}
.redesign-auth .auth-visual:before {
  display: none;
}
.redesign-auth .auth-visual h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
}
.redesign-auth .auth-visual p,
.redesign-auth .auth-visual .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}
.redesign-auth .feature-card,
.redesign-auth .redesign-auth-highlights > div {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}
.redesign-auth .auth-footer {
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .app-shell.redesign-shell.is-sidebar-expanded:before {
    position: fixed;
    z-index: 65;
    inset: 0;
    display: block;
    background: rgba(24, 52, 44, 0.22);
    content: "";
  }
  .auth-page.redesign-auth {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }
  .redesign-auth .auth-card {
    padding: 22px;
  }
  .redesign-auth .auth-visual {
    display: none;
  }
}
/* Personnel list controls and compact summary cards. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.app-shell .redesign-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}
.app-shell .redesign-section-label small,
.app-shell .redesign-list-heading > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}
.app-shell .ui-v6-hr-kpi {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 72px;
  padding: 10px 12px;
}
.app-shell .ui-v6-hr-kpi > span {
  color: var(--text-secondary);
  font-size: 10px;
}
.app-shell .ui-v6-hr-kpi > b {
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.app-shell .ui-v6-hr-kpi > small {
  color: var(--text-muted);
  font-size: 9px;
}
.app-shell .redesign-hr-kpis {
  margin-bottom: 10px;
}
.app-shell .ui-v6-hr-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px)
    auto auto;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
}
.app-shell .ui-v6-hr-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-left: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text-muted);
}
.app-shell .ui-v6-hr-search input {
  width: 100%;
  min-height: 36px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.app-shell .ui-v6-hr-filter select {
  width: 100%;
  min-height: 36px;
}
.app-shell .ui-v6-hr-result-count {
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}
.app-shell .ui-v6-pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:10px;
  color:#71877e;
  font-size:11px;
}
.app-shell .ui-v6-pagination > div { display:flex; align-items:center; gap:8px; }
.app-shell .ui-v6-pagination .btn { min-height:32px; }
.app-shell .ui-v6-pagination .btn:disabled { cursor:default; opacity:.45; transform:none; }
.app-shell .redesign-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 640px) {
  .app-shell .ui-v6-hr-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .app-shell .ui-v6-hr-search {
    grid-column: 1/-1;
  }
  .app-shell .ui-v6-hr-clear {
    min-height: 40px;
  }
  .app-shell .ui-v6-hr-result-count {
    justify-self: end;
  }
}
.app-shell .ui-v6-employee-form-section {
  grid-column: 1/-1;
  margin: 6px 0 -3px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-mint);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 650;
}
@media (max-width: 640px) {
  .app-shell .btn,
  .app-shell .btn.small,
  .app-shell .icon-btn,
  .app-shell .top-actions .icon-btn,
  .app-shell .lg-profile,
  .app-shell .field input,
  .app-shell .field select {
    min-height: 44px;
  }
  .app-shell .icon-btn,
  .app-shell .top-actions .icon-btn {
    width: 44px;
  }
  .app-shell .lg-profile {
    min-width: 44px;
  }
  .app-shell .searchbox {
    height: 44px;
  }
}
.app-shell .v7-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 600;
}
.app-shell .v7-text-action:hover {
  background: var(--primary-softer);
  color: var(--primary-strong);
}
.modal .btn.primary,
.modal .btn.success {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.modal .btn.primary:hover,
.modal .btn.success:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}
.modal .close-btn {
  min-width: 36px;
  min-height: 36px;
  background: var(--surface-mint);
  color: var(--text-secondary);
}
@media (max-width: 640px) {
  .modal .btn,
  .modal .btn.small,
  .modal .close-btn {
    min-height: 44px;
  }
  .modal .close-btn {
    min-width: 44px;
  }
}
@media (max-width: 860px) {
  .app-shell .lg-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.modal .btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}
.modal .btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--text);
}
.modal .btn.danger {
  border-color: rgba(235, 104, 115, 0.2);
  background: var(--red-soft);
  color: #a93f4b;
}
.modal .btn.soft {
  background: var(--surface-mint);
  color: var(--primary-strong);
}
@media (max-width: 1180px) {
  .app-shell .topbar-context {
    display: none;
  }
}
@media (max-width: 640px) {
  .modal .btn,
  .modal .btn.small,
  .modal .close-btn {
    min-height: 44px;
  }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .app-shell .brand {
    justify-content: flex-start;
    padding-inline: 7px;
  }
  .app-shell .brand-copy,
  .app-shell .nav button span,
  .app-shell .nav-group,
  .app-shell .redesign-workspace,
  .app-shell .side-user > div:not(.avatar) {
    display: block;
  }
  .app-shell .redesign-workspace {
    display: flex;
  }
  .app-shell .nav button {
    justify-content: flex-start;
    padding-inline: 9px;
  }
  .app-shell .side-user {
    justify-content: flex-start;
  }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .app-shell .brand > div:not(.brand-mark) {
    display: block;
  }
}

/* Approved mint product layout: shared shell and dense module surfaces. */
:root {
  --sidebar-width: 224px;
  --ui-page-padding: 20px;
  --ui-page-padding-mobile: 12px;
}
.app-shell.redesign-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  background: #eef5f1;
}
.app-shell .sidebar {
  background: rgba(255, 255, 255, .88);
  border-right-color: rgba(70, 120, 100, .10);
}
.app-shell .nav button {
  min-height: 42px;
  border-radius: 10px;
  color: #405f54;
}
.app-shell .nav button:hover {
  background: #edf7f2;
  color: #34795a;
}
.app-shell .nav button.active,
.app-shell .nav button[aria-current="page"] {
  background: linear-gradient(90deg, #ddefe6, #edf7f2);
  color: #34795a;
  box-shadow: none;
}
.app-shell .nav button i { color: currentColor; }
.app-shell .workspace { min-width: 0; }
.app-shell .topbar {
  min-height: 62px;
  height: 62px;
  padding-inline: 18px 20px;
  border-bottom: 1px solid rgba(70, 120, 100, .08);
  background: rgba(255,255,255,.88);
  box-shadow: none;
}
.app-shell .searchbox {
  height: 40px;
  border: 1px solid rgba(70,120,100,.12);
  border-radius: 12px;
  background: #f5f9f7;
  padding: 0 10px;
}
.app-shell .searchbox input { font-size: 12px; }
.app-shell .content {
  width: 100%;
  max-width: 1600px;
  padding: 20px 20px 28px;
  background: transparent;
}
.app-shell .page-head,
.app-shell.redesign-shell .lg-page-hero,
.app-shell .ui-v6-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.app-shell .lg-eyebrow {
  display: block;
  margin: 0 0 5px;
  color: #71877e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.app-shell .page-head h1,
.app-shell .ui-v6-page-title,
.app-shell.redesign-shell .lg-page-hero h1 {
  margin: 0;
  color: #18342c;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.app-shell .page-head p,
.app-shell .ui-v6-page-description,
.app-shell.redesign-shell .lg-page-hero p {
  margin: 5px 0 0;
  color: #6d837b;
  font-size: 13px;
  line-height: 1.4;
}
.app-shell .head-actions,
.app-shell .ui-v6-page-actions { gap: 7px; }
.app-shell .btn,
.app-shell .head-actions .btn {
  min-height: 40px;
  border-radius: 9px;
  font-size: 12px;
}
.app-shell .btn.primary,
.app-shell .top-actions .ui-v6-button-primary {
  background: #51a77d;
  border-color: #51a77d;
  color: white;
  font-weight: 600;
}
.app-shell .btn.primary:hover { background: #438f6b; border-color: #438f6b; }
.app-shell .kpis,
.app-shell .ui-v6-hr-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.app-shell .kpi,
.app-shell .ui-v6-hr-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: 11px;
  min-height: 100px;
  padding: 13px 15px;
  border: 1px solid rgba(70,120,100,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 18px rgba(39,83,66,.045);
}
.app-shell .kpi label,
.app-shell .ui-v6-hr-kpi > span { grid-column: 2; grid-row: 1; font-size: 12px; color: #61766e; }
.app-shell .kpi strong,
.app-shell .ui-v6-hr-kpi > b { grid-column: 2; grid-row: 2; margin: 2px 0 0; font-size: 26px; line-height: 1.1; color: #18342c; }
.app-shell .kpi small,
.app-shell .ui-v6-hr-kpi > small { grid-column: 2; grid-row: 3; font-size: 11px; color: #81958e; }
.app-shell .lg-metric-heading { display: contents; }
.app-shell .lg-metric-mark {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  align-self: center;
  border-radius: 10px;
  background: #e3f6ed;
  color: #27855a;
}
.app-shell .ui-v6-hr-kpi .lg-metric-heading > span:not(.lg-metric-mark) {
  color:#61766e;
  font-size:12px;
}
.app-shell .stats-grid {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.app-shell .stat-card {
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  align-content:center;
  column-gap:10px;
  min-height:94px;
  padding:12px;
  border:1px solid rgba(70,120,100,.11);
  border-radius:14px;
  background:rgba(255,255,255,.9);
  box-shadow:0 5px 18px rgba(39,83,66,.045);
}
.app-shell .stat-card .lg-metric-heading { display:contents; }
.app-shell .stat-card .lg-metric-heading > span:not(.lg-metric-mark) { grid-column:2; grid-row:1; color:#61766e; font-size:11px; }
.app-shell .stat-card .lg-metric-mark { grid-column:1; grid-row:1 / span 3; }
.app-shell .stat-card strong { grid-column:2; grid-row:2; font-size:23px; }
.app-shell .stat-card small { grid-column:2; grid-row:3; font-size:10px; }
.app-shell .stat-card:nth-child(5n+2) .lg-metric-mark { background:#dff6f6; color:#25858a; }
.app-shell .stat-card:nth-child(5n+3) .lg-metric-mark { background:#fff5d8; color:#a56c12; }
.app-shell .stat-card:nth-child(5n+4) .lg-metric-mark { background:#fdecef; color:#bb5360; }
.app-shell .stat-card:nth-child(5n+5) .lg-metric-mark { background:#e8f2fc; color:#3d78b8; }
.app-shell .app-att-filter-panel { padding:12px 14px; margin-bottom:12px; }
.app-shell .app-att-matrix-panel { min-height:0; }
.app-shell .app-att-matrix-head { margin-bottom:10px; }
.app-shell .app-att-matrix-head h3 { margin:0; font-size:15px; }
.app-shell .redesign-tabs {
  display:inline-flex;
  gap:3px;
  margin:0 0 10px;
  padding:4px;
  border:1px solid rgba(70,120,100,.11);
  border-radius:11px;
  background:#f6f9f7;
}
.app-shell .redesign-tabs .btn {
  min-height:34px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.app-shell .redesign-tabs .btn.primary { background:#fff; color:#34795a; box-shadow:0 1px 4px rgba(39,83,66,.08); }
.app-shell .v7-contract-workspace { min-width:0; }
.app-shell .v7-data-region { margin-top:0; }
.app-shell .v7-list-toolbar {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
}
.app-shell .v7-list-toolbar label { min-width:0; }
.app-shell .v7-list-toolbar input,
.app-shell .v7-list-toolbar select { min-width:180px; }
.app-shell .v7-list-toolbar label:first-child { flex:1; }
.app-shell .v7-list-toolbar input { width:100%; }
.app-shell .v7-payroll-region .v7-list-toolbar > div { display:grid; gap:2px; }
.app-shell .v7-payroll-region .v7-list-toolbar small { color:#81958e; }
.app-shell .v7-payroll-mobile,
.app-shell .v7-payroll-full-grid { display:none; }
.app-shell .app-att-matrix-scroll { max-width:100%; overflow:auto; }
@media (max-width: 1024px) {
  .app-shell .stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.app-shell .kpi:nth-child(4n+2) .lg-metric-mark { background:#dff6f6; color:#25858a; }
.app-shell .kpi:nth-child(4n+3) .lg-metric-mark { background:#fff5d8; color:#a56c12; }
.app-shell .kpi:nth-child(4n+4) .lg-metric-mark { background:#e8f2fc; color:#3d78b8; }
.app-shell .ui-v6-hr-kpi { grid-template-columns:40px minmax(0,1fr); }
.app-shell .ui-v6-hr-kpi .lg-metric-heading { grid-column:2; grid-row:1; }
.app-shell .ui-v6-hr-kpi .lg-metric-mark { grid-column:1; grid-row:1 / span 3; }
.app-shell .panel,
.app-shell .ui-v6-hr-list {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(70,120,100,.11);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(39,83,66,.045);
}
.app-shell .redesign-list-heading { margin-bottom: 9px; }
.app-shell .redesign-list-heading h2,
.app-shell .panel-title h2 { font-size: 15px; font-weight: 650; color: #29443b; }
.app-shell .redesign-list-heading p,
.app-shell .panel-title p { font-size: 11px; color: #81958e; }
.app-shell input:not([type="checkbox"]):not([type="radio"]),
.app-shell select,
.app-shell .input,
.app-shell .ui-v6-hr-search {
  min-height: 40px;
  border-color: rgba(70,120,100,.16);
  border-radius: 9px;
  background-color: #fbfdfc;
  font-size: 12px;
}
.app-shell input:focus,
.app-shell select:focus,
.app-shell .input:focus {
  border-color: #73b897;
  box-shadow: 0 0 0 3px rgba(81,167,125,.10);
}
.app-shell .ui-v6-hr-search input { min-height: 38px; }
.app-shell .ui-v6-hr-toolbar { margin: 10px 0 12px; }
.app-shell .table-wrap,
.app-shell .ui-v6-hr-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(70,120,100,.08);
  border-radius: 11px;
  background: #fff;
}
.app-shell .table,
.app-shell .ui-v6-hr-table { min-width: 760px; font-size: 13px; }
.app-shell .table th,
.app-shell .ui-v6-hr-table th {
  height: 44px;
  padding: 10px 11px;
  background: #f6f9f7;
  color: #61746e;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.app-shell .table td,
.app-shell .ui-v6-hr-table td {
  height: 50px;
  padding: 9px 11px;
  border-top-color: rgba(70,120,100,.08);
  color: #29443b;
  font-size: 13px;
}
.app-shell .table tbody tr:hover td,
.app-shell .ui-v6-hr-table tbody tr:hover td { background: #f5faf7; }
.app-shell .table .muted,
.app-shell .ui-v6-hr-table small { color: #81958e; }
.app-shell .mini-avatar,
.app-shell .ui-v6-hr-avatar { background: #e3f6ed; color: #27855a; }
.app-shell .chip,
.app-shell .status-chip {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}
.app-shell .chip.green,
.app-shell .status-chip--success { background:#e3f6ed; color:#27855a; }
.app-shell .chip.orange,
.app-shell .status-chip--warning { background:#fff5d8; color:#a56c12; }
.app-shell .chip.red,
.app-shell .status-chip--danger { background:#fdecef; color:#bb5360; }
.app-shell .chip.blue,
.app-shell .status-chip--info { background:#e8f2fc; color:#3d78b8; }
.app-shell .empty,
.app-shell .ui-v6-hr-empty,
.app-shell .lg-empty {
  min-height: 170px;
  max-height: 220px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  border:0;
  border-radius:0;
  background:transparent;
  color: #81958e;
  font-size: 12px;
}
.app-shell [hidden] { display:none !important; }
.app-shell .table td > .empty {
  min-height:170px;
  max-height:220px;
  border:0;
  border-radius:0;
  background:transparent;
  padding:18px 12px;
}
@media (max-width: 640px) {
  .app-shell .table td > .empty {
    position:sticky;
    left:0;
    width:min(520px,calc(100vw - 80px));
    min-height:76px;
    max-height:100px;
    padding:8px;
  }
}
.app-shell .empty b,
.app-shell .ui-v6-hr-empty b { margin: 0; color: #29443b; font-size: 14px; }
.app-shell .empty p,
.app-shell .ui-v6-hr-empty p { margin: 0 0 5px; font-size: 12px; }
.app-shell .ui-v6-hr-empty-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:#e3f6ed; color:#27855a; }
.app-shell .redesign-section-label { margin: 0 0 8px; }
.app-shell .form-grid.two { column-gap: 14px; row-gap: 12px; }
.app-shell .field label { font-size: 12px; font-weight: 600; }
.app-shell .field input,
.app-shell .field select,
.app-shell .field textarea { min-height: 40px; border-radius: 8px; }
.app-shell .route-enter > * { animation-duration: 190ms; }
@media (max-width: 1024px) {
  .app-shell .content { padding-inline: 18px; }
}
@media (max-width: 860px) {
  .app-shell .content { padding: 16px 16px 94px; }
  .app-shell .sidebar { background:rgba(255,255,255,.98); }
}
@media (max-width: 640px) {
  .app-shell .content { padding: 14px 12px 94px; }
  .app-shell .page-head,
  .app-shell.redesign-shell .lg-page-hero,
  .app-shell .ui-v6-page-header { display:block; margin-bottom:14px !important; }
  .app-shell .page-head h1,
  .app-shell .ui-v6-page-title { font-size:23px; }
  .app-shell .head-actions { margin-top:10px; }
  .app-shell .kpis,
  .app-shell .ui-v6-hr-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .app-shell .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .app-shell .stat-card { min-height:82px; grid-template-columns:32px minmax(0,1fr); column-gap:7px; padding:9px; }
  .app-shell .stat-card .lg-metric-mark { width:32px; height:32px; }
  .app-shell .stat-card strong { font-size:19px; }
  .app-shell .v7-list-toolbar { align-items:stretch; flex-wrap:wrap; }
  .app-shell .v7-list-toolbar label { flex:1 1 100%; }
  .app-shell .kpi,
  .app-shell .ui-v6-hr-kpi { min-height:88px; padding:10px; column-gap:8px; }
  .app-shell .lg-metric-mark { width:34px; height:34px; }
  .app-shell .kpi strong,
  .app-shell .ui-v6-hr-kpi > b { font-size:21px; }
  .app-shell .table-wrap,
  .app-shell .ui-v6-hr-table-wrap { max-width:100%; }
}
@media (max-width: 390px) {
  .app-shell .content { padding-inline:10px; }
  .app-shell .kpi,
  .app-shell .ui-v6-hr-kpi { grid-template-columns:30px minmax(0,1fr); column-gap:7px; padding:9px; }
  .app-shell .lg-metric-mark { width:30px; height:30px; }
  .app-shell .kpi label,
  .app-shell .ui-v6-hr-kpi > span { font-size:10px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell *, .app-shell *::before, .app-shell *::after {
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

/* Exchange and compliance module polish */
.app-shell #content > .page-head { margin-bottom: 14px; }
.app-shell .v7-exchange-flow { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; margin:0 0 14px; padding:10px 12px; border:1px solid rgba(70,120,100,.12); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); overflow:hidden; }
.app-shell .v7-exchange-step { position:relative; display:flex; align-items:center; gap:9px; min-width:0; padding:4px 10px; }
.app-shell .v7-exchange-step:not(:last-child)::after { content:""; position:absolute; left:38px; right:-6px; top:50%; height:1px; background:#dce9e2; }
.app-shell .v7-exchange-step > span { z-index:1; display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border-radius:999px; background:#f2f6f4; color:#7b9087; font-size:11px; font-weight:750; }
.app-shell .v7-exchange-step b { position:relative; z-index:1; overflow-wrap:anywhere; color:#6d817a; font-size:12px; font-weight:650; }
.app-shell .v7-exchange-step.is-active > span { background:#51a77d; color:#fff; }
.app-shell .v7-exchange-step.is-active b { color:#34795a; }
.app-shell .v7-exchange-actions,.app-shell .v7-exchange-history { padding:17px; margin-bottom:14px; }
.app-shell .v7-exchange-section-head { margin-bottom:13px; }
.app-shell .v7-exchange-actions h2,.app-shell .v7-exchange-history h2 { margin:2px 0 3px; font-size:17px; }
.app-shell .v7-exchange-section-head p { margin:0; color:var(--text-secondary); font-size:13px; }
.app-shell .v7-exchange-modules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.app-shell .v7-exchange-module { display:flex; flex-direction:column; justify-content:space-between; gap:14px; min-width:0; padding:15px !important; }
.app-shell .v7-exchange-module-title { display:flex; align-items:center; gap:11px; min-width:0; }
.app-shell .v7-exchange-module-title > div { display:grid; gap:3px; min-width:0; }
.app-shell .v7-exchange-module-title b { color:var(--text); font-size:14px; }
.app-shell .v7-exchange-module-title small { color:var(--text-secondary); font-size:11px; }
.app-shell .v7-exchange-icon,.app-shell .app-compliance-kpi-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:12px; background:#e6f4ec; color:#39845f; }
.app-shell .v7-exchange-module--attendance .v7-exchange-icon { background:#e5f5f7; color:#398b95; }
.app-shell .v7-exchange-module--payroll .v7-exchange-icon { background:#e9eefb; color:#5d73b1; }
.app-shell .v7-exchange-module--insurance .v7-exchange-icon { background:#e7f4e8; color:#548b56; }
.app-shell .v7-exchange-module--tax .v7-exchange-icon { background:#fff2dc; color:#ad8241; }
.app-shell .v7-exchange-module-actions { display:flex; flex-wrap:wrap; gap:7px; }
.app-shell #content .v7-exchange-module-actions .btn,.app-shell .app-compliance-toolbar-card .btn { min-height:38px; height:38px; padding:0 11px; border-radius:9px; }
.app-shell .v7-exchange-module-actions .btn.primary { order:3; }
.app-shell .v7-exchange-history { min-width:0; }
.app-shell .v7-exchange-history-table { overflow-x:auto; overscroll-behavior-inline:contain; }
.app-shell .v7-exchange-history-table th,.app-shell .v7-exchange-history-table td { padding:10px 12px; }
.app-shell .v7-empty { display:flex; min-height:168px; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:var(--text-secondary); text-align:center; }
.app-shell .v7-empty b { color:var(--text); font-size:13px; }
.app-shell .v7-empty small { font-size:12px; }
.app-shell .v7-import-steps { display:flex; gap:7px; overflow-x:auto; padding-bottom:5px; }
.app-shell .v7-import-steps .flow-step { flex:1 0 120px; white-space:normal; }
.app-shell .app-compliance-toolbar-card { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 14px; padding:12px 14px; border:1px solid rgba(70,120,100,.12); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); }
.app-shell .app-compliance-toolbar-period { display:flex; align-items:center; }
.app-shell .app-compliance-month-toolbar { display:flex; align-items:center; gap:8px; margin:0; padding:0; background:transparent; border:0; }
.app-shell .app-compliance-month-toolbar label { display:flex; align-items:center; gap:9px; }
.app-shell .app-compliance-month-toolbar input[type="month"] { height:38px; min-height:38px; border-radius:9px; }
.app-shell .app-compliance-toolbar-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.app-shell .app-compliance-kpis { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)) !important; gap:10px; margin-bottom:14px; }
.app-shell .app-compliance-kpi { display:flex; align-items:center; gap:12px; min-height:101px; padding:12px; border:1px solid rgba(70,120,100,.12); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); }
.app-shell .app-compliance-kpi > div { display:grid; min-width:0; gap:2px; }
.app-shell .app-compliance-kpi label { color:var(--text-secondary); font-size:11px; }
.app-shell .app-compliance-kpi strong { color:var(--text); font-size:19px; line-height:1.25; overflow-wrap:anywhere; }
.app-shell .app-compliance-kpi small { color:var(--text-secondary); font-size:10px; }
.app-shell .app-compliance-kpi--cyan .app-compliance-kpi-icon { background:#e5f5f7; color:#398b95; }
.app-shell .app-compliance-kpi--blue .app-compliance-kpi-icon { background:#e9eefb; color:#5d73b1; }
.app-shell .app-compliance-kpi--peach .app-compliance-kpi-icon { background:#fff0e7; color:#b87653; }
.app-shell .app-compliance-kpi--yellow .app-compliance-kpi-icon { background:#fff2dc; color:#ad8241; }
.app-shell .app-compliance-segment { display:inline-flex; gap:2px; padding:3px; border-radius:10px; background:#edf4f0; }
.app-shell .app-compliance-segment button { height:36px; padding:0 13px; border:0; border-radius:8px; background:transparent; color:#6d817a; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.app-shell .app-compliance-segment button.is-active { background:#fff; color:#34795a; box-shadow:0 1px 3px rgba(35,65,50,.12); }
.app-shell .app-compliance-pagination select,.app-shell .app-compliance-pagination-actions button { height:37px; min-height:37px; border-radius:9px; }
.app-shell [data-app-compliance-combined-panel-v13="1"] .app-compliance-combined-table { min-width:1680px; }
.app-shell [data-app-compliance-combined-panel-v13="1"] .table-wrap { overflow-x:auto !important; overscroll-behavior-inline:contain; scrollbar-width:thin; scrollbar-color:#b9cbc3 #eff4f1; }
.app-shell [data-app-compliance-combined-panel-v13="1"] .table-wrap::-webkit-scrollbar { height:8px; }
.app-shell [data-app-compliance-combined-panel-v13="1"] .table-wrap::-webkit-scrollbar-track { background:#eff4f1; border-radius:999px; }
.app-shell [data-app-compliance-combined-panel-v13="1"] .table-wrap::-webkit-scrollbar-thumb { background:#b9cbc3; border-radius:999px; }
.app-shell [data-app-compliance-combined-panel-v13="1"] .table-wrap::-webkit-scrollbar-thumb:hover { background:#9fb8ad; }
.app-shell .app-compliance-combined-table thead tr:first-child th { background:#f2f7f4; font-size:12px; font-weight:700; }
.app-shell .app-compliance-combined-table thead tr:nth-child(2) th { background:#f8faf9; font-size:11px; }
.app-shell .app-compliance-combined-table td { height:50px; font-size:13px; }
.app-shell .app-compliance-combined-table td.money { text-align:right; font-variant-numeric:tabular-nums; }
.app-shell .app-compliance-combined-table th:first-child,.app-shell .app-compliance-combined-table td:first-child { position:sticky; left:0; z-index:2; background:#fff; }
.app-shell .app-compliance-combined-table thead th:first-child { z-index:4; background:#f2f7f4; }
.app-shell .app-compliance-combined-table th:nth-child(2),.app-shell .app-compliance-combined-table td:nth-child(2) { position:sticky; left:180px; z-index:2; background:#fff; }
.app-shell .app-compliance-combined-table thead th:nth-child(2) { z-index:4; background:#f2f7f4; }
.app-shell .app-compliance-combined-table td[colspan] { position:static !important; height:auto; }
.app-shell [data-compliance-view="insurance"] .app-compliance-combined-table tr > :nth-child(n+11):nth-child(-n+15) { display:none; }
.app-shell [data-compliance-view="tax"] .app-compliance-combined-table tr > :nth-child(n+3):nth-child(-n+10) { display:none; }
.app-shell .app-compliance-combined-table .empty { min-height:160px; display:grid; place-items:center; padding:18px; text-align:center; }
.app-shell #content .input,.app-shell #content select,.app-shell #content input[type="month"] { min-height:38px; border-radius:9px; border-color:rgba(70,120,100,.16); }
.app-shell #content .input:focus,.app-shell #content select:focus,.app-shell #content input:focus { outline:0; box-shadow:0 0 0 3px rgba(81,167,125,.10); }
@media (max-width:1100px) { .app-shell .v7-exchange-flow { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:8px; } .app-shell .v7-exchange-step:nth-child(3)::after { display:none; } }
@media (max-width:760px) { .app-shell .v7-exchange-flow { display:flex; overflow-x:auto; scroll-snap-type:x proximity; } .app-shell .v7-exchange-step { flex:0 0 160px; scroll-snap-align:start; } .app-shell .v7-exchange-modules { grid-template-columns:repeat(2,minmax(0,1fr)); } .app-shell .app-compliance-toolbar-card { align-items:stretch; } .app-shell .app-compliance-toolbar-actions { width:100%; } .app-shell .app-compliance-kpis { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)) !important; } }
@media (max-width:520px) { .app-shell .v7-exchange-modules { grid-template-columns:1fr; } .app-shell .v7-exchange-actions,.app-shell .v7-exchange-history { padding:13px; } .app-shell .v7-exchange-module-actions .btn { flex:1 1 auto; } .app-shell .app-compliance-month-toolbar { flex-wrap:wrap; } .app-shell .app-compliance-toolbar-actions .btn { flex:1 1 auto; } .app-shell .app-compliance-kpis { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } .app-shell .app-compliance-kpi { min-height:88px; gap:8px; padding:9px; } .app-shell .app-compliance-kpi-icon { flex-basis:34px; width:34px; height:34px; } .app-shell .app-compliance-kpi strong { font-size:16px; } .app-shell .app-compliance-segment { width:100%; } .app-shell .app-compliance-segment button { flex:1; } }
.app-shell [data-compliance-view="insurance"] .app-compliance-combined-table thead tr:first-child th:nth-child(5),.app-shell [data-compliance-view="insurance"] .app-compliance-combined-table thead tr:first-child th:nth-child(6) { display:table-cell; }
.app-shell [data-compliance-view="insurance"] .app-compliance-combined-table thead tr:first-child th:nth-child(5) { display:none; }
.app-shell [data-compliance-view="tax"] .app-compliance-combined-table thead tr:first-child th:nth-child(3),.app-shell [data-compliance-view="tax"] .app-compliance-combined-table thead tr:first-child th:nth-child(4) { display:none; }

/* Shared overlay layers. Notifications are body portals above business and critical dialogs. */
:root{--z-dropdown:1000;--z-popover:1100;--z-modal-backdrop:10000;--z-critical-dialog:11000;--z-notification:12000}
#toast-root{position:fixed;inset:0;z-index:var(--z-notification);pointer-events:none}
#toast-root .notification-stack{position:absolute;top:max(16px,env(safe-area-inset-top));right:16px;display:grid;gap:10px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:2px;pointer-events:auto;overscroll-behavior:contain}
#modal-root .notification-stack--inline,.app-dialog .notification-stack--inline{position:relative;top:auto;right:auto;display:grid;gap:8px;width:100%;max-height:35vh;margin:0 0 14px;padding:2px;overflow:auto;overscroll-behavior:contain;pointer-events:auto}
#toast-root .notification,#modal-root .notification-stack--inline .notification,.app-dialog .notification-stack--inline .notification{display:grid;grid-template-columns:30px minmax(0,1fr) 32px;align-items:start;gap:10px;max-height:min(34vh,260px);overflow:auto;padding:13px 12px;border:1px solid #dce5e0;border-left:4px solid #4778bd;border-radius:12px;background:#fff;color:#24372f;box-shadow:0 12px 34px rgba(20,44,34,.2);font-size:13px;line-height:1.5;overflow-wrap:anywhere;pointer-events:auto}
#toast-root .notification--error,#modal-root .notification-stack--inline .notification--error,.app-dialog .notification-stack--inline .notification--error{border-color:#efc9c9;border-left-color:#c33d4b;background:#fffafa;color:#541f26}
#toast-root .notification--warning,#modal-root .notification-stack--inline .notification--warning,.app-dialog .notification-stack--inline .notification--warning{border-color:#f1dfb9;border-left-color:#b7791f;background:#fffdf7;color:#523a15}
#toast-root .notification--success,#modal-root .notification-stack--inline .notification--success,.app-dialog .notification-stack--inline .notification--success{border-color:#cfe7d8;border-left-color:#258154;background:#fbfffc;color:#173e2b}
#toast-root .notification-icon,#modal-root .notification-stack--inline .notification-icon,.app-dialog .notification-stack--inline .notification-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#edf3fb;color:#315c91;font-weight:800}
#toast-root .notification--error .notification-icon,#modal-root .notification-stack--inline .notification--error .notification-icon,.app-dialog .notification-stack--inline .notification--error .notification-icon{background:#fdebed;color:#a22f3d}
#toast-root .notification--warning .notification-icon,#modal-root .notification-stack--inline .notification--warning .notification-icon,.app-dialog .notification-stack--inline .notification--warning .notification-icon{background:#fff2d7;color:#8e5d12}
#toast-root .notification--success .notification-icon,#modal-root .notification-stack--inline .notification--success .notification-icon,.app-dialog .notification-stack--inline .notification--success .notification-icon{background:#e7f6ec;color:#1c7448}
#toast-root .notification-content,#modal-root .notification-stack--inline .notification-content,.app-dialog .notification-stack--inline .notification-content{min-width:0}
#toast-root .notification-label,#modal-root .notification-stack--inline .notification-label,.app-dialog .notification-stack--inline .notification-label{display:block;margin:0 0 3px;font-size:13px;font-weight:700}
#toast-root .notification-message,#modal-root .notification-stack--inline .notification-message,.app-dialog .notification-stack--inline .notification-message{white-space:pre-wrap;overflow-wrap:anywhere}
#toast-root .notification-close,#modal-root .notification-stack--inline .notification-close,.app-dialog .notification-stack--inline .notification-close{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:23px;line-height:1}
#toast-root .notification-close:hover,#toast-root .notification-close:focus-visible,#modal-root .notification-stack--inline .notification-close:hover,#modal-root .notification-stack--inline .notification-close:focus-visible,.app-dialog .notification-stack--inline .notification-close:hover,.app-dialog .notification-stack--inline .notification-close:focus-visible{background:#edf1ef;outline:2px solid #518c6c;outline-offset:1px}
#toast-root .notification.is-closing,#modal-root .notification-stack--inline .notification.is-closing,.app-dialog .notification-stack--inline .notification.is-closing{opacity:0;transform:translateY(-4px);transition:opacity .16s ease,transform .16s ease}
@media(max-width:600px){#toast-root .notification-stack{top:max(10px,env(safe-area-inset-top));right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}#toast-root .notification{max-height:40vh}}
/* Shared centered modal system: final overrides for every business overlay. */
#modal-root .modal-backdrop{position:fixed;inset:0;z-index:var(--z-modal-backdrop);display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(24,52,44,.24);backdrop-filter:blur(3px);}
#modal-root .modal{display:flex;flex-direction:column;width:min(680px,calc(100vw - 40px));height:auto;max-height:88vh;overflow:hidden;border:1px solid rgba(70,120,100,.12);border-radius:16px;background:#fff;color:#18342c;box-shadow:0 24px 70px rgba(28,68,52,.16);animation:app-modal-enter 190ms ease both;}
#modal-root .modal:not(.wide):not(.modal--sm):not(.modal--md):not(.modal--lg):not(.modal--xl){width:min(640px,calc(100vw - 40px))}
#modal-root .modal--sm{width:min(460px,calc(100vw - 40px))}
#modal-root .modal--md{width:min(640px,calc(100vw - 40px))}
#modal-root .modal--lg{width:min(880px,calc(100vw - 40px))}
#modal-root .modal.wide,#modal-root .modal--xl{width:min(1120px,calc(100vw - 40px))}
#modal-root .modal-head{position:relative;top:auto;z-index:1;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;min-height:62px;padding:14px 20px;border-bottom:1px solid rgba(70,120,100,.10);background:#fff;backdrop-filter:none}
#modal-root .modal-head h3{margin:0;color:#18342c;font-size:18px;font-weight:700}
#modal-root .modal .close-btn{width:36px;height:36px;border-radius:9px;background:#edf7f2;color:#315a49}
#modal-root .modal .close-btn:hover{background:#ddefe6}
#modal-root .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:20px;overscroll-behavior:contain}
#modal-root .modal-foot{position:relative;bottom:auto;z-index:1;display:flex;flex:0 0 auto;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid rgba(70,120,100,.10);background:#fbfdfc;backdrop-filter:none}
#modal-root .modal input:not([type=checkbox]):not([type=radio]),#modal-root .modal select,#modal-root .modal textarea,#modal-root .modal .input{color:#18342c;background:#fff;border-color:rgba(70,120,100,.2)}
#modal-root .modal .btn.primary,#modal-root .modal .btn.success{background:#51a77d;border-color:#51a77d;color:#fff}
#modal-root .modal .dropzone{background:#f8fcfa;border-color:rgba(81,167,125,.30);color:#18342c}
#modal-root .app-import-dropzone{display:flex;min-height:200px;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1.5px dashed rgba(81,167,125,.38);border-radius:14px;text-align:center;padding:24px}
#modal-root .app-import-dropzone> b{font-size:16px;color:#18342c}
#modal-root .app-import-dropzone>span:not(.app-import-icon){color:#71867e;font-size:13px}
#modal-root .app-import-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf6ef;color:#438b68}
#modal-root .app-import-actions{display:flex;gap:8px;margin-top:8px}
#modal-root .app-import-file-button{position:relative;overflow:hidden;cursor:pointer}
#modal-root .app-import-file-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#modal-root #import-file-name{color:#71867e;font-size:12px}
#modal-root .v7-import-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:0 0 20px;overflow-x:auto;padding:0 0 4px}
#modal-root .v7-import-steps .flow-step{position:relative;display:flex;min-width:100px;flex-direction:column;align-items:center;gap:7px;padding:8px 5px;background:transparent;border:0;color:#71867e;text-align:center}
#modal-root .v7-import-steps .flow-step:before{content:"";position:absolute;top:18px;left:0;right:0;height:2px;background:#e4eee8;z-index:0}
#modal-root .v7-import-steps .flow-step:first-child:before{left:50%}#modal-root .v7-import-steps .flow-step:last-child:before{right:50%}
#modal-root .v7-import-steps .flow-step b{z-index:1;display:grid;place-items:center;width:36px;height:36px;border:1px solid #dcebe3;border-radius:50%;background:#fff;color:#71867e;font-size:12px}
#modal-root .v7-import-steps .flow-step.active b,#modal-root .v7-import-steps .flow-step.done b{border-color:#51a77d;background:#51a77d;color:white}
#modal-root .v7-import-steps .flow-step.active{color:#286646;font-weight:700}
#modal-root .v7-import-steps .flow-step span{font-size:12px;line-height:1.3}
#modal-root .modal-backdrop.is-closing{animation:app-modal-fade-out 160ms ease both}
#modal-root .modal-backdrop.is-closing .modal{animation:app-modal-leave 160ms ease both}
#modal-root .unsaved-confirm{z-index:10002;background:#fff;color:#18342c}
#modal-root .unsaved-confirm-actions .unsaved-confirm-discard{background:#fff0f0;border-color:#f1d1d1;color:#9a3d45}
@keyframes app-modal-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes app-modal-leave{to{opacity:0;transform:translateY(5px) scale(.99)}}
@keyframes app-modal-fade-out{to{opacity:0}}
@media(max-width:600px){#modal-root .modal-backdrop{padding:12px}#modal-root .modal,#modal-root .modal.wide,#modal-root .modal--xl,#modal-root .modal--lg,#modal-root .modal--md,#modal-root .modal--sm{width:calc(100vw - 24px);max-height:92vh;border-radius:14px}#modal-root .modal-head{padding:12px 16px}#modal-root .modal-body{padding:16px}#modal-root .modal-foot{padding:12px 16px}#modal-root .v7-import-steps{grid-template-columns:repeat(6,max-content)}#modal-root .v7-import-steps .flow-step{min-width:96px}#modal-root .app-import-dropzone{min-height:180px;padding:18px}#modal-root .app-import-actions{flex-wrap:wrap;justify-content:center}}
@media(max-width:420px){#modal-root .modal-foot{flex-wrap:wrap}#modal-root .modal-foot .btn{flex:1 1 auto}#modal-root .v7-import-steps .flow-step{min-width:88px}#modal-root .v7-import-steps .flow-step span{font-size:11px}}
#modal-root .quick-create-intro{display:flex;flex-direction:column;gap:4px;margin-bottom:20px;padding:16px 18px;border:1px solid #dcefe4;border-radius:13px;background:#f3faf6;color:#18342c}
#modal-root .quick-create-intro b{font-size:15px}#modal-root .quick-create-intro span{font-size:13px;color:#71867e}
#modal-root .quick-create-section{margin-top:16px}#modal-root .quick-create-section h4{margin:0 0 9px;color:#466358;font-size:12px;font-weight:700}
#modal-root .quick-create-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#modal-root .quick-create-grid .btn{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:64px;padding:14px;border:1px solid rgba(70,120,100,.14);border-radius:12px;color:#18342c;text-align:left;white-space:normal}
@media(max-width:480px){#modal-root .quick-create-grid{grid-template-columns:1fr}}

/* Workspace switcher anchored menu */
.workspace-switcher__trigger{cursor:pointer}
.workspace-switcher__trigger:focus-visible{outline:2px solid rgba(81,167,125,.58);outline-offset:2px}
.workspace-switcher__menu{position:fixed;z-index:1200;display:flex;flex-direction:column;gap:6px;overflow:hidden;padding:8px;border:1px solid rgba(70,120,100,.14);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(39,83,66,.12);color:#29443b}
.workspace-switcher__heading{padding:4px 8px 6px;color:#71867e;font-size:12px;font-weight:600;line-height:20px}
.workspace-switcher__search-wrap{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 10px;border:1px solid rgba(70,120,100,.14);border-radius:9px;background:#fbfdfc;color:#71867e}
.workspace-switcher__search-wrap[hidden]{display:none}
.workspace-switcher__search-wrap:focus-within{border-color:#9ac9af}
.workspace-switcher__search-wrap .app-icon{flex:0 0 auto}
.workspace-switcher__search{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#29443b;font:inherit;font-size:12px}
.workspace-switcher__search::placeholder{color:#91a39b}
.workspace-switcher__list{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-height:0;overflow:auto;overscroll-behavior:contain}
.workspace-switcher__item{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:6px 8px;border:0;border-radius:9px;background:transparent;color:#29443b;text-align:left;cursor:pointer}
.workspace-switcher__item:hover,.workspace-switcher__item:focus-visible{outline:0;background:#f2f8f5}
.workspace-switcher__item--active,.workspace-switcher__item--active:hover{background:#e8f4ee}
.workspace-switcher__avatar{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border-radius:8px;background:#e8f4ee;color:#438b68;font-size:11px;font-weight:700}
.workspace-switcher__copy{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}
.workspace-switcher__name{overflow:hidden;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.workspace-switcher__item--active .workspace-switcher__name{font-weight:600}
.workspace-switcher__copy small{color:#82948c;font-size:10px;line-height:13px}
.workspace-switcher__check{display:grid;flex:0 0 20px;width:20px;height:20px;place-items:center;color:#438b68}
.workspace-switcher__divider{height:1px;margin:2px 4px;background:rgba(70,120,100,.12)}
.workspace-switcher__footer{display:flex;flex:0 0 auto;flex-direction:column;gap:2px}
.workspace-switcher__action{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#42675a;font:inherit;font-size:12px;font-weight:500;text-align:left;cursor:pointer}
.workspace-switcher__action:hover,.workspace-switcher__action:focus-visible{outline:0;background:#f2f8f5;color:#29443b}
.workspace-switcher__action .app-icon{flex:0 0 auto;color:#5a9d79}
.workspace-switcher__loading,.workspace-switcher__no-results{padding:12px 9px;color:#71867e;font-size:12px}
.workspace-switcher__skeleton{display:flex;flex-direction:column;gap:5px;padding:0 2px 4px}
.workspace-switcher__skeleton i{height:38px;border-radius:8px;background:#f2f7f4}
.workspace-switcher__error{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;color:#7c655b;font-size:12px}
.workspace-switcher__error button{padding:5px 8px;border:1px solid rgba(70,120,100,.14);border-radius:7px;background:#fff;color:#42675a;font:inherit;cursor:pointer}
.workspace-switcher__empty{display:flex;flex-direction:column;gap:8px;padding:8px 9px;color:#71867e;font-size:12px}
.workspace-switcher__empty b{font-weight:500}
.workspace-switcher__menu [disabled]{opacity:.6;cursor:wait}

/* Shared soft mint month picker */
.month-picker { position: relative; display: inline-flex; width: max-content; min-width: 160px; max-width: 100%; vertical-align: middle; }
.month-picker__trigger { display:inline-flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-width:160px; height:40px; padding:0 12px; border:1px solid rgba(70,120,100,.16); border-radius:10px; background:#FBFDFC; color:#29443B; text-align:left; cursor:pointer; transition:border-color .15s,box-shadow .15s,background .15s; }
.month-picker__trigger:hover { border-color:rgba(81,167,125,.34); }
.month-picker__trigger:focus-visible,.month-picker.is-open .month-picker__trigger { outline:0; border-color:#73B897; box-shadow:0 0 0 3px rgba(81,167,125,.10); }
.month-picker__trigger:disabled { opacity:.55; cursor:not-allowed; }
.month-picker__value { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:14px; }
.month-picker__calendar,.month-picker__nav svg,.month-picker__clear svg { display:inline-flex; flex:none; width:18px; height:18px; }
.month-picker__calendar { color:#526D64; }
.month-picker__native { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; clip-path:inset(50%)!important; white-space:nowrap!important; border:0!important; opacity:0!important; pointer-events:none!important; }
.month-picker__popover { position:fixed; z-index:100000; width:420px; max-width:calc(100vw - 24px); padding:18px; border:1px solid rgba(70,120,100,.12); border-radius:16px; background:#fff; box-shadow:0 18px 50px rgba(39,83,66,.13); color:#18342C; }
.month-picker__header { display:grid; grid-template-columns:40px 1fr 40px; align-items:center; gap:12px; margin-bottom:14px; }
.month-picker__nav { display:grid; place-items:center; width:40px; height:40px; padding:0; border:0; border-radius:10px; background:#F2F7F4; color:#29443B; cursor:pointer; }
.month-picker__nav:hover { background:#E4F1EA; }
.month-picker__year { text-align:center; font-size:18px; font-weight:700; color:#18342C; }
.month-picker__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.month-picker__month { display:flex; min-width:0; min-height:72px; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; padding:10px 12px; border:1px solid rgba(70,120,100,.14); border-radius:12px; background:#fff; color:#29443B; text-align:left; cursor:pointer; }
.month-picker__month:hover { border-color:#8DC8AA; background:#F2F9F5; }
.month-picker__month span { font-size:14px; font-weight:600; }
.month-picker__month small { color:#81958E; font-size:12px; }
.month-picker__month--current { border-color:#8EC7AA; }
.month-picker__month--selected { border-color:transparent; background:linear-gradient(135deg,#58AB81,#45956E); color:#fff; }
.month-picker__month--selected:hover { border-color:transparent; background:linear-gradient(135deg,#58AB81,#45956E); }
.month-picker__month--selected small { color:rgba(255,255,255,.85); }
.month-picker__month:focus-visible,.month-picker__nav:focus-visible,.month-picker__done:focus-visible,.month-picker__clear:focus-visible { outline:3px solid rgba(81,167,125,.22); outline-offset:2px; }
.month-picker__footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(70,120,100,.10); }
.month-picker__clear,.month-picker__done { display:inline-flex; min-height:40px; align-items:center; justify-content:center; gap:8px; padding:0 12px; border:0; border-radius:10px; cursor:pointer; }
.month-picker__clear { background:transparent; color:#526D64; }
.month-picker__clear:hover:not(:disabled) { background:#F2F7F4; }
.month-picker__clear:disabled { opacity:.45; cursor:not-allowed; }
.month-picker__done { min-width:84px; background:#51A77D; color:white; font-weight:600; }
.month-picker__done:hover { background:#438F6B; }
@media(max-width:420px) { .month-picker__popover { padding:14px; } .month-picker__grid { gap:6px; } .month-picker__month { min-height:68px; padding:8px; } }
.app-att-import-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.app-att-import-popover {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  max-width: min(260px, calc(100vw - 16px));
  padding: 6px;
  border: 1px solid rgba(70,120,100,.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(39,83,66,.12);
}
.app-att-import-menuitem {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #34483e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.app-att-import-menuitem > svg { flex: 0 0 auto; color: #6b8d79; }
.app-att-import-menuitem > span { display: grid; gap: 2px; }
.app-att-import-menuitem b { font-size: 13px; font-weight: 600; }
.app-att-import-menuitem small { color: #78877f; font-size: 11px; }
.app-att-import-menuitem:hover { background: #eef7f2; }
.app-att-import-menuitem:focus-visible { outline: 2px solid #9bcab0; outline-offset: -2px; background: #e5f3eb; }

/* Contract template library: preserve the existing Word upload and mapping flow. */
.app-shell .contract-template-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.app-shell .app-template-row[hidden] { display:none; }
.app-shell .app-template-row { flex-wrap:wrap; gap:12px; }
.app-shell .app-template-row .actions-inline { flex-wrap:wrap; }
@media (max-width:600px) {
  .app-shell #contract-templates-section .panel-title { flex-wrap:wrap; gap:12px; }
  .app-shell .app-template-row .actions-inline { width:100%; }
}
.economic-contract-filters{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px;align-items:end;padding:14px 18px;border-bottom:1px solid var(--line,#e5ece8)}
.economic-contract-filters .field{margin:0}.economic-contract-filters button{min-height:40px}
.economic-contract-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;color:var(--muted,#66756e)}
.economic-contract-pagination>div{display:flex;gap:8px}
@media(max-width:850px){.economic-contract-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.economic-contract-filters{grid-template-columns:minmax(0,1fr)}.economic-contract-pagination{align-items:flex-start;flex-direction:column}}
