:root {
  --ink: #24332d;
  --muted: #758078;
  --line: #e7ebe7;
  --paper: #fff;
  --bg: #f6f7f3;
  --green: #1f6d50;
  --mint: #dff0e7;
  --orange: #e5914c;
  --purple: #7a68b1;
  --red: #be5d51;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
}

.shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 252px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 25px 13px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #234c3d;
  text-decoration: none;
  padding: 0 12px 25px;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: #d3e9dc;
  border-radius: 10px;
  width: 31px;
  height: 31px;
  font-family: Arial;
  font-size: 24px;
}

.workspace {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 22px;
  font-size: 12px;
}

.workspace small,
.user small,
.cafe-cell small,
.invoice-row small,
.action-list small,
.transaction small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.workspace > span:last-child {
  margin-left: auto;
}

.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #d6eee3;
  color: #24644d;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.avatar.small {
  width: 25px;
  height: 25px;
  font-size: 9px;
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar nav p {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9ba49e;
  font-weight: 700;
  margin: 19px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f6d65;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 7px;
  margin: 2px 0;
  font-weight: 500;
}

.nav-item i {
  font-style: normal;
  font-size: 17px;
  width: 16px;
  text-align: center;
}

.nav-item.active {
  background: #e2f0e8;
  color: #226449;
  font-weight: 700;
}

.pill {
  font-size: 10px;
  background: #eff1ef;
  border-radius: 10px;
  padding: 2px 7px;
  margin-left: auto;
}

.pill.warning {
  background: #fff0df;
  color: #bb6d27;
}

.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 5px 0;
  position: relative;
}

.support {
  background: none;
  border: 0;
  color: #627069;
  padding: 8px;
  font-family: inherit;
  cursor: pointer;
}

.user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  padding: 0;
}

.user > span:last-child {
  margin-left: auto;
}

.role-menu {
  display: none;
  position: absolute;
  bottom: 65px;
  left: 0;
  width: 236px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px #1d32261c;
  z-index: 10;
}

.role-menu.open {
  display: block;
}

.role-menu p {
  font-size: 9px;
  color: #99a39c;
  letter-spacing: 0.9px;
  font-weight: bold;
  margin: 4px 7px 7px;
}

.role-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px;
  display: flex;
  text-align: left;
  gap: 10px;
  color: #4b5e54;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}

.role-menu button:hover {
  background: #eff6f1;
}

.role-menu small {
  display: block;
  font-size: 10px;
  color: #839087;
  margin-top: 2px;
}

.menu-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.logout-btn {
  color: var(--red) !important;
}

.logout-btn:hover {
  background: #fbe9e7 !important;
}

/* MAIN CONTENT */
main {
  margin-left: 252px;
  width: calc(100% - 252px);
  padding: 0 38px 42px;
}

header {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crumb b {
  font-size: 15px;
}

.crumb span {
  color: #9aa39c;
  font-size: 12px;
  margin-left: 15px;
}

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

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #62716a;
  position: relative;
  cursor: pointer;
}

.notification em {
  background: #db653e;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  position: absolute;
  right: 0;
  top: 3px;
}

.export,
.select,
.secondary {
  font: 500 12px inherit;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 9px 12px;
  color: #526058;
  cursor: pointer;
}

.export {
  box-shadow: 0 1px 1px #ddd;
}

.mobile-menu {
  display: none;
}

.view {
  display: none;
}

.view.current {
  display: block;
}

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 38px 0 26px;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.25px;
  color: #5d8875;
  font-weight: 700;
  margin: 0 0 8px;
}

.welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: 29px;
  margin: 0 0 6px;
}

.welcome h1 span {
  font-family: Arial;
  font-size: 22px;
}

.welcome > div > p:last-child,
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.primary {
  border: 0;
  background: #246b50;
  color: white;
  border-radius: 7px;
  font: 600 13px inherit;
  padding: 11px 16px;
  box-shadow: 0 2px 4px #20614733;
  cursor: pointer;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card,
.panel,
.wallet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stat-card {
  padding: 18px;
  min-height: 174px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  color: #66736b;
  font-size: 12px;
}

.trend,
.purple {
  color: #438766;
  font-size: 11px;
  background: #e7f3eb;
  padding: 3px 6px;
  border-radius: 4px;
}

.purple {
  color: #735ea9;
  background: #f0ecf8;
}

.coin {
  color: #df9b35;
}

.green-dot {
  color: #3c9b6a;
}

.stat-card strong {
  display: block;
  font-size: 23px;
  margin: 13px 0;
}

.stat-card strong small {
  font-size: 13px;
  font-weight: 500;
}

.stat-card > small {
  color: #8b968f;
  font-size: 10px;
}

.chart {
  height: 29px;
  margin-bottom: 6px;
}

.bars {
  display: flex;
  gap: 4px;
  align-items: end;
}

.bars i {
  background: #cfe9dc;
  width: 9px;
  border-radius: 2px;
  height: 30%;
}

.bars i:nth-child(2n) {
  height: 57%;
  background: #8fc8a8;
}

.bars i:nth-child(3n) {
  height: 85%;
  background: #4a9b72;
}

.progress {
  height: 7px;
  background: #f0f1ef;
  border-radius: 10px;
  margin: 20px 0 13px;
}

.progress i {
  display: block;
  height: 100%;
  background: #5ab080;
  border-radius: 10px;
}

.sparkline {
  font-size: 19px;
  color: #836dbc;
  letter-spacing: -3px;
  margin: 15px 0 7px;
}

.tiers {
  margin: 17px 0 9px;
  display: flex;
  gap: 8px;
  font-size: 10px;
}

.diamond {
  color: #8d72bc;
}

.gold {
  color: #c88724;
}

/* DASHBOARD GRID & CHARTS */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.panel-head h2 {
  font-size: 15px;
  margin: 0 0 4px;
}

.panel-head > a,
.all-link {
  color: #287253;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}

.legend {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  font-size: 11px;
  color: #728078;
  margin: 15px 5px 4px;
}

.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-a {
  background: #287352;
}

.legend-b {
  background: #d9a268;
}

.line-chart {
  height: 218px;
  position: relative;
  padding-left: 38px;
}

.line-chart svg {
  height: 190px;
  width: 100%;
  overflow: visible;
}

.line {
  fill: none;
  stroke-width: 3;
}

.main-line {
  stroke: #237251;
}

.sub-line {
  stroke: #d99b5f;
  stroke-width: 2.5;
}

.area {
  fill: #e3f1e9;
  opacity: 0.9;
}

.yaxis {
  position: absolute;
  left: 0;
  top: 0;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: #a1aaa4;
}

.xaxis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a1aaa4;
}

.action-list > div {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}

.action-icon,
.trans-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.orange {
  color: #be742d;
  background: #fff0df;
}

.blue {
  color: #537db1;
  background: #eaf1fb;
}

.red {
  color: #be5d51;
  background: #fbe9e7;
}

.action-list p {
  margin: 0;
  flex: 1;
  font-size: 12px;
}

.action-list button {
  color: #27704f;
  background: none;
  border: 0;
  font: 600 11px inherit;
  cursor: pointer;
}

.all-link {
  display: block;
  text-align: center;
  margin-top: 14px;
}

/* TABLES */
.partner-panel {
  margin-top: 16px;
}

.partner-table .tr {
  display: grid;
  grid-template-columns: 2.3fr 0.8fr 1.2fr 0.8fr 1fr 0.9fr 0.8fr;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.hr-list .tr {
  grid-template-columns: 1.5fr 1.5fr 1.8fr 0.8fr 0.8fr 1fr;
}

.partner-table .th {
  font-size: 10px;
  font-weight: 700;
  color: #89938c;
  text-transform: uppercase;
  padding-top: 16px;
}

.partner-table .tr:last-child {
  border: 0;
}

.cafe-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cafe-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
}

.amber {
  background: #f9e4c8;
  color: #985d24;
}

.purple-bg {
  background: #e8e0f4;
  color: #6d55a7;
}

.teal {
  background: #d5eee9;
  color: #287b69;
}

.tier {
  font-size: 11px;
}

.status {
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 8px;
  white-space: nowrap;
}

.status.paid {
  color: #34805c;
  background: #e8f4ec;
}

.status.pending {
  color: #b46d29;
  background: #fff1df;
}

.status.rejected {
  color: #a0473d;
  background: #fbe9e7;
}

.compact {
  padding-bottom: 22px;
}

.toolbar {
  display: flex;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.toolbar input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  font: 12px inherit;
}

.invoice-row {
  display: grid;
  grid-template-columns: 0.8fr 2fr 1.2fr 0.9fr 0.8fr 0.9fr;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 12px;
}

.invoice-row.head {
  color: #89938c;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

/* WALLET CARDS */
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-card {
  padding: 22px;
  color: white;
  border: 0;
}

.coin-card {
  background: linear-gradient(120deg, #176147, #35936b);
}

.point-card {
  background: linear-gradient(120deg, #63508e, #9177b6);
}

.wallet-card > span {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.85;
}

.wallet-card h2 {
  font-size: 29px;
  margin: 13px 0 5px;
}

.wallet-card h2 small {
  font-size: 14px;
}

.wallet-card p {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.wallet-card > div {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 5px 9px;
  align-items: center;
}

.wallet-card > div small {
  font-size: 10px;
  opacity: 0.75;
}

/* MODAL */
.modal-backdrop {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: #18251f88;
  z-index: 20;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  width: min(500px, calc(100% - 28px));
  border-radius: 12px;
  padding: 26px;
  position: relative;
  box-shadow: 0 15px 60px #0004;
}

.modal h2 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', serif;
}

.close {
  border: 0;
  background: none;
  font-size: 25px;
  cursor: pointer;
}

.modal > .close {
  position: absolute;
  right: 15px;
  top: 10px;
}

.modal label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 13px;
}

.modal input,
.modal select {
  font: 13px inherit;
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 6px;
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #234f3d;
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  transform: translateY(100px);
  transition: 0.25s;
  z-index: 30;
}

.toast.show {
  transform: translateY(0);
}

.status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.row-actions {
  display: flex;
  gap: 5px;
}

.row-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  color: #246b50;
  cursor: pointer;
  font: 700 10px inherit;
  padding: 5px 8px;
}

.row-actions button:hover {
  background: #f0f7f3;
}

.empty-row {
  padding: 18px 4px;
  color: #7d8982;
  font-size: 12px;
}

/* Phân quyền Role View */
body.role-partner [data-view="analytics"],
body.role-partner [data-view="cafes"],
body.role-partner [data-view="hrManagement"],
body.role-partner [data-view="attendance"],
body.role-partner [data-view="programs"],
body.role-partner [data-view="settings"],
body.role-hr [data-view="analytics"],
body.role-hr [data-view="cafes"],
body.role-hr [data-view="hrManagement"],
body.role-hr [data-view="reconcile"],
body.role-hr [data-view="wallet"],
body.role-hr [data-view="programs"],
body.role-hr [data-view="settings"] {
  display: none;
}

body.role-partner .export,
body.role-hr .export {
  display: none;
}

.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 5px 0;
  position: relative;
}

.role-menu {
  display: none;
  position: absolute;
  bottom: 75px;
  left: 8px;
  width: 236px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.role-menu.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar { width: 210px; }
  main { margin-left: 210px; width: calc(100% - 210px); padding: 0 22px; }
  .partner-table { overflow-x: auto; }
  .partner-table .tr { min-width: 820px; }
}

@media (max-width: 700px) {
  .sidebar { transform: translateX(-100%); transition: 0.2s; }
  .sidebar.open { transform: translateX(0); box-shadow: 3px 0 18px #0002; }
  .mobile-menu { display: block; border: 0; background: none; font-size: 21px; cursor: pointer; }
  main { margin: 0; width: 100%; padding: 0 16px; }
}

/* ==========================================
   CSS CHO TRANG HỒ SƠ & THÔNG TIN CÁ NHÂN
   ========================================== */

.profile-hero-card {
  background: linear-gradient(135deg, #1d4838 0%, #296850 100%);
  border-radius: 12px;
  padding: 24px 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(29, 72, 56, 0.15);
}

.profile-hero-avatar {
  width: 64px;
  height: 64px;
  background: #dff0e7;
  color: #1a4f3c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.profile-hero-info {
  flex: 1;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.profile-hero-name-row h2 {
  margin: 0;
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.3px;
}

.badge-role {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.profile-hero-meta {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-sep {
  opacity: 0.5;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: start;
}

.profile-panel {
  padding: 24px;
  border-radius: 12px;
}

.profile-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #3b4c44;
}

.field-label .req {
  color: var(--red);
}

.field-label small {
  color: var(--muted);
  font-weight: normal;
}

.custom-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font: 13px inherit;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.custom-input:focus {
  border-color: #246b50;
  box-shadow: 0 0 0 3px rgba(36, 107, 80, 0.12);
}

.readonly-input {
  background: #f6f8f6 !important;
  color: #6c7a72 !important;
  border-style: dashed;
  cursor: not-allowed;
}

.partner-cafe-box {
  background: #fbfcfb;
  border: 1px solid #e1e9e4;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.box-icon {
  font-size: 18px;
  background: #eef6f2;
  padding: 6px;
  border-radius: 8px;
}

.box-header strong {
  display: block;
  font-size: 13px;
  color: #244b3c;
}

.box-header small {
  color: var(--muted);
  font-size: 11px;
}

.form-footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-save {
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .form-group-grid {
    grid-template-columns: 1fr;
  }
}

.row-hover {
  transition: background-color 0.15s ease;
}

.row-hover:hover {
  background-color: #f7faf8;
}

.modal {
  position: relative; /* Đảm bảo căn vị trí tuyệt đối cho nút đóng */
}

.modal > .close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #f0f3f1;
  color: #4b5a52;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.15s;
}

.modal > .close:hover {
  background: #fbe9e7;
  color: #be5d51;
} 

/* ==========================================
   CẬP NHẬT HIỂN THỊ VÍ TRÊN HEADER
   ========================================== */

/* Đổi vị trí: Đưa chuông thông báo sang trái, ví ra góc phải */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-wallet-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f7f3;
  border: 1px solid #c8e2d4;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.wallet-pill {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Phóng to số dư để to rõ, dễ nhìn */
.coin-pill strong {
  color: #185c43;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.point-pill strong {
  color: #554182;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.wallet-pill small {
  color: #6b7c73;
  font-size: 11.5px;
  font-weight: 500;
}

/* ==========================================
   TỐI ƯU CÁC NÚT THAO TÁC TRONG BẢNG (TABLE ACTIONS)
   ========================================== */

/* Cố định vùng chứa nút thao tác không bị đẩy dòng */
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

/* Kiểu dáng chung cho tất cả các nút trong bảng */
.row-actions button,
.btn-view-cafe,
.btn-view-hr,
.btn-toggle-hr-status {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f8faf9;
  color: #3b4c44;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 1. Nút Xem (Icon mắt) */
.btn-view-cafe:hover,
.btn-view-hr:hover {
  background: #eef6f2;
  border-color: #b7ded0;
  color: #1f6d50;
}

/* 2. Nút Bật / Tạm dừng (Trạng thái) */
.row-actions button[data-cafe-action="toggle-status"],
.btn-toggle-hr-status {
  background: #f4f6f5;
  color: #55635b;
}

.row-actions button[data-cafe-action="toggle-status"]:hover,
.btn-toggle-hr-status:hover {
  background: #eef2f5;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* 3. Nút Duyệt hóa đơn (Approve) */
.row-actions button[data-invoice-action="approved"] {
  background: #edf7f2;
  color: #1b5e3f;
  border-color: #b8e2cb;
}

.row-actions button[data-invoice-action="approved"]:hover {
  background: #1b5e3f;
  color: #fff;
  border-color: #1b5e3f;
}

/* 4. Nút Từ chối hóa đơn (Rejected) */
.row-actions button[data-invoice-action="rejected"] {
  background: #fdf2f0;
  color: #b9382e;
  border-color: #f7c5c0;
}

.row-actions button[data-invoice-action="rejected"]:hover {
  background: #b9382e;
  color: #fff;
  border-color: #b9382e;
}