:root {
  --bg: #f3ecdf;
  --bg-strong: #fffcf5;
  --ink: #14231f;
  --muted: #5c6b66;
  --line: rgba(20, 35, 31, 0.12);
  --panel: rgba(255, 251, 244, 0.86);
  --panel-strong: #fffdf8;
  --accent: #0f766e;
  --accent-soft: #d6f2eb;
  --accent-deep: #0a5d56;
  --gold: #cb8b3d;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(33, 31, 25, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1560px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(203, 139, 61, 0.14), transparent 24%),
    var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
}

.global-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  min-width: 280px;
  max-width: 460px;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 13px;
  line-height: 1.5;
}

.global-notice.success {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.28);
  color: #166534;
}

.global-notice.info {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
}

.approval-review-form {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.approval-review-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.approval-review-form select,
.approval-review-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 35, 31, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.98);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.approval-review-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

body {
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(92vw, 460px);
  padding: 34px 32px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-form,
.demo-accounts {
  display: grid;
  gap: 12px;
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 56px;
}

.auth-password-field input::-ms-reveal,
.auth-password-field input::-ms-clear {
  display: none;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.auth-password-toggle:hover {
  background: rgba(20, 35, 31, 0.06);
  color: var(--ink);
}

.auth-password-toggle.active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-deep);
}

.auth-password-toggle svg {
  width: 20px;
  height: 20px;
}


.sidebar {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
}

.tenant-panel {
  display: none !important;
}

.main-panel {
  padding: 24px 24px 56px 16px;
}

.brand-block,
.user-panel,
.tenant-panel,
.portfolio-panel,
.hero,
.tab-panel,
.topbar,
.modal-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-block,
.user-panel,
.tenant-panel,
.portfolio-panel,
.tab-panel,
.modal-card {
  border-radius: var(--radius-xl);
}

.brand-block,
.user-panel,
.tenant-panel,
.portfolio-panel {
  padding: 22px;
}

.brand-block,
.user-panel,
.tenant-panel,
.portfolio-panel {
  margin-bottom: 18px;
}

.brand-block {
  position: relative;
  overflow: hidden;
}

.brand-block::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 30%;
  height: 140px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0), rgba(15, 118, 110, 0.18));
  transform: rotate(-8deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(30px, 3vw, 40px);
}

h2 {
  font-size: clamp(24px, 2vw, 30px);
}

h3 {
  font-size: clamp(20px, 1.6vw, 24px);
}

.brand-copy,
.muted,
.item-meta,
.subtle {
  color: var(--muted);
}

.section-head,
.item-row,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin-bottom: 16px;
  align-items: flex-start;
}

.section-head > div {
  min-width: 0;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.tenant-list,
.mini-stats,
.stack,
.list,
.user-switcher,
.compact {
  display: grid;
  gap: 12px;
}

.sidebar-tools {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-tool-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.sidebar-tool-btn.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.88));
  color: var(--ink);
  border-color: rgba(15, 118, 110, 0.3);
  transform: translateX(4px);
}

.sidebar-tool-btn:hover {
  transform: translateY(-1px);
}

.sidebar-tools-head {
  margin-bottom: 6px;
}

.compact {
  gap: 10px;
}

.user-card,
.tenant-card,
.mini-stat,
.metric-card,
.panel-card,
.list-card,
.form-card,
.alert-card,
.report-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.list-card {
  min-width: 0;
  overflow: hidden;
}

.tenant-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  text-align: left;
}

.tenant-card-simple {
  padding: 18px;
}

.tenant-card-simple .tenant-main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.tenant-card-simple .tenant-tools {
  margin-top: 12px;
}

.tenant-main {
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.tenant-tools,
.inline-actions,
.action-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-actions {
  margin-top: 12px;
}

.tenant-card.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(180deg, rgba(214, 242, 235, 0.9), rgba(255, 255, 255, 0.8));
  transform: translateX(4px);
}

.tenant-card h3,
.user-card h3 {
  font-size: 16px;
}

.tenant-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.mini-stat strong,
.metric-card strong,
.report-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.metric-card > .subtle {
  display: none;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  position: static;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.88)),
    linear-gradient(120deg, rgba(203, 139, 61, 0.1), rgba(255, 255, 255, 0.4));
}

.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  max-width: 720px;
}

.topbar h2 {
  max-width: none;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
}

.topbar .muted {
  margin-top: 8px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.6;
}

.topbar .eyebrow {
  margin-bottom: 10px;
}

.topbar > div:first-child {
  flex: 1;
  min-width: 0;
}

.account-indicator {
  cursor: default;
  color: var(--ink);
  background: rgba(214, 242, 235, 0.7);
  border-color: rgba(15, 118, 110, 0.18);
  font-size: 13px;
}

.ghost-btn,
.primary-btn,
.icon-btn,
.switch-btn {
  border-radius: 999px;
  padding: 12px 16px;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.ghost-btn,
.icon-btn,
.switch-btn {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.ghost-btn.danger {
  color: var(--danger);
}

.ghost-btn.mini {
  padding: 8px 12px;
  font-size: 12px;
}

.topbar .ghost-btn,
.topbar .primary-btn {
  padding: 10px 14px;
  font-size: 13px;
}

.primary-btn {
  background: var(--ink);
  color: white;
}

.primary-btn:hover {
  opacity: 0.94;
}

.switch-btn {
  width: 100%;
  text-align: left;
}

.switch-btn.active {
  background: linear-gradient(90deg, rgba(214, 242, 235, 0.94), rgba(255, 255, 255, 0.84));
  border-color: rgba(15, 118, 110, 0.3);
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
}

.ghost-btn:hover,
.primary-btn:hover,
.icon-btn:hover,
.switch-btn:hover,
.tenant-card:hover,
.tab:hover {
  transform: translateY(-1px);
}

.signal-bar,
.progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 35, 31, 0.08);
}

.signal-fill,
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.tabs {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.tab.active {
  background: var(--ink);
  color: white;
}

.tab-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tab-panel {
  display: none;
  margin-top: 18px;
  padding: 24px;
}

.tab-panel.active {
  display: block;
}

.metrics-grid,
.cards-grid,
.two-column,
.reports-grid,
.analytics-grid {
  display: grid;
  gap: 16px;
}

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

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

.two-column {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  margin-top: 18px;
  align-items: start;
}

.two-column > * {
  min-width: 0;
}

.approval-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

.approval-page-layout > * {
  min-width: 0;
}

.finance-approval-subpage-layout {
  grid-template-columns: 1fr !important;
}

.finance-approval-subpage-layout .approval-list-panel,
.finance-approval-subpage-layout .approval-form-panel {
  width: 100%;
}

.finance-approval-subnav-card {
  margin-bottom: 10px;
}

.approval-list-panel,
.approval-form-panel {
  min-width: 0;
}

.approval-form-panel {
  width: 100%;
}

.approval-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.approval-form-grid > label {
  min-width: 0;
}

.approval-form-grid input[type="file"] {
  padding: 10px 12px;
}

.employee-approval-grid-tight {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.employee-approval-grid-tight > label {
  grid-column: span 3;
}

.employee-approval-grid-tight > label.full-span {
  grid-column: 1 / -1;
}

.employee-approval-grid-tight input,
.employee-approval-grid-tight select,
.employee-approval-grid-tight textarea {
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 12px;
}

.employee-approval-grid-tight textarea {
  min-height: 112px;
}

.employee-approval-grid-tight .primary-btn {
  width: fit-content;
  min-width: 220px;
}

.approval-form-actions {
  display: flex;
  justify-content: flex-start;
}

.approval-form-actions .primary-btn {
  min-width: 132px;
}

.tenant-approval-subpage-layout {
  display: block !important;
}

.tenant-approval-form-focused,
.tenant-approval-history-focused {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.tenant-approval-form-focused {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.12), transparent 26%),
    linear-gradient(135deg, #ffffff, #f8fbf8);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.tenant-approval-form-focused h4,
.tenant-approval-history-focused .section-head h4 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.tenant-approval-form-focused .approval-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tenant-approval-form-focused .approval-form-grid .full-span {
  grid-column: 1 / -1;
}

.tenant-approval-form-focused .approval-form-grid button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 180px;
}

.tenant-approval-history-focused {
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.tenant-leave-form-focused,
.tenant-leave-history-focused {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.tenant-leave-form-focused {
  background:
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.tenant-leave-form-focused h4,
.tenant-leave-history-focused .section-head h4 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.tenant-leave-form-focused .employee-handover-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.tenant-leave-form-focused .employee-handover-grid label {
  grid-column: span 3;
  gap: 5px;
  font-size: 13px;
}

.tenant-leave-form-focused .employee-handover-grid label.field-xs {
  grid-column: span 2;
}

.tenant-leave-form-focused .employee-handover-grid label.field-sm {
  grid-column: span 3;
}

.tenant-leave-form-focused .employee-handover-grid .full-span {
  grid-column: 1 / -1;
}

.tenant-leave-form-focused .employee-handover-grid input,
.tenant-leave-form-focused .employee-handover-grid select {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 11px;
}

.tenant-leave-form-focused .employee-handover-grid textarea {
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 12px;
}

.tenant-leave-form-focused .employee-handover-grid button[type="submit"] {
  justify-self: end;
  min-width: 160px;
}

.tenant-leave-history-table th,
.tenant-leave-history-table td {
  white-space: nowrap;
}

.inventory-deep-layout {
  align-items: start;
}

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

.analytics-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.panel-card h4,
.list-card h4,
.form-card h4,
.report-card h4 {
  margin-bottom: 12px;
}

.form-card,
.panel-card {
  min-width: 0;
}

.list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-card form,
.modal-card {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 35, 31, 0.14);
  background: rgba(255, 255, 255, 0.84);
}

input:focus,
select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.4);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.status-ok {
  color: #087443;
  background: rgba(12, 166, 120, 0.12);
}

.status-warn {
  color: #9a6700;
  background: rgba(209, 132, 44, 0.16);
}

.status-risk {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
}

.status-info {
  color: #135ab6;
  background: rgba(19, 90, 182, 0.12);
}

.score-row strong {
  font-size: 14px;
}

.empty-state {
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

.alert-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(203, 139, 61, 0.24);
  background: rgba(203, 139, 61, 0.11);
  color: #83501c;
  font-size: 14px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.profile-list {
  display: grid;
  gap: 16px;
}

.profile-list-card {
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.profile-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-inline-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.profile-summary-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

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

.profile-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 35, 31, 0.08);
  min-height: 92px;
}

.profile-item span {
  font-size: 12px;
  color: var(--muted);
}

.profile-item strong {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: normal;
}

.profile-summary-wide {
  width: 100%;
}

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

.profile-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.profile-attachments p {
  margin: 0;
}

.profile-block {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(20, 35, 31, 0.08);
}

.panel-card-compact {
  padding: 14px 16px;
}

.panel-card-compact h4 {
  font-size: 15px;
}

.panel-card-compact .profile-inline-meta {
  margin-top: 6px;
  font-size: 12px;
}

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

.compact-summary-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(20, 35, 31, 0.08);
}

.compact-summary-item span {
  font-size: 12px;
  color: var(--muted);
}

.compact-summary-item strong {
  font-size: 18px;
  line-height: 1.25;
}

.compact-list {
  gap: 8px;
}

.compact-list-item {
  padding: 10px 12px;
}

.compact-list-item strong {
  font-size: 13px;
}

.compact-list-item .item-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
}

.approval-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  overflow-x: auto;
}

.approval-step {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.approval-node {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(20, 35, 31, 0.08);
  color: var(--ink);
}

.approval-copy {
  display: grid;
  gap: 2px;
}

.approval-copy strong {
  font-size: 13px;
}

.approval-copy span {
  font-size: 12px;
  color: var(--muted);
}

.approval-line {
  width: 28px;
  height: 2px;
  background: rgba(20, 35, 31, 0.14);
  flex: 0 0 auto;
}

.approval-step.done {
  border-color: rgba(12, 166, 120, 0.26);
  background: rgba(12, 166, 120, 0.08);
}

.approval-step.done .approval-node {
  background: rgba(12, 166, 120, 0.18);
  color: #087443;
}

.approval-step.current {
  border-color: rgba(19, 90, 182, 0.28);
  background: rgba(19, 90, 182, 0.08);
}

.approval-step.current .approval-node {
  background: rgba(19, 90, 182, 0.18);
  color: #135ab6;
}

.approval-step.rejected {
  border-color: rgba(180, 35, 24, 0.28);
  background: rgba(180, 35, 24, 0.08);
}

.approval-step.rejected .approval-node {
  background: rgba(180, 35, 24, 0.18);
  color: #b42318;
}

.employee-layout,
.employee-detail-layout {
  display: grid;
  gap: 16px;
}

.profile-block h5 {
  margin: 0 0 8px;
  font-size: 14px;
}

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

.tenant-form {
  width: min(96vw, 980px);
}

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

.profile-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.profile-section-head {
  display: grid;
  gap: 4px;
}

.profile-section-head h3 {
  font-size: 18px;
}

.field-hint,
.asset-link {
  font-size: 12px;
  color: var(--muted);
}

.asset-link {
  color: var(--accent-deep);
  text-decoration: none;
}

.asset-link:hover {
  text-decoration: underline;
}

.full-span {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 35, 31, 0.14);
  background: rgba(255, 255, 255, 0.84);
  resize: vertical;
  font: inherit;
}

textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.4);
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(7, 18, 14, 0.38);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(92vw, 460px);
  padding: 22px;
}

.modal-card-wide {
  width: min(96vw, 1040px);
  max-height: 92vh;
  overflow: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.approval-detail-modal-card {
  width: min(92vw, 920px);
  position: relative;
}

.approval-detail-dialog-body {
  display: grid;
  gap: 18px;
}

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

.approval-detail-block {
  margin-top: 4px;
}

#approvalDetailDialog .dialog-head {
  position: relative;
  padding-right: 68px;
}

#approvalDetailCloseBtn {
  position: absolute;
  top: 0;
  right: 0;
}

.approval-detail-footer {
  padding-top: 2px;
}

.approval-detail-actions {
  margin-top: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.approval-list-panel .employee-handover-history-table-wrap {
  overflow-x: visible;
}

.approval-list-panel .employee-handover-history-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.approval-list-panel .employee-handover-history-table th,
.approval-list-panel .employee-handover-history-table td {
  white-space: normal;
  word-break: break-word;
}

.approval-list-panel .employee-handover-history-table th:first-child,
.approval-list-panel .employee-handover-history-table td:first-child {
  width: 22%;
}

.approval-list-panel .employee-handover-history-table th:last-child,
.approval-list-panel .employee-handover-history-table td:last-child {
  width: 12%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table th,
.approval-list-panel .employee-handover-history-table.approval-record-table td {
  white-space: normal;
  word-break: break-word;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(1),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(1) {
  width: 17%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(2),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(2) {
  width: 14%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(3),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(3) {
  width: 8%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(4),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(4) {
  width: 8%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(5),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(5) {
  width: 13%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(6),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(6) {
  width: 12%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-7col th:nth-child(7),
.approval-list-panel .employee-handover-history-table.approval-record-table-7col td:nth-child(7) {
  width: 30%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-6col th:nth-child(1),
.approval-list-panel .employee-handover-history-table.approval-record-table-6col td:nth-child(1) {
  width: 22%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-6col th:nth-child(2),
.approval-list-panel .employee-handover-history-table.approval-record-table-6col td:nth-child(2) {
  width: 14%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-6col th:nth-child(3),
.approval-list-panel .employee-handover-history-table.approval-record-table-6col td:nth-child(3) {
  width: 10%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-6col th:nth-child(4),
.approval-list-panel .employee-handover-history-table.approval-record-table-6col td:nth-child(4) {
  width: 18%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-6col th:nth-child(5),
.approval-list-panel .employee-handover-history-table.approval-record-table-6col td:nth-child(5) {
  width: 16%;
}

.approval-list-panel .employee-handover-history-table.approval-record-table-6col th:nth-child(6),
.approval-list-panel .employee-handover-history-table.approval-record-table-6col td:nth-child(6) {
  width: 22%;
}

.approval-table-code-cell,
.approval-table-person-cell,
.approval-table-tenant-cell {
  display: grid;
  gap: 3px;
}

.approval-table-code-cell .link-btn {
  justify-self: start;
  text-align: left;
  padding: 0;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.approval-table-tenant-cell strong,
.approval-table-person-cell strong,
.approval-table-code-cell .link-btn,
.approval-table-amount {
  font-size: 14px;
}

.approval-table-amount {
  color: #1f2e2b;
  white-space: nowrap;
}

.approval-table-actions {
  margin-top: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: visible;
}

.approval-status-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
  border: 0;
  white-space: normal;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.approval-status-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 35, 31, 0.12);
  filter: saturate(1.04);
}

.approval-table-code-cell .item-meta::before {
  content: "详情";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.approval-flow-timeline {
  display: grid;
  gap: 16px;
}

.approval-flow-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.approval-flow-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.approval-flow-marker::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(20, 35, 31, 0.22), rgba(20, 35, 31, 0.08));
}

.approval-flow-step:last-child .approval-flow-marker::after {
  display: none;
}

.approval-flow-marker span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3f1;
  color: #314744;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(20, 35, 31, 0.06);
}

.approval-flow-step.current .approval-flow-marker span {
  background: linear-gradient(180deg, rgba(255, 233, 202, 0.98), rgba(255, 215, 165, 0.92));
  color: #a66210;
  box-shadow: 0 0 0 6px rgba(203, 139, 61, 0.12);
}

.approval-flow-step.approved .approval-flow-marker span {
  background: linear-gradient(180deg, rgba(223, 247, 241, 0.98), rgba(198, 238, 229, 0.92));
  color: #0f766e;
}

.approval-flow-step.rejected .approval-flow-marker span {
  background: linear-gradient(180deg, rgba(254, 228, 226, 0.98), rgba(252, 205, 201, 0.92));
  color: #b42318;
}

.approval-flow-step.pending .approval-flow-marker span {
  background: linear-gradient(180deg, rgba(252, 243, 229, 0.98), rgba(246, 226, 197, 0.92));
  color: #9a6700;
}

.approval-flow-content {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(20, 35, 31, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.approval-flow-step.current .approval-flow-content {
  border-color: rgba(203, 139, 61, 0.28);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 246, 233, 0.96));
}

.approval-flow-step.approved .approval-flow-content {
  border-color: rgba(15, 118, 110, 0.16);
}

.approval-flow-step.rejected .approval-flow-content {
  border-color: rgba(180, 35, 24, 0.18);
}

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

.approval-flow-head .approval-status-trigger {
  min-width: 108px;
  padding: 8px 12px;
}

.approval-flow-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px dashed rgba(20, 35, 31, 0.14);
  color: var(--muted);
}

@media (max-width: 720px) {
  .approval-status-trigger {
    min-width: 96px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.25;
  }

  .approval-flow-step {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }

  .approval-flow-marker::after {
    top: 30px;
    bottom: -14px;
  }

  .approval-flow-marker span {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .approval-flow-content {
    padding: 12px 12px 11px;
    border-radius: 14px;
  }

  .approval-flow-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .approval-flow-head .approval-status-trigger {
    min-width: 92px;
    padding: 7px 10px;
  }
}

.approval-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.approval-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.approval-action:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.approval-action-view {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, rgba(239, 250, 248, 0.98), rgba(219, 243, 239, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.approval-action-approve {
  color: #ffffff;
  border-color: rgba(13, 148, 136, 0.52);
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.approval-action-reject {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(254, 226, 226, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.approval-list-panel .employee-handover-history-table .item-meta {
  font-size: 12px;
  line-height: 1.35;
}

.approval-list-panel .employee-handover-history-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table {
  table-layout: fixed;
  width: 100%;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table th,
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table td {
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  vertical-align: middle;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col th:nth-child(1),
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col td:nth-child(1) {
  width: 17%;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col th:nth-child(2),
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col td:nth-child(2) {
  width: 10%;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col th:nth-child(3),
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col td:nth-child(3) {
  width: 9%;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col th:nth-child(4),
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col td:nth-child(4) {
  width: 16%;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col th:nth-child(5),
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col td:nth-child(5) {
  width: 17%;
}

.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col th:nth-child(6),
.approval-list-panel .employee-handover-history-table.enterprise-approval-flat-table.approval-record-table-6col td:nth-child(6) {
  width: 31%;
}

.enterprise-approval-flat-table .approval-table-code-cell,
.enterprise-approval-flat-table .approval-table-person-cell,
.enterprise-approval-flat-table .approval-table-tenant-cell {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.enterprise-approval-flat-table .approval-table-code-cell .link-btn,
.enterprise-approval-flat-table .approval-table-person-cell strong,
.enterprise-approval-flat-table .approval-table-tenant-cell strong,
.enterprise-approval-flat-table .approval-table-amount,
.enterprise-approval-flat-table .item-meta {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.enterprise-approval-flat-table .item-meta {
  font-size: 11px;
}

.enterprise-approval-flat-table .status-pill {
  min-width: 74px;
  justify-content: center;
  white-space: nowrap;
}

.enterprise-approval-flat-table .approval-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: visible;
}

.enterprise-approval-flat-table .approval-table-actions .ghost-btn {
  flex: 0 0 auto;
  padding: 7px 13px;
  white-space: nowrap;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col th:nth-child(1),
.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col td:nth-child(1) {
  width: 19%;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col th:nth-child(2),
.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col td:nth-child(2) {
  width: 15%;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col th:nth-child(3),
.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col td:nth-child(3) {
  width: 9%;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col th:nth-child(4),
.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col td:nth-child(4) {
  width: 15%;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col th:nth-child(5),
.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col td:nth-child(5) {
  width: 17%;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col th:nth-child(6),
.approval-list-panel .employee-handover-history-table.employee-approval-flat-table.approval-record-table-6col td:nth-child(6) {
  width: 25%;
}

.approval-list-panel .employee-handover-history-table.employee-approval-flat-table {
  table-layout: fixed;
  width: 100%;
}

.employee-approval-flat-table .approval-table-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  flex-wrap: unset !important;
  gap: 6px !important;
  justify-content: stretch !important;
  align-items: center;
  max-width: 100% !important;
  overflow: hidden !important;
}

.employee-approval-flat-table .approval-table-actions .ghost-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 6px 5px !important;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.employee-approval-flat-table .approval-table-actions .ghost-btn[data-edit-approval] {
  max-width: none !important;
}

.employee-approval-flat-table td:nth-child(6) {
  overflow: hidden;
}

.approval-decision-btn,
.ghost-btn.mini.approval-decision-btn,
.primary-btn.approval-decision-btn {
  min-width: 58px !important;
  max-width: 74px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.approval-decision-approve,
.ghost-btn.mini.approval-decision-approve,
.primary-btn.approval-decision-approve {
  color: #047857 !important;
  background: rgba(209, 250, 229, 0.78) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
}

.approval-decision-reject,
.ghost-btn.mini.danger.approval-decision-reject,
.ghost-btn.danger.approval-decision-reject {
  color: #b91c1c !important;
  background: rgba(254, 226, 226, 0.76) !important;
  border: 1px solid rgba(248, 113, 113, 0.34) !important;
}

.approval-table-actions .approval-decision-btn,
.inline-actions .approval-decision-btn {
  flex: 0 0 auto;
}

.review-dialog-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
}

.review-dialog-select,
.review-dialog-textarea {
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(214, 242, 235, 0.35);
}

.review-dialog-body {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.review-dialog-select {
  height: 52px;
  padding: 0 16px;
}

.review-dialog-textarea {
  min-height: 112px;
  resize: vertical;
  padding: 14px 16px;
}

.review-dialog-select:focus,
.review-dialog-textarea:focus {
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.approval-list-panel,
#approvals .panel-card,
#inventory .panel-card {
  border-color: rgba(15, 118, 110, 0.14);
  box-shadow: 0 18px 54px rgba(42, 34, 18, 0.08);
}

.approval-record-table,
.employee-handover-history-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.approval-record-table thead th,
.employee-handover-history-table thead th {
  background: rgba(247, 244, 236, 0.86);
  color: rgba(20, 35, 31, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.approval-record-table tbody tr:hover,
.employee-handover-history-table tbody tr:hover {
  background: rgba(214, 242, 235, 0.18);
}

.approval-detail-actions {
  padding-top: 12px;
  border-top: 1px solid rgba(20, 35, 31, 0.08);
}

.approval-detail-actions .approval-decision-btn,
.approval-detail-actions .primary-btn,
.approval-detail-actions .ghost-btn {
  min-width: 92px !important;
  height: 40px !important;
  font-size: 14px !important;
}

.approval-detail-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.approval-record-table td:nth-child(3),
.approval-record-table td:nth-child(4) {
  white-space: nowrap;
}

.approval-record-table td:nth-child(6) .inline-actions,
.employee-approval-flat-table td:nth-child(6) .inline-actions {
  gap: 6px;
}

.status-pill {
  font-weight: 800;
}

.link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f766e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.link-btn:hover {
  color: #115e59;
  text-decoration: underline;
}

.daily-handover-table {
  min-width: 1040px;
}

.daily-handover-table th,
.daily-handover-table td {
  padding: 13px 12px;
}

.daily-handover-table .link-btn {
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
}

.daily-handover-status-cell,
.daily-handover-action-cell {
  text-align: center;
}

.daily-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #17352f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(25, 48, 42, 0.06);
}

.daily-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(25, 48, 42, 0.1);
}

.daily-action-view {
  color: #0f766e;
  background: rgba(214, 242, 235, 0.68);
}

.daily-action-edit {
  color: #6b3f00;
  background: rgba(255, 246, 217, 0.9);
  border-color: rgba(214, 159, 46, 0.28);
}

.daily-action-approve {
  color: #0f5132;
  background: rgba(214, 242, 235, 0.8);
}

.daily-action-reject {
  color: #9f2d20;
  background: rgba(255, 230, 225, 0.88);
  border-color: rgba(185, 64, 48, 0.22);
}

.daily-reviewed-text {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 35, 31, 0.06);
  color: rgba(20, 35, 31, 0.56);
  font-size: 12px;
  font-weight: 900;
}

code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(20, 35, 31, 0.07);
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
}

@media (max-width: 1280px) {
  .metrics-grid,
  .reports-grid,
  .profile-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .shell,
  .two-column,
  .approval-page-layout,
  .metrics-grid,
  .cards-grid,
  .reports-grid,
  .analytics-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-grid-wide,
  .profile-blocks-grid,
  .profile-attachments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
    position: static;
  }

}

@media (max-width: 720px) {
  .sidebar,
  .main-panel {
    padding: 18px;
  }

  .topbar {
    padding: 18px;
  }

  .topbar,
  .item-row,
  .score-row,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .profile-grid,
  .approval-detail-grid,
  .profile-form,
  .approval-form-grid,
  .tenant-form-grid,
  .profile-list-grid,
  .profile-grid-wide,
  .profile-blocks-grid,
  .profile-attachments {
    grid-template-columns: 1fr;
  }

  .employee-approval-grid-tight {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .employee-approval-grid-tight > label {
    grid-column: span 3;
  }

  .employee-approval-grid-tight > label.full-span {
    grid-column: 1 / -1;
  }
}

.invoice-reminder {
  margin-bottom: 18px;
}

.reminder-list {
  margin-top: 10px;
}

.reminder-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 35, 31, 0.08);
  font-size: 13px;
  color: var(--ink);
}

.tenant-profile-compact-layout {
  display: grid;
  gap: 14px;
}

.tenant-profile-compact-card {
  padding: 24px 28px;
}

.tenant-profile-compact-head {
  margin-bottom: 12px;
}

.tenant-profile-compact-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tenant-profile-compact-section h5,
.tenant-profile-compact-block h5 {
  margin: 0;
  font-size: 15px;
}

.tenant-profile-compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tenant-profile-compact-grid .profile-item {
  min-height: 68px;
  padding: 9px 11px;
  gap: 4px;
  border-radius: 16px;
}

.tenant-profile-compact-grid .profile-item span {
  font-size: 11px;
}

.tenant-profile-compact-grid .profile-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.tenant-profile-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tenant-profile-compact-block {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 16px;
}

.tenant-profile-subpanel {
  padding: 14px 16px;
}

.tenant-profile-subpanel .section-head {
  margin-bottom: 12px;
}

.tenant-profile-subpanel .section-head h4 {
  font-size: 18px;
}

.tenant-profile-subpanel .profile-inline-meta {
  margin-top: 4px;
  font-size: 13px;
}

.tenant-profile-subpanel .profile-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.tenant-profile-subpanel .profile-item {
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
}

.tenant-profile-subpanel .profile-item span {
  margin-bottom: 10px;
  font-size: 12px;
}

.tenant-profile-subpanel .profile-item strong {
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.tenant-profile-subpanel .profile-blocks-grid {
  gap: 12px;
  margin-top: 12px;
}

.tenant-profile-subpanel .profile-block {
  padding: 12px 14px;
  border-radius: 14px;
}

.tenant-profile-subpanel .profile-block h5 {
  margin-bottom: 8px;
  font-size: 14px;
}

.tenant-profile-subpanel .profile-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.tenant-profile-basic-tight {
  padding: 12px 14px;
}

.tenant-profile-basic-tight .section-head {
  align-items: center;
  margin-bottom: 8px;
}

.tenant-profile-basic-tight .section-head h4 {
  font-size: 17px;
  line-height: 1.2;
}

.tenant-profile-basic-tight .profile-inline-meta {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.tenant-profile-basic-tight .profile-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 8px;
}

.tenant-profile-basic-tight .profile-item {
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 12px;
}

.tenant-profile-basic-tight .profile-item span {
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.2;
}

.tenant-profile-basic-tight .profile-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.tenant-profile-basic-tight .profile-blocks-grid {
  gap: 8px;
  margin-top: 8px;
}

.tenant-profile-basic-tight .profile-block {
  padding: 9px 10px;
  border-radius: 12px;
}

.tenant-profile-basic-tight .profile-block h5 {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.tenant-profile-basic-tight .profile-block p,
.tenant-profile-basic-tight .profile-attachments p {
  font-size: 12px;
  line-height: 1.35;
}

.tenant-profile-basic-tight .profile-block + .profile-block {
  margin-top: 8px;
}

.tenant-profile-compact-block p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.tenant-profile-attachment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tenant-profile-attachment-grid p {
  margin: 0;
  font-size: 12px;
}

.tenant-profile-tax-card {
  padding: 18px 22px;
}

.tenant-profile-tax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tenant-profile-tax-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(20, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.tenant-profile-tax-item strong {
  font-size: 14px;
}

.tenant-profile-tax-item .item-meta {
  margin-top: 3px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .tenant-profile-compact-grid,
  .tenant-profile-attachment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tenant-profile-tax-grid,
  .tenant-profile-address-grid {
    grid-template-columns: 1fr;
  }
}

#dailyFinanceReportForm {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#dailyFinanceReportForm .full-span {
  grid-column: 1 / -1;
}

.admin-edit-layout {
  align-items: start;
}

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

.check-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 35, 31, 0.1);
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.check-chip input {
  width: 16px;
  height: 16px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
}

.compact-head {
  margin-bottom: 8px;
}

.group-account-head {
  cursor: pointer;
  user-select: none;
}

.group-account-head:focus-visible {
  outline: 2px solid rgba(24, 119, 242, 0.28);
  outline-offset: 2px;
}

.group-account-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-account-head.collapsed {
  margin-bottom: 0;
}

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

.tenant-admin-edit-form {
  display: grid;
  gap: 14px;
}

.tenant-admin-edit-form .full-span {
  grid-column: 1 / -1;
}

#employeeDialogForm.modal-card-wide {
  width: min(97vw, 1380px);
  padding: 18px 20px;
}

#employeeDialogForm .profile-form {
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 8px 12px;
}

#employeeDialogForm label {
  gap: 6px;
  font-size: 13px;
  grid-column: span 4;
}

#employeeDialogForm input,
#employeeDialogForm select,
#employeeDialogForm textarea {
  padding: 8px 10px;
  min-height: 38px;
  border-radius: 12px;
}

#employeeDialogForm input[type="number"]::-webkit-outer-spin-button,
#employeeDialogForm input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#employeeDialogForm input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

#employeeDialogForm label.field-xs {
  grid-column: span 2;
}

#employeeDialogForm label.field-sm {
  grid-column: span 4;
}

#employeeDialogForm label.field-md {
  grid-column: span 5;
}

#employeeDialogForm label.field-lg {
  grid-column: span 8;
}

#employeeDialogForm .section-head {
  margin-bottom: 8px;
}

#employeeDialogForm h2 {
  font-size: 22px;
}

#employeeDialogForm .modal-actions {
  margin-top: 2px;
}

@media (max-width: 1180px) {
  #employeeDialogForm .profile-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px 10px;
  }

  #employeeDialogForm label.field-xs {
    grid-column: span 3;
  }

  #employeeDialogForm label.field-sm {
    grid-column: span 4;
  }

  #employeeDialogForm label.field-md {
    grid-column: span 6;
  }

  #employeeDialogForm label.field-lg {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  #employeeDialogForm.modal-card-wide {
    width: min(98vw, 98vw);
    padding: 16px;
  }

  #employeeDialogForm .profile-form {
    grid-template-columns: 1fr;
  }

  #employeeDialogForm label,
  #employeeDialogForm label.field-xs,
  #employeeDialogForm label.field-sm,
  #employeeDialogForm label.field-md,
  #employeeDialogForm label.field-lg {
    grid-column: 1 / -1;
  }
}

.inventory-smart-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.inventory-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  margin-bottom: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(214, 242, 235, 0.74));
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow);
}

.inventory-hero-copy h3 {
  margin-top: 6px;
  font-size: 28px;
}

.inventory-hero-copy p {
  margin-top: 8px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
}

.inventory-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.inventory-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.inventory-hero-date {
  font-size: 13px;
  color: var(--muted);
}

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

.inventory-kpi-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 35, 31, 0.08);
  box-shadow: 0 14px 36px rgba(33, 31, 25, 0.06);
}

.inventory-kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
}

.inventory-kpi-card p {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.inventory-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}

.inventory-kpi-card-warn {
  background: linear-gradient(135deg, rgba(255, 244, 228, 0.92), rgba(255, 255, 255, 0.82));
}

.inventory-kpi-card-accent {
  background: linear-gradient(135deg, rgba(214, 242, 235, 0.96), rgba(255, 255, 255, 0.82));
}

.inventory-dashboard-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  margin-bottom: 18px;
}

.inventory-trend-panel,
.inventory-risk-panel {
  min-height: 100%;
}

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

.inventory-insight-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.92));
  border: 1px solid rgba(20, 35, 31, 0.08);
}

.inventory-insight-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.inventory-insight-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.inventory-ai-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.inventory-ai-item {
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 248, 0.86));
}

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

.inventory-risk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.inventory-risk-head strong {
  font-size: 16px;
}

.inventory-risk-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inventory-risk-fields span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(247, 243, 236, 0.9);
}

.inventory-risk-fields label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.inventory-risk-fields b {
  font-size: 16px;
  color: var(--ink);
}

.inventory-conversation-form {
  margin-top: 10px;
}

.inventory-conversation-form textarea {
  min-height: 90px;
}

.inventory-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.inventory-create-guide {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.95);
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: #115e59;
  font-size: 13px;
  line-height: 1.6;
}

.inventory-operation-compact {
  margin-top: 18px;
}

.inventory-create-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.inventory-create-grid label {
  grid-column: span 3;
}

.inventory-create-grid label.field-xs {
  grid-column: span 2;
}

.inventory-create-grid label.field-sm {
  grid-column: span 3;
}

.inventory-create-grid label.field-md {
  grid-column: span 4;
}

.inventory-stock-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.inventory-smart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.inventory-create-analysis-card {
  align-self: start;
}

.inventory-assistant-card {
  margin: 14px 0 16px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, rgba(246, 252, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.inventory-assistant-progress {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.inventory-assistant-progress-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.inventory-assistant-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #34a58d);
  transition: width 0.22s ease;
}

.inventory-assistant-decision {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(244, 250, 248, 0.92);
  color: #11463f;
}

.inventory-assistant-decision.suggest_existing {
  background: rgba(255, 247, 229, 0.96);
  border-color: rgba(217, 119, 6, 0.18);
  color: #92400e;
}

.inventory-assistant-decision.existing {
  background: rgba(235, 248, 243, 0.96);
  border-color: rgba(15, 118, 110, 0.18);
  color: #115e59;
}

.inventory-assistant-decision.create {
  background: rgba(244, 250, 248, 0.92);
  border-color: rgba(15, 118, 110, 0.12);
  color: #11463f;
}

.inventory-assistant-summary-preview {
  margin-top: 10px;
}

.inventory-assistant-summary-preview.empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(20, 35, 31, 0.08);
  color: #64748b;
  font-size: 12px;
}

.inventory-assistant-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.inventory-assistant-log-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-assistant-log {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(20, 35, 31, 0.08);
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}

.inventory-assistant-log.empty {
  color: #64748b;
}

.inventory-assistant-log-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
}

.inventory-assistant-log-line + .inventory-assistant-log-line {
  border-top: 1px dashed rgba(20, 35, 31, 0.08);
  padding-top: 6px;
}

.inventory-assistant-conflict {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 244, 230, 0.98);
  border: 1px solid rgba(234, 88, 12, 0.18);
  color: #9a3412;
  font-size: 12px;
  line-height: 1.6;
}

.inventory-assistant-conflict-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.inventory-assistant-conflict-fields {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.inventory-assistant-conflict-item {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 250, 245, 0.98);
  border: 1px solid rgba(234, 88, 12, 0.14);
}

.inventory-assistant-conflict-copy strong {
  display: block;
  margin-bottom: 6px;
}

.inventory-assistant-conflict-copy p {
  margin: 2px 0;
  font-size: 12px;
}

.inventory-assistant-conflict-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-assistant-summary-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  font-size: 12px;
  line-height: 1.6;
  color: #1f2937;
}

.inventory-assistant-summary-risk {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(234, 88, 12, 0.16);
  color: #9a3412;
}

.inventory-assistant-summary-risk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c2410c;
}

.inventory-assistant-summary-head {
  display: grid;
  gap: 4px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(15, 118, 110, 0.16);
}

.inventory-assistant-summary-head strong {
  color: #0f766e;
  font-size: 13px;
}

.inventory-assistant-summary-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
}

.inventory-assistant-chat {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(247, 250, 249, 0.95);
  border: 1px solid rgba(20, 35, 31, 0.08);
  margin: 12px 0 10px;
}

.inventory-assistant-line {
  display: flex;
}

.inventory-assistant-line span {
  max-width: min(92%, 720px);
  padding: 9px 12px;
  border-radius: 14px;
  line-height: 1.6;
  font-size: 13px;
}

.inventory-assistant-line.assistant {
  justify-content: flex-start;
}

.inventory-assistant-line.assistant span {
  color: #11463f;
  background: rgba(15, 118, 110, 0.1);
}

.inventory-assistant-line.user {
  justify-content: flex-end;
}

.inventory-assistant-line.user span {
  color: #1d1d1f;
  background: rgba(207, 230, 224, 0.8);
}

.inventory-assistant-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.inventory-assistant-input {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 35, 31, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.assistant-focus-field,
.assistant-updated-field {
  transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.assistant-focus-field {
  border-color: rgba(15, 118, 110, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
  background: rgba(240, 253, 250, 0.98) !important;
}

.assistant-updated-field {
  border-color: rgba(217, 119, 6, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
  background: rgba(255, 251, 235, 0.98) !important;
  transform: translateY(-1px);
}

.inventory-voice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.inventory-inline-summary {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(247, 243, 236, 0.9);
  font-size: 12px;
  line-height: 1.55;
}

.inventory-history-snippet {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(246, 250, 248, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.inventory-history-snippet strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.inventory-history-toggle {
  margin-top: 8px;
}

.inventory-history-full {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 118, 110, 0.18);
}

.inventory-history-line {
  padding: 6px 0;
}

.inventory-history-line + .inventory-history-line {
  border-top: 1px dashed rgba(20, 35, 31, 0.08);
}

.inventory-history-line-head,
.inventory-history-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-history-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 12px 0 14px;
}

.inventory-history-filter .inline-actions {
  align-self: end;
  margin-bottom: 2px;
}

.inventory-compact-list,
.inventory-warning-list {
  display: grid;
  gap: 10px;
}

.inventory-row-card,
.inventory-warning-card {
  border: 1px solid rgba(20, 35, 31, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
}

.inventory-row-main,
.inventory-warning-card .item-row {
  margin-bottom: 6px;
}

.inventory-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inventory-row-title strong,
.inventory-warning-card strong {
  font-size: 17px;
}

.inventory-row-fields,
.inventory-warning-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 8px;
}

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

.inventory-row-fields span,
.inventory-warning-fields span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.92);
  font-size: 12px;
  color: var(--muted);
}

.inventory-row-fields span strong,
.inventory-warning-fields span strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.inventory-abnormal-card {
  border-color: rgba(203, 139, 61, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.88));
}

.inventory-suggestion-list {
  display: grid;
  gap: 10px;
}

.inventory-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.inventory-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.inventory-shortcut-btn {
  min-height: 52px;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.boss-cockpit-shell {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(43, 127, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(0, 244, 255, 0.18), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(91, 61, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #071229 0%, #091a3c 52%, #08162f 100%);
  border: 1px solid rgba(57, 139, 255, 0.26);
  box-shadow: 0 30px 80px rgba(1, 10, 31, 0.42);
  color: #d7ebff;
}

.boss-cockpit-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(73, 132, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 132, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  pointer-events: none;
}

.boss-cockpit-shell > * {
  position: relative;
  z-index: 1;
}

.boss-cockpit-hero {
  padding: 22px 24px 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(4, 22, 57, 0.92), rgba(8, 40, 100, 0.72)),
    linear-gradient(90deg, rgba(0, 174, 255, 0.18), transparent);
  border: 1px solid rgba(75, 160, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(121, 202, 255, 0.08);
}

.boss-cockpit-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.boss-cockpit-city,
.boss-cockpit-time {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 198, 255, 0.25);
  background: rgba(5, 17, 41, 0.56);
  color: #8fe8ff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boss-cockpit-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: end;
}

.boss-cockpit-title-copy h3 {
  margin: 0;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0.04em;
  color: #f2f8ff;
  text-shadow: 0 0 22px rgba(36, 197, 255, 0.22);
}

.boss-cockpit-title-copy p {
  margin: 12px 0 0;
  max-width: 820px;
  color: rgba(206, 229, 255, 0.84);
  font-size: 14px;
  line-height: 1.75;
}

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

.boss-cockpit-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.boss-stat-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(7, 22, 52, 0.88), rgba(6, 18, 42, 0.82));
  border: 1px solid rgba(71, 153, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(116, 212, 255, 0.06),
    0 16px 36px rgba(2, 10, 28, 0.24);
}

.boss-stat-card span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #7fd8ff;
}

.boss-stat-card p {
  margin: 10px 0 0;
  color: rgba(196, 220, 255, 0.62);
  font-size: 12px;
}

.boss-stat-card-primary {
  background:
    radial-gradient(circle at top right, rgba(0, 238, 255, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(8, 33, 88, 0.94), rgba(6, 18, 46, 0.88));
}

.boss-stat-card-alert {
  background:
    radial-gradient(circle at top right, rgba(255, 92, 92, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(44, 16, 52, 0.88), rgba(15, 17, 46, 0.84));
}

.boss-digit-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.boss-digit-cell,
.boss-digit-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 58px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(4, 20, 48, 0.96), rgba(7, 37, 88, 0.86));
  border: 1px solid rgba(66, 181, 255, 0.4);
  box-shadow:
    inset 0 0 14px rgba(0, 233, 255, 0.08),
    0 0 18px rgba(0, 144, 255, 0.12);
  color: #79f5ff;
  font-size: 36px;
  line-height: 1;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
}

.boss-digit-sep {
  min-width: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #9fe8ff;
  font-size: 30px;
}

.boss-digit-wrap em {
  margin-left: 6px;
  color: #7fd8ff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.boss-cockpit-main-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.18fr 0.78fr;
  gap: 16px;
}

.boss-cockpit-bottom-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.82fr 0.9fr;
  gap: 16px;
}

.boss-panel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5, 18, 44, 0.88), rgba(8, 20, 46, 0.8));
  border: 1px solid rgba(67, 150, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(127, 223, 255, 0.05),
    0 16px 36px rgba(2, 10, 28, 0.2);
}

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

.boss-panel-head h4 {
  margin: 0;
  color: #eef7ff;
  font-size: 22px;
}

.boss-panel-head p {
  margin: 6px 0 0;
  color: rgba(193, 222, 255, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.boss-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 46, 110, 0.84);
  border: 1px solid rgba(91, 199, 255, 0.26);
  color: #8fe8ff;
  font-size: 12px;
  font-weight: 700;
}

.boss-sub-head {
  margin-top: 18px;
}

.boss-feed-list,
.boss-side-list,
.boss-reminder-list,
.boss-risk-list,
.boss-ai-list,
.boss-rank-list {
  display: grid;
  gap: 12px;
}

.boss-feed-item,
.boss-side-item,
.boss-reminder-item,
.boss-risk-item,
.boss-matrix-card,
.boss-ai-item,
.boss-rank-item {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.76), rgba(4, 17, 41, 0.88));
  border: 1px solid rgba(73, 162, 255, 0.18);
}

.boss-feed-item,
.boss-side-item,
.boss-reminder-item,
.boss-risk-item,
.boss-ai-item,
.boss-rank-item {
  padding: 14px 16px;
}

.boss-feed-row,
.boss-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boss-feed-row strong,
.boss-rank-main strong,
.boss-side-item strong,
.boss-risk-item strong,
.boss-matrix-head strong {
  color: #f1f8ff;
  font-size: 16px;
}

.boss-feed-row span,
.boss-side-item span,
.boss-reminder-item span,
.boss-reminder-item em,
.boss-risk-row span,
.boss-rank-main p,
.boss-side-item p,
.boss-risk-item p {
  color: rgba(196, 224, 255, 0.72);
  font-size: 12px;
  font-style: normal;
}

.boss-feed-grid,
.boss-side-kpis,
.boss-rank-grid,
.boss-matrix-fields {
  display: grid;
  gap: 10px;
}

.boss-feed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

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

.boss-info-cell {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 27, 67, 0.72);
  border: 1px solid rgba(80, 168, 255, 0.14);
}

.boss-info-cell span {
  color: rgba(164, 208, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.boss-info-cell strong {
  color: #f3f8ff;
  font-size: 16px;
}

.boss-info-cell.accent {
  background: rgba(10, 52, 112, 0.76);
}

.boss-info-cell.warn {
  background: rgba(66, 24, 42, 0.7);
  border-color: rgba(255, 96, 134, 0.16);
}

.boss-rank-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.boss-rank-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.boss-rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 70, 168, 0.92), rgba(5, 32, 78, 0.92));
  border: 1px solid rgba(96, 205, 255, 0.26);
  color: #73efff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.boss-rank-value {
  color: #7cefff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.boss-rank-bar {
  height: 8px;
  margin: 12px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 56, 113, 0.62);
}

.boss-rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26c0ff, #6f85ff);
  box-shadow: 0 0 18px rgba(38, 192, 255, 0.42);
}

.boss-rank-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.boss-matrix-card {
  padding: 14px;
}

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

.boss-matrix-head span {
  color: #78f3ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

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

.boss-ai-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.boss-ai-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 74, 180, 0.92), rgba(8, 37, 87, 0.92));
  border: 1px solid rgba(95, 203, 255, 0.24);
  color: #81ebff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.boss-ai-item p {
  margin: 0;
  color: rgba(210, 229, 255, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.boss-ai-sections {
  display: grid;
  gap: 12px;
}

.boss-ai-section {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 24, 58, 0.88), rgba(10, 37, 86, 0.82));
  border: 1px solid rgba(70, 155, 255, 0.16);
}

.boss-ai-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.boss-ai-section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 74, 180, 0.92), rgba(8, 37, 87, 0.92));
  border: 1px solid rgba(95, 203, 255, 0.24);
  color: #81ebff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.boss-ai-section-head h5 {
  margin: 0 0 6px;
  color: #f4f9ff;
  font-size: 15px;
}

.boss-ai-section-head p {
  margin: 0;
  color: rgba(210, 229, 255, 0.82);
  font-size: 13px;
  line-height: 1.75;
}

.boss-empty-block {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(94, 180, 255, 0.24);
  background: rgba(7, 24, 58, 0.48);
}

.boss-empty-block strong {
  display: block;
  color: #e5f4ff;
  font-size: 18px;
}

.boss-empty-block p {
  margin: 8px 0 0;
  color: rgba(194, 221, 255, 0.7);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .inventory-hero-panel,
  .inventory-dashboard-grid,
  .inventory-kpi-grid {
    grid-template-columns: 1fr;
  }

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

  .inventory-hero-panel {
    flex-direction: column;
  }

  .inventory-hero-side {
    align-items: flex-start;
  }

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

  .inventory-risk-grid {
    grid-template-columns: 1fr;
  }

  .inventory-create-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .inventory-create-grid label,
  .inventory-create-grid label.field-xs,
  .inventory-create-grid label.field-sm,
  .inventory-create-grid label.field-md {
    grid-column: span 3;
  }

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

  .inventory-row-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-shortcut-grid {
    grid-template-columns: 1fr 1fr;
  }

  .boss-cockpit-title-row,
  .boss-cockpit-main-grid,
  .boss-cockpit-bottom-grid,
  .boss-cockpit-stat-grid,
  .boss-matrix-grid,
  .boss-rank-grid,
  .boss-feed-grid {
    grid-template-columns: 1fr;
  }

  .boss-side-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .inventory-kpi-grid,
  .inventory-insight-grid,
  .inventory-risk-grid {
    grid-template-columns: 1fr;
  }

  .inventory-hero-copy h3 {
    font-size: 22px;
  }

  .inventory-ai-grid {
    grid-template-columns: 1fr;
  }

  .inventory-create-grid {
    grid-template-columns: 1fr;
  }

  .inventory-create-grid label,
  .inventory-create-grid label.field-xs,
  .inventory-create-grid label.field-sm,
  .inventory-create-grid label.field-md {
    grid-column: 1 / -1;
  }

  .inventory-assistant-input-row {
    grid-template-columns: 1fr;
  }

  .inventory-row-fields,
  .inventory-warning-fields {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-row-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .boss-cockpit-shell {
    padding: 14px;
  }

  .boss-cockpit-title-copy h3 {
    font-size: 30px;
  }

  .boss-cockpit-hero-top,
  .boss-rank-top,
  .boss-feed-row,
  .boss-risk-row,
  .boss-matrix-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .boss-side-kpis,
  .boss-matrix-fields {
    grid-template-columns: 1fr;
  }

  .boss-digit-cell {
    min-width: 34px;
    height: 48px;
    font-size: 28px;
  }
}

.employee-home-shell {
  display: grid;
  gap: 16px;
}

.employee-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 246, 0.96));
  box-shadow: var(--shadow);
}

.employee-home-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-home-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #0f5e59;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.employee-home-copy {
  display: grid;
  gap: 3px;
}

.employee-home-copy h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.employee-home-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.employee-home-tag {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f5e59;
  background: rgba(15, 118, 110, 0.1);
}

.employee-home-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.employee-kpi-card {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(20, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.employee-kpi-card span {
  font-size: 12px;
  color: var(--muted);
}

.employee-kpi-card strong {
  font-size: 16px;
  line-height: 1.25;
}

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

.employee-profile-grid .profile-item {
  min-height: 84px;
}

.employee-tenant-card .profile-block p {
  margin: 0;
  line-height: 1.7;
}

.employee-payroll-table .table td strong {
  font-size: 14px;
}

.employee-profile-subnav-card {
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 246, 0.94)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 36%);
  box-shadow: 0 14px 34px rgba(20, 35, 31, 0.08);
}

.employee-profile-subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-profile-subnav button {
  border: 1px solid rgba(20, 35, 31, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.employee-profile-subnav button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.employee-profile-subpanel {
  min-height: 360px;
}

.employee-profile-compact-grid .profile-item {
  min-height: 70px;
}

.employee-workbench-shell {
  display: grid;
  gap: 16px;
}

.employee-workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 244, 0.98));
  box-shadow: var(--shadow);
}

.employee-workbench-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.employee-workbench-quick-btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 10px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(20, 35, 31, 0.14);
  cursor: pointer;
}

.employee-workbench-quick-btn.green { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.employee-workbench-quick-btn.orange { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.employee-workbench-quick-btn.blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.employee-workbench-quick-btn.dark { background: linear-gradient(135deg, #14231f, #475569); }

.employee-workbench-kpis,
.employee-workbench-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.employee-workbench-main {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.employee-workbench-card {
  min-height: 100%;
}

.employee-workbench-todo-row,
.employee-workbench-pms-row {
  width: 100%;
  border: 1px solid rgba(20, 35, 31, 0.08);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  grid-template-columns: auto minmax(130px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.employee-workbench-todo-row:hover,
.employee-workbench-pms-row:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
}

.employee-workbench-todo-row strong,
.employee-workbench-pms-row strong {
  color: var(--text);
}

.employee-workbench-todo-row em,
.employee-workbench-pms-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.employee-workbench-pms-list {
  display: grid;
  gap: 10px;
}

.employee-workbench-pms-row {
  grid-template-columns: 58px minmax(120px, 0.8fr) minmax(0, 1fr) auto;
}

.employee-workbench-pms-type {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 10px;
  color: #0f5e59;
  background: rgba(15, 118, 110, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.employee-workbench-pms-stats,
.employee-workbench-records {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.employee-workbench-pms-stats > div,
.employee-workbench-records > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.employee-workbench-pms-stats span,
.employee-workbench-records span {
  color: var(--muted);
  font-size: 12px;
}

.employee-workbench-pms-stats strong,
.employee-workbench-records strong {
  font-size: 20px;
}

.employee-workbench-records em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.employee-workbench-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.employee-workbench-advice {
  display: grid;
  gap: 10px;
}

@media (max-width: 1080px) {
  .employee-home-hero,
  .employee-person-grid,
  .employee-workbench-hero,
  .employee-workbench-main {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .employee-home-identity {
    align-items: flex-start;
  }

  .employee-home-kpis {
    grid-template-columns: 1fr;
  }

  .employee-workbench-quick,
  .employee-workbench-kpis,
  .employee-workbench-pms-stats,
  .employee-workbench-records {
    grid-template-columns: 1fr;
  }

  .employee-workbench-todo-row,
  .employee-workbench-pms-row {
    grid-template-columns: 1fr;
  }
}

.employee-handover-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.employee-handover-grid label {
  grid-column: span 3;
  gap: 6px;
  font-size: 13px;
}

.employee-handover-grid label.field-xs {
  grid-column: span 2;
}

.employee-handover-grid label.field-sm {
  grid-column: span 3;
}

.employee-handover-grid label.field-lg {
  grid-column: span 6;
}

.employee-leave-grid-tight {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.employee-leave-grid-tight label {
  grid-column: span 3;
}

.employee-leave-grid-tight label.field-sm {
  grid-column: span 3;
}

.employee-leave-grid-tight label.field-lg {
  grid-column: span 6;
}

.employee-leave-grid-tight textarea {
  min-height: 88px;
}

.employee-handover-grid input,
.employee-handover-grid select,
.employee-handover-grid textarea {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
}

.employee-handover-grid input[type="number"]::-webkit-outer-spin-button,
.employee-handover-grid input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.employee-handover-grid input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.employee-handover-submit {
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 180px;
  justify-self: flex-start;
}

.employee-handover-history-list {
  display: grid;
  gap: 14px;
}

.employee-handover-history-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(20, 35, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.employee-handover-history-table {
  min-width: 980px;
}

.employee-handover-edit-table {
  min-width: 1060px;
}

.employee-handover-edit-table th:last-child,
.employee-handover-edit-table td:last-child {
  width: 72px;
  text-align: center;
}

.employee-handover-cancel-edit {
  min-width: 180px;
  justify-self: flex-start;
}

.employee-handover-history-table th,
.employee-handover-history-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.employee-handover-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-handover-history-pager {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .employee-handover-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .employee-leave-grid-tight {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .employee-handover-grid label.field-xs {
    grid-column: span 2;
  }

  .employee-handover-grid label.field-sm {
    grid-column: span 4;
  }

  .employee-handover-grid label.field-lg {
    grid-column: span 8;
  }

  .employee-leave-grid-tight label,
  .employee-leave-grid-tight label.field-sm {
    grid-column: span 4;
  }

  .employee-leave-grid-tight label.field-lg {
    grid-column: span 8;
  }

  .employee-handover-history-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .employee-handover-grid {
    grid-template-columns: 1fr;
  }

  .employee-leave-grid-tight {
    grid-template-columns: 1fr;
  }

  .employee-handover-grid label,
  .employee-handover-grid label.field-xs,
  .employee-handover-grid label.field-sm,
  .employee-handover-grid label.field-lg {
    grid-column: 1 / -1;
  }

  .employee-leave-grid-tight label,
  .employee-leave-grid-tight label.field-sm,
  .employee-leave-grid-tight label.field-lg {
    grid-column: 1 / -1;
  }

  .employee-handover-submit {
    width: 100%;
  }

  .employee-handover-history-table {
    min-width: 860px;
  }
}

.warehouse-mobile-shell {
  display: grid;
  gap: 18px;
}

.warehouse-mobile-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #12362e 0%, #22584d 58%, #d9efe8 100%);
  color: #f6fbf8;
}

.warehouse-mobile-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  margin-bottom: 10px;
}

.warehouse-mobile-hero h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.warehouse-mobile-hero p {
  margin: 0;
  max-width: 520px;
  line-height: 1.7;
  color: rgba(246, 251, 248, 0.88);
}

.warehouse-mobile-kpis {
  display: grid;
  gap: 10px;
}

.warehouse-mobile-kpi {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.warehouse-mobile-kpi span {
  display: block;
  font-size: 12px;
  opacity: 0.86;
}

.warehouse-mobile-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.warehouse-mobile-kpi-warn {
  background: rgba(255, 214, 102, 0.2);
}

.warehouse-mobile-card {
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(18, 54, 46, 0.08);
  box-shadow: 0 18px 42px rgba(18, 54, 46, 0.08);
}

.warehouse-mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.warehouse-mobile-card-head h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.warehouse-mobile-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.warehouse-mobile-form {
  display: grid;
  gap: 14px;
}

.warehouse-mobile-input-wrap textarea {
  min-height: 112px;
  border-radius: 18px;
  padding: 14px;
  font-size: 14px;
}

.warehouse-mobile-input-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

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

.warehouse-mobile-action-btn {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #12362e 0%, #2f6c5d 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.warehouse-mobile-action-btn-outbound {
  background: linear-gradient(135deg, #7c2819 0%, #c85b2e 100%);
}

.warehouse-mobile-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.warehouse-mobile-stock-list,
.warehouse-mobile-warning-list {
  display: grid;
  gap: 10px;
}

.warehouse-mobile-stock-item,
.warehouse-mobile-warning-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 54, 46, 0.04);
  border: 1px solid rgba(18, 54, 46, 0.06);
}

.warehouse-mobile-stock-item strong,
.warehouse-mobile-warning-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.warehouse-mobile-stock-item p,
.warehouse-mobile-warning-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.warehouse-mobile-stock-meta {
  text-align: right;
}

.warehouse-mobile-stock-meta span {
  display: block;
  font-weight: 700;
}

.warehouse-mobile-stock-meta em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.warehouse-mobile-ai-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 54, 46, 0.05) 0%, rgba(29, 108, 86, 0.1) 100%);
}

.warehouse-mobile-ai-box h5 {
  margin: 0 0 8px;
  font-size: 14px;
}

.warehouse-mobile-ai-box p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
}

.warehouse-mobile-ai-box p:last-child {
  margin-bottom: 0;
}

.inventory-role-page {
  display: grid;
  gap: 14px;
}

.inventory-role-metrics {
  margin: 0;
}

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

.inventory-role-card {
  padding: 14px 16px;
}

.inventory-role-card-wide {
  grid-column: 1 / -1;
}

.inventory-saving-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.inventory-saving-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.inventory-saving-list strong {
  color: #10231b;
  font-size: 13px;
  font-weight: 900;
}

.inventory-saving-list p {
  margin: 0;
  color: #607069;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .warehouse-mobile-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .warehouse-mobile-card,
  .warehouse-mobile-hero {
    border-radius: 18px;
    padding: 14px;
  }

  .warehouse-mobile-card-head,
  .warehouse-mobile-input-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .warehouse-mobile-action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-role-grid,
  .inventory-saving-list {
    grid-template-columns: 1fr;
  }
}

.boss-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-detail-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 205, 255, 0.28);
  background: linear-gradient(135deg, rgba(8, 38, 94, 0.96), rgba(12, 86, 182, 0.88));
  color: #dff6ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 35, 91, 0.28);
}

.boss-detail-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.boss-detail-panel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 20, 49, 0.92), rgba(4, 15, 37, 0.94));
  border: 1px solid rgba(82, 176, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(127, 223, 255, 0.05),
    0 18px 40px rgba(2, 10, 28, 0.24);
}

.boss-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.boss-detail-head h4 {
  margin: 0;
  color: #f1f8ff;
  font-size: 24px;
}

.boss-detail-head p {
  margin: 6px 0 0;
  color: rgba(198, 225, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.boss-detail-list {
  display: grid;
  gap: 12px;
}

.boss-detail-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-detail-cell {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 27, 67, 0.62);
  border: 1px solid rgba(80, 168, 255, 0.12);
}

.boss-detail-cell span {
  color: rgba(164, 208, 255, 0.72);
  font-size: 11px;
}

.boss-detail-cell strong {
  color: #f4f9ff;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.shell.boss-shell {
  grid-template-columns: 1fr;
  max-width: min(1820px, calc(100vw - 24px));
}

.shell.boss-shell .sidebar,
.shell.boss-shell .topbar {
  display: none !important;
}

.shell.boss-shell .main-panel {
  padding: 12px;
}

.boss-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.boss-logout-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 224, 255, 0.34);
  background: linear-gradient(135deg, rgba(11, 55, 132, 0.96), rgba(0, 153, 255, 0.82));
  color: #f1fbff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(4, 24, 67, 0.26);
}

.boss-logout-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.boss-tenant-strip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.72), rgba(4, 17, 41, 0.84));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-tenant-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.boss-tenant-strip-head strong {
  color: #f4f9ff;
  font-size: 16px;
}

.boss-tenant-strip-head span {
  color: rgba(196, 224, 255, 0.72);
  font-size: 12px;
}

.boss-tenant-switch-list,
.boss-tenant-action-row,
.boss-bottom-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-tenant-switch-list {
  margin-bottom: 12px;
}

.boss-tenant-chip {
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(92, 205, 255, 0.18);
  background: linear-gradient(135deg, rgba(6, 24, 61, 0.96), rgba(10, 51, 120, 0.84));
  color: #e6f7ff;
  text-align: left;
  cursor: pointer;
}

.boss-tenant-chip span,
.boss-tenant-chip em {
  display: block;
}

.boss-tenant-chip span {
  font-size: 13px;
  font-weight: 700;
}

.boss-tenant-chip em {
  margin-top: 6px;
  color: #7cefff;
  font-size: 12px;
  font-style: normal;
}

.boss-tenant-chip.active {
  border-color: rgba(117, 231, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(117, 231, 255, 0.18), 0 10px 24px rgba(7, 35, 91, 0.28);
}

.boss-tenant-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.boss-panel-bottom-actions {
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .boss-tenant-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .boss-tenant-quick-grid {
    grid-template-columns: 1fr;
  }

  .boss-tenant-chip {
    width: 100%;
  }
}

.boss-dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.boss-dashboard-main {
  min-width: 0;
}

.boss-drawer {
  min-width: 0;
}

.boss-drawer-sticky {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
}

.boss-drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 22, 52, 0.88), rgba(6, 18, 42, 0.82));
  border: 1px solid rgba(71, 153, 255, 0.24);
  color: #d7ebff;
}

.boss-drawer-toolbar strong {
  font-size: 16px;
  color: #f5fbff;
}

.boss-drawer-toolbar span {
  font-size: 12px;
  color: rgba(198, 225, 255, 0.74);
}

.boss-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.boss-filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 205, 255, 0.18);
  background: rgba(5, 18, 44, 0.62);
  color: #dff6ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.boss-filter-chip.active,
.boss-detail-btn.active {
  border-color: rgba(117, 231, 255, 0.46);
  background: linear-gradient(135deg, rgba(8, 38, 94, 0.98), rgba(0, 132, 255, 0.88));
  box-shadow: 0 0 0 1px rgba(117, 231, 255, 0.18), 0 10px 24px rgba(7, 35, 91, 0.24);
}

@media (max-width: 1280px) {
  .boss-dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .boss-drawer-sticky {
    position: static;
  }
}

.boss-dashboard-workspace-wide {
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.75fr);
}

.boss-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.boss-drawer-head h4 {
  margin: 0;
  color: #f4f9ff;
  font-size: 18px;
}

.boss-drawer-head p {
  margin: 6px 0 0;
  color: rgba(198, 225, 255, 0.74);
  font-size: 12px;
  line-height: 1.7;
}

.boss-drawer-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 20, 49, 0.94), rgba(4, 15, 37, 0.96));
  border: 1px solid rgba(82, 176, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(127, 223, 255, 0.05),
    0 18px 38px rgba(2, 10, 28, 0.24);
}

.boss-trend-stack {
  display: grid;
  gap: 14px;
}

.boss-trend-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

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

.boss-trend-head strong {
  color: #f4f9ff;
  font-size: 14px;
}

.boss-trend-head span {
  color: rgba(164, 208, 255, 0.74);
  font-size: 11px;
}

.boss-trend-bars {
  display: grid;
  gap: 10px;
}

.boss-trend-bar-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
}

.boss-trend-bar-row span {
  color: rgba(198, 225, 255, 0.84);
  font-size: 11px;
}

.boss-trend-bar-row strong {
  color: #f4f9ff;
  font-size: 12px;
}

.boss-trend-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 42, 96, 0.9);
  overflow: hidden;
}

.boss-trend-bar-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #54d7ff 0%, #1d8bff 100%);
}

.boss-trend-bar-track.warn i {
  background: linear-gradient(90deg, #ffd36b 0%, #ff8e42 100%);
}

.boss-trend-bar-track.accent i {
  background: linear-gradient(90deg, #95e2ff 0%, #44b3ff 50%, #1d8bff 100%);
}

@media (max-width: 1280px) {
  .boss-dashboard-workspace-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .boss-drawer-card {
    padding: 14px;
    border-radius: 18px;
  }

  .boss-drawer-head,
  .boss-trend-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .boss-trend-bar-row {
    grid-template-columns: 1fr;
  }
}

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

.boss-compare-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-compare-card span {
  color: rgba(164, 208, 255, 0.74);
  font-size: 12px;
}

.boss-compare-card strong {
  color: #f4f9ff;
  font-size: 22px;
  line-height: 1.2;
}

.boss-compare-card em {
  color: rgba(198, 225, 255, 0.82);
  font-style: normal;
  font-size: 12px;
}

.boss-compare-card-good {
  box-shadow: inset 0 0 0 1px rgba(116, 235, 255, 0.1);
}

.boss-compare-card-warn {
  border-color: rgba(255, 179, 92, 0.34);
  background: linear-gradient(180deg, rgba(54, 30, 8, 0.82), rgba(41, 18, 4, 0.94));
}

.boss-compare-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.boss-compare-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 27, 67, 0.62);
  border: 1px solid rgba(80, 168, 255, 0.12);
  color: #dff6ff;
  font-size: 12px;
}

.boss-todo-list {
  display: grid;
  gap: 12px;
}

.boss-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-todo-item p {
  margin: 8px 0 0;
  color: rgba(198, 225, 255, 0.74);
  font-size: 12px;
}

.boss-todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-todo-row strong {
  color: #f4f9ff;
  font-size: 14px;
}

.boss-todo-level {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.boss-todo-level-high {
  background: rgba(255, 160, 92, 0.18);
  color: #ffd9b3;
  border: 1px solid rgba(255, 179, 92, 0.34);
}

.boss-todo-level-mid {
  background: rgba(84, 215, 255, 0.16);
  color: #d7f8ff;
  border: 1px solid rgba(84, 215, 255, 0.3);
}

.boss-clickable-card {
  cursor: pointer;
}

.boss-clickable-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 35, 91, 0.24);
}

.boss-ultra-cockpit {
  position: relative;
  min-height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  color: #e9f8ff;
  background:
    linear-gradient(rgba(78, 186, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 186, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 14% 16%, rgba(0, 213, 255, 0.24), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(67, 97, 255, 0.28), transparent 24%),
    radial-gradient(circle at 64% 95%, rgba(20, 184, 166, 0.18), transparent 24%),
    linear-gradient(135deg, #061124 0%, #0a1d3d 45%, #071426 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto, auto;
  border: 1px solid rgba(102, 218, 255, 0.22);
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.46);
}

.boss-ultra-bg-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.38;
}

.boss-ultra-bg-orb-one {
  top: -120px;
  left: 24%;
  background: #00d5ff;
}

.boss-ultra-bg-orb-two {
  right: -90px;
  bottom: -120px;
  background: #4f46e5;
}

.boss-ultra-header,
.boss-ultra-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(111, 219, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 29, 65, 0.78), rgba(4, 15, 35, 0.86));
  box-shadow: inset 0 0 0 1px rgba(167, 232, 255, 0.04), 0 16px 34px rgba(0, 8, 24, 0.26);
  backdrop-filter: blur(14px);
}

.boss-ultra-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
}

.boss-ultra-eyebrow {
  display: inline-flex;
  margin-bottom: 5px;
  color: #72f0ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.boss-ultra-header h2 {
  margin: 0;
  color: #f7fcff;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgba(50, 208, 255, 0.28);
}

.boss-ultra-header p {
  margin: 7px 0 0;
  color: rgba(204, 229, 255, 0.74);
  font-size: 12px;
}

.boss-ultra-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-ultra-range {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(3, 14, 34, 0.66);
  border: 1px solid rgba(102, 218, 255, 0.16);
}

.boss-ultra-range button,
.boss-ultra-logout {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #dff7ff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(12, 37, 78, 0.84);
  border: 1px solid rgba(111, 219, 255, 0.14);
}

.boss-ultra-range button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.38);
}

.boss-ultra-logout {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(20, 184, 166, 0.82));
}

.boss-ultra-grid {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  grid-template-rows: minmax(260px, 1.05fr) minmax(190px, 0.95fr);
  gap: 12px;
}

.boss-ultra-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  border-radius: 22px;
}

.boss-ultra-overview {
  grid-column: 1;
  grid-row: 1;
}

.boss-ultra-rank {
  grid-column: 2;
  grid-row: 1;
}

.boss-ultra-tenant,
.boss-ultra-report,
.boss-ultra-ai,
.boss-ultra-todo {
  min-height: 0;
}

.boss-ultra-grid > .boss-ultra-tenant,
.boss-ultra-grid > .boss-ultra-report,
.boss-ultra-grid > .boss-ultra-ai,
.boss-ultra-grid > .boss-ultra-todo {
  grid-row: 2;
}

.boss-ultra-grid {
  grid-template-areas:
    "overview rank"
    "bottom bottom";
}

.boss-ultra-overview { grid-area: overview; }
.boss-ultra-rank { grid-area: rank; }

.boss-ultra-tenant,
.boss-ultra-report,
.boss-ultra-ai,
.boss-ultra-todo {
  grid-area: bottom;
}

.boss-ultra-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
}

.boss-ultra-tenant {
  margin-right: calc(75% + 9px);
}

.boss-ultra-report {
  margin-left: calc(25% + 3px);
  margin-right: calc(50% + 6px);
}

.boss-ultra-ai {
  margin-left: calc(50% + 6px);
  margin-right: calc(25% + 3px);
}

.boss-ultra-todo {
  margin-left: calc(75% + 9px);
}

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

.boss-ultra-panel-head > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.boss-ultra-panel-head span,
.boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.34), rgba(37, 99, 235, 0.44));
  border: 1px solid rgba(125, 226, 255, 0.24);
  color: #9ff4ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
}

.boss-ultra-panel-head span {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.boss-ultra-panel-head h3 {
  margin: 0;
  color: #f3fbff;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.boss-ultra-panel-head em {
  color: rgba(181, 218, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.boss-ultra-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.boss-ultra-kpi {
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 38, 86, 0.84), rgba(5, 19, 45, 0.92));
  border: 1px solid rgba(91, 199, 255, 0.16);
}

.boss-ultra-icon {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.boss-ultra-kpi em,
.boss-ultra-mini em {
  display: block;
  color: rgba(181, 218, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.boss-ultra-kpi strong {
  display: block;
  margin-top: 8px;
  color: #f8fdff;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.05;
  white-space: nowrap;
}

.boss-ultra-kpi-hot,
.boss-ultra-kpi-cyan {
  border-color: rgba(34, 211, 238, 0.28);
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 34%), linear-gradient(180deg, rgba(11, 48, 98, 0.9), rgba(5, 19, 45, 0.94));
}

.boss-ultra-kpi-good {
  border-color: rgba(45, 212, 191, 0.24);
}

.boss-ultra-kpi-warn {
  border-color: rgba(251, 146, 60, 0.34);
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 34%), linear-gradient(180deg, rgba(70, 37, 12, 0.86), rgba(34, 18, 8, 0.9));
}

.boss-ultra-rank-list,
.boss-ultra-advice-list,
.boss-ultra-todo-list {
  display: grid;
  gap: 8px;
}

.boss-ultra-rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 15px;
  color: #eaf8ff;
  background: rgba(7, 28, 66, 0.74);
  border: 1px solid rgba(91, 199, 255, 0.12);
  text-align: left;
}

.boss-ultra-rank-row.active {
  border-color: rgba(125, 226, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(125, 226, 255, 0.12), 0 0 22px rgba(14, 165, 233, 0.16);
}

.boss-ultra-rank-no {
  color: #76f3ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.boss-ultra-rank-row strong,
.boss-ultra-todo-row strong {
  min-width: 0;
  overflow: hidden;
  color: #f5fbff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-rank-row em,
.boss-ultra-todo-row em {
  color: #87f4ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.boss-ultra-rank-row i {
  grid-column: 2 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 65, 121, 0.8);
}

.boss-ultra-rank-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

.boss-ultra-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boss-ultra-mini {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 7px;
  min-height: 52px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(7, 28, 66, 0.66);
  border: 1px solid rgba(91, 199, 255, 0.12);
}

.boss-ultra-mini > span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.boss-ultra-mini strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fdff;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-mini-warn {
  border-color: rgba(251, 146, 60, 0.28);
}

.boss-ultra-mini-good {
  border-color: rgba(45, 212, 191, 0.22);
}

.boss-ultra-advice-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 14px;
  background: rgba(7, 28, 66, 0.58);
  border: 1px solid rgba(91, 199, 255, 0.1);
}

.boss-ultra-advice-list span,
.boss-ultra-todo-row > span {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.boss-ultra-advice-list p {
  margin: 0;
  color: rgba(218, 237, 255, 0.84);
  font-size: 12px;
  line-height: 1.45;
}

.boss-ultra-todo-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 14px;
  background: rgba(7, 28, 66, 0.66);
  border: 1px solid rgba(91, 199, 255, 0.12);
  text-align: left;
}

.boss-ultra-empty {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgba(204, 229, 255, 0.68);
  background: rgba(7, 28, 66, 0.52);
  border: 1px dashed rgba(91, 199, 255, 0.18);
  font-size: 12px;
}

@media (max-width: 1280px) {
  .boss-ultra-cockpit {
    max-height: none;
    overflow: visible;
  }

  .boss-ultra-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "overview"
      "rank"
      "bottom";
    grid-template-rows: auto;
  }

  .boss-ultra-tenant,
  .boss-ultra-report,
  .boss-ultra-ai,
  .boss-ultra-todo {
    margin: 0;
  }

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

@media (max-width: 760px) {
  .boss-ultra-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .boss-ultra-kpi-grid,
  .boss-ultra-mini-grid {
    grid-template-columns: 1fr;
  }
}

.boss-ultra-cockpit {
  padding: 10px 14px 12px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 184, 255, 0.24), transparent 26%),
    radial-gradient(circle at 50% 115%, rgba(0, 213, 255, 0.16), transparent 24%),
    linear-gradient(rgba(0, 204, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 204, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #05091d 0%, #09133a 48%, #050817 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  border-color: rgba(0, 190, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(59, 207, 255, 0.16), inset 0 0 80px rgba(0, 128, 255, 0.15), 0 28px 80px rgba(0, 0, 0, 0.54);
}

.boss-ultra-cockpit::before,
.boss-ultra-cockpit::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  height: 54px;
  border: 2px solid rgba(0, 162, 255, 0.56);
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(0, 204, 255, 0.45));
}

.boss-ultra-cockpit::before {
  top: 0;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.boss-ultra-cockpit::after {
  bottom: 0;
  border-top: 0;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  opacity: 0.42;
}

.boss-ultra-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(460px, 1fr) minmax(230px, 0.45fr);
  padding: 8px 16px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.boss-ultra-header-left,
.boss-ultra-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.boss-ultra-header-left {
  justify-content: flex-start;
}

.boss-ultra-header-left > span,
.boss-ultra-note {
  color: #ffe86a;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 232, 106, 0.34);
  white-space: nowrap;
}

.boss-ultra-title {
  position: relative;
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px 80px 10px;
  background: linear-gradient(180deg, rgba(9, 44, 96, 0.72), rgba(5, 18, 52, 0.22));
  clip-path: polygon(10% 0, 90% 0, 100% 58%, 82% 100%, 18% 100%, 0 58%);
  filter: drop-shadow(0 0 18px rgba(0, 174, 255, 0.46));
}

.boss-ultra-title::before,
.boss-ultra-title::after {
  content: "";
  position: absolute;
  inset: 7px 34px 8px;
  border: 2px solid rgba(0, 174, 255, 0.58);
  clip-path: polygon(10% 0, 90% 0, 100% 58%, 82% 100%, 18% 100%, 0 58%);
  pointer-events: none;
}

.boss-ultra-title::after {
  inset: auto 42% -8px;
  width: 16%;
  height: 20px;
  border-top: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 213, 255, 0.74), transparent);
  clip-path: none;
}

.boss-ultra-eyebrow {
  margin: 0;
  color: #50dcff;
  font-size: 10px;
  letter-spacing: 0.28em;
}

.boss-ultra-header h2 {
  color: #ffffff;
  font-size: clamp(34px, 3.2vw, 58px);
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px #42d8ff, 0 0 24px rgba(0, 174, 255, 0.5);
}

.boss-ultra-header p {
  margin-top: 2px;
  color: rgba(172, 226, 255, 0.72);
  font-size: 11px;
}

.boss-ultra-actions {
  justify-content: flex-end;
}

.boss-ultra-range {
  padding: 3px;
  border-radius: 4px;
  background: rgba(2, 8, 28, 0.88);
  border-color: rgba(0, 174, 255, 0.34);
}

.boss-ultra-range button,
.boss-ultra-logout {
  min-height: 30px;
  border-radius: 2px;
  border-color: rgba(0, 195, 255, 0.35);
  background: rgba(7, 16, 48, 0.82);
  box-shadow: inset 0 0 14px rgba(0, 174, 255, 0.12);
}

.boss-ultra-range button.active,
.boss-ultra-logout {
  background: linear-gradient(180deg, rgba(0, 165, 255, 0.92), rgba(0, 77, 177, 0.9));
  box-shadow: inset 0 0 16px rgba(151, 235, 255, 0.34), 0 0 14px rgba(0, 174, 255, 0.42);
}

.boss-ultra-grid {
  gap: 10px;
  grid-template-columns: minmax(0, 1.18fr) minmax(410px, 0.82fr);
  grid-template-rows: minmax(250px, 1fr) minmax(178px, 0.82fr);
}

.boss-ultra-panel {
  padding: 10px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(0, 204, 255, 0.14), transparent 18px) top left / 42px 42px no-repeat,
    linear-gradient(225deg, rgba(0, 204, 255, 0.14), transparent 18px) top right / 42px 42px no-repeat,
    linear-gradient(315deg, rgba(0, 204, 255, 0.1), transparent 18px) bottom right / 42px 42px no-repeat,
    linear-gradient(45deg, rgba(0, 204, 255, 0.1), transparent 18px) bottom left / 42px 42px no-repeat,
    linear-gradient(180deg, rgba(8, 44, 93, 0.72), rgba(4, 10, 34, 0.88));
  border: 1px solid rgba(0, 194, 255, 0.38);
  box-shadow: inset 0 0 28px rgba(0, 174, 255, 0.16), 0 0 26px rgba(0, 102, 255, 0.16);
}

.boss-ultra-panel-head {
  min-height: 30px;
  margin: -2px -2px 8px;
  padding: 0 8px;
  background: linear-gradient(90deg, rgba(0, 174, 255, 0.52), rgba(0, 85, 180, 0.38), transparent);
  border-left: 4px solid #19d9ff;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

.boss-ultra-panel-head h3 {
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(0, 213, 255, 0.55);
}

.boss-ultra-panel-head span,
.boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span {
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #24f3ff, #006dff);
  color: #02122f;
  box-shadow: 0 0 14px rgba(0, 213, 255, 0.5);
}

.boss-ultra-kpi {
  min-height: 82px;
  border-radius: 4px;
  border-color: rgba(0, 194, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 213, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(8, 62, 123, 0.72), rgba(4, 18, 52, 0.9));
  box-shadow: inset 0 -3px 0 rgba(0, 213, 255, 0.34), inset 0 0 18px rgba(0, 174, 255, 0.16);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.boss-ultra-kpi strong {
  color: #eafcff;
  font-size: clamp(18px, 1.55vw, 28px);
  text-shadow: 0 0 10px rgba(0, 213, 255, 0.44);
}

.boss-ultra-kpi em,
.boss-ultra-mini em {
  color: #9deaff;
}

.boss-ultra-rank-row,
.boss-ultra-mini,
.boss-ultra-advice-list article,
.boss-ultra-todo-row {
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 82, 168, 0.38), rgba(5, 16, 50, 0.78));
  border-color: rgba(0, 194, 255, 0.24);
  box-shadow: inset 0 0 12px rgba(0, 174, 255, 0.09);
}

.boss-ultra-mini {
  min-height: 46px;
  padding: 7px;
}

.boss-ultra-mini strong {
  color: #fef36c;
  font-size: 14px;
}

.boss-ultra-rank-row em,
.boss-ultra-todo-row em,
.boss-ultra-rank-no {
  color: #22e7ff;
  text-shadow: 0 0 8px rgba(34, 231, 255, 0.36);
}

.boss-ultra-advice-list p {
  font-size: 11px;
  line-height: 1.38;
}

.boss-ultra-bg-orb {
  opacity: 0.22;
}

.boss-ultra-chart-row {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.82fr 0.82fr;
  gap: 8px;
  margin-top: 8px;
}

.boss-ultra-chart-card {
  min-width: 0;
  min-height: 104px;
  padding: 8px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(0, 213, 255, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(6, 35, 82, 0.72), rgba(3, 12, 38, 0.86));
  border: 1px solid rgba(0, 194, 255, 0.25);
  box-shadow: inset 0 0 18px rgba(0, 174, 255, 0.12);
}

.boss-ultra-chart-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #ffffff;
}

.boss-ultra-chart-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #06122f;
  background: radial-gradient(circle at 35% 30%, #24f3ff, #006dff);
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(0, 213, 255, 0.48);
}

.boss-ultra-chart-title strong {
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.boss-ultra-donut-wrap {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.boss-ultra-donut,
.boss-ultra-gauge {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.42), 0 0 18px rgba(0, 213, 255, 0.22);
}

.boss-ultra-donut {
  width: 74px;
  height: 74px;
}

.boss-ultra-donut::after,
.boss-ultra-gauge::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background: #07152f;
  border: 1px solid rgba(0, 194, 255, 0.24);
}

.boss-ultra-donut i,
.boss-ultra-gauge i {
  position: relative;
  z-index: 1;
  color: #fef36c;
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(254, 243, 108, 0.42);
}

.boss-ultra-chart-legend {
  display: grid;
  gap: 4px;
}

.boss-ultra-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(223, 247, 255, 0.84);
  font-size: 10px;
  white-space: nowrap;
}

.boss-ultra-chart-legend b {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
}

.boss-ultra-bar-list {
  display: grid;
  gap: 7px;
}

.boss-ultra-bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 78px;
  gap: 7px;
  align-items: center;
}

.boss-ultra-bar-row em {
  color: #9deaff;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.boss-ultra-bar-row i {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14, 45, 91, 0.86);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.36);
}

.boss-ultra-bar-row i b {
  display: block;
  height: 100%;
  min-width: 3%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #2563eb);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.boss-ultra-bar-row i b.boss-ultra-bar-good {
  background: linear-gradient(90deg, #24f3a7, #14b8a6);
}

.boss-ultra-bar-row i b.boss-ultra-bar-warn {
  background: linear-gradient(90deg, #ffb020, #f97316);
}

.boss-ultra-bar-row strong {
  color: #fef36c;
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.boss-ultra-gauge-card {
  display: grid;
  justify-items: center;
}

.boss-ultra-gauge {
  width: 72px;
  height: 72px;
}

.boss-ultra-gauge-card p {
  max-width: 100%;
  margin: 5px 0 0;
  overflow: hidden;
  color: rgba(223, 247, 255, 0.72);
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-cockpit {
  font-size: 12px;
}

.boss-ultra-header {
  min-height: 84px;
}

.boss-ultra-header h2 {
  font-size: clamp(30px, 2.8vw, 50px);
}

.boss-ultra-header p,
.boss-ultra-header-left > span,
.boss-ultra-note,
.boss-ultra-range button,
.boss-ultra-logout {
  font-size: 11px;
}

.boss-ultra-panel-head h3 {
  font-size: 16px;
}

.boss-ultra-panel-head em {
  font-size: 11px;
}

.boss-ultra-kpi {
  min-height: 74px;
  padding: 9px;
}

.boss-ultra-kpi strong {
  font-size: clamp(16px, 1.35vw, 24px);
}

.boss-ultra-mini {
  min-height: 42px;
}

.boss-ultra-mini strong,
.boss-ultra-rank-row strong,
.boss-ultra-todo-row strong {
  font-size: 12px;
}

.boss-ultra-todo-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.boss-ultra-todo-summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 3px;
  color: #fef36c;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(0, 82, 168, 0.44), rgba(5, 16, 50, 0.8));
  border: 1px solid rgba(0, 194, 255, 0.22);
}

.boss-ultra-todo-list {
  gap: 6px;
}

.boss-ultra-todo-row {
  min-height: 34px;
  padding: 6px 7px;
}

.boss-ultra-todo-row strong {
  display: grid;
  gap: 1px;
}

.boss-ultra-todo-row small {
  min-width: 0;
  overflow: hidden;
  color: rgba(180, 220, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-todo-row em {
  font-size: 10px;
}

.boss-force-workbench {
  display: none !important;
}

.boss-ultra-cockpit .boss-ultra-eyebrow {
  font-size: 10px !important;
  letter-spacing: 1.8px;
}

.boss-ultra-cockpit .boss-ultra-header h2 {
  font-size: clamp(22px, 2.1vw, 34px) !important;
  line-height: 1.05;
}

.boss-ultra-cockpit .boss-ultra-header p,
.boss-ultra-cockpit .boss-ultra-header-left > span,
.boss-ultra-cockpit .boss-ultra-note {
  font-size: 10px !important;
}

.boss-ultra-cockpit .boss-ultra-panel-head h3 {
  font-size: 13px !important;
  line-height: 1.1;
}

.boss-ultra-cockpit .boss-ultra-panel-head em {
  font-size: 10px !important;
}

.boss-ultra-cockpit .boss-ultra-chart-title strong {
  font-size: 11px !important;
}

.boss-ultra-cockpit .boss-ultra-kpi strong {
  font-size: clamp(14px, 1.15vw, 20px) !important;
}

.boss-ultra-cockpit .boss-ultra-kpi em,
.boss-ultra-cockpit .boss-ultra-mini em,
.boss-ultra-cockpit .boss-ultra-rank-row em,
.boss-ultra-cockpit .boss-ultra-todo-row em {
  font-size: 9px !important;
}

.boss-ultra-cockpit .boss-ultra-mini strong,
.boss-ultra-cockpit .boss-ultra-rank-row strong,
.boss-ultra-cockpit .boss-ultra-todo-row strong {
  font-size: 11px !important;
}

.boss-ultra-cockpit,
.boss-ultra-cockpit::before,
.boss-ultra-cockpit::after {
  border-radius: 18px !important;
}

.boss-ultra-cockpit::before,
.boss-ultra-cockpit::after,
.boss-ultra-title,
.boss-ultra-title::before,
.boss-ultra-title::after,
.boss-ultra-panel-head,
.boss-ultra-kpi {
  clip-path: none !important;
}

.boss-ultra-title {
  border-radius: 20px !important;
}

.boss-ultra-title::before {
  border-radius: 15px !important;
}

.boss-ultra-header,
.boss-ultra-panel {
  border-radius: 18px !important;
}

.boss-ultra-panel-head {
  border-radius: 14px !important;
}

.boss-ultra-kpi,
.boss-ultra-chart-card,
.boss-ultra-rank-row,
.boss-ultra-mini,
.boss-ultra-advice-list article,
.boss-ultra-todo-row,
.boss-ultra-empty,
.boss-ultra-todo-summary span {
  border-radius: 14px !important;
}

.boss-ultra-range,
.boss-ultra-range button,
.boss-ultra-logout,
.boss-ultra-rank-row i,
.boss-ultra-bar-row i {
  border-radius: 999px !important;
}

.boss-ultra-chart-legend b {
  border-radius: 999px !important;
}

.boss-ultra-grid > .boss-ultra-suggest {
  grid-row: 2;
}

.boss-ultra-suggest {
  grid-area: bottom;
  min-height: 0;
}

.boss-ultra-tenant {
  margin-right: calc(80% + 8px) !important;
}

.boss-ultra-report {
  margin-left: calc(20% + 2px) !important;
  margin-right: calc(60% + 6px) !important;
}

.boss-ultra-ai {
  margin-left: calc(40% + 4px) !important;
  margin-right: calc(40% + 4px) !important;
}

.boss-ultra-suggest {
  margin-left: calc(60% + 6px) !important;
  margin-right: calc(20% + 2px) !important;
}

.boss-ultra-todo {
  margin-left: calc(80% + 8px) !important;
}

.boss-ultra-work {
  display: grid;
  gap: 7px;
}

.boss-ultra-work-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.boss-ultra-work-stats span {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 32px;
  padding: 4px;
  border-radius: 12px;
  color: #fef36c;
  background: linear-gradient(180deg, rgba(0, 95, 190, 0.42), rgba(4, 14, 44, 0.84));
  border: 1px solid rgba(0, 194, 255, 0.22);
}

.boss-ultra-work-stats em {
  color: rgba(209, 237, 255, 0.78);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.boss-ultra-work-stats strong {
  color: #fef36c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1;
}

.boss-ultra-work-list {
  display: grid;
  gap: 5px;
}

.boss-ultra-work-row {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 14px;
  color: #eaf8ff;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 82, 168, 0.38), rgba(5, 16, 50, 0.78));
  border: 1px solid rgba(0, 194, 255, 0.24);
  box-shadow: inset 0 0 12px rgba(0, 174, 255, 0.09);
}

.boss-ultra-work-row > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #02122f;
  font-size: 10px;
  font-weight: 900;
  background: radial-gradient(circle at 35% 30%, #24f3ff, #006dff);
  box-shadow: 0 0 14px rgba(0, 213, 255, 0.5);
}

.boss-ultra-work-row strong {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  color: #f5fbff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-work-row small {
  min-width: 0;
  overflow: hidden;
  color: rgba(180, 220, 255, 0.68);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-work-row em {
  color: #22e7ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(34, 231, 255, 0.36);
}

.boss-ultra-work-link {
  min-height: 28px;
  border-radius: 999px;
  color: #dff7ff;
  font-size: 11px;
  font-weight: 900;
  background: rgba(12, 37, 78, 0.84);
  border: 1px solid rgba(111, 219, 255, 0.18);
}

.boss-ultra-cockpit::before,
.boss-ultra-cockpit::after,
.boss-ultra-title::before,
.boss-ultra-title::after {
  display: none !important;
}

.boss-ultra-title {
  min-height: 64px !important;
  padding: 0 28px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.boss-ultra-overview {
  overflow: visible !important;
}

.boss-ultra-overview .boss-ultra-chart-row {
  align-items: stretch;
  gap: 6px !important;
  margin-top: 6px !important;
}

.boss-ultra-overview .boss-ultra-chart-card {
  min-height: 82px !important;
  padding: 6px !important;
}

.boss-ultra-overview .boss-ultra-chart-title {
  min-height: 18px;
  margin-bottom: 3px !important;
}

.boss-ultra-overview .boss-ultra-chart-title span {
  width: 16px !important;
  height: 16px !important;
  font-size: 9px !important;
}

.boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 6px !important;
}

.boss-ultra-overview .boss-ultra-donut,
.boss-ultra-overview .boss-ultra-gauge {
  width: 58px !important;
  height: 58px !important;
}

.boss-ultra-overview .boss-ultra-donut::after,
.boss-ultra-overview .boss-ultra-gauge::after {
  inset: 11px !important;
}

.boss-ultra-overview .boss-ultra-donut i,
.boss-ultra-overview .boss-ultra-gauge i {
  font-size: 11px !important;
}

.boss-ultra-overview .boss-ultra-gauge-card {
  align-content: start;
  gap: 2px;
  overflow: visible !important;
}

.boss-ultra-overview .boss-ultra-gauge-card p {
  margin-top: 2px !important;
  font-size: 9px !important;
  line-height: 1.1;
}

.boss-ultra-overview .boss-ultra-bar-list {
  gap: 4px !important;
}

.boss-ultra-overview .boss-ultra-bar-row {
  grid-template-columns: 28px minmax(0, 1fr) 64px !important;
  gap: 5px !important;
}

.boss-ultra-overview .boss-ultra-bar-row i {
  height: 8px !important;
}

@media (max-width: 1280px) {
  .boss-ultra-tenant,
  .boss-ultra-report,
  .boss-ultra-ai,
  .boss-ultra-suggest,
  .boss-ultra-todo {
    margin: 0 !important;
  }
}

@media (max-width: 1280px) {
  .boss-ultra-chart-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .boss-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .boss-compare-grid {
    grid-template-columns: 1fr;
  }

  .boss-todo-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.boss-extended-list {
  display: grid;
  gap: 12px;
}

.boss-extended-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-extended-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.boss-extended-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 88, 182, 0.95), rgba(84, 215, 255, 0.82));
  color: #f6fbff;
  font-size: 12px;
  font-weight: 800;
}

.boss-extended-main strong {
  display: block;
  color: #f4f9ff;
  font-size: 14px;
}

.boss-extended-main p {
  margin: 6px 0 0;
  color: rgba(198, 225, 255, 0.74);
  font-size: 12px;
}

.boss-extended-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.boss-extended-value {
  color: #7cefff;
  font-size: 12px;
  font-weight: 700;
}

.boss-drawer-summary {
  display: grid;
  gap: 12px;
}

.boss-drawer-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boss-drawer-summary-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-drawer-summary-card span {
  color: rgba(164, 208, 255, 0.74);
  font-size: 11px;
}

.boss-drawer-summary-card strong {
  color: #f4f9ff;
  font-size: 14px;
  line-height: 1.5;
}

.boss-drawer-summary-card-accent {
  box-shadow: inset 0 0 0 1px rgba(116, 235, 255, 0.12);
}

.boss-drawer-summary-card-warn {
  border-color: rgba(255, 179, 92, 0.34);
  background: linear-gradient(180deg, rgba(54, 30, 8, 0.82), rgba(41, 18, 4, 0.94));
}

.boss-drawer-advice {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 22, 52, 0.88), rgba(6, 18, 42, 0.82));
  border: 1px solid rgba(71, 153, 255, 0.24);
}

.boss-drawer-advice strong {
  display: block;
  color: #f4f9ff;
  font-size: 13px;
}

.boss-drawer-advice p {
  margin: 8px 0 0;
  color: rgba(198, 225, 255, 0.78);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .boss-extended-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .boss-drawer-summary-grid {
    grid-template-columns: 1fr;
  }
}

.boss-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.boss-drawer-tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-drawer-tab-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 205, 255, 0.18);
  background: rgba(5, 18, 44, 0.62);
  color: #dff6ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.boss-drawer-tab-btn.active {
  border-color: rgba(117, 231, 255, 0.46);
  background: linear-gradient(135deg, rgba(8, 38, 94, 0.98), rgba(0, 132, 255, 0.88));
  box-shadow: 0 0 0 1px rgba(117, 231, 255, 0.18), 0 10px 24px rgba(7, 35, 91, 0.24);
}

.boss-drawer-tab-panels {
  display: grid;
}

.boss-drawer-tab-panel {
  display: none;
}

.boss-drawer-tab-panel.active {
  display: block;
}

.boss-drawer-mini-list,
.boss-drawer-advice-list {
  display: grid;
  gap: 12px;
}

.boss-drawer-mini-item,
.boss-drawer-advice-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-drawer-mini-item strong {
  display: block;
  color: #f4f9ff;
  font-size: 14px;
}

.boss-drawer-mini-item p {
  margin: 8px 0 0;
  color: rgba(198, 225, 255, 0.74);
  font-size: 12px;
}

.boss-drawer-mini-item span {
  color: #7cefff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.boss-drawer-advice-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18, 88, 182, 0.95), rgba(84, 215, 255, 0.82));
  color: #f6fbff;
  font-size: 11px;
  font-weight: 800;
}

.boss-drawer-advice-item p {
  margin: 0;
  color: rgba(198, 225, 255, 0.84);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 1280px) {
  .boss-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .boss-drawer-mini-item,
  .boss-drawer-advice-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.boss-digest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.boss-digest-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(7, 28, 69, 0.92), rgba(4, 17, 41, 0.98));
  border: 1px solid rgba(73, 162, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(127, 223, 255, 0.05),
    0 18px 40px rgba(2, 10, 28, 0.24);
}

.boss-digest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boss-digest-head span {
  color: #f4f9ff;
  font-size: 14px;
  font-weight: 700;
}

.boss-digest-head em {
  color: #7cefff;
  font-size: 11px;
  font-style: normal;
}

.boss-digest-card strong {
  color: #f4f9ff;
  font-size: 20px;
  line-height: 1.5;
}

.boss-digest-card p {
  margin: 0;
  color: rgba(198, 225, 255, 0.78);
  font-size: 12px;
  line-height: 1.8;
}

.boss-digest-actions {
  display: flex;
  justify-content: flex-start;
}

.boss-tenant-focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.boss-tenant-focus-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.boss-tenant-focus-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-tenant-focus-note strong {
  display: block;
  color: #f4f9ff;
  font-size: 14px;
}

.boss-tenant-focus-note p {
  margin: 8px 0 0;
  color: rgba(198, 225, 255, 0.78);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 1280px) {
  .boss-digest-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .boss-digest-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .boss-tenant-focus-grid,
  .boss-tenant-focus-summary {
    grid-template-columns: 1fr;
  }
}

.boss-strategy-grid,
.boss-tenant-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.boss-strategy-card,
.boss-tenant-topic-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.78), rgba(4, 17, 41, 0.9));
  border: 1px solid rgba(73, 162, 255, 0.16);
}

.boss-strategy-card-accents,
.boss-strategy-card-accent {
  box-shadow: inset 0 0 0 1px rgba(116, 235, 255, 0.12);
}

.boss-strategy-card-warn {
  border-color: rgba(255, 179, 92, 0.34);
  background: linear-gradient(180deg, rgba(54, 30, 8, 0.82), rgba(41, 18, 4, 0.94));
}

.boss-strategy-card strong,
.boss-tenant-topic-card strong {
  color: #f4f9ff;
  font-size: 18px;
  line-height: 1.4;
}

.boss-strategy-card span,
.boss-tenant-topic-card span {
  color: rgba(164, 208, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.boss-strategy-card p,
.boss-tenant-topic-card p {
  margin: 0;
  color: rgba(198, 225, 255, 0.8);
  font-size: 12px;
  line-height: 1.8;
}

.boss-strategy-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 1280px) {
  .boss-strategy-grid,
  .boss-tenant-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .boss-strategy-grid,
  .boss-tenant-topic-grid {
    grid-template-columns: 1fr;
  }
}

/* Boss dashboard stat cards: compact mode */
.boss-cockpit-stat-grid {
  gap: 12px;
}

.boss-stat-card {
  padding: 14px 16px;
  border-radius: 18px;
  min-height: 0;
}

.boss-stat-card span {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.boss-stat-card p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.boss-stat-card .boss-detail-btn {
  min-height: 30px;
  padding: 0 12px;
  margin-top: 10px;
  font-size: 11px;
  box-shadow: none;
}

.boss-digit-wrap,
.boss-digit-wrap.boss-digit-wrap-compact {
  gap: 2px;
  margin-top: 8px;
  align-items: baseline;
}

.boss-digit-cell,
.boss-digit-sep {
  min-width: 0;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ecf8ff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.boss-digit-sep {
  color: #9edfff;
  font-size: 18px;
}

.boss-digit-wrap em {
  margin-left: 4px;
  color: #9edfff;
  font-size: 11px;
  font-weight: 700;
}

.boss-cockpit-main-grid-merged {
  grid-template-columns: 1fr 1fr;
}

.boss-feed-merged-side {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(73, 162, 255, 0.12);
}

.boss-feed-merged-head {
  margin-bottom: 0;
}

.boss-feed-merged-head h4 {
  font-size: 18px;
}

.boss-feed-merged-actions .boss-sub-head {
  margin-top: 0;
}

.boss-feed-merged-side .boss-side-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.boss-feed-merged-side .boss-bottom-action-row {
  gap: 10px;
}

.boss-cockpit-bottom-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .boss-cockpit-main-grid-merged {
    grid-template-columns: 1fr;
  }

  .boss-cockpit-bottom-grid-compact {
    grid-template-columns: 1fr;
  }

  .boss-feed-merged-side .boss-side-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .boss-feed-merged-side .boss-side-kpis {
    grid-template-columns: 1fr;
  }
}

/* Boss dashboard: final structure polish */
.boss-dashboard-workspace-flat {
  grid-template-columns: 1fr;
}

.boss-dashboard-workspace-flat .boss-dashboard-main {
  width: 100%;
}

.boss-dashboard-workspace-flat .boss-cockpit-shell {
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
}

.boss-dashboard-optimized .boss-cockpit-hero {
  padding: 16px 18px 18px;
  border-radius: 20px;
}

.boss-dashboard-optimized .boss-cockpit-hero-top {
  margin-bottom: 12px;
}

.boss-dashboard-optimized .boss-cockpit-city,
.boss-dashboard-optimized .boss-cockpit-time,
.boss-dashboard-optimized .boss-filter-chip,
.boss-dashboard-optimized .boss-detail-btn,
.boss-dashboard-optimized .boss-logout-btn {
  min-height: 30px;
  font-size: 11px;
}

.boss-dashboard-optimized .boss-cockpit-title-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.boss-dashboard-optimized .boss-cockpit-title-copy h3 {
  font-size: 30px;
  line-height: 1.1;
}

.boss-dashboard-optimized .boss-cockpit-title-copy p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
}

.boss-dashboard-optimized .boss-cockpit-signals {
  gap: 8px;
}

.boss-dashboard-optimized .boss-filter-row {
  gap: 8px;
  margin-top: 14px;
}

.boss-dashboard-optimized .boss-tenant-strip {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
}

.boss-dashboard-optimized .boss-tenant-strip-head {
  margin-bottom: 10px;
}

.boss-dashboard-optimized .boss-tenant-strip-head strong {
  font-size: 14px;
}

.boss-dashboard-optimized .boss-tenant-chip {
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 14px;
}

.boss-dashboard-optimized .boss-tenant-chip span {
  font-size: 12px;
}

.boss-dashboard-optimized .boss-tenant-chip em {
  font-size: 11px;
}

.boss-dashboard-optimized .boss-tenant-quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.boss-dashboard-optimized .boss-cockpit-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.boss-dashboard-optimized .boss-cockpit-main-grid-merged {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
}

.boss-dashboard-optimized .boss-panel,
.boss-dashboard-optimized .boss-inline-detail {
  padding: 16px;
  border-radius: 18px;
}

.boss-dashboard-optimized .boss-panel-head {
  margin-bottom: 10px;
}

.boss-dashboard-optimized .boss-panel-head h4 {
  font-size: 17px;
}

.boss-dashboard-optimized .boss-panel-head p {
  font-size: 11px;
  line-height: 1.55;
}

.boss-dashboard-optimized .boss-feed-list,
.boss-dashboard-optimized .boss-rank-list,
.boss-dashboard-optimized .boss-drawer-tab-panels {
  gap: 10px;
}

.boss-dashboard-optimized .boss-feed-item,
.boss-dashboard-optimized .boss-rank-item,
.boss-dashboard-optimized .boss-drawer-card {
  border-radius: 16px;
}

.boss-dashboard-optimized .boss-feed-grid,
.boss-dashboard-optimized .boss-side-kpis,
.boss-dashboard-optimized .boss-feed-merged-side .boss-side-kpis {
  gap: 8px;
}

.boss-dashboard-optimized .boss-inline-detail {
  margin-top: 14px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-drawer-tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-drawer-tab-btn {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-drawer-card {
  padding: 14px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-drawer-head h4 {
  font-size: 16px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-detail-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-detail-cell {
  padding: 8px 10px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-detail-cell span {
  font-size: 10px;
}

.boss-dashboard-optimized .boss-inline-detail .boss-detail-cell strong {
  font-size: 12px;
}

.boss-cockpit-bottom-grid-single {
  grid-template-columns: 1fr;
}

.boss-cockpit-bottom-grid-single .boss-panel {
  max-width: none;
}

@media (max-width: 1280px) {
  .boss-dashboard-optimized .boss-cockpit-title-row {
    grid-template-columns: 1fr;
  }

  .boss-dashboard-optimized .boss-cockpit-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-dashboard-optimized .boss-cockpit-main-grid-merged {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .boss-dashboard-workspace-flat .boss-cockpit-shell {
    padding: 12px;
  }

  .boss-dashboard-optimized .boss-cockpit-hero {
    padding: 14px;
  }

  .boss-dashboard-optimized .boss-cockpit-stat-grid,
  .boss-dashboard-optimized .boss-tenant-quick-grid {
    grid-template-columns: 1fr;
  }

  .boss-dashboard-optimized .boss-tenant-switch-list,
  .boss-dashboard-optimized .boss-tenant-action-row,
  .boss-dashboard-optimized .boss-bottom-action-row,
  .boss-dashboard-optimized .boss-inline-detail .boss-drawer-tab-row {
    gap: 6px;
  }
}

.boss-dashboard-topflow .boss-cockpit-shell {
  gap: 10px;
}

.boss-dashboard-topflow .boss-cockpit-hero {
  padding: 12px 14px 12px;
}

.boss-dashboard-topflow .boss-cockpit-title-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.65fr);
  align-items: center;
  gap: 10px;
}

.boss-dashboard-topflow .boss-cockpit-title-copy h3 {
  font-size: 18px;
  line-height: 1.2;
}

.boss-dashboard-topflow .boss-cockpit-title-copy p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.55;
}

.boss-dashboard-topflow .boss-cockpit-hero-top {
  margin-bottom: 8px;
}

.boss-dashboard-topflow .boss-cockpit-city,
.boss-dashboard-topflow .boss-cockpit-time,
.boss-dashboard-topflow .boss-logout-btn {
  min-height: 26px;
  font-size: 10px;
}

.boss-dashboard-topflow .boss-cockpit-signals .boss-info-cell {
  padding: 8px 10px;
  min-height: 0;
  border-radius: 14px;
}

.boss-dashboard-topflow .boss-cockpit-signals .boss-info-cell strong {
  font-size: 10px;
}

.boss-dashboard-topflow .boss-cockpit-signals .boss-info-cell span {
  font-size: 16px;
}

.boss-hero-ranking {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 34, 82, 0.82), rgba(7, 24, 58, 0.88));
  border: 1px solid rgba(73, 162, 255, 0.18);
}

.boss-hero-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-hero-ranking-head strong {
  color: #eef7ff;
  font-size: 12px;
}

.boss-hero-ranking-head span {
  color: rgba(182, 216, 255, 0.72);
  font-size: 10px;
}

.boss-hero-ranking-list {
  display: grid;
  gap: 6px;
}

.boss-hero-ranking-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(9, 28, 67, 0.68);
  border: 1px solid rgba(73, 162, 255, 0.12);
}

.boss-hero-ranking-no {
  color: #7fd8ff;
  font-size: 11px;
  font-weight: 700;
}

.boss-hero-ranking-item strong {
  color: #f4f9ff;
  font-size: 11px;
  line-height: 1.4;
}

.boss-hero-ranking-item em {
  color: #9fe8ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.boss-cockpit-stat-grid-mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.boss-cockpit-stat-grid-mini .boss-stat-card {
  padding: 10px 12px;
  border-radius: 14px;
}

.boss-cockpit-stat-grid-mini .boss-stat-card span {
  font-size: 10px;
}

.boss-cockpit-stat-grid-mini .boss-digit-wrap,
.boss-cockpit-stat-grid-mini .boss-digit-wrap.boss-digit-wrap-compact {
  margin-top: 5px;
}

.boss-cockpit-stat-grid-mini .boss-digit-cell,
.boss-cockpit-stat-grid-mini .boss-digit-sep {
  font-size: 15px;
}

.boss-cockpit-stat-grid-mini .boss-digit-wrap em {
  font-size: 10px;
}

.boss-cockpit-stat-grid-mini .boss-stat-card p {
  margin-top: 4px;
  font-size: 10px;
}

.boss-cockpit-stat-grid-mini .boss-detail-btn {
  min-height: 26px;
  margin-top: 6px;
  padding: 0 10px;
  font-size: 10px;
}

.boss-group-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.boss-group-overview-grid .boss-info-cell {
  gap: 4px;
  min-height: 0;
  padding: 10px 12px;
}

.boss-group-overview-grid .boss-info-cell span {
  font-size: 10px;
}

.boss-group-overview-grid .boss-info-cell strong {
  font-size: 15px;
  line-height: 1.35;
}

.boss-owner-workbench {
  margin-top: 14px;
}

.boss-owner-workbench-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.boss-owner-workbench-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(73, 162, 255, 0.18);
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.84), rgba(6, 20, 48, 0.92));
  color: #eef7ff;
  text-align: left;
  cursor: pointer;
}

.boss-owner-workbench-card span {
  font-size: 12px;
  color: #9edfff;
}

.boss-owner-workbench-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.boss-owner-workbench-card em {
  color: rgba(196, 224, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

.boss-owner-workbench-card.active {
  border-color: rgba(117, 231, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(117, 231, 255, 0.16);
}

.boss-workbench-detail {
  width: 100%;
}

.boss-workbench-home,
.boss-workbench-board {
  width: 100%;
}

.boss-owner-workbench-grid-home {
  margin-top: 2px;
}

.boss-workbench-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.boss-workbench-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.boss-workbench-stat-grid .boss-info-cell {
  padding: 8px 10px;
  gap: 4px;
  min-height: 0;
}

.boss-workbench-stat-grid .boss-info-cell span {
  font-size: 10px;
}

.boss-workbench-stat-grid .boss-info-cell strong {
  font-size: 14px;
  line-height: 1.25;
}

.boss-workbench-list {
  display: grid;
  gap: 10px;
}

.boss-workbench-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.boss-workbench-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 28, 69, 0.72);
  border: 1px solid rgba(73, 162, 255, 0.14);
}

.boss-workbench-row strong {
  color: #f3f8ff;
  font-size: 13px;
}

.boss-workbench-row span {
  color: rgba(196, 224, 255, 0.76);
  font-size: 12px;
}

.boss-workbench-rank-row strong {
  font-size: 12px;
}

.boss-top-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

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

.boss-top-four-grid > .boss-panel {
  min-width: 0;
  margin-top: 0;
}

.boss-inline-tenant-switch-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.boss-inline-tenant-switch-list .boss-tenant-chip {
  min-width: 132px;
  flex: 1 1 132px;
}

.boss-top-four-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boss-top-four-grid .boss-top-focus-feed .boss-feed-list,
.boss-top-four-grid .boss-top-focus-advice .boss-ai-list,
.boss-top-four-grid .boss-panel-rank .boss-rank-list {
  display: grid;
  gap: 8px;
}

.boss-top-four-grid .boss-feed-item-focus .boss-feed-grid-focus {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boss-top-four-grid .boss-top-focus-panel {
  padding: 14px;
}

.boss-focus-tenant-bar {
  margin-bottom: 14px;
}

.boss-focus-tenant-head {
  margin-bottom: 10px;
}

.boss-focus-tenant-switches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.boss-focus-tenant-btn {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(92, 205, 255, 0.18);
  background: linear-gradient(135deg, rgba(7, 27, 67, 0.84), rgba(8, 38, 92, 0.72));
  color: #eef7ff;
  text-align: left;
  cursor: pointer;
}

.boss-focus-tenant-btn strong {
  font-size: 12px;
}

.boss-focus-tenant-btn span {
  color: #8fe8ff;
  font-size: 10px;
}

.boss-focus-tenant-btn.active {
  border-color: rgba(117, 231, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(117, 231, 255, 0.16);
}

.boss-top-focus-panel {
  min-height: 100%;
}

.boss-top-focus-feed .boss-feed-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.boss-feed-item-focus {
  display: grid;
  gap: 12px;
}

.boss-feed-item-focus .boss-feed-grid-focus {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.boss-top-focus-advice .boss-ai-list,
.boss-top-focus-advice .boss-risk-list,
.boss-top-focus-advice .boss-reminder-list {
  gap: 10px;
}

.boss-cockpit-main-grid-single {
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .boss-top-four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-dashboard-topflow .boss-cockpit-title-row,
  .boss-top-focus-grid,
  .boss-cockpit-stat-grid-mini {
    grid-template-columns: 1fr;
  }

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

  .boss-owner-workbench-grid,
  .boss-workbench-stat-grid,
  .boss-workbench-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-feed-item-focus .boss-feed-grid-focus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .boss-top-four-grid {
    grid-template-columns: 1fr;
  }
}

.boss-dashboard-optimized .boss-top-focus-feed .boss-feed-list {
  gap: 8px;
}

.boss-dashboard-optimized .boss-feed-item,
.boss-dashboard-optimized .boss-feed-item-focus {
  padding: 12px 14px;
  border-radius: 18px;
}

.boss-dashboard-optimized .boss-feed-grid-focus {
  gap: 8px;
}

.boss-dashboard-optimized .boss-feed-grid-focus .boss-info-cell {
  min-height: auto;
  padding: 10px 12px;
}

.boss-drawer-card-compact {
  padding: 16px 18px;
}

.boss-drawer-head-compact {
  margin-bottom: 14px;
}

.boss-report-days {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.boss-report-list {
  display: grid;
  gap: 10px;
}

.boss-report-detail-page {
  margin-top: 0;
}

.boss-report-row {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(8, 30, 68, 0.42);
}

.boss-report-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.boss-report-row-head strong {
  font-size: 16px;
}

.boss-report-row-head span {
  color: rgba(191, 219, 254, 0.84);
  font-size: 13px;
}

.boss-report-row-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.boss-report-cell {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(9, 24, 56, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.boss-report-cell span {
  font-size: 12px;
  color: rgba(191, 219, 254, 0.78);
}

.boss-report-cell strong {
  font-size: 18px;
  color: #f8fbff;
}

.boss-overview-rank-merge {
  margin-top: 10px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(73, 162, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 28, 69, 0.68), rgba(6, 20, 48, 0.78));
}

.boss-overview-rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.boss-overview-rank-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.boss-overview-rank-panel .boss-panel-head {
  margin-bottom: 0;
}

.boss-overview-rank-panel:first-child {
  min-width: 0;
}

.boss-overview-rank-panel:first-child .boss-group-overview-grid .boss-info-cell {
  min-height: 108px;
}

.boss-overview-rank-panel:last-child .boss-hero-ranking-list {
  align-content: start;
}

.boss-panel > .boss-overview-rank-grid {
  margin-top: 10px;
}

.boss-panel > .boss-overview-rank-grid .boss-rank-list {
  display: grid;
  gap: 8px;
}

@media (max-width: 960px) {
  .boss-report-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-overview-rank-grid {
    grid-template-columns: 1fr;
  }

  .boss-top-four-overview-grid,
  .boss-top-four-grid .boss-feed-item-focus .boss-feed-grid-focus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .boss-report-row-grid {
    grid-template-columns: 1fr;
  }
}

.boss-floating-logout-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(18, 71, 160, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1247a0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.boss-floating-logout-btn:hover {
  background: #f8fbff;
}

@media (max-width: 640px) {
  .boss-floating-logout-btn {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding: 0 14px;
  }
}

.shell.boss-shell .main-panel {
  padding: 8px;
}

/* 20260715 pageFineTune72: boss cockpit must occupy the full canvas after the sidebar is hidden. */
.shell.boss-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

.shell.boss-shell .main-panel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.shell.boss-shell #bossDashboard {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.shell.boss-shell .boss-ultra-cockpit {
  overflow: hidden !important;
}

#bossDashboard.active {
  display: grid;
  gap: 14px;
  align-content: start;
}

.boss-panel {
  padding: 16px;
  border-radius: 20px;
}

.boss-panel-head {
  gap: 10px;
  margin-bottom: 12px;
}

.boss-overview-rank-grid {
  gap: 12px;
}

.boss-overview-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-overview-current {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 28, 69, 0.78);
  border: 1px solid rgba(91, 199, 255, 0.18);
  color: #dff3ff;
  font-size: 12px;
  font-weight: 600;
}

.boss-inline-logout-btn {
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(109, 149, 219, 0.28);
  color: #163f86;
  box-shadow: 0 8px 18px rgba(8, 15, 30, 0.12);
}

.boss-inline-logout-btn:hover {
  background: #ffffff;
}

@media (max-width: 960px) {
  .boss-overview-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.boss-overview-head-actions {
  justify-content: space-between;
}

.boss-overview-range-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.boss-overview-current {
  display: none;
}

@media (max-width: 960px) {
  .boss-overview-head-actions {
    justify-content: space-between;
  }
}

.boss-overview-head-actions {
  padding-top: 2px;
}

.boss-overview-range-switch {
  padding: 4px;
  border-radius: 999px;
  background: rgba(6, 18, 42, 0.72);
  border: 1px solid rgba(92, 205, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(117, 231, 255, 0.04);
}

.boss-overview-range-switch .boss-filter-chip {
  min-height: 30px;
  padding: 0 12px;
  border-color: transparent;
  background: transparent;
  color: rgba(223, 246, 255, 0.78);
  box-shadow: none;
}

.boss-overview-range-switch .boss-filter-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f4fbff;
}

.boss-overview-range-switch .boss-filter-chip.active {
  border-color: rgba(117, 231, 255, 0.24);
  background: linear-gradient(135deg, rgba(9, 48, 116, 0.96), rgba(21, 112, 214, 0.88));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 35, 91, 0.22);
}

.boss-inline-logout-btn {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 640px) {
  .boss-overview-head-actions {
    align-items: stretch;
    gap: 8px;
  }

  .boss-overview-range-switch {
    width: 100%;
    justify-content: space-between;
  }

  .boss-overview-range-switch .boss-filter-chip {
    flex: 1 1 0;
    justify-content: center;
  }

  .boss-inline-logout-btn {
    align-self: flex-end;
  }
}

.boss-overview-head-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.boss-overview-title-block {
  display: grid;
  gap: 10px;
}

.boss-overview-title-block p {
  margin-top: 0;
}

.boss-overview-actions-block {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 320px;
}

.boss-overview-range-switch {
  width: 100%;
  justify-content: flex-start;
}

.boss-overview-range-switch .boss-filter-chip {
  min-width: 84px;
}

.boss-inline-logout-btn {
  min-width: 112px;
}

@media (max-width: 960px) {
  .boss-overview-head-layout {
    grid-template-columns: 1fr;
  }

  .boss-overview-actions-block {
    min-width: 0;
    width: 100%;
    justify-items: start;
  }
}

#bossDashboard > .boss-panel > .boss-panel-head .boss-overview-head-actions {
  display: none !important;
}

.boss-overview-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 14px;
}

.boss-overview-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-overview-toolbar-left .boss-filter-chip {
  min-width: 92px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(92, 205, 255, 0.18);
  background: rgba(5, 18, 44, 0.62);
  color: #dff6ff;
  box-shadow: none;
}

.boss-overview-toolbar-left .boss-filter-chip.active {
  border-color: rgba(117, 231, 255, 0.34);
  background: linear-gradient(135deg, rgba(9, 48, 116, 0.96), rgba(21, 112, 214, 0.88));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 35, 91, 0.22);
}

.boss-overview-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.boss-overview-toolbar-right .boss-inline-logout-btn {
  min-width: 116px;
}

@media (max-width: 960px) {
  .boss-overview-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .boss-overview-toolbar-left {
    width: 100%;
  }

  .boss-overview-toolbar-right {
    justify-content: flex-start;
  }
}

.boss-overview-toolbar-row-hard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.boss-overview-toolbar-left-hard {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-overview-toolbar-left-hard .boss-filter-chip {
  min-width: 92px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(92, 205, 255, 0.18);
  background: rgba(5, 18, 44, 0.62);
  color: #dff6ff;
  box-shadow: none;
}

.boss-overview-toolbar-left-hard .boss-filter-chip.active {
  border-color: rgba(117, 231, 255, 0.34);
  background: linear-gradient(135deg, rgba(9, 48, 116, 0.96), rgba(21, 112, 214, 0.88));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 35, 91, 0.22);
}

.boss-overview-toolbar-right-hard {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.boss-overview-toolbar-right-hard .boss-inline-logout-btn {
  min-width: 116px;
}

@media (max-width: 960px) {
  .boss-overview-toolbar-row-hard {
    flex-direction: column;
    align-items: stretch;
  }

  .boss-overview-toolbar-left-hard {
    width: 100%;
  }

  .boss-overview-toolbar-right-hard {
    justify-content: flex-start;
  }
}

.boss-overview-toolbar-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.boss-overview-toolbar-left-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.boss-overview-toolbar-left-inline .boss-filter-chip {
  min-width: 92px;
  min-height: 34px;
  padding: 0 16px;
}

.boss-overview-toolbar-right-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.boss-overview-toolbar-right-inline .boss-inline-logout-btn {
  min-width: 116px;
}

.employee-directory-table-wrap {
  overflow-x: auto;
}

.employee-directory-editor-card {
  margin-top: 14px;
  padding: 14px 16px;
}

.employee-directory-editor-list {
  display: grid;
  gap: 10px;
}

.employee-directory-editor-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 39, 31, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.employee-directory-editor-row .full-span {
  grid-column: 1 / -2;
}

.employee-directory-editor-row [data-directory-remove-row] {
  align-self: end;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.employee-directory-editor-card .section-head {
  margin-bottom: 10px;
}

.employee-directory-editor-card .section-head h4 {
  margin-bottom: 2px;
}

.employee-directory-editor-card .section-head .profile-inline-meta {
  font-size: 12px;
}

.employee-directory-editor-row label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.employee-directory-editor-row input,
.employee-directory-editor-row textarea {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.employee-directory-editor-row textarea {
  min-height: 56px;
  resize: vertical;
}

.employee-directory-editor-card .primary-btn,
.employee-directory-editor-card button[type="submit"] {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap;
  width: auto;
  min-width: 132px;
  align-self: center;
}

.employee-directory-editor-card .section-head > div:last-child,
.employee-directory-editor-card .section-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-directory-editor-card .primary-btn + .primary-btn,
.employee-directory-editor-card .ghost-btn + .primary-btn {
  margin-left: 0;
}

@media (max-width: 960px) {
  .boss-overview-toolbar-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .boss-overview-toolbar-left-inline {
    width: 100%;
  }

  .boss-overview-toolbar-right-inline {
    justify-content: flex-start;
  }

  .employee-directory-editor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-directory-editor-row .full-span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .employee-directory-editor-row {
    grid-template-columns: 1fr;
  }
}

.group-account-manage-page {
  display: grid;
  gap: 14px;
}

.group-account-manage-page > .stack {
  gap: 14px;
}

.group-account-section {
  padding: 0;
  overflow: hidden;
}

.group-account-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
}

.group-account-summary::-webkit-details-marker {
  display: none;
}

.group-account-summary h4 {
  margin: 0 0 4px;
}

.group-account-summary .profile-inline-meta {
  font-size: 12px;
  line-height: 1.55;
}

.group-account-body {
  padding: 0 18px 18px;
}

.group-account-body.group-account-body-single {
  padding-top: 0;
}

.group-account-body .panel-card,
.group-account-body .form-card {
  padding: 14px 16px;
}

.group-account-form form {
  display: grid;
  gap: 10px;
}

.group-account-form h4 {
  margin-bottom: 10px;
}

.group-account-manage-page .table th,
.group-account-manage-page .table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 960px) {
  .group-account-body.two-column {
    grid-template-columns: 1fr;
  }
}

.super-admin-account-center-shell {
  grid-template-columns: 280px 1fr;
}

.super-admin-account-center-shell .sidebar {
  padding: 20px;
}

.super-admin-account-center-shell .main-panel {
  padding: 20px 22px 40px;
}

.super-admin-account-center-shell .sidebar-tools {
  margin-top: 0;
  padding: 16px;
}

.super-admin-account-center-shell .topbar {
  padding: 18px 22px;
}

.super-admin-account-center-shell .topbar h2 {
  font-size: 28px;
}

.super-admin-account-center-shell .topbar .muted {
  max-width: 620px;
}

.super-admin-account-center-shell .group-account-manage-page > .stack > .panel-card:first-child {
  padding: 14px 18px;
}

.super-admin-account-center-shell .group-account-body .panel-card,
.super-admin-account-center-shell .group-account-body .form-card {
  padding: 12px 14px;
}

.super-admin-account-center-shell .group-account-form form {
  gap: 8px;
}

.super-admin-account-center-shell .group-account-summary {
  padding: 14px 16px;
}

.group-account-form-tight {
  align-self: start;
}

.topbar {
  align-items: center;
  min-height: 86px;
  padding: 14px 18px;
  gap: 18px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 118, 110, 0.13), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 244, 0.9));
  box-shadow: 0 18px 44px rgba(20, 35, 31, 0.08);
}

.topbar .eyebrow {
  margin: 0 0 5px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
}

.topbar .muted {
  display: none !important;
}

.topbar-actions {
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: none;
}

.topbar .ghost-btn,
.topbar .primary-btn,
#globalUnifiedLogoutBtn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(20, 35, 31, 0.1);
  box-shadow: 0 10px 22px rgba(20, 35, 31, 0.07);
}

.topbar .account-indicator {
  max-width: 360px;
  color: #0f3f3b;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(15, 118, 110, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  cursor: default;
}

.topbar #logoutBtn,
.topbar #globalUnifiedLogoutBtn {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.topbar #newTenantBtn {
  color: #0f5e59;
  background: rgba(214, 242, 235, 0.72);
  border-color: rgba(15, 118, 110, 0.18);
}

.boss-floating-logout-btn {
  display: none !important;
}

@media (max-width: 960px) {
  .topbar {
    align-items: flex-start;
    min-height: auto;
    padding: 14px;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .topbar .account-indicator {
    max-width: 100%;
  }
}

.group-account-form-tight h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

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

.group-account-form-grid label {
  gap: 5px;
  font-size: 12px;
}

.group-account-form-grid label:has(select[name="employeeId"]),
.group-account-form-grid label:has(input[name="department"]),
.group-account-form-grid label:has(input[name="position"]) {
  grid-column: span 2;
}

.group-account-form-grid input,
.group-account-form-grid select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.group-account-form-grid .primary-btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 15px;
  grid-column: span 2;
}

.tenant-admin-main-panel {
  padding-top: 18px;
}

.employee-directory-readonly-panel {
  padding: 16px 18px;
}

.employee-directory-readonly-panel .table td,
.employee-directory-readonly-panel .table th {
  white-space: nowrap;
}

.employee-directory-readonly-panel .action-cell {
  min-width: 112px;
}

.employee-request-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 39, 34, 0.1);
}

.employee-request-panel .table {
  margin-top: 8px;
}

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

.tenant-workbench-page {
  display: grid;
  gap: 16px;
}

body.tenant-primary-secondary-nav .tabs.hidden,
body.tenant-primary-secondary-nav .tabs:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.tenant-primary-secondary-nav .tabs:not(.hidden):not(:empty) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 243, 0.92)),
    radial-gradient(circle at 8% 50%, rgba(20, 184, 166, 0.16), transparent 28%);
  border-radius: 18px;
}

.tenant-workbench-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef6f1 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.tenant-workbench-hero h3 {
  margin: 8px 0 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #102018;
}

.tenant-workbench-hero p {
  margin: 0;
  color: #52615a;
}

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

.tenant-workbench-metrics {
  margin: 0;
}

.tenant-workbench-reminders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tenant-workbench-reminder-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.tenant-workbench-reminder-card:nth-child(1) {
  border-color: rgba(249, 115, 22, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.78), #ffffff 42%),
    #ffffff;
}

.tenant-workbench-reminder-card:nth-child(2) {
  border-color: rgba(14, 165, 233, 0.18);
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.82), #ffffff 42%),
    #ffffff;
}

.tenant-workbench-reminder-card:nth-child(3) {
  border-color: rgba(34, 197, 94, 0.18);
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.82), #ffffff 42%),
    #ffffff;
}

.tenant-workbench-reminder-card:nth-child(4) {
  border-color: rgba(168, 85, 247, 0.18);
  background:
    linear-gradient(180deg, rgba(250, 245, 255, 0.82), #ffffff 42%),
    #ffffff;
}

.tenant-workbench-reminder-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.tenant-workbench-reminder-head h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #17231c;
}

.tenant-workbench-count {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #16261d;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.tenant-workbench-reminder-card:nth-child(1) .tenant-workbench-count {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.tenant-workbench-reminder-card:nth-child(2) .tenant-workbench-count {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.tenant-workbench-reminder-card:nth-child(3) .tenant-workbench-count {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

.tenant-workbench-reminder-card:nth-child(4) .tenant-workbench-count {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
}

.tenant-workbench-reminder-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.tenant-workbench-row {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 12px;
  background: #f8faf9;
}

.tenant-workbench-row strong {
  color: #17231c;
  font-size: 13px;
}

.tenant-workbench-row span,
.tenant-workbench-row em {
  color: #68756f;
  font-size: 12px;
  font-style: normal;
}

.tenant-workbench-jump {
  width: 100%;
  margin-top: auto;
  min-height: 40px;
  border: 0 !important;
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.tenant-workbench-jump:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.tenant-workbench-reminder-card:nth-child(1) .tenant-workbench-jump {
  background: linear-gradient(135deg, #f97316, #fb923c) !important;
}

.tenant-workbench-reminder-card:nth-child(2) .tenant-workbench-jump {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
}

.tenant-workbench-reminder-card:nth-child(3) .tenant-workbench-jump {
  background: linear-gradient(135deg, #16a34a, #4ade80) !important;
}

.tenant-workbench-reminder-card:nth-child(4) .tenant-workbench-jump {
  background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
}

.tenant-workbench-empty {
  padding: 18px 10px;
  border-radius: 12px;
  background: #f8faf9;
  color: #7b8781;
  text-align: center;
  font-size: 13px;
}

.tenant-workbench-two {
  align-items: stretch;
}

.tenant-workbench-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tenant-workbench-suggestion {
  padding: 14px;
  border-radius: 14px;
  background: #f8faf9;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.tenant-workbench-suggestion strong {
  display: block;
  margin-bottom: 6px;
  color: #17231c;
}

.tenant-workbench-suggestion p {
  margin: 0;
  color: #5c6862;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .tenant-workbench-reminders,
  .tenant-workbench-suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tenant-workbench-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .tenant-workbench-actions {
    justify-content: flex-start;
  }

  .tenant-workbench-reminders,
  .tenant-workbench-suggestion-grid {
    grid-template-columns: 1fr;
  }
}

.super-admin-portal-shell .main-panel {
  max-width: 1040px;
}

.super-admin-home-shell {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.super-admin-home-shell .main-panel {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(0.8rem, 3vw, 1.4rem);
}

.super-admin-home-shell .topbar {
  display: none !important;
}

.super-admin-home-shell #bossFloatingLogoutBtn {
  display: none !important;
}

.super-admin-home-shell #logoutBtn,
.super-admin-portal-shell #logoutBtn,
.super-admin-home-shell #globalUnifiedLogoutBtn,
.super-admin-portal-shell #globalUnifiedLogoutBtn,
body:has(.super-admin-home-shell) #bossFloatingLogoutBtn,
body:has(.super-admin-portal-shell) #bossFloatingLogoutBtn,
body:has(.super-admin-home-shell) #globalUnifiedLogoutBtn,
body:has(.super-admin-portal-shell) #globalUnifiedLogoutBtn {
  display: none !important;
}

.super-admin-home-shell .profile-inline-meta,
.super-admin-home-shell .super-admin-portal-hero {
  display: none;
}

.super-admin-home-shell .super-admin-portal-page {
  position: relative;
  min-height: calc(100vh - 2.4rem);
  align-content: start;
  border-radius: 34px;
  padding: clamp(1rem, 3vw, 1.6rem);
  background:
    radial-gradient(circle at 16% 0%, rgba(69, 188, 166, 0.18), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(203, 139, 61, 0.12), transparent 26%),
    rgba(255, 252, 246, 0.9);
  box-shadow: 0 22px 58px rgba(42, 65, 52, 0.12);
}

.super-admin-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.super-admin-page-top h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  letter-spacing: -0.05em;
}

.super-admin-page-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  background: rgba(45, 212, 191, 0.18);
  color: #0f665e;
  font-size: 0.76rem;
  font-weight: 900;
}

.super-admin-floating-logout {
  flex: 0 0 auto;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.56rem 0.92rem;
  color: #33413c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(42, 65, 52, 0.1);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.super-admin-portal-shell .sidebar {
  min-width: 220px;
}

.super-admin-portal-page {
  display: grid;
  gap: 0.95rem;
}

.super-admin-portal-hero,
.super-admin-subpage-head {
  border: 1px solid rgba(32, 95, 92, 0.14);
  border-radius: 24px;
  padding: 1.05rem 1.2rem;
  background:
    radial-gradient(circle at 16% 20%, rgba(73, 140, 126, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 239, 0.82));
  box-shadow: 0 14px 34px rgba(42, 65, 52, 0.08);
}

.super-admin-portal-hero h3,
.super-admin-subpage-head h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}

.super-admin-subpage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 112px;
}

.super-admin-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.1rem);
  align-items: stretch;
}

.super-admin-entry-card {
  display: grid;
  gap: 0.62rem;
  min-height: clamp(172px, 28vh, 260px);
  border: 1px solid rgba(32, 95, 92, 0.13);
  border-radius: 28px;
  padding: clamp(1.05rem, 3vw, 1.45rem);
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 243, 0.9)),
    var(--card);
  box-shadow: 0 16px 38px rgba(42, 65, 52, 0.09);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.super-admin-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 95, 92, 0.32);
  box-shadow: 0 22px 54px rgba(42, 65, 52, 0.14);
}

.super-admin-entry-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 900;
  color: #25655d;
  background: rgba(73, 190, 165, 0.16);
}

.super-admin-entry-card strong {
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  letter-spacing: -0.055em;
}

.super-admin-entry-card small,
.super-admin-account-row p {
  color: var(--muted);
  line-height: 1.55;
}

.super-admin-entry-card em {
  margin-top: auto;
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 900;
  color: #123d37;
}

.super-admin-account-list {
  display: grid;
  gap: 0.75rem;
}

.super-admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 104px;
  border: 1px solid rgba(32, 95, 92, 0.11);
  border-radius: 24px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 246, 238, 0.94));
  box-shadow: 0 12px 30px rgba(42, 65, 52, 0.07);
}

.super-admin-account-row h4 {
  margin: 0 0 0.22rem;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.super-admin-account-row p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.88rem;
}

.super-admin-account-row .inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.super-admin-row-btn {
  min-width: 56px;
  border-radius: 999px !important;
  padding: 0.56rem 0.74rem !important;
  font-weight: 900;
}

.super-admin-row-btn.primary {
  min-width: 64px;
  color: #fff;
  background: #0f2722;
}

.super-admin-create-focus {
  outline: 3px solid rgba(73, 140, 126, 0.28);
  box-shadow: 0 0 0 8px rgba(73, 140, 126, 0.08) !important;
}

.super-admin-detail-page .super-admin-role-detail {
  display: grid;
  gap: 0.85rem;
}

.super-admin-detail-page .two-column {
  grid-template-columns: 1fr;
}

.super-admin-simple-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 0.9rem;
}

.super-admin-detail-page .super-admin-simple-account-layout.two-column {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.super-admin-detail-page .panel-card,
.super-admin-detail-page .form-card {
  border-radius: 24px;
  padding: 1rem;
}

.super-admin-detail-page .profile-inline-meta {
  display: none;
}

.super-admin-detail-page .group-account-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.super-admin-detail-page .table {
  font-size: 0.84rem;
}

.super-admin-section-note {
  margin: 0.24rem 0 0;
  color: rgba(57, 72, 66, 0.62);
  font-size: 0.78rem;
  line-height: 1.45;
}

.super-admin-simple-account-table {
  table-layout: fixed;
  width: 100%;
}

.super-admin-simple-account-table th,
.super-admin-simple-account-table td {
  padding: 0.58rem 0.5rem;
  white-space: nowrap;
}

.super-admin-simple-account-table th:nth-child(1),
.super-admin-simple-account-table td:nth-child(1) {
  width: 42%;
}

.super-admin-simple-account-table th:nth-child(2),
.super-admin-simple-account-table td:nth-child(2) {
  width: 28%;
}

.super-admin-simple-account-table th:nth-child(3),
.super-admin-simple-account-table td:nth-child(3),
.super-admin-simple-account-table th:nth-child(4),
.super-admin-simple-account-table td:nth-child(4) {
  width: 15%;
  text-align: center;
}

.super-admin-simple-account-table .ghost-btn.mini {
  min-width: 48px;
  padding: 0.34rem 0.52rem;
}

.super-admin-simple-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.super-admin-simple-form label {
  font-size: 0.78rem;
}

.super-admin-simple-form input,
.super-admin-simple-form select {
  min-height: 38px;
  font-size: 0.86rem;
}

.super-admin-simple-form .full-span,
.super-admin-simple-form .modal-actions {
  grid-column: 1 / -1;
}

.super-admin-editor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.super-admin-editor-title h4 {
  margin: 0.35rem 0 0;
}

.super-admin-simple-permissions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-feature-permission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tenant-admin-permission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-feature-chip {
  min-height: 38px;
  padding: 0.48rem 0.58rem;
}

.tenant-admin-permission-chip {
  min-height: 38px;
  padding: 0.48rem 0.58rem;
}

.employee-permission-table th:nth-child(1),
.employee-permission-table td:nth-child(1) {
  width: 18%;
}

.employee-permission-table th:nth-child(2),
.employee-permission-table td:nth-child(2) {
  width: 24%;
}

.employee-permission-table th:nth-child(3),
.employee-permission-table td:nth-child(3) {
  width: 46%;
  text-align: left;
}

.employee-permission-table th:nth-child(4),
.employee-permission-table td:nth-child(4) {
  width: 12%;
  text-align: center;
}

.employee-permission-table .active-row td {
  background: rgba(73, 190, 165, 0.08);
}

.employee-permission-summary {
  display: block;
  overflow: hidden;
  color: #24564f;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-permission-workbench {
  display: grid;
  gap: 1rem;
}

.employee-permission-hero {
  min-height: 150px;
  align-items: center;
}

.employee-permission-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.employee-permission-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(32, 95, 92, 0.13);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 243, 0.92));
  box-shadow: 0 12px 28px rgba(42, 65, 52, 0.08);
}

.employee-permission-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.2rem 0.54rem;
  color: #25655d;
  background: rgba(73, 190, 165, 0.16);
  font-size: 0.74rem;
  font-weight: 900;
}

.employee-permission-card strong {
  font-size: 1.18rem;
}

.employee-permission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.mini-auth-expired {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.mini-auth-expired-card {
  width: min(92vw, 420px);
  border-radius: 26px;
  padding: 1.4rem;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 18px 46px rgba(42, 65, 52, 0.12);
}

.mini-auth-expired-card h2 {
  margin: 0.75rem 0 0.5rem;
}

.mini-auth-expired-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .super-admin-home-shell {
    display: block;
    padding: 0;
  }

  .super-admin-home-shell .main-panel {
    width: 100%;
    padding: 0.72rem;
  }

  .super-admin-home-shell .super-admin-portal-page {
    min-height: calc(100vh - 1.44rem);
    padding: 0.95rem;
  }

  .super-admin-entry-grid,
  .super-admin-account-row {
    grid-template-columns: 1fr;
  }

  .super-admin-entry-card {
    min-height: 178px;
  }

  .super-admin-subpage-head {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: row;
  }

  .super-admin-account-row {
    min-height: 128px;
    align-items: stretch;
  }

  .super-admin-account-row .inline-actions {
    justify-content: flex-start;
  }

  .super-admin-detail-page .group-account-form-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-detail-page .super-admin-simple-account-layout.two-column,
  .super-admin-simple-account-layout,
  .super-admin-simple-form {
    grid-template-columns: 1fr;
  }

  .tenant-admin-permission-grid,
  .employee-feature-permission-grid,
  .employee-permission-card-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-detail-page .group-account-form-grid label,
  .super-admin-detail-page .group-account-form-grid .primary-btn {
    grid-column: auto !important;
  }
}

.boss-dashboard-refined .boss-cockpit-shell {
  gap: 14px;
}

.boss-dashboard-refined .boss-cockpit-hero {
  padding: 18px 20px;
}

.boss-dashboard-refined .boss-cockpit-title-copy h3 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0.02em;
}

.boss-executive-approval-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.35fr);
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 178, 70, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(9, 28, 63, 0.94), rgba(5, 22, 50, 0.82));
  border: 1px solid rgba(255, 205, 111, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 242, 190, 0.06), 0 18px 42px rgba(2, 10, 28, 0.2);
}

.boss-executive-approval-summary {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 42, 87, 0.72), rgba(8, 24, 54, 0.58));
  border: 1px solid rgba(120, 203, 255, 0.18);
}

.boss-executive-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 188, 77, 0.14);
  border: 1px solid rgba(255, 206, 105, 0.28);
  color: #ffd27b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.boss-executive-approval-summary h4 {
  margin: 12px 0 8px;
  color: #fff7df;
  font-size: 24px;
  line-height: 1.15;
}

.boss-executive-approval-summary p {
  margin: 0;
  color: rgba(221, 237, 255, 0.76);
  font-size: 13px;
  line-height: 1.65;
}

.boss-executive-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.boss-executive-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #dff6ff;
  background: rgba(5, 18, 44, 0.62);
  border: 1px solid rgba(92, 205, 255, 0.18);
  font-size: 12px;
}

.boss-executive-approval-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.boss-executive-approval-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, 0.22fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(4, 18, 43, 0.7);
  border: 1px solid rgba(87, 167, 255, 0.18);
}

.boss-executive-approval-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.boss-executive-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 185, 67, 0.16);
  border: 1px solid rgba(255, 205, 111, 0.28);
  color: #ffd27b;
  font-size: 12px;
  font-weight: 800;
}

.boss-executive-type.leave {
  background: rgba(83, 226, 178, 0.13);
  border-color: rgba(94, 232, 190, 0.26);
  color: #8ef5d2;
}

.boss-executive-title {
  max-width: 100%;
  padding: 0;
  color: #f4fbff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-executive-approval-main p,
.boss-executive-approval-meta span {
  margin: 4px 0 0;
  color: rgba(195, 222, 255, 0.68);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-executive-approval-meta {
  min-width: 0;
  text-align: right;
}

.boss-executive-approval-meta strong {
  display: block;
  color: #9ff2ff;
  font-size: 14px;
}

.boss-executive-approval-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.boss-executive-approval-actions .mini {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.boss-executive-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  border-radius: 18px;
  border: 1px dashed rgba(130, 206, 255, 0.26);
  color: rgba(211, 234, 255, 0.72);
  background: rgba(4, 18, 43, 0.42);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .boss-executive-approval-panel,
  .boss-executive-approval-item {
    grid-template-columns: 1fr;
  }

  .boss-executive-approval-meta,
  .boss-executive-approval-actions {
    justify-content: flex-start;
    text-align: left;
  }
}

.boss-force-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) 120px minmax(0, 1.35fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 214, 110, 0.16), transparent 26%),
    linear-gradient(135deg, #0a1730 0%, #10284e 48%, #081a36 100%);
  border: 1px solid rgba(127, 205, 255, 0.2);
  box-shadow: 0 14px 34px rgba(1, 10, 31, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #eaf7ff;
}

.boss-force-head,
.boss-force-stats,
.boss-force-list {
  border-radius: 16px;
  background: rgba(3, 15, 38, 0.38);
  border: 1px solid rgba(127, 205, 255, 0.14);
}

.boss-force-head {
  padding: 14px 16px;
}

.boss-force-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #9ff2ff;
  background: rgba(88, 206, 255, 0.1);
  border: 1px solid rgba(127, 224, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.boss-force-head h2 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.boss-force-head p {
  margin: 0;
  color: rgba(220, 238, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.boss-force-stats {
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
}

.boss-force-stats strong {
  color: #8ff5ff;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 38px;
  line-height: 1;
}

.boss-force-stats span {
  color: rgba(214, 235, 255, 0.72);
  font-size: 12px;
}

.boss-force-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
}

.boss-force-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 92px auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(5, 22, 52, 0.58);
  border: 1px solid rgba(113, 197, 255, 0.14);
}

.boss-force-row > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  border-radius: 999px;
  color: #ffe19a;
  background: rgba(255, 193, 75, 0.14);
  border: 1px solid rgba(255, 216, 121, 0.26);
  font-size: 12px;
}

.boss-force-row .link-btn {
  max-width: 100%;
  padding: 0;
  color: #f8fcff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-force-row p {
  margin: 4px 0 0;
  color: rgba(202, 227, 255, 0.68);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-force-row > strong {
  color: #97f2ff;
  font-size: 13px;
  text-align: right;
}

.boss-force-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.boss-force-actions .mini {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.boss-force-empty {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(152, 220, 255, 0.2);
  color: rgba(222, 240, 255, 0.78);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1180px) {
  .boss-force-workbench,
  .boss-force-row {
    grid-template-columns: 1fr;
  }

  .boss-force-row > strong,
  .boss-force-actions {
    justify-content: flex-start;
    text-align: left;
  }
}

.tenant-business-page {
  display: grid;
  gap: 16px;
}

.tenant-business-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(20, 184, 166, 0.22), transparent 30%),
    linear-gradient(135deg, #f8fbf7 0%, #eef4ea 48%, #ffffff 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.tenant-business-hero h3 {
  margin: 6px 0 6px;
  color: #102018;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.tenant-business-hero p {
  max-width: 780px;
  margin: 0;
  color: #5c6a63;
  line-height: 1.7;
}

.tenant-business-hero-kpis {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: right;
}

.tenant-business-hero-kpis strong {
  color: #0f241c;
  font-size: 18px;
}

.tenant-business-hero-kpis span {
  color: #66746d;
  font-size: 12px;
}

.tenant-business-metrics {
  margin: 0;
}

.tenant-business-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 243, 0.9)),
    radial-gradient(circle at 6% 50%, rgba(20, 184, 166, 0.16), transparent 28%);
}

.tenant-business-subnav-btn {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #31443a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tenant-business-subnav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.tenant-business-subnav-btn.active {
  border-color: rgba(15, 118, 110, 0.38);
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.finance-top-tenant-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #31443a;
  font-size: 12px;
  font-weight: 800;
}

.finance-top-tenant-selector select {
  min-height: 28px;
  max-width: 260px;
  border: 0;
  background: transparent;
  color: #0f5e59;
  font: inherit;
  outline: 0;
}

.group-role-topbar-tenant {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  max-width: min(420px, 42vw);
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #31443a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 35, 31, 0.06);
}

.topbar-actions .group-role-topbar-tenant,
.topbar-actions .account-indicator {
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  box-sizing: border-box;
  white-space: nowrap;
}

.topbar-actions .account-indicator {
  padding: 0 18px;
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #0f5e59;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 35, 31, 0.06);
}

/* 20260717 financeTopbarTenantDedupe: keep only the unified role tenant selector in the topbar. */
.topbar-actions .finance-role-tenant-select,
.topbar-actions .finance-top-tenant-selector,
.topbar-actions .finance-tenant-select-card {
  display: none !important;
}

.group-role-topbar-tenant span {
  flex: 0 0 auto;
  color: #0f5e59;
}

.group-role-topbar-tenant strong {
  max-width: 300px;
  overflow: hidden;
  color: #14231f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-role-topbar-tenant select {
  min-width: 180px;
  max-width: 300px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #14231f;
  font: inherit;
  outline: 0;
}

.finance-tenant-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: 12px;
  margin: 12px 0;
}

.finance-tenant-select-card,
.finance-invoice-qr-card {
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 8%, rgba(20, 184, 166, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.9);
  padding: 14px;
}

.finance-tenant-select-card label {
  display: grid;
  gap: 7px;
  color: #31443a;
  font-size: 13px;
  font-weight: 800;
}

.finance-tenant-select-card select {
  min-height: 38px;
  border: 1px solid rgba(20, 35, 31, 0.1);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #14231f;
  font: inherit;
}

.finance-invoice-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
}

.finance-invoice-qr-card strong {
  display: block;
  margin-bottom: 5px;
  color: #14231f;
  font-size: 15px;
}

.finance-invoice-qr-card img {
  width: 128px;
  height: 128px;
  border-radius: 14px;
  border: 1px solid rgba(20, 35, 31, 0.08);
  background: #fff;
  padding: 6px;
}

.finance-invoice-qr-page .finance-invoice-qr-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
}

.finance-invoice-guide-card {
  min-height: 156px;
}

.finance-role-page {
  display: grid;
  gap: 10px;
}

.finance-role-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 244, 0.94));
  box-shadow: 0 14px 32px rgba(20, 35, 31, 0.08);
}

.finance-role-hero span {
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.finance-role-hero h3 {
  margin: 4px 0 4px;
  color: #14231f;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.finance-role-hero p {
  margin: 0;
  color: #66746d;
  font-size: 13px;
}

.finance-role-tenant-select {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: #31443a;
  font-size: 12px;
  font-weight: 900;
}

.finance-role-tenant-select select {
  min-height: 38px;
  border: 1px solid rgba(20, 35, 31, 0.1);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f5e59;
  font: inherit;
}

.finance-role-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.finance-role-qr-card {
  min-height: 100%;
}

.finance-role-mini-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-role-metrics {
  gap: 10px;
}

.finance-role-page .metric-card {
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 16px;
}

.finance-role-page .metric-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.finance-role-page .metric-card strong {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
}

.finance-role-page .metric-card .subtle {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
}

.finance-role-metric-btn {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.finance-role-metric-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 24px rgba(20, 35, 31, 0.08);
}

.finance-role-metric-btn.active {
  border-color: rgba(15, 118, 110, 0.4);
  background: linear-gradient(135deg, rgba(214, 242, 235, 0.9), rgba(255, 255, 255, 0.82));
}

.hr-final-metrics {
  gap: 10px;
}

.hr-final-metric-card {
  min-height: 76px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hr-final-metric-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.hr-final-metric-card strong {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
}

.hr-final-metric-card .subtle {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
}

.hr-final-metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 35, 31, 0.08);
}

.hr-final-metric-teal {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(135deg, rgba(214, 242, 235, 0.9), rgba(255, 255, 255, 0.82));
}

.hr-final-metric-blue {
  border-color: rgba(19, 90, 182, 0.22);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.82));
}

.hr-final-metric-orange {
  border-color: rgba(209, 132, 44, 0.26);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(255, 255, 255, 0.82));
}

.hr-final-metric-red {
  border-color: rgba(180, 35, 24, 0.22);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(255, 255, 255, 0.82));
}

.hr-final-metric-green {
  border-color: rgba(12, 166, 120, 0.22);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.9), rgba(255, 255, 255, 0.82));
}

.finance-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 10px;
  align-items: start;
}

.finance-role-page .panel-card {
  padding: 12px 14px;
  border-radius: 18px;
}

.finance-role-page .section-head {
  margin-bottom: 8px;
  gap: 8px;
}

.finance-role-page .section-head h4 {
  margin: 0;
  font-size: 16px;
}

.finance-role-page .profile-inline-meta {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.finance-role-page .section-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.finance-more-btn {
  padding: 6px 10px;
}

.finance-role-page .finance-report-table th,
.finance-role-page .finance-report-table td {
  padding: 7px 8px;
  font-size: 13px;
}

.finance-advice-card {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 184, 166, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.72);
}

.finance-advice-list {
  display: grid;
  gap: 8px;
}

.finance-advice-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.finance-advice-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.finance-advice-list p {
  margin: 0;
  color: #31443a;
  font-size: 12px;
  line-height: 1.42;
}

.finance-more-dialog .finance-report-table th,
.finance-more-dialog .finance-report-table td {
  white-space: nowrap;
}

.finance-report-page .panel-card {
  border-radius: 22px;
}

.finance-report-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.finance-report-grid-wide {
  align-items: start;
}

.finance-report-card {
  min-height: 190px;
}

.finance-report-balance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.finance-report-balance-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-report-balance > div {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 244, 0.74));
}

.finance-report-balance span {
  display: block;
  color: #65736d;
  font-size: 12px;
  font-weight: 800;
}

.finance-report-balance strong {
  display: block;
  margin-top: 6px;
  color: #14231f;
  font-size: 18px;
  line-height: 1.2;
}

.finance-report-table-wrap {
  overflow-x: auto;
}

.finance-report-table th,
.finance-report-table td {
  padding: 9px 10px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .finance-tenant-tools,
  .finance-invoice-qr-card,
  .finance-role-workbench-grid,
  .finance-workbench-grid,
  .finance-role-hero,
  .finance-report-grid,
  .finance-report-metrics,
  .finance-report-balance {
    grid-template-columns: 1fr;
  }

  .finance-role-hero {
    display: grid;
  }

  .finance-role-tenant-select {
    min-width: 0;
  }
}

/* Keep role-specific navigation typography consistent across modules. */
.sidebar-tool-btn,
.tenant-unified-primary-btn,
.tenant-unified-pms-btn {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.tab,
.tenant-unified-secondary-tab,
.tenant-business-subnav-btn,
.employee-profile-subnav button {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.tenant-business-grid {
  display: grid;
  gap: 14px;
}

.tenant-business-grid-main {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.tenant-business-grid-main > [data-tenant-business-panel="financeWork"],
.tenant-business-grid-main > [data-tenant-business-panel="hrWork"],
.tenant-business-grid-main > [data-tenant-business-panel="inventoryWork"] {
  grid-column: 1 / -1;
  width: 100%;
}

.tenant-business-card {
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.tenant-business-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(18px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 180px;
  padding: 16px 10px 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent),
    repeating-linear-gradient(180deg, transparent, transparent 35px, rgba(15, 23, 42, 0.06) 36px);
}

.tenant-business-chart-col {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
  min-height: 148px;
}

.tenant-business-chart-col i {
  display: block;
  min-height: 8px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #0f766e, #5eead4);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.tenant-business-chart-col span {
  color: #66746d;
  font-size: 11px;
  text-align: center;
}

.tenant-business-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tenant-business-mini-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.tenant-business-mini-grid span {
  color: #728078;
  font-size: 12px;
}

.tenant-business-mini-grid strong {
  color: #13241c;
  font-size: 18px;
}

.tenant-business-bars {
  display: grid;
  gap: 10px;
}

.tenant-business-bar-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  color: #4b5b52;
  font-size: 12px;
}

.tenant-business-bar-row strong {
  color: #15241d;
  text-align: right;
}

.tenant-business-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef4f1;
}

.tenant-business-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f766e);
}

.tenant-business-channel-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tenant-business-channel-table div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: #f8faf9;
}

.tenant-business-channel-table strong {
  color: #17231c;
  font-size: 13px;
}

.tenant-business-channel-table span,
.tenant-business-channel-table em {
  color: #66746d;
  font-size: 12px;
  font-style: normal;
}

.tenant-business-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.tenant-business-table {
  min-width: 860px;
}

.tenant-business-table th,
.tenant-business-table td {
  white-space: nowrap;
}

.tenant-business-work-cell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 110px;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf5f1;
}

.tenant-business-work-cell i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.36), rgba(15, 118, 110, 0.58));
}

.tenant-business-work-cell span {
  position: relative;
  z-index: 1;
  padding-left: 10px;
  color: #0f241c;
  font-weight: 800;
}

.tenant-business-work-list,
.tenant-business-advice-list {
  display: grid;
  gap: 9px;
}

.tenant-business-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tenant-business-alert-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.72), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.tenant-business-alert-grid span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.tenant-business-alert-grid strong {
  color: #13241c;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.tenant-business-alert-grid p {
  margin: 0;
  color: #5d6b64;
  font-size: 12px;
  line-height: 1.55;
}

.tenant-business-work-row,
.tenant-business-advice-list article {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #f8faf9;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.tenant-business-work-row strong,
.tenant-business-advice-list strong {
  color: #17231c;
  font-size: 13px;
}

.tenant-business-advice-scope {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tenant-business-work-row span,
.tenant-business-work-row em,
.tenant-business-advice-list p {
  margin: 0;
  color: #5d6b64;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.tenant-business-empty {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  color: #7b8781;
  text-align: center;
}

.tenant-role-workload {
  display: grid;
  gap: 14px;
}

.tenant-role-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.tenant-role-kpi-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.tenant-role-kpi-card span {
  color: #64746d;
  font-size: 12px;
  font-weight: 800;
}

.tenant-role-kpi-card strong {
  color: #10231b;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.tenant-role-kpi-card p {
  margin: 0;
  color: #76837d;
  font-size: 12px;
  line-height: 1.45;
}

.tenant-role-kpi-card-money {
  background:
    linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.tenant-role-kpi-card-warn {
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.tenant-role-kpi-card-ok {
  background:
    linear-gradient(145deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.tenant-role-section-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.6fr);
  gap: 12px;
}

.tenant-role-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #fbfdfc;
}

.tenant-role-panel h5 {
  margin: 0;
  color: #17231c;
  font-size: 14px;
  font-weight: 950;
}

.tenant-role-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tenant-role-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.72);
  color: #52615a;
  font-size: 12px;
  font-weight: 800;
}

.tenant-role-breakdown b {
  color: #0f766e;
}

.tenant-role-person-list,
.tenant-role-activity-list {
  display: grid;
  gap: 8px;
}

.tenant-role-person-row,
.tenant-role-activity-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 13px;
  background: #ffffff;
}

.tenant-role-person-row {
  grid-template-columns: minmax(120px, 1.15fr) minmax(110px, 0.8fr) minmax(180px, 1.4fr);
}

.tenant-role-activity-row {
  grid-template-columns: 88px minmax(160px, 1.4fr) minmax(130px, 0.9fr) minmax(90px, 0.7fr);
}

.tenant-role-person-row div {
  display: grid;
  gap: 2px;
}

.tenant-role-person-row strong,
.tenant-role-activity-row strong {
  color: #18251e;
  font-size: 13px;
  font-weight: 950;
}

.tenant-role-person-row span,
.tenant-role-person-row small,
.tenant-role-activity-row span,
.tenant-role-activity-row small {
  color: #66746d;
  font-size: 12px;
}

.tenant-role-person-row em,
.tenant-role-activity-row em {
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.tenant-role-activity-row small {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef7f4;
  color: #0f5f58;
  font-weight: 900;
}

.tenant-role-empty {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 13px;
  color: #78857f;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1180px) {
  .tenant-business-grid-main {
    grid-template-columns: 1fr;
  }

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

  .tenant-role-section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tenant-business-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .tenant-business-hero-kpis {
    text-align: left;
  }

  .tenant-business-mini-grid,
  .tenant-business-channel-table {
    grid-template-columns: 1fr;
  }

  .tenant-business-bar-row {
    grid-template-columns: 1fr;
  }

  .tenant-business-bar-row strong {
    text-align: left;
  }

  .tenant-business-alert-grid {
    grid-template-columns: 1fr;
  }

  .tenant-role-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tenant-role-person-row,
  .tenant-role-activity-row {
    grid-template-columns: 1fr;
  }

  .tenant-role-activity-row small {
    justify-self: start;
  }
}

/* Unified account permissions: enterprise + PMS share the same grouped display. */
.permission-grid:has(.permission-group-block),
.super-admin-simple-permissions:has(.permission-group-block),
.tenant-admin-permission-grid:has(.permission-group-block),
.employee-feature-permission-grid:has(.permission-group-block) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.permission-group-block {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.permission-group-block > strong {
  color: #0f5f58;
  font-size: 12px;
  font-weight: 900;
}

.permission-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.permission-group-chip {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.25;
}

.permission-group-chip span {
  min-width: 0;
}

@media (max-width: 1180px) {
  .permission-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .permission-group-grid {
    grid-template-columns: 1fr;
  }
}

/* Boss cockpit KPI badges: avoid all-blue dots by using semantic colors. */
.boss-ultra-kpi {
  --boss-kpi-a: #22d3ee;
  --boss-kpi-b: #2563eb;
  --boss-kpi-glow: rgba(34, 211, 238, 0.34);
}

.boss-ultra-kpi-revenue {
  --boss-kpi-a: #34d399;
  --boss-kpi-b: #059669;
  --boss-kpi-glow: rgba(52, 211, 153, 0.34);
}

.boss-ultra-kpi-expense {
  --boss-kpi-a: #fb923c;
  --boss-kpi-b: #ea580c;
  --boss-kpi-glow: rgba(251, 146, 60, 0.34);
}

.boss-ultra-kpi-good {
  --boss-kpi-a: #a3e635;
  --boss-kpi-b: #65a30d;
  --boss-kpi-glow: rgba(163, 230, 53, 0.32);
}

.boss-ultra-kpi-warn {
  --boss-kpi-a: #f87171;
  --boss-kpi-b: #dc2626;
  --boss-kpi-glow: rgba(248, 113, 113, 0.36);
}

.boss-ultra-kpi-offline {
  --boss-kpi-a: #38bdf8;
  --boss-kpi-b: #0284c7;
  --boss-kpi-glow: rgba(56, 189, 248, 0.32);
}

.boss-ultra-kpi-bangbang {
  --boss-kpi-a: #2dd4bf;
  --boss-kpi-b: #0f766e;
  --boss-kpi-glow: rgba(45, 212, 191, 0.34);
}

.boss-ultra-kpi-meituan {
  --boss-kpi-a: #facc15;
  --boss-kpi-b: #ca8a04;
  --boss-kpi-glow: rgba(250, 204, 21, 0.34);
}

.boss-ultra-kpi-ctrip {
  --boss-kpi-a: #a78bfa;
  --boss-kpi-b: #7c3aed;
  --boss-kpi-glow: rgba(167, 139, 250, 0.34);
}

.boss-ultra-kpi .boss-ultra-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(135deg, var(--boss-kpi-a), var(--boss-kpi-b));
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #071327;
  box-shadow:
    0 10px 18px var(--boss-kpi-glow),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.boss-ultra-kpi-revenue,
.boss-ultra-kpi-expense,
.boss-ultra-kpi-good,
.boss-ultra-kpi-warn,
.boss-ultra-kpi-offline,
.boss-ultra-kpi-bangbang,
.boss-ultra-kpi-meituan,
.boss-ultra-kpi-ctrip {
  border-color: color-mix(in srgb, var(--boss-kpi-a) 38%, transparent);
  box-shadow:
    inset 0 -3px 0 color-mix(in srgb, var(--boss-kpi-a) 34%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--boss-kpi-a) 13%, transparent);
}

/* Boss cockpit final polish: stable one-screen layout and tighter visual rhythm. */
.boss-ultra-cockpit {
  min-height: calc(100vh - 18px) !important;
  max-height: calc(100vh - 18px) !important;
  gap: 8px !important;
  padding: 9px 12px 10px !important;
}

.boss-ultra-header {
  min-height: 68px !important;
  grid-template-columns: minmax(230px, 0.48fr) minmax(420px, 1fr) minmax(150px, 0.34fr) !important;
  padding: 4px 12px 6px !important;
}

.boss-ultra-title {
  min-height: 54px !important;
  padding: 0 16px !important;
}

.boss-ultra-cockpit .boss-ultra-header h2 {
  font-size: clamp(24px, 2.45vw, 40px) !important;
  letter-spacing: 0.04em !important;
}

.boss-ultra-cockpit .boss-ultra-eyebrow {
  margin-bottom: 1px !important;
  font-size: 9px !important;
  letter-spacing: 2.5px !important;
}

.boss-ultra-header p {
  margin-top: 0 !important;
}

.boss-ultra-range {
  gap: 4px !important;
  padding: 3px !important;
}

.boss-ultra-range button,
.boss-ultra-logout {
  min-height: 26px !important;
  padding: 0 11px !important;
  font-size: 10px !important;
}

.boss-ultra-grid {
  grid-template-rows: minmax(248px, 1fr) minmax(168px, 0.74fr) !important;
  gap: 9px !important;
}

.boss-ultra-panel {
  padding: 8px !important;
  border-color: rgba(0, 194, 255, 0.32) !important;
}

.boss-ultra-panel-head {
  min-height: 27px !important;
  margin: -1px -1px 7px !important;
  padding: 0 7px !important;
}

.boss-ultra-panel-head span {
  width: 28px !important;
  height: 28px !important;
}

.boss-ultra-kpi-grid {
  gap: 7px !important;
}

.boss-ultra-kpi {
  min-height: 66px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 7px 8px !important;
}

.boss-ultra-kpi .boss-ultra-icon,
.boss-ultra-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.boss-ultra-kpi strong {
  margin-top: 5px !important;
}

.boss-ultra-overview .boss-ultra-chart-row {
  grid-template-columns: 0.96fr 1.3fr 0.72fr 0.72fr !important;
  gap: 7px !important;
}

.boss-ultra-overview .boss-ultra-chart-card {
  min-height: 88px !important;
  max-height: 94px !important;
  overflow: hidden !important;
  padding: 6px 7px !important;
}

.boss-ultra-overview .boss-ultra-donut,
.boss-ultra-overview .boss-ultra-gauge {
  width: 54px !important;
  height: 54px !important;
}

.boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 54px minmax(0, 1fr) !important;
}

.boss-ultra-overview .boss-ultra-donut::after,
.boss-ultra-overview .boss-ultra-gauge::after {
  inset: 10px !important;
}

.boss-ultra-chart-legend {
  gap: 2px !important;
}

.boss-ultra-chart-legend span {
  font-size: 9px !important;
}

.boss-ultra-rank-list,
.boss-ultra-advice-list,
.boss-ultra-todo-list,
.boss-ultra-work-list {
  gap: 6px !important;
}

.boss-ultra-rank-row {
  min-height: 39px !important;
  padding: 6px 9px !important;
}

.boss-ultra-mini-grid {
  gap: 6px !important;
}

.boss-ultra-mini {
  min-height: 39px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  padding: 6px !important;
}

.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span,
.boss-ultra-work-row > span {
  width: 26px !important;
  height: 26px !important;
}

.boss-ultra-advice-list article {
  grid-template-columns: 26px minmax(0, 1fr) !important;
  min-height: 35px !important;
  padding: 6px !important;
}

.boss-ultra-advice-list p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px !important;
  line-height: 1.28 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.boss-ultra-work-stats {
  gap: 4px !important;
}

.boss-ultra-work-stats span {
  min-height: 27px !important;
  padding: 3px !important;
}

.boss-ultra-work-stats strong {
  font-size: 12px !important;
}

.boss-ultra-work-row,
.boss-ultra-todo-row {
  min-height: 31px !important;
  grid-template-columns: 26px minmax(0, 1fr) max-content !important;
  padding: 5px 6px !important;
}

.boss-ultra-todo-summary {
  gap: 5px !important;
  margin-bottom: 6px !important;
}

.boss-ultra-todo-summary span {
  min-height: 22px !important;
  font-size: 10px !important;
}

.boss-ultra-rank-row:hover,
.boss-ultra-work-row:hover,
.boss-ultra-todo-row:hover {
  border-color: rgba(85, 232, 255, 0.62) !important;
  transform: translateY(-1px);
  box-shadow: inset 0 0 14px rgba(0, 174, 255, 0.16), 0 0 16px rgba(0, 174, 255, 0.16) !important;
}

/* Boss cockpit polish v2: make modules feel filled and upgrade icon material. */
.boss-ultra-overview,
.boss-ultra-rank,
.boss-ultra-tenant,
.boss-ultra-report,
.boss-ultra-ai,
.boss-ultra-suggest,
.boss-ultra-todo {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.boss-ultra-overview {
  grid-template-rows: auto minmax(160px, 0.58fr) minmax(110px, 0.42fr) !important;
}

.boss-ultra-overview .boss-ultra-kpi-grid {
  height: 100%;
  grid-template-rows: repeat(2, minmax(72px, 1fr)) !important;
}

.boss-ultra-overview .boss-ultra-kpi {
  min-height: 0 !important;
  align-content: center;
  padding: 9px 10px !important;
}

.boss-ultra-overview .boss-ultra-chart-row {
  height: 100%;
}

.boss-ultra-overview .boss-ultra-chart-card {
  min-height: 0 !important;
  max-height: none !important;
  align-content: center;
}

.boss-ultra-rank-list {
  height: 100%;
  grid-template-rows: repeat(4, minmax(58px, 1fr));
}

.boss-ultra-rank-row {
  min-height: 0 !important;
  align-content: center;
  padding: 8px 12px !important;
}

.boss-ultra-tenant .boss-ultra-mini-grid {
  height: 100%;
  grid-template-rows: repeat(3, minmax(48px, 1fr));
}

.boss-ultra-report .boss-ultra-mini-grid {
  height: 100%;
  grid-template-rows: repeat(2, minmax(68px, 1fr));
}

.boss-ultra-mini {
  min-height: 0 !important;
  align-content: center;
  padding: 8px !important;
}

.boss-ultra-mini strong {
  font-size: 12px !important;
}

.boss-ultra-ai .boss-ultra-work {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.boss-ultra-work-list {
  height: 100%;
  grid-template-rows: repeat(4, minmax(40px, 1fr));
}

.boss-ultra-work-row {
  min-height: 0 !important;
  align-content: center;
  padding: 7px 8px !important;
}

.boss-ultra-suggest .boss-ultra-advice-list {
  height: 100%;
  grid-template-rows: repeat(3, minmax(48px, 1fr));
}

.boss-ultra-advice-list article {
  min-height: 0 !important;
  align-items: center !important;
  padding: 8px !important;
}

.boss-ultra-advice-list p {
  font-size: 11px !important;
}

.boss-ultra-todo .boss-ultra-todo-list {
  height: 100%;
  grid-template-rows: repeat(3, minmax(40px, 1fr));
}

.boss-ultra-todo-row {
  min-height: 0 !important;
  align-content: center;
  padding: 7px 8px !important;
}

.boss-ultra-empty {
  height: 100% !important;
  min-height: 0 !important;
}

.boss-ultra-panel-head span,
.boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span,
.boss-ultra-work-row > span,
.boss-ultra-chart-title span {
  position: relative;
  overflow: hidden;
  color: #03172d !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.92) 0 10%, rgba(255, 255, 255, 0.28) 11% 22%, transparent 23%),
    radial-gradient(circle at 72% 82%, rgba(0, 64, 255, 0.42), transparent 38%),
    linear-gradient(145deg, #4df2ff 0%, #10b9ff 45%, #1765ff 100%) !important;
  border: 1px solid rgba(170, 245, 255, 0.52) !important;
  box-shadow:
    0 0 0 1px rgba(0, 194, 255, 0.28),
    0 8px 18px rgba(0, 174, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -4px 9px rgba(0, 21, 96, 0.32) !important;
}

.boss-ultra-panel-head span::after,
.boss-ultra-icon::after,
.boss-ultra-mini > span::after,
.boss-ultra-advice-list span::after,
.boss-ultra-todo-row > span::after,
.boss-ultra-work-row > span::after,
.boss-ultra-chart-title span::after {
  content: "";
  position: absolute;
  inset: 2px 4px auto 4px;
  height: 38%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.boss-ultra-kpi-revenue .boss-ultra-icon,
.boss-ultra-mini-good > span {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.9) 0 10%, rgba(255, 255, 255, 0.22) 11% 22%, transparent 23%),
    linear-gradient(145deg, #6ee7b7 0%, #10b981 48%, #047857 100%) !important;
}

.boss-ultra-kpi-expense .boss-ultra-icon,
.boss-ultra-kpi-warn .boss-ultra-icon,
.boss-ultra-mini-warn > span {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.9) 0 10%, rgba(255, 255, 255, 0.2) 11% 22%, transparent 23%),
    linear-gradient(145deg, #fbbf24 0%, #f97316 48%, #b45309 100%) !important;
}

/* Boss cockpit icon polish v3: replace glossy text balls with clean line icons. */
.boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span,
.boss-ultra-work-row > span,
.boss-ultra-chart-title span,
.boss-ultra-panel-head span {
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(103, 232, 249, 0.92), rgba(14, 116, 224, 0.82)) !important;
  border: 1px solid rgba(168, 245, 255, 0.55) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -5px 10px rgba(4, 28, 79, 0.28),
    0 6px 14px rgba(0, 179, 255, 0.24) !important;
}

.boss-ultra-icon::after,
.boss-ultra-mini > span::after,
.boss-ultra-advice-list span::after,
.boss-ultra-todo-row > span::after,
.boss-ultra-work-row > span::after,
.boss-ultra-chart-title span::after,
.boss-ultra-panel-head span::after {
  display: none !important;
}

.boss-ultra-icon svg,
.boss-ultra-mini > span svg {
  width: 18px;
  height: 18px;
  color: #06162f;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28));
}

.boss-ultra-kpi .boss-ultra-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

.boss-ultra-kpi .boss-ultra-icon svg {
  width: 20px;
  height: 20px;
}

.boss-ultra-mini > span {
  border-radius: 10px !important;
}

.boss-ultra-advice-list span,
.boss-ultra-todo-row > span,
.boss-ultra-work-row > span,
.boss-ultra-panel-head span {
  color: #e9fbff !important;
  text-shadow: none !important;
  background:
    linear-gradient(145deg, rgba(0, 191, 255, 0.36), rgba(18, 62, 140, 0.72)) !important;
}

.boss-ultra-kpi-revenue .boss-ultra-icon,
.boss-ultra-mini-good > span {
  background: linear-gradient(145deg, #5eead4, #0f766e) !important;
}

.boss-ultra-kpi-expense .boss-ultra-icon,
.boss-ultra-kpi-warn .boss-ultra-icon,
.boss-ultra-mini-warn > span {
  background: linear-gradient(145deg, #fdba74, #c2410c) !important;
}

.boss-ultra-kpi-good .boss-ultra-icon {
  background: linear-gradient(145deg, #bef264, #4d7c0f) !important;
}

.boss-ultra-kpi-offline .boss-ultra-icon {
  background: linear-gradient(145deg, #7dd3fc, #0369a1) !important;
}

.boss-ultra-kpi-bangbang .boss-ultra-icon {
  background: linear-gradient(145deg, #67e8f9, #0e7490) !important;
}

.boss-ultra-kpi-meituan .boss-ultra-icon {
  background: linear-gradient(145deg, #fde047, #ca8a04) !important;
}

.boss-ultra-kpi-ctrip .boss-ultra-icon {
  background: linear-gradient(145deg, #c4b5fd, #6d28d9) !important;
}

.boss-ultra-cockpit .boss-ultra-kpi em,
.boss-ultra-cockpit .boss-ultra-mini em {
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
}

/* Boss cockpit period tabs moved into overview banner. */
.boss-ultra-header {
  min-height: 52px !important;
  grid-template-columns: 1fr minmax(380px, 1.2fr) 1fr !important;
  padding: 1px 12px 4px !important;
}

.boss-ultra-header-left {
  display: block !important;
}

.boss-ultra-title {
  min-height: 46px !important;
  padding: 0 12px !important;
}

.boss-ultra-cockpit .boss-ultra-header h2 {
  font-size: clamp(20px, 2.05vw, 34px) !important;
  line-height: 0.95 !important;
}

.boss-ultra-cockpit .boss-ultra-eyebrow {
  font-size: 8px !important;
  letter-spacing: 2.2px !important;
}

.boss-ultra-title p {
  display: none !important;
}

.boss-ultra-overview .boss-ultra-panel-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.boss-ultra-panel-range {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(2, 8, 28, 0.78);
  border: 1px solid rgba(0, 194, 255, 0.28);
  box-shadow: inset 0 0 12px rgba(0, 174, 255, 0.12);
}

.boss-ultra-panel-range button {
  min-width: 46px;
  min-height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  color: #dff7ff;
  font-size: 10px;
  font-weight: 900;
  background: rgba(7, 16, 48, 0.82);
  border: 1px solid rgba(0, 195, 255, 0.26);
}

.boss-ultra-panel-range button.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 190, 255, 0.96), rgba(0, 83, 196, 0.96));
  box-shadow: inset 0 0 12px rgba(151, 235, 255, 0.32), 0 0 12px rgba(0, 174, 255, 0.34);
}

/* Boss rank panel compact list plus group digest. */
.boss-ultra-rank {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.boss-ultra-rank-list {
  grid-template-rows: repeat(4, minmax(44px, 1fr)) !important;
  gap: 7px !important;
}

.boss-ultra-rank-row {
  min-height: 0 !important;
  grid-template-columns: 40px minmax(0, 1fr) max-content !important;
  gap: 8px !important;
  padding: 6px 10px !important;
}

.boss-ultra-rank-row i {
  height: 4px !important;
}

.boss-ultra-rank-extra {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.boss-ultra-rank-extra div {
  min-width: 0;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 95, 190, 0.34), rgba(4, 14, 44, 0.8));
  border: 1px solid rgba(0, 194, 255, 0.22);
  box-shadow: inset 0 0 12px rgba(0, 174, 255, 0.08);
}

.boss-ultra-rank-extra span {
  color: rgba(203, 235, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.boss-ultra-rank-extra strong {
  color: #fef36c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(254, 243, 108, 0.24);
}

/* Boss cockpit page polish v2: denser, cleaner, more dashboard-like. */
.boss-ultra-cockpit {
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 213, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.2), transparent 26%),
    linear-gradient(rgba(0, 204, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 204, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #050a1c 0%, #07153a 52%, #040817 100%) !important;
  background-size: auto, auto, 40px 40px, 40px 40px, auto !important;
}

.boss-ultra-panel {
  background:
    linear-gradient(180deg, rgba(9, 48, 101, 0.76), rgba(3, 11, 34, 0.9)),
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.13), transparent 30%) !important;
  box-shadow:
    inset 0 1px 0 rgba(160, 235, 255, 0.12),
    inset 0 0 26px rgba(0, 174, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

.boss-ultra-panel-head {
  background:
    linear-gradient(90deg, rgba(0, 176, 255, 0.58), rgba(0, 82, 180, 0.34) 64%, rgba(0, 40, 96, 0.08)) !important;
  border-left: 0 !important;
  box-shadow: inset 0 -1px 0 rgba(80, 226, 255, 0.18);
}

.boss-ultra-panel-head h3 {
  font-size: 15px !important;
}

.boss-ultra-kpi,
.boss-ultra-mini,
.boss-ultra-rank-row,
.boss-ultra-work-row,
.boss-ultra-advice-list article,
.boss-ultra-todo-row,
.boss-ultra-rank-extra div,
.boss-ultra-todo-summary span {
  background:
    linear-gradient(180deg, rgba(10, 58, 122, 0.76), rgba(4, 18, 51, 0.9)) !important;
  border-color: rgba(39, 199, 255, 0.24) !important;
}

.boss-ultra-kpi strong {
  font-size: clamp(18px, 1.25vw, 24px) !important;
}

.boss-ultra-mini strong {
  font-size: 13px !important;
}

.boss-ultra-overview .boss-ultra-chart-card {
  background:
    linear-gradient(180deg, rgba(7, 39, 87, 0.78), rgba(3, 12, 38, 0.92)) !important;
  border-color: rgba(39, 199, 255, 0.22) !important;
}

.boss-ultra-rank-no {
  font-size: 15px !important;
}

.boss-ultra-rank-row strong,
.boss-ultra-work-row strong,
.boss-ultra-todo-row strong {
  font-size: 12px !important;
}

.boss-ultra-work-row small,
.boss-ultra-todo-row small {
  font-size: 10px !important;
}

.boss-ultra-empty {
  color: rgba(216, 238, 255, 0.66) !important;
  background:
    repeating-linear-gradient(135deg, rgba(0, 190, 255, 0.04) 0 8px, transparent 8px 16px),
    rgba(4, 16, 46, 0.62) !important;
}

.boss-ultra-title {
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.26);
}

.boss-ultra-actions {
  gap: 8px !important;
}

.boss-ultra-note {
  color: #fef36c !important;
}

/* Global page refinement for all non-boss role pages. */
.shell:not(.boss-shell) {
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.09), transparent 26%),
    linear-gradient(180deg, #f6f8fb 0%, #eef4f8 100%);
}

.shell:not(.boss-shell) .main-panel {
  gap: 14px;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .inventory-hero-panel {
  border: 1px solid rgba(15, 81, 116, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.shell:not(.boss-shell) .topbar {
  min-height: 74px;
  padding: 14px 18px;
}

.shell:not(.boss-shell) .topbar h2,
.shell:not(.boss-shell) .panel-card h4,
.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4 {
  color: #0f2537;
  letter-spacing: -0.02em;
}

.shell:not(.boss-shell) .eyebrow,
.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .muted,
.shell:not(.boss-shell) .item-meta {
  color: #64748b;
}

.shell:not(.boss-shell) .sidebar {
  border-right: 1px solid rgba(15, 81, 116, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 30, 51, 0.96), rgba(8, 47, 73, 0.94));
  box-shadow: 10px 0 28px rgba(15, 23, 42, 0.12);
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tab,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .tenant-workbench-jump,
.shell:not(.boss-shell) .finance-role-metric-btn {
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.shell:not(.boss-shell) .sidebar-tool-btn {
  min-height: 38px;
  color: rgba(226, 246, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 210, 255, 0.1);
}

.shell:not(.boss-shell) .sidebar-tool-btn:hover,
.shell:not(.boss-shell) .sidebar-tool-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.72), rgba(20, 184, 166, 0.5));
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.22);
}

.shell:not(.boss-shell) .tabs {
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 81, 116, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.shell:not(.boss-shell) .tab {
  min-height: 34px;
  color: #475569;
  font-weight: 800;
}

.shell:not(.boss-shell) .tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.24);
}

.shell:not(.boss-shell) .metric-card {
  min-height: 88px;
  padding: 14px;
}

.shell:not(.boss-shell) .metric-card strong {
  color: #0f2537;
  font-size: clamp(22px, 2vw, 32px);
}

.shell:not(.boss-shell) .panel-card {
  padding: 16px;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .approval-record-table,
.shell:not(.boss-shell) .finance-report-table,
.shell:not(.boss-shell) .tenant-business-table {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .tenant-business-table th {
  color: #334155;
  font-size: 12px;
  background: linear-gradient(180deg, #f8fafc, #edf5f7);
}

.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table td {
  color: #243647;
  border-top-color: rgba(15, 81, 116, 0.06);
}

.shell:not(.boss-shell) .table tbody tr:hover,
.shell:not(.boss-shell) .employee-handover-history-table tbody tr:hover,
.shell:not(.boss-shell) .approval-record-table tbody tr:hover,
.shell:not(.boss-shell) .finance-report-table tbody tr:hover,
.shell:not(.boss-shell) .tenant-business-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.055);
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea {
  border-radius: 12px;
  border-color: rgba(15, 81, 116, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.shell:not(.boss-shell) input:focus,
.shell:not(.boss-shell) select:focus,
.shell:not(.boss-shell) textarea:focus {
  border-color: rgba(14, 165, 233, 0.52);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.shell:not(.boss-shell) .ghost-btn:hover,
.shell:not(.boss-shell) .primary-btn:hover,
.shell:not(.boss-shell) .tenant-workbench-jump:hover,
.shell:not(.boss-shell) .finance-role-metric-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag {
  border-radius: 999px;
  font-weight: 800;
}

.shell:not(.boss-shell) .empty-state,
.shell:not(.boss-shell) .tenant-workbench-empty {
  border-radius: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(14, 165, 233, 0.04) 0 8px, transparent 8px 16px),
    rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(14, 116, 144, 0.22);
}

.shell:not(.boss-shell) .tenant-workbench-reminders,
.shell:not(.boss-shell) .tenant-workbench-suggestion-grid,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .employee-workbench-main,
.shell:not(.boss-shell) .inventory-role-grid,
.shell:not(.boss-shell) .inventory-dashboard-grid,
.shell:not(.boss-shell) .hr-final-metrics {
  gap: 14px;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card,
.shell:not(.boss-shell) .tenant-workbench-suggestion,
.shell:not(.boss-shell) .finance-role-page .panel-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .inventory-role-card,
.shell:not(.boss-shell) .inventory-trend-panel,
.shell:not(.boss-shell) .inventory-risk-panel,
.shell:not(.boss-shell) .hr-final-metric-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .finance-role-page .panel-card {
  padding: 14px;
}

.shell:not(.boss-shell) .tenant-workbench-count,
.shell:not(.boss-shell) .hr-final-metric-card strong,
.shell:not(.boss-shell) .finance-role-page .metric-card strong,
.shell:not(.boss-shell) .employee-workbench-pms-stats strong,
.shell:not(.boss-shell) .employee-workbench-records strong {
  color: #0f766e;
}

.shell:not(.boss-shell) .tenant-workbench-row,
.shell:not(.boss-shell) .employee-workbench-todo-row,
.shell:not(.boss-shell) .employee-workbench-pms-row,
.shell:not(.boss-shell) .inventory-row-card,
.shell:not(.boss-shell) .inventory-warning-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.shell:not(.boss-shell) .tenant-workbench-row:hover,
.shell:not(.boss-shell) .employee-workbench-todo-row:hover,
.shell:not(.boss-shell) .employee-workbench-pms-row:hover,
.shell:not(.boss-shell) .inventory-row-card:hover,
.shell:not(.boss-shell) .inventory-warning-card:hover {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(240, 249, 255, 0.92);
}

.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .inventory-hero-panel {
  overflow: hidden;
  position: relative;
}

.shell:not(.boss-shell) .finance-role-hero::after,
.shell:not(.boss-shell) .employee-workbench-hero::after,
.shell:not(.boss-shell) .tenant-workbench-hero::after,
.shell:not(.boss-shell) .inventory-hero-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 64%);
  pointer-events: none;
}

/* Tenant admin and employee page refinement. */
.shell:not(.boss-shell) .tenant-profile-compact-layout,
.shell:not(.boss-shell) .tenant-profile-basic-tight,
.shell:not(.boss-shell) .tenant-profile-subpanel,
.shell:not(.boss-shell) .employee-directory-readonly-panel,
.shell:not(.boss-shell) .employee-request-panel,
.shell:not(.boss-shell) .employee-workbench-shell,
.shell:not(.boss-shell) .tenant-business-page {
  --page-accent: #0ea5e9;
  --page-accent-2: #14b8a6;
}

.shell:not(.boss-shell) .tenant-profile-compact-card,
.shell:not(.boss-shell) .tenant-profile-subpanel,
.shell:not(.boss-shell) .tenant-profile-basic-tight,
.shell:not(.boss-shell) .employee-directory-readonly-panel,
.shell:not(.boss-shell) .employee-request-panel,
.shell:not(.boss-shell) .tenant-business-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,252,255,0.94));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.shell:not(.boss-shell) .tenant-profile-compact-head,
.shell:not(.boss-shell) .tenant-profile-subpanel .section-head,
.shell:not(.boss-shell) .tenant-profile-basic-tight .section-head,
.shell:not(.boss-shell) .employee-directory-readonly-panel .section-head,
.shell:not(.boss-shell) .employee-request-panel .section-head,
.shell:not(.boss-shell) .tenant-business-hero {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(20, 184, 166, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.shell:not(.boss-shell) .tenant-profile-compact-grid,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-grid-wide,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-grid-wide {
  gap: 8px;
}

.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item,
.shell:not(.boss-shell) .tenant-business-mini-grid div,
.shell:not(.boss-shell) .tenant-business-channel-table div {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 81, 116, 0.07);
}

.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item span,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item span,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item span,
.shell:not(.boss-shell) .tenant-business-mini-grid span,
.shell:not(.boss-shell) .tenant-business-channel-table span,
.shell:not(.boss-shell) .tenant-business-channel-table em {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item strong,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item strong,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item strong,
.shell:not(.boss-shell) .tenant-business-mini-grid strong,
.shell:not(.boss-shell) .tenant-business-channel-table strong {
  color: #102a3f;
  font-size: 15px;
}

.shell:not(.boss-shell) .employee-workbench-quick-btn {
  min-height: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.shell:not(.boss-shell) .employee-workbench-kpis {
  gap: 10px;
}

.shell:not(.boss-shell) .employee-workbench-pms-stats > div,
.shell:not(.boss-shell) .employee-workbench-records > div {
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eef8f8);
  border: 1px solid rgba(15, 81, 116, 0.08);
}

.shell:not(.boss-shell) .employee-directory-table-wrap,
.shell:not(.boss-shell) .employee-handover-history-table-wrap,
.shell:not(.boss-shell) .finance-report-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background: #ffffff;
}

.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .tenant-unified-secondary-tab {
  border-radius: 999px;
}

/* Finance, HR and inventory role page refinement. */
.shell:not(.boss-shell) .finance-role-page,
.shell:not(.boss-shell) .inventory-role-page,
.shell:not(.boss-shell) .inventory-smart-layout {
  --role-accent: #0f766e;
  --role-accent-2: #0ea5e9;
}

.shell:not(.boss-shell) .finance-role-tenant-select,
.shell:not(.boss-shell) .group-role-topbar-tenant {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 81, 116, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .finance-role-mini-metrics,
.shell:not(.boss-shell) .inventory-role-metrics,
.shell:not(.boss-shell) .inventory-kpi-grid,
.shell:not(.boss-shell) .inventory-insight-grid,
.shell:not(.boss-shell) .hr-final-metrics {
  gap: 10px;
}

.shell:not(.boss-shell) .finance-role-metric-btn,
.shell:not(.boss-shell) .finance-role-page .metric-card,
.shell:not(.boss-shell) .inventory-kpi-card,
.shell:not(.boss-shell) .inventory-insight-card,
.shell:not(.boss-shell) .hr-final-metric-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.shell:not(.boss-shell) .finance-role-metric-btn.active,
.shell:not(.boss-shell) .inventory-kpi-card-accent,
.shell:not(.boss-shell) .hr-final-metric-teal {
  border-color: rgba(20, 184, 166, 0.24);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.shell:not(.boss-shell) .inventory-kpi-card-warn,
.shell:not(.boss-shell) .hr-final-metric-orange,
.shell:not(.boss-shell) .hr-final-metric-red {
  border-color: rgba(249, 115, 22, 0.22);
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.shell:not(.boss-shell) .inventory-row-fields span,
.shell:not(.boss-shell) .inventory-warning-fields span,
.shell:not(.boss-shell) .inventory-risk-fields span,
.shell:not(.boss-shell) .tenant-business-work-cell {
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 81, 116, 0.06);
}

.shell:not(.boss-shell) .inventory-row-actions,
.shell:not(.boss-shell) .section-head-actions,
.shell:not(.boss-shell) .finance-role-page .section-head-actions {
  gap: 8px;
}

.shell:not(.boss-shell) .inventory-shortcut-btn,
.shell:not(.boss-shell) .finance-more-btn,
.shell:not(.boss-shell) .ghost-btn.mini {
  min-height: 30px;
  border-radius: 999px;
}

.shell:not(.boss-shell) .inventory-assistant-card,
.shell:not(.boss-shell) .inventory-create-analysis-card,
.shell:not(.boss-shell) .inventory-assistant-summary-card,
.shell:not(.boss-shell) .finance-role-qr-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.shell:not(.boss-shell) .finance-report-table-wrap,
.shell:not(.boss-shell) .inventory-history-filter,
.shell:not(.boss-shell) .inventory-compact-list,
.shell:not(.boss-shell) .inventory-warning-list {
  border-radius: 16px;
}

/* Account, dialog and workflow table refinement. */
.shell:not(.boss-shell) .content-card,
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .modal-card,
.shell:not(.boss-shell) .super-admin-detail-page .panel-card,
.shell:not(.boss-shell) .super-admin-detail-page .form-card,
.shell:not(.boss-shell) .approval-list-panel,
.shell:not(.boss-shell) .tenant-leave-form-focused,
.shell:not(.boss-shell) .tenant-leave-history-focused {
  border-radius: 18px;
  border-color: rgba(15, 81, 116, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.shell:not(.boss-shell) .modal-card {
  padding: 18px;
  gap: 10px;
}

.shell:not(.boss-shell) .modal-card-wide {
  width: min(96vw, 1180px);
  max-height: 88vh;
}

.shell:not(.boss-shell) .modal-card h3,
.shell:not(.boss-shell) .modal-card h4,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .super-admin-subpage-head h3,
.shell:not(.boss-shell) .super-admin-editor-title h4 {
  margin: 0;
  color: #102a3f;
  font-size: 16px;
  line-height: 1.25;
}

.shell:not(.boss-shell) .modal-card p,
.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .super-admin-section-note,
.shell:not(.boss-shell) .super-admin-editor-title p,
.shell:not(.boss-shell) .empty-state p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.shell:not(.boss-shell) .profile-form,
.shell:not(.boss-shell) .approval-form-grid,
.shell:not(.boss-shell) .tenant-form-grid,
.shell:not(.boss-shell) .compact-form-grid,
.shell:not(.boss-shell) .employee-handover-grid,
.shell:not(.boss-shell) .super-admin-simple-form,
.shell:not(.boss-shell) .group-account-form-grid {
  gap: 8px 10px;
}

.shell:not(.boss-shell) .profile-form label,
.shell:not(.boss-shell) .approval-form-grid label,
.shell:not(.boss-shell) .tenant-form-grid label,
.shell:not(.boss-shell) .compact-form-grid label,
.shell:not(.boss-shell) .employee-handover-grid label,
.shell:not(.boss-shell) .super-admin-simple-form label,
.shell:not(.boss-shell) .group-account-form-grid label {
  gap: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea {
  border-radius: 11px;
  border-color: rgba(15, 81, 116, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #102a3f;
  font-size: 13px;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select {
  min-height: 34px;
  padding: 7px 10px;
}

.shell:not(.boss-shell) textarea {
  min-height: 72px;
  padding: 8px 10px;
  line-height: 1.45;
}

.shell:not(.boss-shell) input:focus,
.shell:not(.boss-shell) select:focus,
.shell:not(.boss-shell) textarea:focus {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
  outline: none;
}

.shell:not(.boss-shell) .profile-grid,
.shell:not(.boss-shell) .profile-grid-wide,
.shell:not(.boss-shell) .approval-detail-grid,
.shell:not(.boss-shell) .employee-directory-grid {
  gap: 8px;
}

.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .approval-detail-grid .profile-item,
.shell:not(.boss-shell) .employee-directory-card {
  min-height: 50px;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(15, 81, 116, 0.07);
  background: rgba(255, 255, 255, 0.82);
}

.shell:not(.boss-shell) .profile-item span,
.shell:not(.boss-shell) .employee-directory-card span {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.shell:not(.boss-shell) .profile-item strong,
.shell:not(.boss-shell) .employee-directory-card strong {
  color: #102a3f;
  font-size: 14px;
  line-height: 1.3;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .data-table,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .approval-record-table,
.shell:not(.boss-shell) .finance-report-table,
.shell:not(.boss-shell) .super-admin-simple-account-table,
.shell:not(.boss-shell) .tenant-business-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.shell:not(.boss-shell) .employee-handover-history-table-wrap,
.shell:not(.boss-shell) .finance-report-table-wrap,
.shell:not(.boss-shell) .tenant-report-table-wrap,
.shell:not(.boss-shell) .tenant-business-table-wrap,
.shell:not(.boss-shell) .employee-directory-table-wrap {
  overflow-x: hidden;
  border-radius: 16px;
  border-color: rgba(15, 81, 116, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .data-table th,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .super-admin-simple-account-table th,
.shell:not(.boss-shell) .tenant-business-table th {
  padding: 7px 8px;
  background:
    linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(232, 244, 247, 0.92));
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .data-table td,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .super-admin-simple-account-table td,
.shell:not(.boss-shell) .tenant-business-table td {
  padding: 7px 8px;
  color: #243647;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}

.shell:not(.boss-shell) .table tbody tr:hover td,
.shell:not(.boss-shell) .data-table tbody tr:hover td,
.shell:not(.boss-shell) .employee-handover-history-table tbody tr:hover td,
.shell:not(.boss-shell) .approval-record-table tbody tr:hover td,
.shell:not(.boss-shell) .finance-report-table tbody tr:hover td,
.shell:not(.boss-shell) .super-admin-simple-account-table tbody tr:hover td,
.shell:not(.boss-shell) .tenant-business-table tbody tr:hover td {
  background: rgba(14, 165, 233, 0.055);
}

.shell:not(.boss-shell) .inline-actions,
.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .modal-actions,
.shell:not(.boss-shell) .form-actions,
.shell:not(.boss-shell) .section-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .enterprise-approval-flat-table .approval-table-actions,
.shell:not(.boss-shell) .employee-approval-flat-table .approval-table-actions {
  flex-wrap: wrap !important;
  justify-content: flex-start;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .secondary-btn,
.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .super-admin-row-btn,
.shell:not(.boss-shell) .tenant-unified-secondary-tab,
.shell:not(.boss-shell) .tenant-business-subnav button {
  min-height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .super-admin-row-btn.primary,
.shell:not(.boss-shell) .approval-decision-approve {
  border: 0;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.16);
}

.shell:not(.boss-shell) .ghost-btn {
  border-color: rgba(15, 81, 116, 0.13);
  background: rgba(255, 255, 255, 0.88);
  color: #0f5160;
}

.shell:not(.boss-shell) .ghost-btn.danger,
.shell:not(.boss-shell) .approval-decision-reject,
.shell:not(.boss-shell) .danger-btn {
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.9));
  color: #b91c1c;
}

.shell:not(.boss-shell) .ghost-btn.mini,
.shell:not(.boss-shell) .primary-btn.mini,
.shell:not(.boss-shell) .danger-btn.mini,
.shell:not(.boss-shell) .super-admin-row-btn {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge {
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.shell:not(.boss-shell) .super-admin-simple-account-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 12px;
}

.shell:not(.boss-shell) .super-admin-detail-page .panel-card,
.shell:not(.boss-shell) .super-admin-detail-page .form-card {
  padding: 14px;
}

.shell:not(.boss-shell) .super-admin-detail-page .section-head,
.shell:not(.boss-shell) .super-admin-editor-title {
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(240, 249, 255, 0.72);
}

.shell:not(.boss-shell) .super-admin-simple-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shell:not(.boss-shell) .super-admin-simple-form .permission-group-block,
.shell:not(.boss-shell) .super-admin-simple-form .full-span,
.shell:not(.boss-shell) .super-admin-simple-form .modal-actions {
  grid-column: 1 / -1;
}

.shell:not(.boss-shell) .super-admin-simple-permissions,
.shell:not(.boss-shell) .permission-grid {
  gap: 7px;
}

.shell:not(.boss-shell) .permission-chip,
.shell:not(.boss-shell) .permission-option,
.shell:not(.boss-shell) .permission-group-block label {
  min-height: 30px;
  border-radius: 999px;
  font-size: 12px;
}

.shell:not(.boss-shell) .employee-permission-summary {
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.shell:not(.boss-shell) #approvalDetailDialog .modal-card,
.shell:not(.boss-shell) dialog .modal-card {
  width: min(96vw, 1080px);
}

.shell:not(.boss-shell) #approvalDetailDialogBody {
  display: grid;
  gap: 10px;
}

.shell:not(.boss-shell) .approval-detail-actions {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 81, 116, 0.08);
}

.shell:not(.boss-shell) .pagination,
.shell:not(.boss-shell) .table-pagination,
.shell:not(.boss-shell) .employee-handover-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.shell:not(.boss-shell) .pagination button,
.shell:not(.boss-shell) .table-pagination button,
.shell:not(.boss-shell) .employee-handover-pagination button {
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) .super-admin-simple-account-layout,
  .shell:not(.boss-shell) .super-admin-detail-page .super-admin-simple-account-layout.two-column,
  .shell:not(.boss-shell) .super-admin-simple-form {
    grid-template-columns: 1fr;
  }

  .shell:not(.boss-shell) .employee-handover-history-table-wrap,
  .shell:not(.boss-shell) .finance-report-table-wrap,
  .shell:not(.boss-shell) .tenant-report-table-wrap,
  .shell:not(.boss-shell) .tenant-business-table-wrap,
  .shell:not(.boss-shell) .employee-directory-table-wrap {
    overflow-x: auto;
  }
}

/* Whole-page density and navigation polish for non-boss roles. */
.shell:not(.boss-shell) {
  grid-template-columns: 316px minmax(0, 1fr);
  max-width: 1680px;
}

.shell:not(.boss-shell) .main-panel {
  min-width: 0;
  padding: 14px 18px 34px 12px;
}

.shell:not(.boss-shell) .sidebar {
  padding: 16px 14px;
}

.shell:not(.boss-shell) .brand-block,
.shell:not(.boss-shell) .user-panel,
.shell:not(.boss-shell) .portfolio-panel {
  padding: 13px;
  border-radius: 18px;
}

.shell:not(.boss-shell) .brand-block h1,
.shell:not(.boss-shell) .brand-block h2 {
  margin: 6px 0 2px;
  font-size: 17px;
  line-height: 1.2;
}

.shell:not(.boss-shell) .brand-block p,
.shell:not(.boss-shell) .user-panel p,
.shell:not(.boss-shell) .portfolio-panel p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.shell:not(.boss-shell) .sidebar-tools {
  gap: 7px;
  margin-top: 10px;
}

.shell:not(.boss-shell) .sidebar-tools-head {
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.shell:not(.boss-shell) .sidebar-tools-head h3,
.shell:not(.boss-shell) .sidebar-tools-head h4 {
  color: rgba(240, 249, 255, 0.95);
  font-size: 13px;
}

.shell:not(.boss-shell) .sidebar-tools-head p {
  display: none;
}

.shell:not(.boss-shell) .sidebar-tool-btn {
  width: 100%;
  min-height: 35px;
  padding: 8px 10px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell:not(.boss-shell) .sidebar-tool-btn::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(186, 230, 253, 0.56);
  vertical-align: 1px;
}

.shell:not(.boss-shell) .sidebar-tool-btn.active::before,
.shell:not(.boss-shell) .sidebar-tool-btn:hover::before {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.shell:not(.boss-shell) .topbar {
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 18px;
}

.shell:not(.boss-shell) .topbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.shell:not(.boss-shell) .topbar p,
.shell:not(.boss-shell) .topbar .muted {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.shell:not(.boss-shell) .tabs:not(.hidden):not(:empty),
body.tenant-primary-secondary-nav .tabs:not(.hidden):not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 0;
  margin: 0 0 10px;
  padding: 6px;
  border-radius: 17px;
}

.shell:not(.boss-shell) .tab,
.shell:not(.boss-shell) .tenant-unified-secondary-tab,
.shell:not(.boss-shell) .tenant-business-subnav-btn,
.shell:not(.boss-shell) .employee-profile-subnav button {
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.shell:not(.boss-shell) .tenant-unified-secondary-tabs,
.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .employee-profile-subnav,
.shell:not(.boss-shell) .employee-profile-subnav-card {
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 81, 116, 0.08);
}

.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .finance-role-mini-metrics,
.shell:not(.boss-shell) .hr-final-metrics,
.shell:not(.boss-shell) .inventory-role-metrics,
.shell:not(.boss-shell) .inventory-kpi-grid,
.shell:not(.boss-shell) .employee-workbench-kpis,
.shell:not(.boss-shell) .tenant-business-mini-grid {
  gap: 8px;
}

.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .finance-role-page .metric-card,
.shell:not(.boss-shell) .hr-final-metric-card,
.shell:not(.boss-shell) .inventory-kpi-card,
.shell:not(.boss-shell) .employee-workbench-card {
  min-height: 72px;
  padding: 10px 12px;
}

.shell:not(.boss-shell) .metric-card p,
.shell:not(.boss-shell) .finance-role-page .metric-card p,
.shell:not(.boss-shell) .hr-final-metric-card p,
.shell:not(.boss-shell) .inventory-kpi-card span,
.shell:not(.boss-shell) .employee-workbench-card span {
  margin: 0 0 3px;
  font-size: 11px;
  line-height: 1.25;
}

.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .finance-role-page .metric-card strong,
.shell:not(.boss-shell) .hr-final-metric-card strong,
.shell:not(.boss-shell) .inventory-kpi-card strong,
.shell:not(.boss-shell) .employee-workbench-card strong {
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.15;
}

.shell:not(.boss-shell) .content-grid,
.shell:not(.boss-shell) .two-column,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .inventory-role-grid,
.shell:not(.boss-shell) .employee-workbench-main,
.shell:not(.boss-shell) .tenant-business-grid,
.shell:not(.boss-shell) .tenant-profile-compact-layout {
  gap: 10px;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .content-card,
.shell:not(.boss-shell) .tenant-business-card,
.shell:not(.boss-shell) .employee-request-panel,
.shell:not(.boss-shell) .employee-directory-readonly-panel {
  padding: 12px;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .panel-card > .section-head,
.shell:not(.boss-shell) .finance-role-page .section-head {
  min-height: 0;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 14px;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-card h4 {
  font-size: 15px;
  line-height: 1.25;
}

.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .panel-card > p,
.shell:not(.boss-shell) .form-card > p {
  font-size: 11px;
  line-height: 1.35;
}

.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .inventory-hero-panel,
.shell:not(.boss-shell) .tenant-business-hero {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 18px;
}

.shell:not(.boss-shell) .employee-workbench-hero h3,
.shell:not(.boss-shell) .tenant-workbench-hero h3,
.shell:not(.boss-shell) .finance-role-hero h3,
.shell:not(.boss-shell) .inventory-hero-panel h3,
.shell:not(.boss-shell) .tenant-business-hero h3 {
  margin: 2px 0;
  font-size: 18px;
  line-height: 1.2;
}

.shell:not(.boss-shell) .employee-workbench-hero p,
.shell:not(.boss-shell) .tenant-workbench-hero p,
.shell:not(.boss-shell) .finance-role-hero p,
.shell:not(.boss-shell) .inventory-hero-panel p,
.shell:not(.boss-shell) .tenant-business-hero p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.shell:not(.boss-shell) .empty-state {
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
}

@media (max-width: 1180px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .shell:not(.boss-shell) .main-panel {
    padding: 12px;
  }
}

@media (max-width: 860px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 1fr;
  }

  .shell:not(.boss-shell) .sidebar {
    position: relative;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 81, 116, 0.08);
  }

  .shell:not(.boss-shell) .sidebar-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Role detail surface polish: workbenches, reports, directory and inventory. */
.shell:not(.boss-shell) .tenant-workbench-page,
.shell:not(.boss-shell) .finance-role-page,
.shell:not(.boss-shell) .inventory-role-page,
.shell:not(.boss-shell) .inventory-smart-layout,
.shell:not(.boss-shell) .tenant-report-page,
.shell:not(.boss-shell) .employee-workbench-shell {
  display: grid;
  gap: 10px;
}

.shell:not(.boss-shell) .tenant-workbench-metrics,
.shell:not(.boss-shell) .tenant-workbench-reminders,
.shell:not(.boss-shell) .finance-workbench-grid,
.shell:not(.boss-shell) .finance-report-grid,
.shell:not(.boss-shell) .inventory-dashboard-grid,
.shell:not(.boss-shell) .inventory-ai-grid,
.shell:not(.boss-shell) .inventory-insight-grid,
.shell:not(.boss-shell) .inventory-risk-grid {
  gap: 10px;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card,
.shell:not(.boss-shell) .finance-advice-card,
.shell:not(.boss-shell) .finance-report-card,
.shell:not(.boss-shell) .inventory-trend-panel,
.shell:not(.boss-shell) .inventory-risk-panel,
.shell:not(.boss-shell) .inventory-assistant-card,
.shell:not(.boss-shell) .inventory-create-analysis-card,
.shell:not(.boss-shell) .inventory-assistant-summary-card,
.shell:not(.boss-shell) .employee-directory-editor-card {
  padding: 12px;
  border-radius: 18px;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-head,
.shell:not(.boss-shell) .inventory-risk-head,
.shell:not(.boss-shell) .inventory-assistant-summary-head,
.shell:not(.boss-shell) .employee-directory-editor-row,
.shell:not(.boss-shell) .super-admin-account-row {
  gap: 8px;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-head h4,
.shell:not(.boss-shell) .tenant-workbench-reminder-head strong,
.shell:not(.boss-shell) .finance-advice-card h4,
.shell:not(.boss-shell) .finance-report-card h4,
.shell:not(.boss-shell) .inventory-risk-head strong,
.shell:not(.boss-shell) .inventory-assistant-summary-head strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.shell:not(.boss-shell) .tenant-workbench-count {
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.shell:not(.boss-shell) .tenant-workbench-row,
.shell:not(.boss-shell) .employee-workbench-todo-row,
.shell:not(.boss-shell) .employee-workbench-pms-row,
.shell:not(.boss-shell) .inventory-row-card,
.shell:not(.boss-shell) .inventory-warning-card,
.shell:not(.boss-shell) .finance-advice-list > div {
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 13px;
}

.shell:not(.boss-shell) .tenant-workbench-row strong,
.shell:not(.boss-shell) .employee-workbench-todo-row strong,
.shell:not(.boss-shell) .employee-workbench-pms-row strong,
.shell:not(.boss-shell) .inventory-row-title strong,
.shell:not(.boss-shell) .inventory-warning-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.shell:not(.boss-shell) .tenant-workbench-row span,
.shell:not(.boss-shell) .tenant-workbench-row em,
.shell:not(.boss-shell) .employee-workbench-todo-row em,
.shell:not(.boss-shell) .employee-workbench-pms-row em,
.shell:not(.boss-shell) .inventory-row-fields span,
.shell:not(.boss-shell) .inventory-warning-fields span {
  font-size: 11px;
  line-height: 1.3;
}

.shell:not(.boss-shell) .employee-workbench-quick {
  gap: 8px;
}

.shell:not(.boss-shell) .employee-workbench-quick-btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 13px;
  font-size: 12px;
}

.shell:not(.boss-shell) .employee-workbench-pms-row {
  grid-template-columns: 46px minmax(96px, 0.75fr) minmax(0, 1fr) auto;
}

.shell:not(.boss-shell) .employee-workbench-pms-type {
  width: 36px;
  height: 28px;
  border-radius: 999px;
  font-size: 11px;
}

.shell:not(.boss-shell) .finance-workbench-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.shell:not(.boss-shell) .finance-advice-list {
  gap: 7px;
}

.shell:not(.boss-shell) .finance-advice-list > div {
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 8px;
}

.shell:not(.boss-shell) .finance-advice-list span {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.shell:not(.boss-shell) .finance-advice-list p {
  font-size: 11px;
  line-height: 1.38;
}

.shell:not(.boss-shell) .finance-report-metrics {
  gap: 8px;
}

.shell:not(.boss-shell) .finance-report-balance {
  gap: 8px;
}

.shell:not(.boss-shell) .finance-report-balance > div {
  padding: 9px 10px;
  border-radius: 13px;
}

.shell:not(.boss-shell) .finance-report-balance span {
  font-size: 11px;
}

.shell:not(.boss-shell) .finance-report-balance strong {
  margin-top: 4px;
  font-size: 15px;
}

.shell:not(.boss-shell) .tenant-report-page .panel-card,
.shell:not(.boss-shell) .tenant-report-page .form-card {
  padding: 12px;
}

.shell:not(.boss-shell) .tenant-report-page .metric-card {
  min-height: 68px;
}

.shell:not(.boss-shell) .tenant-report-table {
  table-layout: fixed;
}

.shell:not(.boss-shell) .tenant-report-table th,
.shell:not(.boss-shell) .tenant-report-table td {
  padding: 7px 8px;
  font-size: 12px;
}

.shell:not(.boss-shell) .employee-directory-editor-list {
  display: grid;
  gap: 8px;
}

.shell:not(.boss-shell) .employee-directory-editor-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(15, 81, 116, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.78);
}

.shell:not(.boss-shell) .employee-directory-editor-row label {
  gap: 4px;
  font-size: 11px;
}

.shell:not(.boss-shell) .employee-directory-editor-row input,
.shell:not(.boss-shell) .employee-directory-editor-row select {
  min-height: 32px;
  font-size: 12px;
}

.shell:not(.boss-shell) .tenant-directory-detail-table th,
.shell:not(.boss-shell) .tenant-directory-detail-table td {
  padding: 7px 8px;
  font-size: 12px;
}

.shell:not(.boss-shell) .inventory-hero-side,
.shell:not(.boss-shell) .inventory-hero-date,
.shell:not(.boss-shell) .inventory-inline-summary,
.shell:not(.boss-shell) .inventory-history-filter {
  padding: 9px 10px;
  border-radius: 14px;
}

.shell:not(.boss-shell) .inventory-create-grid {
  gap: 8px;
}

.shell:not(.boss-shell) .inventory-create-grid label,
.shell:not(.boss-shell) .inventory-create-grid label.field-xs,
.shell:not(.boss-shell) .inventory-create-grid label.field-sm,
.shell:not(.boss-shell) .inventory-create-grid label.field-md {
  gap: 4px;
}

.shell:not(.boss-shell) .inventory-create-grid input,
.shell:not(.boss-shell) .inventory-create-grid select,
.shell:not(.boss-shell) .inventory-create-grid textarea {
  min-height: 32px;
  font-size: 12px;
}

.shell:not(.boss-shell) .inventory-row-fields,
.shell:not(.boss-shell) .inventory-warning-fields,
.shell:not(.boss-shell) .inventory-risk-fields {
  gap: 6px;
}

.shell:not(.boss-shell) .inventory-row-fields span,
.shell:not(.boss-shell) .inventory-warning-fields span,
.shell:not(.boss-shell) .inventory-risk-fields span {
  padding: 6px 8px;
}

.warehouse-mobile-shell {
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.warehouse-mobile-hero {
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
}

.warehouse-mobile-tag {
  margin-bottom: 7px;
  padding: 3px 9px;
  font-size: 11px;
}

.warehouse-mobile-hero h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.warehouse-mobile-hero p {
  font-size: 12px;
  line-height: 1.5;
}

.warehouse-mobile-kpis {
  gap: 8px;
}

.warehouse-mobile-kpi {
  padding: 10px;
  border-radius: 14px;
}

.warehouse-mobile-kpi strong {
  margin-top: 3px;
  font-size: 18px;
}

.warehouse-mobile-card {
  padding: 12px;
  border-radius: 18px;
}

.warehouse-mobile-card-head {
  margin-bottom: 10px;
}

.warehouse-mobile-card-head h4 {
  margin-bottom: 3px;
  font-size: 16px;
}

.warehouse-mobile-card-head p {
  font-size: 12px;
  line-height: 1.35;
}

.warehouse-mobile-form {
  gap: 9px;
}

.warehouse-mobile-input-wrap textarea {
  min-height: 84px;
  padding: 10px;
  border-radius: 14px;
}

.warehouse-mobile-action-grid {
  gap: 8px;
}

.warehouse-mobile-action-btn {
  min-height: 42px;
  border-radius: 14px;
  font-size: 14px;
}

.warehouse-mobile-stock-list,
.warehouse-mobile-warning-list {
  gap: 8px;
}

.warehouse-mobile-stock-item,
.warehouse-mobile-warning-item {
  padding: 9px 10px;
  border-radius: 13px;
}

.warehouse-mobile-ai-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
}

.warehouse-mobile-ai-box h5 {
  margin-bottom: 5px;
}

.warehouse-mobile-ai-box p {
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .shell:not(.boss-shell) .finance-workbench-grid,
  .shell:not(.boss-shell) .finance-role-workbench-grid,
  .shell:not(.boss-shell) .tenant-business-grid-main {
    grid-template-columns: 1fr;
  }

  .shell:not(.boss-shell) .employee-directory-editor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .employee-workbench-pms-row,
  .shell:not(.boss-shell) .employee-directory-editor-row {
    grid-template-columns: 1fr;
  }
}

/* Entry, notification and shared dialog polish. */
.auth-shell {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(20, 184, 166, 0.18), transparent 26%),
    linear-gradient(135deg, #edf7f4 0%, #f8f5ee 48%, #eef7fb 100%);
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.auth-shell::before {
  left: -120px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 66%);
}

.auth-shell::after {
  right: -140px;
  top: -170px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14), transparent 64%);
}

.auth-card {
  position: relative;
  width: min(92vw, 430px);
  padding: 26px 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.88));
  border: 1px solid rgba(15, 81, 116, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

.auth-card .eyebrow {
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.auth-card h1 {
  margin: 0 0 6px;
  color: #102a3f;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.auth-card > .muted {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.auth-form {
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.auth-form input {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15, 81, 116, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #102a3f;
  padding: 9px 12px;
  font-size: 14px;
}

.auth-form input:focus {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: 0;
}

.auth-password-field input {
  padding-right: 48px;
}

.auth-password-toggle {
  right: 8px;
  width: 32px;
  height: 32px;
  color: #64748b;
}

.auth-form .primary-btn {
  min-height: 42px;
  margin-top: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.22);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
}

dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.dialog-head,
.modal-card > .section-head {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(20, 184, 166, 0.08)),
    rgba(255, 255, 255, 0.7);
}

.dialog-head h2,
.modal-card > .section-head h2 {
  margin: 0;
  color: #102a3f;
  font-size: 17px;
  line-height: 1.25;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 81, 116, 0.08);
  color: #475569;
  font-size: 14px;
  font-weight: 900;
}

.icon-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.global-notice {
  right: 18px;
  bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 81, 116, 0.10);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  font-size: 13px;
}

.review-dialog-body,
.approval-review-form {
  gap: 10px;
}

.review-dialog-field,
.approval-review-form label {
  gap: 5px;
  font-size: 12px;
}

.review-dialog-select,
.review-dialog-textarea,
.approval-review-form select,
.approval-review-form textarea {
  border-radius: 13px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .auth-card {
    width: min(100%, 390px);
    padding: 22px 18px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .global-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
  }
}

/* 20260714 pagePolish1: cross-role density and visual consistency. */
.shell:not(.boss-shell) {
  grid-template-columns: 240px minmax(0, 1fr) !important;
  width: min(100%, 1680px);
  max-width: none;
}

.shell:not(.boss-shell) .sidebar {
  padding: 14px 10px !important;
}

.shell:not(.boss-shell) .sidebar-tools {
  gap: 7px !important;
  margin-top: 0 !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.shell:not(.boss-shell) .sidebar-tools-head {
  margin: 0 0 4px !important;
}

.shell:not(.boss-shell) .sidebar-tools-head h2 {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn {
  min-height: 36px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell:not(.boss-shell) .main-panel {
  min-width: 0;
  padding: 14px 14px 42px 10px !important;
}

.shell:not(.boss-shell) .topbar {
  min-height: 64px !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
}

.shell:not(.boss-shell) .topbar .eyebrow {
  margin-bottom: 3px !important;
  font-size: 10px !important;
}

.shell:not(.boss-shell) .topbar h2 {
  font-size: clamp(20px, 1.7vw, 26px) !important;
  letter-spacing: -0.03em;
}

.shell:not(.boss-shell) .topbar-actions {
  gap: 6px !important;
}

.shell:not(.boss-shell) .topbar .ghost-btn,
.shell:not(.boss-shell) .topbar .primary-btn,
.shell:not(.boss-shell) #globalUnifiedLogoutBtn {
  min-height: 34px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
}

.shell:not(.boss-shell) .tabs,
body.tenant-primary-secondary-nav .tabs:not(.hidden):not(:empty),
.tenant-unified-secondary-tabs,
.tenant-business-subnav,
.employee-profile-subnav,
.finance-role-subnav,
.inventory-subnav,
.reports-subnav {
  gap: 6px !important;
  margin: 8px 0 0 !important;
  padding: 5px !important;
  border-radius: 14px !important;
}

.shell:not(.boss-shell) .tab,
.tenant-unified-secondary-tab,
.tenant-business-subnav-btn,
.employee-profile-subnav button,
.finance-role-subnav button,
.inventory-subnav button,
.reports-subnav button {
  min-height: 30px !important;
  padding: 6px 11px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

.shell:not(.boss-shell) .tab-panel {
  margin-top: 10px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .dashboard-grid,
.shell:not(.boss-shell) .two-column,
.shell:not(.boss-shell) .finance-workbench-grid,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .tenant-business-grid-main,
.shell:not(.boss-shell) .employee-layout,
.shell:not(.boss-shell) .employee-detail-layout {
  gap: 10px !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .alert-card {
  padding: 11px 12px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .section-head {
  margin-bottom: 8px !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-card h4,
.shell:not(.boss-shell) .form-card h4,
.shell:not(.boss-shell) .list-card h4,
.shell:not(.boss-shell) .report-card h4 {
  margin-bottom: 4px !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .subtle,
.shell:not(.boss-shell) .muted,
.shell:not(.boss-shell) .field-hint {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.shell:not(.boss-shell) .metric-card {
  min-height: 64px !important;
}

.shell:not(.boss-shell) .metric-card p {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.shell:not(.boss-shell) .metric-card strong {
  margin-top: 4px !important;
  font-size: clamp(18px, 1.45vw, 24px) !important;
  line-height: 1 !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table th,
.shell:not(.boss-shell) .tenant-business-table td {
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .tenant-business-table th {
  font-weight: 900 !important;
  white-space: nowrap;
}

.shell:not(.boss-shell) .inline-actions,
.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .section-head-actions,
.shell:not(.boss-shell) .modal-actions {
  gap: 6px !important;
}

.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .mini,
.shell:not(.boss-shell) .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) .inline-actions button {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) textarea,
.modal-card textarea {
  min-height: 64px !important;
}

.modal-card {
  gap: 10px !important;
  padding: 16px !important;
  border-radius: 20px !important;
}

.modal-card-wide {
  width: min(1120px, calc(100vw - 32px)) !important;
}

.modal-card .profile-form,
.modal-card .tenant-form-grid,
.modal-card .compact-form-grid {
  gap: 8px 10px !important;
}

.modal-card label {
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.empty-state {
  padding: 18px !important;
  border-radius: 16px !important;
}

.empty-state h3 {
  font-size: 16px !important;
}

.empty-state p {
  margin-top: 4px !important;
  font-size: 12px !important;
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 1fr !important;
  }

  .shell:not(.boss-shell) .sidebar {
    position: relative !important;
    min-height: 0 !important;
  }

  .shell:not(.boss-shell) .sidebar-tools {
    display: flex !important;
    overflow-x: auto;
  }

  .shell:not(.boss-shell) .sidebar-tools-head {
    display: none !important;
  }

  .shell:not(.boss-shell) .sidebar-tool-btn {
    width: auto;
    flex: 0 0 auto;
  }
}

/* 20260714 bossPagePolish1: final cockpit balance and one-screen rhythm. */
.shell.boss-shell {
  width: 100%;
  max-width: none !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(135deg, #06111f 0%, #071a30 48%, #04101f 100%) !important;
}

.shell.boss-shell .main-panel {
  padding: 6px !important;
}

#bossDashboard.active {
  gap: 8px !important;
}

.boss-ultra-cockpit,
.boss-cockpit-shell {
  min-height: calc(100vh - 12px) !important;
  gap: 8px !important;
  border-radius: 18px !important;
}

.boss-ultra-cockpit {
  padding: 8px !important;
}

.boss-ultra-header,
.boss-cockpit-hero {
  border-radius: 18px !important;
  border: 1px solid rgba(103, 232, 249, 0.22) !important;
  box-shadow: inset 0 0 36px rgba(56, 189, 248, 0.08), 0 16px 34px rgba(0, 0, 0, 0.22) !important;
}

.boss-ultra-header {
  min-height: 58px !important;
  padding: 4px 10px !important;
}

.boss-ultra-title {
  min-height: 46px !important;
  padding: 0 12px !important;
}

.boss-ultra-cockpit .boss-ultra-header h2,
.boss-cockpit-title-copy h3 {
  font-size: clamp(20px, 2vw, 31px) !important;
  line-height: 1.05 !important;
}

.boss-ultra-header p,
.boss-cockpit-title-copy p {
  display: none !important;
}

.boss-ultra-range {
  justify-content: center;
  border-radius: 999px !important;
  background: rgba(3, 18, 39, 0.72) !important;
}

.boss-ultra-range button,
.boss-filter-chip,
.boss-detail-btn,
.boss-logout-btn,
.boss-inline-logout-btn,
.boss-ultra-logout {
  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.boss-ultra-range button.active,
.boss-filter-chip.active,
.boss-detail-btn.active {
  background: linear-gradient(135deg, #22d3ee, #2563eb) !important;
  color: #f8fbff !important;
  border-color: rgba(186, 230, 253, 0.5) !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28) !important;
}

.boss-ultra-grid {
  gap: 8px !important;
  grid-template-rows: minmax(238px, 1fr) minmax(154px, 0.66fr) !important;
}

.boss-ultra-panel,
.boss-panel,
.boss-inline-detail,
.boss-stat-card {
  border-radius: 15px !important;
  border-color: rgba(103, 232, 249, 0.22) !important;
}

.boss-ultra-panel,
.boss-panel {
  padding: 8px !important;
}

.boss-ultra-panel-head,
.boss-panel-head {
  min-height: 26px !important;
  margin-bottom: 6px !important;
  gap: 6px !important;
}

.boss-ultra-panel-head strong,
.boss-panel-head h4 {
  font-size: 13px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em;
}

.boss-ultra-panel-head em,
.boss-panel-head p {
  display: none !important;
}

.boss-ultra-kpi-grid,
.boss-cockpit-stat-grid {
  gap: 6px !important;
}

.boss-ultra-kpi,
.boss-stat-card {
  min-height: 58px !important;
  padding: 7px 8px !important;
}

.boss-ultra-kpi span,
.boss-stat-card > span {
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.boss-ultra-kpi strong,
.boss-stat-card strong,
.boss-digit-cell,
.boss-digit-sep {
  font-size: clamp(14px, 1.18vw, 20px) !important;
  line-height: 1 !important;
}

.boss-ultra-icon,
.boss-ultra-kpi .boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span,
.boss-ultra-work-row > span,
.boss-ultra-panel-head span,
.boss-ultra-chart-title span {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
}

.boss-ultra-icon svg,
.boss-ultra-mini > span svg {
  width: 16px !important;
  height: 16px !important;
}

.boss-ultra-overview {
  grid-template-rows: auto minmax(132px, 0.58fr) minmax(96px, 0.42fr) !important;
}

.boss-ultra-overview .boss-ultra-kpi-grid {
  grid-template-rows: repeat(2, minmax(58px, 1fr)) !important;
}

.boss-ultra-overview .boss-ultra-chart-row {
  grid-template-columns: 0.92fr 1.28fr 0.72fr 0.72fr !important;
}

.boss-ultra-overview .boss-ultra-chart-card {
  min-height: 74px !important;
  padding: 6px !important;
}

.boss-ultra-chart-title strong,
.boss-ultra-chart-card strong,
.boss-ultra-mini strong,
.boss-ultra-rank-row strong,
.boss-ultra-work-row strong,
.boss-ultra-todo-row strong {
  font-size: 11px !important;
  line-height: 1.18 !important;
}

.boss-ultra-chart-legend span,
.boss-ultra-mini em,
.boss-ultra-rank-row em,
.boss-ultra-work-row em,
.boss-ultra-todo-row em,
.boss-ultra-advice-list p {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.boss-ultra-rank-list,
.boss-ultra-work-list,
.boss-ultra-todo-list,
.boss-ultra-advice-list,
.boss-ultra-mini-grid {
  gap: 5px !important;
}

.boss-ultra-rank-row,
.boss-ultra-work-row,
.boss-ultra-todo-row,
.boss-ultra-mini,
.boss-ultra-advice-list article {
  min-height: 32px !important;
  padding: 6px 7px !important;
  border-radius: 11px !important;
}

.boss-ultra-rank-list {
  grid-template-rows: repeat(4, minmax(42px, 1fr)) !important;
}

.boss-ultra-work-list {
  grid-template-rows: repeat(4, minmax(34px, 1fr)) !important;
}

.boss-ultra-todo .boss-ultra-todo-list,
.boss-ultra-suggest .boss-ultra-advice-list {
  grid-template-rows: repeat(3, minmax(34px, 1fr)) !important;
}

.boss-ultra-donut,
.boss-ultra-gauge,
.boss-ultra-overview .boss-ultra-donut,
.boss-ultra-overview .boss-ultra-gauge {
  width: 48px !important;
  height: 48px !important;
}

.boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.boss-ultra-donut::after,
.boss-ultra-gauge::after,
.boss-ultra-overview .boss-ultra-donut::after,
.boss-ultra-overview .boss-ultra-gauge::after {
  inset: 9px !important;
}

.boss-cockpit-main-grid,
.boss-cockpit-main-grid-merged,
.boss-cockpit-bottom-grid,
.boss-cockpit-bottom-grid-compact {
  gap: 8px !important;
}

.boss-feed-item,
.boss-rank-item,
.boss-drawer-card,
.boss-info-cell,
.boss-risk-row {
  border-radius: 12px !important;
  padding: 8px 9px !important;
}

.boss-feed-item strong,
.boss-rank-item strong,
.boss-info-cell span {
  font-size: 12px !important;
}

.boss-feed-item p,
.boss-rank-item p,
.boss-info-cell strong {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

@media (max-width: 1180px) {
  .boss-ultra-cockpit,
  .boss-cockpit-shell {
    max-height: none !important;
  }

  .boss-ultra-grid,
  .boss-cockpit-main-grid,
  .boss-cockpit-main-grid-merged,
  .boss-cockpit-bottom-grid,
  .boss-cockpit-bottom-grid-compact {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
}

/* 20260714 accountPagePolish1: super-admin account center refinement. */
.super-admin-home-shell,
.super-admin-portal-shell,
.super-admin-account-center-shell {
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.14), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(180deg, #f5f8fb 0%, #ecf4f2 100%) !important;
}

.super-admin-home-shell .super-admin-portal-page {
  min-height: calc(100vh - 18px) !important;
  padding: 16px !important;
  border-radius: 24px !important;
}

.super-admin-page-top {
  align-items: center !important;
  margin-bottom: 8px !important;
}

.super-admin-page-top h3 {
  margin-top: 4px !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.05 !important;
}

.super-admin-page-kicker,
.super-admin-entry-kicker {
  padding: 4px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
}

.super-admin-floating-logout {
  min-height: 34px !important;
  padding: 7px 13px !important;
  font-size: 12px !important;
}

.super-admin-entry-grid {
  gap: 10px !important;
}

.super-admin-entry-card {
  min-height: 128px !important;
  align-content: space-between !important;
  gap: 8px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

.super-admin-entry-card strong {
  font-size: clamp(20px, 2.2vw, 28px) !important;
  line-height: 1.05 !important;
}

.super-admin-entry-card small {
  display: -webkit-box;
  overflow: hidden;
  min-height: 34px;
  font-size: 12px !important;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.super-admin-entry-card em {
  font-size: 13px !important;
}

.super-admin-portal-page,
.super-admin-detail-page .super-admin-role-detail,
.super-admin-account-list,
.group-account-manage-page,
.group-account-manage-page > .stack {
  gap: 10px !important;
}

.super-admin-portal-hero,
.super-admin-subpage-head,
.super-admin-detail-page .panel-card,
.super-admin-detail-page .form-card,
.group-account-section,
.group-account-body .panel-card,
.group-account-body .form-card {
  padding: 12px !important;
  border-radius: 18px !important;
}

.super-admin-subpage-head {
  min-height: 72px !important;
}

.super-admin-subpage-head h3,
.super-admin-portal-hero h3 {
  margin-top: 4px !important;
  font-size: clamp(20px, 2.1vw, 28px) !important;
  line-height: 1.08 !important;
}

.super-admin-account-row {
  min-height: 72px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
}

.super-admin-account-row h4 {
  margin-bottom: 3px !important;
  font-size: 15px !important;
}

.super-admin-account-row p {
  max-width: none !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.super-admin-account-row .inline-actions,
.super-admin-detail-page .inline-actions {
  gap: 6px !important;
}

.super-admin-row-btn,
.super-admin-simple-account-table .ghost-btn.mini,
.super-admin-detail-page .ghost-btn,
.super-admin-detail-page .primary-btn,
.group-account-manage-page .ghost-btn,
.group-account-manage-page .primary-btn {
  min-height: 30px !important;
  min-width: 42px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.super-admin-simple-account-layout,
.super-admin-detail-page .super-admin-simple-account-layout.two-column,
.group-account-body.two-column {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr) !important;
  gap: 10px !important;
}

.super-admin-editor-title {
  align-items: center !important;
  margin-bottom: 8px !important;
}

.super-admin-editor-title h4,
.group-account-form h4,
.super-admin-detail-page .panel-card h4,
.super-admin-detail-page .form-card h4 {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.super-admin-simple-form,
.super-admin-detail-page .group-account-form-grid,
.group-account-form-grid {
  gap: 8px !important;
}

.super-admin-simple-form label,
.super-admin-detail-page .group-account-form-grid label,
.group-account-form-grid label {
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.super-admin-simple-form input,
.super-admin-simple-form select,
.super-admin-detail-page .group-account-form-grid input,
.super-admin-detail-page .group-account-form-grid select,
.group-account-form-grid input,
.group-account-form-grid select {
  min-height: 32px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.super-admin-simple-account-table,
.employee-permission-table,
.group-account-manage-page .table {
  table-layout: fixed !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.super-admin-simple-account-table th,
.super-admin-simple-account-table td,
.employee-permission-table th,
.employee-permission-table td,
.group-account-manage-page .table th,
.group-account-manage-page .table td {
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.super-admin-simple-account-table th:nth-child(1),
.super-admin-simple-account-table td:nth-child(1) {
  width: 30% !important;
}

.super-admin-simple-account-table th:nth-child(2),
.super-admin-simple-account-table td:nth-child(2) {
  width: 25% !important;
}

.super-admin-simple-account-table th:nth-child(3),
.super-admin-simple-account-table td:nth-child(3) {
  width: 20% !important;
}

.super-admin-simple-account-table th:nth-child(4),
.super-admin-simple-account-table td:nth-child(4) {
  width: 25% !important;
}

.employee-permission-summary {
  font-size: 11px !important;
}

.tenant-admin-permission-grid,
.employee-feature-permission-grid,
.super-admin-simple-permissions,
.permission-grid:has(.permission-group-block),
.super-admin-simple-permissions:has(.permission-group-block),
.tenant-admin-permission-grid:has(.permission-group-block),
.employee-feature-permission-grid:has(.permission-group-block) {
  gap: 8px !important;
}

.permission-group-block {
  padding: 8px !important;
  border-radius: 14px !important;
}

.permission-group-block > strong {
  margin-bottom: 6px !important;
  font-size: 12px !important;
}

.permission-group-grid {
  gap: 6px !important;
}

.permission-group-chip,
.tenant-admin-permission-chip,
.employee-feature-chip {
  min-height: 30px !important;
  padding: 5px 7px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  line-height: 1.18 !important;
}

.permission-group-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-account-summary {
  min-height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
}

.group-account-summary h4 {
  font-size: 14px !important;
}

.group-account-summary .profile-inline-meta {
  display: none !important;
}

.group-account-body {
  gap: 10px !important;
  padding-top: 10px !important;
}

@media (max-width: 980px) {
  .super-admin-entry-grid,
  .employee-permission-card-grid,
  .super-admin-simple-account-layout,
  .super-admin-detail-page .super-admin-simple-account-layout.two-column,
  .group-account-body.two-column {
    grid-template-columns: 1fr !important;
  }

  .super-admin-account-row {
    grid-template-columns: 1fr !important;
  }

  .super-admin-account-row .inline-actions {
    justify-content: flex-start !important;
  }
}

/* 20260714 rolePagePolish1: tenant, employee, finance, HR and warehouse surfaces. */
.tenant-workbench-hero,
.employee-home-hero,
.employee-workbench-hero,
.finance-role-hero,
.inventory-hero-panel,
.warehouse-mobile-hero {
  min-height: 78px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
}

.tenant-workbench-hero h3,
.employee-home-copy h3,
.employee-workbench-hero h3,
.finance-role-hero h3,
.inventory-hero-copy h3,
.warehouse-mobile-hero h3 {
  font-size: clamp(18px, 1.7vw, 25px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
}

.tenant-workbench-hero p,
.employee-home-copy p,
.employee-workbench-hero p,
.finance-role-hero p,
.inventory-hero-copy p,
.warehouse-mobile-hero p {
  display: none !important;
}

.employee-home-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
}

.employee-home-tag,
.inventory-hero-tag,
.warehouse-mobile-tag,
.finance-role-hero span {
  min-height: 22px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.employee-home-kpis,
.employee-workbench-kpis,
.inventory-kpi-grid,
.tenant-business-metrics,
.hr-final-metrics,
.warehouse-mobile-kpis {
  gap: 8px !important;
}

.employee-kpi-card,
.inventory-kpi-card,
.tenant-role-kpi-card,
.hr-final-metric-card,
.warehouse-mobile-kpi,
.finance-role-page .metric-card {
  min-height: 58px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
}

.employee-kpi-card span,
.inventory-kpi-label,
.tenant-role-kpi-card span,
.hr-final-metric-card p,
.warehouse-mobile-kpi span,
.finance-role-page .metric-card p {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.employee-kpi-card strong,
.inventory-kpi-card strong,
.tenant-role-kpi-card strong,
.hr-final-metric-card strong,
.warehouse-mobile-kpi strong,
.finance-role-page .metric-card strong {
  margin-top: 4px !important;
  font-size: clamp(17px, 1.35vw, 24px) !important;
  line-height: 1 !important;
}

.employee-profile-subnav-card,
.employee-profile-subpanel,
.employee-workbench-card,
.employee-workbench-pms-card,
.tenant-business-card,
.tenant-role-workload,
.tenant-role-panel,
.inventory-assistant-card,
.inventory-create-analysis-card,
.warehouse-mobile-card,
.finance-role-page .panel-card,
.approval-list-panel,
.approval-form-panel {
  padding: 10px 12px !important;
  border-radius: 15px !important;
}

.employee-profile-subnav,
.tenant-business-subnav,
.finance-role-subnav,
.inventory-subnav,
.reports-subnav {
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 13px !important;
}

.employee-profile-subnav button,
.tenant-business-subnav-btn,
.finance-role-subnav button,
.inventory-subnav button,
.reports-subnav button,
.employee-workbench-quick-btn {
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}

.employee-workbench-main,
.tenant-business-grid,
.tenant-business-grid-main,
.tenant-role-section-grid,
.finance-role-workbench-grid,
.inventory-smart-layout,
.inventory-stock-layout,
.approval-page-layout,
.warehouse-mobile-shell {
  gap: 10px !important;
}

.employee-workbench-records,
.employee-workbench-advice,
.employee-workbench-pms-list,
.tenant-business-advice-list,
.tenant-role-activity-list,
.tenant-role-person-list,
.inventory-compact-list,
.inventory-warning-list,
.inventory-example-list,
.warehouse-mobile-stock-list,
.warehouse-mobile-warning-list {
  gap: 7px !important;
}

.employee-workbench-todo-row,
.employee-workbench-pms-row,
.tenant-role-activity-row,
.tenant-role-person-row,
.inventory-row-card,
.inventory-warning-card,
.warehouse-mobile-stock-item,
.warehouse-mobile-warning-item,
.list-item,
.compact-list-item {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.employee-workbench-todo-row strong,
.employee-workbench-pms-row strong,
.tenant-role-activity-row strong,
.tenant-role-person-row strong,
.inventory-row-title strong,
.inventory-warning-card strong,
.warehouse-mobile-stock-item strong,
.warehouse-mobile-warning-item strong {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.employee-workbench-todo-row span,
.employee-workbench-pms-row span,
.tenant-role-activity-row span,
.tenant-role-person-row span,
.inventory-row-fields span,
.inventory-warning-fields span,
.warehouse-mobile-stock-item span,
.warehouse-mobile-warning-item span {
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.employee-directory-editor-row,
.approval-form-grid,
.employee-approval-grid-tight,
.tenant-leave-form-focused .employee-handover-grid,
.inventory-create-grid,
.inventory-conversation-form,
.warehouse-mobile-form,
.profile-form.compact-form-grid {
  gap: 8px !important;
}

.employee-directory-editor-row label,
.approval-form-grid > label,
.employee-approval-grid-tight > label,
.tenant-leave-form-focused .employee-handover-grid label,
.inventory-create-grid label,
.inventory-conversation-form label,
.warehouse-mobile-form label,
.profile-form.compact-form-grid label {
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.table-filter-input,
.employee-directory-editor-row input,
.employee-directory-editor-row select,
.approval-form-grid input,
.approval-form-grid select,
.approval-form-grid textarea,
.employee-approval-grid-tight input,
.employee-approval-grid-tight select,
.employee-approval-grid-tight textarea,
.tenant-leave-form-focused input,
.tenant-leave-form-focused select,
.tenant-leave-form-focused textarea,
.inventory-create-grid input,
.inventory-create-grid select,
.inventory-create-grid textarea,
.inventory-conversation-form textarea,
.warehouse-mobile-form textarea,
.warehouse-mobile-form input {
  min-height: 32px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.approval-form-grid textarea,
.employee-approval-grid-tight textarea,
.tenant-leave-form-focused textarea,
.inventory-create-grid textarea,
.inventory-conversation-form textarea,
.warehouse-mobile-form textarea {
  min-height: 58px !important;
}

.employee-handover-history-table-wrap,
.employee-directory-table-wrap,
.tenant-business-table-wrap {
  border-radius: 14px !important;
  overflow: hidden;
}

.employee-handover-history-table,
.employee-directory-table-wrap .table,
.tenant-business-table,
.finance-report-table,
.approval-record-table {
  table-layout: fixed !important;
}

.employee-handover-history-table th,
.employee-handover-history-table td,
.employee-directory-table-wrap .table th,
.employee-directory-table-wrap .table td,
.tenant-business-table th,
.tenant-business-table td,
.finance-report-table th,
.finance-report-table td,
.approval-record-table th,
.approval-record-table td {
  padding: 6px 7px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.approval-table-actions,
.inline-actions,
.form-actions,
.approval-form-actions,
.employee-handover-history-pager,
.warehouse-mobile-action-grid,
.inventory-voice-actions {
  gap: 6px !important;
}

.approval-action,
.approval-decision-btn,
.approval-table-actions .ghost-btn,
.inline-actions .ghost-btn,
.inline-actions .primary-btn,
.form-actions .ghost-btn,
.form-actions .primary-btn,
.warehouse-mobile-action-btn,
.inventory-voice-actions .ghost-btn,
.inventory-voice-actions .primary-btn {
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.status-pill,
.pill,
.mini-tag,
.approval-status-trigger {
  min-height: 22px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

.approval-detail-modal-card {
  width: min(980px, calc(100vw - 32px)) !important;
}

.approval-detail-grid,
.profile-grid,
.profile-grid-wide,
.inventory-ai-grid,
.employee-profile-compact-grid {
  gap: 8px !important;
}

.profile-field,
.approval-detail-block,
.boss-detail-cell {
  padding: 8px 9px !important;
  border-radius: 12px !important;
}

@media (max-width: 980px) {
  .employee-home-hero,
  .employee-workbench-hero,
  .finance-role-hero,
  .inventory-hero-panel,
  .tenant-workbench-hero {
    display: grid !important;
  }

  .employee-workbench-main,
  .tenant-role-section-grid,
  .approval-page-layout,
  .inventory-smart-layout,
  .finance-role-workbench-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 20260714 pageFineTune1: final visual density pass without changing role logic. */
.shell {
  gap: 10px !important;
}

.sidebar {
  width: clamp(188px, 15vw, 224px) !important;
  padding: 10px !important;
}

.main-panel {
  padding: 10px 12px !important;
  gap: 10px !important;
}

.topbar,
.boss-ultra-top,
.tenant-workbench-hero,
.employee-home-hero,
.employee-workbench-hero,
.finance-role-hero,
.inventory-hero-panel {
  padding: 10px 12px !important;
  border-radius: 18px !important;
}

.topbar h2,
.boss-ultra-title h2,
.tenant-workbench-hero h3,
.employee-home-copy h3,
.employee-workbench-hero h3,
.finance-role-hero h3,
.inventory-hero-copy h3 {
  font-size: clamp(17px, 1.45vw, 23px) !important;
  line-height: 1.05 !important;
}

.topbar .muted,
.boss-ultra-title p,
.tenant-workbench-hero p,
.employee-home-copy p,
.employee-workbench-hero p,
.finance-role-hero p,
.inventory-hero-copy p,
.profile-inline-meta {
  margin-top: 2px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.tabs,
.tenant-business-subnav,
.employee-profile-subnav,
.finance-role-subnav,
.inventory-subnav,
.reports-subnav,
.hr-final-subnav {
  min-height: 34px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  gap: 5px !important;
}

.tab,
.sidebar-tool-btn,
.tenant-business-subnav-btn,
.employee-profile-subnav button,
.finance-role-subnav button,
.inventory-subnav button,
.reports-subnav button,
.hr-final-subnav button {
  min-height: 28px !important;
  padding: 6px 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

.sidebar-tool-btn {
  justify-content: center !important;
  text-align: center !important;
}

.panel-card,
.form-card,
.metric-card,
.profile-section,
.list-card,
.employee-workbench-card,
.employee-profile-subpanel,
.tenant-business-card,
.tenant-role-panel,
.finance-role-page .panel-card,
.hr-final-card,
.inventory-role-card,
.inventory-assistant-card,
.inventory-create-analysis-card {
  padding: 10px 12px !important;
  border-radius: 16px !important;
}

.panel-card h3,
.panel-card h4,
.form-card h3,
.form-card h4,
.profile-section h3,
.tenant-business-card h4,
.employee-workbench-card h4,
.finance-role-page h4,
.hr-final-card h4,
.inventory-role-card h4 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.16 !important;
}

.metrics-grid,
.employee-home-kpis,
.employee-workbench-kpis,
.tenant-business-metrics,
.finance-role-workbench-grid,
.hr-final-metrics,
.inventory-kpi-grid,
.boss-ultra-metrics,
.boss-ultra-main,
.boss-ultra-side,
.boss-ultra-grid {
  gap: 8px !important;
}

.metric-card,
.employee-kpi-card,
.tenant-role-kpi-card,
.finance-role-page .metric-card,
.hr-final-metric-card,
.inventory-kpi-card,
.boss-ultra-metric,
.boss-ultra-card {
  min-height: 54px !important;
  padding: 8px 10px !important;
  border-radius: 15px !important;
}

.metric-card strong,
.employee-kpi-card strong,
.tenant-role-kpi-card strong,
.finance-role-page .metric-card strong,
.hr-final-metric-card strong,
.inventory-kpi-card strong,
.boss-ultra-metric strong {
  font-size: clamp(17px, 1.35vw, 23px) !important;
  line-height: 1 !important;
}

.metric-card p,
.employee-kpi-card span,
.tenant-role-kpi-card span,
.finance-role-page .metric-card p,
.hr-final-metric-card p,
.inventory-kpi-label,
.boss-ultra-metric span {
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

.profile-form,
.tenant-form-grid,
.profile-grid,
.profile-grid-wide,
.approval-form-grid,
.employee-approval-grid-tight,
.employee-directory-editor-row,
.inventory-create-grid,
.finance-role-form-grid,
.hr-final-form-grid {
  gap: 7px !important;
}

.profile-form label,
.tenant-form-grid label,
.approval-form-grid label,
.employee-approval-grid-tight label,
.employee-directory-editor-row label,
.inventory-create-grid label,
.finance-role-form-grid label,
.hr-final-form-grid label {
  gap: 3px !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

input,
select,
textarea {
  border-radius: 10px !important;
}

.profile-form input,
.profile-form select,
.tenant-form-grid input,
.tenant-form-grid select,
.approval-form-grid input,
.approval-form-grid select,
.approval-form-grid textarea,
.employee-approval-grid-tight input,
.employee-approval-grid-tight select,
.employee-approval-grid-tight textarea,
.inventory-create-grid input,
.inventory-create-grid select,
.inventory-create-grid textarea,
.finance-role-form-grid input,
.finance-role-form-grid select,
.finance-role-form-grid textarea,
.hr-final-form-grid input,
.hr-final-form-grid select,
.hr-final-form-grid textarea {
  min-height: 30px !important;
  padding: 5px 8px !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}

.table th,
.table td,
.approval-record-table th,
.approval-record-table td,
.finance-report-table th,
.finance-report-table td,
.employee-handover-history-table th,
.employee-handover-history-table td,
.tenant-business-table th,
.tenant-business-table td {
  padding: 5px 7px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.approval-action,
.approval-decision-btn {
  min-height: 28px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

.primary-btn,
.ghost-btn {
  padding: 5px 10px !important;
}

.status-pill,
.pill,
.mini-tag,
.approval-status-trigger {
  min-height: 20px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
}

.boss-ultra-shell,
.boss-ultra-board,
.boss-cockpit-shell {
  gap: 8px !important;
}

.boss-ultra-card h3,
.boss-ultra-card h4,
.boss-ultra-section-title,
.boss-cockpit-shell h3,
.boss-cockpit-shell h4 {
  font-size: 13px !important;
  line-height: 1.12 !important;
}

.boss-ultra-card p,
.boss-ultra-card span,
.boss-ultra-card li {
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}

@media (max-width: 980px) {
  .shell {
    gap: 0 !important;
  }

  .sidebar {
    width: 100% !important;
  }

  .main-panel {
    padding: 8px !important;
  }
}

/* 20260714 pageFineTune3: shared finishing pass for dialogs, tables and empty states. */
.modal-card {
  max-height: min(86vh, 760px) !important;
  overflow: auto !important;
  scrollbar-width: thin;
  border-radius: 22px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

.modal-card > .section-head,
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -2px -2px 8px !important;
  padding: 9px 10px !important;
  backdrop-filter: blur(12px);
}

.modal-actions,
.form-actions,
.approval-form-actions {
  position: relative;
  gap: 7px !important;
  padding-top: 6px !important;
}

.icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.empty-state {
  min-height: 96px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(14, 165, 233, 0.06)),
    rgba(255, 255, 255, 0.86) !important;
  border: 1px dashed rgba(15, 81, 116, 0.16) !important;
}

.empty-state h3 {
  margin: 0 0 4px !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.empty-state p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.table,
.data-table,
.approval-record-table,
.finance-report-table,
.tenant-business-table,
.employee-handover-history-table,
.super-admin-simple-account-table,
.employee-permission-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table th:first-child,
.table td:first-child,
.approval-record-table th:first-child,
.approval-record-table td:first-child,
.finance-report-table th:first-child,
.finance-report-table td:first-child,
.tenant-business-table th:first-child,
.tenant-business-table td:first-child,
.employee-handover-history-table th:first-child,
.employee-handover-history-table td:first-child {
  padding-left: 10px !important;
}

.table th:last-child,
.table td:last-child,
.approval-record-table th:last-child,
.approval-record-table td:last-child,
.finance-report-table th:last-child,
.finance-report-table td:last-child,
.tenant-business-table th:last-child,
.tenant-business-table td:last-child,
.employee-handover-history-table th:last-child,
.employee-handover-history-table td:last-child {
  padding-right: 10px !important;
}

.approval-table-actions,
.inline-actions,
.section-head-actions,
.topbar-actions {
  flex-wrap: wrap !important;
  align-items: center !important;
}

.approval-table-actions .ghost-btn,
.inline-actions .ghost-btn,
.inline-actions .primary-btn,
.section-head-actions .ghost-btn,
.section-head-actions .primary-btn {
  box-shadow: none !important;
}

.profile-field,
.approval-detail-block,
.boss-detail-cell,
.compact-summary-item {
  min-width: 0;
  overflow: hidden;
}

.profile-field strong,
.approval-detail-block strong,
.compact-summary-item strong {
  overflow-wrap: anywhere;
}

.global-notice {
  max-width: min(420px, calc(100vw - 24px)) !important;
  line-height: 1.35 !important;
}

@media (max-width: 760px) {
  .modal-card {
    width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    border-radius: 18px !important;
  }

  .modal-card-wide {
    width: calc(100vw - 18px) !important;
  }

  .topbar-actions,
  .section-head-actions,
  .approval-table-actions {
    justify-content: flex-start !important;
  }
}

/* 20260714 pageFineTune4: resilient text wrapping for real historical data. */
.item-meta,
.list-meta,
.field-hint,
.profile-inline-meta,
.subtle,
.alert-banner,
.reminder-item,
.tenant-role-empty,
.mobile-panel-meta,
.mobile-empty {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.list-item,
.list-card,
.tenant-role-activity-row,
.tenant-role-person-row,
.employee-workbench-todo-row,
.employee-workbench-pms-row,
.inventory-row-card,
.inventory-warning-card,
.finance-role-task-row,
.hr-final-row,
.boss-ultra-card {
  min-width: 0 !important;
}

.table td,
.data-table td,
.approval-record-table td,
.finance-report-table td,
.tenant-business-table td,
.employee-handover-history-table td,
.super-admin-simple-account-table td,
.employee-permission-table td {
  overflow-wrap: anywhere !important;
}

.asset-link,
.link-btn {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.status-pill,
.pill,
.mini-tag {
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
}

/* 20260714 pageFineTune5: final page polish for denser one-screen layouts. */
.shell {
  grid-template-columns: minmax(224px, 252px) minmax(0, 1fr) !important;
  gap: 8px !important;
  max-width: min(100vw, 1600px) !important;
}

.sidebar {
  width: auto !important;
  padding: 9px !important;
}

.brand-block,
.user-panel,
.portfolio-panel {
  padding: 11px !important;
  border-radius: 16px !important;
}

.brand-block h1,
.user-panel strong,
.portfolio-panel strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.brand-block p,
.user-panel p,
.portfolio-panel p {
  margin-top: 3px !important;
  font-size: 10.5px !important;
  line-height: 1.28 !important;
}

.sidebar-tools {
  gap: 5px !important;
}

.sidebar-tools-head {
  padding: 0 4px !important;
  font-size: 11px !important;
}

.sidebar-tool-btn {
  min-height: 31px !important;
  padding: 6px 8px !important;
  border-radius: 11px !important;
  white-space: normal !important;
}

.main-panel {
  min-width: 0 !important;
  padding: 8px 10px 24px 0 !important;
  gap: 8px !important;
}

.tab-panel {
  min-width: 0 !important;
}

.topbar,
.tenant-workbench-hero,
.employee-home-hero,
.employee-workbench-hero,
.finance-role-hero,
.inventory-hero-panel {
  min-height: 0 !important;
  padding: 9px 11px !important;
  border-radius: 16px !important;
}

.topbar h2,
.tenant-workbench-hero h3,
.employee-home-copy h3,
.employee-workbench-hero h3,
.finance-role-hero h3,
.inventory-hero-copy h3 {
  font-size: clamp(18px, 1.35vw, 22px) !important;
}

.topbar .muted,
.tenant-workbench-hero p,
.employee-home-copy p,
.employee-workbench-hero p,
.finance-role-hero p,
.inventory-hero-copy p {
  display: none !important;
}

.tabs,
.tenant-unified-secondary-tabs,
.tenant-business-subnav,
.employee-profile-subnav,
.finance-role-subnav,
.inventory-subnav,
.reports-subnav,
.hr-final-subnav {
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 31px !important;
  margin: 6px 0 !important;
  padding: 4px !important;
  gap: 4px !important;
  border-radius: 13px !important;
}

.tab,
.tenant-unified-secondary-tab,
.tenant-business-subnav-btn,
.employee-profile-subnav button,
.finance-role-subnav button,
.inventory-subnav button,
.reports-subnav button,
.hr-final-subnav button {
  min-height: 27px !important;
  padding: 5px 9px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  letter-spacing: 0 !important;
}

.panel-card,
.form-card,
.list-card,
.metric-card,
.report-card,
.alert-card,
.profile-section,
.employee-workbench-card,
.employee-profile-subpanel,
.tenant-business-card,
.tenant-role-panel,
.finance-role-page .panel-card,
.hr-final-card,
.inventory-role-card,
.inventory-assistant-card,
.inventory-create-analysis-card {
  padding: 9px 10px !important;
  border-radius: 16px !important;
}

.section-head {
  min-height: 0 !important;
  margin-bottom: 6px !important;
}

.section-head h2,
.section-head h3,
.section-head h4,
.panel-card h3,
.panel-card h4,
.form-card h3,
.form-card h4,
.list-card h3,
.list-card h4,
.report-card h3,
.report-card h4 {
  font-size: 14px !important;
  line-height: 1.14 !important;
}

.section-head p,
.panel-card > p,
.form-card > p,
.list-card > p,
.report-card > p {
  margin: 2px 0 0 !important;
  font-size: 10.5px !important;
  line-height: 1.28 !important;
}

.metrics-grid,
.dashboard-grid,
.two-column,
.finance-workbench-grid,
.finance-role-workbench-grid,
.tenant-business-grid-main,
.employee-workbench-main,
.employee-layout,
.employee-detail-layout,
.inventory-dashboard-grid,
.inventory-stock-layout {
  gap: 8px !important;
}

.metric-card,
.employee-kpi-card,
.tenant-role-kpi-card,
.finance-role-page .metric-card,
.hr-final-metric-card,
.inventory-kpi-card {
  min-height: 48px !important;
  padding: 7px 9px !important;
}

.metric-card strong,
.employee-kpi-card strong,
.tenant-role-kpi-card strong,
.finance-role-page .metric-card strong,
.hr-final-metric-card strong,
.inventory-kpi-card strong {
  font-size: clamp(16px, 1.2vw, 21px) !important;
}

.table-wrap,
.tenant-business-table-wrap,
.finance-role-table-wrap,
.employee-table-wrap {
  border-radius: 15px !important;
}

.table th,
.table td,
.data-table th,
.data-table td,
.approval-record-table th,
.approval-record-table td,
.finance-report-table th,
.finance-report-table td,
.employee-handover-history-table th,
.employee-handover-history-table td,
.tenant-business-table th,
.tenant-business-table td,
.super-admin-simple-account-table th,
.super-admin-simple-account-table td,
.employee-permission-table th,
.employee-permission-table td {
  padding: 6px 7px !important;
  font-size: 11.5px !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
}

.ghost-btn,
.primary-btn,
.link-btn,
.mini,
.approval-action,
.approval-decision-btn,
.approval-table-actions button,
.inline-actions button {
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

.modal-card {
  border-radius: 20px !important;
}

.modal-card > .section-head,
.dialog-head {
  padding: 8px 9px !important;
}

.boss-ultra-cockpit {
  min-height: calc(100vh - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 24px !important;
}

.boss-ultra-header {
  min-height: 54px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
}

.boss-ultra-title {
  min-height: 0 !important;
  padding: 0 !important;
}

.boss-ultra-eyebrow {
  margin-bottom: 2px !important;
  font-size: 8.5px !important;
  letter-spacing: 0.14em !important;
}

.boss-ultra-header h2 {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 0.98 !important;
}

.boss-ultra-note {
  display: none !important;
}

.boss-ultra-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr) !important;
  grid-template-rows: minmax(300px, 0.96fr) minmax(150px, 0.48fr) !important;
  gap: 8px !important;
}

.boss-ultra-panel {
  padding: 8px !important;
  border-radius: 17px !important;
}

.boss-ultra-panel-head {
  min-height: 24px !important;
  margin-bottom: 5px !important;
}

.boss-ultra-panel-head h3 {
  font-size: 14px !important;
}

.boss-ultra-panel-head span,
.boss-ultra-icon,
.boss-ultra-kpi .boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-todo-row > span,
.boss-ultra-work-row > span,
.boss-ultra-chart-title span {
  width: 24px !important;
  height: 24px !important;
  border-radius: 9px !important;
}

.boss-ultra-icon svg,
.boss-ultra-mini > span svg {
  width: 14px !important;
  height: 14px !important;
}

.boss-ultra-overview {
  display: grid !important;
  grid-template-rows: auto minmax(104px, 0.48fr) minmax(90px, 0.38fr) auto !important;
  overflow: hidden !important;
}

.boss-ultra-kpi-grid {
  gap: 5px !important;
}

.boss-ultra-kpi {
  min-height: 48px !important;
  padding: 6px 7px !important;
  border-radius: 12px !important;
}

.boss-ultra-kpi strong {
  font-size: clamp(13px, 1.1vw, 18px) !important;
}

.boss-ultra-overview .boss-ultra-chart-row {
  grid-template-columns: 0.95fr 1.25fr 0.72fr 0.72fr !important;
  gap: 5px !important;
  margin-top: 5px !important;
}

.boss-ultra-overview .boss-ultra-chart-card {
  min-height: 68px !important;
  padding: 5px !important;
  border-radius: 12px !important;
}

.boss-ultra-overview .boss-ultra-donut,
.boss-ultra-overview .boss-ultra-gauge {
  width: 46px !important;
  height: 46px !important;
}

.boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 46px minmax(0, 1fr) !important;
}

.boss-ultra-overview .boss-ultra-donut::after,
.boss-ultra-overview .boss-ultra-gauge::after {
  inset: 9px !important;
}

.boss-ultra-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.boss-ultra-insight-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23, 74, 130, 0.52), rgba(8, 26, 58, 0.72));
  border: 1px solid rgba(111, 219, 255, 0.14);
}

.boss-ultra-insight-strip b {
  color: #f7fcff;
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-insight-strip em {
  color: rgba(205, 232, 255, 0.7);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.1;
}

.boss-ultra-rank-list,
.boss-ultra-work-list,
.boss-ultra-todo-list,
.boss-ultra-advice-list,
.boss-ultra-mini-grid {
  gap: 5px !important;
}

.boss-ultra-rank-row,
.boss-ultra-work-row,
.boss-ultra-todo-row,
.boss-ultra-mini,
.boss-ultra-advice-list article,
.boss-ultra-empty {
  min-height: 30px !important;
  padding: 5px 6px !important;
  border-radius: 11px !important;
}

.boss-ultra-rank-extra {
  gap: 5px !important;
  margin-top: 5px !important;
}

.boss-ultra-todo-summary {
  gap: 5px !important;
  margin-bottom: 5px !important;
}

@media (max-width: 1180px) {
  .boss-ultra-cockpit {
    max-height: none !important;
  }

  .boss-ultra-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr !important;
  }

  .main-panel {
    padding: 8px !important;
  }

  .boss-ultra-insight-strip,
  .boss-ultra-overview .boss-ultra-chart-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260714 pageFineTune6: role-specific polish pass for approval, finance, HR, inventory and admin pages. */
.approval-page-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.approval-page-layout .approval-list-panel,
.approval-page-layout .approval-form-panel {
  min-width: 0 !important;
  padding: 9px 10px !important;
  border-radius: 16px !important;
}

.approval-page-layout .approval-form-panel form,
.employee-approval-page-stack,
.employee-approval-page-stack[style] {
  display: grid !important;
  gap: 8px !important;
}

.approval-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.approval-form-grid .full-span,
.employee-approval-grid-tight .full-span {
  grid-column: 1 / -1 !important;
}

.approval-form-grid textarea,
.employee-approval-grid-tight textarea {
  min-height: 58px !important;
}

.approval-table-code-cell,
.approval-table-person-cell {
  gap: 2px !important;
}

.approval-table-amount {
  white-space: nowrap !important;
}

.approval-table-actions {
  justify-content: flex-start !important;
}

.approval-flow {
  gap: 5px !important;
  padding: 8px !important;
  border-radius: 14px !important;
}

.approval-step {
  min-width: 0 !important;
}

.approval-node {
  width: 24px !important;
  height: 24px !important;
  font-size: 11px !important;
}

.approval-copy strong {
  font-size: 12px !important;
}

.approval-copy span {
  font-size: 10.5px !important;
}

.finance-role-page {
  gap: 8px !important;
}

.finance-role-tenant-select {
  min-height: 0 !important;
  padding: 7px 9px !important;
  border-radius: 13px !important;
}

.finance-role-workbench-grid,
.finance-role-metrics,
.finance-role-mini-metrics,
.hr-final-metrics {
  gap: 7px !important;
}

.finance-role-metric-btn,
.finance-role-page .metric-card,
.hr-final-metric-card {
  min-height: 50px !important;
  padding: 7px 9px !important;
  border-radius: 14px !important;
}

.finance-role-metric-btn strong,
.finance-role-page .metric-card strong,
.hr-final-metric-card strong {
  font-size: clamp(16px, 1.12vw, 20px) !important;
}

.finance-role-task-row,
.hr-final-row {
  min-height: 34px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.finance-role-task-row strong,
.hr-final-row strong {
  font-size: 12px !important;
}

.inventory-smart-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr) !important;
  gap: 8px !important;
}

.inventory-assistant-card {
  gap: 7px !important;
}

.inventory-create-guide,
.inventory-example-list {
  gap: 6px !important;
}

.inventory-create-guide > *,
.inventory-example-list > * {
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.inventory-assistant-log,
.inventory-assistant-chat {
  max-height: 150px !important;
  padding: 8px !important;
  border-radius: 13px !important;
}

.inventory-assistant-line,
.inventory-assistant-log-line,
.inventory-assistant-summary-card,
.inventory-assistant-decision,
.inventory-assistant-summary-preview,
.inventory-assistant-conflict {
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.inventory-assistant-input-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
}

.inventory-assistant-input {
  min-height: 34px !important;
}

.inventory-row-card,
.inventory-warning-card {
  gap: 6px !important;
}

.inventory-row-fields,
.inventory-warning-fields {
  gap: 5px !important;
}

.inventory-row-fields span,
.inventory-warning-fields span {
  min-height: 22px !important;
  padding: 4px 6px !important;
}

.super-admin-portal-page,
.super-admin-detail-page,
.super-admin-account-center-shell .main-panel {
  gap: 8px !important;
}

.super-admin-portal-hero,
.super-admin-subpage-head,
.super-admin-page-top {
  padding: 10px 12px !important;
  border-radius: 16px !important;
}

.super-admin-entry-grid,
.super-admin-account-list {
  gap: 8px !important;
}

.super-admin-entry-card,
.super-admin-account-row,
.super-admin-detail-page .panel-card,
.super-admin-detail-page .form-card {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 15px !important;
}

.super-admin-entry-card strong,
.super-admin-account-row h4,
.super-admin-editor-title h4 {
  font-size: 14px !important;
}

.super-admin-entry-card small,
.super-admin-account-row p,
.super-admin-section-note {
  font-size: 10.5px !important;
  line-height: 1.28 !important;
}

.super-admin-simple-form,
.super-admin-detail-page .group-account-form-grid {
  gap: 7px !important;
}

.super-admin-simple-form input,
.super-admin-simple-form select,
.super-admin-detail-page .group-account-form-grid input,
.super-admin-detail-page .group-account-form-grid select {
  min-height: 32px !important;
}

.tenant-business-card,
.tenant-role-workload {
  gap: 7px !important;
}

.tenant-business-chart,
.tenant-business-bars,
.tenant-business-work-list,
.tenant-business-advice-list {
  gap: 6px !important;
}

.tenant-business-work-row,
.tenant-business-advice-list article,
.tenant-business-mini-grid > * {
  min-height: 30px !important;
  padding: 6px 7px !important;
  border-radius: 11px !important;
}

@media (max-width: 1100px) {
  .approval-page-layout,
  .inventory-smart-layout {
    grid-template-columns: 1fr !important;
  }

  .approval-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .approval-form-grid {
    grid-template-columns: 1fr !important;
  }

  .finance-role-workbench-grid,
  .finance-role-metrics,
  .finance-role-mini-metrics,
  .hr-final-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260714 pageFineTune7: auth, warehouse mobile and empty-state finishing. */
.auth-shell {
  padding: 14px !important;
}

.auth-card {
  width: min(94vw, 420px) !important;
  padding: 22px 20px !important;
  border-radius: 22px !important;
}

.auth-card .eyebrow {
  margin-bottom: 6px !important;
  font-size: 10px !important;
}

.auth-card h1 {
  margin: 0 0 5px !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.02 !important;
}

.auth-card > .muted {
  margin: 0 0 12px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.auth-form,
.demo-accounts {
  gap: 8px !important;
}

.auth-form label {
  gap: 4px !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

.auth-form input {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}

.auth-password-field input {
  padding-right: 48px !important;
}

.auth-password-toggle {
  right: 8px !important;
  width: 30px !important;
  height: 30px !important;
}

.auth-form .primary-btn {
  width: 100% !important;
  margin-top: 2px !important;
}

.demo-accounts {
  margin-top: 10px !important;
  padding-top: 10px !important;
}

.demo-accounts p,
.demo-accounts button {
  font-size: 11px !important;
}

.empty-state {
  min-height: 72px !important;
  padding: 12px !important;
  border-radius: 14px !important;
}

.empty-state h3 {
  font-size: 14px !important;
}

.empty-state p {
  font-size: 11px !important;
}

.global-notice {
  right: 14px !important;
  bottom: 14px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
}

.warehouse-mobile-shell {
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 8px !important;
  gap: 8px !important;
}

.warehouse-mobile-hero {
  min-height: 62px !important;
  padding: 9px 10px !important;
}

.warehouse-mobile-kpis {
  gap: 6px !important;
}

.warehouse-mobile-kpi {
  min-height: 44px !important;
  padding: 6px 8px !important;
}

.warehouse-mobile-card {
  padding: 9px !important;
}

.warehouse-mobile-card-head {
  margin-bottom: 6px !important;
}

.warehouse-mobile-example-list {
  gap: 5px !important;
}

.warehouse-mobile-ai-box {
  padding: 8px !important;
  border-radius: 12px !important;
}

.tenant-unified-placeholder,
.tenant-business-empty,
.tenant-role-empty,
.tenant-workbench-empty,
.empty-inline,
.mobile-empty {
  min-height: 58px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(14, 165, 233, 0.05)),
    rgba(255, 255, 255, 0.88) !important;
  border: 1px dashed rgba(15, 81, 116, 0.16) !important;
  box-shadow: none !important;
}

.tenant-unified-placeholder h3,
.tenant-unified-placeholder h4,
.tenant-business-empty strong,
.tenant-role-empty strong,
.tenant-workbench-empty strong {
  margin: 0 0 4px !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
}

.tenant-unified-placeholder p,
.tenant-business-empty,
.tenant-role-empty,
.tenant-workbench-empty,
.empty-inline,
.mobile-empty {
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: #64748b !important;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 18px 16px !important;
  }

  .global-notice {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    max-width: none !important;
  }
}

/* 20260714 pageFineTune10: final visual pass for dense role pages and boss cockpit. */
.shell:not(.boss-shell) {
  grid-template-columns: minmax(248px, 272px) minmax(0, 1fr) !important;
  gap: 6px !important;
}

.shell:not(.boss-shell) .sidebar {
  padding: 12px 10px !important;
}

.shell:not(.boss-shell) .main-panel {
  padding: 12px 12px 36px 8px !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) .topbar {
  min-height: 58px !important;
  padding: 9px 13px !important;
}

.shell:not(.boss-shell) .topbar h2 {
  font-size: clamp(18px, 1.55vw, 24px) !important;
}

.shell:not(.boss-shell) .topbar .muted,
.shell:not(.boss-shell) .topbar .eyebrow {
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .tenant-unified-primary-btn,
.shell:not(.boss-shell) .tenant-unified-pms-btn,
.shell:not(.boss-shell) .sidebar-tool-btn {
  justify-content: flex-start !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.tenant-unified-side-title {
  min-height: 32px !important;
  padding: 6px 8px !important;
}

.tenant-unified-side-title span,
.shell:not(.boss-shell) .sidebar-tools-head h2 {
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
}

.tenant-unified-primary-list,
.sidebar-tools {
  gap: 6px !important;
}

.tenant-unified-secondary-tabs,
.tenant-business-subnav,
.employee-profile-subnav,
.finance-role-subnav,
.hr-final-subnav {
  min-height: 30px !important;
  padding: 4px !important;
  gap: 4px !important;
  border-radius: 12px !important;
}

.tenant-unified-secondary-tab,
.tenant-business-subnav-btn,
.employee-profile-subnav button,
.finance-role-subnav button,
.hr-final-subnav button {
  min-height: 26px !important;
  padding: 5px 9px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .tab-panel {
  margin-top: 8px !important;
  padding: 11px !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .report-card,
.finance-role-page .panel-card,
.hr-final-card,
.inventory-role-card,
.inventory-assistant-card,
.inventory-create-analysis-card {
  padding: 9px 10px !important;
  border-radius: 14px !important;
}

.shell:not(.boss-shell) .section-head {
  min-height: 0 !important;
  margin-bottom: 6px !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-card h4,
.shell:not(.boss-shell) .form-card h4,
.shell:not(.boss-shell) .list-card h4,
.shell:not(.boss-shell) .report-card h4 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .subtle,
.shell:not(.boss-shell) .muted,
.shell:not(.boss-shell) .field-hint {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .metric-card,
.finance-role-page .metric-card,
.hr-final-metric-card,
.inventory-kpi-card {
  min-height: 46px !important;
  padding: 7px 9px !important;
}

.shell:not(.boss-shell) .metric-card strong,
.finance-role-page .metric-card strong,
.hr-final-metric-card strong,
.inventory-kpi-card strong {
  font-size: clamp(15px, 1.12vw, 20px) !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table th,
.shell:not(.boss-shell) .tenant-business-table td {
  padding: 6px 7px !important;
  font-size: 11.5px !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
}

.shell:not(.boss-shell) .inline-actions,
.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .section-head-actions {
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}

.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .mini,
.shell:not(.boss-shell) .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) .inline-actions button {
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 30px !important;
  padding: 5px 8px !important;
  font-size: 11.5px !important;
}

.boss-ultra-cockpit {
  padding: 6px !important;
  gap: 6px !important;
}

.boss-ultra-header {
  min-height: 48px !important;
  padding: 6px 10px !important;
}

.boss-ultra-cockpit .boss-ultra-eyebrow {
  font-size: 9px !important;
  letter-spacing: 0.18em !important;
}

.boss-ultra-header h2 {
  font-size: clamp(19px, 1.85vw, 28px) !important;
}

.boss-ultra-panel {
  padding: 7px !important;
  border-radius: 16px !important;
}

.boss-ultra-panel-head {
  min-height: 23px !important;
  margin-bottom: 4px !important;
  padding: 0 6px !important;
}

.boss-ultra-panel-head h3 {
  font-size: 13px !important;
}

.boss-ultra-panel-head span,
.boss-ultra-icon,
.boss-ultra-kpi .boss-ultra-icon,
.boss-ultra-mini > span,
.boss-ultra-advice-list span,
.boss-ultra-chart-title span {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  font-size: 10px !important;
  border-radius: 9px !important;
}

.boss-ultra-overview {
  grid-template-rows: auto minmax(96px, 0.48fr) minmax(82px, 0.36fr) auto !important;
}

.boss-ultra-overview .boss-ultra-kpi-grid,
.boss-ultra-overview .boss-ultra-chart-row {
  gap: 5px !important;
}

.boss-ultra-overview .boss-ultra-kpi {
  min-height: 0 !important;
  padding: 7px 8px !important;
}

.boss-ultra-overview .boss-ultra-chart-card {
  min-height: 58px !important;
  padding: 5px !important;
}

.boss-ultra-insight-strip {
  gap: 4px !important;
}

.boss-ultra-insight-strip span {
  min-height: 34px !important;
  padding: 5px 6px !important;
  border-radius: 11px !important;
}

.boss-ultra-insight-strip b {
  font-size: 11px !important;
}

.boss-ultra-insight-strip em {
  font-size: 9px !important;
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 1fr !important;
  }

  .shell:not(.boss-shell) .main-panel {
    padding: 10px !important;
  }
}

/* 20260714 pageFineTune11: finishing details for dialogs, status chips and dense lists. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.38) rgba(226, 232, 240, 0.45);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.45);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.55), rgba(15, 118, 110, 0.55));
  border-radius: 999px;
}

.modal::backdrop,
dialog::backdrop {
  background: rgba(8, 22, 35, 0.38) !important;
  backdrop-filter: blur(8px) !important;
}

.modal-card {
  max-height: min(84vh, 760px) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 81, 116, 0.1) !important;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18) !important;
}

.modal-card > .section-head,
.dialog-head {
  margin: -4px -4px 8px !important;
  padding: 8px 10px !important;
  border-radius: 15px !important;
}

.modal-actions {
  margin-top: 4px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.profile-form,
.tenant-form-grid,
.compact-form-grid,
.approval-form-grid,
.employee-handover-grid,
.hr-final-form-grid,
.inventory-create-grid {
  gap: 7px 9px !important;
}

.profile-form label,
.tenant-form-grid label,
.compact-form-grid label,
.approval-form-grid label,
.employee-handover-grid label,
.hr-final-form-grid label,
.inventory-create-grid label {
  gap: 3px !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

.status-pill,
.pill,
.mini-tag,
.tag,
.badge {
  min-height: 22px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.status-ok,
.status-success,
.status-pill.success,
.pill.success {
  color: #067647 !important;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.92), rgba(240, 253, 244, 0.86)) !important;
}

.status-warn,
.status-warning,
.status-pill.warning,
.pill.warning {
  color: #9a5b00 !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 251, 235, 0.88)) !important;
}

.status-info,
.status-pill.info,
.pill.info {
  color: #135ab6 !important;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(239, 246, 255, 0.88)) !important;
}

.status-danger,
.status-pill.danger,
.pill.danger,
.ghost-btn.danger {
  color: #b42318 !important;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), rgba(255, 241, 242, 0.88)) !important;
}

.approval-table-actions,
.inline-actions,
.section-head-actions,
.form-actions {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}

.approval-table-actions .ghost-btn,
.approval-table-actions .primary-btn,
.inline-actions .ghost-btn,
.inline-actions .primary-btn,
.section-head-actions .ghost-btn,
.section-head-actions .primary-btn {
  min-width: 48px !important;
  max-width: 88px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.employee-approval-flat-table .approval-table-actions,
.enterprise-approval-flat-table .approval-table-actions {
  display: flex !important;
  width: 100% !important;
}

.table-wrap,
.employee-handover-history-table-wrap,
.employee-directory-table-wrap,
.finance-report-table-wrap,
.tenant-business-table-wrap,
.tenant-report-table-wrap,
.finance-role-table-wrap {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.empty-state,
.tenant-unified-placeholder,
.tenant-business-empty,
.tenant-role-empty,
.tenant-workbench-empty,
.empty-inline {
  min-height: 54px !important;
  align-content: center !important;
  text-align: left !important;
}

.empty-state h3,
.tenant-unified-placeholder h3,
.tenant-unified-placeholder h4 {
  font-size: 13.5px !important;
}

.global-notice {
  min-width: min(320px, calc(100vw - 28px)) !important;
  border: 1px solid rgba(15, 81, 116, 0.12) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}

@media (min-width: 1280px) {
  #profileDialog .modal-card-wide,
  #tenantDialog .modal-card-wide {
    width: min(1180px, calc(100vw - 40px)) !important;
  }

  #profileDialog .profile-form {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #profileDialog .full-span {
    grid-column: 1 / -1 !important;
  }
}

/* 20260714 pageFineTune12: long-text protection and consistent role chrome. */
.shell:not(.boss-shell) {
  overflow-x: hidden !important;
}

.shell:not(.boss-shell) .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 10px !important;
}

.shell:not(.boss-shell) .topbar > div:first-child {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .topbar h2,
.shell:not(.boss-shell) .topbar .muted,
.group-role-topbar-tenant select,
.account-indicator,
.tenant-unified-primary-btn,
.tenant-unified-pms-btn,
.sidebar-tool-btn {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .topbar-actions {
  justify-content: flex-end !important;
  max-width: min(48vw, 620px) !important;
}

.shell:not(.boss-shell) .topbar-actions > * {
  flex: 0 1 auto !important;
}

.group-role-topbar-tenant {
  max-width: min(280px, 32vw) !important;
}

.group-role-topbar-tenant select {
  max-width: 190px !important;
}

.tenant-unified-side-title,
.sidebar-tools-head,
.section-head,
.dialog-head,
.modal-card > .section-head {
  min-width: 0 !important;
}

.section-head > div,
.dialog-head > div,
.modal-card > .section-head > div {
  min-width: 0 !important;
}

.section-head h2,
.section-head h3,
.section-head h4,
.dialog-head h2,
.modal-card > .section-head h2 {
  overflow-wrap: anywhere !important;
}

.profile-item,
.approval-detail-block,
.tenant-business-work-cell,
.employee-directory-card,
.compact-summary-item,
.boss-detail-cell {
  min-width: 0 !important;
}

.profile-item strong,
.approval-detail-block strong,
.tenant-business-work-cell strong,
.employee-directory-card strong,
.compact-summary-item strong,
.boss-detail-cell strong,
.table td,
.employee-handover-history-table td,
.approval-record-table td,
.finance-report-table td,
.tenant-business-table td {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.table th:last-child,
.employee-handover-history-table th:last-child,
.approval-record-table th:last-child,
.finance-report-table th:last-child,
.tenant-business-table th:last-child {
  width: 1%;
  min-width: 76px;
}

.table td:last-child,
.employee-handover-history-table td:last-child,
.approval-record-table td:last-child,
.finance-report-table td:last-child,
.tenant-business-table td:last-child {
  white-space: normal !important;
}

.approval-table-actions .ghost-btn,
.approval-table-actions .primary-btn,
.inline-actions .ghost-btn,
.inline-actions .primary-btn,
.section-head-actions .ghost-btn,
.section-head-actions .primary-btn {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.tenant-workbench-reminder-card,
.finance-advice-list > div,
.inventory-warning-card,
.hr-final-row,
.finance-role-task-row,
.employee-workbench-todo-row {
  border-radius: 13px !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}

.tenant-workbench-reminder-card:hover,
.finance-advice-list > div:hover,
.inventory-warning-card:hover,
.hr-final-row:hover,
.finance-role-task-row:hover,
.employee-workbench-todo-row:hover {
  transform: translateY(-1px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.auth-card {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16) !important;
}

@media (max-width: 1120px) {
  .shell:not(.boss-shell) .topbar {
    grid-template-columns: 1fr !important;
  }

  .shell:not(.boss-shell) .topbar-actions {
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .group-role-topbar-tenant {
    max-width: 100% !important;
  }
}

/* 20260714 pageFineTune13: safer action columns and denser boss ranking panel. */
.shell:not(.boss-shell) .finance-report-table th:last-child,
.shell:not(.boss-shell) .finance-report-table td:last-child,
.shell:not(.boss-shell) .tenant-business-table th:last-child,
.shell:not(.boss-shell) .tenant-business-table td:last-child {
  width: auto !important;
  min-width: 0 !important;
  white-space: normal !important;
}

.shell:not(.boss-shell) .enterprise-approval-flat-table th:last-child,
.shell:not(.boss-shell) .enterprise-approval-flat-table td:last-child,
.shell:not(.boss-shell) .employee-approval-flat-table th:last-child,
.shell:not(.boss-shell) .employee-approval-flat-table td:last-child,
.shell:not(.boss-shell) .employee-handover-edit-table th:last-child,
.shell:not(.boss-shell) .employee-handover-edit-table td:last-child,
.shell:not(.boss-shell) .super-admin-simple-account-table th:last-child,
.shell:not(.boss-shell) .super-admin-simple-account-table td:last-child {
  width: 1% !important;
  min-width: 72px !important;
  white-space: normal !important;
}

.boss-ultra-rank {
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
}

.boss-ultra-rank-list {
  grid-template-rows: repeat(5, minmax(30px, auto)) !important;
  gap: 5px !important;
}

.boss-ultra-rank-row {
  grid-template-columns: 30px minmax(0, 1fr) minmax(72px, max-content) 64px !important;
  min-height: 32px !important;
  padding: 5px 7px !important;
  border-radius: 12px !important;
  gap: 6px !important;
}

.boss-ultra-rank-no {
  font-size: 12px !important;
}

.boss-ultra-rank-row strong {
  font-size: 12px !important;
}

.boss-ultra-rank-row em {
  justify-self: end;
  font-size: 10.5px !important;
}

.boss-ultra-rank-row i {
  grid-column: auto !important;
  width: 64px !important;
  height: 5px !important;
}

.boss-ultra-rank-extra {
  gap: 5px !important;
  margin-top: 5px !important;
}

.boss-ultra-rank-extra div {
  min-height: 28px !important;
  padding: 4px !important;
  border-radius: 10px !important;
}

.boss-ultra-rank-extra span {
  font-size: 9px !important;
}

.boss-ultra-rank-extra strong {
  font-size: 12px !important;
}

.boss-ultra-rank-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-top: 5px;
  padding: 5px 7px;
  border-radius: 11px;
  color: rgba(218, 239, 255, 0.9);
  background: linear-gradient(90deg, rgba(7, 28, 66, 0.82), rgba(14, 116, 144, 0.26));
  border: 1px solid rgba(91, 199, 255, 0.14);
}

.boss-ultra-rank-insight strong {
  color: #7cefff;
  font-size: 10px;
  white-space: nowrap;
}

.boss-ultra-rank-insight span {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 20260714 pageFineTune14: common role-page visual refinement. */
body:not(.sidebar-nav-collapsed) .shell:not(.boss-shell) {
  grid-template-columns: minmax(238px, 268px) minmax(0, 1fr) !important;
  gap: 6px !important;
}

.shell:not(.boss-shell) .sidebar {
  padding: 8px !important;
}

.shell:not(.boss-shell) .sidebar-tools {
  gap: 5px !important;
  padding: 0 !important;
}

.shell:not(.boss-shell) .sidebar-tools-head,
.shell:not(.boss-shell) .tenant-unified-side-title {
  min-height: 34px !important;
  padding: 6px 7px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, rgba(15, 81, 116, 0.08), rgba(15, 118, 110, 0.08)) !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.shell:not(.boss-shell) .sidebar-tools-head h2,
.shell:not(.boss-shell) .sidebar-tools-head h3,
.shell:not(.boss-shell) .tenant-unified-side-title span {
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tenant-unified-primary-btn,
.shell:not(.boss-shell) .tenant-unified-pms-btn {
  min-height: 34px !important;
  justify-content: flex-start !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn.active,
.shell:not(.boss-shell) .tenant-unified-primary-btn.active,
.shell:not(.boss-shell) .tenant-unified-pms-btn.active {
  box-shadow: 0 8px 18px rgba(15, 81, 116, 0.12) !important;
}

.shell:not(.boss-shell) .main-panel {
  padding-left: 0 !important;
  padding-right: 9px !important;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .inventory-hero-panel {
  padding: 8px 10px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .topbar h2,
.shell:not(.boss-shell) .tenant-workbench-hero h2,
.shell:not(.boss-shell) .employee-home-hero h2,
.shell:not(.boss-shell) .employee-workbench-hero h2,
.shell:not(.boss-shell) .finance-role-hero h2,
.shell:not(.boss-shell) .inventory-hero-panel h2 {
  font-size: clamp(18px, 1.55vw, 24px) !important;
  line-height: 1.08 !important;
}

.shell:not(.boss-shell) .topbar p,
.shell:not(.boss-shell) .topbar .muted,
.shell:not(.boss-shell) .tenant-workbench-hero p,
.shell:not(.boss-shell) .employee-home-hero p,
.shell:not(.boss-shell) .employee-workbench-hero p,
.shell:not(.boss-shell) .finance-role-hero p,
.shell:not(.boss-shell) .inventory-hero-panel p {
  margin-top: 3px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .tabs:not(.hidden):not(:empty),
body.tenant-primary-secondary-nav .tabs:not(.hidden):not(:empty),
.shell:not(.boss-shell) .employee-profile-subnav-card,
.shell:not(.boss-shell) .employee-profile-subnav,
.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .finance-role-subnav,
.shell:not(.boss-shell) .inventory-subnav,
.shell:not(.boss-shell) .reports-subnav {
  align-items: center !important;
  gap: 5px !important;
  margin: 7px 0 8px !important;
  padding: 5px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
}

.shell:not(.boss-shell) .tab,
.shell:not(.boss-shell) .tenant-unified-secondary-tab,
.shell:not(.boss-shell) .tenant-business-subnav-btn,
.shell:not(.boss-shell) .employee-profile-subnav button,
.shell:not(.boss-shell) .finance-role-subnav button,
.shell:not(.boss-shell) .inventory-subnav button,
.shell:not(.boss-shell) .reports-subnav button {
  min-height: 29px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.shell:not(.boss-shell) .tab.active,
.shell:not(.boss-shell) .tenant-unified-secondary-tab.active,
.shell:not(.boss-shell) .tenant-business-subnav-btn.active,
.shell:not(.boss-shell) .employee-profile-subnav button.active,
.shell:not(.boss-shell) .finance-role-subnav button.active,
.shell:not(.boss-shell) .inventory-subnav button.active,
.shell:not(.boss-shell) .reports-subnav button.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #0f5a74) !important;
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.16) !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .employee-profile-subpanel,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .tenant-business-card,
.shell:not(.boss-shell) .inventory-assistant-card,
.shell:not(.boss-shell) .warehouse-mobile-card,
.shell:not(.boss-shell) .finance-role-page .panel-card {
  padding: 9px 10px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .dialog-head,
.shell:not(.boss-shell) .modal-card > .section-head {
  min-height: 0 !important;
  margin-bottom: 7px !important;
  padding-block: 6px !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .dialog-head h2,
.shell:not(.boss-shell) .modal-card > .section-head h2 {
  font-size: clamp(14px, 1.08vw, 18px) !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .dialog-head p,
.shell:not(.boss-shell) .modal-card > .section-head p {
  margin-top: 2px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .finance-role-metric-btn,
.shell:not(.boss-shell) .hr-final-metric-card,
.shell:not(.boss-shell) .inventory-kpi-card,
.shell:not(.boss-shell) .employee-kpi-card,
.shell:not(.boss-shell) .tenant-role-kpi-card {
  min-height: 44px !important;
  padding: 7px 8px !important;
  border-radius: 13px !important;
}

.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .finance-role-metric-btn strong,
.shell:not(.boss-shell) .hr-final-metric-card strong,
.shell:not(.boss-shell) .inventory-kpi-card strong,
.shell:not(.boss-shell) .employee-kpi-card strong,
.shell:not(.boss-shell) .tenant-role-kpi-card strong {
  font-size: clamp(15px, 1.1vw, 20px) !important;
}

.shell:not(.boss-shell) .finance-report-table-wrap,
.shell:not(.boss-shell) .tenant-report-table-wrap,
.shell:not(.boss-shell) .tenant-business-table-wrap,
.shell:not(.boss-shell) .table-scroll {
  border-radius: 13px !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table th,
.shell:not(.boss-shell) .tenant-business-table td,
.shell:not(.boss-shell) .tenant-report-table th,
.shell:not(.boss-shell) .tenant-report-table td {
  padding: 5px 6px !important;
  font-size: 11.2px !important;
  line-height: 1.2 !important;
}

.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .inline-actions button,
.shell:not(.boss-shell) .approval-table-actions button {
  min-height: 27px !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  font-size: 11.2px !important;
}

@media (max-width: 1120px) {
  body:not(.sidebar-nav-collapsed) .shell:not(.boss-shell) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .shell:not(.boss-shell) .main-panel {
    padding: 8px !important;
  }
}

/* 20260714 pageFineTune15: forms, dialogs, pagers and empty states refinement. */
.shell:not(.boss-shell) .profile-form,
.shell:not(.boss-shell) .tenant-form-grid,
.shell:not(.boss-shell) .compact-form-grid,
.shell:not(.boss-shell) .approval-form-grid,
.shell:not(.boss-shell) .employee-handover-grid,
.shell:not(.boss-shell) .hr-final-form-grid,
.shell:not(.boss-shell) .inventory-create-grid {
  gap: 6px 8px !important;
}

.shell:not(.boss-shell) .profile-form label,
.shell:not(.boss-shell) .tenant-form-grid label,
.shell:not(.boss-shell) .compact-form-grid label,
.shell:not(.boss-shell) .approval-form-grid label,
.shell:not(.boss-shell) .employee-handover-grid label,
.shell:not(.boss-shell) .hr-final-form-grid label,
.shell:not(.boss-shell) .inventory-create-grid label,
.shell:not(.boss-shell) label.field-xs,
.shell:not(.boss-shell) label.field-sm,
.shell:not(.boss-shell) label.field-md {
  min-width: 0 !important;
  gap: 3px !important;
  font-size: 11.2px !important;
  line-height: 1.15 !important;
  color: rgba(15, 35, 31, 0.76) !important;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 29px !important;
  padding: 5px 7px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  line-height: 1.16 !important;
}

.shell:not(.boss-shell) textarea,
.modal-card textarea {
  min-height: 54px !important;
  resize: vertical !important;
}

.shell:not(.boss-shell) input:focus,
.shell:not(.boss-shell) select:focus,
.shell:not(.boss-shell) textarea:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.16) !important;
  border-color: rgba(15, 118, 110, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08) !important;
}

.modal-card {
  width: min(94vw, 980px) !important;
  padding: 12px !important;
}

.modal-card.modal-card-wide,
#tenantDialog .modal-card-wide {
  width: min(1180px, calc(100vw - 36px)) !important;
}

.modal-card > .section-head,
.dialog-head {
  margin: -3px -3px 7px !important;
  padding: 8px 9px !important;
}

.modal-actions,
.form-actions,
.inline-actions.employee-handover-history-pager,
.pagination,
.pager,
.table-pager {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  min-width: 0 !important;
}

.modal-actions,
.form-actions {
  margin-top: 6px !important;
  padding-top: 7px !important;
}

.inline-actions.employee-handover-history-pager,
.pagination,
.pager,
.table-pager {
  margin-top: 7px !important;
}

.shell:not(.boss-shell) .empty-state,
.shell:not(.boss-shell) .tenant-business-empty,
.shell:not(.boss-shell) .tenant-role-empty,
.shell:not(.boss-shell) .tenant-workbench-empty,
.shell:not(.boss-shell) .boss-force-empty,
.shell:not(.boss-shell) .mobile-empty,
.shell:not(.boss-shell) td[colspan] > div {
  min-height: 42px !important;
  display: grid !important;
  place-items: center !important;
  padding: 10px !important;
  border-radius: 13px !important;
  color: rgba(15, 35, 31, 0.58) !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(241, 248, 245, 0.72)) !important;
  border: 1px dashed rgba(15, 81, 116, 0.14) !important;
}

.shell:not(.boss-shell) .profile-field,
.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .approval-detail-block,
.shell:not(.boss-shell) .compact-summary-item,
.shell:not(.boss-shell) .employee-directory-card,
.shell:not(.boss-shell) .tenant-report-mini-card {
  min-height: 38px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .profile-field span,
.shell:not(.boss-shell) .profile-item span,
.shell:not(.boss-shell) .approval-detail-block span,
.shell:not(.boss-shell) .compact-summary-item span,
.shell:not(.boss-shell) .tenant-report-mini-card span {
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .profile-field strong,
.shell:not(.boss-shell) .profile-item strong,
.shell:not(.boss-shell) .approval-detail-block strong,
.shell:not(.boss-shell) .compact-summary-item strong,
.shell:not(.boss-shell) .tenant-report-mini-card strong {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge {
  min-height: 20px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
}

.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .inline-actions,
.shell:not(.boss-shell) .section-head-actions {
  gap: 4px !important;
}

.shell:not(.boss-shell) .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) .approval-table-actions .primary-btn,
.shell:not(.boss-shell) .inline-actions .ghost-btn,
.shell:not(.boss-shell) .inline-actions .primary-btn {
  white-space: nowrap !important;
}

@media (min-width: 1180px) {
  .shell:not(.boss-shell) .profile-form,
  .shell:not(.boss-shell) .tenant-form-grid,
  .shell:not(.boss-shell) .approval-form-grid,
  .shell:not(.boss-shell) .employee-handover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* 20260714 pageFineTune16: approval flow, record rows and action zones. */
.shell:not(.boss-shell) .approval-flow {
  gap: 5px !important;
  margin: 7px 0 9px !important;
  padding-bottom: 2px !important;
}

.shell:not(.boss-shell) .approval-step {
  min-width: 112px !important;
  gap: 6px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .approval-node {
  width: 22px !important;
  height: 22px !important;
  font-size: 10px !important;
}

.shell:not(.boss-shell) .approval-copy {
  gap: 1px !important;
}

.shell:not(.boss-shell) .approval-copy strong {
  font-size: 11px !important;
}

.shell:not(.boss-shell) .approval-copy span {
  font-size: 9.8px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .approval-line {
  width: 16px !important;
}

.shell:not(.boss-shell) .compact-list,
.shell:not(.boss-shell) .tenant-workbench-reminder-list,
.shell:not(.boss-shell) .finance-role-task-list,
.shell:not(.boss-shell) .tenant-role-activity-list,
.shell:not(.boss-shell) .inventory-compact-list,
.shell:not(.boss-shell) .warehouse-mobile-stock-list,
.shell:not(.boss-shell) .warehouse-mobile-warning-list {
  gap: 5px !important;
}

.shell:not(.boss-shell) .compact-list-item,
.shell:not(.boss-shell) .tenant-workbench-row,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .hr-final-row,
.shell:not(.boss-shell) .inventory-row-card,
.shell:not(.boss-shell) .inventory-warning-card,
.shell:not(.boss-shell) .warehouse-mobile-stock-row,
.shell:not(.boss-shell) .warehouse-mobile-warning-row,
.shell:not(.boss-shell) .employee-workbench-todo-row {
  min-height: 32px !important;
  padding: 6px 7px !important;
  border-radius: 11px !important;
}

.shell:not(.boss-shell) .compact-list-item strong,
.shell:not(.boss-shell) .tenant-workbench-row strong,
.shell:not(.boss-shell) .finance-role-task-row strong,
.shell:not(.boss-shell) .hr-final-row strong,
.shell:not(.boss-shell) .inventory-row-card strong,
.shell:not(.boss-shell) .inventory-warning-card strong,
.shell:not(.boss-shell) .employee-workbench-todo-row strong {
  font-size: 11.5px !important;
  line-height: 1.16 !important;
}

.shell:not(.boss-shell) .compact-list-item .item-meta,
.shell:not(.boss-shell) .tenant-workbench-row span,
.shell:not(.boss-shell) .finance-role-task-row span,
.shell:not(.boss-shell) .hr-final-row span,
.shell:not(.boss-shell) .inventory-row-card span,
.shell:not(.boss-shell) .inventory-warning-card span,
.shell:not(.boss-shell) .employee-workbench-todo-row span {
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}

.shell:not(.boss-shell) .approval-detail-dialog-body {
  gap: 8px !important;
}

.shell:not(.boss-shell) .approval-detail-grid {
  gap: 7px !important;
}

.shell:not(.boss-shell) .approval-detail-footer {
  padding-top: 6px !important;
}

.shell:not(.boss-shell) .approval-detail-actions {
  gap: 5px !important;
  overflow-x: visible !important;
}

.shell:not(.boss-shell) .action-cell,
.shell:not(.boss-shell) td .inline-actions,
.shell:not(.boss-shell) td .approval-table-actions {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) .approval-table-actions .primary-btn,
.shell:not(.boss-shell) .inline-actions .ghost-btn,
.shell:not(.boss-shell) .inline-actions .primary-btn,
.shell:not(.boss-shell) .action-cell .ghost-btn,
.shell:not(.boss-shell) .action-cell .primary-btn {
  max-width: 88px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .table tbody tr,
.shell:not(.boss-shell) .employee-handover-history-table tbody tr,
.shell:not(.boss-shell) .finance-report-table tbody tr,
.shell:not(.boss-shell) .tenant-business-table tbody tr,
.shell:not(.boss-shell) .tenant-report-table tbody tr {
  transition: background 0.14s ease, box-shadow 0.14s ease !important;
}

.shell:not(.boss-shell) .table tbody tr:hover td,
.shell:not(.boss-shell) .employee-handover-history-table tbody tr:hover td,
.shell:not(.boss-shell) .finance-report-table tbody tr:hover td,
.shell:not(.boss-shell) .tenant-business-table tbody tr:hover td,
.shell:not(.boss-shell) .tenant-report-table tbody tr:hover td {
  background: rgba(15, 118, 110, 0.035) !important;
}

/* 20260714 pageFineTune17: login and standalone entry finishing. */
.auth-shell {
  padding: 16px !important;
}

.auth-card {
  width: min(92vw, 420px) !important;
  padding: 24px 22px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
}

.auth-card .eyebrow {
  min-height: 22px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
}

.auth-card h1 {
  margin: 9px 0 5px !important;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1 !important;
}

.auth-card > .muted {
  margin-bottom: 14px !important;
  font-size: 12px !important;
  line-height: 1.36 !important;
}

.auth-form {
  gap: 9px !important;
}

.auth-form label {
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form input {
  min-height: 38px !important;
  padding: 8px 11px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

.auth-password-field input {
  padding-right: 48px !important;
}

.auth-password-toggle {
  right: 7px !important;
  width: 31px !important;
  height: 31px !important;
  border-radius: 10px !important;
}

.auth-password-toggle svg {
  width: 18px !important;
  height: 18px !important;
}

.auth-form .primary-btn {
  min-height: 40px !important;
  margin-top: 3px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
}

.global-notice {
  right: 16px !important;
  bottom: 16px !important;
  max-width: min(420px, calc(100vw - 32px)) !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }

  .auth-card h1 {
    font-size: 28px !important;
  }
}

/* 20260714 pageFineTune18: attachments, filters, alerts and scroll surfaces. */
.shell:not(.boss-shell) .asset-link,
.modal-card .asset-link,
.finance-invoice-qr-card .asset-link {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-height: 22px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  color: #0f5a74 !important;
  background: rgba(14, 165, 233, 0.08) !important;
  text-decoration: none !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .asset-link:hover,
.modal-card .asset-link:hover,
.finance-invoice-qr-card .asset-link:hover {
  color: #0f766e !important;
  background: rgba(15, 118, 110, 0.11) !important;
}

.shell:not(.boss-shell) .field-hint,
.shell:not(.boss-shell) [data-invoice-file-list],
.shell:not(.boss-shell) [data-invoice-file-tip],
.modal-card .field-hint {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-height: 20px !important;
  color: rgba(15, 35, 31, 0.58) !important;
  font-size: 10.3px !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) input[type="file"],
.modal-card input[type="file"] {
  min-height: 31px !important;
  padding: 4px 6px !important;
  border-style: dashed !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.shell:not(.boss-shell) .alert-banner,
.shell:not(.boss-shell) .invoice-reminder,
.shell:not(.boss-shell) .employee-handover-edit-alert {
  margin: 7px 0 !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  font-size: 11.5px !important;
  line-height: 1.32 !important;
}

.shell:not(.boss-shell) .reminder-item {
  margin-top: 5px !important;
  padding: 6px 7px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

.shell:not(.boss-shell) .table-filter-input,
.shell:not(.boss-shell) input[type="search"] {
  min-height: 30px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .employee-handover-history-table-wrap,
.shell:not(.boss-shell) .employee-directory-table-wrap,
.shell:not(.boss-shell) .finance-report-table-wrap,
.shell:not(.boss-shell) .tenant-report-table-wrap,
.shell:not(.boss-shell) .tenant-business-table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: thin !important;
}

.shell:not(.boss-shell) .employee-handover-history-table-wrap::-webkit-scrollbar,
.shell:not(.boss-shell) .employee-directory-table-wrap::-webkit-scrollbar,
.shell:not(.boss-shell) .finance-report-table-wrap::-webkit-scrollbar,
.shell:not(.boss-shell) .tenant-report-table-wrap::-webkit-scrollbar,
.shell:not(.boss-shell) .tenant-business-table-wrap::-webkit-scrollbar {
  height: 7px !important;
}

.shell:not(.boss-shell) .profile-attachments {
  display: grid !important;
  gap: 5px !important;
}

.shell:not(.boss-shell) .profile-attachments p,
.shell:not(.boss-shell) .profile-block p {
  margin: 0 !important;
  font-size: 11.2px !important;
  line-height: 1.35 !important;
}

.shell:not(.boss-shell) .profile-inline-meta {
  margin-top: 2px !important;
  font-size: 10.6px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .finance-invoice-qr-card {
  gap: 7px !important;
  padding: 9px !important;
  border-radius: 14px !important;
}

.shell:not(.boss-shell) .finance-invoice-qr-card img {
  width: 104px !important;
  height: 104px !important;
  border-radius: 12px !important;
}

/* 20260714 pageFineTune19: admin/account center and residual fixed spacing cleanup. */
.section-head-spaced {
  margin-top: 12px !important;
}

.hr-final-filter-actions {
  margin-bottom: 8px !important;
  flex-wrap: wrap !important;
}

.hr-final-directory-actions {
  margin-top: 8px !important;
}

.super-admin-account-center-shell {
  grid-template-columns: minmax(238px, 268px) minmax(0, 1fr) !important;
}

.super-admin-account-center-shell .main-panel,
.super-admin-portal-shell .main-panel,
.super-admin-home-shell .main-panel {
  padding: 10px !important;
}

.super-admin-account-center-shell .topbar,
.super-admin-account-center-shell .sidebar-tools,
.super-admin-portal-page,
.super-admin-detail-page,
.super-admin-account-center-shell .group-account-manage-page {
  border-radius: 18px !important;
}

.super-admin-portal-page,
.super-admin-detail-page,
.group-account-manage-page,
.super-admin-account-center-shell .group-account-body {
  gap: 8px !important;
}

.super-admin-page-top,
.super-admin-subpage-head,
.super-admin-portal-hero {
  min-height: 0 !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
}

.super-admin-page-top h3,
.super-admin-subpage-head h3,
.super-admin-portal-hero h3 {
  font-size: clamp(18px, 1.7vw, 26px) !important;
  line-height: 1.1 !important;
}

.super-admin-entry-grid,
.super-admin-account-list,
.super-admin-detail-grid,
.group-account-body.two-column {
  gap: 8px !important;
}

.super-admin-entry-card,
.super-admin-account-row,
.super-admin-detail-page .panel-card,
.super-admin-detail-page .form-card,
.group-account-summary,
.group-account-body .panel-card,
.group-account-body .form-card {
  min-height: 0 !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
}

.group-account-form-grid {
  gap: 6px 8px !important;
}

.group-account-form-grid input,
.group-account-form-grid select {
  min-height: 31px !important;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

.group-account-form-grid .primary-btn {
  min-height: 32px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.super-admin-simple-account-table th,
.super-admin-simple-account-table td {
  padding: 5px 6px !important;
  font-size: 11.2px !important;
}

.tenant-workbench-reminders {
  gap: 8px !important;
}

.tenant-workbench-reminder-card {
  min-height: 150px !important;
  gap: 7px !important;
  padding: 9px !important;
  border-radius: 14px !important;
}

.tenant-workbench-count {
  min-width: 26px !important;
  height: 26px !important;
  font-size: 12px !important;
}

.tenant-workbench-jump {
  min-height: 32px !important;
  font-size: 12px !important;
}

@media (max-width: 960px) {
  .super-admin-account-center-shell {
    grid-template-columns: 1fr !important;
  }
}

/* 20260714 pageFineTune20: final density, navigation polish and boss ranking refinement. */
:root {
  --ui-tight-radius: 14px;
  --ui-tight-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

body:not(.sidebar-nav-collapsed) .shell:not(.boss-shell) {
  grid-template-columns: minmax(252px, 284px) minmax(0, 1fr) !important;
  gap: 4px !important;
}

.shell:not(.boss-shell) .sidebar {
  width: auto !important;
}

.shell:not(.boss-shell) .main-panel > * + * {
  margin-top: 8px !important;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .inventory-hero-panel {
  min-height: 52px !important;
  box-shadow: var(--ui-tight-shadow) !important;
}

.shell:not(.boss-shell) .topbar-actions,
.shell:not(.boss-shell) .section-head-actions,
.shell:not(.boss-shell) .hero-actions {
  gap: 5px !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tenant-unified-primary-btn,
.shell:not(.boss-shell) .tenant-unified-pms-btn {
  min-height: 36px !important;
  padding-inline: 11px !important;
  font-size: 12.4px !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn span,
.shell:not(.boss-shell) .tenant-unified-primary-btn span,
.shell:not(.boss-shell) .tenant-unified-pms-btn span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .tabs:not(.hidden):not(:empty),
body.tenant-primary-secondary-nav .tabs:not(.hidden):not(:empty),
.shell:not(.boss-shell) .employee-profile-subnav-card,
.shell:not(.boss-shell) .employee-profile-subnav,
.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .finance-role-subnav,
.shell:not(.boss-shell) .inventory-subnav,
.shell:not(.boss-shell) .reports-subnav {
  margin: 5px 0 7px !important;
  padding: 4px !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .employee-profile-subpanel,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .tenant-business-card,
.shell:not(.boss-shell) .inventory-assistant-card,
.shell:not(.boss-shell) .warehouse-mobile-card,
.shell:not(.boss-shell) .finance-role-page .panel-card,
.modal-card {
  box-shadow: var(--ui-tight-shadow) !important;
}

.shell:not(.boss-shell) .profile-grid,
.shell:not(.boss-shell) .profile-blocks-grid,
.shell:not(.boss-shell) .tenant-profile-grid,
.shell:not(.boss-shell) .employee-profile-grid,
.shell:not(.boss-shell) .finance-role-grid,
.shell:not(.boss-shell) .inventory-grid,
.shell:not(.boss-shell) .dashboard-grid {
  gap: 7px !important;
}

.shell:not(.boss-shell) .profile-block,
.shell:not(.boss-shell) .profile-field,
.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .finance-role-metric-btn,
.shell:not(.boss-shell) .hr-final-metric-card,
.shell:not(.boss-shell) .inventory-kpi-card,
.shell:not(.boss-shell) .employee-kpi-card,
.shell:not(.boss-shell) .tenant-role-kpi-card {
  border-radius: var(--ui-tight-radius) !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table th,
.shell:not(.boss-shell) .tenant-business-table td,
.shell:not(.boss-shell) .tenant-report-table th,
.shell:not(.boss-shell) .tenant-report-table td,
.super-admin-simple-account-table th,
.super-admin-simple-account-table td {
  height: 30px !important;
  vertical-align: middle !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .tenant-business-table th,
.shell:not(.boss-shell) .tenant-report-table th,
.super-admin-simple-account-table th {
  font-size: 10.8px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.shell:not(.boss-shell) .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) .approval-table-actions .primary-btn,
.shell:not(.boss-shell) .inline-actions .ghost-btn,
.shell:not(.boss-shell) .inline-actions .primary-btn,
.shell:not(.boss-shell) .action-cell .ghost-btn,
.shell:not(.boss-shell) .action-cell .primary-btn {
  max-width: none !important;
  min-width: 42px !important;
  padding-inline: 7px !important;
}

.shell:not(.boss-shell) .employee-directory-card,
.shell:not(.boss-shell) .compact-list-item,
.shell:not(.boss-shell) .tenant-workbench-row,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .hr-final-row,
.shell:not(.boss-shell) .inventory-row-card,
.shell:not(.boss-shell) .inventory-warning-card,
.shell:not(.boss-shell) .employee-workbench-todo-row {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045) !important;
}

.boss-ultra-rank {
  gap: 7px !important;
}

.boss-ultra-rank-list {
  gap: 7px !important;
}

.boss-ultra-rank-row {
  min-height: 54px !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  gap: 6px 8px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
}

.boss-ultra-rank-no {
  font-size: 15px !important;
}

.boss-ultra-rank-row strong {
  font-size: 13px !important;
}

.boss-ultra-rank-row em {
  font-size: 11px !important;
}

.boss-ultra-rank-row i {
  grid-column: 2 / 4 !important;
  height: 5px !important;
  margin-top: 0 !important;
}

.boss-ultra-rank-extra {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.boss-ultra-rank-extra div {
  min-height: 42px !important;
  padding: 6px !important;
  border-radius: 12px !important;
}

.boss-ultra-rank-signal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.boss-ultra-rank-signal span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 12px;
  color: rgba(222, 250, 255, 0.82);
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(125, 249, 255, 0.16);
}

.boss-ultra-rank-signal b {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-ultra-rank-signal em {
  color: rgba(125, 249, 255, 0.78);
  font-size: 9px;
  font-style: normal;
  line-height: 1.05;
}

@media (max-width: 960px) {
  body:not(.sidebar-nav-collapsed) .shell:not(.boss-shell) {
    grid-template-columns: 1fr !important;
  }

  .boss-ultra-rank-signal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 20260714 pageFineTune21: public entry, role workspace and report-detail finishing. */
.auth-card,
.login-card,
.auth-panel {
  width: min(430px, calc(100vw - 26px)) !important;
  padding: 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1) !important;
}

.auth-card h1,
.login-card h1,
.auth-panel h1 {
  margin: 8px 0 4px !important;
  font-size: clamp(23px, 2.2vw, 32px) !important;
  line-height: 1.08 !important;
}

.auth-card p,
.login-card p,
.auth-panel p {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.shell:not(.boss-shell) .tenant-workbench-reminders,
.shell:not(.boss-shell) .finance-workbench-grid,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .finance-role-mini-metrics,
.shell:not(.boss-shell) .hr-final-metrics,
.shell:not(.boss-shell) .inventory-dashboard-grid,
.shell:not(.boss-shell) .tenant-business-grid-main,
.shell:not(.boss-shell) .employee-workbench-grid,
.shell:not(.boss-shell) .super-admin-entry-grid,
.shell:not(.boss-shell) .super-admin-detail-grid {
  gap: 7px !important;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card,
.shell:not(.boss-shell) .finance-role-task-card,
.shell:not(.boss-shell) .finance-role-report-card,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .inventory-role-card,
.shell:not(.boss-shell) .inventory-create-analysis-card,
.shell:not(.boss-shell) .tenant-business-work-card,
.shell:not(.boss-shell) .employee-profile-subpanel,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .super-admin-entry-card,
.shell:not(.boss-shell) .super-admin-account-row {
  min-height: 0 !important;
  padding: 8px 9px !important;
  border-radius: 14px !important;
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.05) !important;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card h3,
.shell:not(.boss-shell) .finance-role-task-card h3,
.shell:not(.boss-shell) .finance-role-report-card h3,
.shell:not(.boss-shell) .hr-final-card h3,
.shell:not(.boss-shell) .inventory-role-card h3,
.shell:not(.boss-shell) .inventory-create-analysis-card h3,
.shell:not(.boss-shell) .tenant-business-work-card h3,
.shell:not(.boss-shell) .employee-profile-subpanel h3,
.shell:not(.boss-shell) .employee-workbench-card h3,
.shell:not(.boss-shell) .super-admin-entry-card h3 {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .muted,
.shell:not(.boss-shell) .helper-text,
.shell:not(.boss-shell) .table-note {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .report-toolbar,
.shell:not(.boss-shell) .table-toolbar,
.shell:not(.boss-shell) .filter-row,
.shell:not(.boss-shell) .finance-role-filter-row,
.shell:not(.boss-shell) .tenant-business-toolbar,
.shell:not(.boss-shell) .inventory-toolbar {
  gap: 6px !important;
  margin: 5px 0 7px !important;
  padding: 6px !important;
  border-radius: 13px !important;
}

.shell:not(.boss-shell) .report-toolbar input,
.shell:not(.boss-shell) .table-toolbar input,
.shell:not(.boss-shell) .filter-row input,
.shell:not(.boss-shell) .finance-role-filter-row input,
.shell:not(.boss-shell) .tenant-business-toolbar input,
.shell:not(.boss-shell) .inventory-toolbar input,
.shell:not(.boss-shell) .report-toolbar select,
.shell:not(.boss-shell) .table-toolbar select,
.shell:not(.boss-shell) .filter-row select,
.shell:not(.boss-shell) .finance-role-filter-row select,
.shell:not(.boss-shell) .tenant-business-toolbar select,
.shell:not(.boss-shell) .inventory-toolbar select {
  max-width: 220px !important;
}

.shell:not(.boss-shell) .approval-detail-grid,
.shell:not(.boss-shell) .profile-blocks-grid,
.shell:not(.boss-shell) .employee-directory-grid,
.shell:not(.boss-shell) .invoice-detail-grid,
.shell:not(.boss-shell) .finance-report-grid,
.shell:not(.boss-shell) .tenant-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important;
}

.shell:not(.boss-shell) .approval-detail-block,
.shell:not(.boss-shell) .profile-block,
.shell:not(.boss-shell) .invoice-detail-item,
.shell:not(.boss-shell) .finance-report-item,
.shell:not(.boss-shell) .tenant-report-item {
  min-height: 34px !important;
  padding: 6px 7px !important;
}

.shell:not(.boss-shell) .modal-card .profile-form,
.shell:not(.boss-shell) .modal-card .compact-form-grid,
.shell:not(.boss-shell) .modal-card .approval-form-grid {
  gap: 6px !important;
}

.boss-ultra-cockpit {
  padding: 8px !important;
}

.boss-ultra-header {
  min-height: 48px !important;
  padding: 8px 10px !important;
}

.boss-ultra-header h2 {
  font-size: clamp(22px, 2.2vw, 34px) !important;
}

.boss-ultra-panel {
  border-radius: 18px !important;
  padding: 9px !important;
}

.boss-ultra-kpi {
  min-height: 64px !important;
  padding: 8px !important;
}

.boss-ultra-chart-card {
  min-height: 0 !important;
  padding: 8px !important;
}

.boss-ultra-todo-row,
.boss-ultra-work-row,
.boss-ultra-advice-list article {
  min-height: 38px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

/* 20260714 pageFineTune22: scrollbars, dialogs and cross-role micro polish. */
html {
  scrollbar-color: rgba(15, 118, 110, 0.38) rgba(15, 81, 116, 0.08);
  scrollbar-width: thin;
}

body::-webkit-scrollbar,
.main-panel::-webkit-scrollbar,
.modal-card::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.finance-role-table-wrap::-webkit-scrollbar,
.tenant-report-table-wrap::-webkit-scrollbar,
.tenant-business-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-thumb,
.main-panel::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.finance-role-table-wrap::-webkit-scrollbar-thumb,
.tenant-report-table-wrap::-webkit-scrollbar-thumb,
.tenant-business-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.42), rgba(14, 165, 233, 0.34));
}

.shell:not(.boss-shell) .main-panel {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.shell:not(.boss-shell) .content-panel,
.shell:not(.boss-shell) .tab-panel,
.shell:not(.boss-shell) .tenant-unified-page,
.shell:not(.boss-shell) .finance-role-page,
.shell:not(.boss-shell) .hr-final-page,
.shell:not(.boss-shell) .inventory-role-page,
.shell:not(.boss-shell) .employee-page {
  min-width: 0 !important;
}

.modal-card {
  max-height: min(88vh, 860px) !important;
  overflow: auto !important;
}

.dialog,
.modal,
.drawer {
  padding: 12px !important;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .panel-head,
.shell:not(.boss-shell) .card-head,
.shell:not(.boss-shell) .list-head {
  gap: 7px !important;
}

.shell:not(.boss-shell) .section-head > div,
.shell:not(.boss-shell) .panel-head > div,
.shell:not(.boss-shell) .card-head > div,
.shell:not(.boss-shell) .list-head > div {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-head h2,
.shell:not(.boss-shell) .panel-head h3,
.shell:not(.boss-shell) .card-head h3,
.shell:not(.boss-shell) .list-head h3 {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .daily-action-btn,
.shell:not(.boss-shell) .tenant-workbench-jump {
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
}

.shell:not(.boss-shell) .primary-btn:hover,
.shell:not(.boss-shell) .ghost-btn:hover,
.shell:not(.boss-shell) .link-btn:hover,
.shell:not(.boss-shell) .daily-action-btn:hover,
.shell:not(.boss-shell) .tenant-workbench-jump:hover {
  transform: translateY(-1px) !important;
}

.shell:not(.boss-shell) .primary-btn:active,
.shell:not(.boss-shell) .ghost-btn:active,
.shell:not(.boss-shell) .link-btn:active,
.shell:not(.boss-shell) .daily-action-btn:active,
.shell:not(.boss-shell) .tenant-workbench-jump:active {
  transform: translateY(0) scale(0.985) !important;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .approval-record-table,
.shell:not(.boss-shell) .finance-report-table,
.shell:not(.boss-shell) .tenant-business-table,
.shell:not(.boss-shell) .tenant-report-table,
.super-admin-simple-account-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.shell:not(.boss-shell) .table tbody tr:last-child td,
.shell:not(.boss-shell) .employee-handover-history-table tbody tr:last-child td,
.shell:not(.boss-shell) .approval-record-table tbody tr:last-child td,
.shell:not(.boss-shell) .finance-report-table tbody tr:last-child td,
.shell:not(.boss-shell) .tenant-business-table tbody tr:last-child td,
.shell:not(.boss-shell) .tenant-report-table tbody tr:last-child td,
.super-admin-simple-account-table tbody tr:last-child td {
  border-bottom-width: 0 !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge,
.shell:not(.boss-shell) .tenant-workbench-count {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.shell:not(.boss-shell) .empty-state::before,
.shell:not(.boss-shell) .tenant-business-empty::before,
.shell:not(.boss-shell) .tenant-role-empty::before,
.shell:not(.boss-shell) .tenant-workbench-empty::before {
  content: "";
  width: 22px;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.55), rgba(14, 165, 233, 0.36));
}

.boss-ultra-panel-head em,
.boss-ultra-chart-title strong,
.boss-ultra-rank-row strong,
.boss-ultra-work-row strong,
.boss-ultra-todo-row strong {
  letter-spacing: 0 !important;
}

.boss-ultra-empty {
  min-height: 42px !important;
  padding: 8px !important;
  border-radius: 12px !important;
}

/* 20260714 pageFineTune23: focus, disabled, required and numeric detail polish. */
.shell:not(.boss-shell) button:focus-visible,
.shell:not(.boss-shell) a:focus-visible,
.shell:not(.boss-shell) input:focus-visible,
.shell:not(.boss-shell) select:focus-visible,
.shell:not(.boss-shell) textarea:focus-visible,
.modal-card button:focus-visible,
.modal-card input:focus-visible,
.modal-card select:focus-visible,
.modal-card textarea:focus-visible {
  outline: 2px solid rgba(14, 165, 233, 0.55) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12) !important;
}

.shell:not(.boss-shell) button:disabled,
.shell:not(.boss-shell) .primary-btn:disabled,
.shell:not(.boss-shell) .ghost-btn:disabled,
.shell:not(.boss-shell) .link-btn:disabled,
.modal-card button:disabled {
  cursor: not-allowed !important;
  filter: grayscale(0.12) !important;
  opacity: 0.62 !important;
  transform: none !important;
  box-shadow: none !important;
}

.shell:not(.boss-shell) input[readonly],
.shell:not(.boss-shell) textarea[readonly],
.modal-card input[readonly],
.modal-card textarea[readonly] {
  color: rgba(15, 35, 31, 0.7) !important;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.72), rgba(255, 255, 255, 0.74)) !important;
}

.shell:not(.boss-shell) label:has(input[required])::after,
.shell:not(.boss-shell) label:has(select[required])::after,
.shell:not(.boss-shell) label:has(textarea[required])::after,
.modal-card label:has(input[required])::after,
.modal-card label:has(select[required])::after,
.modal-card label:has(textarea[required])::after {
  content: "必填";
  justify-self: start;
  margin-top: -1px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.shell:not(.boss-shell) input:invalid:not(:placeholder-shown),
.shell:not(.boss-shell) textarea:invalid:not(:placeholder-shown),
.modal-card input:invalid:not(:placeholder-shown),
.modal-card textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 38, 38, 0.38) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.shell:not(.boss-shell) td:nth-child(n + 3),
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table td,
.shell:not(.boss-shell) .tenant-report-table td,
.shell:not(.boss-shell) .employee-handover-history-table td {
  font-variant-numeric: tabular-nums !important;
}

.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table td,
.shell:not(.boss-shell) .tenant-report-table td,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .employee-handover-history-table td {
  max-width: 220px !important;
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge {
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .inventory-hero-panel {
  overflow: hidden !important;
}

.boss-ultra-range button:focus-visible,
.boss-ultra-logout:focus-visible,
.boss-ultra-rank-row:focus-visible,
.boss-ultra-todo-row:focus-visible,
.boss-ultra-work-row:focus-visible {
  outline: 2px solid rgba(125, 249, 255, 0.8) !important;
  outline-offset: 2px !important;
}

/* 20260714 pageFineTune24: responsive, print and accessibility edge cases. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .shell:not(.boss-shell) .primary-btn,
  .shell:not(.boss-shell) .ghost-btn,
  .shell:not(.boss-shell) .link-btn,
  .shell:not(.boss-shell) .tab,
  .shell:not(.boss-shell) .sidebar-tool-btn,
  .modal-card {
    border: 1px solid CanvasText !important;
  }

  .shell:not(.boss-shell) .tab.active,
  .shell:not(.boss-shell) .sidebar-tool-btn.active {
    forced-color-adjust: none;
    color: HighlightText !important;
    background: Highlight !important;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  .sidebar,
  .topbar-actions,
  .tabs,
  .form-actions,
  .modal-actions,
  .inline-actions,
  .approval-table-actions,
  #globalUnifiedLogoutBtn,
  #bossFloatingLogoutBtn {
    display: none !important;
  }

  .shell,
  .shell:not(.boss-shell),
  .main-panel {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .panel-card,
  .form-card,
  .list-card,
  .report-card,
  .table-scroll,
  .modal-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #d6d6d6 !important;
  }

  .table th,
  .table td,
  .finance-report-table th,
  .finance-report-table td,
  .tenant-report-table th,
  .tenant-report-table td,
  .tenant-business-table th,
  .tenant-business-table td {
    color: #111111 !important;
    background: #ffffff !important;
  }
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .report-toolbar,
  .shell:not(.boss-shell) .table-toolbar,
  .shell:not(.boss-shell) .filter-row,
  .shell:not(.boss-shell) .finance-role-filter-row,
  .shell:not(.boss-shell) .tenant-business-toolbar,
  .shell:not(.boss-shell) .inventory-toolbar {
    align-items: stretch !important;
  }

  .shell:not(.boss-shell) .report-toolbar input,
  .shell:not(.boss-shell) .table-toolbar input,
  .shell:not(.boss-shell) .filter-row input,
  .shell:not(.boss-shell) .finance-role-filter-row input,
  .shell:not(.boss-shell) .tenant-business-toolbar input,
  .shell:not(.boss-shell) .inventory-toolbar input,
  .shell:not(.boss-shell) .report-toolbar select,
  .shell:not(.boss-shell) .table-toolbar select,
  .shell:not(.boss-shell) .filter-row select,
  .shell:not(.boss-shell) .finance-role-filter-row select,
  .shell:not(.boss-shell) .tenant-business-toolbar select,
  .shell:not(.boss-shell) .inventory-toolbar select {
    width: 100% !important;
    max-width: none !important;
  }

  .modal-card {
    width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    padding: 10px !important;
  }
}

@media (max-width: 520px) {
  .shell:not(.boss-shell) .approval-detail-grid,
  .shell:not(.boss-shell) .profile-blocks-grid,
  .shell:not(.boss-shell) .employee-directory-grid,
  .shell:not(.boss-shell) .invoice-detail-grid,
  .shell:not(.boss-shell) .finance-report-grid,
  .shell:not(.boss-shell) .tenant-report-grid {
    grid-template-columns: 1fr !important;
  }

  .boss-ultra-kpi-grid,
  .boss-ultra-mini-grid,
  .boss-ultra-rank-extra,
  .boss-ultra-rank-signal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260714 pageFineTune25: feedback, attachment, QR and pager polishing. */
.shell:not(.boss-shell) .toast,
.shell:not(.boss-shell) .notice,
.shell:not(.boss-shell) .message,
.shell:not(.boss-shell) .alert,
.shell:not(.boss-shell) .alert-banner,
.shell:not(.boss-shell) .status-box,
.modal-card .notice,
.modal-card .message,
.modal-card .alert {
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 10px !important;
  border-radius: 13px !important;
  font-size: 11.5px !important;
  line-height: 1.28 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045) !important;
}

.shell:not(.boss-shell) .notice.success,
.shell:not(.boss-shell) .message.success,
.shell:not(.boss-shell) .toast.success,
.shell:not(.boss-shell) .status-success {
  color: #0f5f47 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.74)) !important;
  border: 1px solid rgba(16, 185, 129, 0.18) !important;
}

.shell:not(.boss-shell) .notice.error,
.shell:not(.boss-shell) .message.error,
.shell:not(.boss-shell) .toast.error,
.shell:not(.boss-shell) .status-error {
  color: #991b1b !important;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(255, 255, 255, 0.74)) !important;
  border: 1px solid rgba(220, 38, 38, 0.18) !important;
}

.shell:not(.boss-shell) .notice.warning,
.shell:not(.boss-shell) .message.warning,
.shell:not(.boss-shell) .toast.warning,
.shell:not(.boss-shell) .status-warn {
  color: #92400e !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.76)) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
}

.shell:not(.boss-shell) .loading,
.shell:not(.boss-shell) .loading-state,
.shell:not(.boss-shell) .skeleton,
.shell:not(.boss-shell) .placeholder {
  position: relative !important;
  overflow: hidden !important;
  min-height: 40px !important;
  border-radius: 13px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.66), rgba(241, 248, 245, 0.92), rgba(255, 255, 255, 0.66)) !important;
  background-size: 220% 100% !important;
  animation: pageFineTuneShimmer 1.45s ease-in-out infinite !important;
}

@keyframes pageFineTuneShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.shell:not(.boss-shell) .profile-attachments,
.shell:not(.boss-shell) .attachment-list,
.shell:not(.boss-shell) .file-list,
.shell:not(.boss-shell) [data-invoice-file-list],
.shell:not(.boss-shell) [data-invoice-file-tip] {
  gap: 5px !important;
}

.shell:not(.boss-shell) .asset-link,
.shell:not(.boss-shell) .attachment-link,
.shell:not(.boss-shell) .file-link,
.shell:not(.boss-shell) .profile-attachments a {
  min-height: 25px !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  color: #0f5a74 !important;
  background: rgba(14, 165, 233, 0.09) !important;
  border: 1px solid rgba(14, 165, 233, 0.14) !important;
  font-size: 10.8px !important;
  font-weight: 850 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .finance-invoice-qr-card,
.shell:not(.boss-shell) .qr-card,
.shell:not(.boss-shell) .invoice-qr-card {
  align-items: center !important;
  border: 1px solid rgba(15, 81, 116, 0.1) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 248, 245, 0.7)) !important;
}

.shell:not(.boss-shell) .pagination button,
.shell:not(.boss-shell) .pager button,
.shell:not(.boss-shell) .table-pager button,
.shell:not(.boss-shell) .employee-handover-history-pager button {
  min-width: 30px !important;
  min-height: 28px !important;
  padding-inline: 8px !important;
}

.shell:not(.boss-shell) .pagination span,
.shell:not(.boss-shell) .pager span,
.shell:not(.boss-shell) .table-pager span,
.shell:not(.boss-shell) .employee-handover-history-pager span {
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  color: rgba(15, 35, 31, 0.68) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  font-size: 10.8px !important;
}

/* 20260714 pageFineTune26: data cards, chart bars and KPI number polish. */
.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .finance-report-metrics,
.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .finance-role-mini-metrics,
.shell:not(.boss-shell) .hr-final-metrics,
.shell:not(.boss-shell) .warehouse-mobile-kpis,
.shell:not(.boss-shell) .employee-workbench-kpis,
.shell:not(.boss-shell) .tenant-role-kpi-grid {
  gap: 7px !important;
}

.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .finance-role-metric-btn,
.shell:not(.boss-shell) .hr-final-metric-card,
.shell:not(.boss-shell) .inventory-kpi-card,
.shell:not(.boss-shell) .warehouse-mobile-kpi,
.shell:not(.boss-shell) .tenant-role-kpi-card,
.shell:not(.boss-shell) .compact-summary-item {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(241, 248, 245, 0.72)) !important;
}

.shell:not(.boss-shell) .metric-card::after,
.shell:not(.boss-shell) .finance-role-metric-btn::after,
.shell:not(.boss-shell) .hr-final-metric-card::after,
.shell:not(.boss-shell) .inventory-kpi-card::after,
.shell:not(.boss-shell) .warehouse-mobile-kpi::after,
.shell:not(.boss-shell) .tenant-role-kpi-card::after,
.shell:not(.boss-shell) .compact-summary-item::after {
  content: "";
  position: absolute;
  inset: auto 8px 7px 8px;
  z-index: -1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.55), rgba(14, 165, 233, 0.28));
}

.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .finance-role-metric-btn strong,
.shell:not(.boss-shell) .hr-final-metric-card strong,
.shell:not(.boss-shell) .inventory-kpi-card strong,
.shell:not(.boss-shell) .warehouse-mobile-kpi strong,
.shell:not(.boss-shell) .tenant-role-kpi-card strong,
.shell:not(.boss-shell) .compact-summary-item strong {
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.02em !important;
}

.shell:not(.boss-shell) .metric-card p,
.shell:not(.boss-shell) .finance-role-metric-btn p,
.shell:not(.boss-shell) .hr-final-metric-card p,
.shell:not(.boss-shell) .inventory-kpi-card p,
.shell:not(.boss-shell) .warehouse-mobile-kpi span,
.shell:not(.boss-shell) .tenant-role-kpi-card p,
.shell:not(.boss-shell) .compact-summary-item span {
  color: rgba(15, 35, 31, 0.56) !important;
  font-size: 10.2px !important;
  line-height: 1.18 !important;
}

.progress-track,
.boss-trend-bar-track,
.tenant-business-bar-track,
.boss-ultra-bar-row i,
.boss-ultra-rank-row i {
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(15, 81, 116, 0.12) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.progress-fill,
.boss-trend-bar-track i,
.tenant-business-bar-track i,
.boss-ultra-bar-row i b,
.boss-ultra-rank-row i b {
  border-radius: inherit !important;
  background: linear-gradient(90deg, #14b8a6, #38bdf8) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2) !important;
}

.boss-trend-bar-track.warn i,
.boss-ultra-bar-row i b.boss-ultra-bar-warn {
  background: linear-gradient(90deg, #f59e0b, #f97316) !important;
}

.boss-ultra-donut,
.boss-ultra-gauge {
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18)) !important;
}

.boss-ultra-chart-legend span,
.boss-ultra-bar-row,
.tenant-business-channel-row,
.tenant-business-work-row {
  min-width: 0 !important;
}

.boss-ultra-chart-legend span,
.boss-ultra-bar-row em,
.tenant-business-channel-row span,
.tenant-business-work-row span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 20260714 pageFineTune27: action buttons, chips and status labels polish. */
.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .daily-action-btn,
.shell:not(.boss-shell) .warehouse-mobile-action-btn,
.shell:not(.boss-shell) .inline-actions button,
.shell:not(.boss-shell) .approval-table-actions button,
.shell:not(.boss-shell) .section-head-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  border: 1px solid rgba(15, 81, 116, 0.12) !important;
  font-weight: 880 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .daily-action-approve,
.shell:not(.boss-shell) .approval-decision-approve {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #0f5a74) !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
}

.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .daily-action-view,
.shell:not(.boss-shell) .daily-action-edit {
  color: #0f5a74 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(14, 165, 233, 0.08)) !important;
}

.shell:not(.boss-shell) .ghost-btn.danger,
.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .daily-action-reject,
.shell:not(.boss-shell) [data-delete],
.shell:not(.boss-shell) [data-report-status="Rejected"] {
  color: #991b1b !important;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.92), rgba(220, 38, 38, 0.1)) !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
}

.shell:not(.boss-shell) .ghost-btn.mini,
.shell:not(.boss-shell) .primary-btn.mini,
.shell:not(.boss-shell) .link-btn.mini,
.shell:not(.boss-shell) .daily-action-btn {
  min-width: 42px !important;
  min-height: 26px !important;
  padding: 5px 8px !important;
  font-size: 10.8px !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge,
.shell:not(.boss-shell) .check-chip,
.shell:not(.boss-shell) .employee-feature-chip,
.shell:not(.boss-shell) .permission-group-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  border: 1px solid rgba(15, 81, 116, 0.1) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.shell:not(.boss-shell) .status-ok,
.shell:not(.boss-shell) .pill.success,
.shell:not(.boss-shell) .ok-tag {
  color: #0f5f47 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.18) !important;
}

.shell:not(.boss-shell) .status-warn,
.shell:not(.boss-shell) .pill.warning,
.shell:not(.boss-shell) .mini-tag.warn {
  color: #92400e !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
}

.shell:not(.boss-shell) .status-danger,
.shell:not(.boss-shell) .status-error,
.shell:not(.boss-shell) .danger-tag {
  color: #991b1b !important;
  background: rgba(220, 38, 38, 0.1) !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
}

.shell:not(.boss-shell) .action-cell,
.shell:not(.boss-shell) td .inline-actions,
.shell:not(.boss-shell) td .approval-table-actions {
  justify-content: flex-start !important;
  row-gap: 4px !important;
}

/* 20260714 pageFineTune28: form input, upload and dialog editing polish. */
.shell:not(.boss-shell) .profile-form,
.shell:not(.boss-shell) .compact-form-grid,
.shell:not(.boss-shell) .approval-form-grid,
.shell:not(.boss-shell) .tenant-form-grid,
.shell:not(.boss-shell) .employee-handover-grid,
.shell:not(.boss-shell) .group-account-form-grid,
.shell:not(.boss-shell) .hr-final-form-grid,
.shell:not(.boss-shell) .inventory-create-grid,
.modal-card .profile-form,
.modal-card .compact-form-grid,
.modal-card .approval-form-grid,
.modal-card .group-account-form-grid {
  align-items: end !important;
  gap: 7px 8px !important;
}

.shell:not(.boss-shell) label,
.modal-card label,
.approval-review-form label {
  min-width: 0 !important;
}

.shell:not(.boss-shell) label > span,
.modal-card label > span,
.approval-review-form label > span,
.shell:not(.boss-shell) .field-label {
  color: rgba(15, 35, 31, 0.66) !important;
  font-size: 10.8px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card input,
.modal-card select,
.modal-card textarea,
.approval-review-form select,
.approval-review-form textarea {
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid rgba(15, 81, 116, 0.14) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.035) !important;
}

.shell:not(.boss-shell) input::placeholder,
.shell:not(.boss-shell) textarea::placeholder,
.modal-card input::placeholder,
.modal-card textarea::placeholder {
  color: rgba(15, 35, 31, 0.34) !important;
}

.shell:not(.boss-shell) input[type="date"],
.shell:not(.boss-shell) input[type="month"],
.shell:not(.boss-shell) input[type="number"],
.shell:not(.boss-shell) input[type="search"],
.modal-card input[type="date"],
.modal-card input[type="month"],
.modal-card input[type="number"],
.modal-card input[type="search"] {
  font-variant-numeric: tabular-nums !important;
}

.shell:not(.boss-shell) textarea,
.modal-card textarea,
.approval-review-form textarea {
  min-height: 58px !important;
  max-height: 180px !important;
}

.shell:not(.boss-shell) input[type="file"],
.modal-card input[type="file"] {
  cursor: pointer !important;
  color: rgba(15, 35, 31, 0.68) !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.07), rgba(255, 255, 255, 0.86)) !important;
}

.shell:not(.boss-shell) .field-xs,
.shell:not(.boss-shell) label.field-xs {
  grid-column: span 1 !important;
}

.shell:not(.boss-shell) .field-sm,
.shell:not(.boss-shell) label.field-sm {
  grid-column: span 1 !important;
}

.shell:not(.boss-shell) .field-md,
.shell:not(.boss-shell) label.field-md {
  grid-column: span 2 !important;
}

.shell:not(.boss-shell) .field-lg,
.shell:not(.boss-shell) label.field-lg,
.shell:not(.boss-shell) .full-span,
.shell:not(.boss-shell) label.full-span {
  grid-column: 1 / -1 !important;
}

.modal-card .form-actions,
.modal-card .modal-actions,
.shell:not(.boss-shell) .form-actions,
.shell:not(.boss-shell) .approval-form-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
  margin-inline: -2px !important;
  padding: 8px 2px 2px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 36%) !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .field-xs,
  .shell:not(.boss-shell) label.field-xs,
  .shell:not(.boss-shell) .field-sm,
  .shell:not(.boss-shell) label.field-sm,
  .shell:not(.boss-shell) .field-md,
  .shell:not(.boss-shell) label.field-md,
  .shell:not(.boss-shell) .field-lg,
  .shell:not(.boss-shell) label.field-lg {
    grid-column: 1 / -1 !important;
  }
}

/* 20260714 pageFineTune29: global density, table and navigation polish. */
.shell {
  --ui-card-radius: 16px;
  --ui-soft-border: rgba(15, 81, 116, 0.1);
  --ui-soft-shadow: 0 10px 28px rgba(15, 35, 31, 0.075);
}

.shell:not(.boss-shell) {
  gap: 10px !important;
}

.shell:not(.boss-shell) .main-panel,
.shell:not(.boss-shell) .workspace,
.shell:not(.boss-shell) .page-body,
.shell:not(.boss-shell) .content-panel,
.shell:not(.boss-shell) .role-main,
.shell:not(.boss-shell) .tenant-admin-main,
.shell:not(.boss-shell) .employee-main,
.shell:not(.boss-shell) .finance-main,
.shell:not(.boss-shell) .hr-main,
.shell:not(.boss-shell) .warehouse-main {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .sidebar,
.shell:not(.boss-shell) .tenant-panel,
.shell:not(.boss-shell) .sidebar-tools,
.shell:not(.boss-shell) .main-panel,
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .profile-section,
.shell:not(.boss-shell) .tenant-admin-card,
.shell:not(.boss-shell) .employee-feature-card,
.shell:not(.boss-shell) .finance-panel,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .warehouse-card,
.modal-card {
  border-radius: var(--ui-card-radius) !important;
  border-color: var(--ui-soft-border) !important;
  box-shadow: var(--ui-soft-shadow) !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .profile-section,
.shell:not(.boss-shell) .tenant-admin-card,
.shell:not(.boss-shell) .employee-feature-card,
.shell:not(.boss-shell) .finance-panel,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .warehouse-card {
  padding: 12px !important;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .profile-section-head,
.shell:not(.boss-shell) .card-head,
.shell:not(.boss-shell) .panel-head,
.shell:not(.boss-shell) .list-head {
  min-height: 0 !important;
  margin-bottom: 8px !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) h2,
.shell:not(.boss-shell) h3,
.shell:not(.boss-shell) h4,
.modal-card h3,
.modal-card h4 {
  letter-spacing: -0.02em !important;
  line-height: 1.16 !important;
}

.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .profile-section-head p,
.shell:not(.boss-shell) .card-head p,
.shell:not(.boss-shell) .panel-head p,
.shell:not(.boss-shell) .list-head p,
.shell:not(.boss-shell) .muted-note,
.shell:not(.boss-shell) .subtle {
  margin-top: 2px !important;
  line-height: 1.35 !important;
}

.shell:not(.boss-shell) .tabs,
.shell:not(.boss-shell) .secondary-tabs,
.shell:not(.boss-shell) .sub-tabs,
.shell:not(.boss-shell) .role-subnav,
.shell:not(.boss-shell) .tenant-admin-subnav,
.shell:not(.boss-shell) .employee-subnav,
.shell:not(.boss-shell) .finance-subnav,
.shell:not(.boss-shell) .hr-subnav,
.shell:not(.boss-shell) .warehouse-subnav {
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.shell:not(.boss-shell) .tabs button,
.shell:not(.boss-shell) .secondary-tabs button,
.shell:not(.boss-shell) .sub-tabs button,
.shell:not(.boss-shell) .role-subnav button,
.shell:not(.boss-shell) .tenant-admin-subnav button,
.shell:not(.boss-shell) .employee-subnav button,
.shell:not(.boss-shell) .finance-subnav button,
.shell:not(.boss-shell) .hr-subnav button,
.shell:not(.boss-shell) .warehouse-subnav button {
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 880 !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .employee-handover-history-table-wrap,
.shell:not(.boss-shell) .approval-table-wrap,
.shell:not(.boss-shell) .record-table-wrap {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  overflow: auto !important;
  background: rgba(255, 255, 255, 0.74) !important;
}

.shell:not(.boss-shell) table,
.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .approval-record-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.shell:not(.boss-shell) th,
.shell:not(.boss-shell) td,
.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td {
  padding: 7px 8px !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
}

.shell:not(.boss-shell) th,
.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .employee-handover-history-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  color: rgba(15, 35, 31, 0.66) !important;
  background: linear-gradient(180deg, rgba(248, 250, 247, 0.98), rgba(240, 246, 242, 0.98)) !important;
}

.shell:not(.boss-shell) tbody tr:nth-child(even) td {
  background: rgba(15, 90, 71, 0.025) !important;
}

.shell:not(.boss-shell) tbody tr:hover td {
  background: rgba(14, 165, 233, 0.06) !important;
}

.shell:not(.boss-shell) td:first-child,
.shell:not(.boss-shell) th:first-child {
  padding-left: 10px !important;
}

.shell:not(.boss-shell) td:last-child,
.shell:not(.boss-shell) th:last-child {
  padding-right: 10px !important;
}

.shell:not(.boss-shell) .empty-state,
.shell:not(.boss-shell) .placeholder-card,
.shell:not(.boss-shell) .no-data {
  border-radius: 14px !important;
  border: 1px dashed rgba(15, 81, 116, 0.16) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  padding: 14px !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .nav-btn,
.shell:not(.boss-shell) .daily-action-btn,
.shell:not(.boss-shell) .approval-table-actions button {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.shell:not(.boss-shell) .primary-btn:hover,
.shell:not(.boss-shell) .ghost-btn:hover,
.shell:not(.boss-shell) .link-btn:hover,
.shell:not(.boss-shell) .sidebar-tool-btn:hover,
.shell:not(.boss-shell) .nav-btn:hover,
.shell:not(.boss-shell) .daily-action-btn:hover,
.shell:not(.boss-shell) .approval-table-actions button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(15, 81, 116, 0.12) !important;
}

.boss-shell .boss-ultra-card,
.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-todo-card,
.boss-shell .boss-ultra-rank-card,
.boss-shell .boss-ultra-chart-card {
  border-radius: 18px !important;
}

.boss-shell .boss-ultra-card h3,
.boss-shell .boss-ultra-panel h3,
.boss-shell .boss-ultra-todo-card h3,
.boss-shell .boss-ultra-rank-card h3,
.boss-shell .boss-ultra-chart-card h3 {
  font-size: 13.5px !important;
  letter-spacing: -0.01em !important;
}

.boss-shell .boss-ultra-card,
.boss-shell .boss-ultra-panel {
  padding: 12px !important;
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) {
    gap: 8px !important;
  }

  .shell:not(.boss-shell) .panel-card,
  .shell:not(.boss-shell) .list-card,
  .shell:not(.boss-shell) .form-card,
  .shell:not(.boss-shell) .report-card,
  .shell:not(.boss-shell) .profile-section,
  .shell:not(.boss-shell) .tenant-admin-card,
  .shell:not(.boss-shell) .employee-feature-card,
  .shell:not(.boss-shell) .finance-panel,
  .shell:not(.boss-shell) .hr-final-card,
  .shell:not(.boss-shell) .warehouse-card {
    padding: 10px !important;
  }
}

/* 20260714 pageFineTune30: role banners, workbench blocks and cockpit refinement. */
.shell:not(.boss-shell) {
  grid-template-columns: minmax(312px, 318px) minmax(0, 1fr) !important;
}

.shell:not(.boss-shell) .sidebar {
  padding: 14px 12px !important;
}

.shell:not(.boss-shell) .main-panel {
  padding: 14px 16px 42px 10px !important;
}

.shell:not(.boss-shell) .sidebar-tools {
  gap: 7px !important;
  padding: 10px !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .nav-btn {
  min-height: 34px !important;
  justify-content: flex-start !important;
  padding: 8px 11px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn.active,
.shell:not(.boss-shell) .nav-btn.active {
  box-shadow: 0 9px 18px rgba(15, 81, 116, 0.13) !important;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .inventory-hero-panel,
.shell:not(.boss-shell) .hr-final-hero,
.shell:not(.boss-shell) .page-hero,
.shell:not(.boss-shell) .role-hero {
  min-height: 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) .topbar h1,
.shell:not(.boss-shell) .topbar h2,
.shell:not(.boss-shell) .tenant-workbench-hero h2,
.shell:not(.boss-shell) .employee-home-hero h2,
.shell:not(.boss-shell) .employee-workbench-hero h2,
.shell:not(.boss-shell) .finance-role-hero h2,
.shell:not(.boss-shell) .inventory-hero-panel h2,
.shell:not(.boss-shell) .hr-final-hero h2,
.shell:not(.boss-shell) .page-hero h2,
.shell:not(.boss-shell) .role-hero h2 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) .topbar p,
.shell:not(.boss-shell) .tenant-workbench-hero p,
.shell:not(.boss-shell) .employee-home-hero p,
.shell:not(.boss-shell) .employee-workbench-hero p,
.shell:not(.boss-shell) .finance-role-hero p,
.shell:not(.boss-shell) .inventory-hero-panel p,
.shell:not(.boss-shell) .hr-final-hero p,
.shell:not(.boss-shell) .page-hero p,
.shell:not(.boss-shell) .role-hero p {
  margin: 2px 0 0 !important;
  font-size: 11.5px !important;
  line-height: 1.32 !important;
}

.shell:not(.boss-shell) .tenant-workbench-reminders,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .finance-role-mini-metrics,
.shell:not(.boss-shell) .hr-final-metrics,
.shell:not(.boss-shell) .warehouse-mobile-kpis,
.shell:not(.boss-shell) .employee-workbench-grid,
.shell:not(.boss-shell) .employee-workbench-kpis {
  gap: 8px !important;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card,
.shell:not(.boss-shell) .finance-role-task-card,
.shell:not(.boss-shell) .finance-role-report-card,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .warehouse-mobile-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .summary-card,
.shell:not(.boss-shell) .stat-card {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .tenant-workbench-reminder-card h3,
.shell:not(.boss-shell) .finance-role-task-card h3,
.shell:not(.boss-shell) .finance-role-report-card h3,
.shell:not(.boss-shell) .hr-final-card h3,
.shell:not(.boss-shell) .warehouse-mobile-card h3,
.shell:not(.boss-shell) .employee-workbench-card h3,
.shell:not(.boss-shell) .metric-card h3,
.shell:not(.boss-shell) .summary-card h3,
.shell:not(.boss-shell) .stat-card h3 {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.14 !important;
}

.shell:not(.boss-shell) .tenant-workbench-row,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .hr-final-row,
.shell:not(.boss-shell) .warehouse-mobile-stock-row,
.shell:not(.boss-shell) .warehouse-mobile-warning-row,
.shell:not(.boss-shell) .employee-workbench-todo-row,
.shell:not(.boss-shell) .list-item {
  min-height: 0 !important;
  padding: 8px 9px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .tenant-workbench-row strong,
.shell:not(.boss-shell) .finance-role-task-row strong,
.shell:not(.boss-shell) .hr-final-row strong,
.shell:not(.boss-shell) .warehouse-mobile-stock-row strong,
.shell:not(.boss-shell) .warehouse-mobile-warning-row strong,
.shell:not(.boss-shell) .employee-workbench-todo-row strong,
.shell:not(.boss-shell) .list-item strong {
  font-size: 12px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .tenant-workbench-row span,
.shell:not(.boss-shell) .finance-role-task-row span,
.shell:not(.boss-shell) .hr-final-row span,
.shell:not(.boss-shell) .warehouse-mobile-stock-row span,
.shell:not(.boss-shell) .warehouse-mobile-warning-row span,
.shell:not(.boss-shell) .employee-workbench-todo-row span,
.shell:not(.boss-shell) .item-meta {
  font-size: 10.8px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .table-toolbar,
.shell:not(.boss-shell) .filter-row,
.shell:not(.boss-shell) .finance-role-filter-row,
.shell:not(.boss-shell) .hr-final-filter-row,
.shell:not(.boss-shell) .warehouse-filter-row {
  gap: 7px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.shell:not(.boss-shell) .table-toolbar input,
.shell:not(.boss-shell) .table-toolbar select,
.shell:not(.boss-shell) .filter-row input,
.shell:not(.boss-shell) .filter-row select,
.shell:not(.boss-shell) .finance-role-filter-row input,
.shell:not(.boss-shell) .finance-role-filter-row select,
.shell:not(.boss-shell) .hr-final-filter-row input,
.shell:not(.boss-shell) .hr-final-filter-row select,
.shell:not(.boss-shell) .warehouse-filter-row input,
.shell:not(.boss-shell) .warehouse-filter-row select {
  min-height: 30px !important;
  padding: 6px 9px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

.boss-shell .main-panel,
.boss-shell .boss-ultra-cockpit {
  padding: 12px !important;
}

.boss-shell .boss-ultra-header {
  min-height: 0 !important;
  padding: 12px 14px !important;
  border-radius: 20px !important;
}

.boss-shell .boss-ultra-header h2 {
  font-size: 20px !important;
  line-height: 1.08 !important;
}

.boss-shell .boss-ultra-range {
  gap: 6px !important;
  padding: 4px !important;
  border-radius: 999px !important;
}

.boss-shell .boss-ultra-range button {
  min-height: 28px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
}

.boss-shell .boss-ultra-kpi-grid,
.boss-shell .boss-ultra-mini-grid,
.boss-shell .boss-digest-grid,
.boss-shell .boss-topic-grid {
  gap: 10px !important;
}

.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-digest-card,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank,
.boss-shell .boss-ultra-panel {
  padding: 11px !important;
  border-radius: 17px !important;
}

.boss-shell .boss-ultra-kpi strong,
.boss-shell .boss-ultra-mini strong,
.boss-shell .boss-digest-card strong {
  font-size: 18px !important;
  line-height: 1.08 !important;
}

.boss-shell .boss-ultra-kpi span,
.boss-shell .boss-ultra-mini span,
.boss-shell .boss-digest-head span,
.boss-shell .boss-ultra-chart-title span {
  font-size: 11px !important;
}

.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-ultra-rank-row,
.boss-shell .boss-drawer-mini-item,
.boss-shell .boss-drawer-advice-item {
  padding: 9px 10px !important;
  border-radius: 14px !important;
}

.boss-shell .boss-ultra-chart-card {
  min-height: 0 !important;
}

.boss-shell .boss-ultra-donut,
.boss-shell .boss-ultra-gauge {
  transform: scale(0.92) !important;
  transform-origin: center !important;
}

@media (max-width: 1180px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 1fr !important;
  }

  .shell:not(.boss-shell) .main-panel {
    padding: 10px !important;
  }
}

/* 20260714 pageFineTune31: auth, modal, notice, empty and drawer detail polish. */
.auth-shell {
  padding: 18px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(201, 94, 47, 0.11), transparent 30%),
    linear-gradient(135deg, #f8f4ea 0%, #eef6f1 46%, #f8f7f2 100%) !important;
}

.auth-card {
  position: relative !important;
  overflow: hidden !important;
  width: min(92vw, 430px) !important;
  padding: 26px 24px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 24px 70px rgba(15, 35, 31, 0.16) !important;
}

.auth-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #0f766e, #38bdf8, #c95e2f) !important;
}

.auth-card h1 {
  margin: 6px 0 4px !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
}

.auth-card .eyebrow,
.auth-card > .muted {
  line-height: 1.35 !important;
}

.auth-form {
  gap: 10px !important;
}

.auth-form label {
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

.auth-form input {
  min-height: 38px !important;
  padding: 9px 11px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.auth-password-toggle {
  right: 6px !important;
  width: 30px !important;
  height: 30px !important;
}

.auth-password-toggle svg {
  width: 17px !important;
  height: 17px !important;
}

.auth-form .primary-btn {
  min-height: 38px !important;
  margin-top: 2px !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22) !important;
}

.global-notice {
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(520px, calc(100vw - 28px)) !important;
  min-height: 40px !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 81, 116, 0.12) !important;
  box-shadow: 0 18px 46px rgba(15, 35, 31, 0.14) !important;
  backdrop-filter: blur(16px) !important;
}

.modal::backdrop,
dialog::backdrop {
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.13), transparent 34%),
    rgba(11, 23, 22, 0.34) !important;
  backdrop-filter: blur(5px) !important;
}

.modal-card,
dialog .modal-card,
.shell:not(.boss-shell) dialog .modal-card {
  max-height: min(88vh, 820px) !important;
  overflow: auto !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 24px 70px rgba(15, 35, 31, 0.18) !important;
}

.modal-card > .section-head,
.modal-card .dialog-head,
.dialog-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  margin: -2px -2px 8px !important;
  padding: 6px 2px 8px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86)) !important;
  backdrop-filter: blur(10px) !important;
}

.modal-actions,
.modal-card .modal-actions,
.modal-card .form-actions {
  gap: 7px !important;
}

.empty-state,
.shell:not(.boss-shell) .empty-state,
.shell:not(.boss-shell) .placeholder-card,
.shell:not(.boss-shell) .no-data {
  display: grid !important;
  place-items: center !important;
  min-height: 86px !important;
  text-align: center !important;
  color: rgba(15, 35, 31, 0.62) !important;
}

.empty-state h3,
.empty-state strong {
  margin: 0 !important;
  font-size: 14px !important;
  color: rgba(15, 35, 31, 0.82) !important;
}

.empty-state p {
  max-width: 520px !important;
  margin: 4px auto 0 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

.alert-banner,
.shell:not(.boss-shell) .alert-banner,
.shell:not(.boss-shell) .alert-card {
  border-radius: 14px !important;
  padding: 9px 11px !important;
  font-size: 11.8px !important;
  line-height: 1.35 !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.09) !important;
}

.boss-drawer,
.boss-shell .boss-drawer {
  border-radius: 20px !important;
}

.boss-drawer-sticky,
.boss-drawer-toolbar {
  border-radius: 16px !important;
  padding: 10px !important;
}

.boss-drawer-head,
.boss-drawer-card,
.boss-drawer-summary-card,
.boss-drawer-advice {
  border-radius: 16px !important;
  padding: 11px !important;
}

.boss-drawer-head h4,
.boss-drawer-toolbar strong {
  font-size: 14px !important;
  line-height: 1.16 !important;
}

.boss-drawer-head p,
.boss-drawer-toolbar span,
.boss-drawer-advice p {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}

@media (max-width: 760px) {
  .auth-card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  .modal-card,
  dialog .modal-card {
    max-height: 92vh !important;
    border-radius: 18px !important;
  }
}

/* 20260714 pageFineTune32: table, attachment, pager and status detail polish. */
.shell:not(.boss-shell) .table-scroll,
.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .employee-handover-history-table-wrap,
.shell:not(.boss-shell) .employee-directory-table-wrap,
.shell:not(.boss-shell) .finance-report-table-wrap,
.shell:not(.boss-shell) .tenant-report-table-wrap,
.shell:not(.boss-shell) .tenant-business-table-wrap,
.shell:not(.boss-shell) .approval-table-wrap,
.shell:not(.boss-shell) .record-table-wrap {
  position: relative !important;
  max-width: 100% !important;
  border-radius: 15px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
}

.shell:not(.boss-shell) .table-scroll::after,
.shell:not(.boss-shell) .table-wrap::after,
.shell:not(.boss-shell) .employee-handover-history-table-wrap::after,
.shell:not(.boss-shell) .finance-report-table-wrap::after,
.shell:not(.boss-shell) .tenant-report-table-wrap::after,
.shell:not(.boss-shell) .tenant-business-table-wrap::after {
  content: "" !important;
  position: sticky !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  display: block !important;
  width: 18px !important;
  min-height: 100% !important;
  margin-left: auto !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(248, 250, 247, 0.88)) !important;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .approval-record-table,
.shell:not(.boss-shell) .finance-report-table,
.shell:not(.boss-shell) .tenant-business-table,
.shell:not(.boss-shell) .tenant-report-table,
.super-admin-simple-account-table {
  min-width: max-content !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .approval-record-table th,
.shell:not(.boss-shell) .approval-record-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-business-table th,
.shell:not(.boss-shell) .tenant-business-table td,
.shell:not(.boss-shell) .tenant-report-table th,
.shell:not(.boss-shell) .tenant-report-table td,
.super-admin-simple-account-table th,
.super-admin-simple-account-table td {
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .table td:nth-last-child(1),
.shell:not(.boss-shell) .employee-handover-history-table td:nth-last-child(1),
.shell:not(.boss-shell) .approval-record-table td:nth-last-child(1),
.shell:not(.boss-shell) .finance-report-table td:nth-last-child(1),
.shell:not(.boss-shell) .tenant-business-table td:nth-last-child(1),
.shell:not(.boss-shell) .tenant-report-table td:nth-last-child(1) {
  white-space: normal !important;
}

.shell:not(.boss-shell) .action-cell,
.shell:not(.boss-shell) td .inline-actions,
.shell:not(.boss-shell) td .approval-table-actions,
.shell:not(.boss-shell) .approval-detail-actions {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) td .inline-actions button,
.shell:not(.boss-shell) td .approval-table-actions button,
.shell:not(.boss-shell) .approval-detail-actions button,
.shell:not(.boss-shell) .daily-action-btn {
  flex: 0 0 auto !important;
  min-width: 36px !important;
  min-height: 25px !important;
  padding: 5px 7px !important;
  font-size: 10.5px !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge,
.shell:not(.boss-shell) .check-chip,
.shell:not(.boss-shell) .employee-feature-chip,
.shell:not(.boss-shell) .permission-group-chip {
  min-height: 22px !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 4px 10px rgba(15, 35, 31, 0.045) !important;
}

.shell:not(.boss-shell) .profile-attachments,
.shell:not(.boss-shell) .attachment-list,
.shell:not(.boss-shell) .file-list,
.shell:not(.boss-shell) .upload-list,
.shell:not(.boss-shell) [data-invoice-file-list],
.shell:not(.boss-shell) [data-invoice-file-tip] {
  gap: 5px !important;
}

.shell:not(.boss-shell) .attachment-link,
.shell:not(.boss-shell) .file-link,
.shell:not(.boss-shell) .upload-link,
.shell:not(.boss-shell) .profile-attachments a {
  max-width: min(100%, 280px) !important;
  min-height: 27px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 10.8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .pagination,
.shell:not(.boss-shell) .pager,
.shell:not(.boss-shell) .table-pager,
.shell:not(.boss-shell) .employee-handover-history-pager {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  padding-top: 7px !important;
}

.shell:not(.boss-shell) .pagination button,
.shell:not(.boss-shell) .pager button,
.shell:not(.boss-shell) .table-pager button,
.shell:not(.boss-shell) .employee-handover-history-pager button {
  min-width: 30px !important;
  min-height: 27px !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
}

.shell:not(.boss-shell) .pagination span,
.shell:not(.boss-shell) .pager span,
.shell:not(.boss-shell) .table-pager span,
.shell:not(.boss-shell) .employee-handover-history-pager span {
  font-size: 10.8px !important;
  color: rgba(15, 35, 31, 0.58) !important;
}

.shell:not(.boss-shell) img,
.modal-card img {
  max-width: 100% !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .preview-image,
.shell:not(.boss-shell) .attachment-preview,
.modal-card .preview-image,
.modal-card .attachment-preview {
  max-height: 220px !important;
  object-fit: cover !important;
  border: 1px solid rgba(15, 81, 116, 0.1) !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .table,
  .shell:not(.boss-shell) .employee-handover-history-table,
  .shell:not(.boss-shell) .approval-record-table,
  .shell:not(.boss-shell) .finance-report-table,
  .shell:not(.boss-shell) .tenant-business-table,
  .shell:not(.boss-shell) .tenant-report-table,
  .super-admin-simple-account-table {
    min-width: 620px !important;
  }
}

/* 20260714 pageFineTune33: cross-role nav, field grid and action layout polish. */
.shell:not(.boss-shell) .tabs {
  align-items: center !important;
  min-height: 40px !important;
  margin-bottom: 10px !important;
  overflow-x: auto !important;
  scrollbar-width: thin !important;
}

.shell:not(.boss-shell) .tabs > .tab,
.shell:not(.boss-shell) .tab {
  position: relative !important;
  flex: 0 0 auto !important;
  min-height: 30px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 880 !important;
  line-height: 1 !important;
}

.shell:not(.boss-shell) .tabs > .tab.active,
.shell:not(.boss-shell) .tab.active,
.shell:not(.boss-shell) .tenant-business-subnav-btn.active,
.shell:not(.boss-shell) .sidebar-tool-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #0f5a74) !important;
  border-color: rgba(15, 118, 110, 0.24) !important;
}

.shell:not(.boss-shell) .tabs > .tab.active::after,
.shell:not(.boss-shell) .tab.active::after,
.shell:not(.boss-shell) .tenant-business-subnav-btn.active::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: -5px !important;
  width: 16px !important;
  height: 3px !important;
  border-radius: 999px !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 118, 110, 0.4) !important;
}

.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .tenant-role-kpi-grid,
.shell:not(.boss-shell) .tenant-report-kpi-grid,
.shell:not(.boss-shell) .compact-summary-grid,
.shell:not(.boss-shell) .tenant-workbench-metrics,
.shell:not(.boss-shell) .tenant-business-metrics,
.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .hr-final-metrics,
.shell:not(.boss-shell) .warehouse-mobile-kpis,
.shell:not(.boss-shell) .employee-workbench-kpis {
  gap: 8px !important;
}

.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .tenant-role-kpi-grid > *,
.shell:not(.boss-shell) .tenant-report-kpi-grid > *,
.shell:not(.boss-shell) .compact-summary-grid > *,
.shell:not(.boss-shell) .tenant-workbench-metrics > *,
.shell:not(.boss-shell) .tenant-business-metrics > *,
.shell:not(.boss-shell) .finance-role-metrics > *,
.shell:not(.boss-shell) .hr-final-metrics > *,
.shell:not(.boss-shell) .warehouse-mobile-kpis > *,
.shell:not(.boss-shell) .employee-workbench-kpis > * {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .tenant-role-kpi-grid strong,
.shell:not(.boss-shell) .tenant-report-kpi-grid strong,
.shell:not(.boss-shell) .compact-summary-grid strong,
.shell:not(.boss-shell) .tenant-workbench-metrics strong,
.shell:not(.boss-shell) .tenant-business-metrics strong,
.shell:not(.boss-shell) .finance-role-metrics strong,
.shell:not(.boss-shell) .hr-final-metrics strong,
.shell:not(.boss-shell) .warehouse-mobile-kpis strong,
.shell:not(.boss-shell) .employee-workbench-kpis strong {
  font-size: 17px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
}

.shell:not(.boss-shell) .metric-card span,
.shell:not(.boss-shell) .metric-card p,
.shell:not(.boss-shell) .tenant-role-kpi-grid span,
.shell:not(.boss-shell) .tenant-report-kpi-grid span,
.shell:not(.boss-shell) .compact-summary-grid span,
.shell:not(.boss-shell) .tenant-workbench-metrics span,
.shell:not(.boss-shell) .tenant-business-metrics span,
.shell:not(.boss-shell) .finance-role-metrics span,
.shell:not(.boss-shell) .hr-final-metrics span,
.shell:not(.boss-shell) .warehouse-mobile-kpis span,
.shell:not(.boss-shell) .employee-workbench-kpis span {
  font-size: 10.8px !important;
  line-height: 1.22 !important;
}

.shell:not(.boss-shell) .profile-grid,
.shell:not(.boss-shell) .profile-grid-wide,
.shell:not(.boss-shell) .profile-blocks-grid,
.shell:not(.boss-shell) .tenant-profile-grid,
.shell:not(.boss-shell) .employee-profile-grid,
.shell:not(.boss-shell) .tenant-business-mini-grid,
.shell:not(.boss-shell) .tenant-role-section-grid,
.shell:not(.boss-shell) .tenant-business-grid {
  gap: 8px !important;
}

.shell:not(.boss-shell) .profile-field,
.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .profile-block,
.shell:not(.boss-shell) .profile-list-card,
.shell:not(.boss-shell) .profile-summary-card {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.shell:not(.boss-shell) .profile-field span,
.shell:not(.boss-shell) .profile-item span,
.shell:not(.boss-shell) .profile-block span {
  color: rgba(15, 35, 31, 0.56) !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .profile-field strong,
.shell:not(.boss-shell) .profile-item strong,
.shell:not(.boss-shell) .profile-block strong {
  min-width: 0 !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) .topbar-actions,
.shell:not(.boss-shell) .section-head-actions,
.shell:not(.boss-shell) .hero-actions,
.shell:not(.boss-shell) .form-actions,
.shell:not(.boss-shell) .modal-actions {
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}

.shell:not(.boss-shell) .topbar-actions > *,
.shell:not(.boss-shell) .section-head-actions > *,
.shell:not(.boss-shell) .hero-actions > *,
.shell:not(.boss-shell) .form-actions > *,
.shell:not(.boss-shell) .modal-actions > * {
  flex: 0 0 auto !important;
}

@media (max-width: 1180px) {
  .shell:not(.boss-shell) .metrics-grid,
  .shell:not(.boss-shell) .tenant-role-kpi-grid,
  .shell:not(.boss-shell) .tenant-report-kpi-grid,
  .shell:not(.boss-shell) .compact-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .tabs {
    margin-inline: -2px !important;
    padding-bottom: 8px !important;
  }

  .shell:not(.boss-shell) .profile-grid,
  .shell:not(.boss-shell) .profile-grid-wide,
  .shell:not(.boss-shell) .profile-blocks-grid,
  .shell:not(.boss-shell) .tenant-profile-grid,
  .shell:not(.boss-shell) .employee-profile-grid,
  .shell:not(.boss-shell) .tenant-business-mini-grid,
  .shell:not(.boss-shell) .tenant-role-section-grid,
  .shell:not(.boss-shell) .tenant-business-grid,
  .shell:not(.boss-shell) .metrics-grid,
  .shell:not(.boss-shell) .tenant-role-kpi-grid,
  .shell:not(.boss-shell) .tenant-report-kpi-grid,
  .shell:not(.boss-shell) .compact-summary-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 20260714 pageFineTune34: form, editing and validation surface polish. */
.shell:not(.boss-shell) .profile-form,
.shell:not(.boss-shell) .compact-form-grid,
.shell:not(.boss-shell) .approval-form-grid,
.shell:not(.boss-shell) .tenant-form-grid,
.shell:not(.boss-shell) .employee-handover-grid,
.shell:not(.boss-shell) .employee-leave-grid-tight,
.shell:not(.boss-shell) .group-account-form-grid,
.shell:not(.boss-shell) .hr-final-form-grid,
.shell:not(.boss-shell) .inventory-create-grid,
.modal-card .profile-form,
.modal-card .compact-form-grid,
.modal-card .approval-form-grid,
.modal-card .tenant-form-grid,
.modal-card .group-account-form-grid {
  grid-auto-flow: dense !important;
  align-items: start !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) label,
.modal-card label,
.approval-review-form label,
.review-dialog-field,
.mobile-field {
  position: relative !important;
}

.shell:not(.boss-shell) label > span,
.modal-card label > span,
.approval-review-form label > span,
.review-dialog-field > span,
.shell:not(.boss-shell) .field-label {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 14px !important;
  margin-bottom: 4px !important;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card input,
.modal-card select,
.modal-card textarea,
.approval-review-form select,
.approval-review-form textarea,
.review-dialog-select,
.review-dialog-textarea {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 11px !important;
  line-height: 1.24 !important;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease !important;
}

.shell:not(.boss-shell) select,
.modal-card select,
.approval-review-form select,
.review-dialog-select {
  padding-right: 28px !important;
  appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 81, 116, 0.58) 50%),
    linear-gradient(135deg, rgba(15, 81, 116, 0.58) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}

.shell:not(.boss-shell) textarea,
.modal-card textarea,
.approval-review-form textarea,
.review-dialog-textarea {
  min-height: 64px !important;
  resize: vertical !important;
}

.shell:not(.boss-shell) input:focus,
.shell:not(.boss-shell) select:focus,
.shell:not(.boss-shell) textarea:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus,
.approval-review-form select:focus,
.approval-review-form textarea:focus,
.review-dialog-select:focus,
.review-dialog-textarea:focus {
  border-color: rgba(15, 118, 110, 0.38) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09), inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.shell:not(.boss-shell) input[readonly],
.shell:not(.boss-shell) textarea[readonly],
.shell:not(.boss-shell) select[disabled],
.shell:not(.boss-shell) input[disabled],
.shell:not(.boss-shell) textarea[disabled],
.modal-card input[readonly],
.modal-card textarea[readonly],
.modal-card select[disabled],
.modal-card input[disabled],
.modal-card textarea[disabled] {
  color: rgba(15, 35, 31, 0.66) !important;
  border-style: dashed !important;
  background:
    repeating-linear-gradient(135deg, rgba(15, 81, 116, 0.035) 0 6px, rgba(255, 255, 255, 0.56) 6px 12px) !important;
}

.shell:not(.boss-shell) input[type="date"],
.shell:not(.boss-shell) input[type="month"],
.modal-card input[type="date"],
.modal-card input[type="month"] {
  min-width: 138px !important;
}

.shell:not(.boss-shell) input[type="number"],
.modal-card input[type="number"],
.shell:not(.boss-shell) input[inputmode="decimal"],
.modal-card input[inputmode="decimal"] {
  text-align: right !important;
}

.shell:not(.boss-shell) input[type="file"],
.modal-card input[type="file"] {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) input[type="file"]::file-selector-button,
.modal-card input[type="file"]::file-selector-button {
  margin-right: 8px !important;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #0f5a74) !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) label:has(input[required])::after,
.shell:not(.boss-shell) label:has(select[required])::after,
.shell:not(.boss-shell) label:has(textarea[required])::after,
.modal-card label:has(input[required])::after,
.modal-card label:has(select[required])::after,
.modal-card label:has(textarea[required])::after {
  position: absolute !important;
  top: 1px !important;
  right: 2px !important;
  margin: 0 !important;
  padding: 2px 5px !important;
  font-size: 8.5px !important;
}

.modal-card .form-actions,
.modal-card .modal-actions,
.shell:not(.boss-shell) .form-actions,
.shell:not(.boss-shell) .approval-form-actions {
  min-height: 42px !important;
  border-top: 1px solid rgba(15, 81, 116, 0.06) !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) input,
  .shell:not(.boss-shell) select,
  .shell:not(.boss-shell) textarea,
  .modal-card input,
  .modal-card select,
  .modal-card textarea {
    min-height: 36px !important;
    font-size: 12px !important;
  }

  .shell:not(.boss-shell) input[type="date"],
  .shell:not(.boss-shell) input[type="month"],
  .modal-card input[type="date"],
  .modal-card input[type="month"] {
    min-width: 0 !important;
  }
}

/* 20260714 pageFineTune35: overflow, typography and responsive stability guard. */
#appShell,
#appShell *,
.modal-card,
.modal-card * {
  box-sizing: border-box !important;
}

body {
  overflow-x: hidden !important;
  text-rendering: geometricPrecision !important;
  -webkit-font-smoothing: antialiased !important;
}

.shell:not(.boss-shell) .main-panel,
.shell:not(.boss-shell) .tab-panel,
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .profile-section,
.shell:not(.boss-shell) .tenant-admin-card,
.shell:not(.boss-shell) .finance-panel,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .warehouse-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .tenant-workbench-reminder-card,
.shell:not(.boss-shell) .finance-role-task-card,
.shell:not(.boss-shell) .finance-role-report-card {
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) h1,
.shell:not(.boss-shell) h2,
.shell:not(.boss-shell) h3,
.shell:not(.boss-shell) h4,
.modal-card h2,
.modal-card h3,
.modal-card h4 {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) p,
.shell:not(.boss-shell) li,
.shell:not(.boss-shell) dd,
.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .profile-inline-meta,
.modal-card p {
  max-width: 100% !important;
  line-height: 1.38 !important;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .panel-head,
.shell:not(.boss-shell) .card-head,
.shell:not(.boss-shell) .list-head,
.shell:not(.boss-shell) .profile-section-head,
.modal-card .section-head,
.dialog-head {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .topbar > *,
.shell:not(.boss-shell) .section-head > *,
.shell:not(.boss-shell) .panel-head > *,
.shell:not(.boss-shell) .card-head > *,
.shell:not(.boss-shell) .list-head > *,
.shell:not(.boss-shell) .profile-section-head > *,
.modal-card .section-head > *,
.dialog-head > * {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .link-btn,
.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tab,
.shell:not(.boss-shell) .tenant-business-subnav-btn,
.modal-card button {
  max-width: 100% !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .badge,
.shell:not(.boss-shell) .check-chip,
.shell:not(.boss-shell) .employee-feature-chip,
.shell:not(.boss-shell) .permission-group-chip {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .profile-grid,
.shell:not(.boss-shell) .profile-grid-wide,
.shell:not(.boss-shell) .profile-blocks-grid,
.shell:not(.boss-shell) .tenant-profile-grid,
.shell:not(.boss-shell) .employee-profile-grid,
.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .tenant-role-kpi-grid,
.shell:not(.boss-shell) .tenant-report-kpi-grid,
.shell:not(.boss-shell) .tenant-business-grid,
.shell:not(.boss-shell) .tenant-business-mini-grid,
.shell:not(.boss-shell) .compact-summary-grid {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .profile-grid > *,
.shell:not(.boss-shell) .profile-grid-wide > *,
.shell:not(.boss-shell) .profile-blocks-grid > *,
.shell:not(.boss-shell) .tenant-profile-grid > *,
.shell:not(.boss-shell) .employee-profile-grid > *,
.shell:not(.boss-shell) .metrics-grid > *,
.shell:not(.boss-shell) .tenant-role-kpi-grid > *,
.shell:not(.boss-shell) .tenant-report-kpi-grid > *,
.shell:not(.boss-shell) .tenant-business-grid > *,
.shell:not(.boss-shell) .tenant-business-mini-grid > *,
.shell:not(.boss-shell) .compact-summary-grid > * {
  min-width: 0 !important;
}

.boss-shell,
.boss-shell * {
  box-sizing: border-box !important;
}

.boss-shell .boss-ultra-cockpit,
.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank,
.boss-shell .boss-digest-card,
.boss-shell .boss-drawer-card {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .topbar,
  .shell:not(.boss-shell) .section-head,
  .shell:not(.boss-shell) .panel-head,
  .shell:not(.boss-shell) .card-head,
  .shell:not(.boss-shell) .list-head,
  .shell:not(.boss-shell) .profile-section-head {
    align-items: flex-start !important;
  }

  .shell:not(.boss-shell) .topbar-actions,
  .shell:not(.boss-shell) .section-head-actions,
  .shell:not(.boss-shell) .hero-actions,
  .shell:not(.boss-shell) .form-actions,
  .shell:not(.boss-shell) .modal-actions {
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .shell:not(.boss-shell) .primary-btn,
  .shell:not(.boss-shell) .ghost-btn,
  .shell:not(.boss-shell) .link-btn,
  .shell:not(.boss-shell) .danger-btn {
    min-width: 0 !important;
  }
}

/* 20260714 pageFineTune36: loading, row feedback and scrollbar polish. */
.shell:not(.boss-shell) .loading,
.shell:not(.boss-shell) .loading-box,
.shell:not(.boss-shell) .skeleton,
.shell:not(.boss-shell) [aria-busy="true"] {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.88), rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.88)) !important;
  background-size: 220% 100% !important;
  animation: fineTuneSkeleton 1.2s ease-in-out infinite !important;
}

@keyframes fineTuneSkeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

.shell:not(.boss-shell) .list-item,
.shell:not(.boss-shell) .tenant-workbench-row,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .hr-final-row,
.shell:not(.boss-shell) .warehouse-mobile-stock-row,
.shell:not(.boss-shell) .warehouse-mobile-warning-row,
.shell:not(.boss-shell) .employee-workbench-todo-row,
.shell:not(.boss-shell) .record-row,
.shell:not(.boss-shell) .table-row {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease !important;
}

.shell:not(.boss-shell) .list-item:hover,
.shell:not(.boss-shell) .tenant-workbench-row:hover,
.shell:not(.boss-shell) .finance-role-task-row:hover,
.shell:not(.boss-shell) .hr-final-row:hover,
.shell:not(.boss-shell) .warehouse-mobile-stock-row:hover,
.shell:not(.boss-shell) .warehouse-mobile-warning-row:hover,
.shell:not(.boss-shell) .employee-workbench-todo-row:hover,
.shell:not(.boss-shell) .record-row:hover,
.shell:not(.boss-shell) .table-row:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(15, 118, 110, 0.16) !important;
  box-shadow: 0 8px 18px rgba(15, 81, 116, 0.08) !important;
}

.shell:not(.boss-shell) .selected,
.shell:not(.boss-shell) [aria-selected="true"],
.shell:not(.boss-shell) .is-selected {
  border-color: rgba(15, 118, 110, 0.24) !important;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(14, 165, 233, 0.06)) !important;
}

.shell:not(.boss-shell) .alert-banner,
.shell:not(.boss-shell) .alert-card {
  animation: fineTuneNoticeIn 0.18s ease-out both !important;
}

.global-notice {
  animation: fineTuneGlobalNoticeIn 0.18s ease-out both !important;
}

@keyframes fineTuneNoticeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fineTuneGlobalNoticeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.shell:not(.boss-shell) *::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.shell:not(.boss-shell) *::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track {
  border-radius: 999px !important;
  background: rgba(15, 81, 116, 0.06) !important;
}

.shell:not(.boss-shell) *::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  background: rgba(15, 118, 110, 0.32) !important;
}

.boss-shell *::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.boss-shell *::-webkit-scrollbar-track {
  border-radius: 999px !important;
  background: rgba(125, 249, 255, 0.08) !important;
}

.boss-shell *::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(125, 249, 255, 0.24) !important;
}

@media (prefers-reduced-motion: reduce) {
  .shell:not(.boss-shell) .loading,
  .shell:not(.boss-shell) .loading-box,
  .shell:not(.boss-shell) .skeleton,
  .shell:not(.boss-shell) [aria-busy="true"] {
    animation: none !important;
  }
}

/* 20260714 pageFineTune37: dashboard, chart and KPI visual refinement. */
.boss-shell .boss-ultra-cockpit {
  isolation: isolate !important;
}

.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-force-workbench,
.boss-shell .boss-force-row {
  position: relative !important;
  overflow: hidden !important;
}

.boss-shell .boss-ultra-panel::before,
.boss-shell .boss-ultra-chart-card::before,
.boss-shell .boss-ultra-kpi::before,
.boss-shell .boss-ultra-mini::before,
.boss-shell .boss-force-workbench::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(135deg, rgba(125, 249, 255, 0.08), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(72, 161, 255, 0.12), transparent 30%) !important;
  opacity: 0.9 !important;
}

.boss-shell .boss-ultra-panel > *,
.boss-shell .boss-ultra-chart-card > *,
.boss-shell .boss-ultra-kpi > *,
.boss-shell .boss-ultra-mini > *,
.boss-shell .boss-force-workbench > * {
  position: relative !important;
  z-index: 1 !important;
}

.boss-shell .boss-ultra-kpi strong,
.boss-shell .boss-ultra-mini strong,
.boss-shell .boss-force-stats strong,
.boss-shell .boss-ultra-todo-summary strong {
  font-variant-numeric: tabular-nums !important;
  text-shadow: 0 0 16px rgba(125, 249, 255, 0.14) !important;
}

.boss-shell .boss-ultra-donut-wrap,
.boss-shell .boss-ultra-gauge,
.boss-shell .boss-ultra-bar-list {
  border-radius: 16px !important;
  background: rgba(4, 17, 41, 0.28) !important;
  border: 1px solid rgba(125, 249, 255, 0.08) !important;
}

.boss-shell .boss-ultra-donut-wrap {
  padding: 8px !important;
}

.boss-shell .boss-ultra-bar-row {
  gap: 7px !important;
  padding: 5px 0 !important;
}

.boss-shell .boss-ultra-bar-row i,
.boss-shell .boss-ultra-rank-row i {
  height: 8px !important;
  background: rgba(125, 249, 255, 0.08) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.24) !important;
}

.boss-shell .boss-ultra-bar-row i b,
.boss-shell .boss-ultra-rank-row i b {
  box-shadow: 0 0 12px rgba(125, 249, 255, 0.18) !important;
}

.boss-shell .boss-ultra-rank-row.active,
.boss-shell .boss-ultra-rank-row:hover,
.boss-shell .boss-ultra-todo-row:hover,
.boss-shell .boss-ultra-work-row:hover,
.boss-shell .boss-force-row:hover {
  border-color: rgba(125, 249, 255, 0.28) !important;
  background: linear-gradient(135deg, rgba(16, 68, 123, 0.68), rgba(4, 17, 41, 0.78)) !important;
  box-shadow: 0 12px 28px rgba(2, 10, 28, 0.24) !important;
}

.boss-shell .boss-force-workbench {
  border-radius: 18px !important;
  border: 1px solid rgba(125, 249, 255, 0.12) !important;
  background: linear-gradient(135deg, rgba(7, 28, 69, 0.9), rgba(4, 17, 41, 0.96)) !important;
}

.boss-shell .boss-force-head,
.boss-shell .boss-force-stats,
.boss-shell .boss-force-list {
  gap: 8px !important;
}

.boss-shell .boss-force-row {
  border-radius: 14px !important;
  border: 1px solid rgba(125, 249, 255, 0.1) !important;
  background: rgba(5, 18, 44, 0.58) !important;
}

.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .tenant-role-kpi-grid > *,
.shell:not(.boss-shell) .tenant-report-kpi-grid > *,
.shell:not(.boss-shell) .compact-summary-grid > *,
.shell:not(.boss-shell) .tenant-workbench-metrics > *,
.shell:not(.boss-shell) .tenant-business-metrics > *,
.shell:not(.boss-shell) .finance-role-metrics > *,
.shell:not(.boss-shell) .hr-final-metrics > *,
.shell:not(.boss-shell) .warehouse-mobile-kpis > *,
.shell:not(.boss-shell) .employee-workbench-kpis > * {
  position: relative !important;
  overflow: hidden !important;
}

.shell:not(.boss-shell) .metric-card::before,
.shell:not(.boss-shell) .tenant-role-kpi-grid > *::before,
.shell:not(.boss-shell) .tenant-report-kpi-grid > *::before,
.shell:not(.boss-shell) .compact-summary-grid > *::before,
.shell:not(.boss-shell) .tenant-workbench-metrics > *::before,
.shell:not(.boss-shell) .tenant-business-metrics > *::before,
.shell:not(.boss-shell) .finance-role-metrics > *::before,
.shell:not(.boss-shell) .hr-final-metrics > *::before,
.shell:not(.boss-shell) .warehouse-mobile-kpis > *::before,
.shell:not(.boss-shell) .employee-workbench-kpis > *::before {
  content: "" !important;
  position: absolute !important;
  inset: auto 10px 8px 10px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.42), rgba(14, 165, 233, 0.22)) !important;
  pointer-events: none !important;
}

.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .tenant-role-kpi-grid strong,
.shell:not(.boss-shell) .tenant-report-kpi-grid strong,
.shell:not(.boss-shell) .compact-summary-grid strong,
.shell:not(.boss-shell) .tenant-workbench-metrics strong,
.shell:not(.boss-shell) .tenant-business-metrics strong,
.shell:not(.boss-shell) .finance-role-metrics strong,
.shell:not(.boss-shell) .hr-final-metrics strong,
.shell:not(.boss-shell) .warehouse-mobile-kpis strong,
.shell:not(.boss-shell) .employee-workbench-kpis strong {
  font-variant-numeric: tabular-nums !important;
}

.shell:not(.boss-shell) .tenant-business-channel-row,
.shell:not(.boss-shell) .tenant-business-work-row,
.shell:not(.boss-shell) .tenant-business-alert-grid article,
.shell:not(.boss-shell) .tenant-report-insight {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

/* 20260714 pageFineTune38: account center, modal density and cockpit finishing pass. */
body:not(.sidebar-nav-collapsed) .shell:not(.boss-shell) {
  grid-template-columns: minmax(268px, 306px) minmax(0, 1fr) !important;
  gap: 2px !important;
}

.shell:not(.boss-shell) .main-panel {
  padding-left: 8px !important;
}

.shell:not(.boss-shell) .tenant-unified-side-title,
.shell:not(.boss-shell) .sidebar-tools-head,
.shell:not(.boss-shell) .section-head.sidebar-tools-head {
  min-height: 34px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tenant-unified-nav-btn {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.super-admin-portal-page,
.super-admin-detail-page,
.super-admin-account-center-shell .group-account-manage-page {
  min-height: calc(100vh - 86px) !important;
  padding: 10px !important;
  border-radius: 18px !important;
}

.super-admin-page-top,
.super-admin-subpage-head,
.super-admin-detail-head,
.super-admin-portal-hero {
  min-height: 58px !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
  padding: 9px 10px !important;
  border-radius: 15px !important;
}

.super-admin-page-top h3,
.super-admin-subpage-head h3,
.super-admin-detail-head h3,
.super-admin-portal-hero h3 {
  margin: 2px 0 0 !important;
  font-size: clamp(17px, 1.45vw, 23px) !important;
}

.super-admin-page-kicker,
.super-admin-entry-kicker,
.super-admin-subpage-head .pill,
.super-admin-detail-head .pill {
  min-height: 22px !important;
  padding: 3px 8px !important;
  font-size: 10.5px !important;
}

.super-admin-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.super-admin-entry-card {
  min-height: 106px !important;
  gap: 6px !important;
  padding: 12px !important;
  border-radius: 16px !important;
}

.super-admin-entry-card strong {
  font-size: clamp(18px, 1.75vw, 24px) !important;
}

.super-admin-entry-card small {
  min-height: 0 !important;
  font-size: 11.5px !important;
  line-height: 1.32 !important;
}

.super-admin-entry-card em {
  font-size: 12px !important;
}

.super-admin-account-row {
  min-height: 54px !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
}

.super-admin-account-row h4 {
  font-size: 14px !important;
}

.super-admin-account-row p,
.super-admin-section-note {
  display: -webkit-box !important;
  overflow: hidden !important;
  max-width: 760px !important;
  margin-top: 2px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
}

.super-admin-simple-account-layout,
.super-admin-detail-page .super-admin-simple-account-layout.two-column,
.super-admin-detail-page .admin-edit-layout,
.group-account-body.two-column {
  grid-template-columns: minmax(0, 1.05fr) minmax(286px, 0.95fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.super-admin-detail-page .panel-card,
.super-admin-detail-page .form-card,
.super-admin-simple-account-layout > .panel-card,
.super-admin-simple-account-layout > .form-card,
.group-account-section,
.group-account-body .panel-card,
.group-account-body .form-card {
  padding: 8px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055) !important;
}

.super-admin-detail-page .section-head,
.super-admin-simple-account-layout .section-head,
.group-account-manage-page .section-head {
  gap: 6px !important;
  min-height: 36px !important;
  margin-bottom: 6px !important;
}

.super-admin-editor-title,
.super-admin-detail-page .form-card > h4 {
  min-height: 30px !important;
  margin-bottom: 6px !important;
  padding-bottom: 5px !important;
  border-bottom: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.super-admin-simple-form,
.super-admin-detail-page .group-account-form-grid,
.group-account-form-grid,
.employee-permission-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.super-admin-simple-form label,
.group-account-form-grid label,
.employee-permission-form label {
  gap: 3px !important;
  min-width: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.super-admin-simple-form input,
.super-admin-simple-form select,
.group-account-form-grid input,
.group-account-form-grid select,
.employee-permission-form input,
.employee-permission-form select {
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
}

.super-admin-simple-form .full-span,
.employee-permission-form .full-span,
.group-account-form-grid .full-span {
  grid-column: 1 / -1 !important;
}

.super-admin-simple-form h5,
.employee-permission-form h5 {
  margin: 0 0 5px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.super-admin-simple-account-table,
.employee-permission-table,
.group-account-manage-page .table {
  width: 100% !important;
  table-layout: fixed !important;
  border-spacing: 0 !important;
}

.super-admin-simple-account-table th,
.super-admin-simple-account-table td,
.employee-permission-table th,
.employee-permission-table td,
.group-account-manage-page .table th,
.group-account-manage-page .table td {
  height: 34px !important;
  padding: 5px 6px !important;
  font-size: 11px !important;
  line-height: 1.18 !important;
  vertical-align: middle !important;
}

.super-admin-simple-account-table .ghost-btn.mini,
.employee-permission-table .ghost-btn.mini,
.group-account-manage-page .table .ghost-btn.mini {
  min-height: 26px !important;
  min-width: 38px !important;
  padding: 4px 8px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.permission-group-block {
  padding: 7px !important;
  border-radius: 12px !important;
}

.permission-group-grid,
.tenant-admin-permission-grid,
.employee-feature-permission-grid,
.super-admin-simple-permissions {
  gap: 5px !important;
}

.permission-group-chip,
.tenant-admin-permission-chip,
.employee-feature-chip {
  min-height: 26px !important;
  padding: 4px 6px !important;
  border-radius: 9px !important;
  font-size: 10.5px !important;
}

.group-account-summary,
.group-account-head {
  min-height: 36px !important;
  padding: 7px 9px !important;
  border-radius: 13px !important;
}

.group-account-summary h4,
.group-account-head h4 {
  font-size: 13px !important;
}

.group-account-head-actions {
  gap: 5px !important;
}

.modal-card.modal-card-wide,
.shell:not(.boss-shell) dialog .modal-card.modal-card-wide {
  width: min(980px, calc(100vw - 28px)) !important;
}

.modal-card,
dialog .modal-card {
  padding: 12px !important;
  border-radius: 18px !important;
}

.modal-card > .section-head,
.modal-card .dialog-head {
  min-height: 38px !important;
  margin-bottom: 8px !important;
  padding-bottom: 7px !important;
}

.modal-card .profile-form,
.modal-card .compact-form-grid,
.modal-card .approval-form-grid,
.modal-card .tenant-form-grid,
.modal-card .group-account-form-grid {
  gap: 7px !important;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 32px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.modal-card textarea {
  min-height: 58px !important;
}

.modal-card .modal-actions,
.modal-card .form-actions {
  gap: 6px !important;
  margin-top: 8px !important;
}

.modal-card .modal-actions button,
.modal-card .form-actions button {
  min-height: 32px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.boss-shell .boss-ultra-cockpit {
  gap: 8px !important;
}

.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-force-workbench,
.boss-shell .boss-digest-card {
  border-radius: 18px !important;
}

.boss-shell .boss-ultra-panel h3,
.boss-shell .boss-ultra-chart-card h3,
.boss-shell .boss-force-head h3,
.boss-shell .boss-digest-card h3 {
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini {
  min-height: 74px !important;
  padding: 10px !important;
}

.boss-shell .boss-ultra-kpi span,
.boss-shell .boss-ultra-mini span,
.boss-shell .boss-ultra-todo-row span,
.boss-shell .boss-force-row span {
  font-size: 10.5px !important;
}

.boss-shell .boss-ultra-kpi strong,
.boss-shell .boss-ultra-mini strong {
  font-size: clamp(18px, 1.9vw, 26px) !important;
}

.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-force-row,
.boss-shell .boss-ultra-rank-row {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

@media (max-width: 1180px) {
  .super-admin-entry-grid,
  .super-admin-simple-account-layout,
  .super-admin-detail-page .super-admin-simple-account-layout.two-column,
  .super-admin-detail-page .admin-edit-layout,
  .group-account-body.two-column {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body:not(.sidebar-nav-collapsed) .shell:not(.boss-shell) {
    grid-template-columns: 1fr !important;
  }

  .super-admin-simple-form,
  .super-admin-detail-page .group-account-form-grid,
  .group-account-form-grid,
  .employee-permission-form {
    grid-template-columns: 1fr !important;
  }
}

/* 20260714 pageFineTune39: cross-role subnav, list and workbench density refinement. */
.shell:not(.boss-shell) .tabs,
.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .hr-final-subnav,
.shell:not(.boss-shell) .tenant-report-subnav,
.shell:not(.boss-shell) .tenant-profile-subnav,
.shell:not(.boss-shell) .employee-secondary-nav,
.shell:not(.boss-shell) .finance-role-nav,
.shell:not(.boss-shell) .warehouse-secondary-nav {
  min-height: 38px !important;
  gap: 5px !important;
  padding: 5px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.07) !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045) !important;
}

.shell:not(.boss-shell) .tab,
.shell:not(.boss-shell) .tenant-business-subnav-btn,
.shell:not(.boss-shell) .hr-final-subnav button,
.shell:not(.boss-shell) .tenant-report-subnav button,
.shell:not(.boss-shell) .tenant-profile-subnav button,
.shell:not(.boss-shell) .employee-secondary-nav button,
.shell:not(.boss-shell) .finance-role-nav button,
.shell:not(.boss-shell) .warehouse-secondary-nav button {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.shell:not(.boss-shell) .tab.active,
.shell:not(.boss-shell) .tenant-business-subnav-btn.active,
.shell:not(.boss-shell) .hr-final-subnav button.active,
.shell:not(.boss-shell) .tenant-report-subnav button.active,
.shell:not(.boss-shell) .tenant-profile-subnav button.active,
.shell:not(.boss-shell) .employee-secondary-nav button.active,
.shell:not(.boss-shell) .finance-role-nav button.active,
.shell:not(.boss-shell) .warehouse-secondary-nav button.active {
  color: #083c34 !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(14, 165, 233, 0.08)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 7px 14px rgba(15, 118, 110, 0.08) !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .hr-final-hero,
.shell:not(.boss-shell) .warehouse-mobile-hero,
.shell:not(.boss-shell) .inventory-hero-panel {
  min-height: 58px !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border-radius: 17px !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero h2,
.shell:not(.boss-shell) .tenant-workbench-hero h3,
.shell:not(.boss-shell) .employee-home-hero h2,
.shell:not(.boss-shell) .employee-home-copy h3,
.shell:not(.boss-shell) .employee-workbench-hero h2,
.shell:not(.boss-shell) .employee-workbench-hero h3,
.shell:not(.boss-shell) .finance-role-hero h2,
.shell:not(.boss-shell) .hr-final-hero h2,
.shell:not(.boss-shell) .warehouse-mobile-hero h3,
.shell:not(.boss-shell) .inventory-hero-panel h2 {
  margin: 0 !important;
  font-size: clamp(17px, 1.55vw, 24px) !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero p,
.shell:not(.boss-shell) .employee-home-hero p,
.shell:not(.boss-shell) .employee-workbench-hero p,
.shell:not(.boss-shell) .finance-role-hero p,
.shell:not(.boss-shell) .hr-final-hero p,
.shell:not(.boss-shell) .warehouse-mobile-hero p,
.shell:not(.boss-shell) .inventory-hero-panel p {
  margin-top: 3px !important;
  font-size: 11.2px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .warehouse-mobile-card,
.shell:not(.boss-shell) .finance-role-page .panel-card,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .tenant-profile-compact-card,
.shell:not(.boss-shell) .tenant-profile-subpanel,
.shell:not(.boss-shell) .tenant-profile-basic-tight,
.shell:not(.boss-shell) .tenant-report-insight,
.shell:not(.boss-shell) .tenant-business-card {
  padding: 10px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .panel-head,
.shell:not(.boss-shell) .card-head,
.shell:not(.boss-shell) .list-head,
.shell:not(.boss-shell) .profile-section-head,
.shell:not(.boss-shell) .warehouse-mobile-card-head {
  min-height: 34px !important;
  gap: 6px !important;
  margin-bottom: 7px !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-head h3,
.shell:not(.boss-shell) .card-head h3,
.shell:not(.boss-shell) .list-head h3,
.shell:not(.boss-shell) .profile-section-head h3,
.shell:not(.boss-shell) .profile-section-head h4,
.shell:not(.boss-shell) .warehouse-mobile-card-head h4 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .panel-head p,
.shell:not(.boss-shell) .card-head p,
.shell:not(.boss-shell) .list-head p,
.shell:not(.boss-shell) .warehouse-mobile-card-head p,
.shell:not(.boss-shell) .profile-inline-meta {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .compact-summary-grid,
.shell:not(.boss-shell) .tenant-workbench-metrics,
.shell:not(.boss-shell) .tenant-business-metrics,
.shell:not(.boss-shell) .finance-role-metrics,
.shell:not(.boss-shell) .finance-role-mini-metrics,
.shell:not(.boss-shell) .hr-final-metrics,
.shell:not(.boss-shell) .warehouse-mobile-kpis,
.shell:not(.boss-shell) .employee-home-kpis,
.shell:not(.boss-shell) .employee-workbench-kpis {
  gap: 7px !important;
}

.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .tenant-workbench-metrics > *,
.shell:not(.boss-shell) .tenant-business-metrics > *,
.shell:not(.boss-shell) .finance-role-metrics > *,
.shell:not(.boss-shell) .finance-role-mini-metrics > *,
.shell:not(.boss-shell) .hr-final-metric-card,
.shell:not(.boss-shell) .warehouse-mobile-kpi,
.shell:not(.boss-shell) .employee-home-kpis > *,
.shell:not(.boss-shell) .employee-workbench-kpis > * {
  min-height: 66px !important;
  padding: 9px !important;
  border-radius: 14px !important;
}

.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .tenant-workbench-metrics strong,
.shell:not(.boss-shell) .tenant-business-metrics strong,
.shell:not(.boss-shell) .finance-role-metrics strong,
.shell:not(.boss-shell) .finance-role-mini-metrics strong,
.shell:not(.boss-shell) .hr-final-metric-card strong,
.shell:not(.boss-shell) .warehouse-mobile-kpi strong,
.shell:not(.boss-shell) .employee-home-kpis strong,
.shell:not(.boss-shell) .employee-workbench-kpis strong {
  font-size: clamp(17px, 1.65vw, 23px) !important;
  line-height: 1.05 !important;
}

.shell:not(.boss-shell) .metric-card p,
.shell:not(.boss-shell) .tenant-workbench-metrics p,
.shell:not(.boss-shell) .tenant-business-metrics p,
.shell:not(.boss-shell) .finance-role-metrics p,
.shell:not(.boss-shell) .finance-role-mini-metrics p,
.shell:not(.boss-shell) .hr-final-metric-card p,
.shell:not(.boss-shell) .warehouse-mobile-kpi span,
.shell:not(.boss-shell) .employee-home-kpis span,
.shell:not(.boss-shell) .employee-workbench-kpis span {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}

.shell:not(.boss-shell) .list,
.shell:not(.boss-shell) .compact-list,
.shell:not(.boss-shell) .employee-workbench-pms-list,
.shell:not(.boss-shell) .warehouse-mobile-stock-list,
.shell:not(.boss-shell) .warehouse-mobile-warning-list,
.shell:not(.boss-shell) .inventory-suggestion-list,
.shell:not(.boss-shell) .inventory-saving-list {
  gap: 6px !important;
}

.shell:not(.boss-shell) .list-item,
.shell:not(.boss-shell) .compact-list-item,
.shell:not(.boss-shell) .employee-workbench-todo-row,
.shell:not(.boss-shell) .employee-workbench-pms-row,
.shell:not(.boss-shell) .hr-final-row,
.shell:not(.boss-shell) .warehouse-mobile-stock-item,
.shell:not(.boss-shell) .warehouse-mobile-warning-item,
.shell:not(.boss-shell) .warehouse-mobile-stock-row,
.shell:not(.boss-shell) .warehouse-mobile-warning-row,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .tenant-business-channel-row,
.shell:not(.boss-shell) .tenant-business-work-row {
  min-height: 36px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .list-item strong,
.shell:not(.boss-shell) .compact-list-item strong,
.shell:not(.boss-shell) .employee-workbench-todo-row strong,
.shell:not(.boss-shell) .employee-workbench-pms-row strong,
.shell:not(.boss-shell) .hr-final-row strong,
.shell:not(.boss-shell) .warehouse-mobile-stock-item strong,
.shell:not(.boss-shell) .warehouse-mobile-warning-item strong,
.shell:not(.boss-shell) .warehouse-mobile-stock-row strong,
.shell:not(.boss-shell) .warehouse-mobile-warning-row strong {
  font-size: 12px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .list-item p,
.shell:not(.boss-shell) .compact-list-item .item-meta,
.shell:not(.boss-shell) .employee-workbench-todo-row span,
.shell:not(.boss-shell) .employee-workbench-pms-row span,
.shell:not(.boss-shell) .hr-final-row span,
.shell:not(.boss-shell) .warehouse-mobile-stock-item p,
.shell:not(.boss-shell) .warehouse-mobile-warning-item p {
  font-size: 10.5px !important;
  line-height: 1.24 !important;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .table-compact,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .finance-report-table,
.shell:not(.boss-shell) .tenant-leave-history-table {
  border-radius: 14px !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .table-compact th,
.shell:not(.boss-shell) .table-compact td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .tenant-leave-history-table th,
.shell:not(.boss-shell) .tenant-leave-history-table td {
  height: 34px !important;
  padding: 5px 7px !important;
  font-size: 11px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .link-btn {
  min-height: 31px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .primary-btn.mini,
.shell:not(.boss-shell) .ghost-btn.mini,
.shell:not(.boss-shell) .danger-btn.mini,
.shell:not(.boss-shell) .link-btn.mini,
.shell:not(.boss-shell) .table .ghost-btn,
.shell:not(.boss-shell) .table .primary-btn {
  min-height: 26px !important;
  padding: 4px 8px !important;
  border-radius: 9px !important;
  font-size: 10.8px !important;
}

.shell:not(.boss-shell) .profile-grid,
.shell:not(.boss-shell) .profile-grid-wide,
.shell:not(.boss-shell) .tenant-profile-grid,
.shell:not(.boss-shell) .tenant-profile-compact-grid,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-grid-wide,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-grid-wide {
  gap: 6px !important;
}

.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item {
  min-height: 42px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .profile-item span,
.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item span,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item span,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item span {
  font-size: 10px !important;
}

.shell:not(.boss-shell) .profile-item strong,
.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item strong,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item strong,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item strong {
  font-size: 12px !important;
  line-height: 1.22 !important;
}

@media (max-width: 920px) {
  .shell:not(.boss-shell) .metrics-grid,
  .shell:not(.boss-shell) .compact-summary-grid,
  .shell:not(.boss-shell) .tenant-workbench-metrics,
  .shell:not(.boss-shell) .tenant-business-metrics,
  .shell:not(.boss-shell) .finance-role-metrics,
  .shell:not(.boss-shell) .finance-role-mini-metrics,
  .shell:not(.boss-shell) .hr-final-metrics,
  .shell:not(.boss-shell) .warehouse-mobile-kpis,
  .shell:not(.boss-shell) .employee-home-kpis,
  .shell:not(.boss-shell) .employee-workbench-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260714 pageFineTune40: auth, empty state, notice and dialog finishing pass. */
.auth-shell {
  padding: 18px !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(15, 118, 110, 0.18), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(203, 139, 61, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 48%),
    #f3ecdf !important;
}

.auth-card {
  width: min(420px, calc(100vw - 28px)) !important;
  padding: 22px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 251, 244, 0.88)),
    var(--panel) !important;
  box-shadow: 0 22px 52px rgba(20, 35, 31, 0.13) !important;
}

.auth-card .eyebrow {
  margin-bottom: 6px !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
}

.auth-card h1 {
  margin: 0 0 5px !important;
  font-size: clamp(25px, 4vw, 34px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

.auth-card > .muted {
  margin-bottom: 14px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.auth-form {
  gap: 9px !important;
}

.auth-form label {
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-form input {
  min-height: 38px !important;
  padding: 8px 11px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
}

.auth-password-field input {
  padding-right: 46px !important;
}

.auth-password-toggle {
  right: 8px !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(20, 35, 31, 0.08) !important;
  background: rgba(255, 255, 255, 0.64) !important;
}

.auth-password-toggle[aria-pressed="true"],
.auth-password-toggle.active {
  color: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  background: linear-gradient(135deg, #0f766e, #0ea5e9) !important;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.16) !important;
}

.auth-password-toggle svg {
  width: 17px !important;
  height: 17px !important;
}

.auth-form .primary-btn {
  min-height: 40px !important;
  margin-top: 4px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}

.global-notice {
  right: 18px !important;
  bottom: 18px !important;
  min-width: 240px !important;
  max-width: min(420px, calc(100vw - 36px)) !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16) !important;
}

.global-notice::before {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  margin-right: 7px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  vertical-align: 1px !important;
  opacity: 0.72 !important;
}

.empty-state,
.shell:not(.boss-shell) .empty-state {
  min-height: 118px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px dashed rgba(15, 118, 110, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(14, 165, 233, 0.045)),
    rgba(255, 255, 255, 0.68) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72) !important;
}

.empty-state::before {
  width: 34px !important;
  height: 34px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(14, 165, 233, 0.68)) !important;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.14) !important;
}

.empty-state h3,
.empty-state strong {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.empty-state p {
  max-width: 420px !important;
  margin: 5px auto 0 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

dialog::backdrop {
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 118, 110, 0.16), transparent 34%),
    rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(6px) !important;
}

.modal-card,
dialog .modal-card {
  max-height: min(86vh, 760px) !important;
  overflow: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(248, 252, 250, 0.94)) !important;
  box-shadow: 0 24px 68px rgba(15, 23, 42, 0.22) !important;
}

.modal-card > .section-head,
.modal-card .dialog-head,
.dialog-head {
  position: sticky !important;
  top: -12px !important;
  z-index: 2 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.9)) !important;
  backdrop-filter: blur(12px) !important;
}

.modal-card .icon-btn,
.dialog-head .icon-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: rgba(20, 35, 31, 0.06) !important;
}

.approval-detail-dialog-body,
.review-dialog-body,
.finance-more-dialog {
  gap: 8px !important;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 18px !important;
  }

  .global-notice {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  .modal-card,
  dialog .modal-card {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 10px !important;
  }
}

/* 20260714 pageFineTune41: filters, pagers, attachments and status/action polish. */
.shell:not(.boss-shell) .toolbar,
.shell:not(.boss-shell) .filter-row,
.shell:not(.boss-shell) .table-filter-row,
.shell:not(.boss-shell) .inventory-history-filter,
.shell:not(.boss-shell) .hr-final-filter-row,
.shell:not(.boss-shell) .hr-final-filter-actions,
.shell:not(.boss-shell) .boss-drawer-toolbar,
.shell:not(.boss-shell) .finance-role-tenant-select {
  min-height: 38px !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.07) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.shell:not(.boss-shell) .toolbar input,
.shell:not(.boss-shell) .toolbar select,
.shell:not(.boss-shell) .filter-row input,
.shell:not(.boss-shell) .filter-row select,
.shell:not(.boss-shell) .table-filter-input,
.shell:not(.boss-shell) .inventory-history-filter input,
.shell:not(.boss-shell) .inventory-history-filter select,
.shell:not(.boss-shell) .hr-final-filter-row input,
.shell:not(.boss-shell) .hr-final-filter-row select,
.shell:not(.boss-shell) .finance-role-tenant-select select {
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .pagination,
.shell:not(.boss-shell) .table-pagination,
.shell:not(.boss-shell) .employee-handover-pagination,
.shell:not(.boss-shell) .employee-handover-history-pager,
.shell:not(.boss-shell) .pager {
  min-height: 36px !important;
  gap: 6px !important;
  justify-content: flex-end !important;
  padding-top: 7px !important;
}

.shell:not(.boss-shell) .pagination button,
.shell:not(.boss-shell) .table-pagination button,
.shell:not(.boss-shell) .employee-handover-pagination button,
.shell:not(.boss-shell) .employee-handover-history-pager button,
.shell:not(.boss-shell) .pager button {
  min-height: 28px !important;
  min-width: 56px !important;
  padding: 4px 9px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.shell:not(.boss-shell) .pagination span,
.shell:not(.boss-shell) .table-pagination span,
.shell:not(.boss-shell) .employee-handover-pagination span,
.shell:not(.boss-shell) .employee-handover-history-pager span,
.shell:not(.boss-shell) .pager span {
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
  background: rgba(15, 81, 116, 0.055) !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .badge,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .mini-tag,
.shell:not(.boss-shell) .check-chip,
.shell:not(.boss-shell) .permission-chip,
.shell:not(.boss-shell) .employee-feature-chip,
.shell:not(.boss-shell) .permission-group-chip {
  min-height: 24px !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .status-ok,
.shell:not(.boss-shell) .status-success {
  color: #166534 !important;
  background: rgba(22, 163, 74, 0.11) !important;
  border-color: rgba(22, 163, 74, 0.16) !important;
}

.shell:not(.boss-shell) .status-warn,
.shell:not(.boss-shell) .status-warning {
  color: #9a3412 !important;
  background: rgba(245, 158, 11, 0.13) !important;
  border-color: rgba(245, 158, 11, 0.18) !important;
}

.shell:not(.boss-shell) .status-risk,
.shell:not(.boss-shell) .status-danger,
.shell:not(.boss-shell) .status-error {
  color: #991b1b !important;
  background: rgba(220, 38, 38, 0.1) !important;
  border-color: rgba(220, 38, 38, 0.16) !important;
}

.shell:not(.boss-shell) .status-info {
  color: #075985 !important;
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.16) !important;
}

.shell:not(.boss-shell) [data-invoice-file-list],
.shell:not(.boss-shell) [data-invoice-file-tip],
.modal-card .field-hint,
.modal-card .asset-link,
.shell:not(.boss-shell) .file-list,
.shell:not(.boss-shell) .attachment-list,
.shell:not(.boss-shell) .upload-list,
.shell:not(.boss-shell) .profile-attachments,
.shell:not(.boss-shell) .tenant-profile-attachment-grid {
  gap: 6px !important;
  font-size: 10.8px !important;
  line-height: 1.28 !important;
}

.modal-card input[type="file"],
.shell:not(.boss-shell) input[type="file"] {
  min-height: 34px !important;
  padding: 5px !important;
  border-radius: 11px !important;
  border: 1px dashed rgba(15, 118, 110, 0.18) !important;
  background: rgba(15, 118, 110, 0.045) !important;
  font-size: 11px !important;
}

.modal-card input[type="file"]::file-selector-button,
.shell:not(.boss-shell) input[type="file"]::file-selector-button {
  min-height: 24px !important;
  margin-right: 8px !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #0ea5e9) !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .inline-actions,
.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .form-actions,
.shell:not(.boss-shell) .modal-actions,
.shell:not(.boss-shell) .section-head-actions,
.shell:not(.boss-shell) .topbar-actions,
.shell:not(.boss-shell) .tenant-workbench-actions,
.shell:not(.boss-shell) .inventory-row-actions,
.shell:not(.boss-shell) .warehouse-mobile-input-actions,
.shell:not(.boss-shell) .employee-workbench-actions {
  gap: 5px !important;
}

.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .enterprise-approval-flat-table .approval-table-actions,
.shell:not(.boss-shell) .employee-approval-flat-table .approval-table-actions {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.shell:not(.boss-shell) .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) .approval-table-actions .primary-btn,
.shell:not(.boss-shell) .approval-table-actions .danger-btn {
  min-width: 40px !important;
  max-width: 68px !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .section-head-actions .pill,
.shell:not(.boss-shell) .topbar-actions .ghost-btn,
.shell:not(.boss-shell) .topbar-actions .primary-btn {
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .toolbar,
  .shell:not(.boss-shell) .filter-row,
  .shell:not(.boss-shell) .table-filter-row,
  .shell:not(.boss-shell) .inventory-history-filter,
  .shell:not(.boss-shell) .hr-final-filter-row {
    align-items: stretch !important;
  }

  .shell:not(.boss-shell) .pagination,
  .shell:not(.boss-shell) .table-pagination,
  .shell:not(.boss-shell) .employee-handover-pagination,
  .shell:not(.boss-shell) .employee-handover-history-pager,
  .shell:not(.boss-shell) .pager {
    justify-content: flex-start !important;
  }
}

/* 20260714 pageFineTune42: dashboards, charts, KPI and report panel refinement. */
.shell:not(.boss-shell) .reports-grid,
.shell:not(.boss-shell) .tenant-report-grid,
.shell:not(.boss-shell) .tenant-business-grid,
.shell:not(.boss-shell) .tenant-business-mini-grid,
.shell:not(.boss-shell) .finance-workbench-grid,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .employee-workbench-main,
.shell:not(.boss-shell) .boss-drawer-grid {
  gap: 8px !important;
}

.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .finance-role-report-card,
.shell:not(.boss-shell) .tenant-report-insight,
.shell:not(.boss-shell) .tenant-business-alert-grid article,
.shell:not(.boss-shell) .tenant-business-channel-row,
.shell:not(.boss-shell) .tenant-business-work-row,
.shell:not(.boss-shell) .finance-advice-list,
.shell:not(.boss-shell) .inventory-suggestion-list,
.shell:not(.boss-shell) .inventory-saving-list {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 15px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 252, 250, 0.64)) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045) !important;
}

.shell:not(.boss-shell) .report-card::after,
.shell:not(.boss-shell) .finance-role-report-card::after,
.shell:not(.boss-shell) .tenant-report-insight::after,
.shell:not(.boss-shell) .tenant-business-alert-grid article::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 10px 8px 10px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.32), rgba(14, 165, 233, 0.18)) !important;
  pointer-events: none !important;
}

.shell:not(.boss-shell) .report-card p,
.shell:not(.boss-shell) .finance-role-report-card p,
.shell:not(.boss-shell) .tenant-report-insight p,
.shell:not(.boss-shell) .tenant-business-alert-grid article p,
.shell:not(.boss-shell) .finance-advice-list p,
.shell:not(.boss-shell) .inventory-suggestion-list p,
.shell:not(.boss-shell) .inventory-saving-list p {
  margin: 0 !important;
  font-size: 10.8px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .report-card strong,
.shell:not(.boss-shell) .finance-role-report-card strong,
.shell:not(.boss-shell) .tenant-report-insight strong,
.shell:not(.boss-shell) .tenant-business-alert-grid article strong {
  font-size: clamp(17px, 1.7vw, 24px) !important;
  line-height: 1.08 !important;
  font-variant-numeric: tabular-nums !important;
}

.shell:not(.boss-shell) .chart-card,
.shell:not(.boss-shell) .chart-panel,
.shell:not(.boss-shell) .report-chart,
.shell:not(.boss-shell) .tenant-business-chart,
.shell:not(.boss-shell) .tenant-report-chart,
.shell:not(.boss-shell) .finance-report-chart,
.shell:not(.boss-shell) .donut-card,
.shell:not(.boss-shell) .bar-card {
  min-height: 156px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

.shell:not(.boss-shell) .bar-row,
.shell:not(.boss-shell) .chart-row,
.shell:not(.boss-shell) .tenant-business-channel-row,
.shell:not(.boss-shell) .tenant-business-work-row {
  gap: 7px !important;
}

.shell:not(.boss-shell) .bar-row i,
.shell:not(.boss-shell) .chart-row i,
.shell:not(.boss-shell) .tenant-business-channel-row i,
.shell:not(.boss-shell) .tenant-business-work-row i {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(15, 81, 116, 0.08) !important;
}

.shell:not(.boss-shell) .bar-row i b,
.shell:not(.boss-shell) .chart-row i b,
.shell:not(.boss-shell) .tenant-business-channel-row i b,
.shell:not(.boss-shell) .tenant-business-work-row i b {
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0f766e, #0ea5e9) !important;
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.12) !important;
}

.boss-shell .boss-ultra-cockpit {
  padding: 8px !important;
}

.boss-shell .boss-ultra-header {
  min-height: 54px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
}

.boss-shell .boss-ultra-header h2 {
  font-size: clamp(20px, 2.1vw, 30px) !important;
  line-height: 1.05 !important;
}

.boss-shell .boss-ultra-range {
  min-height: 32px !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 12px !important;
}

.boss-shell .boss-ultra-range button,
.boss-shell .boss-filter-chip {
  min-height: 26px !important;
  padding: 4px 9px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.boss-shell .boss-ultra-kpi-grid,
.boss-shell .boss-ultra-mini-grid {
  gap: 7px !important;
}

.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini {
  min-height: 68px !important;
  padding: 9px !important;
  border-radius: 16px !important;
}

.boss-shell .boss-ultra-kpi strong,
.boss-shell .boss-ultra-mini strong {
  font-size: clamp(18px, 2vw, 28px) !important;
  line-height: 1 !important;
}

.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank,
.boss-shell .boss-force-workbench {
  padding: 10px !important;
  border-radius: 18px !important;
}

.boss-shell .boss-ultra-chart-title,
.boss-shell .boss-ultra-panel h3,
.boss-shell .boss-ultra-chart-card h3,
.boss-shell .boss-ultra-rank h3 {
  min-height: 28px !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
}

.boss-shell .boss-ultra-donut-wrap,
.boss-shell .boss-ultra-gauge,
.boss-shell .boss-ultra-bar-list {
  min-height: 118px !important;
  padding: 8px !important;
}

.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-ultra-rank-row,
.boss-shell .boss-force-row {
  min-height: 32px !important;
  padding: 6px 8px !important;
}

.boss-shell .boss-ultra-todo-row strong,
.boss-shell .boss-ultra-work-row strong,
.boss-shell .boss-ultra-rank-row strong,
.boss-shell .boss-force-row strong {
  font-size: 11.5px !important;
  line-height: 1.18 !important;
}

@media (max-width: 1180px) {
  .boss-shell .boss-ultra-cockpit {
    max-height: none !important;
  }
}

/* 20260715 pageFineTune43: detail, drawer, form section and focus polish. */
.shell:not(.boss-shell) .approval-detail-grid,
.shell:not(.boss-shell) .profile-blocks-grid,
.shell:not(.boss-shell) .invoice-detail-grid,
.shell:not(.boss-shell) .super-admin-detail-grid,
.shell:not(.boss-shell) .employee-detail-layout {
  gap: 8px !important;
}

.shell:not(.boss-shell) .approval-detail-block,
.shell:not(.boss-shell) .profile-block,
.shell:not(.boss-shell) .invoice-detail-item,
.shell:not(.boss-shell) .boss-detail-cell,
.shell:not(.boss-shell) .inventory-assistant-summary-preview,
.shell:not(.boss-shell) .employee-directory-readonly-panel {
  min-height: 48px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 252, 250, 0.58)) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04) !important;
}

.shell:not(.boss-shell) .approval-detail-block h5,
.shell:not(.boss-shell) .profile-block h5,
.shell:not(.boss-shell) .invoice-detail-item h5,
.shell:not(.boss-shell) .boss-detail-cell span,
.shell:not(.boss-shell) .profile-item span {
  margin: 0 0 3px !important;
  color: rgba(20, 35, 31, 0.58) !important;
  font-size: 10px !important;
  line-height: 1.16 !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .approval-detail-block p,
.shell:not(.boss-shell) .profile-block p,
.shell:not(.boss-shell) .invoice-detail-item p,
.shell:not(.boss-shell) .boss-detail-cell strong,
.shell:not(.boss-shell) .profile-item strong {
  margin: 0 !important;
  color: #14231f !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .profile-section,
.shell:not(.boss-shell) .approval-form-panel,
.shell:not(.boss-shell) .super-admin-detail-page .panel-card,
.shell:not(.boss-shell) .super-admin-detail-page .form-card {
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.055), transparent 30%),
    rgba(255, 255, 255, 0.78) !important;
}

.shell:not(.boss-shell) .profile-section-head,
.shell:not(.boss-shell) .form-card > .section-head,
.shell:not(.boss-shell) .super-admin-detail-head,
.shell:not(.boss-shell) .boss-detail-head,
.boss-shell .boss-drawer-head,
.boss-shell .boss-drawer-toolbar {
  min-height: 34px !important;
  gap: 6px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(15, 81, 116, 0.07) !important;
}

.shell:not(.boss-shell) .profile-section-head h3,
.shell:not(.boss-shell) .profile-section-head h4,
.shell:not(.boss-shell) .form-card > .section-head h4,
.shell:not(.boss-shell) .super-admin-detail-head h3,
.shell:not(.boss-shell) .boss-detail-head h4,
.boss-shell .boss-drawer-head h4,
.boss-shell .boss-drawer-toolbar strong {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .field-hint,
.modal-card .field-hint,
.shell:not(.boss-shell) .asset-link,
.modal-card .asset-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  max-width: 100% !important;
  padding: 4px 7px !important;
  border-radius: 9px !important;
  background: rgba(15, 81, 116, 0.055) !important;
  color: rgba(20, 35, 31, 0.68) !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
}

.shell:not(.boss-shell) .asset-link:hover,
.modal-card .asset-link:hover {
  color: #0f766e !important;
  background: rgba(15, 118, 110, 0.1) !important;
}

.shell:not(.boss-shell) input:focus,
.shell:not(.boss-shell) select:focus,
.shell:not(.boss-shell) textarea:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: rgba(15, 118, 110, 0.38) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow:
    0 0 0 3px rgba(15, 118, 110, 0.09),
    inset 0 1px 2px rgba(15, 81, 116, 0.04) !important;
}

.shell:not(.boss-shell) button:focus-visible,
.shell:not(.boss-shell) a:focus-visible,
.shell:not(.boss-shell) input:focus-visible,
.shell:not(.boss-shell) select:focus-visible,
.shell:not(.boss-shell) textarea:focus-visible,
.modal-card button:focus-visible,
.modal-card a:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.42) !important;
  outline-offset: 2px !important;
}

.shell:not(.boss-shell) input[readonly],
.shell:not(.boss-shell) textarea[readonly],
.shell:not(.boss-shell) select[disabled],
.shell:not(.boss-shell) input[disabled],
.shell:not(.boss-shell) textarea[disabled],
.modal-card input[readonly],
.modal-card textarea[readonly],
.modal-card select[disabled],
.modal-card input[disabled],
.modal-card textarea[disabled] {
  color: rgba(20, 35, 31, 0.62) !important;
  border-style: dashed !important;
  background:
    repeating-linear-gradient(135deg, rgba(15, 81, 116, 0.035) 0 6px, rgba(255, 255, 255, 0.58) 6px 12px) !important;
}

.boss-shell .boss-drawer,
.boss-shell .boss-drawer-card,
.boss-shell .boss-drawer-summary-card,
.boss-shell .boss-drawer-advice,
.boss-shell .boss-inline-detail,
.boss-shell .boss-detail-panel {
  border-radius: 18px !important;
  border: 1px solid rgba(125, 249, 255, 0.1) !important;
  background: linear-gradient(145deg, rgba(7, 28, 69, 0.86), rgba(4, 17, 41, 0.94)) !important;
}

.boss-shell .boss-detail-row,
.boss-shell .boss-drawer-mini-item,
.boss-shell .boss-drawer-advice-item {
  min-height: 34px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .approval-detail-grid,
  .shell:not(.boss-shell) .profile-blocks-grid,
  .shell:not(.boss-shell) .invoice-detail-grid,
  .shell:not(.boss-shell) .super-admin-detail-grid,
  .shell:not(.boss-shell) .employee-detail-layout {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune44: unified chrome, navigation and dense data surface refinement. */
html {
  scrollbar-gutter: stable;
}

body {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.shell:not(.boss-shell) {
  grid-template-columns: 256px minmax(0, 1fr) !important;
}

.shell:not(.boss-shell) .sidebar {
  padding: 12px 9px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(239, 247, 244, 0.82)),
    rgba(255, 255, 255, 0.72) !important;
}

.shell:not(.boss-shell) .sidebar-tools {
  padding: 10px !important;
  gap: 6px !important;
  border-radius: 19px !important;
  box-shadow: 0 16px 38px rgba(20, 35, 31, 0.08) !important;
}

.shell:not(.boss-shell) .sidebar-tools-head {
  min-height: 30px !important;
  padding: 0 2px 6px !important;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1) !important;
}

.shell:not(.boss-shell) .sidebar-tools-head h2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  letter-spacing: 0.03em !important;
}

.shell:not(.boss-shell) .sidebar-tools-head h2::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0f766e, #f59e0b) !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08) !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn {
  min-height: 34px !important;
  padding: 7px 10px 7px 12px !important;
  border-radius: 12px !important;
  border-color: rgba(20, 35, 31, 0.075) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 252, 250, 0.66)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.01em !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn.active,
.shell:not(.boss-shell) .sidebar-tool-btn:hover {
  color: #073f3b !important;
  border-color: rgba(15, 118, 110, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(214, 242, 235, 0.95), rgba(255, 255, 255, 0.86)) !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.1) !important;
}

.shell:not(.boss-shell) .main-panel {
  padding: 12px 13px 34px 7px !important;
}

.shell:not(.boss-shell) .topbar {
  min-height: 58px !important;
  padding: 9px 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 36px rgba(20, 35, 31, 0.075) !important;
}

.shell:not(.boss-shell) .topbar h2 {
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.08 !important;
}

.shell:not(.boss-shell) .topbar .eyebrow {
  font-size: 9.5px !important;
  letter-spacing: 0.1em !important;
}

.shell:not(.boss-shell) .topbar-actions {
  gap: 5px !important;
}

.shell:not(.boss-shell) .topbar .ghost-btn,
.shell:not(.boss-shell) .topbar .primary-btn,
.shell:not(.boss-shell) #globalUnifiedLogoutBtn,
.shell:not(.boss-shell) .account-indicator {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .tab-panel {
  margin-top: 8px !important;
  padding: 11px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.86), rgba(248, 252, 250, 0.78)) !important;
}

.shell:not(.boss-shell) .tabs,
body.tenant-primary-secondary-nav .tabs:not(.hidden):not(:empty),
.tenant-unified-secondary-tabs,
.tenant-business-subnav,
.employee-profile-subnav,
.finance-role-subnav,
.inventory-subnav,
.reports-subnav,
.hr-secondary-tabs,
.role-secondary-tabs,
.secondary-tabs {
  gap: 5px !important;
  margin: 7px 0 0 !important;
  padding: 4px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.66) !important;
  border: 1px solid rgba(15, 118, 110, 0.08) !important;
}

.shell:not(.boss-shell) .tab,
.tenant-unified-secondary-tab,
.tenant-business-subnav-btn,
.employee-profile-subnav button,
.finance-role-subnav button,
.inventory-subnav button,
.reports-subnav button,
.hr-secondary-tabs button,
.role-secondary-tabs button,
.secondary-tabs button {
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .tab.active,
.tenant-unified-secondary-tab.active,
.tenant-business-subnav-btn.active,
.employee-profile-subnav button.active,
.finance-role-subnav button.active,
.inventory-subnav button.active,
.reports-subnav button.active,
.hr-secondary-tabs button.active,
.role-secondary-tabs button.active,
.secondary-tabs button.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18) !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .alert-card,
.shell:not(.boss-shell) .profile-summary-card,
.shell:not(.boss-shell) .profile-block {
  padding: 10px !important;
  border-radius: 15px !important;
  border-color: rgba(15, 81, 116, 0.075) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.04), transparent 34%),
    rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 10px 24px rgba(20, 35, 31, 0.045) !important;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .card-head,
.shell:not(.boss-shell) .panel-head {
  min-height: 28px !important;
  margin-bottom: 7px !important;
  gap: 7px !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-card h3,
.shell:not(.boss-shell) .panel-card h4,
.shell:not(.boss-shell) .form-card h4,
.shell:not(.boss-shell) .card-head h3,
.shell:not(.boss-shell) .card-head h4 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em !important;
}

.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .panel-card > p,
.shell:not(.boss-shell) .form-card > p,
.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .subtle {
  font-size: 11px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .metrics-grid,
.shell:not(.boss-shell) .dashboard-grid,
.shell:not(.boss-shell) .two-column,
.shell:not(.boss-shell) .finance-workbench-grid,
.shell:not(.boss-shell) .finance-role-workbench-grid,
.shell:not(.boss-shell) .tenant-business-grid-main,
.shell:not(.boss-shell) .employee-layout,
.shell:not(.boss-shell) .employee-detail-layout,
.shell:not(.boss-shell) .reports-grid,
.shell:not(.boss-shell) .analytics-grid,
.shell:not(.boss-shell) .profile-grid,
.shell:not(.boss-shell) .profile-grid-wide {
  gap: 8px !important;
}

.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .table-scroll,
.shell:not(.boss-shell) .employee-directory-table-wrap {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.07) !important;
  background: rgba(255, 255, 255, 0.56) !important;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .data-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .data-table th {
  height: 30px !important;
  padding: 6px 7px !important;
  color: rgba(20, 35, 31, 0.66) !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(180deg, rgba(248, 252, 250, 0.96), rgba(239, 247, 244, 0.86)) !important;
}

.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .data-table td {
  min-height: 31px !important;
  padding: 6px 7px !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
}

.shell:not(.boss-shell) .table tbody tr:hover td,
.shell:not(.boss-shell) .data-table tbody tr:hover td {
  background: rgba(214, 242, 235, 0.2) !important;
}

.shell:not(.boss-shell) .action-cell,
.shell:not(.boss-shell) .inline-actions,
.shell:not(.boss-shell) .dialog-actions,
.shell:not(.boss-shell) .form-actions {
  gap: 5px !important;
  align-items: center !important;
}

.shell:not(.boss-shell) .action-cell button,
.shell:not(.boss-shell) .inline-actions button,
.shell:not(.boss-shell) .mini,
.shell:not(.boss-shell) button.mini,
.shell:not(.boss-shell) .ghost-btn.mini,
.shell:not(.boss-shell) .primary-btn.mini {
  min-height: 26px !important;
  padding: 4px 8px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) label {
  gap: 4px !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 32px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.shell:not(.boss-shell) textarea,
.modal-card textarea {
  min-height: 74px !important;
}

.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .chip,
.shell:not(.boss-shell) .tag {
  min-height: 24px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
}

.boss-shell .boss-ultra-cockpit,
.boss-shell .boss-dashboard-shell,
.boss-shell .boss-force-workbench {
  gap: 8px !important;
}

.boss-shell .boss-ultra-header,
.boss-shell .boss-ultra-overview,
.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank {
  border-radius: 20px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
}

.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-work-row {
  border-radius: 16px !important;
}

.boss-shell .boss-ultra-chart-title,
.boss-shell .boss-ultra-panel h3,
.boss-shell .boss-ultra-chart-card h3,
.boss-shell .boss-ultra-rank h3 {
  font-size: 12.5px !important;
  letter-spacing: 0.03em !important;
}

@media (max-width: 1180px) {
  .shell:not(.boss-shell) {
    grid-template-columns: 232px minmax(0, 1fr) !important;
  }
}

@media (max-width: 820px) {
  .shell:not(.boss-shell) {
    display: block !important;
  }

  .shell:not(.boss-shell) .sidebar {
    position: static !important;
    min-height: auto !important;
  }

  .shell:not(.boss-shell) .main-panel {
    padding: 10px !important;
  }
}

/* 20260715 pageFineTune45: modal, filter, empty, pager and workflow detail refinement. */
.shell:not(.boss-shell) .modal-card,
.shell:not(.boss-shell) .dialog-card,
.shell:not(.boss-shell) .drawer-card,
.shell:not(.boss-shell) .approval-detail-dialog,
.shell:not(.boss-shell) .profile-editor-card {
  border-radius: 20px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(248, 252, 250, 0.94)) !important;
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.2) !important;
}

.shell:not(.boss-shell) .modal-head,
.shell:not(.boss-shell) .dialog-head,
.shell:not(.boss-shell) .drawer-head,
.shell:not(.boss-shell) .approval-detail-head {
  min-height: 38px !important;
  gap: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.shell:not(.boss-shell) .modal-head h3,
.shell:not(.boss-shell) .dialog-head h3,
.shell:not(.boss-shell) .drawer-head h3,
.shell:not(.boss-shell) .approval-detail-head h3 {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
}

.shell:not(.boss-shell) .toolbar,
.shell:not(.boss-shell) .filter-row,
.shell:not(.boss-shell) .search-row,
.shell:not(.boss-shell) .table-filter-row,
.shell:not(.boss-shell) .report-filter-row,
.shell:not(.boss-shell) .finance-filter-row {
  min-height: 38px !important;
  gap: 6px !important;
  padding: 7px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 252, 250, 0.68)) !important;
}

.shell:not(.boss-shell) .toolbar input,
.shell:not(.boss-shell) .toolbar select,
.shell:not(.boss-shell) .filter-row input,
.shell:not(.boss-shell) .filter-row select,
.shell:not(.boss-shell) .search-row input,
.shell:not(.boss-shell) .table-filter-input {
  min-height: 30px !important;
  padding: 6px 9px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .empty-state,
.shell:not(.boss-shell) .empty,
.shell:not(.boss-shell) .mini-auth-expired-card,
.shell:not(.boss-shell) .empty-list {
  min-height: 128px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px dashed rgba(15, 118, 110, 0.2) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.72) !important;
  color: rgba(20, 35, 31, 0.72) !important;
}

.shell:not(.boss-shell) .empty-state h3,
.shell:not(.boss-shell) .empty-state h4,
.shell:not(.boss-shell) .empty h3,
.shell:not(.boss-shell) .empty-title {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .empty-state p,
.shell:not(.boss-shell) .empty p,
.shell:not(.boss-shell) .empty-desc {
  margin-top: 5px !important;
  font-size: 11.5px !important;
  line-height: 1.34 !important;
}

.shell:not(.boss-shell) .table-pagination,
.shell:not(.boss-shell) .pagination,
.shell:not(.boss-shell) .pager,
.shell:not(.boss-shell) .page-actions {
  min-height: 34px !important;
  gap: 5px !important;
  padding-top: 7px !important;
}

.shell:not(.boss-shell) .table-pagination button,
.shell:not(.boss-shell) .pagination button,
.shell:not(.boss-shell) .pager button {
  min-height: 28px !important;
  min-width: 56px !important;
  padding: 5px 9px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.shell:not(.boss-shell) .file-list,
.shell:not(.boss-shell) .attachment-list,
.shell:not(.boss-shell) .upload-list,
.shell:not(.boss-shell) .profile-attachments {
  gap: 6px !important;
  padding: 7px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.64) !important;
}

.shell:not(.boss-shell) .attachment-link,
.shell:not(.boss-shell) .upload-link,
.shell:not(.boss-shell) .file-link,
.shell:not(.boss-shell) .asset-link {
  min-height: 26px !important;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.shell:not(.boss-shell) .review-dialog-field,
.shell:not(.boss-shell) .approval-review-form label {
  gap: 5px !important;
  font-size: 12px !important;
}

.shell:not(.boss-shell) .review-dialog-select,
.shell:not(.boss-shell) .review-dialog-textarea,
.shell:not(.boss-shell) .approval-review-form select,
.shell:not(.boss-shell) .approval-review-form textarea {
  border-radius: 12px !important;
  font-size: 12px !important;
}

.shell:not(.boss-shell) .review-dialog-textarea,
.shell:not(.boss-shell) .approval-review-form textarea {
  min-height: 82px !important;
}

.shell:not(.boss-shell) .approval-flow,
.shell:not(.boss-shell) .workflow-timeline,
.shell:not(.boss-shell) .status-timeline,
.shell:not(.boss-shell) .flow-steps {
  gap: 7px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.66) !important;
}

.shell:not(.boss-shell) .approval-flow-step,
.shell:not(.boss-shell) .workflow-step,
.shell:not(.boss-shell) .timeline-item,
.shell:not(.boss-shell) .flow-step {
  min-height: 34px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  font-size: 11.5px !important;
  line-height: 1.24 !important;
}

.shell:not(.boss-shell) .list-item,
.shell:not(.boss-shell) .activity-item,
.shell:not(.boss-shell) .alert-item,
.shell:not(.boss-shell) .record-row,
.shell:not(.boss-shell) .finance-workbench-row,
.shell:not(.boss-shell) .hr-workbench-row,
.shell:not(.boss-shell) .inventory-record-row {
  min-height: 38px !important;
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .list-item strong,
.shell:not(.boss-shell) .activity-item strong,
.shell:not(.boss-shell) .alert-item strong,
.shell:not(.boss-shell) .record-row strong {
  font-size: 12px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .mini-stat,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .report-card {
  min-height: 64px !important;
}

.shell:not(.boss-shell) .mini-stat strong,
.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .report-card strong {
  margin-top: 3px !important;
  font-size: clamp(17px, 1.7vw, 22px) !important;
  line-height: 1.02 !important;
  font-variant-numeric: tabular-nums !important;
}

.boss-shell .boss-ultra-todo-panel,
.boss-shell .boss-ultra-work-panel,
.boss-shell .boss-ultra-data-panel {
  border-radius: 20px !important;
}

.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-force-row {
  border: 1px solid rgba(125, 249, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

/* 20260715 pageFineTune46: role-specific legacy block alignment and dashboard density. */
.shell:not(.boss-shell) .inventory-hero-panel,
.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .hr-final-hero {
  min-height: 92px !important;
  padding: 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.86)) !important;
  box-shadow: 0 16px 36px rgba(20, 35, 31, 0.075) !important;
}

.shell:not(.boss-shell) .inventory-hero-copy,
.shell:not(.boss-shell) .employee-home-copy,
.shell:not(.boss-shell) .employee-workbench-copy,
.shell:not(.boss-shell) .finance-role-hero-copy,
.shell:not(.boss-shell) .hr-final-hero-copy {
  gap: 5px !important;
}

.shell:not(.boss-shell) .inventory-hero-tag,
.shell:not(.boss-shell) .inventory-hero-date,
.shell:not(.boss-shell) .inventory-kpi-label,
.shell:not(.boss-shell) .tenant-workbench-hero .eyebrow,
.shell:not(.boss-shell) .finance-role-hero .eyebrow,
.shell:not(.boss-shell) .hr-final-hero .eyebrow {
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.06em !important;
}

.shell:not(.boss-shell) .inventory-hero-kpi,
.shell:not(.boss-shell) .inventory-kpi-value,
.shell:not(.boss-shell) .tenant-workbench-hero strong,
.shell:not(.boss-shell) .finance-role-hero strong,
.shell:not(.boss-shell) .hr-final-hero strong {
  font-size: clamp(18px, 1.8vw, 26px) !important;
  line-height: 1.02 !important;
  font-variant-numeric: tabular-nums !important;
}

.shell:not(.boss-shell) .inventory-kpi-grid,
.shell:not(.boss-shell) .inventory-dashboard-grid,
.shell:not(.boss-shell) .employee-home-grid,
.shell:not(.boss-shell) .employee-workbench-grid,
.shell:not(.boss-shell) .hr-final-grid,
.shell:not(.boss-shell) .finance-role-grid {
  gap: 8px !important;
}

.shell:not(.boss-shell) .inventory-kpi-card,
.shell:not(.boss-shell) .inventory-risk-panel,
.shell:not(.boss-shell) .inventory-trend-panel,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .tenant-profile-compact-card,
.shell:not(.boss-shell) .tenant-profile-subpanel,
.shell:not(.boss-shell) .tenant-profile-basic-tight {
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 81, 116, 0.075) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.045), transparent 34%),
    rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 10px 24px rgba(20, 35, 31, 0.045) !important;
}

.shell:not(.boss-shell) .inventory-suggestion-item,
.shell:not(.boss-shell) .inventory-history-snippet,
.shell:not(.boss-shell) .inventory-history-preview,
.shell:not(.boss-shell) .inventory-history-full,
.shell:not(.boss-shell) .inventory-history-line,
.shell:not(.boss-shell) .payroll-record-row,
.shell:not(.boss-shell) .employee-payroll-row {
  padding: 7px 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 81, 116, 0.07) !important;
  background: rgba(255, 255, 255, 0.64) !important;
}

.shell:not(.boss-shell) .inventory-history-line-head,
.shell:not(.boss-shell) .inventory-history-tag-row,
.shell:not(.boss-shell) .tenant-profile-attachment-grid,
.shell:not(.boss-shell) .modal-actions {
  gap: 5px !important;
}

.shell:not(.boss-shell) .tenant-profile-compact-grid .profile-item,
.shell:not(.boss-shell) .tenant-profile-basic-tight .profile-item,
.shell:not(.boss-shell) .tenant-profile-subpanel .profile-item,
.shell:not(.boss-shell) .profile-grid-wide .profile-item,
.shell:not(.boss-shell) .profile-grid .profile-item {
  min-height: 42px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .profile-grid-wide .profile-item span,
.shell:not(.boss-shell) .profile-grid .profile-item span {
  margin-bottom: 2px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.shell:not(.boss-shell) .profile-grid-wide .profile-item strong,
.shell:not(.boss-shell) .profile-grid .profile-item strong {
  font-size: 11.8px !important;
  line-height: 1.22 !important;
}

.shell:not(.boss-shell) .profile-form,
.shell:not(.boss-shell) .approval-form-grid,
.shell:not(.boss-shell) .group-account-form-grid,
.shell:not(.boss-shell) .employee-form-grid,
.shell:not(.boss-shell) .tenant-profile-form {
  gap: 7px 8px !important;
}

.shell:not(.boss-shell) .profile-form .full-span,
.shell:not(.boss-shell) .approval-form-grid .full-span,
.shell:not(.boss-shell) .group-account-form-grid .full-span,
.shell:not(.boss-shell) .employee-form-grid .full-span {
  grid-column: 1 / -1 !important;
}

.shell:not(.boss-shell) .cards-grid,
.shell:not(.boss-shell) .account-grid,
.shell:not(.boss-shell) .group-account-body,
.shell:not(.boss-shell) .super-admin-detail-grid {
  gap: 8px !important;
}

.shell:not(.boss-shell) .tenant-card,
.shell:not(.boss-shell) .user-card,
.shell:not(.boss-shell) .list-card {
  padding: 9px !important;
  border-radius: 14px !important;
}

.shell:not(.boss-shell) .tenant-card h3,
.shell:not(.boss-shell) .user-card h3,
.shell:not(.boss-shell) .list-card h3 {
  font-size: 13px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .tenant-meta,
.shell:not(.boss-shell) .user-card p,
.shell:not(.boss-shell) .list-card p {
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.28 !important;
}

.shell:not(.boss-shell) .progress-track,
.shell:not(.boss-shell) .report-chart-bar,
.shell:not(.boss-shell) .tenant-business-channel-row i,
.shell:not(.boss-shell) .tenant-business-work-row i {
  height: 7px !important;
  border-radius: 999px !important;
  background: rgba(15, 81, 116, 0.08) !important;
  overflow: hidden !important;
}

.shell:not(.boss-shell) .progress-fill,
.shell:not(.boss-shell) .report-chart-bar b,
.shell:not(.boss-shell) .tenant-business-channel-row i b,
.shell:not(.boss-shell) .tenant-business-work-row i b {
  border-radius: inherit !important;
  background: linear-gradient(90deg, #0f766e, #f59e0b) !important;
}

.shell:not(.boss-shell) .icon-btn,
.shell:not(.boss-shell) .close-btn,
.shell:not(.boss-shell) [aria-label="关闭"] {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background: rgba(255, 255, 255, 0.74) !important;
  color: rgba(20, 35, 31, 0.72) !important;
}

.shell:not(.boss-shell) .icon-btn:hover,
.shell:not(.boss-shell) .close-btn:hover,
.shell:not(.boss-shell) [aria-label="关闭"]:hover {
  color: #0f766e !important;
  background: rgba(214, 242, 235, 0.78) !important;
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) .inventory-dashboard-grid,
  .shell:not(.boss-shell) .employee-home-grid,
  .shell:not(.boss-shell) .employee-workbench-grid,
  .shell:not(.boss-shell) .hr-final-grid,
  .shell:not(.boss-shell) .finance-role-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune47: visual stability, scroll, focus and interaction finishing. */
.shell:not(.boss-shell) *,
.modal-card *,
.global-notice {
  -webkit-tap-highlight-color: transparent;
}

.shell:not(.boss-shell) .main-panel,
.shell:not(.boss-shell) .tab-panel,
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list,
.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .table-scroll,
.modal-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.28) rgba(255, 255, 255, 0.42);
}

.shell:not(.boss-shell) .main-panel::-webkit-scrollbar,
.shell:not(.boss-shell) .tab-panel::-webkit-scrollbar,
.shell:not(.boss-shell) .panel-card::-webkit-scrollbar,
.shell:not(.boss-shell) .form-card::-webkit-scrollbar,
.shell:not(.boss-shell) .list::-webkit-scrollbar,
.shell:not(.boss-shell) .table-wrap::-webkit-scrollbar,
.shell:not(.boss-shell) .table-scroll::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.shell:not(.boss-shell) .main-panel::-webkit-scrollbar-thumb,
.shell:not(.boss-shell) .tab-panel::-webkit-scrollbar-thumb,
.shell:not(.boss-shell) .panel-card::-webkit-scrollbar-thumb,
.shell:not(.boss-shell) .form-card::-webkit-scrollbar-thumb,
.shell:not(.boss-shell) .list::-webkit-scrollbar-thumb,
.shell:not(.boss-shell) .table-wrap::-webkit-scrollbar-thumb,
.shell:not(.boss-shell) .table-scroll::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.34), rgba(245, 158, 11, 0.24));
}

.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .table-scroll,
.shell:not(.boss-shell) .employee-directory-table-wrap {
  max-width: 100% !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
}

.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .data-table th,
.shell:not(.boss-shell) .data-table td {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.shell:not(.boss-shell) .table th:last-child,
.shell:not(.boss-shell) .table td:last-child,
.shell:not(.boss-shell) .data-table th:last-child,
.shell:not(.boss-shell) .data-table td:last-child {
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .action-cell {
  min-width: 76px !important;
  justify-content: flex-start !important;
}

.shell:not(.boss-shell) button,
.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tab,
.shell:not(.boss-shell) .tenant-unified-secondary-tab,
.shell:not(.boss-shell) .tenant-business-subnav-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .danger-btn,
.modal-card button {
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease,
    color 0.14s ease !important;
}

.shell:not(.boss-shell) button:active,
.shell:not(.boss-shell) .sidebar-tool-btn:active,
.shell:not(.boss-shell) .tab:active,
.shell:not(.boss-shell) .tenant-unified-secondary-tab:active,
.shell:not(.boss-shell) .tenant-business-subnav-btn:active,
.modal-card button:active {
  transform: translateY(1px) scale(0.99) !important;
}

.shell:not(.boss-shell) button:disabled,
.shell:not(.boss-shell) input:disabled,
.shell:not(.boss-shell) select:disabled,
.shell:not(.boss-shell) textarea:disabled,
.modal-card button:disabled,
.modal-card input:disabled,
.modal-card select:disabled,
.modal-card textarea:disabled {
  cursor: not-allowed !important;
  opacity: 0.68 !important;
  filter: grayscale(0.08) !important;
}

.shell:not(.boss-shell) a,
.shell:not(.boss-shell) button,
.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea,
.modal-card a,
.modal-card button,
.modal-card input,
.modal-card select,
.modal-card textarea {
  outline-offset: 2px !important;
}

.shell:not(.boss-shell) a:focus-visible,
.shell:not(.boss-shell) button:focus-visible,
.shell:not(.boss-shell) input:focus-visible,
.shell:not(.boss-shell) select:focus-visible,
.shell:not(.boss-shell) textarea:focus-visible,
.modal-card a:focus-visible,
.modal-card button:focus-visible,
.modal-card input:focus-visible,
.modal-card select:focus-visible,
.modal-card textarea:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.44) !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1) !important;
}

.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .subtle,
.shell:not(.boss-shell) .field-hint,
.shell:not(.boss-shell) .asset-link,
.shell:not(.boss-shell) .list-item,
.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .profile-block,
.shell:not(.boss-shell) .approval-detail-block {
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) .status-pill,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .tag,
.shell:not(.boss-shell) .chip {
  max-width: 100% !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .global-notice,
.global-notice {
  border-radius: 16px !important;
  backdrop-filter: blur(14px) !important;
}

.shell:not(.boss-shell) .loading,
.shell:not(.boss-shell) .skeleton,
.shell:not(.boss-shell) .loading-row {
  border-radius: 12px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(214, 242, 235, 0.52), rgba(255, 255, 255, 0.62)) !important;
}

.boss-shell .boss-ultra-cockpit,
.boss-shell .boss-ultra-grid,
.boss-shell .boss-ultra-main,
.boss-shell .boss-ultra-side {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 249, 255, 0.3) rgba(4, 17, 41, 0.4);
}

.boss-shell button:focus-visible,
.boss-shell a:focus-visible {
  outline: 2px solid rgba(125, 249, 255, 0.58) !important;
  outline-offset: 2px !important;
}

@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;
  }
}

/* 20260715 pageFineTune48: final chrome consistency, grouped forms and hierarchy polish. */
.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .sidebar-tools,
.shell:not(.boss-shell) .tab-panel,
.shell:not(.boss-shell) .tabs,
.shell:not(.boss-shell) .tenant-unified-secondary-tabs,
.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .employee-profile-subnav,
.shell:not(.boss-shell) .finance-role-subnav,
.shell:not(.boss-shell) .inventory-subnav,
.shell:not(.boss-shell) .reports-subnav {
  isolation: isolate !important;
}

.shell:not(.boss-shell) .topbar::after,
.shell:not(.boss-shell) .sidebar-tools::after,
.shell:not(.boss-shell) .tab-panel::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.shell:not(.boss-shell) .topbar,
.shell:not(.boss-shell) .sidebar-tools,
.shell:not(.boss-shell) .tab-panel {
  position: relative !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .tab,
.tenant-unified-secondary-tab,
.tenant-business-subnav-btn,
.employee-profile-subnav button,
.finance-role-subnav button,
.inventory-subnav button,
.reports-subnav button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn::after,
.shell:not(.boss-shell) .tab::after,
.tenant-unified-secondary-tab::after,
.tenant-business-subnav-btn::after,
.employee-profile-subnav button::after,
.finance-role-subnav button::after,
.inventory-subnav button::after,
.reports-subnav button::after {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  margin-left: auto !important;
  border-radius: 999px !important;
  background: rgba(15, 118, 110, 0.16) !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn.active::after,
.shell:not(.boss-shell) .tab.active::after,
.tenant-unified-secondary-tab.active::after,
.tenant-business-subnav-btn.active::after,
.employee-profile-subnav button.active::after,
.finance-role-subnav button.active::after,
.inventory-subnav button.active::after,
.reports-subnav button.active::after {
  background: currentColor !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22) !important;
}

.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .profile-section,
.shell:not(.boss-shell) .approval-form-panel,
.shell:not(.boss-shell) .profile-summary-card {
  container-type: inline-size;
}

.shell:not(.boss-shell) .form-card label,
.shell:not(.boss-shell) .profile-form label,
.shell:not(.boss-shell) .approval-form-grid label,
.shell:not(.boss-shell) .group-account-form-grid label,
.modal-card label {
  color: rgba(20, 35, 31, 0.72) !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .form-card label > input,
.shell:not(.boss-shell) .form-card label > select,
.shell:not(.boss-shell) .form-card label > textarea,
.shell:not(.boss-shell) .profile-form label > input,
.shell:not(.boss-shell) .profile-form label > select,
.shell:not(.boss-shell) .profile-form label > textarea,
.modal-card label > input,
.modal-card label > select,
.modal-card label > textarea {
  margin-top: 1px !important;
}

.shell:not(.boss-shell) input::placeholder,
.shell:not(.boss-shell) textarea::placeholder,
.modal-card input::placeholder,
.modal-card textarea::placeholder {
  color: rgba(20, 35, 31, 0.36) !important;
}

.shell:not(.boss-shell) select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20, 35, 31, 0.54) 50%),
    linear-gradient(135deg, rgba(20, 35, 31, 0.54) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  appearance: none !important;
  padding-right: 28px !important;
}

.shell:not(.boss-shell) .status-ok,
.shell:not(.boss-shell) .status-success {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.shell:not(.boss-shell) .status-warn,
.shell:not(.boss-shell) .status-pending {
  color: #92400e !important;
  background: rgba(245, 158, 11, 0.14) !important;
}

.shell:not(.boss-shell) .status-risk,
.shell:not(.boss-shell) .status-danger,
.shell:not(.boss-shell) .danger {
  color: #b42318 !important;
  background: rgba(244, 63, 94, 0.1) !important;
}

.shell:not(.boss-shell) .status-info {
  color: #0f5f73 !important;
  background: rgba(14, 165, 233, 0.1) !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .danger-btn,
.modal-card .primary-btn,
.modal-card .ghost-btn,
.modal-card .danger-btn {
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.shell:not(.boss-shell) .primary-btn {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16) !important;
}

.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .ghost-btn.danger,
.modal-card .danger-btn,
.modal-card .ghost-btn.danger {
  border-color: rgba(180, 35, 24, 0.18) !important;
  color: #b42318 !important;
  background: rgba(244, 63, 94, 0.075) !important;
}

.shell:not(.boss-shell) .table caption,
.shell:not(.boss-shell) .data-table caption {
  padding: 6px 0 !important;
  color: rgba(20, 35, 31, 0.58) !important;
  font-size: 11px !important;
  text-align: left !important;
}

.shell:not(.boss-shell) .table tbody tr,
.shell:not(.boss-shell) .data-table tbody tr,
.shell:not(.boss-shell) .list-item,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .record-row {
  content-visibility: auto;
  contain-intrinsic-size: 42px;
}

.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank {
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

.boss-shell .boss-ultra-kpi strong,
.boss-shell .boss-ultra-mini strong {
  text-shadow: 0 0 18px rgba(125, 249, 255, 0.18) !important;
}

@container (max-width: 520px) {
  .shell:not(.boss-shell) .profile-form,
  .shell:not(.boss-shell) .approval-form-grid,
  .shell:not(.boss-shell) .group-account-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune49: numeric readability, report density and print finishing. */
.shell:not(.boss-shell) .metric-card strong,
.shell:not(.boss-shell) .mini-stat strong,
.shell:not(.boss-shell) .report-card strong,
.shell:not(.boss-shell) .inventory-kpi-value,
.shell:not(.boss-shell) .finance-role-report-card strong,
.shell:not(.boss-shell) .tenant-report-insight strong,
.shell:not(.boss-shell) .boss-detail-cell strong,
.shell:not(.boss-shell) .profile-item strong {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif !important;
  font-variant-numeric: tabular-nums lining-nums !important;
}

.shell:not(.boss-shell) .table td:nth-child(n + 3),
.shell:not(.boss-shell) .data-table td:nth-child(n + 3),
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .employee-payroll-table td {
  font-variant-numeric: tabular-nums !important;
}

.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .employee-payroll-table td,
.shell:not(.boss-shell) .employee-payroll-table th {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .finance-role-report-card,
.shell:not(.boss-shell) .tenant-report-insight,
.shell:not(.boss-shell) .tenant-business-alert-grid article {
  min-height: 72px !important;
  display: grid !important;
  align-content: center !important;
}

.shell:not(.boss-shell) .report-card p:first-child,
.shell:not(.boss-shell) .finance-role-report-card p:first-child,
.shell:not(.boss-shell) .tenant-report-insight p:first-child,
.shell:not(.boss-shell) .tenant-business-alert-grid article p:first-child {
  margin-bottom: 3px !important;
  color: rgba(20, 35, 31, 0.56) !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .report-card .subtle,
.shell:not(.boss-shell) .finance-role-report-card .subtle,
.shell:not(.boss-shell) .tenant-report-insight .subtle {
  margin-top: 3px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.shell:not(.boss-shell) .section-head .pill,
.shell:not(.boss-shell) .section-head .status-pill,
.shell:not(.boss-shell) .card-head .pill,
.shell:not(.boss-shell) .card-head .status-pill {
  align-self: center !important;
}

.shell:not(.boss-shell) .item-row {
  min-height: 22px !important;
}

.shell:not(.boss-shell) .item-row > strong,
.shell:not(.boss-shell) .item-row > span:first-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .list-item .item-meta + .item-meta,
.shell:not(.boss-shell) .list-card .item-meta + .item-meta {
  margin-top: 2px !important;
}

.shell:not(.boss-shell) .profile-attachments a + a,
.shell:not(.boss-shell) .attachment-list a + a,
.shell:not(.boss-shell) .file-list a + a {
  margin-left: 4px !important;
}

.shell:not(.boss-shell) .chart-card,
.shell:not(.boss-shell) .report-chart,
.shell:not(.boss-shell) .tenant-business-chart,
.shell:not(.boss-shell) .tenant-report-chart,
.shell:not(.boss-shell) .finance-report-chart {
  min-height: 118px !important;
  border-radius: 15px !important;
}

.shell:not(.boss-shell) .report-chart-row,
.shell:not(.boss-shell) .chart-row,
.shell:not(.boss-shell) .bar-row {
  min-height: 24px !important;
  gap: 6px !important;
}

.shell:not(.boss-shell) .auth-card,
.shell:not(.boss-shell) .mini-auth-expired-card {
  transform: translateZ(0);
}

@media print {
  body {
    background: #ffffff !important;
  }

  .sidebar,
  .topbar-actions,
  .tabs,
  .tenant-unified-secondary-tabs,
  .tenant-business-subnav,
  .employee-profile-subnav,
  .finance-role-subnav,
  .inventory-subnav,
  .reports-subnav,
  button {
    display: none !important;
  }

  .shell,
  .shell:not(.boss-shell) {
    display: block !important;
    max-width: none !important;
  }

  .main-panel,
  .tab-panel,
  .panel-card,
  .form-card {
    padding: 0 !important;
    box-shadow: none !important;
    border-color: #d1d5db !important;
    background: #ffffff !important;
  }

  .table,
  .data-table {
    font-size: 10px !important;
  }
}

/* 20260715 pageFineTune50: final edge polish for panels, lists, messages and compact screens. */
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .list-card,
.shell:not(.boss-shell) .profile-section,
.shell:not(.boss-shell) .metric-card,
.shell:not(.boss-shell) .report-card,
.shell:not(.boss-shell) .alert-card {
  outline: 1px solid rgba(255, 255, 255, 0.52) !important;
  outline-offset: -2px !important;
}

.shell:not(.boss-shell) .list {
  gap: 6px !important;
}

.shell:not(.boss-shell) .list-item + .list-item,
.shell:not(.boss-shell) .record-row + .record-row,
.shell:not(.boss-shell) .activity-item + .activity-item,
.shell:not(.boss-shell) .alert-item + .alert-item {
  margin-top: 2px !important;
}

.shell:not(.boss-shell) .list-item,
.shell:not(.boss-shell) .record-row,
.shell:not(.boss-shell) .activity-item,
.shell:not(.boss-shell) .alert-item {
  border: 1px solid rgba(15, 81, 116, 0.055) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 252, 250, 0.62)) !important;
}

.shell:not(.boss-shell) .list-item:hover,
.shell:not(.boss-shell) .record-row:hover,
.shell:not(.boss-shell) .activity-item:hover,
.shell:not(.boss-shell) .alert-item:hover {
  border-color: rgba(15, 118, 110, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.72)) !important;
}

.shell:not(.boss-shell) .alert-banner,
.shell:not(.boss-shell) .notice,
.shell:not(.boss-shell) .toast,
.shell:not(.boss-shell) .form-error,
.shell:not(.boss-shell) .form-success,
.shell:not(.boss-shell) .field-error {
  min-height: 34px !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  font-size: 12px !important;
  line-height: 1.32 !important;
}

.shell:not(.boss-shell) .form-error,
.shell:not(.boss-shell) .field-error,
.shell:not(.boss-shell) .notice.error,
.shell:not(.boss-shell) .toast.error {
  color: #b42318 !important;
  border-color: rgba(180, 35, 24, 0.18) !important;
  background: rgba(254, 242, 242, 0.86) !important;
}

.shell:not(.boss-shell) .form-success,
.shell:not(.boss-shell) .notice.success,
.shell:not(.boss-shell) .toast.success {
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.18) !important;
  background: rgba(236, 253, 245, 0.86) !important;
}

.shell:not(.boss-shell) .dialog-actions,
.shell:not(.boss-shell) .modal-actions,
.shell:not(.boss-shell) .drawer-actions,
.shell:not(.boss-shell) .form-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.94) 28%) !important;
}

.shell:not(.boss-shell) .dialog-actions button,
.shell:not(.boss-shell) .modal-actions button,
.shell:not(.boss-shell) .drawer-actions button,
.shell:not(.boss-shell) .form-actions button {
  min-width: 72px !important;
}

.shell:not(.boss-shell) .field-hint,
.shell:not(.boss-shell) .help-text,
.shell:not(.boss-shell) .form-note {
  color: rgba(20, 35, 31, 0.56) !important;
}

.shell:not(.boss-shell) .field-hint::before,
.shell:not(.boss-shell) .help-text::before,
.shell:not(.boss-shell) .form-note::before {
  content: "" !important;
  width: 4px !important;
  height: 4px !important;
  margin-right: 5px !important;
  border-radius: 999px !important;
  background: rgba(15, 118, 110, 0.38) !important;
}

@media (max-width: 640px) {
  .shell:not(.boss-shell) .topbar {
    border-radius: 16px !important;
  }

  .shell:not(.boss-shell) .topbar-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .shell:not(.boss-shell) .topbar .account-indicator {
    flex: 1 1 100% !important;
  }

  .shell:not(.boss-shell) .panel-card,
  .shell:not(.boss-shell) .form-card,
  .shell:not(.boss-shell) .list-card,
  .shell:not(.boss-shell) .profile-section {
    padding: 9px !important;
    border-radius: 14px !important;
  }

  .shell:not(.boss-shell) .table th,
  .shell:not(.boss-shell) .table td,
  .shell:not(.boss-shell) .data-table th,
  .shell:not(.boss-shell) .data-table td {
    padding: 5px 6px !important;
    font-size: 10.5px !important;
  }
}

/* 20260715 pageFineTune51: coverage audit fixes for remaining dynamic page blocks. */
.boss-shell .boss-panel-compare,
.boss-shell .boss-panel-feed,
.boss-shell .boss-panel-ranking-extended,
.boss-shell .boss-panel-side,
.boss-shell .boss-panel-strategy,
.boss-shell .boss-panel-tenant-focus,
.boss-shell .boss-panel-tenant-topic,
.boss-shell .boss-panel-todo,
.boss-shell .boss-top-four-panel,
.boss-shell .boss-ultra-bar-card,
.boss-shell .boss-ultra-donut-card {
  border-radius: 20px !important;
  border: 1px solid rgba(125, 249, 255, 0.1) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 249, 255, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(7, 28, 69, 0.88), rgba(4, 17, 41, 0.94)) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
}

.boss-shell .boss-panel-compare h3,
.boss-shell .boss-panel-feed h3,
.boss-shell .boss-panel-ranking-extended h3,
.boss-shell .boss-panel-side h3,
.boss-shell .boss-panel-strategy h3,
.boss-shell .boss-panel-tenant-focus h3,
.boss-shell .boss-panel-tenant-topic h3,
.boss-shell .boss-panel-todo h3,
.boss-shell .boss-top-four-panel h3 {
  margin: 0 0 7px !important;
  color: rgba(236, 254, 255, 0.92) !important;
  font-size: 12.5px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.03em !important;
}

.shell:not(.boss-shell) .tenant-report-hero,
.shell:not(.boss-shell) .tenant-report-title-card,
.shell:not(.boss-shell) .tenant-role-workbench,
.shell:not(.boss-shell) .tenant-admin-web-editor,
.shell:not(.boss-shell) .tenant-directory-detail-panel,
.shell:not(.boss-shell) .employee-approval-subpage-layout,
.shell:not(.boss-shell) .employee-permission-layout {
  padding: 11px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.045), transparent 34%),
    rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 12px 28px rgba(20, 35, 31, 0.055) !important;
}

.shell:not(.boss-shell) .tenant-report-layout-2,
.shell:not(.boss-shell) .tenant-report-insight-list {
  display: grid !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) .tenant-report-layout-2 {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr) !important;
}

.shell:not(.boss-shell) .tenant-report-insight-list > *,
.shell:not(.boss-shell) .group-account-block,
.shell:not(.boss-shell) .employee-approval-edit-alert {
  padding: 8px 9px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(15, 81, 116, 0.07) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

.shell:not(.boss-shell) .group-account-block {
  display: grid !important;
  gap: 7px !important;
}

.shell:not(.boss-shell) .group-account-icon-toggle,
.shell:not(.boss-shell) .unified-sidebar-toggle {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #0f766e !important;
  box-shadow: 0 8px 18px rgba(20, 35, 31, 0.06) !important;
}

.shell:not(.boss-shell) .unified-sidebar-polish {
  border-radius: 20px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(239, 247, 244, 0.82)) !important;
}

.shell:not(.boss-shell) .warehouse-tool-btn {
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 12px !important;
  color: #073f3b !important;
  border: 1px solid rgba(15, 118, 110, 0.16) !important;
  background: rgba(214, 242, 235, 0.66) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.shell:not(.boss-shell) .form-divider {
  height: 1px !important;
  margin: 5px 0 !important;
  border: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(15, 81, 116, 0.14), transparent) !important;
}

@media (max-width: 1080px) {
  .shell:not(.boss-shell) .tenant-report-layout-2 {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune52: role entry, empty space and pending-state finishing. */
.shell:not(.boss-shell) .empty-state,
.shell:not(.boss-shell) .empty,
.shell:not(.boss-shell) .empty-list,
.shell:not(.boss-shell) .mini-auth-expired-card,
.shell:not(.boss-shell) .boss-cockpit-fallback {
  position: relative !important;
  overflow: hidden !important;
}

.shell:not(.boss-shell) .empty-state::before,
.shell:not(.boss-shell) .empty::before,
.shell:not(.boss-shell) .empty-list::before,
.shell:not(.boss-shell) .mini-auth-expired-card::before {
  content: "" !important;
  position: absolute !important;
  width: 96px !important;
  height: 96px !important;
  right: -32px !important;
  top: -36px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.11), transparent 68%) !important;
  pointer-events: none !important;
}

.shell:not(.boss-shell) .empty-state::after,
.shell:not(.boss-shell) .empty::after,
.shell:not(.boss-shell) .empty-list::after {
  content: "暂无数据" !important;
  position: absolute !important;
  right: 14px !important;
  bottom: 10px !important;
  color: rgba(15, 81, 116, 0.12) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  pointer-events: none !important;
}

.shell:not(.boss-shell) .tenant-workbench-actions,
.shell:not(.boss-shell) .employee-workbench-actions,
.shell:not(.boss-shell) .approval-table-actions,
.shell:not(.boss-shell) .inventory-row-actions,
.shell:not(.boss-shell) .inline-actions {
  flex-wrap: wrap !important;
}

.shell:not(.boss-shell) .tenant-workbench-actions > *,
.shell:not(.boss-shell) .employee-workbench-actions > *,
.shell:not(.boss-shell) .approval-table-actions > *,
.shell:not(.boss-shell) .inventory-row-actions > *,
.shell:not(.boss-shell) .inline-actions > * {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .hr-final-hero,
.shell:not(.boss-shell) .tenant-report-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero > *,
.shell:not(.boss-shell) .employee-workbench-hero > *,
.shell:not(.boss-shell) .employee-home-hero > *,
.shell:not(.boss-shell) .finance-role-hero > *,
.shell:not(.boss-shell) .hr-final-hero > *,
.shell:not(.boss-shell) .tenant-report-hero > * {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero h2,
.shell:not(.boss-shell) .employee-workbench-hero h2,
.shell:not(.boss-shell) .employee-home-hero h2,
.shell:not(.boss-shell) .finance-role-hero h2,
.shell:not(.boss-shell) .hr-final-hero h2,
.shell:not(.boss-shell) .tenant-report-hero h2 {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .tenant-role-kpi-card,
.shell:not(.boss-shell) .employee-feature-chip,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .tenant-business-channel-row,
.shell:not(.boss-shell) .tenant-business-work-row {
  border: 1px solid rgba(15, 81, 116, 0.07) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 252, 250, 0.64)) !important;
  box-shadow: 0 8px 18px rgba(20, 35, 31, 0.035) !important;
}

.shell:not(.boss-shell) .tenant-role-kpi-card,
.shell:not(.boss-shell) .employee-feature-chip {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .employee-approval-subpage-layout,
.shell:not(.boss-shell) .employee-permission-layout {
  gap: 9px !important;
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) .tenant-workbench-hero,
  .shell:not(.boss-shell) .employee-workbench-hero,
  .shell:not(.boss-shell) .employee-home-hero,
  .shell:not(.boss-shell) .finance-role-hero,
  .shell:not(.boss-shell) .hr-final-hero,
  .shell:not(.boss-shell) .tenant-report-hero {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune53: guard rails for overlays, sticky actions and dense tables. */
.shell:not(.boss-shell) .empty-state > *,
.shell:not(.boss-shell) .empty > *,
.shell:not(.boss-shell) .empty-list > *,
.shell:not(.boss-shell) .mini-auth-expired-card > * {
  position: relative !important;
  z-index: 1 !important;
}

.shell:not(.boss-shell) .empty-state:has(.primary-btn)::after,
.shell:not(.boss-shell) .empty-state:has(.ghost-btn)::after,
.shell:not(.boss-shell) .empty:has(.primary-btn)::after,
.shell:not(.boss-shell) .empty:has(.ghost-btn)::after {
  opacity: 0.45 !important;
}

.shell:not(.boss-shell) .dialog-actions,
.shell:not(.boss-shell) .modal-actions,
.shell:not(.boss-shell) .drawer-actions,
.shell:not(.boss-shell) .form-actions {
  backdrop-filter: blur(10px) !important;
}

.shell:not(.boss-shell) .modal-card .dialog-actions,
.shell:not(.boss-shell) .modal-card .modal-actions,
.shell:not(.boss-shell) .modal-card .form-actions {
  margin-left: -2px !important;
  margin-right: -2px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.shell:not(.boss-shell) .table,
.shell:not(.boss-shell) .data-table,
.shell:not(.boss-shell) .finance-report-table,
.shell:not(.boss-shell) .employee-handover-history-table,
.shell:not(.boss-shell) .tenant-leave-history-table {
  min-width: min(100%, 720px) !important;
}

.shell:not(.boss-shell) .table-wrap:has(.action-cell),
.shell:not(.boss-shell) .table-scroll:has(.action-cell) {
  padding-bottom: 2px !important;
}

.shell:not(.boss-shell) .action-cell button {
  flex: 0 0 auto !important;
}

.shell:not(.boss-shell) .section-head {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .section-head > div:first-child,
.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4 {
  min-width: 0 !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4 {
  overflow-wrap: anywhere !important;
}

.shell:not(.boss-shell) .topbar-actions .account-indicator {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  .shell:not(.boss-shell) .dialog-actions,
  .shell:not(.boss-shell) .modal-actions,
  .shell:not(.boss-shell) .drawer-actions,
  .shell:not(.boss-shell) .form-actions {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .shell:not(.boss-shell) .dialog-actions button,
  .shell:not(.boss-shell) .modal-actions button,
  .shell:not(.boss-shell) .drawer-actions button,
  .shell:not(.boss-shell) .form-actions button {
    flex: 1 1 auto !important;
  }
}

/* 20260715 pageFineTune54: final compact visual layer for stable one-screen role pages. */
.shell:not(.boss-shell) {
  grid-template-columns: 318px minmax(0, 1fr) !important;
}

.shell:not(.boss-shell) .sidebar {
  padding: 14px 12px !important;
}

.shell:not(.boss-shell) .main-panel {
  min-width: 0 !important;
  padding: 14px 16px 28px 10px !important;
}

.shell:not(.boss-shell) .brand-block,
.shell:not(.boss-shell) .user-panel,
.shell:not(.boss-shell) .portfolio-panel {
  margin-bottom: 10px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .tab-panel,
.shell:not(.boss-shell) .tenant-profile-subpanel,
.shell:not(.boss-shell) .tenant-profile-compact-card,
.shell:not(.boss-shell) .employee-workbench-card,
.shell:not(.boss-shell) .hr-final-card,
.shell:not(.boss-shell) .finance-role-page .panel-card {
  padding: 10px !important;
  border-radius: 16px !important;
}

.shell:not(.boss-shell) .section-head,
.shell:not(.boss-shell) .card-head,
.shell:not(.boss-shell) .mobile-card-head,
.shell:not(.boss-shell) .tenant-profile-subpanel .section-head {
  gap: 8px !important;
  margin-bottom: 7px !important;
  padding-bottom: 0 !important;
}

.shell:not(.boss-shell) h2,
.shell:not(.boss-shell) h3,
.shell:not(.boss-shell) h4 {
  letter-spacing: -0.02em !important;
}

.shell:not(.boss-shell) .section-head h2,
.shell:not(.boss-shell) .section-head h3,
.shell:not(.boss-shell) .section-head h4,
.shell:not(.boss-shell) .panel-card h4,
.shell:not(.boss-shell) .form-card h4 {
  font-size: clamp(15px, 1.35vw, 19px) !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .section-head p,
.shell:not(.boss-shell) .panel-card p,
.shell:not(.boss-shell) .form-card p,
.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .subtle,
.shell:not(.boss-shell) small {
  font-size: 11px !important;
  line-height: 1.32 !important;
}

.shell:not(.boss-shell) .tenant-profile-compact-grid,
.shell:not(.boss-shell) .profile-grid-wide,
.shell:not(.boss-shell) .tenant-profile-tax-grid,
.shell:not(.boss-shell) .finance-role-form-grid,
.shell:not(.boss-shell) .hr-final-form-grid,
.shell:not(.boss-shell) .approval-form-grid,
.shell:not(.boss-shell) .employee-handover-grid {
  gap: 7px !important;
}

.shell:not(.boss-shell) label,
.shell:not(.boss-shell) .profile-item,
.shell:not(.boss-shell) .tenant-profile-tax-item,
.shell:not(.boss-shell) .profile-block {
  border-radius: 12px !important;
}

.shell:not(.boss-shell) input,
.shell:not(.boss-shell) select,
.shell:not(.boss-shell) textarea {
  min-height: 32px !important;
  padding: 6px 8px !important;
  font-size: 12px !important;
}

.shell:not(.boss-shell) textarea {
  min-height: 58px !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn,
.shell:not(.boss-shell) .sidebar button,
.shell:not(.boss-shell) .main-nav button,
.shell:not(.boss-shell) .employee-profile-subnav button,
.shell:not(.boss-shell) .tenant-business-subnav button,
.shell:not(.boss-shell) .tenant-report-subnav button,
.shell:not(.boss-shell) .finance-role-subnav button,
.shell:not(.boss-shell) .finance-role-nav button,
.shell:not(.boss-shell) .hr-final-subnav button,
.shell:not(.boss-shell) .warehouse-nav-btn {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.shell:not(.boss-shell) .employee-profile-subnav,
.shell:not(.boss-shell) .tenant-business-subnav,
.shell:not(.boss-shell) .tenant-report-subnav,
.shell:not(.boss-shell) .finance-role-subnav,
.shell:not(.boss-shell) .finance-role-nav,
.shell:not(.boss-shell) .hr-final-subnav,
.shell:not(.boss-shell) .warehouse-nav {
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 16px !important;
}

.shell:not(.boss-shell) .primary-btn,
.shell:not(.boss-shell) .ghost-btn,
.shell:not(.boss-shell) .danger-btn,
.shell:not(.boss-shell) .icon-btn,
.shell:not(.boss-shell) .table-action-btn,
.shell:not(.boss-shell) .action-cell button,
.shell:not(.boss-shell) .approval-table-actions button,
.shell:not(.boss-shell) .inline-actions button {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 11px !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .table-scroll,
.shell:not(.boss-shell) .finance-role-table-wrap,
.shell:not(.boss-shell) .employee-handover-history-table-wrap {
  border-radius: 14px !important;
}

.shell:not(.boss-shell) table th,
.shell:not(.boss-shell) table td,
.shell:not(.boss-shell) .table th,
.shell:not(.boss-shell) .table td,
.shell:not(.boss-shell) .data-table th,
.shell:not(.boss-shell) .data-table td,
.shell:not(.boss-shell) .finance-report-table th,
.shell:not(.boss-shell) .finance-report-table td,
.shell:not(.boss-shell) .employee-handover-history-table th,
.shell:not(.boss-shell) .employee-handover-history-table td {
  padding: 7px 8px !important;
  font-size: 11.5px !important;
  line-height: 1.28 !important;
  vertical-align: middle !important;
}

.shell:not(.boss-shell) .action-cell,
.shell:not(.boss-shell) td:last-child:has(button) {
  min-width: 120px !important;
}

.shell:not(.boss-shell) .status-chip,
.shell:not(.boss-shell) .badge,
.shell:not(.boss-shell) .pill,
.shell:not(.boss-shell) .tag {
  min-height: 23px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero,
.shell:not(.boss-shell) .employee-workbench-hero,
.shell:not(.boss-shell) .employee-home-hero,
.shell:not(.boss-shell) .finance-role-hero,
.shell:not(.boss-shell) .hr-final-hero,
.shell:not(.boss-shell) .tenant-report-hero {
  min-height: 72px !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.shell:not(.boss-shell) .tenant-workbench-hero p,
.shell:not(.boss-shell) .employee-workbench-hero p,
.shell:not(.boss-shell) .employee-home-hero p,
.shell:not(.boss-shell) .finance-role-hero p,
.shell:not(.boss-shell) .hr-final-hero p,
.shell:not(.boss-shell) .tenant-report-hero p {
  margin-top: 3px !important;
}

.boss-shell .boss-ultra-cockpit {
  min-height: 100vh !important;
  padding: 10px !important;
}

.boss-shell .boss-ultra-header {
  min-height: 64px !important;
  padding: 10px 12px !important;
  border-radius: 18px !important;
}

.boss-shell .boss-ultra-header h2 {
  font-size: clamp(22px, 2.35vw, 34px) !important;
  line-height: 0.98 !important;
}

.boss-shell .boss-ultra-eyebrow,
.boss-shell .boss-ultra-header p {
  display: none !important;
}

.boss-shell .boss-ultra-actions,
.boss-shell .boss-ultra-range {
  gap: 5px !important;
}

.boss-shell .boss-ultra-range button,
.boss-shell .boss-ultra-logout {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

.boss-shell .boss-ultra-grid {
  gap: 8px !important;
  grid-template-rows: minmax(238px, 1fr) minmax(168px, 0.72fr) !important;
}

.boss-shell .boss-ultra-panel {
  padding: 9px !important;
  border-radius: 17px !important;
}

.boss-shell .boss-ultra-panel-head {
  margin-bottom: 6px !important;
}

.boss-shell .boss-ultra-panel-head span {
  width: 25px !important;
  height: 25px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.boss-shell .boss-ultra-panel-head h3 {
  font-size: 15px !important;
}

.boss-shell .boss-ultra-panel-head em {
  font-size: 10px !important;
}

.boss-shell .boss-ultra-kpi-grid,
.boss-shell .boss-ultra-chart-row,
.boss-shell .boss-ultra-mini-grid {
  gap: 6px !important;
}

.boss-shell .boss-ultra-kpi {
  min-height: 66px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 7px !important;
  border-radius: 13px !important;
}

.boss-shell .boss-ultra-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
}

.boss-shell .boss-ultra-kpi strong {
  margin-top: 3px !important;
  font-size: clamp(15px, 1.28vw, 21px) !important;
}

.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-ultra-advice-list article {
  min-height: 30px !important;
  padding: 6px !important;
  border-radius: 11px !important;
}

@media (max-width: 1080px) {
  .shell:not(.boss-shell) {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .shell:not(.boss-shell) {
    display: block !important;
  }

  .shell:not(.boss-shell) .sidebar,
  .shell:not(.boss-shell) .main-panel {
    padding: 10px !important;
  }
}

/* 20260715 pageFineTune55: dynamic panel coverage and no-jump interaction polish. */
.shell:not(.boss-shell) .content-panel,
.shell:not(.boss-shell) .super-admin-portal-page,
.shell:not(.boss-shell) .super-admin-role-detail,
.shell:not(.boss-shell) .super-admin-account-list,
.shell:not(.boss-shell) .super-admin-simple-account-layout,
.shell:not(.boss-shell) .group-account-manage-page,
.shell:not(.boss-shell) .group-account-section,
.shell:not(.boss-shell) .group-account-body,
.shell:not(.boss-shell) .employee-permission-layout,
.shell:not(.boss-shell) .employee-approval-subpage-layout,
.shell:not(.boss-shell) .tenant-approval-subpage-layout,
.shell:not(.boss-shell) .tenant-leave-form-focused,
.shell:not(.boss-shell) .tenant-leave-history-focused,
.shell:not(.boss-shell) .tenant-approval-form-focused,
.shell:not(.boss-shell) .tenant-approval-history-focused,
.shell:not(.boss-shell) .warehouse-mobile-card,
.shell:not(.boss-shell) .inventory-card,
.shell:not(.boss-shell) .inventory-panel,
.shell:not(.boss-shell) .permission-group-block {
  gap: 8px !important;
}

.shell:not(.boss-shell) .content-panel,
.shell:not(.boss-shell) .super-admin-subpage-head,
.shell:not(.boss-shell) .super-admin-detail-page .panel-card,
.shell:not(.boss-shell) .super-admin-detail-page .form-card,
.shell:not(.boss-shell) .group-account-section,
.shell:not(.boss-shell) .group-account-body .panel-card,
.shell:not(.boss-shell) .group-account-body .form-card,
.shell:not(.boss-shell) .permission-group-block,
.shell:not(.boss-shell) .inventory-card,
.shell:not(.boss-shell) .inventory-panel,
.shell:not(.boss-shell) .warehouse-mobile-card {
  padding: 10px !important;
  border-radius: 16px !important;
  border-color: rgba(15, 81, 116, 0.075) !important;
  box-shadow: 0 9px 22px rgba(20, 35, 31, 0.045) !important;
}

.shell:not(.boss-shell) .super-admin-account-row,
.shell:not(.boss-shell) .group-account-row,
.shell:not(.boss-shell) .finance-role-task-row,
.shell:not(.boss-shell) .hr-final-row,
.shell:not(.boss-shell) .employee-workbench-todo-row,
.shell:not(.boss-shell) .employee-workbench-pms-row,
.shell:not(.boss-shell) .tenant-role-person-row,
.shell:not(.boss-shell) .tenant-role-activity-row,
.shell:not(.boss-shell) .tenant-business-work-row,
.shell:not(.boss-shell) .tenant-business-channel-row,
.shell:not(.boss-shell) .warehouse-record-row,
.shell:not(.boss-shell) .inventory-row,
.shell:not(.boss-shell) .record-row {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .super-admin-account-row h4,
.shell:not(.boss-shell) .group-account-row h4,
.shell:not(.boss-shell) .finance-role-task-row strong,
.shell:not(.boss-shell) .hr-final-row strong,
.shell:not(.boss-shell) .employee-workbench-todo-row strong,
.shell:not(.boss-shell) .employee-workbench-pms-row strong,
.shell:not(.boss-shell) .tenant-role-person-row strong,
.shell:not(.boss-shell) .tenant-role-activity-row strong,
.shell:not(.boss-shell) .tenant-business-work-row strong {
  font-size: 12.5px !important;
  line-height: 1.18 !important;
}

.shell:not(.boss-shell) .super-admin-account-row p,
.shell:not(.boss-shell) .group-account-row p,
.shell:not(.boss-shell) .finance-role-task-row span,
.shell:not(.boss-shell) .hr-final-row span,
.shell:not(.boss-shell) .employee-workbench-todo-row em,
.shell:not(.boss-shell) .employee-workbench-pms-row em,
.shell:not(.boss-shell) .tenant-role-person-row span,
.shell:not(.boss-shell) .tenant-role-activity-row small,
.shell:not(.boss-shell) .tenant-business-work-row span {
  font-size: 10.8px !important;
  line-height: 1.25 !important;
}

.shell:not(.boss-shell) .permission-group-grid,
.shell:not(.boss-shell) .super-admin-simple-form,
.shell:not(.boss-shell) .group-account-form-grid,
.shell:not(.boss-shell) .employee-permission-form,
.shell:not(.boss-shell) .inventory-form-grid,
.shell:not(.boss-shell) .warehouse-form-grid {
  gap: 7px !important;
}

.shell:not(.boss-shell) .permission-group-chip,
.shell:not(.boss-shell) .employee-feature-chip,
.shell:not(.boss-shell) .warehouse-tool-btn,
.shell:not(.boss-shell) .inventory-tool-btn {
  min-height: 31px !important;
  padding: 6px 9px !important;
  border-radius: 11px !important;
  font-size: 11.5px !important;
}

.shell:not(.boss-shell) .pager,
.shell:not(.boss-shell) .pagination,
.shell:not(.boss-shell) .table-pager,
.shell:not(.boss-shell) .mobile-pager {
  gap: 5px !important;
  margin-top: 7px !important;
}

.shell:not(.boss-shell) .pager button,
.shell:not(.boss-shell) .pagination button,
.shell:not(.boss-shell) .table-pager button {
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.shell:not(.boss-shell) .modal-card,
.shell:not(.boss-shell) .dialog-card,
.shell:not(.boss-shell) .drawer-card,
.shell:not(.boss-shell) .detail-drawer,
.shell:not(.boss-shell) .approval-detail-card {
  border-radius: 18px !important;
}

.shell:not(.boss-shell) .modal-card,
.shell:not(.boss-shell) .dialog-card {
  max-height: min(88vh, 820px) !important;
}

.shell:not(.boss-shell) .global-notice,
.shell:not(.boss-shell) .notice,
.shell:not(.boss-shell) .alert,
.shell:not(.boss-shell) .form-error,
.shell:not(.boss-shell) .form-success {
  min-height: 34px !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.shell:not(.boss-shell) .sidebar-tool-btn:hover,
.shell:not(.boss-shell) .tab:hover,
.shell:not(.boss-shell) .tenant-unified-secondary-tab:hover,
.shell:not(.boss-shell) .tenant-business-subnav-btn:hover,
.shell:not(.boss-shell) .employee-profile-subnav button:hover,
.shell:not(.boss-shell) .finance-role-subnav button:hover,
.shell:not(.boss-shell) .finance-role-nav button:hover,
.shell:not(.boss-shell) .hr-final-subnav button:hover,
.shell:not(.boss-shell) .warehouse-nav-btn:hover,
.shell:not(.boss-shell) .primary-btn:hover,
.shell:not(.boss-shell) .ghost-btn:hover,
.shell:not(.boss-shell) .danger-btn:hover,
.shell:not(.boss-shell) .panel-card:hover,
.shell:not(.boss-shell) .form-card:hover,
.shell:not(.boss-shell) .metric-card:hover,
.shell:not(.boss-shell) .super-admin-account-row:hover,
.shell:not(.boss-shell) .finance-role-task-row:hover,
.shell:not(.boss-shell) .hr-final-row:hover,
.shell:not(.boss-shell) .employee-workbench-todo-row:hover,
.shell:not(.boss-shell) .employee-workbench-pms-row:hover {
  transform: none !important;
}

.shell:not(.boss-shell) .tab-panel,
.shell:not(.boss-shell) .content-panel,
.shell:not(.boss-shell) .panel-card,
.shell:not(.boss-shell) .form-card,
.shell:not(.boss-shell) .table-wrap,
.shell:not(.boss-shell) .table-scroll {
  scroll-margin-top: 10px !important;
}

.shell:not(.boss-shell) .table-wrap::after,
.shell:not(.boss-shell) .table-scroll::after,
.shell:not(.boss-shell) .employee-handover-history-table-wrap::after,
.shell:not(.boss-shell) .finance-report-table-wrap::after,
.shell:not(.boss-shell) .tenant-report-table-wrap::after,
.shell:not(.boss-shell) .tenant-business-table-wrap::after {
  opacity: 0.38 !important;
}

.boss-shell .boss-ultra-panel,
.boss-shell .boss-ultra-kpi,
.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-ultra-advice-list article {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.boss-shell .boss-ultra-panel:hover,
.boss-shell .boss-ultra-kpi:hover,
.boss-shell .boss-ultra-chart-card:hover,
.boss-shell .boss-ultra-rank-row:hover,
.boss-shell .boss-ultra-work-row:hover,
.boss-shell .boss-ultra-todo-row:hover,
.boss-shell .boss-ultra-mini:hover,
.boss-shell .boss-ultra-advice-list article:hover {
  transform: none !important;
}

/* 20260715 pageFineTune56: contain required badges and prevent login/hidden-page leakage. */
.shell:not(.boss-shell) label:has(input[required]),
.shell:not(.boss-shell) label:has(select[required]),
.shell:not(.boss-shell) label:has(textarea[required]),
.modal-card label:has(input[required]),
.modal-card label:has(select[required]),
.modal-card label:has(textarea[required]) {
  position: relative !important;
}

.auth-shell label::after,
.auth-card label::after,
.shell.hidden label::after,
.tab-panel.hidden label::after,
.content-panel.hidden label::after,
.modal.hidden label::after,
.drawer.hidden label::after {
  content: none !important;
  display: none !important;
}

.shell:not(.boss-shell) label:has(input[required])::after,
.shell:not(.boss-shell) label:has(select[required])::after,
.shell:not(.boss-shell) label:has(textarea[required])::after,
.modal-card label:has(input[required])::after,
.modal-card label:has(select[required])::after,
.modal-card label:has(textarea[required])::after {
  position: absolute !important;
  top: 5px !important;
  right: 7px !important;
  z-index: 2 !important;
  max-width: 42px !important;
  pointer-events: none !important;
  transform: none !important;
}

.shell:not(.boss-shell) label:has(input[required]) input,
.shell:not(.boss-shell) label:has(select[required]) select,
.shell:not(.boss-shell) label:has(textarea[required]) textarea,
.modal-card label:has(input[required]) input,
.modal-card label:has(select[required]) select,
.modal-card label:has(textarea[required]) textarea {
  padding-right: 42px !important;
}

.shell:not(.boss-shell) label.full-span:has(textarea[required])::after,
.modal-card label.full-span:has(textarea[required])::after,
.shell:not(.boss-shell) label:has(textarea[required])::after,
.modal-card label:has(textarea[required])::after {
  top: 6px !important;
}

/* 20260715 pageFineTune57: final hidden-container override for generated required text. */
#appShell.hidden label:has(input[required])::after,
#appShell.hidden label:has(select[required])::after,
#appShell.hidden label:has(textarea[required])::after,
.shell.hidden:not(.boss-shell) label:has(input[required])::after,
.shell.hidden:not(.boss-shell) label:has(select[required])::after,
.shell.hidden:not(.boss-shell) label:has(textarea[required])::after,
.tab-panel.hidden label:has(input[required])::after,
.tab-panel.hidden label:has(select[required])::after,
.tab-panel.hidden label:has(textarea[required])::after,
.content-panel.hidden label:has(input[required])::after,
.content-panel.hidden label:has(select[required])::after,
.content-panel.hidden label:has(textarea[required])::after,
.auth-shell label:has(input[required])::after,
.auth-shell label:has(select[required])::after,
.auth-shell label:has(textarea[required])::after {
  content: none !important;
  display: none !important;
}

/* 20260715 pageFineTune58: prevent HR/profile meta text from overflowing cards. */
.shell:not(.boss-shell) .item-meta,
.shell:not(.boss-shell) .profile-inline-meta,
.shell:not(.boss-shell) .hr-final-page .item-meta,
.shell:not(.boss-shell) .hr-final-page .profile-inline-meta,
.shell:not(.boss-shell) .finance-role-page .item-meta,
.shell:not(.boss-shell) .tenant-profile-subpanel .item-meta,
.shell:not(.boss-shell) .employee-home-shell .item-meta {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.shell:not(.boss-shell) td .item-meta,
.shell:not(.boss-shell) .data-table .item-meta,
.shell:not(.boss-shell) .finance-report-table .item-meta,
.shell:not(.boss-shell) .employee-handover-history-table .item-meta {
  display: block !important;
  line-height: 1.24 !important;
}

.shell:not(.boss-shell) .hr-final-page table,
.shell:not(.boss-shell) .hr-final-page .data-table {
  table-layout: fixed !important;
}

.shell:not(.boss-shell) .hr-final-page th,
.shell:not(.boss-shell) .hr-final-page td {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* 20260715 pageFineTune59: keep table action buttons inside directory/approval grids. */
.shell:not(.boss-shell) td.action-cell,
.shell:not(.boss-shell) .data-table td.action-cell,
.shell:not(.boss-shell) .employee-directory-readonly-panel td.action-cell,
.shell:not(.boss-shell) .hr-final-page td.action-cell,
.shell:not(.boss-shell) .finance-role-page td.action-cell,
.shell:not(.boss-shell) td .inline-actions,
.shell:not(.boss-shell) td .approval-table-actions {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  overflow: hidden !important;
  white-space: normal !important;
}

.shell:not(.boss-shell) td.action-cell {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.shell:not(.boss-shell) td.action-cell .ghost-btn,
.shell:not(.boss-shell) td.action-cell .primary-btn,
.shell:not(.boss-shell) td.action-cell .danger-btn,
.shell:not(.boss-shell) td .inline-actions .ghost-btn,
.shell:not(.boss-shell) td .inline-actions .primary-btn,
.shell:not(.boss-shell) td .inline-actions .danger-btn,
.shell:not(.boss-shell) td .approval-table-actions .ghost-btn,
.shell:not(.boss-shell) td .approval-table-actions .primary-btn,
.shell:not(.boss-shell) td .approval-table-actions .danger-btn {
  flex: 0 1 auto !important;
  min-width: 34px !important;
  max-width: 72px !important;
  min-height: 24px !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) td.action-cell .ghost-btn.mini,
.shell:not(.boss-shell) td .inline-actions .ghost-btn.mini,
.shell:not(.boss-shell) td .approval-table-actions .ghost-btn.mini {
  min-width: 32px !important;
  max-width: 64px !important;
  padding: 4px 6px !important;
}

.shell:not(.boss-shell) .employee-directory-readonly-panel table,
.shell:not(.boss-shell) .hr-final-page .employee-directory-table,
.shell:not(.boss-shell) .hr-final-page .data-table,
.shell:not(.boss-shell) .finance-role-page .data-table {
  table-layout: fixed !important;
}

.shell:not(.boss-shell) .employee-directory-readonly-panel th:last-child,
.shell:not(.boss-shell) .employee-directory-readonly-panel td:last-child,
.shell:not(.boss-shell) .hr-final-page th:last-child,
.shell:not(.boss-shell) .hr-final-page td:last-child,
.shell:not(.boss-shell) .finance-role-page th:last-child,
.shell:not(.boss-shell) .finance-role-page td:last-child {
  width: 86px !important;
  min-width: 0 !important;
}

.shell:not(.boss-shell) .approval-table-actions.approval-table-actions {
  max-width: 100% !important;
}

.shell:not(.boss-shell) .employee-directory-readonly-panel .table-wrap,
.shell:not(.boss-shell) .hr-final-page .table-wrap,
.shell:not(.boss-shell) .finance-role-page .table-wrap {
  overflow-x: hidden !important;
}

/* Boss cockpit final compression: keep one-screen density without touching other roles. */
.boss-shell .boss-ultra-cockpit {
  min-height: calc(100vh - 12px) !important;
  max-height: calc(100vh - 12px) !important;
  gap: 6px !important;
  padding: 7px !important;
}

.boss-shell .boss-ultra-header {
  min-height: 54px !important;
  padding: 7px 10px !important;
  border-radius: 16px !important;
}

.boss-shell .boss-ultra-title {
  min-height: 42px !important;
  padding: 0 12px !important;
}

.boss-shell .boss-ultra-header h2 {
  font-size: clamp(20px, 2vw, 28px) !important;
  letter-spacing: 0.03em !important;
}

.boss-shell .boss-ultra-grid {
  gap: 7px !important;
  grid-template-rows: minmax(292px, 0.52fr) minmax(210px, 0.82fr) !important;
}

.boss-shell .boss-ultra-panel {
  padding: 7px !important;
  border-radius: 15px !important;
}

.boss-shell .boss-ultra-panel-head {
  min-height: 24px !important;
  margin: 0 0 5px !important;
  padding: 0 5px !important;
}

.boss-shell .boss-ultra-panel-head h3 {
  font-size: 14px !important;
}

.boss-shell .boss-ultra-panel-head span,
.boss-shell .boss-ultra-icon,
.boss-shell .boss-ultra-mini > span,
.boss-shell .boss-ultra-advice-list span,
.boss-shell .boss-ultra-todo-row > span,
.boss-shell .boss-ultra-work-row > span {
  width: 24px !important;
  height: 24px !important;
  border-radius: 9px !important;
}

.boss-shell .boss-ultra-kpi-grid {
  gap: 5px !important;
}

.boss-shell .boss-ultra-kpi {
  min-height: 52px !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 5px !important;
  padding: 5px 6px !important;
  border-radius: 12px !important;
}

.boss-shell .boss-ultra-kpi em,
.boss-shell .boss-ultra-mini em {
  font-size: 10px !important;
}

.boss-shell .boss-ultra-kpi strong {
  margin-top: 1px !important;
  font-size: clamp(14px, 1.08vw, 18px) !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-chart-row {
  gap: 5px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-chart-card {
  min-height: 76px !important;
  max-height: 82px !important;
  padding: 5px 6px !important;
  border-radius: 12px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut,
.boss-shell .boss-ultra-overview .boss-ultra-gauge {
  width: 46px !important;
  height: 46px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 46px minmax(0, 1fr) !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut::after,
.boss-shell .boss-ultra-overview .boss-ultra-gauge::after {
  inset: 9px !important;
}

.boss-shell .boss-ultra-chart-title strong,
.boss-shell .boss-ultra-rank-row strong,
.boss-shell .boss-ultra-work-row strong,
.boss-shell .boss-ultra-todo-row strong {
  font-size: 12px !important;
}

.boss-shell .boss-ultra-chart-legend span,
.boss-shell .boss-ultra-bar-row em,
.boss-shell .boss-ultra-bar-row strong,
.boss-shell .boss-ultra-rank-row em,
.boss-shell .boss-ultra-todo-row em,
.boss-shell .boss-ultra-work-row small,
.boss-shell .boss-ultra-work-row em {
  font-size: 9px !important;
}

.boss-shell .boss-ultra-chart-card,
.boss-shell .boss-ultra-rank-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-ultra-advice-list article {
  min-height: 28px !important;
  padding: 5px !important;
  border-radius: 10px !important;
}

.boss-shell .boss-ultra-mini-grid,
.boss-shell .boss-ultra-rank-list,
.boss-shell .boss-ultra-advice-list,
.boss-shell .boss-ultra-todo-list,
.boss-shell .boss-ultra-work-list {
  gap: 5px !important;
}

.boss-shell .boss-ultra-work-stats span {
  min-height: 24px !important;
  padding: 2px 4px !important;
}

/* Login isolation: hidden business forms must not leak required badges into auth page. */
#appShell.hidden,
body:has(#authGate:not(.hidden)) #appShell {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#appShell.hidden *,
#appShell.hidden *::before,
#appShell.hidden *::after,
body:has(#authGate:not(.hidden)) #appShell *,
body:has(#authGate:not(.hidden)) #appShell *::before,
body:has(#authGate:not(.hidden)) #appShell *::after {
  content: none !important;
  visibility: hidden !important;
}

/* 20260715 pageFineTune60: final hidden/logout de-duplication guard. */
.hidden,
button.hidden,
a.hidden,
.topbar.hidden,
.tabs.hidden,
.tab-panel.hidden,
.content-panel.hidden,
.modal.hidden,
.drawer.hidden,
.shell:not(.boss-shell) .hidden,
.shell:not(.boss-shell) button.hidden,
.shell:not(.boss-shell) a.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:has(#appShell.boss-shell:not(.hidden)) #globalUnifiedLogoutBtn,
body:has(#appShell.boss-shell:not(.hidden)) #logoutBtn,
body:has(#appShell.boss-shell:not(.hidden)) .topbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 20260715 pageFineTune65: synced after reverting unstable warehouse secondary enhancement; personal reimbursement labels retained. */

/* 20260715 pageFineTune67: compact inventory ledger cards for warehouse roles. */
.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout {
  align-items: start !important;
  gap: 12px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-compact-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 6px 8px !important;
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-main {
  min-width: 0 !important;
  margin: 0 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-title {
  gap: 6px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-title strong {
  max-width: 11em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-title .status-pill,
.shell:not(.boss-shell) .inventory-role-page .inventory-row-title .pill,
.shell:not(.boss-shell) .inventory-role-page .inventory-row-title span:last-child {
  flex: 0 0 auto !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-main > .item-meta:not(.inventory-inline-summary) {
  margin: 2px 0 0 !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin-top: 5px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-fields span {
  min-width: 0 !important;
  padding: 4px 5px !important;
  border-radius: 8px !important;
  font-size: 9.5px !important;
  line-height: 1.08 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-fields span strong {
  font-size: 10.5px !important;
  line-height: 1.08 !important;
  color: #16372f !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-inline-summary {
  grid-column: 1 / -1 !important;
  margin: 4px 0 0 !important;
  max-height: 28px !important;
  overflow: hidden !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-actions {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 44px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-actions .ghost-btn {
  min-width: 42px !important;
  max-width: 62px !important;
  min-height: 22px !important;
  padding: 3px 6px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-row-actions [data-open-inventory-history] {
  max-width: 62px !important;
}

@media (min-width: 1500px) {
  .shell:not(.boss-shell) .inventory-role-page .inventory-compact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) .inventory-role-page .inventory-compact-list {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune68: compact legacy warehouse ledger cards that are still used by the role shell. */
.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card {
  display: grid !important;
  gap: 6px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  min-height: 0 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .section-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card h4 {
  max-width: 12em !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .profile-inline-meta {
  margin: 2px 0 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .status-pill {
  padding: 2px 6px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .profile-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin-top: 2px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .profile-grid .profile-item {
  min-width: 0 !important;
  padding: 4px 5px !important;
  border-radius: 8px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .profile-grid .profile-item:nth-child(n + 9) {
  display: none !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .profile-grid .profile-item span {
  font-size: 9.5px !important;
  line-height: 1.05 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .profile-grid .profile-item strong {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .item-meta {
  margin: 2px 0 0 !important;
  max-height: 28px !important;
  overflow: hidden !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .inline-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 2px !important;
}

.shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list > .list-card .inline-actions .ghost-btn {
  min-width: 38px !important;
  max-width: 64px !important;
  min-height: 22px !important;
  padding: 3px 6px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

@media (min-width: 1500px) {
  .shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .shell:not(.boss-shell) .inventory-role-page .inventory-deep-layout > .panel-card > .list {
    grid-template-columns: 1fr !important;
  }
}

/* 20260715 pageFineTune84: boss cockpit overview tighter and richer. */
.boss-shell .boss-ultra-cockpit {
  padding: 5px !important;
  gap: 5px !important;
}

.boss-shell .boss-ultra-header {
  min-height: 44px !important;
  padding: 5px 9px !important;
}

.boss-shell .boss-ultra-header h2 {
  font-size: clamp(18px, 1.65vw, 25px) !important;
}

.boss-shell .boss-ultra-grid {
  gap: 6px !important;
  grid-template-rows: minmax(248px, 0.46fr) minmax(224px, 0.84fr) !important;
}

.boss-shell .boss-ultra-panel {
  padding: 6px !important;
}

.boss-shell .boss-ultra-overview {
  grid-template-rows: auto minmax(64px, auto) minmax(58px, auto) auto !important;
}

.boss-shell .boss-ultra-panel-head {
  min-height: 21px !important;
  margin-bottom: 3px !important;
}

.boss-shell .boss-ultra-panel-head h3 {
  font-size: 12.5px !important;
}

.boss-shell .boss-ultra-panel-range {
  gap: 3px !important;
}

.boss-shell .boss-ultra-panel-range button,
.boss-shell .boss-ultra-range button,
.boss-shell .boss-ultra-logout {
  min-height: 22px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi {
  min-height: 42px !important;
  padding: 4px 6px !important;
  gap: 4px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi strong {
  font-size: clamp(12px, 0.95vw, 16px) !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi em {
  font-size: 9px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-chart-row {
  grid-template-columns: 1.1fr 1.35fr 0.7fr 0.7fr !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-chart-card {
  min-height: 52px !important;
  max-height: 60px !important;
  padding: 4px 5px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut,
.boss-shell .boss-ultra-overview .boss-ultra-gauge {
  width: 38px !important;
  height: 38px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 5px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut::after,
.boss-shell .boss-ultra-overview .boss-ultra-gauge::after {
  inset: 8px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut i,
.boss-shell .boss-ultra-overview .boss-ultra-gauge i {
  font-size: 10px !important;
}

.boss-shell .boss-ultra-insight-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

.boss-shell .boss-ultra-insight-strip span {
  min-height: 28px !important;
  padding: 4px 5px !important;
  border-radius: 10px !important;
}

.boss-shell .boss-ultra-insight-strip b {
  font-size: 10.5px !important;
}

.boss-shell .boss-ultra-insight-strip em {
  font-size: 8.5px !important;
}

.boss-shell .boss-ultra-chart-title {
  gap: 4px !important;
}

.boss-shell .boss-ultra-chart-title strong {
  font-size: 10.5px !important;
}

.boss-shell .boss-ultra-chart-legend span,
.boss-shell .boss-ultra-bar-row em,
.boss-shell .boss-ultra-bar-row strong {
  font-size: 8px !important;
}

@media (max-width: 1180px) {
  .boss-shell .boss-ultra-insight-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* 20260715 pageFineTune92: compact shared role chrome and remove sidebar dead space. */
@media (min-width: 821px) {
  body.unified-sidebar-polish .shell:not(.boss-shell) {
    grid-template-columns: 218px minmax(0, 1fr) !important;
  }

  body.unified-sidebar-polish.sidebar-nav-collapsed .shell:not(.boss-shell) {
    grid-template-columns: 62px minmax(0, 1fr) !important;
  }

  body.unified-sidebar-polish .shell:not(.boss-shell) .sidebar {
    padding: 12px 8px !important;
  }

  body.unified-sidebar-polish .shell:not(.boss-shell) .sidebar-tools {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-radius: 20px !important;
  }

  body.unified-sidebar-polish .shell:not(.boss-shell) .tenant-unified-primary-btn,
  body.unified-sidebar-polish .shell:not(.boss-shell) .tenant-unified-pms-btn,
  body.unified-sidebar-polish .shell:not(.boss-shell) .sidebar-tool-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-bottom: 6px !important;
  }

  body.unified-sidebar-polish.sidebar-nav-collapsed .shell:not(.boss-shell) .sidebar-tools {
    width: 44px !important;
    padding: 10px !important;
  }

  body.unified-sidebar-polish.sidebar-nav-collapsed .shell:not(.boss-shell) .tenant-unified-primary-btn,
  body.unified-sidebar-polish.sidebar-nav-collapsed .shell:not(.boss-shell) .tenant-unified-pms-btn,
  body.unified-sidebar-polish.sidebar-nav-collapsed .shell:not(.boss-shell) .sidebar-tool-btn {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
  }

  .shell:not(.boss-shell) .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 62px !important;
    padding: 9px 12px !important;
    gap: 10px !important;
  }

  .shell:not(.boss-shell) .topbar-actions {
    width: auto !important;
    max-width: min(58vw, 680px) !important;
    justify-self: end !important;
    flex-wrap: nowrap !important;
  }

  .shell:not(.boss-shell) .topbar-actions > * {
    flex: 0 1 auto !important;
  }

  .shell:not(.boss-shell) .topbar .account-indicator {
    max-width: min(320px, 36vw) !important;
  }

  .shell:not(.boss-shell) .main-panel {
    padding-left: 8px !important;
  }
}

/* 20260716 pageFineTune94: true one-screen boss cockpit and non-overlapping responsive layout. */
@media (min-width: 1281px) {
  .shell.boss-shell .main-panel {
    padding: 6px !important;
    overflow: hidden !important;
  }

  .shell.boss-shell #bossDashboard.active {
    box-sizing: border-box !important;
    width: 100% !important;
    height: calc(100vh - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 12px) !important;
    margin: 0 !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .shell.boss-shell #bossDashboard > .boss-ultra-cockpit {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }
}

@media (max-width: 1280px) {
  .shell.boss-shell {
    min-height: 100vh !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .shell.boss-shell .main-panel {
    max-width: 100vw !important;
    padding: 6px !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .shell.boss-shell #bossDashboard.active {
    max-width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 12px) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    display: block !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .shell.boss-shell #bossDashboard > .boss-ultra-cockpit {
    max-width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 28px) !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .shell.boss-shell .boss-ultra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-template-areas:
      "overview overview"
      "rank rank"
      "tenant report"
      "ai suggest"
      "todo todo" !important;
    align-items: stretch !important;
  }

  .shell.boss-shell .boss-ultra-overview {
    grid-area: overview !important;
  }

  .shell.boss-shell .boss-ultra-rank {
    grid-area: rank !important;
  }

  .shell.boss-shell .boss-ultra-tenant {
    grid-area: tenant !important;
  }

  .shell.boss-shell .boss-ultra-report {
    grid-area: report !important;
  }

  .shell.boss-shell .boss-ultra-ai {
    grid-area: ai !important;
  }

  .shell.boss-shell .boss-ultra-suggest {
    grid-area: suggest !important;
  }

  .shell.boss-shell .boss-ultra-todo {
    grid-area: todo !important;
  }

  .shell.boss-shell .boss-ultra-tenant,
  .shell.boss-shell .boss-ultra-report,
  .shell.boss-shell .boss-ultra-ai,
  .shell.boss-shell .boss-ultra-suggest,
  .shell.boss-shell .boss-ultra-todo {
    min-height: 170px !important;
    margin: 0 !important;
  }
}

@media (max-width: 760px) {
  .shell.boss-shell .boss-ultra-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "overview"
      "rank"
      "tenant"
      "report"
      "ai"
      "suggest"
      "todo" !important;
  }

  .shell.boss-shell .boss-ultra-overview .boss-ultra-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .shell.boss-shell .boss-ultra-overview .boss-ultra-chart-row {
    grid-template-columns: 1fr !important;
  }

  .shell.boss-shell .boss-ultra-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260716 pageFineTune95: compact super-admin account center and remove generated required badges. */
.shell:not(.boss-shell) label:has(input[required])::after,
.shell:not(.boss-shell) label:has(select[required])::after,
.shell:not(.boss-shell) label:has(textarea[required])::after,
.modal-card label:has(input[required])::after,
.modal-card label:has(select[required])::after,
.modal-card label:has(textarea[required])::after {
  content: none !important;
  display: none !important;
}

body:has(#adminAccounts.active) .sidebar-tools .sidebar-tool-btn {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: #34534c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 7px 18px rgba(20, 35, 31, 0.035) !important;
}

body:has(#adminAccounts.active) .sidebar-tools .sidebar-tool-btn::before {
  background: #8dbdb0 !important;
}

body:has(#adminAccounts.active) .sidebar-tools .sidebar-tool-btn.active {
  border-color: rgba(15, 118, 110, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(223, 244, 237, 0.94), rgba(255, 255, 255, 0.8)) !important;
  color: #073f3b !important;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.09) !important;
}

body:has(#adminAccounts.active) .sidebar-tools .sidebar-tool-btn.active::before {
  background: #0f766e !important;
}

#adminAccounts > .stack {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 9px !important;
}

#adminAccounts > .stack > .panel-card:first-child,
#adminAccounts > .stack > .tenant-admin-web-editor {
  grid-column: 1 / -1 !important;
}

#adminAccounts > .stack > .group-account-block {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 15px !important;
}

#adminAccounts > .stack > .group-account-block:has(.group-account-head.collapsed) {
  display: block !important;
}

#adminAccounts > .stack > .group-account-block:has(.group-account-head.collapsed) > .panel-card {
  width: 100% !important;
  min-height: 70px !important;
  box-sizing: border-box !important;
}

#adminAccounts > .stack > .group-account-block:has(.group-account-head:not(.collapsed)) {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr) !important;
  align-items: start !important;
}

#adminAccounts .group-account-head {
  min-height: 48px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
}

#adminAccounts .group-account-head h4 {
  font-size: 15px !important;
  line-height: 1.15 !important;
}

#adminAccounts .group-account-head p {
  margin-top: 3px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

#adminAccounts .group-account-head-actions {
  gap: 6px !important;
}

#adminAccounts .group-account-head-actions .pill,
#adminAccounts .group-account-head-actions button {
  min-height: 29px !important;
  padding: 5px 9px !important;
  border-radius: 10px !important;
  font-size: 10.5px !important;
}

#adminAccounts .tenant-admin-web-editor {
  padding: 10px !important;
  border-radius: 17px !important;
}

#adminAccounts .tenant-admin-web-editor .admin-edit-layout {
  grid-template-columns: minmax(400px, 0.86fr) minmax(500px, 1.14fr) !important;
  align-items: start !important;
  gap: 10px !important;
}

#adminAccounts .tenant-admin-web-editor .panel-card,
#adminAccounts .tenant-admin-web-editor .form-card {
  min-width: 0 !important;
  padding: 10px !important;
  border-radius: 15px !important;
}

#adminAccounts .tenant-admin-web-editor .super-admin-editor-title {
  min-height: 46px !important;
  margin-bottom: 7px !important;
  padding-bottom: 7px !important;
}

#adminAccounts .tenant-admin-web-editor .super-admin-simple-form {
  gap: 7px !important;
}

#adminAccounts .tenant-admin-web-editor .super-admin-simple-form > label {
  min-height: 46px !important;
  gap: 4px !important;
  font-size: 10.5px !important;
}

#adminAccounts .tenant-admin-web-editor .super-admin-simple-form input,
#adminAccounts .tenant-admin-web-editor .super-admin-simple-form select {
  min-height: 30px !important;
  height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

#adminAccounts .tenant-admin-web-editor .super-admin-simple-form .full-span > h5 {
  margin: 3px 0 6px !important;
  font-size: 11.5px !important;
}

#adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid {
  display: grid !important;
  grid-template-columns: minmax(160px, 0.78fr) minmax(260px, 1.22fr) !important;
  grid-template-rows: auto auto !important;
  align-items: start !important;
  gap: 7px !important;
}

#adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid > .permission-group-block {
  min-width: 0 !important;
  padding: 8px !important;
  border-radius: 12px !important;
}

#adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid > .permission-group-block:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

#adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid > .permission-group-block:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}

#adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid > .permission-group-block:nth-child(3) {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

#adminAccounts .tenant-admin-web-editor .permission-group-block > strong {
  font-size: 10.5px !important;
}

#adminAccounts .tenant-admin-web-editor .permission-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

#adminAccounts .tenant-admin-web-editor .permission-group-chip {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 4px 6px !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#adminAccounts .tenant-admin-web-editor .permission-group-chip input {
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  margin: 0 !important;
}

#adminAccounts .tenant-admin-web-editor .permission-group-chip span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#adminAccounts .tenant-admin-web-editor .modal-actions {
  min-height: 34px !important;
  margin-top: 2px !important;
}

@media (max-width: 1180px) {
  #adminAccounts > .stack {
    grid-template-columns: 1fr !important;
  }

  #adminAccounts > .stack > * {
    grid-column: 1 !important;
  }

  #adminAccounts > .stack > .group-account-block:has(.group-account-head:not(.collapsed)),
  #adminAccounts .tenant-admin-web-editor .admin-edit-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid {
    grid-template-columns: 1fr !important;
  }

  #adminAccounts .tenant-admin-web-editor .tenant-admin-permission-grid > .permission-group-block {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* 20260716 pageFineTune96: stable super-admin navigation and neutral untouched forms. */
.shell.super-admin-shell .sidebar-tools .sidebar-tool-btn {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(15, 81, 116, 0.08) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: #34534c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 7px 18px rgba(20, 35, 31, 0.035) !important;
}

.shell.super-admin-shell .sidebar-tools .sidebar-tool-btn::before {
  background: #8dbdb0 !important;
}

.shell.super-admin-shell .sidebar-tools .sidebar-tool-btn.active {
  border-color: rgba(15, 118, 110, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(223, 244, 237, 0.94), rgba(255, 255, 255, 0.8)) !important;
  color: #073f3b !important;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.09) !important;
}

.shell.super-admin-shell .sidebar-tools .sidebar-tool-btn.active::before {
  background: #0f766e !important;
}

.shell:not(.boss-shell) input:invalid:not(:placeholder-shown),
.shell:not(.boss-shell) select:invalid,
.shell:not(.boss-shell) textarea:invalid:not(:placeholder-shown),
.modal-card input:invalid:not(:placeholder-shown),
.modal-card select:invalid,
.modal-card textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(15, 81, 116, 0.12) !important;
  box-shadow: none !important;
}

.shell:not(.boss-shell) input[aria-invalid="true"],
.shell:not(.boss-shell) select[aria-invalid="true"],
.shell:not(.boss-shell) textarea[aria-invalid="true"],
.shell:not(.boss-shell) .is-invalid,
.modal-card input[aria-invalid="true"],
.modal-card select[aria-invalid="true"],
.modal-card textarea[aria-invalid="true"],
.modal-card .is-invalid {
  border-color: rgba(220, 38, 38, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

/* 20260716 pageFineTune97: boss cockpit density and signal polish. */
.shell.boss-shell #bossDashboard.active {
  overflow: hidden !important;
}

.boss-shell .boss-ultra-cockpit {
  padding: 5px !important;
  gap: 5px !important;
  min-height: calc(100vh - 10px) !important;
  max-height: calc(100vh - 10px) !important;
}

.boss-shell .boss-ultra-header {
  min-height: 42px !important;
  padding: 5px 9px !important;
  border-radius: 15px !important;
}

.boss-shell .boss-ultra-title {
  min-height: 34px !important;
  padding: 0 8px !important;
}

.boss-shell .boss-ultra-eyebrow,
.boss-shell .boss-ultra-note {
  font-size: 9px !important;
  line-height: 1 !important;
}

.boss-shell .boss-ultra-header h2 {
  margin-top: 2px !important;
  font-size: clamp(17px, 1.45vw, 22px) !important;
  line-height: 1.05 !important;
}

.boss-shell .boss-ultra-logout {
  min-height: 24px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
}

.boss-shell .boss-ultra-grid {
  gap: 5px !important;
  grid-template-rows: minmax(238px, 0.47fr) minmax(218px, 0.76fr) !important;
}

.boss-shell .boss-ultra-panel {
  padding: 6px !important;
  border-radius: 16px !important;
}

.boss-shell .boss-ultra-overview {
  grid-template-rows: auto auto auto auto auto !important;
}

.boss-shell .boss-ultra-panel-head {
  min-height: 21px !important;
  margin-bottom: 3px !important;
  padding: 0 3px !important;
}

.boss-shell .boss-ultra-panel-head h3 {
  font-size: 13px !important;
  line-height: 1.05 !important;
}

.boss-shell .boss-ultra-panel-head span,
.boss-shell .boss-ultra-icon,
.boss-shell .boss-ultra-mini > span,
.boss-shell .boss-ultra-advice-list span,
.boss-shell .boss-ultra-todo-row > span,
.boss-shell .boss-ultra-work-row > span {
  width: 22px !important;
  height: 22px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}

.boss-shell .boss-ultra-panel-range {
  gap: 3px !important;
  padding: 2px !important;
  border-radius: 999px !important;
}

.boss-shell .boss-ultra-panel-range button {
  min-height: 22px !important;
  padding: 3px 9px !important;
  font-size: 10px !important;
  border-radius: 999px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi-grid {
  gap: 4px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi {
  min-height: 39px !important;
  padding: 4px 5px !important;
  grid-template-columns: 21px minmax(0, 1fr) !important;
  gap: 4px !important;
  border-radius: 12px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi .boss-ultra-icon {
  width: 21px !important;
  height: 21px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi em {
  font-size: 8.5px !important;
  line-height: 1 !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-kpi strong {
  margin-top: 1px !important;
  font-size: clamp(11px, 0.82vw, 14px) !important;
  line-height: 1.08 !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-chart-row {
  grid-template-columns: 1.08fr 1.32fr 0.78fr 0.78fr !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-chart-card {
  min-height: 50px !important;
  max-height: 58px !important;
  padding: 4px 5px !important;
  border-radius: 12px !important;
}

.boss-shell .boss-ultra-chart-title {
  gap: 4px !important;
  min-height: 14px !important;
}

.boss-shell .boss-ultra-chart-title span {
  font-size: 9px !important;
}

.boss-shell .boss-ultra-chart-title strong {
  font-size: 10px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut,
.boss-shell .boss-ultra-overview .boss-ultra-gauge {
  width: 36px !important;
  height: 36px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut-wrap {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 5px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut::after,
.boss-shell .boss-ultra-overview .boss-ultra-gauge::after {
  inset: 8px !important;
}

.boss-shell .boss-ultra-overview .boss-ultra-donut i,
.boss-shell .boss-ultra-overview .boss-ultra-gauge i {
  font-size: 9px !important;
}

.boss-shell .boss-ultra-chart-legend {
  gap: 1px !important;
}

.boss-shell .boss-ultra-chart-legend span,
.boss-shell .boss-ultra-bar-row em,
.boss-shell .boss-ultra-bar-row strong {
  font-size: 7.8px !important;
  line-height: 1.1 !important;
}

.boss-shell .boss-ultra-bar-list {
  gap: 2px !important;
}

.boss-shell .boss-ultra-bar-row {
  grid-template-columns: 24px minmax(0, 1fr) 42px !important;
  gap: 3px !important;
}

.boss-shell .boss-ultra-gauge-card p {
  margin-top: 1px !important;
  font-size: 7.8px !important;
  line-height: 1.1 !important;
}

.boss-shell .boss-ultra-insight-strip,
.boss-shell .boss-ultra-signal-strip {
  display: grid !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

.boss-shell .boss-ultra-insight-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.boss-shell .boss-ultra-signal-strip {
  grid-template-columns: 0.95fr 0.95fr 1fr 1.45fr !important;
}

.boss-shell .boss-ultra-insight-strip span,
.boss-shell .boss-ultra-signal-strip span {
  min-width: 0 !important;
  min-height: 25px !important;
  padding: 3px 6px !important;
  border: 1px solid rgba(102, 241, 206, 0.16) !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, rgba(16, 48, 84, 0.7), rgba(12, 28, 53, 0.48)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.boss-shell .boss-ultra-insight-strip b,
.boss-shell .boss-ultra-signal-strip b {
  display: block !important;
  overflow: hidden !important;
  color: #ecfeff !important;
  font-size: 10px !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.boss-shell .boss-ultra-insight-strip em,
.boss-shell .boss-ultra-signal-strip em {
  display: block !important;
  margin-top: 1px !important;
  overflow: hidden !important;
  color: rgba(199, 231, 242, 0.72) !important;
  font-size: 8px !important;
  font-style: normal !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.boss-shell .boss-ultra-rank-list,
.boss-shell .boss-ultra-work-list,
.boss-shell .boss-ultra-todo-list,
.boss-shell .boss-ultra-advice-list,
.boss-shell .boss-ultra-mini-grid {
  gap: 4px !important;
}

.boss-shell .boss-ultra-rank-row,
.boss-shell .boss-ultra-work-row,
.boss-shell .boss-ultra-todo-row,
.boss-shell .boss-ultra-mini,
.boss-shell .boss-ultra-advice-list article {
  min-height: 27px !important;
  padding: 4px 5px !important;
  border-radius: 11px !important;
}

.boss-shell .boss-ultra-rank-extra,
.boss-shell .boss-ultra-rank-signal,
.boss-shell .boss-ultra-todo-summary,
.boss-shell .boss-ultra-work-stats {
  gap: 4px !important;
  margin-top: 4px !important;
}

.boss-shell .boss-ultra-rank-extra div,
.boss-shell .boss-ultra-rank-signal span,
.boss-shell .boss-ultra-todo-summary span,
.boss-shell .boss-ultra-work-stats span {
  min-height: 23px !important;
  padding: 3px 5px !important;
  border-radius: 10px !important;
}

.boss-shell .boss-ultra-rank-insight {
  min-height: 30px !important;
  margin-top: 4px !important;
  padding: 4px 6px !important;
  border-radius: 11px !important;
}

.boss-shell .boss-ultra-rank-insight strong,
.boss-shell .boss-ultra-rank-row strong,
.boss-shell .boss-ultra-work-row strong,
.boss-shell .boss-ultra-todo-row strong,
.boss-shell .boss-ultra-mini strong {
  font-size: 10.5px !important;
  line-height: 1.12 !important;
}

.boss-shell .boss-ultra-rank-insight span,
.boss-shell .boss-ultra-rank-row em,
.boss-shell .boss-ultra-work-row small,
.boss-shell .boss-ultra-work-row em,
.boss-shell .boss-ultra-todo-row em,
.boss-shell .boss-ultra-mini em,
.boss-shell .boss-ultra-advice-list p {
  font-size: 8.5px !important;
  line-height: 1.15 !important;
}

@media (max-width: 1180px) {
  .boss-shell .boss-ultra-insight-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .boss-shell .boss-ultra-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260716 pageFineTune98: shared business-role page refinement, excluding admin and boss. */
@media (min-width: 821px) {
  .shell.business-role-shell {
    grid-template-columns: 236px minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }

  body.sidebar-nav-collapsed .shell.business-role-shell {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
}

.shell.business-role-shell .sidebar {
  padding: 10px 8px !important;
}

.shell.business-role-shell .sidebar-tools {
  padding: 9px !important;
  border-radius: 18px !important;
}

.shell.business-role-shell .sidebar-tools-head {
  min-height: 28px !important;
  margin-bottom: 7px !important;
}

.shell.business-role-shell .sidebar-tools-head h2 {
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
}

.shell.business-role-shell .tenant-unified-primary-btn,
.shell.business-role-shell .tenant-unified-pms-btn,
.shell.business-role-shell .sidebar-tool-btn {
  width: 100% !important;
  min-height: 36px !important;
  margin-bottom: 6px !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.shell.business-role-shell .tenant-unified-pms-btn {
  font-size: 11.5px !important;
  letter-spacing: -0.01em !important;
}

.shell.business-role-shell .main-panel {
  padding: 10px 12px 12px !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.shell.business-role-shell .topbar {
  min-height: 56px !important;
  padding: 8px 12px !important;
  border-radius: 17px !important;
  gap: 9px !important;
}

.shell.business-role-shell .topbar .eyebrow,
.shell.business-role-shell .topbar .muted {
  display: none !important;
}

.shell.business-role-shell .topbar h2 {
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.08 !important;
}

.shell.business-role-shell .topbar-actions {
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.shell.business-role-shell .topbar .ghost-btn,
.shell.business-role-shell .topbar .primary-btn,
.shell.business-role-shell #globalUnifiedLogoutBtn {
  min-height: 31px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
}

.shell.business-role-shell .tabs,
.shell.business-role-shell .tenant-unified-secondary-tabs,
.shell.business-role-shell .tenant-business-subnav,
.shell.business-role-shell .employee-profile-subnav,
.shell.business-role-shell .finance-role-subnav,
.shell.business-role-shell .inventory-subnav,
.shell.business-role-shell .reports-subnav {
  min-height: 36px !important;
  margin: 6px 0 0 !important;
  padding: 4px !important;
  gap: 5px !important;
  border-radius: 14px !important;
  align-items: center !important;
}

.shell.business-role-shell .tab,
.shell.business-role-shell .tenant-unified-secondary-tab,
.shell.business-role-shell .tenant-business-subnav-btn,
.shell.business-role-shell .employee-profile-subnav button,
.shell.business-role-shell .finance-role-subnav button,
.shell.business-role-shell .inventory-subnav button,
.shell.business-role-shell .reports-subnav button {
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

.shell.business-role-shell .tab-panel {
  margin-top: 8px !important;
  padding: 11px !important;
  border-radius: 18px !important;
}

.shell.business-role-shell .tenant-workbench-page,
.shell.business-role-shell .finance-role-page,
.shell.business-role-shell .inventory-role-page,
.shell.business-role-shell .employee-home-shell,
.shell.business-role-shell .employee-workbench-page,
.shell.business-role-shell .hr-final-page,
.shell.business-role-shell .tenant-business-page {
  gap: 8px !important;
}

.shell.business-role-shell .tenant-workbench-hero,
.shell.business-role-shell .employee-home-hero,
.shell.business-role-shell .employee-workbench-hero,
.shell.business-role-shell .finance-role-hero,
.shell.business-role-shell .inventory-hero-panel,
.shell.business-role-shell .tenant-business-hero,
.shell.business-role-shell .employee-permission-hero {
  min-height: 58px !important;
  padding: 8px 11px !important;
  border-radius: 17px !important;
  gap: 8px !important;
}

.shell.business-role-shell .tenant-workbench-hero h3,
.shell.business-role-shell .employee-home-copy h3,
.shell.business-role-shell .employee-workbench-hero h3,
.shell.business-role-shell .finance-role-hero h3,
.shell.business-role-shell .inventory-hero-copy h3,
.shell.business-role-shell .tenant-business-hero h3 {
  font-size: clamp(16px, 1.25vw, 21px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
}

.shell.business-role-shell .tenant-workbench-hero p,
.shell.business-role-shell .employee-home-copy p,
.shell.business-role-shell .employee-workbench-hero p,
.shell.business-role-shell .finance-role-hero p,
.shell.business-role-shell .inventory-hero-copy p,
.shell.business-role-shell .tenant-business-hero p {
  display: none !important;
}

.shell.business-role-shell .employee-home-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
  font-size: 16px !important;
}

.shell.business-role-shell .employee-home-tag,
.shell.business-role-shell .inventory-hero-tag,
.shell.business-role-shell .finance-role-hero > span,
.shell.business-role-shell .status-pill,
.shell.business-role-shell .pill {
  min-height: 20px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
}

.shell.business-role-shell .metrics-grid,
.shell.business-role-shell .dashboard-grid,
.shell.business-role-shell .two-column,
.shell.business-role-shell .profile-grid,
.shell.business-role-shell .employee-home-kpis,
.shell.business-role-shell .employee-workbench-kpis,
.shell.business-role-shell .finance-role-workbench-grid,
.shell.business-role-shell .finance-role-metrics,
.shell.business-role-shell .inventory-kpi-grid,
.shell.business-role-shell .inventory-role-grid,
.shell.business-role-shell .tenant-business-grid,
.shell.business-role-shell .tenant-business-grid-main,
.shell.business-role-shell .tenant-business-metrics,
.shell.business-role-shell .hr-final-metrics,
.shell.business-role-shell .approval-page-layout {
  gap: 8px !important;
}

.shell.business-role-shell .panel-card,
.shell.business-role-shell .form-card,
.shell.business-role-shell .list-card,
.shell.business-role-shell .metric-card,
.shell.business-role-shell .report-card,
.shell.business-role-shell .alert-card,
.shell.business-role-shell .employee-profile-subnav-card,
.shell.business-role-shell .employee-profile-subpanel,
.shell.business-role-shell .employee-workbench-card,
.shell.business-role-shell .employee-workbench-pms-card,
.shell.business-role-shell .tenant-business-card,
.shell.business-role-shell .tenant-role-workload,
.shell.business-role-shell .tenant-role-panel,
.shell.business-role-shell .inventory-assistant-card,
.shell.business-role-shell .inventory-create-analysis-card,
.shell.business-role-shell .approval-list-panel,
.shell.business-role-shell .approval-form-panel {
  padding: 9px 10px !important;
  border-radius: 15px !important;
}

.shell.business-role-shell .metric-card,
.shell.business-role-shell .employee-kpi-card,
.shell.business-role-shell .inventory-kpi-card,
.shell.business-role-shell .tenant-role-kpi-card,
.shell.business-role-shell .hr-final-metric-card,
.shell.business-role-shell .finance-role-page .metric-card {
  min-height: 52px !important;
  padding: 7px 9px !important;
  border-radius: 14px !important;
}

/* pageFineTune105: keep finance workbench data readable in one screen. */
.shell.business-role-shell .finance-workbench-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.shell.business-role-shell .finance-workbench-table th,
.shell.business-role-shell .finance-workbench-table td {
  padding: 7px 10px !important;
  font-size: 12px !important;
  line-height: 1.16 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-type {
  width: 112px !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-tenant {
  width: 210px !important;
  max-width: 210px !important;
}

.shell.business-role-shell .finance-workbench-pms-table .finance-col-tenant {
  width: 190px !important;
  max-width: 190px !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-date {
  width: 102px !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-money,
.shell.business-role-shell .finance-workbench-table .finance-col-amount {
  width: 118px !important;
  text-align: right !important;
}

.shell.business-role-shell .finance-workbench-pms-table .finance-col-money {
  width: 96px !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-rate,
.shell.business-role-shell .finance-workbench-table .finance-col-count {
  width: 76px !important;
  text-align: center !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-status {
  width: 96px !important;
  text-align: center !important;
}

.shell.business-role-shell .finance-workbench-table .finance-col-detail {
  width: 260px !important;
}

.shell.business-role-shell .finance-workbench-table .status-pill {
  max-width: 84px !important;
  justify-content: center !important;
}

.shell.business-role-shell .finance-report-table-wrap {
  overflow-x: hidden !important;
}

/* pageFineTune106: finance document table readable columns. */
.shell.business-role-shell .finance-doc-table {
  width: 100% !important;
  table-layout: fixed !important;
}

.shell.business-role-shell .finance-doc-table th,
.shell.business-role-shell .finance-doc-table td {
  padding: 8px 8px !important;
  font-size: 12px !important;
  line-height: 1.18 !important;
  vertical-align: middle !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(1),
.shell.business-role-shell .finance-doc-table td:nth-child(1) {
  width: 150px !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(2),
.shell.business-role-shell .finance-doc-table td:nth-child(2) {
  width: 180px !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(3),
.shell.business-role-shell .finance-doc-table td:nth-child(3) {
  width: 90px !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(4),
.shell.business-role-shell .finance-doc-table td:nth-child(4) {
  width: 96px !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(5),
.shell.business-role-shell .finance-doc-table td:nth-child(5) {
  width: 92px !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(6),
.shell.business-role-shell .finance-doc-table td:nth-child(6) {
  width: 125px !important;
}

.shell.business-role-shell .finance-doc-table th:nth-child(7),
.shell.business-role-shell .finance-doc-table td:nth-child(7) {
  width: 128px !important;
}

.shell.business-role-shell .finance-doc-no-cell .approval-table-code-cell,
.shell.business-role-shell .finance-doc-person-cell .approval-table-person-cell,
.shell.business-role-shell .finance-doc-reviewer-cell .approval-table-person-cell {
  min-width: 0 !important;
  gap: 2px !important;
}

.shell.business-role-shell .finance-doc-no-cell .link-btn {
  max-width: 132px !important;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell.business-role-shell .finance-doc-tenant-cell strong,
.shell.business-role-shell .finance-doc-person-cell strong,
.shell.business-role-shell .finance-doc-reviewer-cell strong,
.shell.business-role-shell .finance-doc-tenant-cell .item-meta,
.shell.business-role-shell .finance-doc-person-cell .item-meta,
.shell.business-role-shell .finance-doc-reviewer-cell .item-meta {
  display: block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shell.business-role-shell .finance-doc-amount-cell {
  text-align: right !important;
}

.shell.business-role-shell .finance-doc-amount-cell .approval-table-amount {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 13px !important;
}

.shell.business-role-shell .finance-doc-status-cell {
  text-align: center !important;
}

.shell.business-role-shell .finance-doc-status-cell .status-pill {
  max-width: 78px !important;
  justify-content: center !important;
}

.shell.business-role-shell .finance-doc-action-cell .approval-table-actions {
  min-width: 0 !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
}

.shell.business-role-shell .finance-doc-action-cell .approval-table-actions .ghost-btn {
  min-width: 38px !important;
  max-width: 58px !important;
  padding: 4px 6px !important;
}

.shell.business-role-shell .metric-card p,
.shell.business-role-shell .employee-kpi-card span,
.shell.business-role-shell .inventory-kpi-label,
.shell.business-role-shell .tenant-role-kpi-card span,
.shell.business-role-shell .hr-final-metric-card p {
  font-size: 10.5px !important;
  line-height: 1.12 !important;
}

.shell.business-role-shell .metric-card strong,
.shell.business-role-shell .employee-kpi-card strong,
.shell.business-role-shell .inventory-kpi-card strong,
.shell.business-role-shell .tenant-role-kpi-card strong,
.shell.business-role-shell .hr-final-metric-card strong {
  margin-top: 3px !important;
  font-size: clamp(16px, 1.2vw, 22px) !important;
  line-height: 1 !important;
}

.shell.business-role-shell .section-head {
  min-height: 28px !important;
  margin-bottom: 6px !important;
  gap: 7px !important;
}

.shell.business-role-shell .section-head h2,
.shell.business-role-shell .section-head h3,
.shell.business-role-shell .section-head h4,
.shell.business-role-shell .panel-card h4,
.shell.business-role-shell .form-card h4,
.shell.business-role-shell .list-card h4,
.shell.business-role-shell .report-card h4 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.16 !important;
}

.shell.business-role-shell .profile-inline-meta,
.shell.business-role-shell .item-meta,
.shell.business-role-shell .subtle,
.shell.business-role-shell .muted,
.shell.business-role-shell .field-hint {
  font-size: 10.5px !important;
  line-height: 1.28 !important;
}

.shell.business-role-shell form,
.shell.business-role-shell .form-grid,
.shell.business-role-shell .compact-form,
.shell.business-role-shell .approval-form {
  gap: 8px !important;
}

.shell.business-role-shell label {
  gap: 4px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.shell.business-role-shell input,
.shell.business-role-shell select,
.shell.business-role-shell textarea {
  min-height: 30px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.shell.business-role-shell textarea {
  min-height: 56px !important;
}

.shell.business-role-shell table {
  font-size: 12px !important;
}

.shell.business-role-shell .table th,
.shell.business-role-shell .table td,
.shell.business-role-shell .data-table th,
.shell.business-role-shell .data-table td,
.shell.business-role-shell .employee-handover-history-table th,
.shell.business-role-shell .employee-handover-history-table td,
.shell.business-role-shell .approval-record-table th,
.shell.business-role-shell .approval-record-table td,
.shell.business-role-shell .finance-report-table th,
.shell.business-role-shell .finance-report-table td,
.shell.business-role-shell .tenant-business-table th,
.shell.business-role-shell .tenant-business-table td,
.shell.business-role-shell .employee-directory-table th,
.shell.business-role-shell .employee-directory-table td {
  padding: 6px 7px !important;
  font-size: 11.5px !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
}

.shell.business-role-shell .table th,
.shell.business-role-shell .data-table th,
.shell.business-role-shell .employee-handover-history-table th,
.shell.business-role-shell .approval-record-table th,
.shell.business-role-shell .finance-report-table th,
.shell.business-role-shell .tenant-business-table th,
.shell.business-role-shell .employee-directory-table th {
  font-size: 11px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.shell.business-role-shell td.action-cell,
.shell.business-role-shell td .inline-actions,
.shell.business-role-shell td .approval-table-actions {
  min-width: 96px !important;
  gap: 4px !important;
  justify-content: flex-end !important;
}

.shell.business-role-shell td.action-cell .ghost-btn,
.shell.business-role-shell td.action-cell .primary-btn,
.shell.business-role-shell td.action-cell .danger-btn,
.shell.business-role-shell td .inline-actions .ghost-btn,
.shell.business-role-shell td .inline-actions .primary-btn,
.shell.business-role-shell td .inline-actions .danger-btn,
.shell.business-role-shell td .approval-table-actions .ghost-btn,
.shell.business-role-shell td .approval-table-actions .primary-btn,
.shell.business-role-shell td .approval-table-actions .danger-btn,
.shell.business-role-shell .section-head-actions .ghost-btn,
.shell.business-role-shell .section-head-actions .primary-btn,
.shell.business-role-shell .section-head-actions .danger-btn {
  min-height: 25px !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.shell.business-role-shell .table-wrap,
.shell.business-role-shell .table-scroll,
.shell.business-role-shell .employee-handover-history-table-wrap,
.shell.business-role-shell .finance-report-table-wrap,
.shell.business-role-shell .tenant-report-table-wrap,
.shell.business-role-shell .tenant-business-table-wrap {
  border-radius: 14px !important;
}

@media (max-width: 980px) {
  .shell.business-role-shell {
    grid-template-columns: 1fr !important;
  }

  .shell.business-role-shell .topbar,
  .shell.business-role-shell .topbar-actions {
    align-items: stretch !important;
    flex-wrap: wrap !important;
  }

  .shell.business-role-shell .tenant-unified-secondary-tabs,
  .shell.business-role-shell .tenant-business-subnav,
  .shell.business-role-shell .employee-profile-subnav,
  .shell.business-role-shell .finance-role-subnav,
  .shell.business-role-shell .inventory-subnav,
  .shell.business-role-shell .reports-subnav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }
}

/* 20260716 pageFineTune99: entry, dialogs, empty states and pagination polish. */
.auth-shell {
  padding: 18px !important;
}

.auth-card {
  width: min(92vw, 410px) !important;
  padding: 22px 22px 20px !important;
  border-radius: 24px !important;
}

.auth-card .eyebrow {
  margin-bottom: 7px !important;
  padding: 4px 9px !important;
  font-size: 10.5px !important;
}

.auth-card h1 {
  margin-bottom: 5px !important;
  font-size: 25px !important;
  line-height: 1.08 !important;
}

.auth-card > .muted {
  margin-bottom: 14px !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
}

.auth-form {
  gap: 9px !important;
}

.auth-form label {
  gap: 4px !important;
  font-size: 11.5px !important;
}

.auth-form input {
  min-height: 38px !important;
  padding: 8px 11px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
}

.auth-password-field input {
  padding-right: 44px !important;
}

.auth-password-toggle {
  right: 7px !important;
  width: 30px !important;
  height: 30px !important;
}

.auth-password-toggle svg {
  width: 18px !important;
  height: 18px !important;
}

.auth-form .primary-btn {
  min-height: 40px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

dialog.modal {
  max-width: calc(100vw - 24px) !important;
}

.modal-card {
  width: min(720px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 28px) !important;
  overflow: auto !important;
  gap: 8px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18) !important;
}

.modal-card-wide,
#employeeDialogForm.modal-card-wide,
.approval-detail-modal-card {
  width: min(1080px, calc(100vw - 24px)) !important;
}

.dialog-head,
.modal-card > .section-head {
  min-height: 42px !important;
  margin-bottom: 6px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
}

.dialog-head h2,
.modal-card > .section-head h2,
.modal-card h3,
.modal-card h4 {
  font-size: 15px !important;
  line-height: 1.16 !important;
}

.modal-card p,
.dialog-head p,
.modal-card > .section-head p {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.modal-card .profile-form,
.modal-card .tenant-form-grid,
.modal-card .compact-form-grid,
.modal-card .approval-form-grid,
.modal-card .group-account-form-grid,
.modal-card .super-admin-simple-form {
  gap: 7px 9px !important;
}

.modal-card label {
  gap: 4px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 30px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}

.modal-card textarea {
  min-height: 58px !important;
}

.modal-actions,
.modal-card .modal-actions,
.review-dialog-body .modal-actions,
.approval-detail-actions {
  min-height: 32px !important;
  margin-top: 4px !important;
  gap: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(15, 81, 116, 0.08) !important;
}

.modal-actions .ghost-btn,
.modal-actions .primary-btn,
.modal-actions .danger-btn,
.approval-detail-actions .approval-decision-btn,
.approval-detail-actions .primary-btn,
.approval-detail-actions .ghost-btn {
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.shell.business-role-shell .empty-state,
.tenant-workbench-empty,
.tenant-business-empty,
.tenant-role-empty,
.approval-flow-empty {
  min-height: 86px !important;
  padding: 14px !important;
  border-radius: 15px !important;
  border: 1px dashed rgba(15, 81, 116, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.82), rgba(255, 255, 255, 0.9)) !important;
}

.shell.business-role-shell .empty-state h3,
.tenant-workbench-empty strong,
.tenant-business-empty strong,
.tenant-role-empty strong,
.approval-flow-empty strong {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
}

.shell.business-role-shell .empty-state p,
.tenant-workbench-empty p,
.tenant-business-empty p,
.tenant-role-empty p,
.approval-flow-empty p {
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.28 !important;
}

.shell.business-role-shell .alert-banner,
.employee-handover-edit-alert,
.invoice-reminder {
  min-height: 34px !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}

.global-notice {
  right: 16px !important;
  bottom: 16px !important;
  min-width: 260px !important;
  max-width: 420px !important;
  padding: 10px 13px !important;
  border-radius: 15px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.shell.business-role-shell .pagination,
.shell.business-role-shell .table-pagination,
.shell.business-role-shell .employee-handover-pagination,
.shell.business-role-shell .employee-handover-history-pager {
  min-height: 32px !important;
  margin-top: 8px !important;
  gap: 5px !important;
  padding: 4px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

.shell.business-role-shell .pagination button,
.shell.business-role-shell .table-pagination button,
.shell.business-role-shell .employee-handover-pagination button,
.shell.business-role-shell .employee-handover-history-pager button {
  min-height: 25px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
}

.shell.business-role-shell .profile-item,
.shell.business-role-shell .approval-detail-grid .profile-item,
.shell.business-role-shell .employee-directory-card {
  min-height: 44px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell.business-role-shell .profile-item span,
.shell.business-role-shell .employee-directory-card span {
  margin-bottom: 2px !important;
  font-size: 10px !important;
}

.shell.business-role-shell .profile-item strong,
.shell.business-role-shell .employee-directory-card strong {
  font-size: 12.5px !important;
  line-height: 1.2 !important;
}

@media (max-width: 640px) {
  .auth-card {
    width: min(100%, 380px) !important;
    padding: 20px 16px !important;
  }

  .modal-card,
  .modal-card-wide,
  #employeeDialogForm.modal-card-wide,
  .approval-detail-modal-card {
    width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    padding: 12px !important;
  }

  .global-notice {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    min-width: 0 !important;
  }
}

/* 20260716 pageFineTune100: keep the boss cockpit on one desktop screen. */
@media (min-width: 1100px) {
  body:has(.shell.boss-shell:not(.hidden)) {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
  }

  .shell.boss-shell {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }

  .shell.boss-shell .main-panel {
    width: 100% !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    padding: 6px !important;
    overflow: hidden !important;
  }

  .shell.boss-shell #bossDashboard.active {
    box-sizing: border-box !important;
    width: 100% !important;
    height: calc(100vh - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 12px) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .shell.boss-shell #bossDashboard > .boss-ultra-cockpit {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  .shell.boss-shell .boss-ultra-grid {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr) !important;
    grid-template-rows: minmax(250px, 1.35fr) minmax(190px, 0.85fr) !important;
    grid-template-areas:
      "overview rank"
      "bottom bottom" !important;
    overflow: hidden !important;
  }

  .shell.boss-shell .boss-ultra-overview {
    grid-area: overview !important;
  }

  .shell.boss-shell .boss-ultra-rank {
    grid-area: rank !important;
  }

  .shell.boss-shell .boss-ultra-tenant,
  .shell.boss-shell .boss-ultra-report,
  .shell.boss-shell .boss-ultra-ai,
  .shell.boss-shell .boss-ultra-suggest,
  .shell.boss-shell .boss-ultra-todo {
    grid-area: bottom !important;
    grid-row: 2 !important;
    min-height: 0 !important;
  }

  .shell.boss-shell .boss-ultra-tenant {
    margin: 0 calc(80% + 8px) 0 0 !important;
  }

  .shell.boss-shell .boss-ultra-report {
    margin: 0 calc(60% + 6px) 0 calc(20% + 2px) !important;
  }

  .shell.boss-shell .boss-ultra-ai {
    margin: 0 calc(40% + 4px) 0 calc(40% + 4px) !important;
  }

  .shell.boss-shell .boss-ultra-suggest {
    margin: 0 calc(20% + 2px) 0 calc(60% + 6px) !important;
  }

  .shell.boss-shell .boss-ultra-todo {
    margin: 0 0 0 calc(80% + 8px) !important;
  }
}

/* 20260717 pageFineTune103: daily handover table readable metrics. */
.shell:not(.boss-shell) .handover-compact-table-wrap {
  overflow-x: auto !important;
}

.shell:not(.boss-shell) .handover-compact-table {
  width: 100% !important;
  min-width: 760px !important;
  table-layout: fixed !important;
}

.shell:not(.boss-shell) .handover-compact-table th,
.shell:not(.boss-shell) .handover-compact-table td {
  max-width: none !important;
  padding: 8px 7px !important;
  overflow: hidden !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-date {
  width: 112px;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-shift {
  width: 78px;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-person {
  width: 76px;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-money {
  width: 86px;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-small {
  width: 72px;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-status {
  width: 86px;
}

.shell:not(.boss-shell) .handover-compact-table .handover-col-action {
  width: 64px;
}

.shell:not(.boss-shell) .handover-date-link {
  width: 100% !important;
  min-height: 28px !important;
  justify-content: center !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(14, 165, 233, 0.16) !important;
  border-radius: 10px !important;
  background: rgba(14, 165, 233, 0.08) !important;
  color: #075985 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* 20260717 pageFineTune108: compact horizontal inventory product entry page. */
.shell.business-role-shell .inventory-role-page .inventory-entry-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.72fr) minmax(250px, 0.78fr) !important;
  align-items: start !important;
  gap: 8px !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-card,
.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card {
  padding: 8px 9px !important;
  border-radius: 15px !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-card > .section-head,
.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card > .section-head {
  min-height: 0 !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  align-items: center !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-card h4,
.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card h4 {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-card .profile-inline-meta,
.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card .profile-inline-meta {
  margin: 2px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px 7px !important;
  align-items: end !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-grid label {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.05 !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-grid input,
.shell.business-role-shell .inventory-role-page .inventory-entry-form-grid select,
.shell.business-role-shell .inventory-role-page .inventory-entry-form-grid textarea {
  min-height: 30px !important;
  height: 30px !important;
  padding: 5px 9px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-form-grid textarea {
  height: 46px !important;
  min-height: 46px !important;
  resize: vertical !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-note {
  grid-column: span 3 !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-actions {
  grid-column: span 1 !important;
  display: grid !important;
  grid-template-columns: 1fr 0.78fr !important;
  gap: 6px !important;
  align-self: end !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-actions .primary-btn,
.shell.business-role-shell .inventory-role-page .inventory-entry-actions .ghost-btn {
  min-height: 34px !important;
  padding: 6px 9px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card .inventory-compact-list {
  grid-template-columns: 1fr !important;
  gap: 6px !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card .list-item {
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card .item-row {
  gap: 6px !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card .item-row strong {
  max-width: 12em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.shell.business-role-shell .inventory-role-page .inventory-entry-recent-card .item-meta {
  margin: 3px 0 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

@media (max-width: 1280px) {
  .shell.business-role-shell .inventory-role-page .inventory-entry-layout {
    grid-template-columns: 1fr !important;
  }

  .shell.business-role-shell .inventory-role-page .inventory-entry-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .shell.business-role-shell .inventory-role-page .inventory-entry-note,
  .shell.business-role-shell .inventory-role-page .inventory-entry-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 760px) {
  .shell.business-role-shell .inventory-role-page .inventory-entry-form-grid {
    grid-template-columns: 1fr !important;
  }
}
.invoice-request-detail {
  display: grid;
  gap: 12px;
}

.invoice-request-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.invoice-request-detail-head h4 {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.invoice-request-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.invoice-request-detail-grid .profile-item {
  min-height: auto;
  padding: 8px 10px;
  border-radius: 12px;
}

.invoice-request-detail-grid .profile-item span {
  font-size: 11px;
  line-height: 1.2;
}

.invoice-request-detail-grid .profile-item strong {
  font-size: 12px;
  line-height: 1.35;
}

.invoice-request-detail-footer {
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.invoice-request-detail-footer .item-meta {
  max-width: 520px;
  margin: 0;
  font-size: 12px;
}
.tenant-business-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 8px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.82), rgba(255, 255, 255, 0.94));
  color: #0f3f3b;
}

.tenant-business-section-title strong {
  font-size: 14px;
  font-weight: 900;
}

.tenant-business-section-title span {
  color: #64748b;
  font-size: 12px;
}

.tenant-business-section-title-split {
  margin-top: 14px;
}

.tenant-business-subnav-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
/* Workflow clarity and accessible controls — 2026-09-18 */
.workflow-guide { padding: 14px 16px; border: 1px solid #cbdff4; border-radius: 14px; background: #f1f7ff; color: #29435c; line-height: 1.7; }
.workflow-guide strong { font-size: 15px; color: #153e70; }
.workflow-guide p { margin: 5px 0 0; font-size: 13px; }
.super-admin-simple-account-layout .panel-card,
.super-admin-simple-account-layout .form-card { border: 1px solid #dde5ef; border-radius: 18px; box-shadow: 0 6px 24px #1836570a; }
.super-admin-simple-form label { line-height: 1.6; }
.super-admin-simple-form input:not([type=checkbox]),
.super-admin-simple-form select { min-height: 44px; border-radius: 10px; }
.super-admin-simple-permissions label { min-height: 42px; align-items: center; }
.super-admin-simple-account-layout button { min-height: 40px; }
.super-admin-simple-account-layout thead th { background: #f4f7fb; color: #476079; }
.super-admin-simple-account-layout tbody tr:hover { background: #f4f8ff; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid #2a76d5; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 760px) {
  .super-admin-simple-account-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .super-admin-simple-account-layout .panel-card { overflow-x: auto; }
  .super-admin-simple-form { grid-template-columns: minmax(0, 1fr) !important; }
  .super-admin-simple-form .full-span { grid-column: 1 !important; }
}

/* ==========================================================================
   集团账号管理重排 + 企业管理员独立页 —— 2026-09-23
   1) #adminAccounts 里 3 个集团岗位改成整齐的折叠卡片（单卡片内手风琴），
      不再用并列的 two-column 区块，展开后上下对齐、不再左右错位。
   2) 老板账号从集团账号管理里移除（保留左侧「老板账号管理」）。
   3) 企业管理员账号拆到 #tenantAdmins 独立页，左侧新增导航入口。
   ========================================================================== */

#adminAccounts > .stack > .panel-card.group-account-shell {
  grid-column: 1 / -1 !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

#adminAccounts .group-account-shell .section-head {
  margin-bottom: 10px;
}

.group-account-list {
  display: grid;
  gap: 8px;
}

.group-account-item {
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.group-account-item.expanded {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.08);
}

.group-account-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.group-account-item-head:hover {
  background: #f7fbfa;
}

.group-account-item-head:focus-visible {
  outline: 3px solid #2a76d5;
  outline-offset: -3px;
}

.group-account-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.group-account-item-copy strong {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--ink);
}

.group-account-item-copy em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.group-account-item-aside {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.group-account-item-aside .pill {
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}

.group-account-item-caret {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: rgba(214, 242, 235, 0.6);
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.group-account-item-caret::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.18s ease;
}

.group-account-item.expanded .group-account-item-caret::after {
  transform: rotate(180deg);
}

.group-account-item-body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.group-account-item-body[hidden] {
  display: none !important;
}

.group-account-item-table {
  overflow-x: auto;
}

.group-account-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* 用 #adminAccounts/#tenantAdmins 提高特异性：全局 `.group-account-manage-page .table`
   那批规则带 !important 的 table-layout: fixed 会把「操作」列压成 13px 并被裁掉。 */
#adminAccounts .group-account-table,
#tenantAdmins .group-account-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  border-collapse: collapse;
  font-size: 12.5px;
}

#adminAccounts .group-account-table th,
#adminAccounts .group-account-table td,
#tenantAdmins .group-account-table th,
#tenantAdmins .group-account-table td {
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #eef2f7;
}

#adminAccounts .group-account-table thead th,
#tenantAdmins .group-account-table thead th {
  background: #f4f7fb;
  color: #476079;
  font-size: 12px;
  font-weight: 800;
}

#adminAccounts .group-account-table tbody tr:last-child td,
#tenantAdmins .group-account-table tbody tr:last-child td {
  border-bottom: 0;
}

#adminAccounts .group-account-table tbody tr:hover,
#tenantAdmins .group-account-table tbody tr:hover {
  background: #f4f8ff;
}

#adminAccounts .group-account-table th:last-child,
#adminAccounts .group-account-table td:last-child,
#tenantAdmins .group-account-table th:last-child,
#tenantAdmins .group-account-table td:last-child {
  width: 1%;
  padding-right: 2px;
}

.group-account-table .action-cell {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.group-account-form-tight {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.group-account-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.group-account-form-head strong {
  font-size: 13.5px;
  font-weight: 900;
}

.group-account-form-head span {
  font-size: 11.5px;
  color: var(--muted);
}

.group-account-form-tight .group-account-form-grid {
  gap: 8px 10px;
}

.group-account-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.group-account-form-actions .primary-btn {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

/* ---- 企业管理员账号（独立页 #tenantAdmins） ---- */

#tenantAdmins > .stack {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
}

#tenantAdmins .tenant-admin-web-editor {
  padding: 10px;
  border-radius: 17px;
}

#tenantAdmins .tenant-admin-web-editor .admin-edit-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr) !important;
  align-items: start !important;
  gap: 10px !important;
}

@media (max-width: 1180px) {
  #tenantAdmins .tenant-admin-web-editor .admin-edit-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .group-account-item-head {
    align-items: flex-start;
  }

  .group-account-item-copy em {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* ===================== 集团账号管理重排 结束 ===================== */
