/* Final UI overrides loaded after the main stylesheet. */
.dashboard-maker-tag {
  display: block;
  margin-top: 5px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.staff-modern-dashboard {
  margin-bottom: 14px;
}

.staff-modern-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.staff-modern-performance-wrap {
  margin-top: 0;
}

.staff-performance-panel,
.staff-performance-section,
.staff-performance-table-wrap,
.transactions-module .expense-card,
.transactions-module .transaction-card,
.transactions-module .chart-card,
.transactions-module .cash-balance-card,
.transactions-module .transaction-register-card,
.transactions-module .search-report-card,
.transaction-workspace .expense-card,
.transaction-workspace .transaction-card,
.transaction-workspace .chart-card,
.transaction-workspace .cash-balance-card {
  border: 1px solid #d7e3f1;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.staff-performance-panel:hover,
.staff-performance-section:hover,
.transactions-module .expense-card:hover,
.transactions-module .transaction-card:hover,
.transactions-module .chart-card:hover,
.transactions-module .cash-balance-card:hover,
.transactions-module .transaction-register-card:hover,
.transactions-module .search-report-card:hover,
.transaction-workspace .expense-card:hover,
.transaction-workspace .transaction-card:hover,
.transaction-workspace .chart-card:hover,
.transaction-workspace .cash-balance-card:hover {
  transform: translateY(-2px);
  border-color: #b8cce3;
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.10);
}

.team-chat-panel {
  width: min(1180px, calc(100vw - 28px));
  max-width: 1180px;
}

.modern-chat-body {
  grid-template-columns: minmax(330px, 380px) minmax(0, 1fr);
}

.chat-user-name {
  color: #0b1220;
  font-size: 15px;
  font-weight: 950;
}

.chat-avatar {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.chat-composer-line textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  overflow-y: auto;
}

.notification-actions {
  justify-content: flex-end;
}

.notification-panel .notification-drawer-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px 20px 20px;
  overflow: hidden;
}

.notification-panel .notification-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: visible;
  background: linear-gradient(180deg, #f8fbff 0%, rgba(248, 251, 255, 0.94) 100%);
  scrollbar-width: thin;
}

.notification-panel .notification-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  white-space: nowrap;
}

.notification-panel .notification-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 0 12px;
}

.notification-read-button {
  min-width: 58px;
}

.notification-read-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.correction-required-table .correction-reason-cell {
  min-width: 240px;
  max-width: 360px;
  white-space: normal;
  color: #7f1d1d;
  font-weight: 800;
}

.staff-report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.staff-report-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.staff-report-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.staff-report-clear {
  border: 1px solid #cbd5e1;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
}

.staff-report-excel {
  border: 1px solid #86efac;
  background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 100%);
  color: #047857;
}

.staff-report-pdf {
  border: 1px solid #fecaca;
  background: linear-gradient(145deg, #fef2f2 0%, #ffffff 100%);
  color: #b91c1c;
}

.staff-report-print {
  border: 1px solid #bfdbfe;
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 100%);
  color: #1d4ed8;
}

.staff-report-clear:hover:not(:disabled) { border-color: #94a3b8; }
.staff-report-excel:hover:not(:disabled) { border-color: #22c55e; }
.staff-report-pdf:hover:not(:disabled) { border-color: #ef4444; }
.staff-report-print:hover:not(:disabled) { border-color: #2563eb; }

@media (max-width: 980px) {
  .staff-modern-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 680px) {
  .staff-modern-dashboard .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .notification-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
