@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
  font-family: 'Untitled2';
  src: url('../fonts/Untitled2.woff2') format('woff2'),
    url('../fonts/Untitled2.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --main-color: #8DC650;
  --second-color: #09AEB8;
  --white-color: #fff;
  --black-color: #000;
  --gradient: linear-gradient(90deg, #8DC650 0%, #09AEB8 100%);
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 20px;
}


/* Sidebar logo swap for collapsed state */
.side-logo {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 115px;
}

/* default: show full logo, hide compact */
.side-logo .logo-full {
  display: block;
  height: 36px;
}

.side-logo .logo-compact {
  display: none;
  height: 28px;
}

/* when sidebar is collapsed: hide full, show compact */
.sidebar.collapsed .side-logo .logo-full {
  display: none;
}

.sidebar.collapsed .side-logo .logo-compact {
  display: block;
}

/* adjust alignment when collapsed (optional) */
.sidebar.collapsed .side-logo {
  justify-content: center;
  padding: 8px 0;
}


.welcome-section-right .hamburger {
  right: auto;
  top: 35px;
  left: 0%;
}

.side-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 150ms ease;
}

.hamburger img {
  width: 24px;
  height: 24px;
}

.sidebar.collapsed .hamburger {
  right: -20px;
  rotate: 180deg;
  border: 1px solid #d0f0c0;
  border-radius: 50px;
  background-color: white;
  padding: 3px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar.collapsed .hamburger img {
  width: 16px;
  height: 15px;
}

/* ------------- login ------------- */
.main-login {
  padding: 50px 100px 100px 100px;
}

.left-login-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.login-head-in h2 {
  font-size: 35px;
  color: #333;
  margin: 0;
  font-weight: 700;
}

.login-head-in p {
  font-size: 18px;
  color: #666;
  margin: 5px 0 0 0;
}

.right-login-head img {
  width: 180px;
}

.login-outr {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.login-outr::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  top: -400px;
  left: -200px;
}

.login-outr::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  bottom: -300px;
  right: -150px;
}

.login-container {
  background: white;
  border-radius: 20px;
  padding: 50px 60px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  /* margin-bottom: 35px; */
}

.input-group {
  margin-bottom: 25px;
  position: relative;
  display: block;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 45px 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  background: #fafafa;
  box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #4CAF50;
  background: white;
}

input::placeholder {
  color: #999;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  font-size: 18px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4CAF50;
}

.remember-me label {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  margin: 0;
  cursor: pointer;
}

.forgot-password {
  color: #8BC34A;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 15px;
  /* background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%); */
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 25px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.signup-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.signup-text a {
  color: #8BC34A;
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
}

.signup-text a:hover {
  text-decoration: underline;
}

.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e0e0e0;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  color: #999;
  font-size: 14px;
  padding: 0 15px;
  background: white;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn img {
  width: 24px;
  height: 24px;
}

.eye-icon {
  cursor: pointer;
  user-select: none;
}

/* ------------ END login ------------ */

/* ----------- dashboard ------------- */
/* Sidebar */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 20px 0;
  /* overflow-y: auto; */
  z-index: 100;
}

/* Desktop collapsed sidebar styles */
.sidebar.collapsed {
  width: 65px;
  transition: width 180ms ease;
}

/* Hide longer text labels but keep SVG icons visible.
   We can't simply set color:transparent because SVGs use currentColor for stroke.
   Setting font-size:0 hides text nodes while preserving SVG visuals. */
.sidebar.collapsed .logo-text,
.sidebar.collapsed .menu-label {
  display: none;
}

.sidebar.collapsed nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  font-size: 0;
  /* hides plain text while leaving svg intact */
  width: 100%;
  border-radius: 0;
}

.sidebar.collapsed .nav-item svg {
  margin-right: 0;
  display: block;
}

.sidebar.collapsed .nav-item .logout {}

/* If nav items include small helper spans or badges, hide them in collapsed */
.sidebar.collapsed .nav-item .badge,
.sidebar.collapsed .nav-item .nav-text,
.sidebar.collapsed .nav-item .menu-label {
  display: none;
}

/* When sidebar is collapsed reduce main-content margin */
.main-content.sidebar-collapsed {
  margin-left: 80px;
}

.header.sidebar-collapsed {
  padding-left: 20px;
  /* slight adjustment when sidebar is compact */
}

.logo {
  padding: 0 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00a1e0 0%, #0082b8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 161, 224, 0.3);
}

.menu-toggle {
  padding: 0 20px;
  margin-bottom: 20px;
  cursor: pointer;
  color: #64748b;
}

.nav-item {
  font-size: 15px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
  text-decoration: none;
  margin: 2px 0px;
  border-radius: 8px;
}

.nav-item.active {
  background: #8DC650;
  color: #fff;
  font-weight: 600;
}

.nav-item:hover {
  background: #8DC650;
  color: #fff;
  font-weight: 600;
}

.nav-item svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
}


.nav-item.logout {
  margin-top: auto;
  /* Push logout to bottom */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  width: 100%;
}

/* Collapsed state fixes */
.sidebar.collapsed .nav-item.logout {
  width: 65px;
  /* Match other nav items in collapsed state */
  padding: 12px;
  margin-left: auto;
  margin-right: auto;
  border-top: none;
  margin: 0;
}

/* Container to ensure logout stays at bottom */
.sidebar nav {
  display: flex;
  flex-direction: column;
  height: calc(100% - 80px);
  /* Adjust based on your logo height */
  padding-bottom: 16px;
}

/* .logout {
  position: fixed;
  bottom: 50px;
} */


/* Main Content */
.main-content {
  margin-left: 240px;
  padding: 0;
}

/* Header */
.header {
  background: white;
  padding: 12px 40px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.welcome-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.welcome-section p {
  font-size: 12px;
  color: #64748b;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 350px;
  padding: 8px 40px 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  font-size: 13px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #00a1e0;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.notification-icon {
  position: relative;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  padding: 6px;
  border-radius: 8px;
}

.notification-icon:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #e9446e 0%, #d63860 100%);
  color: white;
  font-size: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(233, 68, 110, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}


.user-profile {
  position: relative;
}

.user-profile .profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.user-profile .profile-trigger:hover {
  background-color: #f1f5f9;
}

.user-profile .profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 1000;
}

.user-profile .profile-dropdown.show {
  display: block;
}

.user-profile .dropdown-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.user-profile .dropdown-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.user-profile .dropdown-item svg {
  width: 16px;
  height: 16px;
}

/* .user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.user-profile:hover {
  background: #f8fafc;
} */

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a1e0 0%, #0082b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.user-info {
  text-align: right;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.user-email {
  font-size: 11px;
  color: #64748b;
}

/* Dashboard Content */
.dashboard-content {
  padding: 20px 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

select {
  padding: 8px 35px 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  color: #1e293b;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s ease;
}

select:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

select:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-export {
  background: #3ddc84;
  color: white;
}

.btn-export:hover {
  color: white;
  background: #2ec972;
  box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

.btn-details {
  background: #00a1e0;
  color: white;
}

.btn-details:hover {
  color: white;
  background: #0082b8;
  box-shadow: 0 4px 12px rgba(0, 161, 224, 0.3);
}

/* First Section Combined Layout - 2 rows of metrics + chart */
.first-section-combined {
  display: grid;
  grid-template-columns: repeat(3, 0.85fr) 2.5fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metrics-left-side {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.chart-right-side {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metrics-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: white;
  padding: 20px 18px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid #e8eaed;
  transition: all 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metric-title {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding: 10px;
  transition: all 0.3s ease;
  background-color: #F1F1F1;
}

.metric-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.metric-card:hover .metric-icon {
  transform: scale(1.05);
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.currency-symbol {
  font-family: 'Untitled2', "Arial Unicode MS", "Noto Sans Arabic", sans-serif;
}

.metric-change {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-change.positive {
  color: #16a34a;
}

.metric-change.negative {
  color: #dc2626;
}

/* Charts Grid */
/* .charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
} */

.charts-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  transition: all 0.3s ease;
}

.chart-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.chart-legend {
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  min-height: 36px;
  border-radius: 8px;
  background: #3ddc84;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
  background: #2ec972;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(61, 220, 132, 0.3);
}

.icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chart-container {
  position: relative;
  height: 300px;
}

.chart-right-side {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-right-side .chart-container {
  flex: 1;
  height: auto;
  min-height: 296px;
  max-height: 296px;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-card {
  animation: fadeInUp 0.6s ease-out;
}

.metric-card:nth-child(1) {
  animation-delay: 0.1s;
}

.metric-card:nth-child(2) {
  animation-delay: 0.2s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1600px) {
  .first-section-combined {
    grid-template-columns: repeat(3, 0.9fr) 2.3fr;
  }
}

@media (max-width: 1400px) {
  .first-section-combined {
    grid-template-columns: repeat(3, 1fr) 2fr;
  }

  .dashboard-content {
    padding: 20px 30px;
  }

  .header {
    padding: 12px 30px;
  }
}

@media (max-width: 1200px) {
  .first-section-combined {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .metrics-left-side {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  .chart-right-side {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .chart-right-side .chart-container {
    min-height: 280px;
    max-height: 280px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .metrics-left-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid,
  .metrics-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content {
    padding: 16px 20px;
  }

  .header {
    padding: 10px 20px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-box input {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .metrics-left-side,
  .metrics-grid,
  .metrics-row-2 {
    grid-template-columns: 1fr;
  }

  .first-section-combined {
    gap: 12px;
  }

  .metrics-left-side {
    gap: 12px;
  }

  .header {
    padding: 10px 16px;
  }

  .dashboard-content {
    padding: 16px;
  }

  .search-box {
    order: 4;
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .header-right {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .welcome-section h2 {
    font-size: 16px;
  }

  .welcome-section p {
    font-size: 11px;
  }

  .user-info {
    display: none;
  }

  .dashboard-header h1 {
    font-size: 18px;
  }

  .controls {
    width: 100%;
  }

  .control-group {
    flex: 1;
    min-width: 150px;
  }

  .control-group select {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .btn-export {
    max-width: fit-content;
  }

  .btn-details {
    max-width: fit-content;
  }

  .charts-grid {
    display: flex;
    flex-direction: column;
  }

  .first-section-combined {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .chart-header {
    display: block;
  }

  .chart-actions {
    flex-wrap: wrap;
    margin-top: 15px;
  }

  .side-logo {
    width: 75px;
  }

  .header {
    padding: 8px 12px;
  }

  .dashboard-content {
    padding: 12px;
  }

  .welcome-section h2 {
    font-size: 14px;
  }

  .welcome-section p {
    font-size: 10px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .dashboard-header h1 {
    font-size: 16px;
  }

  .metric-card {
    padding: 16px;
    min-height: 120px;
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-icon {
    width: 38px;
    height: 38px;
  }

  .chart-card {
    padding: 16px;
  }

  .charts-grid {
    gap: 12px;
  }

  .control-group {
    min-width: 120px;
  }

  .control-label {
    font-size: 11px;
  }

  select {
    font-size: 11px;
    padding: 6px 30px 6px 10px;
  }

  .sidebar {
    width: 185px;
  }
}

@media (max-width: 400px) {
  .header {
    padding: 8px;
  }

  .dashboard-content {
    padding: 10px;
  }

  .metric-card {
    padding: 14px;
    min-height: 110px;
  }

  .metric-value {
    font-size: 20px;
  }

  .metric-change {
    font-size: 10px;
  }

  .first-section-combined,
  .metrics-left-side {
    gap: 10px;
  }

  .control-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .control-group select {
    width: 100%;
  }
}

/* ------------- END dashboard --------------- */


/* ----------- customerse ------------- */
/* Page Content */
.page-content {
  padding: 20px 40px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-import {
  background: #00a1e0;
  color: white;
}

.btn-import:hover {
  color: white;
  background: #0082b8;
  box-shadow: 0 4px 12px rgba(0, 161, 224, 0.3);
}

.btn-add {
  background: #3ddc84;
  color: white;
}

.btn-add:hover {
  color: white;
  background: #2ec972;
  box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

/* Metrics Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  transition: all 0.3s ease;
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metric-title-section {
  flex: 1;
}

.metric-title {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

.metric-dropdown {
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* .metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
  transform: scale(1.05);
} */

/* .metric-value {
  font-size: 30px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
} */

.metric-change {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-change.positive {
  color: #16a34a;
}

.metric-change.negative {
  color: #dc2626;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  margin-bottom: 20px;
}

.filter-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.filter-select,
.filter-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  /* background: white; */
  color: #1e293b;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.btn-apply {
  background: #1e3a5f;
  color: white;
  padding: 10px 24px;
  height: 42px;
}

.btn-apply:hover {
  color: white;
  background: #152943;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Table Section */
.table-section {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.table-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.chart-header .btn-export {
  background: #b8d432;
  color: white;
  padding: 8px 16px;
  font-size: 13px;
}

.chart-header .btn-export:hover {
  color: white;
  background: #a3bd2c;
  box-shadow: 0 4px 12px rgba(163, 189, 44, 0.38);
}

/* Custom Table Styling */
.table-wrapper {
  overflow-x: auto;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.customers-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.customers-table tbody td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  vertical-align: middle;
}

.customers-table tbody tr:hover {
  background: #f8fafc;
}

.customers-table tbody tr:last-child td {
  border-bottom: none;
}

/* Custom Checkbox Styling */
.table-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #00a1e0;
}

/* Customer Name Styling */
.customer-name {
  color: #1e293b;
  font-weight: 500;
}

.customer-name a {
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
}

/* Email Styling */
.email-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.copy-icon {
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-icon:hover {
  color: #64748b;
}

/* Subscription Link */
.subscription-link {
  color: #00a1e0;
  text-decoration: none;
  font-weight: 500;
}

.subscription-link:hover {
  text-decoration: underline;
}

/* MRR Styling */
.mrr-cell {
  color: #1e293b;
  font-weight: 500;
}

/* Created Date Styling */
.created-cell {
  color: #64748b;
}

/* Status Badge */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* Action Icons */
.action-icons {
  display: flex;
  gap: 8px;
}

.action-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-icon.edit {
  background: #dbeafe;
  color: #1e40af;
}

.action-icon.edit:hover {
  background: #bfdbfe;
}

.action-icon.delete {
  background: #fee2e2;
  color: #dc2626;
}

.action-icon.delete:hover {
  background: #fecaca;
}

/* Table Footer / Pagination */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.items-per-page,
.page-selector {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.items-per-page:focus,
.page-selector:focus {
  outline: none;
  border-color: #00a1e0;
}

.items-label,
.page-info,
.page-total {
  color: #64748b;
}

.pagination-arrows {
  display: flex;
  gap: 4px;
}

.page-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.page-arrow:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

/* Responsive */
@media (max-width: 1400px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .btn-apply {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .page-content {
    padding: 16px;
  }

  .header {
    padding: 10px 16px;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .user-info {
    display: none;
  }

  .table-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .footer-left,
  .footer-right {
    justify-content: space-between;
  }
}


/* Filters applied toast */
.filter-toast {
  position: fixed;
  top: 2%;
  right: 2%;
  /* transform: translateX(-50%) translateY(-10px); */
  z-index: 1600;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .9, .3, 1);
  opacity: 0;
}

.filter-toast.visible {
  opacity: 1;
  pointer-events: auto;
  /* transform: translateX(-50%) translateY(0); */
}

.filter-toast-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #8dc650 0%, #bfca21 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-width: 320px;
  max-width: calc(100% - 40px);
  backdrop-filter: blur(6px);
}

.filter-toast-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  flex-shrink: 0;
}

.filter-toast-icon svg {
  display: block;
}

.filter-toast-body {
  flex: 1 1 auto;
  text-align: left;
}

.filter-toast-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.filter-toast-text {
  font-size: 13px;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
}

/* OK button */
.filter-toast-ok {
  background: rgba(255, 255, 255, 0.73);
  color: #575757;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background 160ms ease, transform 120ms ease;
  flex-shrink: 0;
}

.filter-toast-ok:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Responsive: smaller screens */
@media (max-width: 520px) {
  .filter-toast-card {
    padding: 12px;
    border-radius: 12px;
    min-width: 260px;
  }

  .filter-toast-title {
    font-size: 15px;
  }

  .filter-toast-text {
    font-size: 12px;
  }
}


/* Edit Customer modal */
.edit-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.edit-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.edit-modal-card {
  background: #fff;
  width: 380px;
  max-width: calc(100% - 32px);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  transform: translateY(8px);
  transition: transform 180ms ease;
  text-align: left;
}

.edit-modal.visible .edit-modal-card {
  transform: translateY(0);
}

.edit-modal-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #0f172a;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-label {
  font-size: 13px;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-input {
  padding: 10px 12px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.edit-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 6px 18px rgba(96, 165, 250, 0.12);
}

.edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-primary {
  background: linear-gradient(180deg, #ff6b6b, #ff3b3b);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-secondary {
  background: #f3f4f6;
  color: #0f172a;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 420px) {
  .edit-modal-card {
    width: calc(100% - 24px);
    padding: 16px;
    border-radius: 12px;
  }
}


/* Delete confirm modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.confirm-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal-card {
  background: #fff;
  width: 380px;
  max-width: calc(100% - 32px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.16);
  text-align: center;
  transform: translateY(8px);
  transition: transform 180ms ease;
}

.confirm-modal.visible .confirm-modal-card {
  transform: translateY(0);
}

.confirm-modal-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #0f172a;
}

.confirm-text {
  color: #6b7280;
  margin-bottom: 18px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-secondary {
  background: #f3f4f6;
  color: #0f172a;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 420px) {
  .confirm-modal-card {
    width: calc(100% - 24px);
    padding: 16px;
    border-radius: 10px;
  }
}

/* ------------- END customers --------------- */


/* ----------- customer view ------------- */
.btn-edit {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-edit:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-transaction {
  background: #1e3a5f;
  color: white;
}

.btn-transaction:hover {
  color: white;
  background: #152943;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-more {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
}

.btn-more:hover {
  background: #f8fafc;
}

/* Customer Layout with Left Sidebar */
.customer-content-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

/* Customer Sidebar */
.customer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-list-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
}

.customer-list-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: white;
}

.customer-list-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-customer-btn {
  width: 32px;
  height: 32px;
  background: #5cb85c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(92, 184, 92, 0.2);
  flex-shrink: 0;
}

.add-customer-btn:hover {
  background: #4cae4c;
  box-shadow: 0 4px 12px rgba(92, 184, 92, 0.4);
  transform: translateY(-1px);
}

.customer-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.customer-list::-webkit-scrollbar {
  width: 6px;
}

.customer-list::-webkit-scrollbar-track {
  background: #f8fafc;
}

.customer-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.customer-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.customer-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.customer-item:last-child {
  border-bottom: none;
}

.customer-item:hover {
  background: #f8fafc;
}

.customer-item.active {
  background: #e3f2fd;
  border-left: 4px solid #00a1e0;
  padding-left: 12px;
}

.customer-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00a1e0;
}

.customer-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.customer-item-amount {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Customer Detail */
.customer-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Profile and Stats Row */
.profile-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

/* Profile Card */
.profile-card {
  background: linear-gradient(135deg, #4db8c4 0%, #3a9eaa 100%);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.profile-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-id {
  font-size: 12px;
  opacity: 0.9;
}

.profile-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: white;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
}

.profile-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.contact-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Stats Card - Right Side */
.stats-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item-label {
  font-size: 12px;
  color: #64748b;
}

.stat-item-value {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

/* Content Card */
.content-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  overflow: hidden;
}

/* Tabs */
.tabs-container {
  border-bottom: 1px solid #e2e8f0;
  padding: 0 20px;
  background: #f8fafc;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs-container::-webkit-scrollbar {
  height: 4px;
}

.tabs-container::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.tabs-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.tabs {
  display: flex;
  gap: 4px;
  /* min-width: max-content; */
}

.tab {
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover {
  color: #1e293b;
  background: rgba(0, 161, 224, 0.05);
}

.tab.active {
  color: #00a1e0;
  border-bottom-color: #00a1e0;
  background: transparent !important;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

/* Info Alert */
.info-alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #856404;
  margin-bottom: 16px;
}

/* Language Tabs */
.language-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.language-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.language-tab.active {
  background: #b8d432;
  color: white;
}

.language-tab:not(.active) {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Address Sections */
.address-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.address-section {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.address-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.add-link {
  font-size: 12px;
  color: #00a1e0;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.add-link:hover {
  text-decoration: underline;
}

.address-content {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  word-wrap: break-word;
}

.no-address {
  font-style: italic;
  color: #94a3b8;
}

/* Details Grid */
.details-section {
  margin-bottom: 16px;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
}

.details-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  word-wrap: break-word;
}

/* Receivables */
.receivables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-text {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.btn-new {
  background: #3ddc84;
  color: white;
  padding: 10px 24px;
}

.btn-new:hover {
  background: #2ec972;
  box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* @media (min-width: 1600px) {
  .profile-content {
    display: block;
  }
  .profile-left{
    margin-bottom: 10px;
  }
} */

@media (min-width: 1920px) {
  .customer-content-layout {
    grid-template-columns: 350px 1fr;
  }

  .page-content {
    padding: 20px 48px;
  }
}

/* Large Desktop */
@media (max-width: 1600px) {
  .search-box input {
    width: 300px;
  }
}

/* Desktop */
@media (max-width: 1400px) {
  .customer-content-layout {
    grid-template-columns: 280px 1fr;
  }

  .search-box input {
    width: 250px;
  }

  .profile-content {
    gap: 16px;
  }

  .profile-right {
    padding-left: 16px;
  }
}

/* Laptop / Small Desktop */
@media (max-width: 1200px) {

  .customer-content-layout,
  .invoice-content-layout {
    grid-template-columns: 1fr;
  }

  .customer-sidebar {
    order: 2;
    margin-top: 0;
  }

  .customer-detail {
    order: 1;
  }

  .customer-list-card {
    height: 500px;
  }

  .profile-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header {
    padding: 12px 24px;
  }

  .page-content {
    padding: 16px 24px;
  }
}

/* Tablet Portrait */
@media (max-width: 992px) {
  .profile-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 16px;
    width: 100%;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .receivables-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-box input {
    width: 220px;
  }

  .stats-grid {
    gap: 16px;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: wrap;
  }
}

/* Mobile Landscape / Large Phone */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .welcome-section h2 {
    font-size: 16px;
  }

  .welcome-section p {
    font-size: 11px;
  }

  .header-right {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
    max-width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .user-info {
    display: none;
  }

  .page-content {
    padding: 12px 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-title-section h1 {
    font-size: 20px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
    min-width: 130px;
    max-width: fit-content;
    font-size: 12px;
    padding: 10px 12px;
  }

  .btn-more {
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px;
  }

  .address-sections {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .receivables-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-left {
    flex-direction: row;
    width: 100%;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 18px;
  }

  .profile-card {
    padding: 20px;
  }

  .stats-card {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customer-list-card {
    height: auto;
    min-height: 400px;
    max-height: 500px;
  }

  .tab {
    font-size: 12px;
    padding: 12px 14px;
  }

  .tab-content {
    padding: 16px;
  }

  .info-alert {
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .header {
    padding: 8px 12px;
    min-height: 60px;
  }

  .welcome-section h2 {
    font-size: 14px;
  }

  .page-content {
    padding: 8px 12px;
  }

  .page-title-section h1 {
    font-size: 18px;
  }

  .page-actions {
    gap: 6px;
  }

  .page-actions .btn {
    font-size: 11px;
    padding: 8px 10px;
  }

  .profile-card {
    padding: 16px;
  }

  .profile-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 16px;
  }

  .profile-id {
    font-size: 11px;
  }

  .profile-title {
    font-size: 14px;
  }

  .contact-item {
    font-size: 11px;
    justify-content: center;
  }

  .profile-right {
    align-items: center;
    text-align: center;
  }

  .stats-card {
    padding: 16px;
  }

  .stat-item-label {
    font-size: 10px;
  }

  .stat-item-value {
    font-size: 13px;
  }

  .customer-list-header {
    padding: 12px;
  }

  .customer-list-title {
    font-size: 13px;
  }

  .add-customer-btn {
    width: 28px;
    height: 28px;
  }

  .customer-item {
    padding: 12px;
  }

  .customer-item-name {
    font-size: 13px;
  }

  .customer-item-amount {
    font-size: 12px;
  }

  .tab {
    font-size: 11px;
    padding: 10px 12px;
  }

  .tab-content {
    padding: 12px;
  }

  .address-section {
    padding: 12px;
  }

  .address-title {
    font-size: 12px;
  }

  .address-content {
    font-size: 11px;
  }

  .details-section {
    margin-bottom: 12px;
  }

  .details-title {
    font-size: 13px;
  }

  .detail-label {
    font-size: 9px;
  }

  .detail-value {
    font-size: 12px;
  }

  .empty-state {
    padding: 24px 12px;
  }

  .empty-state-text {
    font-size: 12px;
  }

  .btn-new {
    font-size: 12px;
    padding: 8px 16px;
  }

  .language-tab {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .logo-text {
    font-size: 20px;
  }

  .welcome-section h2 {
    font-size: 13px;
  }

  .page-title-section h1 {
    font-size: 16px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-name {
    font-size: 15px;
  }

  .contact-item {
    font-size: 10px;
  }

  .btn {
    font-size: 10px;
    padding: 8px;
  }
}

/* Print Styles */
@media print {

  .sidebar,
  .header,
  .mobile-menu-toggle,
  .sidebar-overlay,
  .page-actions,
  .add-customer-btn {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  body {
    background: white;
  }
}

/* ----------- ENDCustomer View ------------- */


/* ------------- create customers --------------- */
.create-customer-outr .page-content {
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.breadcrumb a {
  color: #00a1e0;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Form Container */
.form-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  overflow: hidden;
}

/* Tabs */
.tabs-container {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 32px;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  padding: 16px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.tab:hover {
  color: #1e293b;
  background: rgba(0, 161, 224, 0.05);
}

.tab.active {
  color: #00a1e0;
  border-bottom-color: #00a1e0;
  background: white;
}

.tab svg {
  width: 18px;
  height: 18px;
}

.tab-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: #00a1e0;
  border-radius: 50%;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 32px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Customer Type Toggle */
.customer-type-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f1f5f9;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.customer-type-toggle {
  display: flex;
  gap: 12px;
}

.type-option {
  flex: 1;
}

.type-option input[type="radio"] {
  display: none;
}

.type-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: white;
}

.type-option input[type="radio"]:checked+label {
  background: #3ddc84;
  border-color: #3ddc84;
  color: white;
  box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

.type-option label svg {
  width: 20px;
  height: 20px;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid-single {
  grid-template-columns: 1fr;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.form-label .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: white;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: -4px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #00a1e0;
}

.checkbox-label {
  font-size: 14px;
  color: #475569;
  cursor: pointer;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #00a1e0;
  background: #f0f9ff;
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #94a3b8;
}

.upload-text {
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}

.upload-text strong {
  color: #00a1e0;
}

.upload-hint {
  font-size: 12px;
  color: #94a3b8;
}

.file-input {
  display: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.form-actions-left {
  display: flex;
  gap: 12px;
}

.form-actions-right {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(1px);
}

.btn-cancel {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-back,
.btn-next {
  background: var(--second-color);
  color: white;
}

.btn-back:hover,
.btn-next:hover {
  color: white;
  background: #047980;
  box-shadow: 0 4px 12px rgba(4, 121, 128, 0.51);
}

.btn-primary {
  background: #3ddc84;
  color: white;
}

.btn-primary:hover {
  background: #2ec972;
  box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

/* Progress Indicator */
.progress-indicator {
  padding: 16px 32px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-line {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.progress-line-fill {
  height: 100%;
  background: #3ddc84;
  transition: width 0.3s ease;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.progress-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s;
}

.progress-step.active .progress-step-circle {
  background: #3ddc84;
  border-color: #3ddc84;
  color: white;
}

.progress-step.completed .progress-step-circle {
  background: #3ddc84;
  border-color: #3ddc84;
  color: white;
}

.progress-step-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.progress-step.active .progress-step-label {
  color: #1e293b;
  font-weight: 600;
}

/* Mobile Responsive */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .create-customer-outr .page-content {
    padding: 16px;
  }

  .header {
    padding: 10px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-box input {
    width: 100%;
  }

  .user-info {
    display: none;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    padding: 12px 16px;
    white-space: nowrap;
  }

  .tab-content {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions-left,
  .form-actions-right {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .progress-indicator {
    padding: 12px 16px;
  }

  .progress-step-label {
    display: none;
  }
}

@media (max-width: 500px) {
  .type-option label {
    padding: 12px 12px;
  }
}

/* ------------- END customers --------------- */

/* ----------- Invoice View ------------- */
.first-invoice-view-outr .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.first-invoice-view-outr .page-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.first-invoice-view-outr .page-title-section h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

.status-badge {
  background: #b8d432;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.invoice-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.btn-download {
  background: #00bfa5;
  color: white;
}

.btn-download:hover {
  color: white;
  background: #00a68f;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.btn-print {
  background: #00a1e0;
  color: white;
}

.btn-print:hover {
  color: white;
  background: #0082b8;
  box-shadow: 0 4px 12px rgba(0, 161, 224, 0.3);
}

.btn-email {
  background: #00a1e0;
  color: white;
}

.btn-email:hover {
  color: white;
  background: #0082b8;
  box-shadow: 0 4px 12px rgba(0, 161, 224, 0.3);
}

.btn-payment {
  background: #b8d432;
  color: white;
}

.btn-payment:hover {
  color: white;
  background: #a3bf2d;
  box-shadow: 0 4px 12px rgba(64, 77, 4, 0.3);
}

.btn-actions {
  background: #1e293b;
  color: white;
  position: relative;
}

.btn-actions:hover {
  color: white;
  background: #0f172a;
  box-shadow: 0 4px 12px #b9b9b9;
}

/* Quick Actions Dropdown */
.quick-actions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 280px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.quick-actions-dropdown.active {
  display: block;
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-header svg {
  color: #ff9d42;
  flex-shrink: 0;
}

.dropdown-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.dropdown-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f8fafc;
}

.dropdown-item.void-action {
  background: #fef2f2;
  border: none;
}

.dropdown-item.void-action:hover {
  background: #fee2e2;
}

.dropdown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.dropdown-item-icon.duplicate {
  background: #e0e7ff;
  color: #4f46e5;
}

.dropdown-item-icon.credit {
  background: #fef3c7;
  color: #d97706;
}

.dropdown-item-icon.customer {
  background: #dbeafe;
  color: #2563eb;
}

.dropdown-item-icon.subscription {
  background: #e0e7ff;
  color: #6366f1;
}

.dropdown-item-icon.void {
  background: #fecaca;
  color: #dc2626;
}

.dropdown-item-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.dropdown-item.void-action .dropdown-item-text {
  color: #dc2626;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* last added modal styles */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-modal-overlay.active {
  display: flex;
}

.custom-modal {
  background: #fff;
  border-radius: 8px;
  min-width: 30%;
  max-width: 90%;
  animation: fadeIn .3s ease;
}

.custom-modal .modal-body {
  max-height: 500px;
  overflow: auto;
}

@media (max-width: 768px) {
  .custom-modal {
    min-width: 90%;
  }
}

/* END last added modal styles */

/* Modal Container */
.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.modal-header {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title svg {
  color: var(--main-color);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Modal Body */
.modal-body {
  padding: 24px;
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-label .required {
  color: #dc2626;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.form-input:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.form-help {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* Info Box */
.info-box {
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-box-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.info-box-content {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-modal-cancel {
  padding: 10px 20px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-modal-submit {
  padding: 10px 24px;
  border: none;
  background: #00a1e0;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-submit:hover {
  background: #0082b8;
  box-shadow: 0 4px 12px rgba(0, 161, 224, 0.3);
}

.btn-modal-submit:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-modal-submit.success {
  background: #22c55e;
}

.btn-modal-submit.success:hover {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Payment Method Cards */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method-card {
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.payment-method-card:hover {
  border-color: #00a1e0;
  background: #f0f9ff;
}

.payment-method-card.selected {
  border-color: #00a1e0;
  background: #e0f2fe;
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.payment-method-card.selected .payment-method-icon {
  background: #00a1e0;
  color: white;
}

.payment-method-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
}

/* Email Recipients */
.email-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 46px;
}

.recipient-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: 13px;
  color: #0369a1;
}

.recipient-remove {
  cursor: pointer;
  color: #0369a1;
  font-weight: 700;
  transition: all 0.2s ease;
}

.recipient-remove:hover {
  color: #dc2626;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
  .modal {
    max-width: 95%;
    width: 95%;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
    flex-direction: column;
  }

  .btn-modal-cancel,
  .btn-modal-submit {
    width: 100%;
    justify-content: center;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* Invoice Layout with Right Panel */
.invoice-content-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
}

/* Invoice Card */
.invoice-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  overflow: hidden;
}

.invoice-header-section {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.company-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.company-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff9d42 0%, #4d9fd9 100%);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-details h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.company-details p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.invoice-number {
  text-align: right;
}

.invoice-number h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.total-amount-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.total-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.total-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

/* Invoice Details Grid */
.invoice-details-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-block h4 {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.detail-block p {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 4px;
}

.detail-block .address {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.note-section {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.note-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.note-section p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

/* Invoice Table */
.invoice-table-container {
  padding: 24px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table thead {
  background: #f8fafc;
}

.invoice-table th {
  padding: 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
  text-align: right;
}

.invoice-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

.invoice-table tbody tr:last-child {
  border-bottom: none;
}

.invoice-table td {
  padding: 16px 12px;
  font-size: 13px;
  color: #1e293b;
}

.item-description {
  font-weight: 600;
  margin-bottom: 4px;
}

.item-subtitle {
  font-size: 12px;
  color: #64748b;
}

/* Invoice Totals */
.invoice-totals {
  padding: 24px;
  border-top: 2px solid #e2e8f0;
}

.totals-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin-left: auto;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.total-row.subtotal {
  color: #64748b;
}

.total-row.grand-total {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.total-row.paid {
  color: #22c55e;
  font-weight: 600;
}

.total-row.balance {
  color: #64748b;
}

/* Terms Section */
.terms-section {
  padding: 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.terms-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.terms-section p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

/* Sidebar Right */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Status Card */
.status-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  padding: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fef3c7;
  border: 1px solid #fde047;
  border-radius: 8px;
  margin-bottom: 16px;
}

.status-indicator svg {
  color: #eab308;
  flex-shrink: 0;
}

.status-indicator span {
  font-size: 13px;
  font-weight: 600;
  color: #854d0e;
}

.send-invoice-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  text-align: center;
}

.btn-send-invoice {
  width: 100%;
  background: #b8d432;
  color: white;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-send-invoice:hover {
  background: #a3bf2d;
  box-shadow: 0 4px 12px rgba(184, 212, 50, 0.3);
}

/* Summary Card */
.summary-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  padding: 20px;
}

.summary-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.summary-item {
  margin-bottom: 16px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* Timeline */
.timeline-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.timeline-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 3px solid #dcfce7;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 12px;
  color: #64748b;
}

.timeline-amount {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2px;
}

/* Remaining Amount Card */
.remaining-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  padding: 20px;
}

.remaining-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.remaining-amount {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

/* Comments Card */
.comments-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  padding: 20px;
}

.comments-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.comment-input {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-input:focus {
  outline: none;
  border-color: #00a1e0;
  box-shadow: 0 0 0 3px rgba(0, 161, 224, 0.1);
}

.btn-add-comment {
  background: #b8d432;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  float: right;
  transition: all 0.2s ease;
}

.btn-add-comment:hover {
  background: #a3bf2d;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a1e0 0%, #0082b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.comment-time {
  font-size: 11px;
  color: #94a3b8;
}

.comment-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1400px) {
  .content-layout {
    grid-template-columns: 1fr 340px;
  }

  .search-box input {
    width: 250px;
  }
}

@media (max-width: 1200px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .status-card {
    margin-top: 15px;
  }

  .sidebar-right {
    order: 2;
  }

  .invoice-card {
    order: 1;
  }

  .invoice-content-layout {
    display: block;
  }
}

@media (max-width: 992px) {
  .invoice-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .header {
    display: block;
  }

}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .welcome-section h2 {
    font-size: 16px;
  }

  .header-right {
    width: 100%;
    order: 3;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .user-info {
    display: none;
  }

  .page-content {
    padding: 12px 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
    overflow-x: auto;
  }

  .invoice-header-section {
    flex-direction: column;
  }

  .invoice-number {
    text-align: left;
  }

  .invoice-table {
    font-size: 11px;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 8px 6px;
  }

  .total-value {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .page-title-section h1 {
    font-size: 18px;
  }

  .company-logo {
    width: 45px;
    height: 50px;
  }

  .total-value {
    font-size: 20px;
  }

  .invoice-table {
    display: block;
    overflow-x: auto;
  }
}

/* Print Styles */
@media print {

  .sidebar,
  .header,
  .mobile-menu-toggle,
  .sidebar-overlay,
  .page-actions,
  .sidebar-right,
  .quick-actions-dropdown,
  .status-card,
  .btn-send-invoice {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  body {
    background: white;
  }

  .invoice-card {
    box-shadow: none;
    border: none;
  }

  .page-content {
    padding: 20px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .page-title-section h1 {
    font-size: 20px;
  }

  .invoice-table {
    page-break-inside: avoid;
  }

  .terms-section {
    page-break-before: avoid;
  }
}

/* ----------- END Invoice View ------------- */


/* ------------- Invoice View 2 --------------- */
/* Page Content */
/* .page-content {
  padding: 16px 32px;
} */

/* Payment Success Banner */
.payment-success-banner {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
  border-left: 4px solid #22c55e;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 24px 20px 24px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.payment-success-banner svg {
  width: 24px;
  height: 24px;
  color: #22c55e;
  flex-shrink: 0;
}

.payment-success-banner span {
  font-size: 14px;
  font-weight: 600;
  color: #065f46;
  flex: 1;
  line-height: 1.4;
  word-wrap: anywhere;
}

/* Payment Information Section */
.payment-info-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 20px 24px 24px 24px;
  margin: 0 24px 24px 24px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.payment-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #bfdbfe;
}

.payment-info-header svg {
  width: 24px;
  height: 24px;
  color: #2563eb;
  flex-shrink: 0;
}

.payment-info-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
}

.payment-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.payment-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-info-item label {
  font-size: 11px;
  font-weight: 600;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-info-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: white;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  word-break: break-word;
}

@media (max-width: 600px) {
  .payment-info-grid {
    display: flex;
    flex-direction: column;
  }
}

/* ------------- END Invoice View 2 --------------- */

/* ----------- notification ------------- */
.notification-icon {
  position: relative;
}

/* empty-state inside popup (optional) */
.notification-item.notification-empty {
  background: transparent;
  text-align: center;
  padding: 16px;
  color: #64748b;
}

.notification-popup {
  display: none;
  position: absolute;
  top: 100%;
  right: -10px;
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  z-index: 1000;
  border: 1px solid #e5e7eb;
}

.notification-popup.show {
  display: block;
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.notification-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear-all {
  padding: 4px 8px;
  font-size: 12px;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-clear-all:hover {
  color: #e9446e;
}

.notification-count {
  background: #e9446e;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: #f8fafc;
}

.notification-item:hover {
  background: #f1f5f9;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.notification-text {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.notification-time {
  font-size: 12px;
  color: #94a3b8;
}

/* Add a small arrow at the top of popup */
.notification-popup:before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}




.notification-toast-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.notification-toast-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.notification-toast {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  width: 360px;
  max-width: calc(100% - 40px);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.3);
  transform: translateY(8px);
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0;
}

.notification-toast-overlay.visible .notification-toast {
  transform: translateY(0);
  opacity: 1;
}

.notification-toast-message {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0f172a;
  text-align: center;
}

.notification-toast-actions {
  text-align: center;
}

/* Keep OK button small and consistent */
#notificationToastOk.btn {
  padding: 10px 25px;
  font-size: 16px;
}

.notification-bell {
  position: relative;
  margin: 0 auto 10px;
  font-size: 50px;
  width: 85px;
  height: 85px;
  margin-top: -58px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.badge {
  position: absolute;
  top: -2px;
  right: -10px;
  background: red;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 6px;
}

@media (max-width: 768px) {
  .notification-popup {
    left: -10px;
  }

  .notification-popup::before {
    left: 20px;
  }

  .notification-toast-message {
    font-size: 20px;
  }

  #notificationToastOk.btn {
    width: auto;
  }
}

/* ------------END notification ------------- */


/* ------------ profile page ---------------- */
/* Profile Card */

.profile-container .first-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.profile-container .profile-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  /* max-width: 360px; */
  /* margin: auto; */
  transition: 0.3s ease;
}

.profile-container .profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.profile-container .profile-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #8dc650 0%, #6aa62a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin: auto;
}

.profile-container .profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
  color: #1a1a1a;
}

.profile-container .profile-role {
  font-size: 14px;
  color: #6c757d;
  margin-top: 2px;
}

.profile-container .profile-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin: 22px 0;
}

.profile-container .stat-box {
  background: #f8f9fc;
  flex: 1;
  margin: 0 6px;
  padding: 14px 0;
  border-radius: 12px;
  transition: 0.2s;
}

.profile-container .stat-box:hover {
  background: #eef2ff;
}

.profile-container .stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #8dc650;
}

.profile-container .stat-label {
  font-size: 12px;
  color: #6c757d;
}

.profile-container .action-buttons button {
  height: 42px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #8dc650 0%, #6aa62a 100%);
}

.profile-container .action-buttons .btn-secondary {
  border: 1px solid #8dc650;
  color: #000 !important;
  background: transparent !important;
}

.profile-container .btn-primary {
  background: #4e73df;
  border: none;
}

.profile-container .btn-primary:hover {
  background: #2e59d9;
}

.profile-container .btn-outline-secondary {
  border: 2px solid #d1d3e2;
}

.profile-container .btn-outline-secondary:hover {
  background: #f8f9fc;
}



/* Info Grid */
.profile-container .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.profile-container .info-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-top: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.profile-container .info-section h3 {
  color: #2d3748;
  font-size: 1.3em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-container .info-section h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.profile-container .info-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8f0;
}

.profile-container .info-item:last-child {
  border-bottom: none;
}

.profile-container .info-label {
  color: #718096;
  font-weight: 500;
}

.profile-container .info-value {
  color: #2d3748;
  font-weight: 600;
}

/* Action Buttons */
.profile-container .action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.profile-container .btn {
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
}

.profile-container .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.profile-container .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.profile-container .btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.profile-container .btn-secondary:hover {
  background: #667eea;
  color: white;
}

/* Skills Section */
.profile-container .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.profile-container .skill-tag {
  background: linear-gradient(135deg, #8dc650 0%, #6aa62a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
}

/* Activity Timeline */
.profile-container .activity-timeline {
  margin-top: 20px;
}

.profile-container .activity-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.profile-container .activity-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 30px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.profile-container .activity-item:last-child::before {
  display: none;
}

.profile-container .activity-dot {
  width: 16px;
  height: 16px;
  background: var(--gradient);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.profile-container .activity-content {
  flex: 1;
}

.profile-container .activity-title {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-container .activity-time {
  color: #a0aec0;
  font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 768px) {

  .profile-container .profile-card {
    padding: 20px;
  }

  .profile-container .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2em;
  }

  .profile-container .profile-name {
    font-size: 1.4em;
  }

  .profile-container .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-container .info-grid {
    grid-template-columns: 1fr;
  }

  .profile-container .action-buttons {
    flex-direction: column;
  }

  .profile-container .btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {}

@media (min-width: 1025px) {
  .profile-container .profile-container {
    grid-template-columns: 2fr 1fr;
  }
}

/* ------------ END profile page ------------ */

/* ------------ download popup ---------------*/
/* Centered popup (matches shared design) */
.centered-popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.centered-popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.centered-popup-card {
  background: #fff;
  /* soft pink card */
  border-radius: 18px;
  padding: 30px 34px 26px;
  width: 420px;
  max-width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(12px);
  transition: transform 220ms ease, opacity 220ms ease;
  position: relative;
  opacity: 0;
}

.centered-popup-overlay.visible .centered-popup-card {
  transform: translateY(0);
  opacity: 1;
}

/* badge circle with check */
.centered-popup-badge {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 6px solid #fef2f2;
}

.centered-popup-badge .checkmark {
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: #10b981;
  /* green */
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18);
}

.centered-popup-title {
  font-size: 22px;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #0f172a;
  font-weight: 700;
}

.centered-popup-text {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

/* actions */
.centered-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-open {
  background: linear-gradient(180deg, #ff6b6b, #ff3b3b);
  color: #fff;
  border: none;
  padding: 10px 36px;
  border-radius: 28px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(255, 59, 59, 0.14);
}

.btn-secondary {
  background: transparent;
  color: #374151;
  border: 1px solid #e6e9ef;
  padding: 8px 18px;
  border-radius: 12px;
  cursor: pointer;
}

/* small screens */
@media (max-width: 480px) {
  .centered-popup-card {
    padding: 22px;
    width: calc(100% - 32px);
    border-radius: 14px;
  }

  .centered-popup-badge {
    top: -30px;
    width: 56px;
    height: 56px;
    border-width: 5px;
  }

  .centered-popup-badge .checkmark {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 18px;
  }

  .btn-open {
    padding: 8px 26px;
    font-size: 14px;
  }
}

/* ------------ END download popup ---------------*/

/* product catalogue */

.product-card {
  display: flex;
  align-items: center;
}


.product-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.star-rating {
  margin-right: 10px;
  cursor: pointer;
}

.star-rating i {
  color: #ddd;
  font-size: 16px;
  transition: color 0.2s ease;
}

.star-rating i.filled {
  color: #ffc107;
}

.star-rating i:hover {
  color: #ffb300;
}

.product-title {
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  flex-grow: 1;
}

.product-variants {
  font-size: 12px;
  color: #000;
  margin: 2px 0;
  font-weight: 700;
}

.product-code {
  font-size: 11px;
  color: #999;
  margin: 2px 0;
}

.product-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.product-info {
  flex-grow: 1;
}

.product-price {
  font-size: 14px;
  color: #333;
  margin: 2px 0;
}

.product-stock {
  font-size: 12px;
  color: #666;
  margin: 2px 0;
}

.product-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-left: 10px;
}

/* subscription */
.status-progress {
  padding: 1px 10px;
  background-color: #28a745;
  border-radius: 50px;
}

/* Custom Popover Styling */
.popover {
  max-width: 350px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popover-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  color: #333;
  padding: 12px 15px;
  font-size: 14px;
}

.popover-body {
  padding: 0;
}

.popover-content-link {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.popover-content-link:hover {
  background-color: #f8f9fa;
}

.activity-description {
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 12px;
}

.schedule-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #334454;
  font-weight: 500;
  padding: 10px 16px;
  border: 2px dashed #334454;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.schedule-button:hover {
  background-color: #e7f1ff;
  border-color: #0b5ed7;
  color: #0b5ed7;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-bottom: 20px;
}

.company-icon {
  width: 32px;
  height: 32px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-name {
  font-weight: 600;
  color: #333;
  margin: 0;
}

.clock-icon:hover {
  fill: #000;
}

.clock-icon {
  cursor: pointer;
}



/* Custom Modal Styles */
.custom-modal-activity {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(5px);
}

.custom-modal-activity.active {
  opacity: 1;
}

.custom-modal-activity .custom-modal-content {
  background: #ffffff;
  border-radius: 2px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  border-radius: 10px;
}

.custom-modal-activity.active .custom-modal-content {
  transform: scale(1);
}

/* Modal Header */
.custom-modal-activity .custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background-color: #fff;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  border-radius: 10px 10px 0 0;
}

.custom-modal-activity .custom-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.custom-modal-activity .close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  transition: opacity 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-activity .close-btn:hover {
  opacity: 0.7;
}

/* Activity Tabs */
.activity-tabs {
  display: flex;
  gap: 10px;
  padding: 0 10px;
  overflow-x: auto;
  justify-content: space-evenly;
}

.activity-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #e0f2fe;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #0369a1;
  transition: background-color 0.15s;
  white-space: nowrap;
  border-radius: 6px;
}

.activity-tab:hover {
  background-color: #e0f2fe;
}

.activity-tab.active {
  background-color: #ffffff;
  color: #0369a1;
  border-bottom: 2px solid #0369a1;
  position: relative;
}

.activity-tab svg {
  width: 14px;
  height: 14px;
}

/* Modal Body */
.custom-modal-activity .custom-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  background-color: #fff;
  position: relative;
}

/* Center Icon */
.center-icon {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  color: #999;
}

/* Form Section */
.custom-modal-activity .form-section {
  max-width: 100%;
}

/* Form Styles */
.custom-modal-activity .form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.custom-modal-activity .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  font-size: 13px;
  color: #000;
}

.custom-modal-activity .form-group input,
.custom-modal-activity .form-group select,
.custom-modal-activity .form-group textarea {
  width: 80%;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 2px;
  font-size: 13px;
  color: #333;
  transition: border-color 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #fff;

}

.custom-modal-activity .form-group textarea {
  width: 100%;
}

.custom-modal-activity .form-group input:focus,
.custom-modal-activity .form-group select:focus,
.custom-modal-activity .form-group textarea:focus {
  outline: none;
  border-color: #673ab7;
}

.custom-modal-activity .form-group textarea {
  resize: vertical;
  min-height: 70px;
}

/* Modal Footer */
.custom-modal-activity .custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid #ddd;
  background-color: #fafafa;
  gap: 8px;
  border-radius: 0 0 10px 10px;
}

.custom-modal-activity .footer-buttons {
  display: none;
  gap: 8px;
}

.custom-modal-activity .footer-buttons.active {
  display: flex;
}

/* Buttons */
.custom-modal-activity .btn-primary,
.custom-modal-activity .btn-secondary,
.custom-modal-activity .btn-discard {
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.custom-modal-activity .btn-primary {
  background-color: #00a1e0;
  color: #ffffff;
}

.custom-modal-activity .btn-primary:hover {
  background-color: #5e35b1;
}

.custom-modal-activity .btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.custom-modal-activity .btn-secondary:hover {
  background-color: #d5d5d5;
}

.custom-modal-activity .btn-discard {
  background-color: #e0e0e0;
  color: #333;
}

.custom-modal-activity .btn-discard:hover {
  background-color: #d5d5d5;
}

/* Success Toast */
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 12px 16px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.success-toast.show {
  transform: translateX(0);
}

.success-toast svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-modal-content {
    width: 95%;
    max-height: 90vh;
  }



  .activity-tab {
    padding: 9px 12px;
    font-size: 11px;
  }

  .custom-modal-body {
    padding: 16px 18px;
  }

  .custom-modal-footer {
    flex-wrap: wrap;
  }

  .footer-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}


/* Custom CSS to approximate the specific design details */
.subscription-de .header-bar {
  background-color: #f8f9fa;
  /* Light grey/off-white background */
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.subscription-de .action-button {
  margin-right: 0.5rem;
  color: #495057;
  /* Darker text for buttons */
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  background-color: #e7e9ed;
  box-shadow: none;
}

.subscription-de .action-button:hover {
  background-color: #e9ecef;
  border-radius: 4px;
}

.subscription-de .status-tracker {
  display: flex;
  align-items: center;
}

.subscription-de .status-step {
  padding: 0.5rem 1rem;
  color: #6c757d;
  /* Grey text */
  font-weight: 500;
  border-left: 1px solid #dee2e6;
  cursor: pointer;
  font-size: 12px;
}

.subscription-de .status-step.active {
  background-color: #d1e7dd;
  /* Light green/teal background */
  color: #0f5132;
  /* Darker green text */
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
  margin-left: -0.75rem;
  /* Overlap with border */
  padding-left: 2rem;
}

.subscription-de .main-content-sub-de {
  padding: 1.5rem;
}

.subscription-de .order-id {
  font-size: 2.5rem;
  font-weight: 300;
  /* Light font weight */
}

.subscription-de .in-progress-badge {
  background-color: #28a745;
  /* Green background */
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.subscription-de .detail-label {
  color: #6c757d;
  /* Muted label color */
  font-weight: 600;
  font-size: 12px;
}

.subscription-de .detail-value {
  color: #212529;
  /* Dark text for value */
}

.subscription-de .link-value {
  color: #017e84;
  /* Bootstrap primary link color */
  text-decoration: none;
}

.subscription-de .detail-group {
  margin-bottom: 1rem;
}

.subscription-de .question-mark {
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 0.25rem;
  color: #6c757d;
}

.subscription-de .btn-success.action-button{
  color: #fff;
  background-color: #065f46;
} 
.tax{
  background-color: #b8d432a1;
  padding: 1px 6px;
  border-radius: 20px;
}

.editable-details .detail-label{
  color: #000;
}

.editable-details  .form-group{
  margin-bottom: 0;
}
.editable-details  select{
  padding: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  width: 100%;
}
.editable-details  select:hover{
  border-bottom: 1px solid #000;
  background-color: transparent;
}
.editable-details  select:focus{
  box-shadow: none;

}


 .sub-other-info  {
            background-color: white;
        }
        
        .sub-other-info .section-header {
            background-color: #f8f9fa;
            font-weight: 600;
            font-size: 13px;
            text-transform: uppercase;
            padding: 8px 15px;
            border-bottom: 1px solid #dee2e6;
            letter-spacing: 0.5px;
        }
        
        .sub-other-info .form-row-custom {
            display: flex;
            flex-wrap: wrap;
            border-bottom: 1px solid #e9ecef;
            min-height: 40px;
            align-items: center;
        }
        
        .sub-other-info .form-row-custom:hover {
            background-color: #f8f9fa;
        }
        
        .sub-other-info .form-label-custom {
            width: 200px;
            padding: 10px 15px;
            font-size: 13px;
            color: #212529;
            flex-shrink: 0;
        }
        
        .sub-other-info .form-value-custom {
            flex: 1;
            padding: 10px 15px;
            font-size: 13px;
            color: #495057;
        }
        
        .sub-other-info .info-icon {
            color: #6c757d;
            font-size: 12px;
            margin-left: 3px;
            cursor: help;
        }
        
        .sub-other-info .user-avatar {
            width: 20px;
            height: 20px;
            background-color: #6c757d;
            border-radius: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            margin-right: 6px;
            vertical-align: middle;
        }
        
        .sub-other-info .checkbox-custom {
            width: 16px;
            height: 16px;
            background-color: #0d6efd;
            border: none;
            border-radius: 2px;
            position: relative;
        }
        
        .sub-other-info .checkbox-custom::after {
            content: '✓';
            color: white;
            position: absolute;
            top: -2px;
            left: 3px;
            font-size: 12px;
        }
        
        .sub-other-info .link-custom {
            color: #0d6efd;
            text-decoration: none;
        }
        
        .sub-other-info .link-custom:hover {
            text-decoration: underline;
        }
        
        /* Responsive adjustments */
        @media (max-width: 767.98px) {
            .sub-other-info .form-label-custom {
                width: 100%;
                border-bottom: 1px solid #f0f0f0;
                font-weight: 600;
            }
            
            .sub-other-info .form-value-custom {
                width: 100%;
            }
        }

        .editable-details .form-label-custom{
          color: #000;
          font-weight: 600;
        }
        .editable-details input{
          padding: 0;
          border-radius: 0;
          border: none;
                    background-color: transparent;
                    width: 100%;

        }
        .editable-details input:hover, .editable-details input:focus{
          background-color: transparent;
                              border-bottom: 1px solid #000;

        }



        /* lognote */

          /* Tab Navigation */
        .log-note-section .nav-tabs-custom {
            display: flex;
            border-bottom: 1px solid #dee2e6;
            background: #f8f9fa;
            padding: 0;
            margin: 0;
        }

        .log-note-section .nav-tab-item {
            padding: 8px 14px;
            background: transparent;
            border: none;
            color: #495057;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .log-note-section .nav-tab-item:hover {
            background: #e9ecef;
        }

        .log-note-section .nav-tab-item.active {
            background: #065f46;
            color: #ffffff;
        }

       

        .log-note-section{
          height: 100%;
        }

        /* Right Side Icons */
        .log-note-section .header-icons {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 15px;
            padding-right: 20px;
        }

        .log-note-section .header-icons i {
            color: #6c757d;
            cursor: pointer;
            font-size: 18px;
        }

        .log-note-section .header-icons i:hover {
            color: #495057;
        }

        .log-note-section .notification-badge2 {
            position: relative;
        }

        .log-note-section .notification-badge2::after {
            content: '1';
            position: absolute;
            top: -8px;
            right: -8px;
            background: #dc3545;
            color: white;
            font-size: 10px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Content Area */
        .log-note-section .content-area {
            display: none;
            padding: 30px 0;
        }

        .log-note-section .content-area.active {
            display: block;
        }

        /* Log Note Input Section */
        .log-note-section .log-note-section {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            align-items: flex-start;
        }

        .log-note-section .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #6f42c1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            flex-shrink: 0;
        }

        .log-note-section .log-input-container {
            flex: 1;
        }

        .log-note-section .log-input {
            width: 100%;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 12px 40px 12px 15px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
            position: relative;
        }

        .log-note-section .log-input:focus {
            border-color: #6f42c1;
            box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
        }

        .log-note-section .input-wrapper {
            position: relative;
        }

        .log-note-section .emoji-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
            cursor: pointer;
            font-size: 18px;
        }

        .log-note-section .log-button {
            background: #9b8bb3;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            margin-top: 10px;
        }

        .log-note-section .log-button:hover {
            background: #8a7ba3;
        }

        .log-note-section .action-icons {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .log-note-section .action-icons i {
            color: #6c757d;
            cursor: pointer;
            font-size: 18px;
        }

        .log-note-section .action-icons i:hover {
            color: #495057;
        }

        /* Timeline */
        .log-note-section .timeline {
            position: relative;
        }

        .log-note-section .timeline-item {
            display: flex;
            gap: 15px;
            padding-bottom: 30px;
        }

        .log-note-section .timeline-date {
            text-align: center;
            color: #6c757d;
            font-size: 12px;
            margin: 20px 0;
            font-weight: 500;
        }

        .log-note-section .timeline-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
        }

        .log-note-section .timeline-content {
            flex: 1;
        }

        .log-note-section .timeline-header {
            font-weight: 600;
            color: #212529;
            font-size: 14px;
        }

        .log-note-section .timeline-time {
            color: #6c757d;
            font-size: 12px;
            margin-left: 8px;
        }

        .log-note-section .timeline-text {
            color: #495057;
            font-size: 14px;
            margin-top: 5px;
        }

        /* Activity Modal */
        .log-note-section .modal-header {
            background: #6f42c1;
            color: white;
            border-radius: 8px 8px 0 0;
        }

        .log-note-section .modal-title {
            font-weight: 600;
        }

        .log-note-section .btn-close {
            filter: brightness(0) invert(1);
        }

        .log-note-section .activity-item {
            padding: 15px;
            border-bottom: 1px solid #dee2e6;
            display: flex;
            gap: 15px;
        }

        .log-note-section .activity-item:last-child {
            border-bottom: none;
        }

        .log-note-section .activity-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .log-note-section .activity-content h6 {
            margin: 0;
            font-size: 14px;
            font-weight: 600;
        }

        .log-note-section .activity-content p {
            margin: 0;
            font-size: 13px;
            color: #6c757d;
        }


        /* notification page */

        .notifications-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .notifications-title {
            font-size: 20px;
            font-weight: 600;
            color: #111827;
            margin: 0;
        }
        
        .mark-read-btn {
            background: none;
            border: none;
            color: #111827;
            font-size: 14px;
            cursor: pointer;
            padding: 0;
            font-weight: 400;
        }
        
        .mark-read-btn:hover {
            text-decoration: underline;
        }
        
        .notification-counts {
            padding: 12px 0px;
            font-size: 14px;
            color: #6b7280;
        }
        
        .date-separator {
            padding: 8px 0x;
            font-size: 13px;
            font-weight: 500;
            color: #111827;
        }
        
        .notification-item {
            display: flex;
            padding: 16px 24px;
            border-bottom: 1px solid #e5e7eb;
            align-items: flex-start;
            gap: 12px;
            transition: background-color 0.2s;
        }
        
        .notification-item:hover {
            background-color: #f9fafb;
        }
        
        .notification-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        
        .notification-content {
            flex: 1;
        }
        
        .notification-header-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 4px;
        }
        
        .notification-title-group {
            flex: 1;
        }
        
        .notification-title {
            font-size: 15px;
            font-weight: 600;
            color: #111827;
            margin: 0 0 2px 0;
        }
        
        .notification-time {
            font-size: 13px;
            color: #9ca3af;
            margin-left: 6px;
        }
        
        .notification-description {
            font-size: 14px;
            color: #6b7280;
            margin: 0;
            line-height: 1.5;
        }
        
        .view-btn {
            color: #0891b2;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            margin-left: 12px;
        }
        
        .view-btn:hover {
            text-decoration: underline;
            color: #0e7490;
        }
        .notification-row{
          display: grid
;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 24px;
        }

        .notification-row .metric-card{
          display: flex;
          flex-direction: row;
          align-items: start;
          gap: 20px;
          min-height: auto;
          border-radius: 10px;
        }

        .view-all{
          padding: 8px 8px;
    font-size: 14px;
    color:#0891b2;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    justify-content: center;
    text-decoration: none;
        }