/* GKEB V32 — Global Operational Dashboard */
.main-dashboard-module {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 28px);
  color: #173b2d;
}
.main-dashboard-module[hidden] { display: none !important; }
.main-dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.main-dashboard-heading { min-width: 0; }
.main-dashboard-eyebrow,
.main-dashboard-panel-kicker {
  display: block;
  color: #07804d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
}
.main-dashboard-heading h1 {
  margin: 6px 0 7px;
  color: #173b2d;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.main-dashboard-heading p {
  max-width: 760px;
  margin: 0;
  color: #64766d;
  font-size: 13px;
  line-height: 1.65;
}
.main-dashboard-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.main-dashboard-updated {
  color: #74847b;
  font-size: 11px;
  white-space: nowrap;
}
.main-dashboard-header-actions button {
  min-height: 40px;
  white-space: nowrap;
}
.main-dashboard-alert {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #f1d6a9;
  border-radius: 10px;
  background: #fff8eb;
  color: #86571b;
  font-size: 12px;
  line-height: 1.5;
}
.main-dashboard-alert[hidden] { display: none !important; }
.main-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.main-dashboard-metric-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 108px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid #dce9e1;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffffff 0%, #f5faf7 100%);
  box-shadow: 0 5px 18px rgba(20, 67, 46, .045);
}
.main-dashboard-metric-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: currentColor;
  opacity: .045;
}
.main-dashboard-metric-icon {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  background: currentColor;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 20px rgba(255,255,255,.84);
}
.main-dashboard-metric-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.main-dashboard-metric-label {
  color: #63776c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}
.main-dashboard-metric-copy strong {
  color: #173b2d;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-metric-copy small {
  color: #829087;
  font-size: 10px;
  line-height: 1.4;
}
.main-dashboard-metric-card.tone-green { color: #078b55; }
.main-dashboard-metric-card.tone-amber { color: #d58a20; }
.main-dashboard-metric-card.tone-blue { color: #287bc0; }
.main-dashboard-metric-card.tone-teal { color: #078b83; }
.main-dashboard-metric-card.tone-red { color: #d3544a; }
.main-dashboard-metric-card.tone-violet { color: #7560b7; }
.main-dashboard-metric-card.tone-slate { color: #597c8a; }
.main-dashboard-metric-card.tone-forest { color: #24764c; }
.main-dashboard-metric-card.tone-cyan { color: #168aab; }

.main-dashboard-primary-grid,
.main-dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 15px;
  margin-bottom: 15px;
}
.main-dashboard-panel {
  min-width: 0;
  border: 1px solid #dce8e0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(20, 67, 46, .045);
  overflow: hidden;
}
.main-dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 19px 12px;
}
.main-dashboard-panel-head h2 {
  margin: 4px 0 5px;
  color: #173b2d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.main-dashboard-panel-head p {
  margin: 0;
  color: #7b8981;
  font-size: 11px;
  line-height: 1.5;
}
.main-dashboard-period-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #dcebe2;
  border-radius: 7px;
  background: #f4faf6;
  color: #26734e;
  font-size: 10px;
  font-weight: 750;
}
.main-dashboard-trend {
  min-height: 260px;
  padding: 4px 15px 14px;
}
.main-dashboard-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  overflow: visible;
}
.main-dashboard-grid-line {
  stroke: #e6eee8;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.main-dashboard-series-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-dashboard-axis-label {
  fill: #7b8981;
  font-size: 11px;
}
.main-dashboard-chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 4px 8px 0;
  color: #62746a;
  font-size: 10px;
}
.main-dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-dashboard-chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.main-dashboard-status-list {
  display: grid;
  gap: 15px;
  padding: 8px 19px 19px;
}
.main-dashboard-status-group {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2ee;
}
.main-dashboard-status-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.main-dashboard-status-group h3 {
  margin: 0;
  color: #284b38;
  font-size: 12px;
  font-weight: 800;
}
.main-dashboard-status-row {
  display: grid;
  gap: 6px;
}
.main-dashboard-status-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #728078;
  font-size: 10px;
}
.main-dashboard-status-copy strong {
  color: #264a37;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-status-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf3ef;
}
.main-dashboard-status-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width .25s ease;
}
.main-dashboard-status-track .tone-amber { background: #e6a13d; }
.main-dashboard-status-track .tone-green { background: #15975e; }
.main-dashboard-status-track .tone-blue { background: #3989d2; }
.main-dashboard-status-track .tone-red { background: #d75c50; }
.main-dashboard-status-track .tone-violet { background: #806bc0; }

.main-dashboard-secondary-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.main-dashboard-activity-list {
  display: grid;
  padding: 0 18px 14px;
}
.main-dashboard-activity-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #edf2ee;
}
.main-dashboard-activity-row:last-child { border-bottom: 0; }
.main-dashboard-activity-mark {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #15975e;
}
.main-dashboard-activity-mark.equipment { background: #3989d2; }
.main-dashboard-activity-mark.inventory { background: #e6a13d; }
.main-dashboard-activity-main {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
}
.main-dashboard-activity-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #7b8981;
  font-size: 9px;
}
.main-dashboard-activity-meta span {
  color: #397455;
  font-weight: 750;
}
.main-dashboard-activity-meta time { white-space: nowrap; }
.main-dashboard-activity-main strong {
  overflow: hidden;
  color: #244735;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-dashboard-activity-main small {
  overflow: hidden;
  color: #8a9690;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-dashboard-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 99px;
  background: #fff4df;
  color: #98651f;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.main-dashboard-badge.success { background: #e8f6ed; color: #147447; }
.main-dashboard-badge.info { background: #eaf3fc; color: #276da8; }
.main-dashboard-badge.muted { background: #f0f2f1; color: #6c7771; }

.main-dashboard-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 16px 16px;
}
.main-dashboard-module-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e5eee8;
  border-radius: 10px;
  background: #fbfdfb;
}
.main-dashboard-module-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.main-dashboard-module-card h3 {
  margin: 0;
  overflow: hidden;
  color: #61736a;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.main-dashboard-module-card strong {
  flex: 0 0 auto;
  color: #1d573b;
  font-size: 18px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-module-card p {
  margin: 5px 0 0;
  color: #89958e;
  font-size: 9px;
  line-height: 1.45;
}
.main-dashboard-module-card.is-unavailable {
  background: #f7f8f7;
}
.main-dashboard-module-card.is-unavailable strong { color: #9aa49e; }

.main-dashboard-shortcuts-panel { margin-bottom: 4px; }
.main-dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 18px;
}
.main-dashboard-shortcuts button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid #e0ebe4;
  border-radius: 9px;
  background: #fbfdfb;
  color: #315842;
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  font-weight: 750;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.main-dashboard-shortcuts button:hover {
  border-color: #9dcdb1;
  background: #f1faf4;
  transform: translateY(-1px);
}
.main-dashboard-shortcuts button > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}
.main-dashboard-shortcut-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e8f5ed;
  color: #168153;
  font-size: 9px;
  font-weight: 850;
}
.main-dashboard-loading,
.main-dashboard-empty {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 18px;
  color: #87958c;
  font-size: 11px;
  text-align: center;
}
.main-dashboard-loading { min-height: 120px; }
.main-dashboard-module[aria-busy="true"] .main-dashboard-header-actions button {
  opacity: .72;
}
.main-dashboard-header-actions button:disabled {
  cursor: wait;
}
body.dashboard-mode #appContainer {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
@media (min-width: 1440px) {
  .main-dashboard-module { padding: 26px 30px 32px; }
  .main-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .main-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-dashboard-primary-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); }
  .main-dashboard-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .main-dashboard-module { padding: 14px 12px 24px; }
  .main-dashboard-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
  }
  .main-dashboard-header-actions {
    justify-content: space-between;
  }
  .main-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .main-dashboard-metric-card {
    min-height: 94px;
    gap: 9px;
    padding: 11px;
  }
  .main-dashboard-metric-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 9px;
  }
  .main-dashboard-metric-copy strong { font-size: 22px; }
  .main-dashboard-metric-label { font-size: 10px; }
  .main-dashboard-primary-grid,
  .main-dashboard-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 11px;
  }
  .main-dashboard-panel-head { padding: 14px 14px 10px; }
  .main-dashboard-trend { min-height: 220px; padding: 2px 7px 12px; }
  .main-dashboard-status-list { padding: 7px 14px 15px; }
  .main-dashboard-activity-list { padding: 0 14px 12px; }
  .main-dashboard-module-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 13px;
  }
  .main-dashboard-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 13px;
  }
}
@media (max-width: 430px) {
  .main-dashboard-module { padding: 12px 9px 20px; }
  .main-dashboard-metric-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: 105px;
  }
  .main-dashboard-metric-copy strong { font-size: 21px; }
  .main-dashboard-updated { font-size: 9px; }
  .main-dashboard-header-actions button { min-height: 36px; }
  .main-dashboard-module-list { grid-template-columns: minmax(0, 1fr); }
  .main-dashboard-shortcuts { grid-template-columns: minmax(0, 1fr); }
  .main-dashboard-activity-row { gap: 8px; }
  .main-dashboard-badge { font-size: 8px; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .main-dashboard-shortcuts button,
  .main-dashboard-status-track i { transition: none !important; }
}
@media print {
  .main-dashboard-header-actions,
  .main-dashboard-shortcuts-panel { display: none !important; }
}


/* GKEB V32.1 HOTFIX: dashboard visibility and signed-in user identity. */
body.dashboard-mode #appContainer:not([hidden]) {
  display: block !important;
  height: auto !important;
  min-height: calc(100vh - 112px) !important;
  max-height: none !important;
  overflow: visible !important;
}
body.dashboard-mode #mainDashboardModule:not([hidden]) {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
.main-dashboard-header-actions {
  align-items: center;
}
.main-dashboard-user-greeting {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 240px;
  padding: 5px 11px 5px 6px;
  border: 1px solid #dce9e1;
  border-radius: 999px;
  background: #fff;
}
.main-dashboard-greeting-avatar,
.main-dashboard-greeting-initials {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid #d9eee2;
  border-radius: 50%;
  box-sizing: border-box;
}
.main-dashboard-greeting-avatar {
  object-fit: cover;
  object-position: center;
  background: #edf5f0;
}
.main-dashboard-greeting-initials {
  display: grid;
  place-items: center;
  background: #e7f4ec;
  color: #16764a;
  font-size: 12px;
  font-weight: 850;
}
.main-dashboard-greeting-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.main-dashboard-greeting-copy small {
  color: #819087;
  font-size: 9px;
  line-height: 1.2;
}
.main-dashboard-greeting-copy strong {
  max-width: 165px;
  overflow: hidden;
  color: #244a36;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-dashboard-header-actions > .main-dashboard-updated {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .main-dashboard-header-actions {
    justify-content: flex-start;
    align-items: center;
  }
  .main-dashboard-user-greeting {
    max-width: min(100%, 220px);
  }
  .main-dashboard-header-actions > .main-dashboard-updated {
    flex: 1 1 100%;
    order: 3;
  }
}

.main-dashboard-greeting-avatar[hidden],
.main-dashboard-greeting-initials[hidden],
.module-subheader .header-account-toggle .account-avatar-photo[hidden] {
  display: none !important;
}


/* GKEB V32.2: dashboard greeting and Inventory Gudang tile treatment. */
.main-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.main-dashboard-user-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: min(100%, 460px);
  min-height: 58px;
  padding: 8px 16px 8px 9px;
  border: 1px solid #dce9e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 45, 30, .045);
}
.main-dashboard-greeting-avatar,
.main-dashboard-greeting-initials {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 2px solid #d9eee2;
  border-radius: 50%;
  box-sizing: border-box;
}
.main-dashboard-greeting-avatar {
  object-fit: cover;
  object-position: center;
  background: #edf5f0;
}
.main-dashboard-greeting-initials {
  display: grid;
  place-items: center;
  background: #e7f4ec;
  color: #16764a;
  font-size: 13px;
  font-weight: 850;
}
.main-dashboard-greeting-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.main-dashboard-greeting-copy small {
  color: #557365;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.main-dashboard-greeting-copy strong {
  max-width: min(300px, 60vw);
  overflow: hidden;
  color: #173b2d;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Match the solid, colored KPI tiles used on the Inventaris Gudang page. */
.main-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.main-dashboard-metric-card.inventory-dashboard-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  min-width: 0;
  min-height: 125px;
  gap: 0;
  padding: 16px 14px 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: var(--c);
  color: #fff;
  cursor: default;
  text-align: left;
  box-shadow: 0 3px 12px rgba(12, 47, 29, .08);
  transition: none;
}
.main-dashboard-metric-card.inventory-dashboard-tile:hover {
  transform: none;
}
.main-dashboard-metric-card .inventory-dashboard-number {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 31px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-metric-card .inventory-dashboard-label {
  position: relative;
  z-index: 1;
  max-width: 85%;
  margin: 11px 0 12px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}
.main-dashboard-metric-card .inventory-dashboard-symbol {
  position: absolute;
  top: 13px;
  right: 14px;
  color: #143828;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  opacity: .18;
  pointer-events: none;
}
.main-dashboard-metric-card .inventory-dashboard-foot {
  display: block;
  margin: auto -14px 0;
  padding: 8px;
  background: rgba(0, 0, 0, .12);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}
.main-dashboard-greeting-avatar[hidden],
.main-dashboard-greeting-initials[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .main-dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .main-dashboard-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .main-dashboard-user-greeting {
    max-width: 100%;
    min-height: 54px;
  }
  .main-dashboard-greeting-copy strong {
    max-width: min(230px, 58vw);
    font-size: 13px;
  }
  .main-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .main-dashboard-metric-card.inventory-dashboard-tile {
    min-height: 120px;
    padding: 14px 11px 0;
  }
  .main-dashboard-metric-card .inventory-dashboard-number {
    font-size: 27px;
  }
  .main-dashboard-metric-card .inventory-dashboard-label {
    font-size: 10.5px;
    max-width: 90%;
  }
  .main-dashboard-metric-card .inventory-dashboard-foot {
    margin-right: -11px;
    margin-left: -11px;
    padding: 7px 5px;
  }
}
@media (max-width: 430px) {
  .main-dashboard-module {
    padding: 12px 9px 20px;
  }
  .main-dashboard-metric-card.inventory-dashboard-tile {
    min-height: 116px;
  }
  .main-dashboard-metric-card .inventory-dashboard-number {
    font-size: 24px;
  }
  .main-dashboard-metric-card .inventory-dashboard-symbol {
    font-size: 44px;
  }
}
@media print {
  .main-dashboard-header {
    display: none !important;
  }
}


/* ===== GKEB V33 dashboard redesign ===== */
.main-dashboard-module {
  padding: 20px 22px 28px;
  background: #f3f6fb;
}
.main-dashboard-module[hidden] { display:none !important; }
.main-dashboard-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  background: linear-gradient(135deg, #153a5b 0%, #214b72 45%, #2e5f8f 100%);
  box-shadow: 0 18px 40px rgba(18,43,72,.14);
  margin-bottom: 18px;
}
.main-dashboard-user-greeting {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.main-dashboard-greeting-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.main-dashboard-greeting-copy small {
  color: rgba(232, 243, 255, .82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.main-dashboard-greeting-copy strong {
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.18;
}
.main-dashboard-greeting-copy em {
  margin: 0;
  color: rgba(227, 237, 249, .92);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  max-width: 680px;
}
.main-dashboard-hero-badges {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.main-dashboard-info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  backdrop-filter: blur(2px);
}
.main-dashboard-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #f5d79d;
  border-radius: 12px;
  background: #fff7e2;
  color: #8a6622;
  font-size: 12px;
  font-weight: 600;
}
.main-dashboard-alert[hidden] { display:none !important; }
.main-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.main-dashboard-metric-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 16px 16px 14px;
  border: 1px solid #d9e3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18,43,72,.06);
}
.main-dashboard-metric-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: var(--accent, #2c7be5);
}
.main-dashboard-metric-card.is-green { --accent:#1fa36a; }
.main-dashboard-metric-card.is-amber { --accent:#f4a52c; }
.main-dashboard-metric-card.is-blue { --accent:#3d7ff5; }
.main-dashboard-metric-card.is-teal { --accent:#11a4a1; }
.main-dashboard-metric-card.is-red { --accent:#ea5a5a; }
.main-dashboard-metric-card.is-violet { --accent:#8a63d2; }
.main-dashboard-metric-card.is-slate { --accent:#5a6d85; }
.main-dashboard-metric-card.is-forest { --accent:#30795f; }
.main-dashboard-metric-card.is-cyan { --accent:#1698c5; }
.main-dashboard-metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.main-dashboard-metric-value {
  color: #15324d;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.main-dashboard-metric-symbol {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #2c7be5) 14%, white);
  color: var(--accent, #2c7be5);
  font-size: 11px;
  font-weight: 900;
}
.main-dashboard-metric-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.main-dashboard-metric-label {
  color: #24394b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.main-dashboard-metric-copy small {
  color: #6b7b89;
  font-size: 11px;
  line-height: 1.45;
}
.main-dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr);
  gap: 18px;
  align-items: start;
}
.main-dashboard-main-column,
.main-dashboard-side-column {
  display: grid;
  gap: 18px;
}
.main-dashboard-panel {
  border: 1px solid #d9e3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18,43,72,.06);
  overflow: hidden;
}
.main-dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #edf2f8;
}
.main-dashboard-panel-kicker {
  display: inline-block;
  margin-bottom: 5px;
  color: #476788;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.main-dashboard-panel-head h2 {
  margin: 0;
  color: #17324d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.main-dashboard-panel-head p {
  margin: 6px 0 0;
  color: #6d7b88;
  font-size: 12px;
  line-height: 1.5;
}
.main-dashboard-trend {
  min-height: 340px;
  padding: 8px 14px 18px;
}
.main-dashboard-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}
.main-dashboard-grid-line {
  stroke: #dce5ef;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}
.main-dashboard-series-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-dashboard-axis-label {
  fill: #6d7b88;
  font-size: 11px;
  font-weight: 700;
}
.main-dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 6px 0;
}
.main-dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #41596f;
  font-size: 12px;
  font-weight: 700;
}
.main-dashboard-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.main-dashboard-status-list { padding: 2px 18px 18px; }
.main-dashboard-status-group { padding: 14px 0 10px; border-bottom: 1px solid #eef3f8; }
.main-dashboard-status-group:last-child { border-bottom: 0; padding-bottom: 0; }
.main-dashboard-status-group h3 {
  margin: 0 0 12px;
  color: #193452;
  font-size: 13px;
  font-weight: 800;
}
.main-dashboard-status-row { display: grid; gap: 8px; margin-bottom: 10px; }
.main-dashboard-status-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #4b6075;
  font-size: 12px;
  font-weight: 700;
}
.main-dashboard-status-copy strong { color: #18324d; font-size: 12px; font-weight: 800; }
.main-dashboard-status-track {
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}
.main-dashboard-status-track i { display: block; height: 100%; border-radius: inherit; }
.main-dashboard-status-track .tone-amber { background: #f1aa2d; }
.main-dashboard-status-track .tone-green { background: #1ea36a; }
.main-dashboard-status-track .tone-blue { background: #3d7ff5; }
.main-dashboard-status-track .tone-red { background: #ea5a5a; }
.main-dashboard-status-track .tone-violet { background: #8a63d2; }
.main-dashboard-activity-list { padding: 0 18px 16px; }
.main-dashboard-activity-table-head,
.main-dashboard-activity-row {
  display: grid;
  grid-template-columns: 115px 160px minmax(0,1fr) 118px;
  gap: 12px;
  align-items: center;
}
.main-dashboard-activity-table-head {
  padding: 12px 0 10px;
  border-bottom: 1px solid #edf2f8;
  color: #6c7b89;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.main-dashboard-activity-table-body { display: grid; }
.main-dashboard-activity-row {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}
.main-dashboard-activity-row:last-child { border-bottom: 0; }
.main-dashboard-activity-date { color: #1a3450; font-size: 12px; font-weight: 700; }
.main-dashboard-activity-module {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #35526d;
  font-size: 12px;
  font-weight: 700;
}
.main-dashboard-activity-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1fa36a;
}
.main-dashboard-activity-mark.equipment { background:#3d7ff5; }
.main-dashboard-activity-mark.inventory { background:#ff9b32; }
.main-dashboard-activity-main { min-width: 0; display: grid; gap: 3px; }
.main-dashboard-activity-main strong { color: #1a3450; font-size: 13px; font-weight: 700; }
.main-dashboard-activity-main small { color: #6d7b88; font-size: 11px; }
.main-dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.main-dashboard-badge.success { background:#e8f7ef; color:#1a8f5d; }
.main-dashboard-badge.info { background:#e9f2ff; color:#326ed6; }
.main-dashboard-badge.warning { background:#fff3df; color:#c07d09; }
.main-dashboard-badge.danger { background:#fdeceb; color:#ce4a4a; }
.main-dashboard-badge.muted { background:#f0f3f6; color:#6a7783; }
.main-dashboard-leave-wrap { padding: 14px 18px 18px; }
.main-dashboard-leave-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.main-dashboard-leave-stat {
  min-height: 88px;
  padding: 12px 12px 10px;
  border: 1px solid #e5ecf4;
  border-radius: 14px;
  background: #f7faff;
  display: grid;
  gap: 4px;
}
.main-dashboard-leave-stat.is-balance {
  background: linear-gradient(145deg, #eef7ff 0%, #f9fdff 100%);
  border-color: #d3e6fb;
}
.main-dashboard-leave-stat span { color:#54718a; font-size:11px; font-weight:700; line-height:1.45; }
.main-dashboard-leave-stat strong { color:#163450; font-size:28px; font-weight:800; line-height:1; }
.main-dashboard-leave-stat small { color:#7a8996; font-size:11px; }
.main-dashboard-leave-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.main-dashboard-leave-meta > div {
  padding: 10px 12px;
  border: 1px solid #edf2f8;
  border-radius: 12px;
  background: #fbfdff;
}
.main-dashboard-leave-meta span { display:block; color:#6e7d8c; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; margin-bottom:4px; }
.main-dashboard-leave-meta strong { color:#193553; font-size:12px; font-weight:700; }
.main-dashboard-leave-table-head,
.main-dashboard-leave-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 56px 110px;
  gap: 10px;
  align-items: center;
}
.main-dashboard-leave-table-head {
  padding: 10px 0 8px;
  border-bottom: 1px solid #edf2f8;
  color: #6e7d8c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.main-dashboard-leave-table-body { display:grid; }
.main-dashboard-leave-row {
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
  color:#2d465f;
  font-size:12px;
}
.main-dashboard-leave-row:last-child { border-bottom:0; }
.main-dashboard-leave-row small { color:#6d7b88; }
.main-dashboard-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 14px 18px 18px;
}
.main-dashboard-module-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #f9fbfd;
  display: grid;
  gap: 8px;
}
.main-dashboard-module-card > div {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.main-dashboard-module-card h3 { margin:0; color:#1d3753; font-size:13px; font-weight:700; line-height:1.4; }
.main-dashboard-module-card strong { color:#15324d; font-size:24px; font-weight:800; line-height:1; }
.main-dashboard-module-card p { margin:0; color:#6d7b88; font-size:11px; line-height:1.5; }
.main-dashboard-module-card.is-unavailable { opacity:.72; }
.main-dashboard-loading,
.main-dashboard-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: #6e7d8b;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.main-dashboard-empty.is-inline { min-height: 64px; padding: 12px; border:1px dashed #d9e3ef; border-radius:12px; background:#fbfdff; }
@media (max-width: 1300px) {
  .main-dashboard-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .main-dashboard-workspace { grid-template-columns: minmax(0, 1.25fr) minmax(300px,.95fr); }
}
@media (max-width: 1100px) {
  .main-dashboard-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .main-dashboard-workspace { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) {
  .main-dashboard-module { padding: 14px 12px 22px; }
  .main-dashboard-hero { flex-direction: column; padding: 18px 16px; border-radius: 16px; }
  .main-dashboard-greeting-copy strong { font-size: 24px; }
  .main-dashboard-hero-badges { justify-content: flex-start; }
  .main-dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .main-dashboard-activity-table-head { display:none; }
  .main-dashboard-activity-row {
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
    padding: 12px 0;
  }
  .main-dashboard-leave-cards,
  .main-dashboard-leave-meta,
  .main-dashboard-module-list { grid-template-columns: minmax(0,1fr); }
  .main-dashboard-leave-table-head { display:none; }
  .main-dashboard-leave-row { grid-template-columns: minmax(0,1fr); gap:6px; }
}
@media (max-width: 520px) {
  .main-dashboard-metrics { grid-template-columns: minmax(0,1fr); }
  .main-dashboard-panel-head { padding: 14px 14px 10px; }
  .main-dashboard-trend { padding: 8px 8px 14px; min-height: 255px; }
  .main-dashboard-activity-list,
  .main-dashboard-leave-wrap,
  .main-dashboard-module-list,
  .main-dashboard-status-list { padding-left: 14px; padding-right: 14px; }
  .main-dashboard-greeting-copy strong { font-size: 22px; }
  .main-dashboard-greeting-copy em { font-size: 12px; }
}
@media print {
  .main-dashboard-hero-badges,
  .main-dashboard-alert { display:none !important; }
}


/* ===== GKEB V34: greeting header correction ===== */
.main-dashboard-hero {
  min-height: 148px;
  align-items: center;
}
.main-dashboard-user-greeting {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.main-dashboard-greeting-copy {
  width: 100%;
  gap: 8px;
}
.main-dashboard-greeting-copy small {
  color: #c7def5 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.main-dashboard-greeting-copy strong {
  display: block;
  max-width: 100% !important;
  overflow: visible !important;
  color: #ffffff !important;
  font-size: clamp(25px, 2.5vw, 35px) !important;
  font-weight: 850;
  line-height: 1.18;
  text-overflow: clip !important;
  white-space: normal !important;
}
.main-dashboard-greeting-copy strong span,
.main-dashboard-greeting-copy strong #mainDashboardGreetingName {
  color: #ffffff !important;
}
.main-dashboard-greeting-copy em {
  color: rgba(238, 246, 255, .92) !important;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.55;
}
.main-dashboard-hero-badges {
  align-items: center;
  flex: 0 0 auto;
}
@media (max-width: 820px) {
  .main-dashboard-hero {
    min-height: 0;
    align-items: flex-start;
  }
  .main-dashboard-user-greeting {
    width: 100% !important;
  }
  .main-dashboard-hero-badges {
    align-items: flex-start;
  }
}


/* ===== GKEB V35: align dashboard with the existing IMIP sidebar theme ===== */
.main-dashboard-module {
  --imip-deep: #06573d;
  --imip-teal: #034c53;
  --imip-navy: #0b324c;
  --imip-green: #16834a;
  --imip-mid-teal: #087f78;
  --imip-blue: #2e6b9a;
  color: #173b2d;
  background: #f1f6f3;
}
.main-dashboard-hero {
  min-height: 132px;
  align-items: center;
  padding: 22px 26px;
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(169deg, #06573d 0%, #034c53 49%, #0b324c 100%);
  box-shadow: 0 14px 32px rgba(3, 50, 48, .16);
}
.main-dashboard-greeting-copy small {
  color: #b8e8ce !important;
}
.main-dashboard-greeting-copy strong,
.main-dashboard-greeting-copy strong span,
.main-dashboard-greeting-copy strong #mainDashboardGreetingName {
  color: #fff !important;
}
.main-dashboard-greeting-copy em {
  color: rgba(235, 248, 241, .9) !important;
}
.main-dashboard-hero-badges { display: none !important; }
.main-dashboard-metric-card {
  border-color: #dce9e1;
  box-shadow: 0 7px 18px rgba(5, 65, 45, .055);
}
.main-dashboard-metric-card.is-green { --accent: #16834a; }
.main-dashboard-metric-card.is-amber { --accent: #bd8a31; }
.main-dashboard-metric-card.is-blue { --accent: #2e6b9a; }
.main-dashboard-metric-card.is-teal { --accent: #087f78; }
.main-dashboard-metric-card.is-red { --accent: #c45c50; }
.main-dashboard-metric-card.is-violet { --accent: #7064a5; }
.main-dashboard-metric-card.is-slate { --accent: #587482; }
.main-dashboard-metric-card.is-forest { --accent: #0b704d; }
.main-dashboard-metric-card.is-cyan { --accent: #168b91; }
.main-dashboard-metric-value { color: #173b2d; }
.main-dashboard-metric-label { color: #315846; }
.main-dashboard-metric-copy small { color: #73877b; }
.main-dashboard-panel {
  border-color: #dce8e1;
  box-shadow: 0 7px 20px rgba(5, 65, 45, .055);
}
.main-dashboard-panel-head { border-bottom-color: #e8f0eb; }
.main-dashboard-panel-kicker { color: #16834a; }
.main-dashboard-panel-head h2 { color: #173b2d; }
.main-dashboard-panel-head p { color: #718278; }
.main-dashboard-grid-line { stroke: #e1ece5; }
.main-dashboard-axis-label { fill: #718278; }
.main-dashboard-chart-legend span { color: #426653; }
.main-dashboard-activity-table-head { border-bottom-color: #e8f0eb; color: #718278; }
.main-dashboard-activity-date,
.main-dashboard-activity-main strong { color: #214b37; }
.main-dashboard-activity-module { color: #426653; }
.main-dashboard-badge.success { background: #e8f5ed; color: #147447; }
.main-dashboard-badge.info { background: #e8f2f8; color: #285f82; }
.main-dashboard-badge.warning { background: #fff5e3; color: #93661f; }
.main-dashboard-leave-stat {
  border-color: #e0ebe4;
  background: #f8fcf9;
}
.main-dashboard-leave-stat.is-balance {
  border-color: #d4e9dc;
  background: linear-gradient(145deg, #eaf6ee 0%, #f9fdfb 100%);
}
.main-dashboard-leave-stat span { color: #557365; }
.main-dashboard-leave-stat strong { color: #0b6034; }
.main-dashboard-leave-meta > div {
  border-color: #e7efe9;
  background: #fbfdfb;
}
.main-dashboard-leave-meta span { color: #718278; }
.main-dashboard-leave-meta strong { color: #244a36; }
.main-dashboard-leave-row { color: #315846; border-bottom-color: #e8f0eb; }
.main-dashboard-module-card {
  border-color: #e0ebe4;
  background: linear-gradient(145deg, #fff 0%, #f8fcf9 100%);
}
.main-dashboard-module-card h3 { color: #557365; }
.main-dashboard-module-card strong { color: #0b6034; }
.main-dashboard-module-card p { color: #7b8c82; }
.main-dashboard-empty { color: #718278; }
.main-dashboard-empty.is-inline {
  border-color: #dce8e1;
  background: #f8fcf9;
}

/* Current status is displayed as a set of compact, readable line charts. */
.main-dashboard-status-list { padding: 12px 14px 16px; }
.main-dashboard-status-charts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
}
.main-dashboard-status-chart {
  min-width: 0;
  padding: 11px 10px 6px;
  border: 1px solid #e0ebe4;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f8fcf9 100%);
}
.main-dashboard-status-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px 2px;
}
.main-dashboard-status-chart-head h3 {
  margin: 0;
  color: #244a36;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.main-dashboard-status-chart-head span {
  flex: 0 0 auto;
  color: #829187;
  font-size: 9px;
  font-weight: 650;
}
.main-dashboard-status-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.main-dashboard-status-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-dashboard-status-value-label {
  fill: #244a36;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-status-axis-label {
  fill: #718278;
  font-size: 9px;
  font-weight: 650;
}
@media (max-width: 820px) {
  .main-dashboard-hero { min-height: 0; padding: 20px 18px; }
  .main-dashboard-status-list { padding: 10px 12px 14px; }
}
@media (max-width: 520px) {
  .main-dashboard-hero { padding: 18px 15px; }
  .main-dashboard-status-chart { padding: 9px 7px 4px; }
  .main-dashboard-status-chart-head h3 { font-size: 10px; }
}


/* ===== GKEB V36: annual employee attendance trend ===== */
.main-dashboard-attendance-chart {
  width: 100%;
  min-width: 0;
  padding: 2px 8px 0;
}
.main-dashboard-attendance-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
  overflow: visible;
}
.main-dashboard-attendance-y-label {
  fill: #718278;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-attendance-series-line {
  fill: none;
  stroke: #159b70;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-dashboard-attendance-marker {
  fill: #fff;
  stroke: #159b70;
  stroke-width: 3;
}
.main-dashboard-attendance-value-label {
  fill: #176c4b;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.main-dashboard-axis-label.is-muted { opacity: .38; }
.main-dashboard-attendance-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  padding: 2px 15px 14px;
  color: #61766a;
  font-size: 10px;
  line-height: 1.5;
}
.main-dashboard-attendance-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 750;
}
.main-dashboard-attendance-legend > span i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #159b70;
}
.main-dashboard-attendance-current-note,
.main-dashboard-attendance-formula-note {
  color: #718278;
  font-size: 10px;
}

/* Keep the report-month caption fully visible beside its month picker. */
body.employee-mode #employeeModule #employeeDashboardView .emp-att-panel-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px 18px !important;
  min-width: 0;
}
body.employee-mode #employeeModule #employeeDashboardView .emp-att-panel-toolbar h4 {
  min-width: 0;
  margin: 0 !important;
  line-height: 1.4;
}
body.employee-mode #employeeModule #employeeDashboardView .emp-att-panel-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  margin-left: 0 !important;
}
body.employee-mode #employeeModule #employeeDashboardView .emp-att-inline-control {
  display: grid !important;
  grid-template-columns: max-content minmax(165px, 190px) !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap;
}
body.employee-mode #employeeModule #employeeDashboardView .emp-att-inline-control span {
  display: block;
  min-width: max-content !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
body.employee-mode #employeeModule #employeeDashboardView .emp-att-inline-control input[type="month"] {
  display: block;
  width: 190px !important;
  min-width: 165px !important;
  max-width: 100%;
  flex: 0 0 190px !important;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  body.employee-mode #employeeModule #employeeDashboardView .emp-att-panel-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }
  body.employee-mode #employeeModule #employeeDashboardView .emp-att-panel-controls {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  body.employee-mode #employeeModule #employeeDashboardView .emp-att-inline-control {
    grid-template-columns: max-content minmax(0, 1fr) !important;
    width: 100% !important;
  }
  body.employee-mode #employeeModule #employeeDashboardView .emp-att-inline-control input[type="month"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 220px;
    flex: 1 1 auto !important;
  }
  .main-dashboard-attendance-chart-svg { min-height: 195px; }
  .main-dashboard-attendance-value-label { font-size: 10px; }
  .main-dashboard-attendance-legend { padding-left: 8px; padding-right: 8px; }
}
