:root {
  --em-primary: #003b73;
  --em-blue: #0056a6;
  --em-green: #0f8f3a;
  --em-light-green: #42b947;
  --em-dark: #102033;
  --em-soft: #f4f8fb;
  --em-border: #e3edf5;
  --em-white: #ffffff;
  --em-danger: #dc3545;
  --em-warning: #ffc107;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--em-soft);
  color: var(--em-dark);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.app-header strong {
  display: block;
  font-size: 15px;
}

.app-header small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 3px;
}

.app-header img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: white;
  border-radius: 14px;
  padding: 4px;
}

.app-main {
  padding: 18px;
  padding-bottom: 90px;
}

.dashboard-hero {
  background: linear-gradient(135deg, #ffffff, #eaf7ef);
  border: 1px solid var(--em-border);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
}

.dashboard-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.dashboard-hero p {
  margin: 0;
  color: #607080;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card,
.finance-card,
.section-card {
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.stat-card span,
.finance-card span {
  display: block;
  font-size: 12px;
  color: #6c7a89;
  margin-bottom: 8px;
}

.stat-card strong,
.finance-card strong {
  font-size: 22px;
  color: var(--em-primary);
}

.finance-card {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.section-card {
  margin-top: 14px;
}

.section-card h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.list-card {
  display: block;
  text-decoration: none;
  color: var(--em-dark);
  border: 1px solid var(--em-border);
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 10px;
  background: #fbfdff;
}

.list-card strong,
.list-card span,
.list-card small {
  display: block;
}

.list-card span {
  margin-top: 4px;
  color: #5d6d7e;
}

.list-card small {
  margin-top: 5px;
  color: #8a98a8;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: white;
  border-top: 1px solid var(--em-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 20;
}

.bottom-nav a {
  text-decoration: none;
  color: #7b8794;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.bottom-nav a.active {
  color: var(--em-green);
}

.toast {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 72px;
  padding: 13px 15px;
  border-radius: 16px;
  color: white;
  z-index: 60;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  animation: slideDown 0.25s ease;
  font-size: 13px;
  font-weight: 600;
}

@keyframes slideDown {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-success {
  background: var(--em-green);
}
.toast-error {
  background: var(--em-danger);
}
.toast-warning {
  background: #b58100;
}
.toast-info {
  background: var(--em-blue);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: white;
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.login-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 14px;
}

.login-card h1 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--em-primary);
}

.login-card p {
  margin: 0 0 24px;
  font-size: 13px;
  color: #6c7a89;
  line-height: 1.5;
}

.form-group {
  text-align: left;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  border: 1px solid var(--em-border);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--em-green);
}

.btn-primary-full {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.empty {
  color: #7b8794;
  margin: 0;
}

.enterprise-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  background:
    radial-gradient(
      circle at top right,
      rgba(66, 185, 71, 0.2),
      transparent 34%
    ),
    linear-gradient(135deg, #ffffff, #eef8f1);
}

.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 143, 58, 0.1);
  color: var(--em-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-action {
  flex-shrink: 0;
}

.btn-hero {
  display: inline-flex;
  text-decoration: none;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 59, 115, 0.2);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi-card {
  text-decoration: none;
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
  color: var(--em-dark);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card span {
  color: #6b7a8a;
  font-size: 12px;
  font-weight: 700;
}

.kpi-card strong {
  font-size: 28px;
  color: var(--em-primary);
  line-height: 1;
}

.kpi-card small {
  color: #8a98a8;
  font-size: 11px;
  line-height: 1.4;
}

.finance-overview {
  margin-top: 14px;
  background: linear-gradient(
    135deg,
    var(--em-primary),
    #075c83,
    var(--em-green)
  );
  color: white;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 38px rgba(0, 59, 115, 0.18);
}

.finance-main span,
.finance-mini span {
  display: block;
  font-size: 12px;
  opacity: 0.78;
  margin-bottom: 7px;
}

.finance-main strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}

.finance-main small {
  opacity: 0.78;
  font-size: 12px;
}

.finance-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.finance-mini div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 13px;
}

.finance-mini strong {
  font-size: 16px;
}

.quick-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.quick-actions a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--em-primary);
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.04);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  text-decoration: none;
  color: var(--em-green);
  font-size: 12px;
  font-weight: 800;
}

.enterprise-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enterprise-list div {
  min-width: 0;
}

.enterprise-list strong,
.enterprise-list span,
.enterprise-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  flex-shrink: 0;
  font-style: normal;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: #eef3f7;
  color: #617080;
}

.status-draft {
  background: #eef3f7;
  color: #617080;
}
.status-confirmed {
  background: #e7f1ff;
  color: #0056a6;
}
.status-in-progress {
  background: #fff6d9;
  color: #9a6a00;
}
.status-waiting-document {
  background: #fff0e5;
  color: #b85b00;
}
.status-completed {
  background: #e8f8ed;
  color: #0f8f3a;
}
.status-invoiced {
  background: #e6f7ff;
  color: #00749b;
}
.status-closed {
  background: #ecfdf3;
  color: #0f8f3a;
}
.status-cancelled {
  background: #fdeaea;
  color: #c62828;
}
.status-sent {
  background: #e7f1ff;
  color: #0056a6;
}
.status-partial {
  background: #fff6d9;
  color: #9a6a00;
}
.status-paid {
  background: #e8f8ed;
  color: #0f8f3a;
}
.status-overdue {
  background: #fdeaea;
  color: #c62828;
}

.text-success {
  color: #d7ffe1 !important;
}
.text-danger {
  color: #ffd5d5 !important;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .finance-mini {
    grid-template-columns: repeat(3, 1fr);
  }
}
.chart-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.chart-card {
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.section-head span {
  font-size: 11px;
  color: #8492a6;
  font-weight: 800;
}

.chart-bars {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

.chart-bar-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.bar-wrap {
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  background: linear-gradient(to top, #f3f7fb, #ffffff);
  border-radius: 14px;
  padding: 8px 4px;
}

.bar {
  display: block;
  width: 10px;
  min-height: 4px;
  border-radius: 999px 999px 4px 4px;
}

.bar-invoice {
  background: linear-gradient(to top, var(--em-primary), var(--em-blue));
}

.bar-paid {
  background: linear-gradient(to top, var(--em-green), var(--em-light-green));
}

.chart-bar-item small {
  font-size: 10px;
  color: #7b8794;
  text-align: center;
}

.chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.chart-legend span {
  font-size: 11px;
  color: #6c7a89;
  font-weight: 700;
}

.chart-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-invoice {
  background: var(--em-primary);
}

.legend-paid {
  background: var(--em-green);
}

.horizontal-chart {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.hbar-row {
  display: grid;
  gap: 7px;
}

.hbar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.hbar-label span {
  color: #5f6f80;
  font-weight: 800;
}

.hbar-label strong {
  color: var(--em-primary);
  font-size: 12px;
}

.hbar-track {
  width: 100%;
  height: 10px;
  background: #eef3f7;
  border-radius: 999px;
  overflow: hidden;
}

.hbar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--em-primary), var(--em-green));
  border-radius: 999px;
}

.error-state {
  min-height: 60vh;
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 28px;
  padding: 34px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.06);
}

.error-icon {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 18px;
}

.error-state h1 {
  margin: 0 0 10px;
  color: var(--em-primary);
  font-size: 24px;
}

.error-state p {
  margin: 0 0 20px;
  color: #6b7a8a;
  line-height: 1.6;
  max-width: 460px;
}

@media (min-width: 992px) {
  .chart-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.enterprise-body {
  background: #f4f8fb;
}

.enterprise-shell {
  min-height: 100vh;
  display: flex;
}

.enterprise-sidebar {
  width: 286px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #073b73, #062f5c 48%, #0f6f3a);
  color: white;
  padding: 22px;
  flex-direction: column;
  z-index: 30;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sidebar-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: white;
  border-radius: 16px;
  padding: 5px;
}

.sidebar-brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.sidebar-brand small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
}

.sidebar-menu {
  display: grid;
  gap: 8px;
}

.sidebar-menu a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-menu a i {
  font-size: 17px;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.sidebar-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 12px;
  border-radius: 14px;
}

.enterprise-content {
  width: 100%;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .enterprise-content {
    margin-left: 286px;
  }
}

.enterprise-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 74px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e3edf5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  border: 1px solid #e3edf5;
  background: white;
  color: #003b73;
  font-size: 22px;
}

.topbar-title {
  min-width: 0;
}

.topbar-title span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #0f8f3a;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.topbar-title h1 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 900;
  color: #102033;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid #e3edf5;
  color: #003b73;
  text-decoration: none;
  background: white;
}

.profile-pill {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #102033;
  background: white;
  border: 1px solid #e3edf5;
  border-radius: 999px;
  padding: 6px 7px 6px 14px;
}

.profile-pill div {
  display: none;
  text-align: right;
}

.profile-pill strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.profile-pill small {
  display: block;
  font-size: 10px;
  color: #6b7a8a;
}

.profile-pill span {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #003b73, #0f8f3a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

@media (min-width: 768px) {
  .profile-pill div {
    display: block;
  }
}

.enterprise-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 14px 94px;
}

@media (min-width: 768px) {
  .enterprise-main {
    padding: 24px 26px 110px;
  }
}

@media (min-width: 992px) {
  .enterprise-main {
    padding: 28px 32px;
  }
}

.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 66px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid #e3edf5;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.16);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 35;
}

.mobile-bottom-nav a {
  text-decoration: none;
  color: #7a8797;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
}

.mobile-bottom-nav a i {
  font-size: 18px;
}

.mobile-bottom-nav a.active {
  color: #0f8f3a;
}

.enterprise-offcanvas {
  border-right: 0;
}

.enterprise-offcanvas .offcanvas-header {
  border-bottom: 1px solid #e3edf5;
}

.enterprise-offcanvas .sidebar-brand strong {
  color: #102033;
}

.enterprise-offcanvas .sidebar-brand small {
  color: #6b7a8a;
  opacity: 1;
}

.mobile-drawer-menu a {
  color: #334155;
  background: #f8fbfd;
  border: 1px solid #edf2f7;
}

.mobile-drawer-menu a.active {
  background: linear-gradient(135deg, #003b73, #0f8f3a);
  color: white;
}

.mobile-drawer-menu .logout-link {
  color: #dc3545;
}

.toast {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 82px;
  padding: 13px 15px;
  border-radius: 16px;
  color: white;
  z-index: 70;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  animation: slideDown 0.25s ease;
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 992px) {
  .toast {
    left: auto;
    right: 24px;
    width: 360px;
  }
}

.confirm-modal {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
}

.confirm-modal .modal-body {
  padding: 28px;
  text-align: center;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff2f2;
  color: #dc3545;
  font-size: 34px;
}

.confirm-modal h5 {
  font-weight: 900;
  color: #102033;
  margin-bottom: 8px;
}

.confirm-modal p {
  color: #6b7a8a;
  margin-bottom: 22px;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-actions .btn {
  flex: 1;
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
}

.global-toast {
  position: fixed;
  top: 88px;
  right: 18px;
  left: 18px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 20px;
  color: white;
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.22);
  animation: toastShow 0.28s ease;
}

.global-toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  font-size: 19px;
}

.global-toast-body {
  flex: 1;
  min-width: 0;
}

.global-toast-body strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 3px;
}

.global-toast-body span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.92;
}

.global-toast button {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success {
  background: linear-gradient(135deg, #0f8f3a, #42b947);
}

.toast-error {
  background: linear-gradient(135deg, #b42318, #dc3545);
}

.toast-warning {
  background: linear-gradient(135deg, #b7791f, #f6ad55);
}

.toast-info {
  background: linear-gradient(135deg, #003b73, #0056a6);
}

.toast-hide {
  animation: toastHide 0.28s ease forwards;
}

@keyframes toastShow {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastHide {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-16px);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .global-toast {
    left: auto;
    width: 390px;
    top: 92px;
  }
}

.page-hero {
  background:
    radial-gradient(
      circle at top right,
      rgba(66, 185, 71, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, #ffffff, #eef8f1);
  border: 1px solid var(--em-border);
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.page-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: var(--em-primary);
}

.page-hero p {
  margin: 0;
  color: #6b7a8a;
  line-height: 1.5;
}

.enterprise-card {
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.client-card {
  border: 1px solid var(--em-border);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.04);
}

.client-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.client-card-head strong {
  display: block;
  color: #102033;
  font-size: 15px;
  font-weight: 900;
}

.client-card-head small {
  display: block;
  color: #7b8794;
  margin-top: 3px;
  font-size: 12px;
}

.client-info {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.client-info span {
  color: #607080;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-info i {
  color: var(--em-green);
}

.client-card-foot {
  border-top: 1px solid var(--em-border);
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--em-border);
  padding-top: 16px;
  margin-top: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.detail-grid div {
  border: 1px solid var(--em-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfdff;
}

.detail-grid small {
  display: block;
  color: #7b8794;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-grid strong {
  color: #102033;
  font-size: 14px;
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 40px 18px;
}

.empty-state i {
  font-size: 46px;
  color: var(--em-green);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--em-primary);
  margin: 14px 0 8px;
}

.empty-state p {
  color: #6b7a8a;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-span {
    grid-column: span 2;
  }
}

@media (min-width: 1200px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.client-workspace {
  display: grid;
  gap: 16px;
}

.client-hero {
  border-radius: 30px;
  padding: 22px;
  background:
    radial-gradient(
      circle at top right,
      rgba(66, 185, 71, 0.22),
      transparent 36%
    ),
    linear-gradient(135deg, #ffffff, #eef8f1);
  border: 1px solid var(--em-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 14px 35px rgba(16, 32, 51, 0.06);
}

.client-hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 900;
  color: var(--em-primary);
}

.client-hero p {
  margin: 0;
  color: #64748b;
}

.client-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.client-kpi {
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.05);
}

.client-kpi span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.client-kpi strong {
  display: block;
  color: var(--em-primary);
  font-size: 28px;
  line-height: 1;
}

.client-panel {
  background: white;
  border: 1px solid var(--em-border);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 35px rgba(16, 32, 51, 0.06);
}

.client-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  height: 50px;
  border: 1px solid var(--em-border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  background: #f8fbfd;
}

.search-box i {
  color: var(--em-green);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

.client-table table thead th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--em-border);
}

.client-table table tbody td {
  padding: 16px 10px;
  border-bottom: 1px solid #edf2f7;
}

.company-cell,
.client-mobile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.company-logo.big {
  width: 74px;
  height: 74px;
  border-radius: 26px;
  font-size: 30px;
  margin: 0 auto 14px;
}

.company-cell strong,
.client-mobile-head strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #102033;
}

.company-cell small,
.client-mobile-head small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.client-mobile-list {
  display: grid;
  gap: 12px;
}

.client-mobile-card {
  border: 1px solid var(--em-border);
  border-radius: 24px;
  padding: 15px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.client-mobile-info {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.client-mobile-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-mobile-info i {
  color: var(--em-green);
}

.client-mobile-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--em-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-fab {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--em-primary), var(--em-green));
  color: white;
  font-size: 24px;
  box-shadow: 0 18px 42px rgba(0, 59, 115, 0.28);
  z-index: 40;
}

.enterprise-modal {
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(16, 32, 51, 0.3);
}

.enterprise-modal .modal-header {
  padding: 22px 24px;
  background: linear-gradient(135deg, #f8fbfd, #eef8f1);
  border-bottom: 1px solid var(--em-border);
}

.enterprise-modal .modal-title {
  font-weight: 900;
  color: var(--em-primary);
}

.enterprise-modal .modal-body {
  padding: 24px;
}

.enterprise-modal .modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--em-border);
  background: #fbfdff;
}

.client-detail-drawer {
  width: 480px !important;
  border-left: 0;
}

.client-detail-drawer .offcanvas-header {
  border-bottom: 1px solid var(--em-border);
  padding: 22px;
}

.client-detail-drawer .offcanvas-body {
  padding: 22px;
}

.detail-profile {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #eef8f1);
  border: 1px solid var(--em-border);
  border-radius: 26px;
  margin-bottom: 16px;
}

.detail-profile h4 {
  font-weight: 900;
  color: var(--em-primary);
  margin-bottom: 10px;
}

.drawer-info {
  display: grid;
  gap: 12px;
}

.drawer-info div {
  border: 1px solid var(--em-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfdff;
}

.drawer-info small {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.drawer-info strong {
  font-size: 14px;
  color: #102033;
  line-height: 1.5;
}

.drawer-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .client-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.enterprise-modal {
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

.enterprise-modal .modal-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 3;
}

.enterprise-modal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 190px);
  padding-bottom: 24px;
}

.enterprise-modal .modal-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #fbfdff;
}

@media (max-width: 575.98px) {
  .modal-fullscreen-sm-down .enterprise-modal {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-fullscreen-sm-down .enterprise-modal .modal-body {
    max-height: calc(100vh - 150px);
    padding-bottom: 90px;
  }

  .modal-fullscreen-sm-down .enterprise-modal .modal-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: white;
    box-shadow: 0 -12px 30px rgba(16, 32, 51, 0.12);
  }

  .modal-fullscreen-sm-down .enterprise-modal .modal-footer .btn {
    flex: 1;
    min-height: 48px;
  }
}
