:root {
  --wine: #4f0013;
  --wine-dark: #34000b;
  --red: #BD1B10;
  --red-soft: #fff0ee;
  --bg: #f7f4f3;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --border: rgba(79, 0, 19, 0.10);
  --text: #1e1719;
  --muted: #7b6d70;
  --soft: #fbf7f6;
  --green: #247548;
  --green-soft: #e7f5ec;
  --orange-soft: #fff4df;
  --danger: #b3261e;
  --danger-soft: #fff0ee;
  --shadow: 0 24px 60px rgba(79, 0, 19, 0.10);
  --shadow-soft: 0 10px 28px rgba(79, 0, 19, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(189, 27, 16, 0.13), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(79, 0, 19, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
}

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 27, 16, 0.10);
}
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 800; }
.field { margin-bottom: 14px; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  overflow: hidden;
}
.login-brand-panel {
  position: relative;
  padding: 72px;
  background:
    linear-gradient(135deg, rgba(79,0,19,0.96), rgba(52,0,11,0.98)),
    radial-gradient(circle at 70% 30%, rgba(189,27,16,0.6), transparent 38%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.login-brand-panel:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -110px;
  background: rgba(189,27,16,0.22);
  transform: rotate(45deg);
  border-radius: 80px;
  z-index: -1;
}
.login-logo { width: min(440px, 72%); max-height: 220px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25)); }
.login-brand-panel h1 { margin: 32px 0 0; font-size: 48px; letter-spacing: -1px; }
.login-card-wrap { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card {
  width: 100%; max-width: 430px; padding: 34px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.login-card-logo {
  width: 125px;
  display: block;
  margin: 0 auto 22px;
  transform: none;
}
.login-card h2 { margin: 0 0 22px; color: var(--wine); font-size: 32px; }

.primary-btn, .primary-small {
  border: 0;
  background: linear-gradient(135deg, var(--wine), var(--red));
  color: #fff;
  border-radius: 15px;
  padding: 13px 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(189,27,16,0.22);
}
.primary-btn { width: 100%; }
.primary-small { padding: 11px 15px; }
.secondary-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--wine);
  border-radius: 14px;
  padding: 10px 13px;
  font-weight: 900;
}
.danger-btn, .icon-danger {
  border: 1px solid rgba(179, 38, 30, 0.16);
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 13px;
  padding: 9px 12px;
  font-weight: 900;
}
.icon-danger { font-size: 12px; }

.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 292px;
  background:
    linear-gradient(180deg, var(--wine-dark), var(--wine));
  color: #fff;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 16px 0 44px rgba(79,0,19,0.16);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 10px 26px; }
.brand-logo {
  width: 56px; height: 56px; object-fit: contain;
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 7px;
}
.brand h3 { margin: 0; font-size: 18px; line-height: 1.1; }
.brand span { opacity: 0.72; font-size: 12px; }
.nav { display: grid; gap: 8px; }
.nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  padding: 13px 14px;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.18s ease;
}
.nav button:hover, .nav button.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateX(3px);
}
.sidebar-footer { position: absolute; left: 16px; right: 16px; bottom: 18px; }
.user-box { padding: 14px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; }
.user-box strong { display: block; margin-bottom: 3px; }
.user-box small { opacity: 0.75; word-break: break-all; }
.logout { margin-top: 12px; width: 100%; background: #fff; color: var(--wine); border: 0; border-radius: 14px; padding: 11px; font-weight: 900; }

.main { flex: 1; padding: 30px; overflow: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topbar h1 { margin: 0; color: var(--wine); letter-spacing: -0.4px; }
.role-badge { padding: 9px 14px; background: #fff; color: var(--wine); border: 1px solid var(--border); border-radius: 999px; font-weight: 900; box-shadow: var(--shadow-soft); }

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

.card, .workspace-card, .hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.card { padding: 18px; }
.workspace-card { padding: 22px; }
.hero-card {
  padding: 26px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff, #fff5f3);
}
.hero-card h2 { margin: 4px 0 0; font-size: 34px; color: var(--wine); }
.eyebrow { color: var(--red); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-chip { padding: 12px 16px; border-radius: 999px; background: var(--wine); color: #fff; font-weight: 900; }

.kpi { min-height: 128px; position: relative; overflow: hidden; }
.kpi:after { content: ""; position: absolute; right: -26px; top: -26px; width: 86px; height: 86px; background: rgba(189,27,16,0.10); border-radius: 26px; transform: rotate(45deg); }
.kpi .title { color: var(--muted); font-weight: 900; font-size: 13px; }
.kpi .value { font-size: 30px; font-weight: 950; margin: 14px 0 7px; color: var(--wine); letter-spacing: -0.5px; }
.kpi .sub { color: var(--muted); font-size: 13px; min-height: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2, .workspace-card h2 { margin: 0; color: var(--wine); }

.entity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.employee-grid, .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reports-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entity-card, .finance-card, .report-card, .score-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(79,0,19,0.06);
}
.entity-head, .finance-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.entity-head strong, .finance-card-head strong { color: var(--wine); display: block; }
.entity-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.compact.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.compact.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field.wide { grid-column: span 2; }

.toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .field { margin-bottom: 0; min-width: 180px; }
.soft-toolbar { padding: 14px; border-radius: 20px; background: var(--soft); border: 1px solid var(--border); }

.finance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.finance-card-head strong { font-size: 18px; }
.finance-result {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding: 13px;
  border-radius: 16px;
  background: var(--soft);
}
.finance-result span { color: var(--muted); font-weight: 800; font-size: 12px; }
.finance-result strong { color: var(--wine); }
.finance-result.accent { background: var(--red-soft); }

.score-summary { margin-bottom: 16px; }
.score-list { display: grid; gap: 10px; }
.score-card {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  align-items: center;
}
.criterion { font-weight: 900; color: var(--wine); }
.small { color: var(--muted); font-size: 13px; }
.score-input { text-align: center; font-weight: 900; font-size: 16px; }

.report-card { display: grid; gap: 12px; }
.report-card strong { color: var(--wine); }
.report-card span { color: var(--muted); font-size: 12px; }
.report-metrics { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.report-metrics span, .report-metrics strong {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
}
.bonus-amount { color: var(--red); font-size: 24px; font-weight: 950; }

.list-stack { display: grid; gap: 10px; }
.list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.list-item strong { color: var(--wine); display: block; }
.list-item span { color: var(--muted); font-size: 12px; }
.list-item b { color: var(--red); }
.empty-state { padding: 18px; color: var(--muted); background: var(--soft); border-radius: 18px; border: 1px dashed var(--border); }

.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; width: fit-content; }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.no { background: var(--danger-soft); color: var(--danger); }
.status.mid { background: var(--orange-soft); color: #7f6000; }

/* Legacy table support: kept only for fallback; main interface uses cards. */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { background: var(--wine); color: #fff; font-size: 13px; }
tr:nth-child(even) td { background: #fbf7f6; }

@media (max-width: 1200px) {
  .grid-4, .grid-3, .grid-2, .finance-grid, .entity-grid, .reports-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid.compact, .form-grid.compact.three, .form-grid.compact.two { grid-template-columns: 1fr; }
  .field.wide { grid-column: span 1; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .sidebar { width: 250px; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; }
  .sidebar-footer { position: static; margin-top: 20px; }
  .main { padding: 18px; }
  .score-card { grid-template-columns: 1fr; }
}
/*******************************************************
 * TABLE WORKSPACE VIEW
 * Բոլոր էջերը աղյուսակային են, բացի CEO վահանակից
 *******************************************************/
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: #fff;
}

.data-table th {
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  padding: 13px 14px;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.data-table tbody tr:nth-child(even) td {
  background: #fbf7f6;
}

.data-table tbody tr:hover td {
  background: #fff3f0;
}

.data-table tfoot td {
  background: #f6eeee;
  font-weight: 900;
  color: var(--wine);
}

.data-table input,
.data-table select,
.data-table textarea {
  min-width: 120px;
  border-radius: 12px;
  padding: 10px 11px;
}

.comment-input {
  min-height: 42px;
  resize: vertical;
}

.money-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.money-field span {
  color: var(--wine);
  font-weight: 900;
}

.money-input {
  text-align: right;
  font-weight: 900;
  min-width: 150px;
}

.score-input {
  text-align: center;
  font-weight: 900;
  max-width: 110px;
}

.hero-card,
.dashboard-kpis {
  direction: ltr;
}

@media (max-width: 760px) {
  .data-table {
    min-width: 760px;
  }
}
/*******************************************************
 * UI SIZE FIX — smaller professional interface
 *******************************************************/
body {
  font-size: 14px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 15px;
}

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

.hero-card h2 {
  font-size: 24px;
}

.kpi .title {
  font-size: 12px;
}

.kpi .value {
  font-size: 22px;
  margin: 8px 0 4px;
}

.kpi .sub {
  font-size: 12px;
}

.workspace-card {
  padding: 18px;
}

.data-table th {
  font-size: 12px;
  padding: 10px 12px;
}

.data-table td {
  font-size: 13px;
  padding: 9px 12px;
}

input,
select,
textarea,
button {
  font-size: 13px;
}

.data-table input,
.data-table select,
.data-table textarea {
  min-width: 110px;
  padding: 8px 9px;
  border-radius: 10px;
}

.primary-small,
.icon-danger {
  font-size: 12px;
  padding: 8px 11px;
}

.toolbar {
  gap: 10px;
}

.field label {
  font-size: 11px;
}

.score-input {
  font-size: 13px;
}

.comment-input {
  font-size: 13px;
  min-height: 38px;
}

.money-input {
  font-size: 13px;
}

.table-wrap {
  border-radius: 14px;
}

.filter-toolbar {
  margin-bottom: 14px;
}

.filter-toolbar .field {
  min-width: 150px;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
}
/* =========================
   CEO Dashboard KPI blocks
   ========================= */

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.dashboard-kpis-primary,
.dashboard-kpis-secondary {
  width: 100%;
}

.dashboard-kpis .kpi-card,
.dashboard-kpis .stat-card,
.dashboard-kpis .metric-card {
  min-height: 140px;
  width: 100%;
}

.dashboard-kpis .kpi-label,
.dashboard-kpis .stat-label,
.dashboard-kpis .metric-label {
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.dashboard-kpis .kpi-value,
.dashboard-kpis .stat-value,
.dashboard-kpis .metric-value {
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-kpis .kpi-sub,
.dashboard-kpis .stat-sub,
.dashboard-kpis .metric-sub {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}
/* =========================
   CEO Dashboard layout fix
   ========================= */

.dashboard-kpis-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 18px;
}

.dashboard-kpis-row .card.kpi {
  width: 100%;
  min-width: 0;
  min-height: 118px;
}

.dashboard-kpis-row .card.kpi .title {
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
}

.dashboard-kpis-row .card.kpi .value {
  font-size: 22px;
  line-height: 1.2;
}

.dashboard-kpis-row .card.kpi .sub {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.dashboard-tables-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

.dashboard-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.dashboard-table {
  width: 100%;
  table-layout: fixed;
}

.dashboard-table th,
.dashboard-table td {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard-table th {
  font-size: 12px;
}

@media (max-width: 1300px) {
  .dashboard-kpis-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*******************************************************
 * FINAL CEO DASHBOARD FIX
 * KPI blocks full width + dashboard tables without horizontal scroll
 *******************************************************/

.main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

#page,
.hero-card,
.workspace-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.dashboard-kpis,
.dashboard-kpis-row,
.dashboard-kpis-primary,
.dashboard-kpis-secondary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
  margin-top: 18px !important;
}

.dashboard-kpis > *,
.dashboard-kpis-row > * {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.dashboard-kpis .card.kpi,
.dashboard-kpis-row .card.kpi,
.dashboard-kpis .kpi,
.dashboard-kpis-row .kpi {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 126px !important;
  box-sizing: border-box !important;
}

.dashboard-kpis .card.kpi .title,
.dashboard-kpis-row .card.kpi .title,
.dashboard-kpis .kpi .title,
.dashboard-kpis-row .kpi .title {
  font-size: 13px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.dashboard-kpis .card.kpi .value,
.dashboard-kpis-row .card.kpi .value,
.dashboard-kpis .kpi .value,
.dashboard-kpis-row .kpi .value {
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 10px 0 5px !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

.dashboard-kpis .card.kpi .sub,
.dashboard-kpis-row .card.kpi .sub,
.dashboard-kpis .kpi .sub,
.dashboard-kpis-row .kpi .sub {
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

.dashboard-tables-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
}

.dashboard-table-wrap {
  width: 100% !important;
  max-width: none !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.dashboard-table-wrap .data-table,
.dashboard-table.data-table,
.dashboard-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.dashboard-table-wrap .data-table th,
.dashboard-table-wrap .data-table td,
.dashboard-table th,
.dashboard-table td {
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  vertical-align: middle !important;
}

.dashboard-table-wrap .data-table th,
.dashboard-table th {
  font-size: 12px !important;
}

@media (max-width: 1300px) {
  .dashboard-kpis,
  .dashboard-kpis-row,
  .dashboard-kpis-primary,
  .dashboard-kpis-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .dashboard-kpis,
  .dashboard-kpis-row,
  .dashboard-kpis-primary,
  .dashboard-kpis-secondary {
    grid-template-columns: 1fr !important;
  }

  .dashboard-table-wrap .data-table,
  .dashboard-table.data-table,
  .dashboard-table {
    min-width: 0 !important;
  }
}
/*******************************************************
 * GENERAL COMMENTS
 *******************************************************/

.general-comment-input {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.comment-view {
  width: 100%;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  line-height: 1.45;
  white-space: pre-wrap;
}

.comment-cell {
  max-width: 320px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
}
/*******************************************************
 * COMMENTS
 *******************************************************/

.general-comment-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.comment-cell {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.comment-preview-btn {
  display: inline-block;
  max-width: 220px;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 800;
  text-align: left;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.comment-preview-btn:hover {
  color: var(--red);
  text-decoration: underline;
}

.comment-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(30, 23, 25, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.comment-popup {
  width: auto;
  min-width: 360px;
  max-width: min(720px, 88vw);
  max-height: 80vh;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(79, 0, 19, 0.28);
  overflow: hidden;
}

.comment-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--wine);
  color: #fff;
}

.comment-popup-head h3 {
  margin: 0;
  font-size: 18px;
}

.comment-popup-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.comment-popup-body {
  padding: 18px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: calc(80vh - 68px);
}
/*******************************************************
 * DASHBOARD COMMENTS — ELLIPSIS
 *******************************************************/

.dashboard-table th:last-child,
.dashboard-table td:last-child {
  width: 220px;
  max-width: 220px;
}

.dashboard-table .comment-cell {
  width: 220px !important;
  max-width: 220px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.dashboard-table .comment-preview-btn,
.dashboard-table .comment-preview {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
/*******************************************************
 * EMPLOYEES SPLIT TABLES
 *******************************************************/

.employees-tables-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.employees-subcard {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.employees-subcard h3 {
  margin: 0;
  padding: 16px 18px 8px;
  color: var(--wine);
  font-size: 18px;
}

.employees-split-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.employees-split-table th,
.employees-split-table td {
  padding: 12px 14px;
  vertical-align: middle;
  white-space: normal;
}

.employees-split-table input,
.employees-split-table select,
.employees-split-table textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.employee-position-textarea {
  min-height: 52px;
  resize: vertical;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.employee-position-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 27, 16, 0.10);
}

.employees-split-table .money-field {
  min-width: 0;
}

/*******************************************************
 * MY SCORES COMMENTS — PREVIEW
 *******************************************************/

.data-table .comment-cell {
  max-width: 240px;
  width: 240px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.comment-preview-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 800;
  text-align: left;
  padding: 0;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer;
}

.comment-preview-btn:hover {
  color: var(--red);
  text-decoration: underline;
}
/*******************************************************
 * EMPLOYEES MAIN DATA — POSITION WIDTH FIX
 *******************************************************/

.employees-subcard:first-child .employees-split-table {
  table-layout: fixed;
}

.employees-subcard:first-child .employees-split-table th:nth-child(1),
.employees-subcard:first-child .employees-split-table td:nth-child(1) {
  width: 13%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(2),
.employees-subcard:first-child .employees-split-table td:nth-child(2) {
  width: 13%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(3),
.employees-subcard:first-child .employees-split-table td:nth-child(3) {
  width: 11%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(4),
.employees-subcard:first-child .employees-split-table td:nth-child(4) {
  width: 24%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(5),
.employees-subcard:first-child .employees-split-table td:nth-child(5) {
  width: 12%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(6),
.employees-subcard:first-child .employees-split-table td:nth-child(6) {
  width: 9%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(7),
.employees-subcard:first-child .employees-split-table td:nth-child(7) {
  width: 10%;
}

.employees-subcard:first-child .employees-split-table th:nth-child(8),
.employees-subcard:first-child .employees-split-table td:nth-child(8) {
  width: 8%;
}

.employees-subcard:first-child .employee-position-textarea {
  min-height: 64px;
}
/*******************************************************
 * PASSWORD FIELD
 *******************************************************/

.password-field {
  position: relative;
  width: 100%;
}

.password-field .password-input {
  width: 100%;
  padding-right: 42px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.password-toggle-btn:hover {
  color: var(--red);
}

.password-toggle-btn svg {
  display: block;
}

/*******************************************************
 * CENTERED LOGIN
 *******************************************************/

.login-page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(79, 0, 19, 0.10), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fff7f6 100%);
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 34px 42px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(79, 0, 19, 0.16);
}

.login-card h1 {
  margin: 0 0 24px;
  color: var(--wine);
  font-size: 34px;
  line-height: 1.1;
}

.login-card h1 {
  margin: 0 0 28px;
  color: var(--wine);
  font-size: 36px;
  line-height: 1.1;
}

.login-card .field {
  margin-bottom: 14px;
}

.login-card .field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.login-card input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.login-card input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 27, 16, 0.10);
}

.login-button {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--wine), var(--red));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(189, 27, 16, 0.24);
}

.remember-login {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.remember-login input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field .password-input {
  width: 100%;
  padding-right: 44px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.password-toggle-btn:hover {
  color: var(--red);
}

.password-toggle-btn svg {
  display: block;
}
/*******************************************************
 * LOGIN ERROR
 *******************************************************/

.login-error {
  min-height: 20px;
  margin: -6px 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.password-input::-ms-reveal,
.password-input::-ms-clear {
  display: none;
}
/*******************************************************
 * READONLY INFO
 *******************************************************/

.readonly-info {
  height: 48px;
  min-width: 180px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--wine);
  font-weight: 900;
}
/*******************************************************
 * MY SCORES KPI CARDS
 *******************************************************/

.my-score-kpis-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 22px;
  margin-bottom: 28px;
}

.my-score-kpis-row .card.kpi {
  min-height: 140px;
  padding: 24px 22px;
  border-radius: 24px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(120, 30, 40, 0.06);
}

.my-score-kpis-row .card.kpi::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -10px;
  width: 96px;
  height: 96px;
  background: rgba(169, 87, 96, 0.12);
  border-radius: 30px;
  transform: rotate(45deg);
}

.my-score-kpis-row .card.kpi .title,
.my-score-kpis-row .card.kpi .value,
.my-score-kpis-row .card.kpi .sub {
  position: relative;
  z-index: 1;
}

.my-score-kpis-row .card.kpi .title {
  font-size: 15px;
  line-height: 1.35;
}

.my-score-kpis-row .card.kpi .value {
  font-size: 28px;
  line-height: 1.15;
}

@media (max-width: 1100px) {
  .my-score-kpis-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/*******************************************************
 * MY SCORES YEARLY TOTAL
 *******************************************************/

.year-total-row {
  background: #fff3f1 !important;
  font-weight: 900;
}

.year-total-row td {
  border-top: 2px solid var(--wine);
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #ead1d1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
}

.icon-btn svg {
  display: block;
}

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

.icon-btn.approve-btn {
  color: #1f9d57;
  border-color: #cfe9d8;
  background: #edf8f1;
}

.icon-btn.approve-btn:hover {
  background: #e3f5ea;
}

.icon-btn.reject-btn {
  color: #d33b3b;
  border-color: #f0c9c9;
  background: #fff1f1;
}

.icon-btn.reject-btn:hover {
  background: #ffe8e8;
}

.icon-btn.delete-btn {
  color: #c93b3b;
  border-color: #efc2c2;
  background: #fff3f3;
}

.icon-btn.delete-btn:hover {
  background: #ffe9e9;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
/*******************************************************
 * VACATIONS
 *******************************************************/

.vacations-tables-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 18px;
}

.vacations-subcard {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.vacations-subcard h3 {
  margin: 0;
  padding: 16px 18px 10px;
  color: var(--wine);
  font-size: 18px;
}

.vacations-table {
  width: 100%;
  min-width: 980px;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #ead1d1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
}

.icon-btn svg {
  display: block;
}

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

.icon-btn.approve-btn {
  color: #1f9d57;
  border-color: #cfe9d8;
  background: #edf8f1;
}

.icon-btn.reject-btn {
  color: #d33b3b;
  border-color: #f0c9c9;
  background: #fff1f1;
}

.icon-btn.delete-btn {
  color: #c93b3b;
  border-color: #efc2c2;
  background: #fff3f3;
}

.icon-btn.edit-btn {
  color: var(--wine);
  border-color: #ead1d1;
  background: #fff7f7;
}

.edit-hint {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
/*******************************************************
 * DASHBOARD
 *******************************************************/

.dashboard-kpis-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 18px;
}

.dashboard-kpis-row .card.kpi {
  width: 100%;
  min-width: 0;
  min-height: 118px;
}

.dashboard-tables-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

.dashboard-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.dashboard-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.dashboard-table th,
.dashboard-table td {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard-table th {
  font-size: 12px;
}

@media (max-width: 1300px) {
  .dashboard-kpis-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .dashboard-kpis-row {
    grid-template-columns: 1fr;
  }
}
/*******************************************************
 * MODERN DASHBOARD
 * Չփոխել sidebar-ը
 *******************************************************/

.dashboard-modern {
  display: grid;
  gap: 18px;
}

.dashboard-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 30, 40, 0.05);
}

.dashboard-filter-bar .field {
  margin: 0;
}

.dashboard-filter-bar label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-weight: 700;
}

.dashboard-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.dashboard-metric-card {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(120, 30, 40, 0.05);
}

.dashboard-metric-card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: rgba(189, 27, 16, 0.08);
  transform: rotate(45deg);
}

.dashboard-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(120, 30, 40, 0.10);
}

.dashboard-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: rgba(189, 27, 16, 0.10);
  display: block;
  margin-bottom: 10px;
}

.dashboard-metric-title {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.dashboard-metric-card strong {
  display: block;
  color: var(--wine);
  font-size: 26px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.dashboard-metric-sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.dashboard-chart-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(120, 30, 40, 0.06);
  overflow: hidden;
}

.dashboard-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.dashboard-chart-tabs,
.dashboard-period-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-chart-tabs button,
.dashboard-period-tabs button {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-chart-tabs button.active,
.dashboard-period-tabs button.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.dashboard-chart-body {
  padding: 16px 18px 12px;
}

.dashboard-chart-svg-wrap {
  width: 100%;
}

.dashboard-chart-svg-wrap svg {
  width: 100%;
  height: 330px;
  display: block;
}

.chart-grid-line {
  stroke: rgba(90, 0, 25, 0.12);
  stroke-width: 1;
}

.chart-axis-text {
  fill: #8d7e7e;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-chart-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-legend-item i {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

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

.dashboard-summary-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(120, 30, 40, 0.05);
}

.dashboard-summary-wide {
  grid-column: 1 / -1;
}

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

.dashboard-summary-head h3 {
  margin: 0;
  color: var(--wine);
  font-size: 18px;
}

.dashboard-summary-head button {
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 900;
  cursor: pointer;
}

.dashboard-mini-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: #fff;
}


.dashboard-mini-table th {
  padding: 10px 8px;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  text-align: left;
}

.dashboard-mini-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
}

.dashboard-mini-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-vacation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-vacation-stats div {
  border-radius: 18px;
  background: #fff7f7;
  padding: 14px 16px;
}

.dashboard-vacation-stats strong {
  display: block;
  color: var(--wine);
  font-size: 28px;
  line-height: 1.1;
}

.dashboard-vacation-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .dashboard-metrics-row {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dashboard-filter-bar {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-metrics-row,
  .dashboard-summary-grid,
  .dashboard-vacation-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-wide {
    grid-column: auto;
  }

  .dashboard-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/*******************************************************
 * FINAL DASHBOARD MOCKUP STYLE
 * Փոխում է միայն Dashboard-ի աջ հատվածը
 * Sidebar / layout-ը չի փոխվում
 *******************************************************/

/* ===== Global dashboard page spacing ===== */
.dashboard-modern {
  display: grid !important;
  gap: 16px !important;
  width: 100% !important;
}

.dashboard-modern * {
  box-sizing: border-box;
}

/* ===== Filter bar like mockup ===== */
.dashboard-filter-bar {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045) !important;
}

.dashboard-filter-bar .field {
  margin: 0 !important;
}

.dashboard-filter-bar label {
  display: block !important;
  margin-bottom: 6px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.dashboard-filter-bar select {
  width: 100% !important;
  height: 40px !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 0 11px !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* ===== KPI metrics: compact, mockup-like, no pink shapes ===== */
.dashboard-metrics-row {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(120px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.dashboard-metric-card {
  min-height: 112px !important;
  width: 100% !important;
  padding: 14px 12px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  text-align: left !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045) !important;
  transition: 0.18s ease !important;
}

.dashboard-metric-card::before,
.dashboard-metric-card::after {
  display: none !important;
  content: none !important;
}

.dashboard-metric-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(79, 0, 19, 0.075) !important;
  border-color: rgba(79, 0, 19, 0.16) !important;
}

.dashboard-metric-icon {
  display: none !important;
}

.dashboard-metric-title {
  display: block !important;
  margin: 0 0 7px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  min-height: 28px !important;
  position: relative !important;
  z-index: 1 !important;
}

.dashboard-metric-card strong {
  display: block !important;
  color: var(--wine) !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.3px !important;
  position: relative !important;
  z-index: 1 !important;
  overflow-wrap: anywhere !important;
}

.dashboard-metric-sub {
  display: block !important;
  margin-top: 7px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Remove decorative shapes from all KPI cards too */
.card.kpi::before,
.card.kpi::after,
.kpi::before,
.kpi::after,
.my-score-kpis-row .card.kpi::before,
.my-score-kpis-row .card.kpi::after {
  display: none !important;
  content: none !important;
}

.card.kpi,
.kpi,
.my-score-kpis-row .card.kpi {
  border-radius: 14px !important;
  min-height: 104px !important;
  padding: 14px 14px 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045) !important;
}

.card.kpi .title,
.kpi .title,
.my-score-kpis-row .card.kpi .title {
  font-size: 12px !important;
  line-height: 1.25 !important;
  margin-bottom: 7px !important;
}

.card.kpi .value,
.kpi .value,
.my-score-kpis-row .card.kpi .value {
  font-size: 23px !important;
  line-height: 1.12 !important;
  margin: 6px 0 5px !important;
}

.card.kpi .sub,
.kpi .sub,
.my-score-kpis-row .card.kpi .sub {
  font-size: 11px !important;
  margin-top: 5px !important;
}

/* ===== Main chart card ===== */
.dashboard-chart-card {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 26px rgba(79, 0, 19, 0.055) !important;
  overflow: hidden !important;
}

.dashboard-chart-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--border) !important;
}

.dashboard-chart-tabs,
.dashboard-period-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.dashboard-chart-tabs button,
.dashboard-period-tabs button {
  height: 34px !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--muted) !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.dashboard-chart-tabs button.active,
.dashboard-period-tabs button.active {
  background: var(--wine) !important;
  color: #fff !important;
  border-color: var(--wine) !important;
  box-shadow: 0 8px 18px rgba(79, 0, 19, 0.15) !important;
}

.dashboard-chart-body {
  padding: 14px 16px 12px !important;
}

.dashboard-chart-svg-wrap {
  width: 100% !important;
}

.dashboard-chart-svg-wrap svg {
  width: 100% !important;
  height: 300px !important;
  display: block !important;
}

.chart-grid-line {
  stroke: rgba(79, 0, 19, 0.10) !important;
  stroke-width: 1 !important;
}

.chart-axis-text {
  fill: #8a7b7e !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.dashboard-chart-legend {
  display: flex !important;
  justify-content: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  padding: 6px 0 2px !important;
}

.chart-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.chart-legend-item i {
  width: 18px !important;
  height: 5px !important;
  border-radius: 999px !important;
  display: inline-block !important;
}

/* ===== Summary cards like mockup, compact and clean ===== */
.dashboard-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.dashboard-summary-card {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  padding: 14px !important;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045) !important;
  overflow: hidden !important;
}

.dashboard-summary-wide {
  grid-column: 1 / -1 !important;
}

.dashboard-summary-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.dashboard-summary-head h3 {
  margin: 0 !important;
  color: var(--wine) !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.dashboard-summary-head button {
  border: 0 !important;
  background: transparent !important;
  color: var(--wine) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.dashboard-mini-table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  background: #fff !important;
  border-radius: 0 !important;
}

.dashboard-mini-table th {
  padding: 10px 10px !important;
  background: var(--wine) !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: left !important;
  border-radius: 0 !important;
}

.dashboard-mini-table td {
  padding: 10px 10px !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
  background: #fff !important;
  overflow-wrap: anywhere !important;
}

.dashboard-mini-table tr:nth-child(even) td {
  background: #fbf7f6 !important;
}

.dashboard-mini-table tr:last-child td {
  border-bottom: 0 !important;
}

.dashboard-vacation-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.dashboard-vacation-stats div {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: #fff7f7 !important;
  padding: 12px 14px !important;
}

.dashboard-vacation-stats strong {
  display: block !important;
  color: var(--wine) !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}

.dashboard-vacation-stats span {
  display: block !important;
  margin-top: 5px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* ===== Sharper table corners for Dashboard, like old tables ===== */
.dashboard-modern .table-wrap,
.dashboard-modern .data-table,
.dashboard-modern .dashboard-mini-table {
  border-radius: 0 !important;
}

.dashboard-modern th,
.dashboard-modern td {
  border-radius: 0 !important;
}

/* ===== Keep sidebar untouched ===== */
/* Sidebar-related selectors intentionally have no dashboard overrides. */

/* ===== Responsive ===== */
@media (max-width: 1600px) {
  .dashboard-metrics-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .dashboard-filter-bar,
  .dashboard-summary-grid,
  .dashboard-vacation-stats {
    grid-template-columns: 1fr !important;
  }

  .dashboard-metrics-row {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  }

  .dashboard-summary-wide {
    grid-column: auto !important;
  }

  .dashboard-chart-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 760px) {
  .dashboard-metrics-row {
    grid-template-columns: 1fr !important;
  }
}
/* =======================================================
   DASHBOARD V2
======================================================= */

.dashboard-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-v2__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-v2__title {
  margin: 0;
  color: var(--wine);
  font-size: 22px;
  font-weight: 800;
}

.dashboard-v2__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  cursor: pointer;
  position: relative;
}

.dashboard-icon-btn.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.dashboard-icon-btn svg {
  width: 18px;
  height: 18px;
}

.dashboard-icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: #d82128;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
}

.dashboard-v2__filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 1.2fr auto;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.dashboard-filter {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.dashboard-filter.compact {
  min-width: 130px;
}

.dashboard-filter__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6e6e6e;
}

.dashboard-filter__icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-filter select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #4d4d4d;
  font-size: 14px;
}

.dashboard-filter-btn {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--wine);
  font-weight: 700;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dashboard-filter-btn svg {
  width: 18px;
  height: 18px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 118px;
}

.dashboard-kpi-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff3f4;
  color: #cc4b5a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.dashboard-kpi-card__icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-kpi-card__title {
  font-size: 12px;
  color: #6e5d61;
  font-weight: 700;
  min-height: 30px;
}

.dashboard-kpi-card__value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  color: #4d0917;
}

.dashboard-kpi-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.dashboard-kpi-card__subtitle {
  font-size: 11px;
  color: #8d8084;
}

.dashboard-kpi-card__trend {
  font-size: 12px;
  font-weight: 700;
}

.dashboard-kpi-card__trend.up {
  color: #6ea94d;
}

.dashboard-kpi-card__trend.down {
  color: #d84b4b;
}

.dashboard-panel,
.dashboard-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.dashboard-panel {
  padding: 0 0 14px;
}

.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 18px 0;
  border-bottom: 1px solid #f0e7e9;
}

.dashboard-tab {
  border: none;
  background: transparent;
  color: #6e5d61;
  font-weight: 700;
  font-size: 14px;
  padding: 0 0 12px;
  cursor: pointer;
  position: relative;
}

.dashboard-tab.active {
  color: var(--wine);
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--wine);
  border-radius: 4px 4px 0 0;
}

.dashboard-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  gap: 12px;
}

.dashboard-chart-switches {
  display: flex;
  gap: 8px;
}

.dashboard-chart-switch {
  border: 1px solid var(--border);
  background: #fff;
  color: #7b6b70;
  border-radius: 8px;
  height: 34px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.dashboard-chart-switch.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.dashboard-chart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-chart-card {
  padding: 0 18px;
}

.dashboard-chart-area {
  height: 240px;
  border-top: 1px solid #f2e9eb;
  padding-top: 16px;
}

.dashboard-chart-svg {
  width: 100%;
  height: 100%;
}

.dashboard-chart-svg .grid line {
  stroke: #eee6e8;
  stroke-width: 1;
}

.dashboard-chart-svg .line {
  fill: none;
  stroke-width: 2.5;
}

.dashboard-chart-svg .line.red { stroke: #9d1734; }
.dashboard-chart-svg .line.blue { stroke: #4b83db; }
.dashboard-chart-svg .line.green { stroke: #53b37c; }
.dashboard-chart-svg .line.orange { stroke: #f0a241; }

.dashboard-chart-svg .points.red circle { fill: #fff; stroke: #9d1734; stroke-width: 2; }
.dashboard-chart-svg .points.blue circle { fill: #fff; stroke: #4b83db; stroke-width: 2; }
.dashboard-chart-svg .points.green circle { fill: #fff; stroke: #53b37c; stroke-width: 2; }
.dashboard-chart-svg .points.orange circle { fill: #fff; stroke: #f0a241; stroke-width: 2; }

.dashboard-chart-svg .grid line {
  stroke: #eee6e8;
  stroke-width: 1;
}

.dashboard-chart-svg .xlabels text {
  fill: #7f7276;
  font-size: 11px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dashboard-widget {
  padding: 14px 16px 16px;
}

.dashboard-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dashboard-widget__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-widget__title-wrap h3 {
  margin: 0;
  color: var(--wine);
  font-size: 18px;
  font-weight: 800;
}

.dashboard-widget__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff3f4;
  color: #cc4b5a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-widget__icon svg {
  width: 15px;
  height: 15px;
}

.dashboard-link-btn {
  border: none;
  background: transparent;
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.dashboard-mini-table th {
  text-align: left;
  font-size: 12px;
  color: var(--wine);
  padding: 8px 6px;
  border-bottom: 1px solid #eee4e7;
}

.dashboard-mini-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f4ecee;
  font-size: 13px;
  color: #4b4446;
}

.dashboard-mini-table td.up {
  color: #6ea94d;
  font-weight: 700;
}

.dashboard-mini-table td.down {
  color: #d84b4b;
  font-weight: 700;
}

.dashboard-vacation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.vac-stat {
  background: #fcf8f9;
  border: 1px solid #f0e6e9;
  border-radius: 12px;
  padding: 12px;
}

.vac-stat__label {
  font-size: 12px;
  font-weight: 700;
}

.vac-stat__label.green { color: #74a94e; }
.vac-stat__label.orange { color: #de8f33; }
.vac-stat__label.red { color: #d45757; }

.vac-stat__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #4d0917;
}

.vac-stat__sub {
  margin-top: 2px;
  font-size: 12px;
  color: #8c7f83;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.green {
  background: #e7f5ec;
  color: #4e9b6d;
}

.status-pill.orange {
  background: #fff3e8;
  color: #d1842e;
}

.status-pill.blue {
  background: #ecf4ff;
  color: #5285ce;
}

.status-pill.red {
  background: #fdeeee;
  color: #d45757;
}

@media (max-width: 1600px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .dashboard-v2__filters {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-chart-toolbar,
  .dashboard-v2__header,
  .dashboard-widget__head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-vacation-stats {
    grid-template-columns: 1fr;
  }
}
/*******************************************************
 * DASHBOARD V2 FINAL FIX
 * Sidebar-ը չի փոխվում
 *******************************************************/

.dashboard-v2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.dashboard-v2__filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.25fr 1.25fr auto;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045);
}

.dashboard-filter {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.dashboard-filter.compact {
  min-width: 140px;
}

.dashboard-filter__icon {
  width: 18px;
  height: 18px;
  color: #7f7276;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-filter__icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-filter select {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  color: #4b4446;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-filter select:focus {
  box-shadow: none;
}

.dashboard-filter-btn {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--wine);
  font-weight: 900;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-filter-btn svg {
  width: 18px;
  height: 18px;
}

/* KPI cards */

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.dashboard-kpi-card {
  min-height: 128px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045);
}

.dashboard-kpi-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.dashboard-kpi-card__icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 999px;
  background: #fff3f4;
  color: #d94b66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-kpi-card__icon svg {
  width: 19px;
  height: 19px;
}

.dashboard-kpi-card__title {
  color: #6e5d61;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.dashboard-kpi-card__value {
  margin-top: 18px;
  color: var(--wine);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.4px;
}

.dashboard-kpi-card__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-kpi-card__subtitle {
  color: #8d8084;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-kpi-card__trend {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-kpi-card__trend.up {
  color: #5ca846;
}

.dashboard-kpi-card__trend.down {
  color: #d84b4b;
}

/* Chart */

.dashboard-panel,
.dashboard-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045);
  overflow: hidden;
}

.dashboard-panel {
  padding: 0 0 14px;
}

.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px 18px 0;
  border-bottom: 1px solid #f0e7e9;
}

.dashboard-tab {
  border: 0;
  background: transparent;
  color: #6e5d61;
  font-weight: 900;
  font-size: 14px;
  padding: 0 0 13px;
  position: relative;
}

.dashboard-tab.active {
  color: var(--wine);
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--wine);
  border-radius: 999px 999px 0 0;
}

.dashboard-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 10px;
}

.dashboard-chart-switches {
  display: flex;
  gap: 8px;
}

.dashboard-chart-switch {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #7b6b70;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-chart-switch.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.dashboard-chart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-icon-btn.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.dashboard-icon-btn svg {
  width: 18px;
  height: 18px;
}

.dashboard-chart-card {
  padding: 0 18px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.dashboard-chart-area {
  height: 250px;
  border-top: 1px solid #f2e9eb;
  padding-top: 16px;
}

.dashboard-chart-svg {
  width: 100%;
  height: 100%;
}

.dashboard-chart-svg .grid line {
  stroke: #eee6e8;
  stroke-width: 1;
}

.dashboard-chart-svg .line {
  fill: none;
  stroke-width: 2.5;
}

.dashboard-chart-svg .line.red {
  stroke: #9d1734;
}

.dashboard-chart-svg .line.blue {
  stroke: #4b83db;
}

.dashboard-chart-svg .line.green {
  stroke: #53b37c;
}

.dashboard-chart-svg .line.orange {
  stroke: #f0a241;
}

.dashboard-chart-svg .points.red circle {
  fill: #fff;
  stroke: #9d1734;
  stroke-width: 2;
}

.dashboard-chart-svg .points.blue circle {
  fill: #fff;
  stroke: #4b83db;
  stroke-width: 2;
}

.dashboard-chart-svg .points.green circle {
  fill: #fff;
  stroke: #53b37c;
  stroke-width: 2;
}

.dashboard-chart-svg .points.orange circle {
  fill: #fff;
  stroke: #f0a241;
  stroke-width: 2;
}

.dashboard-chart-svg .xlabels text {
  fill: #7f7276;
  font-size: 11px;
  font-weight: 800;
}

/* Bottom widgets */

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dashboard-widget-wide {
  grid-column: 1 / -1;
}

.dashboard-widget {
  padding: 16px 18px 18px;
}

.dashboard-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-widget__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-widget__title-wrap h3 {
  margin: 0;
  color: var(--wine);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
}

.dashboard-widget__icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 999px;
  background: #fff3f4;
  color: #d94b66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-widget__icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-link-btn {
  border: 0;
  background: transparent;
  color: var(--wine);
  font-size: 13px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tables in dashboard */

.dashboard-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  overflow: hidden;
}

.dashboard-mini-table th {
  background: var(--wine);
  color: #fff;
  padding: 12px 12px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-align: left;
  border-bottom: 0;
}

.dashboard-mini-table thead th:first-child {
  border-top-left-radius: 12px;
}

.dashboard-mini-table thead th:last-child {
  border-top-right-radius: 12px;
}

.dashboard-mini-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  background: #fff;
  overflow-wrap: anywhere;
}

.dashboard-mini-table tbody tr:nth-child(even) td {
  background: #fbf7f6;
}

.dashboard-mini-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-mini-table td.up {
  color: #5ca846;
  font-weight: 900;
}

.dashboard-mini-table td.down {
  color: #d84b4b;
  font-weight: 900;
}

/* Vacation stats */

.dashboard-vacation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.vac-stat {
  background: #fcf8f9;
  border: 1px solid #f0e6e9;
  border-radius: 14px;
  padding: 14px;
}

.vac-stat__label {
  font-size: 12px;
  font-weight: 900;
}

.vac-stat__label.green {
  color: #74a94e;
}

.vac-stat__label.orange {
  color: #de8f33;
}

.vac-stat__label.red {
  color: #d45757;
}

.vac-stat__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 950;
  color: var(--wine);
}

.vac-stat__sub {
  margin-top: 2px;
  font-size: 12px;
  color: #8c7f83;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.green {
  background: #e7f5ec;
  color: #4e9b6d;
}

.status-pill.orange {
  background: #fff3e8;
  color: #d1842e;
}

.status-pill.blue {
  background: #ecf4ff;
  color: #5285ce;
}

.status-pill.red {
  background: #fdeeee;
  color: #d45757;
}

/* Responsive */

@media (max-width: 1500px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .dashboard-v2__filters {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-widget-wide {
    grid-column: auto;
  }
}

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

  .dashboard-chart-toolbar,
  .dashboard-widget__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-vacation-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-v2__filters,
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}
/*******************************************************
 * DASHBOARD VACATIONS — FIX NESTED BOXES
 *******************************************************/

.dashboard-vacation-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

/* рамка только у самой карточки */
.dashboard-vacation-stats > .vac-stat {
  background: #fcf8f9 !important;
  border: 1px solid #f0e6e9 !important;
  border-radius: 14px !important;
  padding: 14px !important;
}

/* внутри карточки больше никаких рамок */
.dashboard-vacation-stats > .vac-stat > div {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.vac-stat__label {
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.vac-stat__label.green {
  color: #74a94e !important;
}

.vac-stat__label.orange {
  color: #de8f33 !important;
}

.vac-stat__label.red {
  color: #d45757 !important;
}

.vac-stat__value {
  margin-top: 10px !important;
  color: var(--wine) !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
}

.vac-stat__sub {
  margin-top: 4px !important;
  color: #8c7f83 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  .dashboard-vacation-stats {
    grid-template-columns: 1fr !important;
  }
}
/*******************************************************
 * DASHBOARD TABLE HEADER FIX
 * Бордовая шапка как в обычных таблицах
 *******************************************************/

.dashboard-v2 .dashboard-widget__body {
  width: 100%;
  overflow-x: auto;
}

.dashboard-v2 .dashboard-mini-table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: #fff !important;
  border-radius: 14px 14px 0 0 !important;
  overflow: hidden !important;
}

.dashboard-v2 .dashboard-mini-table thead {
  background: var(--wine) !important;
}

.dashboard-v2 .dashboard-mini-table thead tr {
  background: var(--wine) !important;
}

.dashboard-v2 .dashboard-mini-table thead th {
  background: var(--wine) !important;
  color: #fff !important;
  padding: 13px 14px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  border: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}

.dashboard-v2 .dashboard-mini-table thead th:first-child {
  border-top-left-radius: 14px !important;
}

.dashboard-v2 .dashboard-mini-table thead th:last-child {
  border-top-right-radius: 14px !important;
}

.dashboard-v2 .dashboard-mini-table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  background: #fff !important;
  border-radius: 0 !important;
}

.dashboard-v2 .dashboard-mini-table tbody tr:nth-child(even) td {
  background: #fbf7f6 !important;
}

.dashboard-v2 .dashboard-mini-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
/*******************************************************
 * DASHBOARD CHART LEGEND + BARS
 *******************************************************/

.dashboard-chart-area {
  height: 280px;
}

.dashboard-chart-legend-v2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.dashboard-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7f7276;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-chart-legend-item i {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-chart-legend-item.red i {
  background: #9d1734;
}

.dashboard-chart-legend-item.blue i {
  background: #4b83db;
}

.dashboard-chart-legend-item.green i {
  background: #53b37c;
}

.dashboard-chart-legend-item.orange i {
  background: #f0a241;
}

.dashboard-chart-svg .bar.red {
  fill: #9d1734;
}

.dashboard-chart-svg .bar.blue {
  fill: #4b83db;
}

.dashboard-chart-svg .bar.green {
  fill: #53b37c;
}

.dashboard-chart-svg .bar.orange {
  fill: #f0a241;
}
/*******************************************************
 * DASHBOARD V2 REAL CHART
 *******************************************************/

.dashboard-chart-area {
  height: 286px !important;
}

.dashboard-chart-legend-v2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.dashboard-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7f7276;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-chart-legend-item i {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-chart-legend-item.red i {
  background: #9d1734;
}

.dashboard-chart-legend-item.blue i {
  background: #4b83db;
}

.dashboard-chart-legend-item.green i {
  background: #53b37c;
}

.dashboard-chart-legend-item.orange i {
  background: #f0a241;
}

.dashboard-chart-svg .bar.red {
  fill: #9d1734;
}

.dashboard-chart-svg .bar.blue {
  fill: #4b83db;
}

.dashboard-chart-svg .bar.green {
  fill: #53b37c;
}

.dashboard-chart-svg .bar.orange {
  fill: #f0a241;
}

.dashboard-chart-svg .line.red {
  stroke: #9d1734;
}

.dashboard-chart-svg .line.blue {
  stroke: #4b83db;
}

.dashboard-chart-svg .line.green {
  stroke: #53b37c;
}

.dashboard-chart-svg .line.orange {
  stroke: #f0a241;
}

.dashboard-chart-svg .points.red circle {
  fill: #fff;
  stroke: #9d1734;
  stroke-width: 2;
}

.dashboard-chart-svg .points.blue circle {
  fill: #fff;
  stroke: #4b83db;
  stroke-width: 2;
}

.dashboard-chart-svg .points.green circle {
  fill: #fff;
  stroke: #53b37c;
  stroke-width: 2;
}

.dashboard-chart-svg .points.orange circle {
  fill: #fff;
  stroke: #f0a241;
  stroke-width: 2;
}
/*******************************************************
 * DASHBOARD V2 REAL CHART
 *******************************************************/

.dashboard-chart-area {
  height: 286px !important;
}

.dashboard-chart-legend-v2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.dashboard-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7f7276;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-chart-legend-item i {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-chart-legend-item.red i {
  background: #9d1734;
}

.dashboard-chart-legend-item.blue i {
  background: #4b83db;
}

.dashboard-chart-legend-item.green i {
  background: #53b37c;
}

.dashboard-chart-legend-item.orange i {
  background: #f0a241;
}

.dashboard-chart-svg .bar.red {
  fill: #9d1734;
}

.dashboard-chart-svg .bar.blue {
  fill: #4b83db;
}

.dashboard-chart-svg .bar.green {
  fill: #53b37c;
}

.dashboard-chart-svg .bar.orange {
  fill: #f0a241;
}

.dashboard-chart-svg .line.red {
  stroke: #9d1734;
}

.dashboard-chart-svg .line.blue {
  stroke: #4b83db;
}

.dashboard-chart-svg .line.green {
  stroke: #53b37c;
}

.dashboard-chart-svg .line.orange {
  stroke: #f0a241;
}

.dashboard-chart-svg .points.red circle {
  fill: #fff;
  stroke: #9d1734;
  stroke-width: 2;
}

.dashboard-chart-svg .points.blue circle {
  fill: #fff;
  stroke: #4b83db;
  stroke-width: 2;
}

.dashboard-chart-svg .points.green circle {
  fill: #fff;
  stroke: #53b37c;
  stroke-width: 2;
}

.dashboard-chart-svg .points.orange circle {
  fill: #fff;
  stroke: #f0a241;
  stroke-width: 2;
}

/*******************************************************
 * DASHBOARD VACATION NOW STATUS
 *******************************************************/

.dashboard-vacation-stats-four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.vac-stat__label.blue {
  color: #5285ce !important;
}

.status-pill.gray {
  background: #f1eeee !important;
  color: #7f7276 !important;
}

@media (max-width: 1100px) {
  .dashboard-vacation-stats-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .dashboard-vacation-stats-four {
    grid-template-columns: 1fr !important;
  }
}
/*******************************************************
 * DASHBOARD KPI TREND COLORS
 *******************************************************/

.dashboard-kpi-card__trend.up {
  color: #2f9e44 !important;
}

.dashboard-kpi-card__trend.down {
  color: #d33b3b !important;
}

.dashboard-kpi-card__trend.neutral {
  color: #8c7f83 !important;
}

.bonus-clickable-row {
  cursor: pointer !important;
  transition: 0.16s ease !important;
}

.bonus-clickable-row:hover {
  background: #fff4f2 !important;
}

.bonus-modal.hidden {
  display: none !important;
}

.bonus-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 28px !important;
}

.bonus-modal__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(35, 0, 8, 0.46) !important;
  backdrop-filter: blur(5px) !important;
}

.bonus-modal__card {
  position: relative !important;
  width: min(1180px, 96vw) !important;
  max-height: 92vh !important;
  overflow: auto !important;
  background: #fff !important;
  border-radius: 26px !important;
  padding: 24px !important;
  box-shadow: 0 30px 90px rgba(35, 0, 8, 0.35) !important;
  z-index: 2 !important;
}

.bonus-modal__head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.bonus-modal__head h2 {
  margin: 0 !important;
  color: var(--wine) !important;
}

.bonus-modal__head p {
  margin: 6px 0 0 !important;
  color: var(--muted) !important;
  font-weight: 800 !important;
}

.bonus-modal__close {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
  font-size: 28px !important;
  font-weight: 900 !important;
}

.bonus-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.bonus-detail-card {
  background: var(--soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 15px !important;
}

.bonus-detail-card span {
  display: block !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}

.bonus-detail-card strong {
  color: var(--wine) !important;
  font-size: 20px !important;
}

.bonus-formula-box {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  padding: 18px !important;
  margin-top: 16px !important;
}

.bonus-formula-box h3 {
  margin: 0 0 12px !important;
  color: var(--wine) !important;
}

.bonus-formula-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 11px 0 !important;
  border-bottom: 1px solid rgba(79, 0, 19, 0.08) !important;
}

.bonus-formula-row:last-child {
  border-bottom: 0 !important;
}

.bonus-formula-row span {
  color: var(--muted) !important;
  font-weight: 800 !important;
}

.bonus-formula-row strong {
  color: var(--wine) !important;
}

.bonus-formula-row.accent {
  background: var(--red-soft) !important;
  margin: 8px -10px -4px !important;
  padding: 13px 10px !important;
  border-radius: 14px !important;
  border-bottom: 0 !important;
}

@media (max-width: 900px) {
  .bonus-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .bonus-detail-grid {
    grid-template-columns: 1fr !important;
  }
}
.bonus-money-table th,
.bonus-money-table td {
  text-align: center !important;
}

.bonus-money-table td strong {
  color: var(--wine) !important;
  font-size: 18px !important;
}
.bonus-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.bonus-summary-card {
  background: #fff !important;
  border: 1px solid rgba(79, 0, 19, 0.10) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: 0 10px 28px rgba(79, 0, 19, 0.06) !important;
}

.bonus-summary-card span {
  display: block !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}

.bonus-summary-card strong {
  color: var(--wine) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

@media (max-width: 1100px) {
  .bonus-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  .bonus-summary-grid {
    grid-template-columns: 1fr !important;
  }
}
.bonus-page-head {
  margin-bottom: 16px !important;
}

.bonus-page-head h2 {
  margin: 0 !important;
  color: var(--wine) !important;
}
.bonus-modal__actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.bonus-print-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.bonus-print-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}

.bonus-print-icon svg {
  display: block !important;
}
.bonus-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 28px !important;
  overflow: auto !important;
}

.bonus-modal.hidden {
  display: none !important;
}

.bonus-modal__backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(35, 0, 8, 0.46) !important;
  backdrop-filter: blur(5px) !important;
}

.bonus-modal__card {
  position: relative !important;
  z-index: 2 !important;
  width: min(1180px, calc(100vw - 56px)) !important;
  max-height: none !important;
  overflow: visible !important;
  background: #fff !important;
  border-radius: 26px !important;
  padding: 24px !important;
  box-shadow: 0 30px 90px rgba(35, 0, 8, 0.35) !important;
}

.bonus-modal__head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.bonus-modal__title h2 {
  margin: 0 !important;
  color: var(--wine) !important;
}

.bonus-modal__title p {
  margin: 6px 0 0 !important;
  color: var(--muted) !important;
  font-weight: 800 !important;
}

.bonus-modal__actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.bonus-modal__close {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.vacations-tables-stack {
  display: grid !important;
  gap: 22px !important;
}

.vacations-subcard {
  background: #fff !important;
  border: 1px solid rgba(79, 0, 19, 0.10) !important;
  border-radius: 24px !important;
  padding: 22px !important;
  box-shadow: 0 10px 28px rgba(79, 0, 19, 0.06) !important;
}

.vacation-subcard-head,
.vacation-closed-head {
  margin-bottom: 16px !important;
}

.vacation-subcard-head h3,
.vacation-closed-head h3 {
  margin: 0 !important;
  color: var(--wine) !important;
  font-size: 22px !important;
}

.vacation-closed-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
/*******************************************************
 * DASHBOARD SPACING / TABLES
 *******************************************************/

.dashboard-bottom-grid {
  margin-top: 30px !important;
  gap: 24px !important;
}

.dashboard-widget {
  margin-top: 0 !important;
}

.dashboard-widget .table-wrap {
  margin-top: 12px !important;
}

.dashboard-widget.wide {
  grid-column: span 2 !important;
}

@media (max-width: 1100px) {
  .dashboard-widget.wide {
    grid-column: span 1 !important;
  }
}
.dashboard-bottom-grid-no-top {
  margin-top: 34px !important;
}

.dashboard-chart-card {
  margin-bottom: 0 !important;
}

.dashboard-bottom-grid {
  gap: 24px !important;
}

.dashboard-widget-wide {
  grid-column: span 2 !important;
}

.dashboard-widget__body {
  margin-top: 12px !important;
}

.dashboard-mini-table {
  width: 100% !important;
}

@media (max-width: 1100px) {
  .dashboard-widget-wide {
    grid-column: span 1 !important;
  }
}
/*******************************************************
 * DASHBOARD TABLE FINAL FIX
 * Աշխատավարձ + Բոնուսներ
 *******************************************************/

.dashboard-v2 .dashboard-widget__body {
  width: 100% !important;
  overflow-x: hidden !important;
}

/* Общая таблица Dashboard */
.dashboard-v2 .dashboard-mini-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Общие ячейки */
.dashboard-v2 .dashboard-mini-table th,
.dashboard-v2 .dashboard-mini-table td {
  box-sizing: border-box !important;
  vertical-align: top !important;
  overflow: hidden !important;
}

/* -------------------------
   ԱՇԽԱՏԱՎԱՐՁ
------------------------- */

.dashboard-v2 .dashboard-salary-table th:nth-child(1),
.dashboard-v2 .dashboard-salary-table td:nth-child(1) {
  width: 48% !important;
}

.dashboard-v2 .dashboard-salary-table th:nth-child(2),
.dashboard-v2 .dashboard-salary-table td:nth-child(2),
.dashboard-v2 .dashboard-salary-table th:nth-child(3),
.dashboard-v2 .dashboard-salary-table td:nth-child(3) {
  width: 26% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.dashboard-v2 .dashboard-salary-table td {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* суммы ровно сверху */
.dashboard-v2 .dashboard-salary-table td:nth-child(2),
.dashboard-v2 .dashboard-salary-table td:nth-child(3) {
  padding-top: 18px !important;
  line-height: 1.25 !important;
}

/* имя + должность */
.dashboard-person-cell {
  display: block !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.dashboard-person-cell strong {
  display: block !important;
  color: var(--wine) !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dashboard-person-cell span {
  display: block !important;
  margin-top: 5px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* -------------------------
   ԲՈՆՈՒՍՆԵՐ
------------------------- */

.dashboard-v2 .dashboard-bonus-table th:nth-child(1),
.dashboard-v2 .dashboard-bonus-table td:nth-child(1) {
  width: 42% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dashboard-v2 .dashboard-bonus-table th:nth-child(2),
.dashboard-v2 .dashboard-bonus-table td:nth-child(2) {
  width: 13% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.dashboard-v2 .dashboard-bonus-table th:nth-child(3),
.dashboard-v2 .dashboard-bonus-table td:nth-child(3),
.dashboard-v2 .dashboard-bonus-table th:nth-child(4),
.dashboard-v2 .dashboard-bonus-table td:nth-child(4) {
  width: 22.5% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.dashboard-v2 .dashboard-bonus-table td {
  vertical-align: middle !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* чтобы заголовки не ломали сетку */
.dashboard-v2 .dashboard-salary-table th,
.dashboard-v2 .dashboard-bonus-table th {
  white-space: nowrap !important;
}

/* аккуратные суммы */
.dashboard-v2 .dashboard-salary-table td:nth-child(2) strong,
.dashboard-v2 .dashboard-bonus-table td:nth-child(3) strong {
  color: var(--wine) !important;
  font-weight: 950 !important;
}

/*******************************************************
 * DASHBOARD BONUS TABLE FINAL WIDTH FIX
 *******************************************************/

.dashboard-v2 .dashboard-bonus-table {
  table-layout: fixed !important;
  width: 100% !important;
}

.dashboard-v2 .dashboard-bonus-table th,
.dashboard-v2 .dashboard-bonus-table td {
  overflow: hidden !important;
}

.dashboard-v2 .dashboard-bonus-table .dashboard-bonus-name {
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.dashboard-v2 .dashboard-bonus-table .dashboard-bonus-score {
  text-align: center !important;
  white-space: nowrap !important;
}

.dashboard-v2 .dashboard-bonus-table .dashboard-bonus-gross,
.dashboard-v2 .dashboard-bonus-table .dashboard-bonus-net {
  text-align: right !important;
  white-space: nowrap !important;
}

.dashboard-v2 .dashboard-bonus-table th.dashboard-bonus-score,
.dashboard-v2 .dashboard-bonus-table th.dashboard-bonus-gross,
.dashboard-v2 .dashboard-bonus-table th.dashboard-bonus-net {
  text-align: center !important;
}

.dashboard-v2 .dashboard-bonus-table td.dashboard-bonus-gross,
.dashboard-v2 .dashboard-bonus-table td.dashboard-bonus-net {
  text-align: right !important;
}

/*******************************************************
 * DASHBOARD CHART ANIMATION — SAFE VERSION
 *******************************************************/

.dashboard-chart-svg .line {
  opacity: 1 !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  animation: dashboardLineFade 0.55s ease both !important;
}

.dashboard-chart-svg .points circle {
  opacity: 1 !important;
  transform: scale(1) !important;
  transform-origin: center !important;
  animation: dashboardPointShowSafe 0.45s ease both !important;
}

.dashboard-chart-svg .bar {
  transform-box: fill-box !important;
  transform-origin: bottom !important;
  animation: dashboardBarGrowSafe 0.65s ease both !important;
}

@keyframes dashboardLineFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardPointShowSafe {
  from {
    opacity: 0;
    transform: scale(0.4);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dashboardBarGrowSafe {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/*******************************************************
 * DASHBOARD CHART FINAL FIX
 *******************************************************/

/* если случайно где-то осталась кнопка ... или голый svg */
.dashboard-chart-toolbar > svg,
.dashboard-chart-actions > svg,
.dashboard-chart-actions > .dashboard-icon-btn.small {
  display: none !important;
}

.dashboard-chart-card {
  width: 100% !important;
  padding: 0 18px !important;
}

.dashboard-chart-area {
  width: 100% !important;
  height: 286px !important;
  overflow: visible !important;
}

.dashboard-chart-svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.dashboard-chart-svg .line {
  fill: none !important;
  stroke-width: 2.5 !important;
  opacity: 1 !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  animation: dashboardLineFade 0.55s ease both !important;
}

.dashboard-chart-svg .points circle {
  opacity: 1 !important;
  transform: scale(1) !important;
  transform-origin: center !important;
  animation: dashboardPointShowSafe 0.45s ease both !important;
}

.dashboard-chart-svg .bar {
  transform-box: fill-box !important;
  transform-origin: bottom !important;
  animation: dashboardBarGrowSafe 0.65s ease both !important;
}

.dashboard-chart-svg .line.red {
  stroke: #9d1734 !important;
}

.dashboard-chart-svg .line.blue {
  stroke: #4b83db !important;
}

.dashboard-chart-svg .line.green {
  stroke: #53b37c !important;
}

.dashboard-chart-svg .line.orange {
  stroke: #f0a241 !important;
}

.dashboard-chart-svg .points.red circle {
  fill: #fff !important;
  stroke: #9d1734 !important;
  stroke-width: 2 !important;
}

.dashboard-chart-svg .points.blue circle {
  fill: #fff !important;
  stroke: #4b83db !important;
  stroke-width: 2 !important;
}

.dashboard-chart-svg .points.green circle {
  fill: #fff !important;
  stroke: #53b37c !important;
  stroke-width: 2 !important;
}

.dashboard-chart-svg .points.orange circle {
  fill: #fff !important;
  stroke: #f0a241 !important;
  stroke-width: 2 !important;
}

@keyframes dashboardLineFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardPointShowSafe {
  from {
    opacity: 0;
    transform: scale(0.4);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dashboardBarGrowSafe {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
} 
/*******************************************************
 * DASHBOARD CHART RESTORE + LEGEND + TOOLTIP
 *******************************************************/

.dashboard-chart-panel {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(79, 0, 19, 0.045) !important;
  overflow: hidden !important;
}

.dashboard-chart-panel .dashboard-tabs {
  background: transparent !important;
}

.dashboard-chart-panel .dashboard-chart-toolbar {
  background: transparent !important;
}

.dashboard-chart-card {
  width: 100% !important;
  padding: 0 18px 16px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
}

.dashboard-chart-box {
  width: 100% !important;
}

.dashboard-chart-svg-wrap {
  position: relative !important;
  width: 100% !important;
  height: 286px !important;
  border-top: 1px solid #f2e9eb !important;
  padding-top: 16px !important;
}

.dashboard-chart-svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.dashboard-chart-svg .grid line {
  stroke: #eee6e8 !important;
  stroke-width: 1 !important;
}

.dashboard-chart-svg .xlabels text {
  fill: #7f7276 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.dashboard-chart-svg .line {
  fill: none !important;
  stroke-width: 2.5 !important;
  opacity: 1 !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  animation: dashboardLineFade 0.55s ease both !important;
}

.dashboard-chart-svg .points circle {
  cursor: pointer !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  transform-origin: center !important;
  animation: dashboardPointShowSafe 0.45s ease both !important;
}

.dashboard-chart-svg .bar {
  cursor: pointer !important;
  transform-box: fill-box !important;
  transform-origin: bottom !important;
  animation: dashboardBarGrowSafe 0.65s ease both !important;
}

.dashboard-chart-svg .line.red { stroke: #9d1734 !important; }
.dashboard-chart-svg .line.blue { stroke: #4b83db !important; }
.dashboard-chart-svg .line.green { stroke: #53b37c !important; }
.dashboard-chart-svg .line.orange { stroke: #f0a241 !important; }

.dashboard-chart-svg .bar.red { fill: #9d1734 !important; }
.dashboard-chart-svg .bar.blue { fill: #4b83db !important; }
.dashboard-chart-svg .bar.green { fill: #53b37c !important; }
.dashboard-chart-svg .bar.orange { fill: #f0a241 !important; }

.dashboard-chart-svg .points.red circle {
  fill: #fff !important;
  stroke: #9d1734 !important;
  stroke-width: 2 !important;
}

.dashboard-chart-svg .points.blue circle {
  fill: #fff !important;
  stroke: #4b83db !important;
  stroke-width: 2 !important;
}

.dashboard-chart-svg .points.green circle {
  fill: #fff !important;
  stroke: #53b37c !important;
  stroke-width: 2 !important;
}

.dashboard-chart-svg .points.orange circle {
  fill: #fff !important;
  stroke: #f0a241 !important;
  stroke-width: 2 !important;
}

/* что означает каждый цвет */
.dashboard-chart-legend-v2 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-top: 12px !important;
  padding: 8px 0 0 !important;
}

.dashboard-chart-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #7f7276 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.dashboard-chart-legend-item i {
  width: 18px !important;
  height: 6px !important;
  border-radius: 999px !important;
  display: inline-block !important;
}

.dashboard-chart-legend-item.red i { background: #9d1734 !important; }
.dashboard-chart-legend-item.blue i { background: #4b83db !important; }
.dashboard-chart-legend-item.green i { background: #53b37c !important; }
.dashboard-chart-legend-item.orange i { background: #f0a241 !important; }

.dashboard-chart-tooltip {
  position: absolute !important;
  z-index: 30 !important;
  pointer-events: none !important;
  max-width: 280px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  background: var(--wine) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  box-shadow: 0 14px 32px rgba(79, 0, 19, 0.28) !important;
  white-space: nowrap !important;
}

.dashboard-chart-tooltip.hidden {
  display: none !important;
}

.dashboard-chart-toolbar > svg,
.dashboard-chart-actions > svg,
.dashboard-chart-actions > .dashboard-icon-btn.small {
  display: none !important;
}

@keyframes dashboardLineFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardPointShowSafe {
  from {
    opacity: 0;
    transform: scale(0.4);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dashboardBarGrowSafe {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
.professional-chart-card {
  background: #ffffff;
  border: 1px solid #eadede;
  border-radius: 24px;
  padding: 22px 24px 18px;
  margin-top: 18px;
  box-shadow: 0 8px 24px rgba(88, 21, 35, 0.05);
}

.professional-chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.professional-chart-card__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.professional-chart-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #5b0017;
}

.professional-chart-card__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #8c7f86;
}

.professional-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.professional-chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faf7f8;
  border: 1px solid #eee3e6;
  border-radius: 999px;
  padding: 7px 12px;
}

.professional-chart-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}

.professional-chart-legend__label {
  font-size: 13px;
  font-weight: 700;
  color: #6d5e66;
}

.professional-chart-card__body {
  background: #fff;
  border-radius: 18px;
}

.dashboard-chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-chart-area,
.professional-chart-card__body {
  min-height: 360px;
}

.dashboard-chart-grid-line {
  stroke: #ece5e7;
  stroke-width: 1;
}

.dashboard-chart-axis-label {
  fill: #8e8087;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-chart-point {
  stroke-width: 3;
  fill: #ffffff;
  transition: transform 0.18s ease, r 0.18s ease;
  cursor: pointer;
}

.dashboard-chart-point:hover {
  transform: scale(1.08);
}

@media (max-width: 1100px) {
  .professional-chart-card__head {
    flex-direction: column;
    align-items: stretch;
  }

  .professional-chart-legend {
    justify-content: flex-start;
  }
}
.dashboard-chart-legend-v2 {
  display: none !important;
}
/*******************************************************
 * DASHBOARD FINANCE CHANGE COLORS
 *******************************************************/

.dashboard-finance-change {
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.dashboard-finance-change.up {
  color: #2f9e44 !important;
}

.dashboard-finance-change.down {
  color: #d33b3b !important;
}

.dashboard-finance-change.neutral {
  color: #8c7f83 !important;
}

.dashboard-finance-arrow {
  display: inline-block !important;
  min-width: 12px !important;
  margin-right: 4px !important;
  font-weight: 950 !important;
}
/*******************************************************
 * DASHBOARD FINANCE CHANGE FINAL COLORS
 *******************************************************/

.dashboard-finance-table .dashboard-finance-change {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.dashboard-finance-table .dashboard-finance-change-good {
  color: #2f9e44 !important;
}

.dashboard-finance-table .dashboard-finance-change-bad {
  color: #d33b3b !important;
}

.dashboard-finance-table .dashboard-finance-change-neutral {
  color: #8c7f83 !important;
}

.dashboard-finance-table .dashboard-finance-change-arrow,
.dashboard-finance-table .dashboard-finance-change-text {
  color: inherit !important;
  font-weight: 950 !important;
}

.dashboard-finance-table td:nth-child(3) {
  font-weight: 950 !important;
}
.dashboard-vacation-stats-three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .dashboard-vacation-stats-three {
    grid-template-columns: 1fr !important;
  }
}
/*******************************************************
 * DASHBOARD VACATIONS TABLE WIDTH FIX
 *******************************************************/

.dashboard-vacations-table {
  table-layout: fixed !important;
}

.dashboard-vacations-table th:nth-child(1),
.dashboard-vacations-table td:nth-child(1) {
  width: 20% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dashboard-vacations-table th:nth-child(2),
.dashboard-vacations-table td:nth-child(2),
.dashboard-vacations-table th:nth-child(3),
.dashboard-vacations-table td:nth-child(3) {
  width: 13% !important;
  white-space: nowrap !important;
  
}

.dashboard-vacations-table th:nth-child(4),
.dashboard-vacations-table td:nth-child(4),
.dashboard-vacations-table th:nth-child(5),
.dashboard-vacations-table td:nth-child(5),
.dashboard-vacations-table th:nth-child(6),
.dashboard-vacations-table td:nth-child(6) {
  width: 9% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.dashboard-vacations-table th:nth-child(7),
.dashboard-vacations-table td:nth-child(7),
.dashboard-vacations-table th:nth-child(8),
.dashboard-vacations-table td:nth-child(8) {
  width: 13.5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}
/*******************************************************
 * DASHBOARD VACATIONS TABLE FINAL ALIGN
 *******************************************************/

.dashboard-vacations-table {
  width: 100% !important;
  table-layout: fixed !important;
}

.dashboard-vacations-table th,
.dashboard-vacations-table td {
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.dashboard-vacations-table th:nth-child(1),
.dashboard-vacations-table td:nth-child(1) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dashboard-vacations-table th:nth-child(4),
.dashboard-vacations-table td:nth-child(4),
.dashboard-vacations-table th:nth-child(5),
.dashboard-vacations-table td:nth-child(5),
.dashboard-vacations-table th:nth-child(6),
.dashboard-vacations-table td:nth-child(6),
.dashboard-vacations-table th:nth-child(7),
.dashboard-vacations-table td:nth-child(7),
.dashboard-vacations-table th:nth-child(8),
.dashboard-vacations-table td:nth-child(8) {
  text-align: center !important;
}

.dashboard-vacations-table th {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

/*******************************************************
 * DASHBOARD VACATIONS NUMBERS HARD CENTER FIX
 *******************************************************/

.dashboard-vacations-table th:nth-child(4),
.dashboard-vacations-table td:nth-child(4),
.dashboard-vacations-table th:nth-child(5),
.dashboard-vacations-table td:nth-child(5),
.dashboard-vacations-table th:nth-child(6),
.dashboard-vacations-table td:nth-child(6) {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dashboard-vacations-table td:nth-child(4),
.dashboard-vacations-table td:nth-child(5),
.dashboard-vacations-table td:nth-child(6) {
  font-variant-numeric: tabular-nums !important;
}

/*******************************************************
 * DASHBOARD VACATIONS DAYS FINAL FIX
 *******************************************************/

.dashboard-v2 .dashboard-vacations-table th.dashboard-vacation-days-cell,
.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-days-cell {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-days-cell {
  vertical-align: middle !important;
}

.dashboard-v2 .dashboard-vacations-table .dashboard-vacation-days-value {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  font-variant-numeric: tabular-nums !important;
}

/*******************************************************
 * DASHBOARD VACATIONS STATUS FINAL FIX
 *******************************************************/

.dashboard-v2 .dashboard-vacations-table th.dashboard-vacation-status-cell,
.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-status-cell {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-status-cell {
  vertical-align: middle !important;
}

.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-status-cell .status-pill {
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-flex !important;
  justify-content: center !important;
}
/*******************************************************
 * DASHBOARD VACATIONS DATE + REMAINING FINAL FIX
 *******************************************************/

.dashboard-v2 .dashboard-vacations-table th.dashboard-vacation-date-cell,
.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-date-cell,
.dashboard-v2 .dashboard-vacations-table th.dashboard-vacation-remaining-cell,
.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-remaining-cell {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  vertical-align: middle !important;
}

.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-date-cell,
.dashboard-v2 .dashboard-vacations-table td.dashboard-vacation-remaining-cell {
  font-variant-numeric: tabular-nums !important;
}

.dashboard-v2 .dashboard-vacations-table .dashboard-vacation-remaining-value {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
}
/*******************************************************
 * DASHBOARD CHART Y AXIS LABELS
 *******************************************************/

.dashboard-chart-svg .ylabels text {
  fill: #7f7276 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/*******************************************************
 * REMOVE DUPLICATE INNER PAGE TITLES
 *******************************************************/

.workspace-card > .section-head:first-child h2,
.workspace-card > h2:first-child,
.bonus-page-head h2 {
  display: none !important;
}

/* Если в верхнем блоке был только маленький заголовок — убираем весь пустой ряд */
.workspace-card > .section-head:first-child:has(h2:only-child) {
  display: none !important;
}

/* Если рядом есть кнопка "+ Ավելացնել" или "Տպել" — оставляем только кнопку справа */
.workspace-card > .section-head:first-child {
  justify-content: flex-end !important;
}

.dashboard-chart-legend-v2 {
  display: none !important;
}
/*******************************************************
 * COFOUNDER VIEWER MODE
 *******************************************************/

body.viewer-mode .workspace-card {
  position: relative;
}

body.viewer-mode .workspace-card::after {
  content: "Միայն դիտում";
  position: absolute;
  top: 22px;
  right: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(47, 158, 68, 0.12);
  color: #2f7d3a;
  font-weight: 900;
  font-size: 13px;
  pointer-events: none;
}

.viewer-print-button {
  margin-left: auto;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(79, 0, 19, 0.16);
  background: #fff;
  color: var(--wine);
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(79, 0, 19, 0.08);
}

.viewer-print-button:hover {
  background: rgba(79, 0, 19, 0.04);
}

.viewer-disabled-control {
  opacity: 0.72 !important;
  cursor: not-allowed !important;
}

body.viewer-mode button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

@media print {
  .viewer-print-button,
  body.viewer-mode .workspace-card::after,
  .sidebar,
  .topbar,
  .app-sidebar {
    display: none !important;
  }

  body,
  .app,
  .main,
  .page,
  .workspace-card {
    background: #fff !important;
    box-shadow: none !important;
  }
}
/*******************************************************
 * COFOUNDER CLEAN VIEW
 *******************************************************/

body.viewer-mode .workspace-card::after {
  display: none !important;
  content: none !important;
}

body.viewer-mode .viewer-print-button {
  display: none !important;
}

body.viewer-mode .employees-access-table,
body.viewer-mode .employee-access-table,
body.viewer-mode .access-table,
body.viewer-mode .login-access-table {
  display: none !important;
}
/*******************************************************
 * COFOUNDER — HIDE EMPLOYEE ACCESS TABLE
 *******************************************************/

body.viewer-mode .employees-tables-stack .employees-subcard:nth-child(2) {
  display: none !important;
}

.professional-chart-legend {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.professional-chart-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(79, 0, 19, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--wine) !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.professional-chart-legend-item i {
  display: inline-block !important;
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  border-radius: 999px !important;
}

/*******************************************************
 * EVALUATIONS STATUS COLORS
 *******************************************************/

.evaluation-status-pass,
.evaluation-status-fail {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 120px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.evaluation-status-pass {
  background: rgba(47, 158, 68, 0.12) !important;
  color: #2f9e44 !important;
}

.evaluation-status-fail {
  background: rgba(211, 59, 59, 0.10) !important;
  color: #d33b3b !important;
}

.dashboard-chart-empty {
  min-height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #8c7f83 !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  border-top: 1px solid rgba(79, 0, 19, 0.08) !important;
}

.dashboard-chart-svg-wrap {
  position: relative !important;
  overflow: visible !important;
}

.dashboard-chart-tooltip {
  position: absolute !important;
  z-index: 50 !important;
  max-width: 260px !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
.login-error-message {
  margin-top: 8px !important;
  color: #d33b3b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.login-error-message.hidden {
  display: none !important;
}
.dashboard-chart-empty {
  min-height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #8c7f83 !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  border-top: 1px solid rgba(79, 0, 19, 0.08) !important;
}

.dashboard-chart-svg-wrap {
  position: relative !important;
  overflow: visible !important;
}

.dashboard-chart-tooltip {
  position: absolute !important;
  z-index: 999 !important;
  max-width: 260px !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/*******************************************************
 * MOBILE RESPONSIVE
 *******************************************************/

@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    font-size: 14px !important;
  }

  .layout,
  .app-layout,
  .app-shell,
  .shell,
  .main-layout {
    display: block !important;
    width: 100% !important;
    min-height: 100dvh !important;
  }

  .sidebar,
  .app-sidebar,
  aside {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    padding: 22px 18px !important;
    border-radius: 0 0 26px 26px !important;
  }

  .sidebar nav,
  .sidebar-menu,
  .nav-menu,
  .menu,
  .navigation {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 14px 0 8px !important;
    margin: 12px 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .sidebar nav > *,
  .sidebar-menu > *,
  .nav-menu > *,
  .menu > *,
  .navigation > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start !important;
  }

  .sidebar a,
  .sidebar button,
  .nav-item {
    min-height: 44px !important;
    padding: 12px 16px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }

  .sidebar .user-card,
  .sidebar-user,
  .current-user,
  .profile-card {
    margin-top: 14px !important;
    width: 100% !important;
  }

  .sidebar .logout-btn,
  .logout-button {
    width: 100% !important;
    min-height: 46px !important;
  }

  .main,
  .content,
  .page,
  .app-main,
  main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 18px 14px 28px !important;
  }

  h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .dashboard-filters,
  .filters,
  .filter-row,
  .page-filters,
  .professional-filters {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .dashboard-filters select,
  .filters select,
  .filter-row select,
  .page-filters select,
  .professional-filters select,
  input,
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .dashboard-grid,
  .dashboard-cards,
  .stats-grid,
  .cards-grid,
  .professional-grid,
  .summary-grid,
  .kpi-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .card,
  .dashboard-card,
  .stat-card,
  .professional-card,
  .panel,
  .section-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px !important;
  }

  .tabs,
  .tab-row,
  .professional-tabs {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tabs button,
  .tab-row button,
  .professional-tabs button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .table-wrap,
  .table-wrapper,
  .data-table-wrap,
  .professional-table-wrap,
  .admin-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  table {
    min-width: 760px !important;
  }

  .dashboard-chart-svg-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .dashboard-chart-svg-wrap svg {
    min-width: 720px !important;
  }

  .dashboard-chart-tooltip {
    display: none !important;
  }

  .modal,
  .dialog,
  .popup {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 12px !important;
  }

  .login-card,
  .auth-card {
    width: calc(100% - 28px) !important;
    max-width: 460px !important;
    padding: 28px 22px !important;
  }
}

/*******************************************************
 * VACATION CANCEL MODAL
 *******************************************************/

body.vacation-modal-open {
  overflow: hidden !important;
}

.vacation-cancel-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.vacation-cancel-modal.hidden {
  display: none !important;
}

.vacation-cancel-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(32, 0, 8, 0.52) !important;
  backdrop-filter: blur(5px) !important;
}

.vacation-cancel-dialog {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 460px !important;
  padding: 30px !important;
  background: #ffffff !important;
  border: 1px solid rgba(79, 0, 19, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 70px rgba(79, 0, 19, 0.24) !important;
  text-align: center !important;
}

.vacation-cancel-icon {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #fff0f2 !important;
  color: #a3152a !important;
}

.vacation-cancel-dialog h3 {
  margin: 0 0 14px !important;
  color: #4f0013 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.vacation-cancel-dialog p {
  margin: 0 0 10px !important;
  color: #3c3033 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.vacation-cancel-note {
  color: #7b686d !important;
  font-size: 14px !important;
}

.vacation-cancel-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

.vacation-cancel-actions button {
  min-height: 46px !important;
  padding: 11px 18px !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  font-weight: 800 !important;
}

.vacation-cancel-confirm-btn {
  border: 0 !important;
  background: #7b001e !important;
  color: #ffffff !important;
}

.vacation-cancel-confirm-btn:hover {
  background: #5d0017 !important;
}

@media (max-width: 600px) {
  .vacation-cancel-dialog {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .vacation-cancel-actions {
    flex-direction: column-reverse !important;
  }

  .vacation-cancel-actions button {
    width: 100% !important;
  }
}