* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-blue: #155eef;
  --dark-navy: #071b3a;
  --medium-navy: #0b2447;
  --light-blue: #38bdf8;
  --white: #ffffff;
  --soft-white: #f8fafc;
  --grey: #64748b;
  --border: #e2e8f0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.16),
      transparent 35%
    ),
    linear-gradient(135deg, var(--dark-navy), var(--medium-navy));

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-wrapper {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.login-brand {
  color: var(--white);
}

.brand-badge {
  width: 78px;
  height: 78px;
  border-radius: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--light-blue)
  );

  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 28px;
  box-shadow: 0 18px 45px rgba(21, 94, 239, 0.35);
}

.brand-label {
  color: var(--light-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-brand h1 {
  font-size: 54px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.brand-description {
  max-width: 540px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.feature-list {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 15px;
}

.feature-item span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  color: var(--light-blue);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  padding: 46px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.login-card-header {
  margin-bottom: 32px;
}

.eyebrow {
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.login-card-header h2 {
  color: var(--dark-navy);
  font-size: 34px;
  margin-bottom: 10px;
}

.login-card-header > p:last-child {
  color: var(--grey);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: var(--dark-navy);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
}

.form-group input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

.form-group input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.login-button {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #0e46c5
  );
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.28);
}

.login-footer {
  text-align: center;
  color: var(--grey);
  font-size: 12px;
  margin-top: 24px;
}

@media (max-width: 850px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 520px;
  }

  .login-brand h1 {
    font-size: 42px;
  }

  .feature-list {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 18px;
  }

  .login-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .login-brand h1 {
    font-size: 36px;
  }

  .brand-description {
    font-size: 16px;
  }
}/* =========================================
   DASHBOARD
========================================= */

.dashboard-page {
  min-height: 100vh;
  background: #f4f7fb;
  color: var(--dark-navy);
}

.sidebar {
  width: 270px;
  height: 100vh;
  background: var(--dark-navy);
  position: fixed;
  top: 0;
  left: 0;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 8px 27px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--light-blue)
  );
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sidebar-brand h2 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 4px;
}

.sidebar-brand p {
  color: #94a3b8;
  font-size: 11px;
}

.sidebar-menu {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.menu-item {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.menu-item.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #0f4bc7
  );
  color: var(--white);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.25);
}

.menu-icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.user-profile strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  margin-bottom: 3px;
}

.user-profile span {
  color: #94a3b8;
  font-size: 11px;
}

.logout-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.dashboard-main {
  margin-left: 270px;
  min-height: 100vh;
  padding: 38px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-eyebrow {
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dashboard-header h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: var(--grey);
  font-size: 14px;
}

.primary-button,
.secondary-button {
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #0f4bc7
  );
  color: var(--white);
  box-shadow: 0 12px 25px rgba(21, 94, 239, 0.2);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.search-section {
  margin-bottom: 25px;
}

.search-box {
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  box-shadow: 0 6px 18px rgba(7, 27, 58, 0.04);
}

.search-box span {
  color: var(--grey);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--dark-navy);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.stat-label {
  color: var(--grey);
  font-size: 13px;
  font-weight: 700;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(21, 94, 239, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.success-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.warning-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.danger-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.stat-number {
  display: block;
  font-size: 34px;
  margin-bottom: 7px;
}

.stat-card > p {
  color: var(--grey);
  font-size: 12px;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
}

.content-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}

.card-heading h2 {
  font-size: 17px;
  margin-bottom: 5px;
}

.card-heading p {
  color: var(--grey);
  font-size: 12px;
}

.card-heading a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  min-height: 290px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.small-empty-state {
  min-height: 290px;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: rgba(21, 94, 239, 0.09);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 17px;
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 9px;
}

.empty-state p {
  max-width: 390px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 19px;
}

.secondary-button {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--primary-blue);
}

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

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

@media (max-width: 900px) {

  .sidebar {
    width: 78px;
    padding: 24px 12px;
  }

  .sidebar-brand > div:last-child,
  .menu-item:not(.active) {
    font-size: 0;
  }

  .menu-item {
    justify-content: center;
    padding: 0;
  }

  .menu-icon {
    font-size: 20px;
  }

  .user-profile > div:last-child,
  .logout-button {
    display: none;
  }

  .dashboard-main {
    margin-left: 78px;
    padding: 24px 18px;
  }

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

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ADD CUSTOMER PAGE
========================================= */

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

.form-card {
  max-width: 1000px;
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.form-section-heading {
  margin-bottom: 24px;
}

.form-section-heading h2 {
  color: var(--dark-navy);
  font-size: 19px;
  margin-bottom: 7px;
}

.form-section-heading p {
  color: var(--grey);
  font-size: 13px;
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.customer-form-group {
  display: flex;
  flex-direction: column;
}

.customer-form-group.full-width {
  grid-column: 1 / -1;
}

.customer-form-group label {
  color: var(--dark-navy);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
}

.customer-form-group label span {
  color: #dc2626;
}

.customer-form-group input,
.customer-form-group select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 15px;
  background: var(--white);
  color: var(--dark-navy);
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
}

.customer-form-group input:focus,
.customer-form-group select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.customer-form-group input::placeholder {
  color: #94a3b8;
}

.form-divider {
  height: 1px;
  background: #edf1f6;
  margin: 34px 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid #edf1f6;
}

.cancel-button,
.save-customer-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cancel-button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark-navy);
}

.save-customer-button {
  border: none;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #0f4bc7
  );
  color: var(--white);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.2);
}

.save-customer-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .customer-form-grid {
    grid-template-columns: 1fr;
  }

  .customer-form-group.full-width {
    grid-column: auto;
  }

  .form-card {
    padding: 24px 18px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .cancel-button,
  .save-customer-button {
    width: 100%;
  }
}.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}.primary-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #0f4bc7
  );
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(21, 94, 239, 0.2);
}/* =========================================
   CUSTOMERS LIST PAGE
========================================= */

.customer-list-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.customer-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf1f6;
}

.customer-list-heading h2 {
  color: var(--dark-navy);
  font-size: 19px;
  margin-bottom: 6px;
}

.customer-list-heading p {
  color: var(--grey);
  font-size: 13px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.customer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 950px;
}

.customer-table th {
  padding: 17px 14px;
  text-align: left;
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #edf1f6;
}

.customer-table td {
  padding: 18px 14px;
  color: var(--dark-navy);
  font-size: 13px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}

.customer-table tbody tr:hover {
  background: #f8faff;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eaf1ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.company-cell strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.company-cell span,
.table-secondary-text {
  display: block;
  color: var(--grey);
  font-size: 12px;
  margin-top: 5px;
}

.table-primary-text {
  display: block;
  font-size: 13px;
}

.customer-status {
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.customer-status.active {
  background: #e8f7ed;
  color: #15803d;
}

.customer-status.prospect {
  background: #fff4df;
  color: #c76c00;
}

.customer-status.inactive {
  background: #f1f5f9;
  color: #64748b;
}

.loading-cell {
  height: 180px;
  text-align: center;
  color: var(--grey) !important;
}

.customer-empty-state {
  min-height: 320px;
  padding: 40px;
  text-align: center;
}

.customer-empty-state .empty-state-icon {
  margin-left: auto;
  margin-right: auto;
}

.customer-empty-state h3 {
  color: var(--dark-navy);
  margin-bottom: 9px;
}

.customer-empty-state p {
  max-width: 430px;
  margin: 0 auto 20px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
}/* =========================================
   CUSTOMER DETAILS PAGE
========================================= */

.details-loading {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
}

.customer-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.customer-profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.customer-profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--light-blue)
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 800;
}

.customer-profile-header h1 {
  font-size: 30px;
  margin-bottom: 7px;
}

.customer-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.profile-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.profile-card-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f6;
  margin-bottom: 8px;
}

.profile-card-heading h2 {
  color: var(--dark-navy);
  font-size: 18px;
  margin-bottom: 6px;
}

.profile-card-heading p {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.6;
}

.profile-detail-list {
  display: grid;
}

.profile-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid #edf1f6;
}

.profile-detail-row:last-child {
  border-bottom: none;
}

.profile-detail-row span {
  color: var(--grey);
  font-size: 13px;
}

.profile-detail-row strong {
  color: var(--dark-navy);
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.profile-placeholder-card {
  margin-bottom: 30px;
}

.profile-empty-state {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
}

.profile-empty-state .empty-state-icon {
  margin-bottom: 16px;
}

.profile-empty-state h3 {
  margin-bottom: 8px;
}

.profile-empty-state p {
  max-width: 480px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
}

.details-error-card {
  max-width: 560px;
  margin: 70px auto;
  padding: 38px;
  background: var(--white);
  border-radius: 20px;
  text-align: center;
}

.details-error-card h1 {
  margin-bottom: 12px;
}

.details-error-card p {
  color: var(--grey);
  margin-bottom: 22px;
}

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

@media (max-width: 600px) {
  .customer-profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-profile-identity {
    align-items: flex-start;
  }

  .profile-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .profile-detail-row strong {
    text-align: left;
  }
}.customer-name-link {
  display: inline-block;
  color: var(--dark-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}

.customer-name-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}
.customer-form-group textarea {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 15px;
  background: var(--white);
  color: var(--dark-navy);
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
  resize: vertical;
  transition: 0.2s ease;
}

.customer-form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.customer-form-group textarea::placeholder {
  color: #94a3b8;
}
.profile-card-heading-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-card-heading-with-action > div {
  flex: 1;
}

@media (max-width: 650px) {
  .profile-card-heading-with-action {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================
   CUSTOMER SERVICES
========================================= */

.service-list {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.service-card {
  border: 1px solid #e4eaf2;
  border-radius: 17px;
  padding: 22px;
  background: #fbfcff;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}

.service-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--primary-blue);
  font-size: 19px;
  font-weight: 800;
}

.service-title-area h3 {
  color: var(--dark-navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.service-title-area p {
  color: var(--grey);
  font-size: 12px;
}

.service-information-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 0;
}

.service-information-item {
  min-width: 0;
}

.service-information-item span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
}

.service-information-item strong {
  display: block;
  color: var(--dark-navy);
  font-size: 13px;
  word-break: break-word;
}

.service-margin {
  color: #15803d !important;
}

.service-notes {
  border-top: 1px solid #e8edf4;
  padding-top: 18px;
  margin-top: 2px;
}

.service-notes span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-notes p {
  color: var(--dark-navy);
  font-size: 13px;
  line-height: 1.7;
}

.service-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #e8edf4;
}

.service-action-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--dark-navy);
  font-size: 12px;
  font-weight: 700;
}

.service-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.delete-button {
  color: #dc2626;
}

@media (max-width: 1100px) {
  .service-information-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .service-card-header {
    flex-direction: column;
  }

  .service-information-grid {
    grid-template-columns: 1fr;
  }

  .service-card-actions {
    justify-content: stretch;
  }

  .service-action-button {
    flex: 1;
  }
}
.service-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.stat-currency {
  font-size: 24px;
}

.dashboard-quick-content {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
}

.dashboard-quick-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--primary-blue);
  font-size: 22px;
  font-weight: 800;
}

.dashboard-quick-content h3 {
  color: var(--dark-navy);
  font-size: 16px;
  margin-bottom: 9px;
}

.dashboard-quick-content p {
  max-width: 430px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}

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

@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   RENEWALS PAGE
========================================= */

.renewal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.renewal-summary-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.renewal-summary-label {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}

.renewal-summary-card strong {
  display: block;
  color: var(--dark-navy);
  font-size: 34px;
  margin-bottom: 7px;
}

.renewal-summary-card p {
  color: var(--grey);
  font-size: 12px;
}

.renewal-tools {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
  margin-bottom: 24px;
}

.renewal-search-box {
  margin: 0;
}

.renewal-filter {
  width: 100%;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 15px;
  background: var(--white);
  color: var(--dark-navy);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  box-shadow: 0 6px 18px rgba(7, 27, 58, 0.04);
}

.renewal-filter:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.renewals-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.renewals-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.renewals-table th {
  padding: 17px 14px;
  text-align: left;
  color: var(--grey);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #edf1f6;
}

.renewals-table td {
  padding: 18px 14px;
  color: var(--dark-navy);
  font-size: 13px;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f6;
}

.renewals-table tbody tr:hover {
  background: #f8faff;
}

.renewal-status {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.renewal-status.expired {
  background: #fee2e2;
  color: #b91c1c;
}

.renewal-status.expires-today,
.renewal-status.critical {
  background: #ffedd5;
  color: #c2410c;
}

.renewal-status.due-soon {
  background: #fef3c7;
  color: #b45309;
}

.renewal-status.upcoming {
  background: #eaf1ff;
  color: var(--primary-blue);
}

.renewal-status.healthy {
  background: #dcfce7;
  color: #15803d;
}

.renewal-action-link {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.renewal-action-link:hover {
  background: var(--primary-blue);
  color: var(--white);
}

@media (max-width: 1100px) {
  .renewal-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .renewal-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .renewal-summary-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   SERVICES PAGE
========================================= */

.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.service-summary-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.service-summary-card span {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}

.service-summary-card strong {
  display: block;
  color: var(--dark-navy);
  font-size: 32px;
  margin-bottom: 7px;
}

.service-summary-card p {
  color: var(--grey);
  font-size: 12px;
}

.services-list-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.services-page-grid {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.services-page-card {
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #fbfcff;
  padding: 22px;
}

.services-page-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}

.services-page-customer {
  padding: 18px 0;
  border-bottom: 1px solid #e8edf4;
}

.services-page-customer > span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.services-page-customer small {
  display: block;
  color: var(--grey);
  margin-top: 5px;
  font-size: 12px;
}

.services-page-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 0 4px;
}

.services-page-details span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
}

.services-page-details strong {
  display: block;
  color: var(--dark-navy);
  font-size: 13px;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .service-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-page-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-summary-grid {
    grid-template-columns: 1fr;
  }

  .services-page-details {
    grid-template-columns: 1fr;
  }

  .services-page-card-top {
    flex-direction: column;
  }
}
/* =========================================
   TASKS PAGE
========================================= */

.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.task-summary-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.task-summary-card span {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}

.task-summary-card strong {
  display: block;
  color: var(--dark-navy);
  font-size: 32px;
  margin-bottom: 7px;
}

.task-summary-card p {
  color: var(--grey);
  font-size: 12px;
}

.tasks-list-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.tasks-grid {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.task-card {
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #fbfcff;
  padding: 22px;
}

.task-card-top h3 {
  color: var(--dark-navy);
  font-size: 17px;
  margin: 14px 0 8px;
}

.task-card-top p {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
}

.task-badges {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.task-priority,
.task-status {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.task-priority.low {
  background: #eaf1ff;
  color: var(--primary-blue);
}

.task-priority.medium {
  background: #fef3c7;
  color: #b45309;
}

.task-priority.high {
  background: #ffedd5;
  color: #c2410c;
}

.task-priority.critical {
  background: #fee2e2;
  color: #b91c1c;
}

.task-status.pending {
  background: #f1f5f9;
  color: #475569;
}

.task-status.in-progress {
  background: #eaf1ff;
  color: var(--primary-blue);
}

.task-status.completed {
  background: #dcfce7;
  color: #15803d;
}

.task-status.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #e8edf4;
}

.task-detail-grid span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
}

.task-detail-grid strong {
  display: block;
  color: var(--dark-navy);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .task-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .task-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .task-summary-grid {
    grid-template-columns: 1fr;
  }

  .task-detail-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   TASK ACTIONS
========================================= */

.task-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid #e8edf4;
}

.task-action-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark-navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.complete-task-button {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #15803d;
}

.complete-task-button:hover {
  background: #15803d;
  color: #ffffff;
}

.reopen-task-button {
  border-color: #bfdbfe;
  background: #eaf1ff;
  color: var(--primary-blue);
}

.reopen-task-button:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.delete-task-button {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.delete-task-button:hover {
  background: #dc2626;
  color: #ffffff;
}

@media (max-width: 600px) {
  .task-card-actions {
    flex-direction: column;
  }

  .task-card-actions form,
  .task-action-button {
    width: 100%;
  }
}
.edit-task-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #bfdbfe;
  background: #eaf1ff;
  color: var(--primary-blue);
  text-decoration: none;
}

.edit-task-button:hover {
  background: var(--primary-blue);
  color: #ffffff;
}
.edit-task-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.edit-task-button:hover {
  background: var(--primary-blue);
  color: #ffffff;
  text-decoration: none;
}
/* =========================================
   DOCUMENTS PAGE
========================================= */

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.document-summary-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.document-summary-card span {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}

.document-summary-card strong {
  display: block;
  color: var(--dark-navy);
  font-size: 32px;
  margin-bottom: 7px;
}

.document-summary-card p {
  color: var(--grey);
  font-size: 12px;
}

.documents-list-card {
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.06);
}

.documents-grid {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.document-card {
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #fbfcff;
  padding: 22px;
}

.document-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}

.document-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--primary-blue);
  font-weight: 800;
}

.document-card-title {
  flex: 1;
}

.document-card-title h3 {
  color: var(--dark-navy);
  font-size: 16px;
  margin-bottom: 5px;
}

.document-card-title p {
  color: var(--grey);
  font-size: 12px;
}

.document-type-badge {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--primary-blue);
  font-size: 10px;
  font-weight: 800;
}

.document-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 20px;
}

.document-detail-grid span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
}

.document-detail-grid strong {
  color: var(--dark-navy);
  font-size: 13px;
}

.document-notes {
  margin-top: 18px;
  padding: 15px;
  background: #f8faff;
  border-radius: 12px;
}

.document-notes span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.document-notes p {
  color: var(--dark-navy);
  font-size: 12px;
  line-height: 1.6;
}

.document-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8edf4;
}

.document-action-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .document-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .document-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .document-summary-grid {
    grid-template-columns: 1fr;
  }

  .document-detail-grid {
    grid-template-columns: 1fr;
  }
}
.document-card-actions {
  gap: 10px;
}

.document-delete-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff5f5;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.document-delete-button:hover {
  background: #dc2626;
  color: #ffffff;
}
/* =========================================
   REPORTS PAGE
========================================= */

.reports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.report-card {
  background: #ffffff;
  border: 1px solid #e7edf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.05);
}

.report-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.report-card strong {
  display: block;
  color: #071b3a;
  font-size: 30px;
  margin-bottom: 8px;
}

.report-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.profit-card strong {
  color: #16a34a;
}

.reports-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.reports-panel {
  background: #ffffff;
  border: 1px solid #e7edf5;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(7, 27, 58, 0.05);
}

.reports-panel-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}

.reports-panel-header h2 {
  margin: 0 0 6px;
  color: #071b3a;
  font-size: 19px;
}

.reports-panel-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.report-stat-list {
  margin-top: 16px;
}

.report-stat-list > div {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f6;
}

.report-stat-list > div:last-child {
  border-bottom: 0;
}

.report-stat-list span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.report-stat-list strong {
  color: #071b3a;
  font-size: 18px;
}

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

  .reports-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   ABA CONTROL CENTER
   FINAL UI CLEANUP
===================================================== */

/* -----------------------------------------------------
   GLOBAL BUTTONS
----------------------------------------------------- */

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #0f4bc7
  );

  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 12px 25px rgba(21, 94, 239, 0.2);

  transition: 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 14px 30px rgba(21, 94, 239, 0.26);
}

.secondary-button {
  min-height: 43px;
  padding: 0 17px;

  border: none;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #eaf1ff;
  color: var(--primary-blue);

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.secondary-button:hover {
  background: #dbe8ff;
  color: var(--primary-blue);
  transform: translateY(-1px);
}


/* -----------------------------------------------------
   CUSTOMER LINKS
----------------------------------------------------- */

.customer-name-link {
  display: inline-block;

  color: var(--dark-navy);

  text-decoration: none;

  font-size: 13px;
  font-weight: 800;

  margin-bottom: 5px;

  transition: 0.2s ease;
}

.customer-name-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}


/* -----------------------------------------------------
   CUSTOMER TABLE
----------------------------------------------------- */

.customer-table tbody tr {
  transition: background 0.2s ease;
}

.customer-table tbody tr:hover {
  background: #f8faff;
}


/* -----------------------------------------------------
   SERVICE ACTION BUTTONS
----------------------------------------------------- */

.service-action-button {
  min-height: 40px;
  padding: 0 15px;

  border: 1px solid var(--border);
  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
  color: var(--dark-navy);

  text-decoration: none;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.service-action-button:hover {
  border-color: #bfdbfe;

  background: #eaf1ff;

  color: var(--primary-blue);
}

.service-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}

.delete-button {
  color: #dc2626;
}

.delete-button:hover {
  border-color: #fecaca;

  background: #fff5f5;

  color: #dc2626;
}


/* -----------------------------------------------------
   TASK ACTIONS
----------------------------------------------------- */

.task-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  gap: 10px;

  padding-top: 18px;
  margin-top: 20px;

  border-top: 1px solid #e8edf4;
}

.task-action-button {
  min-height: 40px;
  padding: 0 15px;

  border: 1px solid var(--border);
  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--white);

  color: var(--dark-navy);

  text-decoration: none;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}


/* Edit Task */

.edit-task-button {
  min-height: 40px;
  padding: 0 15px;

  border: 1px solid #bfdbfe;
  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #eaf1ff;

  color: var(--primary-blue);

  text-decoration: none;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;
}

.edit-task-button:hover {
  background: var(--primary-blue);

  color: #ffffff;

  text-decoration: none;
}


/* Complete Task */

.complete-task-button {
  border-color: #bbf7d0;

  background: #dcfce7;

  color: #15803d;
}

.complete-task-button:hover {
  background: #15803d;

  color: #ffffff;
}


/* Reopen Task */

.reopen-task-button {
  border-color: #bfdbfe;

  background: #eaf1ff;

  color: var(--primary-blue);
}

.reopen-task-button:hover {
  background: var(--primary-blue);

  color: #ffffff;
}


/* Delete Task */

.delete-task-button {
  border-color: #fecaca;

  background: #fff5f5;

  color: #dc2626;
}

.delete-task-button:hover {
  background: #dc2626;

  color: #ffffff;
}


/* -----------------------------------------------------
   DOCUMENT ACTIONS
----------------------------------------------------- */

.document-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;

  margin-top: 18px;
  padding-top: 18px;

  border-top: 1px solid #e8edf4;
}

.document-action-button {
  min-height: 40px;
  padding: 0 15px;

  border: none;
  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-blue);

  color: #ffffff;

  text-decoration: none;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}

.document-action-button:hover {
  background: #0f4bc7;
}

.document-delete-button {
  min-height: 40px;
  padding: 0 15px;

  border: 1px solid #fecaca;
  border-radius: 9px;

  background: #fff5f5;

  color: #dc2626;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}

.document-delete-button:hover {
  background: #dc2626;

  color: #ffffff;
}


/* -----------------------------------------------------
   FORMS
----------------------------------------------------- */

.customer-form-group input,
.customer-form-group select,
.customer-form-group textarea {
  width: 100%;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);

  color: var(--dark-navy);

  font-size: 14px;

  outline: none;

  transition: 0.2s ease;
}

.customer-form-group input,
.customer-form-group select {
  height: 52px;

  padding: 0 15px;
}

.customer-form-group textarea {
  min-height: 130px;

  padding: 14px 15px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  resize: vertical;
}

.customer-form-group input:focus,
.customer-form-group select:focus,
.customer-form-group textarea:focus {
  border-color: var(--primary-blue);

  box-shadow:
    0 0 0 4px rgba(21, 94, 239, 0.1);
}


/* -----------------------------------------------------
   HIDDEN ELEMENTS
----------------------------------------------------- */

[hidden] {
  display: none !important;
}


/* -----------------------------------------------------
   RESPONSIVE IMPROVEMENTS
----------------------------------------------------- */

@media (max-width: 1100px) {

  .service-information-grid,
  .services-page-details,
  .task-detail-grid,
  .document-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 760px) {

  .dashboard-main {
    padding: 24px 18px;
  }

  .dashboard-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .renewal-tools {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 650px) {

  .service-card-header,
  .services-page-card-top,
  .customer-profile-header,
  .profile-card-heading-with-action {
    align-items: flex-start;

    flex-direction: column;
  }

  .service-information-grid,
  .services-page-details,
  .task-detail-grid,
  .document-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-card-actions,
  .task-card-actions,
  .document-card-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .service-card-actions form,
  .task-card-actions form,
  .document-card-actions form {
    width: 100%;
  }

  .service-action-button,
  .task-action-button,
  .edit-task-button,
  .document-action-button,
  .document-delete-button {
    width: 100%;
  }

}


@media (max-width: 600px) {

  .stat-grid,
  .renewal-summary-grid,
  .service-summary-grid,
  .task-summary-grid,
  .document-summary-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .reports-detail-grid {
    grid-template-columns: 1fr;
  }

}
/* =====================================================
   MICROSOFT LOGIN
===================================================== */

.microsoft-login-button {
  width: 100%;
  min-height: 54px;

  margin-top: 24px;
  padding: 0 18px;

  border: 1px solid #d8dee8;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  background: #ffffff;

  color: #071b3a;

  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;

  box-shadow:
    0 8px 24px rgba(7, 27, 58, 0.06);
}

.microsoft-login-button:hover {
  border-color: #b8c5d6;

  transform: translateY(-1px);

  box-shadow:
    0 12px 30px rgba(7, 27, 58, 0.10);
}

.microsoft-logo {
  width: 20px;
  height: 20px;

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  grid-template-rows:
    repeat(2, 1fr);

  gap: 2px;
}

.microsoft-logo span {
  display: block;
}

.microsoft-logo span:nth-child(1) {
  background: #f25022;
}

.microsoft-logo span:nth-child(2) {
  background: #7fba00;
}

.microsoft-logo span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-logo span:nth-child(4) {
  background: #ffb900;
}

.login-security-note {
  margin-top: 20px;

  color: #64748b;

  font-size: 12px;

  line-height: 1.6;

  text-align: center;
}
/* =====================================================
   ABA CONTROL CENTER LOGO
===================================================== */

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-logo-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}
/* =====================================================
   INDEPENDENT SIDEBAR + MAIN PAGE SCROLL
===================================================== */

body.dashboard-page {
  height: 100vh;
  overflow: hidden;
}

/* Left navigation */
.dashboard-page .sidebar {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

/* Right application area */
.dashboard-page .dashboard-main {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Cleaner sidebar scrollbar */
.dashboard-page .sidebar::-webkit-scrollbar {
  width: 6px;
}

.dashboard-page .sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-page .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.dashboard-page .sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}
/* =====================================================
   AUDIT LOGS
===================================================== */

.audit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 82px;

  padding: 7px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.audit-action.create {
  background: #e8f7ed;
  color: #15803d;
}

.audit-action.update {
  background: #eaf1ff;
  color: #155eef;
}

.audit-action.delete {
  background: #feecec;
  color: #dc2626;
}

.audit-action.complete {
  background: #e8f7ed;
  color: #15803d;
}

.audit-action.reopen {
  background: #fff4db;
  color: #b45309;
}
/* =====================================================
   GLOBAL SEARCH
===================================================== */

.global-search-wrapper {
  position: relative;
  width: 100%;
}

.global-search-box {
  position: relative;
  z-index: 20;
}

.global-search-box input {
  width: 100%;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;

  z-index: 1000;

  max-height: 430px;
  overflow-y: auto;

  padding: 8px;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 18px;

  box-shadow:
    0 22px 55px
    rgba(7, 27, 58, 0.16);
}

.global-search-result {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;

  border-radius: 14px;

  color: #071b3a;
  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.global-search-result:hover {
  background: #f4f7ff;
  transform: translateY(-1px);
}

.global-search-result +
.global-search-result {
  margin-top: 4px;
}

.global-search-avatar {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #eaf1ff;
  color: #155eef;

  font-weight: 800;
  font-size: 17px;
}

.global-search-result-main {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.global-search-result-heading {
  display: flex;
  align-items: center;
  gap: 9px;

  min-width: 0;
}

.global-search-result-heading strong {
  overflow: hidden;

  color: #071b3a;

  font-size: 15px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-domain {
  color: #475569;

  font-size: 13px;
  font-weight: 600;
}

.global-search-result-main small {
  overflow: hidden;

  color: #64748b;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-status {
  padding: 4px 8px;

  border-radius: 999px;

  background: #e8f7ed;
  color: #15803d;

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;
}

.global-search-arrow {
  color: #94a3b8;

  font-size: 18px;
}

.global-search-message {
  padding: 18px;

  color: #64748b;

  text-align: center;

  font-size: 14px;
}

@media (
  max-width: 768px
) {
  .global-search-results {
    max-height: 360px;
  }

  .global-search-result {
    padding: 12px;
  }

  .global-search-result-main small {
    white-space: normal;
  }
}
/* =====================================================
   ABA PREMIUM LOGIN
===================================================== */

.aba-login-page {
  min-height: 100vh;

  margin: 0;

  position: relative;

  overflow-x: hidden;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    #031438
    url("/images/login-background.png")
    center center / cover
    no-repeat;
}

.aba-login-page *,
.aba-login-page *::before,
.aba-login-page *::after {
  box-sizing: border-box;
}

.aba-login-layout {
  width: 100%;
  min-height: 100vh;

  display: grid;

  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(420px, 0.75fr);

  align-items: center;
}

/* =====================================================
   LEFT SIDE TEXT
===================================================== */

.aba-login-brand-content {
  width: min(520px, 42vw);

  margin-left: clamp(42px, 8vw, 145px);

  position: relative;
  z-index: 2;

  color: #ffffff;

  transform:
    translateY(-10px);
}

.aba-login-brand-heading {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 13px;
}

.aba-login-line {
  width: 38px;
  height: 3px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #38bdf8,
      #155eef
    );

  box-shadow:
    0 0 18px
    rgba(56, 189, 248, 0.7);
}

.aba-login-brand-heading p {
  margin: 0;

  color: #8bdcff;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.16em;
}

.aba-login-brand-content h1 {
  margin: 0 0 18px;

  color: #ffffff;

  font-size:
    clamp(
      45px,
      4vw,
      66px
    );

  line-height: 1;

  letter-spacing: -0.045em;
}

.aba-login-brand-description {
  max-width: 470px;

  margin: 0;

  color:
    rgba(255, 255, 255, 0.72);

  font-size: 16px;

  line-height: 1.75;
}

.aba-login-features {
  margin-top: 30px;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.aba-login-feature {
  display: flex;
  align-items: center;

  gap: 11px;

  color:
    rgba(255, 255, 255, 0.84);

  font-size: 13px;
  font-weight: 600;
}

.aba-login-feature span {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(56, 189, 248, 0.4);

  border-radius: 8px;

  background:
    rgba(21, 94, 239, 0.16);

  color: #69d5ff;

  font-size: 11px;
}

/* =====================================================
   RIGHT LOGIN AREA
===================================================== */

.aba-login-access-area {
  min-height: 100vh;

  padding:
    40px clamp(35px, 5vw, 80px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  position: relative;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.99)
    );

  box-shadow:
    -35px 0 80px
    rgba(0, 0, 0, 0.12);
}

.aba-login-card {
  width: 100%;

  max-width: 445px;

  margin: auto;

  padding:
    38px 38px 34px;

  background:
    rgba(255, 255, 255, 0.96);

  border:
    1px solid
    rgba(15, 23, 42, 0.08);

  border-radius: 25px;

  box-shadow:
    0 25px 65px
    rgba(7, 27, 58, 0.12);
}

/* =====================================================
   CARD LOGO
===================================================== */

.aba-login-card-logo {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 35px;
}

.aba-login-card-logo img {
  width: 58px;
  height: 58px;

  object-fit: contain;

  border-radius: 13px;
}

.aba-login-card-logo div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.aba-login-card-logo strong {
  color: #071b3a;

  font-size: 15px;
}

.aba-login-card-logo span {
  color: #64748b;

  font-size: 11px;
}

/* =====================================================
   CARD HEADING
===================================================== */

.aba-login-card-heading {
  text-align: center;
}

.aba-login-eyebrow {
  margin:
    0 0 8px;

  color: #155eef;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.13em;
}

.aba-login-card-heading h2 {
  margin:
    0 0 12px;

  color: #071b3a;

  font-size: 36px;

  letter-spacing: -0.035em;
}

.aba-login-card-heading > p:last-child {
  max-width: 330px;

  margin:
    0 auto;

  color: #64748b;

  font-size: 13px;

  line-height: 1.65;
}

/* =====================================================
   MICROSOFT BUTTON
===================================================== */

.aba-microsoft-login {
  width: 100%;
  min-height: 60px;

  margin-top: 30px;

  padding:
    0 17px;

  display: flex;
  align-items: center;

  gap: 13px;

  border:
    1px solid #d9e1ec;

  border-radius: 13px;

  background: #ffffff;

  color: #071b3a;

  text-decoration: none;

  font-size: 14px;
  font-weight: 750;

  box-shadow:
    0 8px 22px
    rgba(7, 27, 58, 0.06);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.aba-microsoft-login:hover {
  transform:
    translateY(-1px);

  border-color:
    #aebfdb;

  box-shadow:
    0 13px 28px
    rgba(7, 27, 58, 0.1);
}

.aba-microsoft-logo {
  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  grid-template-rows:
    repeat(2, 1fr);

  gap: 2px;
}

.aba-microsoft-logo i {
  display: block;
}

.aba-microsoft-logo i:nth-child(1) {
  background: #f25022;
}

.aba-microsoft-logo i:nth-child(2) {
  background: #7fba00;
}

.aba-microsoft-logo i:nth-child(3) {
  background: #00a4ef;
}

.aba-microsoft-logo i:nth-child(4) {
  background: #ffb900;
}

.aba-login-arrow {
  margin-left: auto;

  color: #64748b;

  font-size: 20px;
}

/* =====================================================
   SECURITY AREA
===================================================== */

.aba-login-separator {
  margin:
    25px 0;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 12px;
}

.aba-login-separator > span {
  height: 1px;

  background: #e5eaf1;
}

.aba-login-lock {
  width: 27px;
  height: 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #edf4ff;

  color: #155eef;

  font-size: 11px;
  font-weight: 900;
}

.aba-login-security {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  padding:
    16px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #f7faff,
      #f3f7fd
    );

  border:
    1px solid #e8eef7;
}

.aba-login-security-icon {
  width: 37px;
  height: 37px;

  flex: 0 0 37px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: #e5efff;

  color: #155eef;

  font-weight: 900;
}

.aba-login-security strong {
  display: block;

  margin-bottom: 4px;

  color: #071b3a;

  font-size: 12px;
}

.aba-login-security p {
  margin: 0;

  color: #64748b;

  font-size: 11px;

  line-height: 1.55;
}

/* =====================================================
   LOGIN FOOTER
===================================================== */

.aba-login-card-footer {
  margin-top: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #94a3b8;

  font-size: 10px;
}

.aba-login-copyright {
  margin:
    27px auto 0;

  color: #64748b;

  font-size: 10px;

  text-align: center;
}

/* =====================================================
   RESPONSIVE LOGIN
===================================================== */

@media (
  max-width: 1050px
) {

  .aba-login-layout {
    grid-template-columns:
      1fr 480px;
  }

  .aba-login-brand-content {
    margin-left: 45px;

    width: min(420px, 40vw);
  }

}

@media (
  max-width: 850px
) {

  .aba-login-page {
    background-position:
      left center;
  }

  .aba-login-layout {
    display: block;

    padding:
      40px 20px;
  }

  .aba-login-brand-content {
    width: 100%;

    margin:
      0 auto 40px;

    padding:
      40px 30px;

    max-width: 600px;

    border-radius: 22px;

    background:
      rgba(3, 20, 56, 0.72);

    backdrop-filter:
      blur(8px);
  }

  .aba-login-access-area {
    width: 100%;
    min-height: auto;

    max-width: 600px;

    margin: auto;

    padding:
      35px;

    border-radius: 22px;

    background:
      rgba(255,255,255,0.97);
  }

}

@media (
  max-width: 520px
) {

  .aba-login-layout {
    padding:
      14px;
  }

  .aba-login-brand-content {
    padding:
      27px 22px;

    margin-bottom: 16px;
  }

  .aba-login-brand-content h1 {
    font-size: 39px;
  }

  .aba-login-brand-description {
    font-size: 14px;
  }

  .aba-login-access-area {
    padding:
      20px 14px;
  }

  .aba-login-card {
    padding:
      28px 21px;

    border-radius: 20px;
  }

  .aba-login-card-heading h2 {
    font-size: 31px;
  }

}
/* =====================================================
   LOGIN DESKTOP FIT FIX
===================================================== */

@media (min-width: 851px) {

  .aba-login-page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .aba-login-layout {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .aba-login-access-area {
    height: 100vh;
    min-height: 100vh;

    padding:
      24px clamp(30px, 4vw, 62px);

    overflow: hidden;
  }

  .aba-login-card {
    max-width: 420px;

    padding:
      28px 32px 26px;

    border-radius: 22px;
  }

  .aba-login-card-logo {
    margin-bottom: 24px;
  }

  .aba-login-card-logo img {
    width: 52px;
    height: 52px;
  }

  .aba-login-card-heading h2 {
    margin-bottom: 8px;

    font-size: 34px;
  }

  .aba-microsoft-login {
    min-height: 56px;

    margin-top: 24px;
  }

  .aba-login-separator {
    margin:
      20px 0;
  }

  .aba-login-security {
    padding: 14px;
  }

  .aba-login-card-footer {
    margin-top: 19px;
  }

  .aba-login-copyright {
    margin-top: 15px;
  }

}
/* =====================================================
   LOGIN FINAL POSITIONING
===================================================== */

@media (min-width: 851px) {

  .aba-login-brand-content {
    width: min(560px, 47vw);

    margin-left: clamp(55px, 7.5vw, 125px);

    align-self: start;

    margin-top: clamp(90px, 13vh, 145px);

    transform: none;
  }

  .aba-login-brand-content h1 {
    font-size: clamp(46px, 4vw, 64px);

    margin-bottom: 20px;
  }

  .aba-login-brand-description {
    max-width: 540px;

    font-size: 15px;

    line-height: 1.65;
  }

  .aba-login-features {
    margin-top: 24px;

    gap: 9px;
  }

}
/* =====================================================
   PREMIUM DASHBOARD
===================================================== */

.premium-dashboard-main {
  background:
    linear-gradient(
      145deg,
      #f6f9fd 0%,
      #f2f6fb 100%
    );
}

.premium-dashboard-header {
  padding-bottom: 6px;
}

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

/* =====================================================
   SEARCH
===================================================== */

.premium-dashboard-search {
  margin-top: 26px;
  margin-bottom: 22px;
}

.premium-dashboard-search .search-box {
  min-height: 64px;

  padding-left: 20px;
  padding-right: 16px;

  background: #ffffff;

  border:
    1px solid #e1e8f2;

  border-radius: 16px;

  box-shadow:
    0 10px 30px
    rgba(7, 27, 58, 0.05);
}

.premium-dashboard-search input {
  font-size: 14px;
}

.dashboard-search-shortcut {
  margin-left: auto;

  padding: 7px 11px;

  border-radius: 8px;

  background: #f3f6fa;

  color: #94a3b8;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.04em;
}

/* =====================================================
   QUICK ACTIONS
===================================================== */

.dashboard-quick-actions {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 13px;

  margin-bottom: 34px;
}

.dashboard-quick-action {
  min-width: 0;

  padding: 15px;

  display: flex;
  align-items: center;

  gap: 12px;

  background: #ffffff;

  border:
    1px solid #e5ebf3;

  border-radius: 14px;

  color: #071b3a;

  text-decoration: none;

  box-shadow:
    0 7px 22px
    rgba(7, 27, 58, 0.035);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-quick-action:hover {
  transform:
    translateY(-2px);

  border-color:
    #bdd0f4;

  box-shadow:
    0 12px 28px
    rgba(7, 27, 58, 0.07);
}

.dashboard-action-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: #eaf1ff;

  color: #155eef;

  font-size: 17px;
  font-weight: 800;
}

.dashboard-quick-action div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.dashboard-quick-action strong {
  color: #071b3a;

  font-size: 13px;
}

.dashboard-quick-action div span {
  overflow: hidden;

  color: #718096;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================
   SECTION TITLES
===================================================== */

.dashboard-section-heading {
  margin:
    4px 0 15px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.dashboard-section-heading p {
  margin:
    0 0 4px;

  color: #155eef;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.13em;
}

.dashboard-section-heading h2 {
  margin: 0;

  color: #071b3a;

  font-size: 21px;

  letter-spacing: -0.02em;
}

.dashboard-operations-heading {
  margin-top: 35px;
}

/* =====================================================
   STAT CARDS
===================================================== */

.premium-stat-grid {
  gap: 14px;
}

.premium-stat-card {
  min-height: 164px;

  padding: 20px;

  position: relative;

  overflow: hidden;

  border:
    1px solid #e5ebf3;

  border-radius: 17px;

  background: #ffffff;

  box-shadow:
    0 8px 25px
    rgba(7, 27, 58, 0.04);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.premium-stat-card:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 14px 35px
    rgba(7, 27, 58, 0.075);
}

.premium-stat-card::after {
  content: "";

  width: 85px;
  height: 85px;

  position: absolute;

  right: -35px;
  bottom: -35px;

  border-radius: 50%;

  background:
    rgba(21, 94, 239, 0.035);
}

.premium-stat-card .stat-number {
  margin-top: 18px;

  display: block;

  color: #071b3a;

  font-size: 30px;

  letter-spacing: -0.035em;
}

.premium-stat-card .stat-currency {
  font-size: 25px;
}

.premium-stat-card > p {
  margin-top: 5px;

  color: #8793a7;

  font-size: 10px;
}

.financial-stat-card {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fafcff
    );
}

/* =====================================================
   OPERATION CARDS
===================================================== */

.premium-dashboard-content-grid {
  gap: 16px;
}

.premium-content-card {
  overflow: hidden;

  border:
    1px solid #e5ebf3;

  border-radius: 19px;

  background: #ffffff;

  box-shadow:
    0 9px 30px
    rgba(7, 27, 58, 0.045);
}

.dashboard-card-title-row {
  display: flex;
  align-items: center;

  gap: 12px;
}

.dashboard-card-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #eaf1ff;

  color: #155eef;

  font-weight: 800;
}

.warning-dashboard-icon {
  background: #fff6df;

  color: #b7791f;
}

.premium-dashboard-card-body {
  min-height: 175px;

  padding-top: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  gap: 24px;
}

.dashboard-card-kicker {
  display: inline-block;

  margin-bottom: 8px;

  color: #155eef;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.11em;
}

.premium-dashboard-card-body h3 {
  margin:
    0 0 8px;

  color: #071b3a;

  font-size: 18px;

  letter-spacing: -0.02em;
}

.premium-dashboard-card-body p {
  max-width: 510px;

  margin: 0;

  color: #718096;

  font-size: 12px;

  line-height: 1.65;
}

.premium-dashboard-card-body .secondary-button {
  width: fit-content;
}

/* =====================================================
   DASHBOARD RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

  .dashboard-quick-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 700px) {

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

  .dashboard-search-shortcut {
    display: none;
  }

  .dashboard-section-heading h2 {
    font-size: 19px;
  }

}
/* =====================================================
   DASHBOARD FINAL POLISH
===================================================== */

@media (min-width: 1200px) {

  .premium-dashboard-main {
    padding-left: 32px;
    padding-right: 32px;
  }

  .premium-dashboard-header,
  .premium-dashboard-search,
  .dashboard-quick-actions,
  .dashboard-section-heading,
  .premium-stat-grid,
  .premium-dashboard-content-grid {
    width: 100%;
    max-width: 1480px;

    margin-left: auto;
    margin-right: auto;
  }

  .premium-stat-card,
  .dashboard-quick-action {
    box-shadow:
      0 10px 28px
      rgba(7, 27, 58, 0.055);
  }

  .dashboard-header-actions {
    padding-right: 4px;
  }

}
/* =====================================================
   PREMIUM CUSTOMER DETAILS
===================================================== */

.premium-customer-details-main {
  background:
    linear-gradient(
      145deg,
      #f6f9fd 0%,
      #f2f6fb 100%
    );
}

.customer-details-topbar {
  margin-bottom: 24px;
}

.premium-back-link {
  min-height: 38px;

  display: inline-flex;
  align-items: center;

  padding:
    0 13px;

  border:
    1px solid #e1e8f2;

  border-radius: 10px;

  background: #ffffff;

  color: #475569;

  text-decoration: none;

  font-size: 12px;
  font-weight: 700;

  box-shadow:
    0 5px 18px
    rgba(7, 27, 58, 0.035);

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.premium-back-link:hover {
  transform:
    translateY(-1px);

  border-color:
    #bfd0ee;

  box-shadow:
    0 8px 22px
    rgba(7, 27, 58, 0.06);
}

.customer-details-heading {
  margin-bottom: 26px;
}

.customer-details-heading h1 {
  margin:
    4px 0 7px;

  color: #071b3a;

  font-size: 34px;

  letter-spacing: -0.035em;
}

.premium-customer-details-container {
  width: 100%;
}

/* =====================================================
   CUSTOMER LOADING STATE
===================================================== */

.premium-details-loading {
  min-height: 220px;

  padding: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;

  background: #ffffff;

  border:
    1px solid #e3eaf3;

  border-radius: 20px;

  box-shadow:
    0 10px 30px
    rgba(7, 27, 58, 0.045);
}

.details-loading-spinner {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  border:
    3px solid #e5edfb;

  border-top-color:
    #155eef;

  border-radius: 50%;

  animation:
    customerDetailsSpin
    0.8s linear infinite;
}

.premium-details-loading strong {
  display: block;

  margin-bottom: 4px;

  color: #071b3a;

  font-size: 14px;
}

.premium-details-loading p {
  margin: 0;

  color: #718096;

  font-size: 11px;
}

@keyframes customerDetailsSpin {

  to {
    transform:
      rotate(360deg);
  }

}

/* =====================================================
   CUSTOMER DETAILS EXISTING CONTENT POLISH
===================================================== */

.premium-customer-details-container
.customer-profile-card,
.premium-customer-details-container
.customer-details-card,
.premium-customer-details-container
.service-section,
.premium-customer-details-container
.services-section {
  border:
    1px solid #e4eaf2;

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 10px 30px
    rgba(7, 27, 58, 0.045);
}

.premium-customer-details-container
.customer-profile-card {
  overflow: hidden;
}

.premium-customer-details-container
.details-header,
.premium-customer-details-container
.customer-profile-header {
  position: relative;

  background:
    linear-gradient(
      135deg,
      #071b3a 0%,
      #0c3474 58%,
      #155eef 100%
    );

  color: #ffffff;
}

.premium-customer-details-container
.details-grid,
.premium-customer-details-container
.customer-details-grid {
  gap: 14px;
}

.premium-customer-details-container
.details-item,
.premium-customer-details-container
.detail-card {
  padding: 16px;

  border:
    1px solid #e8edf4;

  border-radius: 13px;

  background: #fafcff;
}

.premium-customer-details-container
.details-item label,
.premium-customer-details-container
.detail-card label {
  color: #8995a7;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.premium-customer-details-container
.details-item strong,
.premium-customer-details-container
.detail-card strong {
  color: #071b3a;
}

/* =====================================================
   CUSTOMER SERVICES TABLE
===================================================== */

.premium-customer-details-container table {
  width: 100%;

  border-collapse: collapse;
}

.premium-customer-details-container thead {
  background: #f6f8fb;
}

.premium-customer-details-container th {
  padding: 13px 14px;

  color: #738096;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.07em;

  text-align: left;

  text-transform: uppercase;
}

.premium-customer-details-container td {
  padding: 15px 14px;

  color: #334155;

  border-top:
    1px solid #edf1f5;

  font-size: 12px;
}

.premium-customer-details-container tbody tr {
  transition:
    background 0.2s ease;
}

.premium-customer-details-container tbody tr:hover {
  background: #f8fbff;
}

/* =====================================================
   RESPONSIVE CUSTOMER PROFILE
===================================================== */

@media (min-width: 1200px) {

  .customer-details-topbar,
  .customer-details-heading,
  .premium-customer-details-container {
    width: 100%;

    max-width: 1480px;

    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 700px) {

  .customer-details-heading h1 {
    font-size: 29px;
  }

  .premium-details-loading {
    padding: 26px 20px;

    align-items: flex-start;
  }

}
/* =====================================================
   PREMIUM CUSTOMERS PAGE
===================================================== */

.premium-customers-main {
  background:
    linear-gradient(
      145deg,
      #f6f9fd 0%,
      #f2f6fb 100%
    );
}

.premium-customers-header {
  margin-bottom: 0;
}

.premium-add-customer-button {
  gap: 7px;

  box-shadow:
    0 10px 24px
    rgba(21, 94, 239, 0.18);
}

.premium-add-customer-button span {
  font-size: 18px;

  line-height: 1;
}


/* =====================================================
   CUSTOMER SEARCH
===================================================== */

.premium-customer-search {
  margin-top: 26px;
  margin-bottom: 24px;
}

.premium-customer-search .search-box {
  min-height: 64px;

  padding:
    0 17px;

  display: flex;
  align-items: center;

  gap: 13px;

  background: #ffffff;

  border:
    1px solid #e2e8f0;

  border-radius: 16px;

  box-shadow:
    0 9px 28px
    rgba(7, 27, 58, 0.045);
}

.premium-customer-search-icon {
  color: #64748b;

  font-size: 18px;
}

.premium-customer-search input {
  flex: 1;

  min-width: 0;

  border: none;
  outline: none;

  background: transparent;

  color: #071b3a;

  font-size: 14px;
}

.premium-customer-search input::placeholder {
  color: #94a3b8;
}

.premium-search-label {
  padding:
    6px 10px;

  border-radius: 8px;

  background: #f3f6fa;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


/* =====================================================
   CUSTOMER LIST CARD
===================================================== */

.premium-customer-list-card {
  overflow: hidden;

  padding: 0;

  background: #ffffff;

  border:
    1px solid #e3e9f1;

  border-radius: 20px;

  box-shadow:
    0 12px 34px
    rgba(7, 27, 58, 0.045);
}

.premium-customer-list-heading {
  padding:
    26px 28px 21px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  border-bottom:
    1px solid #edf1f5;
}

.premium-section-kicker {
  margin:
    0 0 5px !important;

  color: #155eef !important;

  font-size: 9px !important;
  font-weight: 800 !important;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.premium-customer-list-heading h2 {
  margin:
    0 0 4px;

  color: #071b3a;

  font-size: 22px;

  letter-spacing: -0.025em;
}

.premium-customer-list-heading
#customerCount {
  margin: 0;

  color: #718096;

  font-size: 11px;
}

.premium-customer-list-indicator {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #64748b;

  font-size: 10px;
  font-weight: 700;
}

.premium-customer-list-indicator span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 5px
    rgba(34, 197, 94, 0.1);
}


/* =====================================================
   PREMIUM CUSTOMER TABLE
===================================================== */

.premium-customer-table-wrapper {
  width: 100%;

  overflow-x: auto;
}

.premium-customer-table {
  width: 100%;

  border-collapse: collapse;
}

.premium-customer-table thead {
  background:
    #f8fafc;
}

.premium-customer-table th {
  padding:
    15px 18px;

  color: #64748b;

  border-bottom:
    1px solid #e8edf3;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.075em;

  text-align: left;

  text-transform: uppercase;
}

.premium-customer-table td {
  padding:
    17px 18px;

  border-bottom:
    1px solid #edf1f5;

  color: #334155;

  font-size: 12px;

  vertical-align: middle;
}

.premium-customer-table tbody tr {
  background: #ffffff;

  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.premium-customer-table tbody tr:hover {
  background: #f8fbff;
}

.premium-customer-table tbody tr:last-child td {
  border-bottom: none;
}


/* =====================================================
   EXISTING DYNAMIC CUSTOMER ROW POLISH
===================================================== */

.premium-customer-list-card
.customer-avatar {
  width: 43px;
  height: 43px;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #edf4ff,
      #dce9ff
    );

  color: #155eef;

  font-weight: 800;
}

.premium-customer-list-card
.company-cell strong,
.premium-customer-list-card
.customer-company strong {
  color: #071b3a;

  font-size: 12px;
}

.premium-customer-list-card
.company-cell span,
.premium-customer-list-card
.customer-company span {
  color: #64748b;

  font-size: 10px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.premium-customer-empty-state {
  padding:
    55px 30px;

  text-align: center;
}

.premium-empty-state-icon {
  width: 58px;
  height: 58px;

  margin:
    0 auto 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: #eaf1ff;

  color: #155eef;

  font-size: 22px;
}

.premium-customer-empty-state h3 {
  margin:
    0 0 7px;

  color: #071b3a;

  font-size: 18px;
}

.premium-customer-empty-state p {
  max-width: 410px;

  margin:
    0 auto 20px;

  color: #718096;

  font-size: 12px;

  line-height: 1.65;
}


/* =====================================================
   CUSTOMERS RESPONSIVE
===================================================== */

@media (min-width: 1200px) {

  .premium-customers-header,
  .premium-customer-search,
  .premium-customer-list-card {
    width: 100%;

    max-width: 1480px;

    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 760px) {

  .premium-search-label {
    display: none;
  }

  .premium-customer-list-heading {
    padding:
      22px 20px;

    align-items: flex-start;
  }

  .premium-customer-list-indicator {
    display: none;
  }

  .premium-customer-table {
    min-width: 850px;
  }

}
/* =====================================================
   PREMIUM SERVICES PAGE
===================================================== */

.premium-services-main {
  background:
    linear-gradient(
      145deg,
      #f6f9fd 0%,
      #f2f6fb 100%
    );
}

.premium-services-header {
  margin-bottom: 0;
}

.services-summary-heading {
  margin-top: 26px;
}

.premium-service-summary-grid {
  gap: 14px;
}

.premium-service-summary-card {
  min-height: 150px;

  padding: 20px;

  border:
    1px solid #e5ebf3;

  border-radius: 17px;

  background: #ffffff;

  box-shadow:
    0 9px 26px
    rgba(7, 27, 58, 0.045);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.premium-service-summary-card:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 14px 34px
    rgba(7, 27, 58, 0.075);
}

.premium-service-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.premium-service-summary-top > span:first-child {
  color: #64748b;

  font-size: 11px;
  font-weight: 700;
}

.premium-service-summary-card > strong {
  display: block;

  margin-top: 18px;

  color: #071b3a;

  font-size: 29px;

  letter-spacing: -0.035em;
}

.premium-service-summary-card > p {
  margin:
    5px 0 0;

  color: #8793a7;

  font-size: 10px;
}

/* =====================================================
   SERVICE TOOLS
===================================================== */

.premium-services-tools {
  margin:
    26px 0 22px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    190px;

  gap: 12px;
}

.premium-services-search {
  min-height: 60px;

  padding:
    0 17px;

  background: #ffffff;

  border:
    1px solid #e2e8f0;

  border-radius: 15px;

  box-shadow:
    0 8px 24px
    rgba(7, 27, 58, 0.04);
}

.premium-services-search input {
  font-size: 14px;
}

.premium-services-filter {
  min-height: 60px;

  padding:
    0 15px;

  border:
    1px solid #e2e8f0;

  border-radius: 15px;

  background: #ffffff;

  color: #334155;

  font-size: 12px;
  font-weight: 700;

  box-shadow:
    0 8px 24px
    rgba(7, 27, 58, 0.04);
}

/* =====================================================
   SERVICES DATABASE
===================================================== */

.premium-services-list-card {
  overflow: hidden;

  padding: 0;

  border:
    1px solid #e3e9f1;

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 12px 34px
    rgba(7, 27, 58, 0.045);
}

.premium-services-list-heading {
  padding:
    26px 28px 21px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  border-bottom:
    1px solid #edf1f5;
}

.premium-services-list-heading h2 {
  margin:
    0 0 4px;

  color: #071b3a;

  font-size: 22px;

  letter-spacing: -0.025em;
}

.premium-services-list-heading
#serviceCount {
  margin: 0;

  color: #718096;

  font-size: 11px;
}

.premium-service-list-indicator {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #64748b;

  font-size: 10px;
  font-weight: 700;
}

.premium-service-list-indicator span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 5px
    rgba(34, 197, 94, 0.1);
}

/* =====================================================
   GENERATED SERVICE CARDS
===================================================== */

.premium-services-page-grid {
  padding:
    22px;
}

.premium-services-page-grid
.service-card,
.premium-services-page-grid
.service-item,
.premium-services-page-grid
.service-record-card {
  border:
    1px solid #e6ebf2;

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fbfdff
    );

  box-shadow:
    0 7px 20px
    rgba(7, 27, 58, 0.035);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.premium-services-page-grid
.service-card:hover,
.premium-services-page-grid
.service-item:hover,
.premium-services-page-grid
.service-record-card:hover {
  transform:
    translateY(-2px);

  border-color:
    #c9d8ef;

  box-shadow:
    0 12px 28px
    rgba(7, 27, 58, 0.065);
}

/* =====================================================
   RESPONSIVE SERVICES
===================================================== */

@media (min-width: 1200px) {

  .premium-services-header,
  .services-summary-heading,
  .premium-service-summary-grid,
  .premium-services-tools,
  .premium-services-list-card {
    width: 100%;
    max-width: 1480px;

    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 760px) {

  .premium-services-tools {
    grid-template-columns:
      1fr;
  }

  .premium-services-filter {
    width: 100%;
  }

  .premium-services-list-heading {
    padding:
      22px 20px;
  }

  .premium-service-list-indicator {
    display: none;
  }

  .premium-services-page-grid {
    padding:
      16px;
  }

}
/* =====================================================
   PREMIUM ADD CUSTOMER PAGE
===================================================== */

.premium-add-customer-main {
  background:
    linear-gradient(
      145deg,
      #f6f9fd 0%,
      #f2f6fb 100%
    );
}

.premium-add-customer-header {
  margin-bottom: 24px;
}

.premium-add-customer-header h1 {
  margin:
    4px 0 7px;

  color: #071b3a;

  font-size: 34px;

  letter-spacing: -0.035em;
}

.premium-customer-form-card {
  width: 100%;
  max-width: 1000px;

  padding: 0;

  overflow: hidden;

  border:
    1px solid #e3e9f1;

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 12px 34px
    rgba(7, 27, 58, 0.05);
}

.premium-customer-form-card form {
  width: 100%;
}

.premium-form-section {
  padding:
    28px 30px;
}

.premium-form-section-heading {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  margin-bottom: 24px;
}

.premium-form-section-icon {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #eaf1ff;

  color: #155eef;

  font-size: 16px;
  font-weight: 800;
}

.premium-form-section-heading p {
  margin:
    0 0 4px;

  color: #155eef;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.premium-form-section-heading h2 {
  margin:
    0 0 4px;

  color: #071b3a;

  font-size: 19px;

  letter-spacing: -0.02em;
}

.premium-form-section-heading span {
  color: #718096;

  font-size: 11px;
}

.premium-customer-form-grid {
  gap:
    18px 16px;
}

.premium-customer-form-card
.customer-form-group label {
  display: block;

  margin-bottom: 7px;

  color: #334155;

  font-size: 10px;
  font-weight: 800;
}

.premium-customer-form-card
.customer-form-group label span {
  color: #dc2626;
}

.premium-customer-form-card
.customer-form-group input,
.premium-customer-form-card
.customer-form-group select {
  width: 100%;
  min-height: 48px;

  padding:
    0 13px;

  border:
    1px solid #dfe6ef;

  border-radius: 11px;

  background: #ffffff;

  color: #071b3a;

  font-size: 12px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.premium-customer-form-card
.customer-form-group input:focus,
.premium-customer-form-card
.customer-form-group select:focus {
  border-color: #9bb8ef;

  box-shadow:
    0 0 0 4px
    rgba(21, 94, 239, 0.08);

  background: #ffffff;
}

.premium-customer-form-card
.customer-form-group input::placeholder {
  color: #9aa6b7;
}

.premium-form-divider {
  height: 1px;

  margin:
    0 30px;

  background: #edf1f5;
}

.premium-form-actions {
  padding:
    22px 30px 28px;

  margin-top: 0;

  display: flex;
  justify-content: flex-end;

  gap: 10px;

  border-top:
    1px solid #edf1f5;

  background: #fafcff;
}

.premium-form-actions
.cancel-button,
.premium-form-actions
.save-customer-button {
  min-height: 44px;

  padding:
    0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  font-size: 11px;
  font-weight: 800;
}

.premium-form-actions
.cancel-button {
  border:
    1px solid #dfe6ef;

  background: #ffffff;

  color: #475569;

  text-decoration: none;
}

.premium-form-actions
.save-customer-button {
  border: none;

  background:
    linear-gradient(
      135deg,
      #155eef,
      #1d4ed8
    );

  color: #ffffff;

  box-shadow:
    0 9px 22px
    rgba(21, 94, 239, 0.18);

  cursor: pointer;
}

@media (min-width: 1200px) {

  .premium-add-customer-main
  .customer-details-topbar,
  .premium-add-customer-header,
  .premium-customer-form-card {
    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 760px) {

  .premium-customer-form-card {
    border-radius: 16px;
  }

  .premium-form-section {
    padding:
      22px 18px;
  }

  .premium-form-divider {
    margin:
      0 18px;
  }

  .premium-form-actions {
    padding:
      18px;

    flex-direction: column-reverse;
  }

  .premium-form-actions
  .cancel-button,
  .premium-form-actions
  .save-customer-button {
    width: 100%;
  }

}
/* =====================================================
   ABA CONTROL CENTER - GLOBAL MOBILE LAYOUT
   ===================================================== */

@media (max-width: 760px) {

  /* ---------------------------------------------
     PAGE
     --------------------------------------------- */

  body.dashboard-page {
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }


  /* ---------------------------------------------
     MAIN CONTENT
     --------------------------------------------- */

  .dashboard-main,
  .premium-dashboard-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin-left: 0;

    padding:
      24px
      16px
      110px;

    overflow-x: hidden;
    overflow-y: visible;
  }


  /* ---------------------------------------------
     SIDEBAR -> MOBILE BOTTOM NAVIGATION
     --------------------------------------------- */

  .sidebar {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;
    top: auto;

    z-index: 1000;

    width: 100%;
    height: auto;
    min-height: 0;

    padding:
      8px
      10px
      calc(
        8px +
        env(
          safe-area-inset-bottom
        )
      );

    background: #071b3a;

    border-top:
      1px solid
      rgba(
        255,
        255,
        255,
        0.10
      );

    overflow: visible;
  }


  /* Hide desktop branding on mobile */

  .sidebar-brand {
    display: none;
  }


  /* Hide desktop user/footer area */

  .sidebar-footer {
    display: none;
  }


  /* ---------------------------------------------
     MOBILE MENU
     --------------------------------------------- */

  .sidebar-menu {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 6px;

    margin: 0;
    padding: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;

    -webkit-overflow-scrolling:
      touch;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }


  .sidebar-menu .menu-item {
    flex:
      0
      0
      auto;

    min-width: 74px;
    min-height: 58px;

    margin: 0;
    padding:
      8px
      10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    border-radius: 12px;

    font-size: 10px;
    line-height: 1.2;

    text-align: center;
    white-space: nowrap;
  }


  .sidebar-menu .menu-icon {
    width: auto;
    margin: 0;

    font-size: 17px;
    line-height: 1;
  }


  .sidebar-menu .menu-item.active {
    background: #155eef;
  }


  /* ---------------------------------------------
     PAGE HEADER
     --------------------------------------------- */

  .dashboard-header,
  .page-header {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 18px;

    margin-bottom: 22px;
  }


  .dashboard-header h1,
  .page-header h1 {
    font-size: 30px;
    line-height: 1.1;
  }


  .dashboard-subtitle {
    max-width: 100%;

    font-size: 14px;
    line-height: 1.5;
  }


  .dashboard-header .primary-button,
  .page-header .primary-button {
    width: 100%;
    justify-content: center;
  }


  /* ---------------------------------------------
     SEARCH
     --------------------------------------------- */

  .search-section,
  .global-search-wrapper,
  .search-box {
    width: 100%;
    max-width: 100%;
  }


  .search-box input {
    width: 100%;
    min-width: 0;
  }


  /* ---------------------------------------------
     DASHBOARD QUICK LINKS
     --------------------------------------------- */

  .premium-dashboard-shortcuts,
  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }


  /* ---------------------------------------------
     DASHBOARD STATS
     --------------------------------------------- */

  .stat-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }


  .stat-card {
    width: 100%;
    min-width: 0;
  }


  /* ---------------------------------------------
     DASHBOARD CONTENT
     --------------------------------------------- */

  .dashboard-content-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }


  .content-card {
    width: 100%;
    min-width: 0;
  }


  .dashboard-quick-content {
    grid-template-columns: 1fr;

    align-items: flex-start;

    gap: 16px;
  }


  /* ---------------------------------------------
     FORMS
     --------------------------------------------- */

  .form-card {
    width: 100%;
    max-width: 100%;

    padding: 20px;
  }


  .customer-form-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }


  .customer-form-group,
  .customer-form-group.full-width {
    grid-column: auto;

    width: 100%;
  }


  .form-actions {
    width: 100%;

    flex-direction: column-reverse;

    gap: 10px;
  }


  .form-actions .cancel-button,
  .form-actions .save-customer-button {
    width: 100%;

    justify-content: center;
  }


  /* ---------------------------------------------
     FILTER / SEARCH TOOLBARS
     --------------------------------------------- */

  .renewal-tools {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 12px;
  }


  .renewal-search-box,
  .renewal-filter {
    width: 100%;
    max-width: 100%;
  }


  /* ---------------------------------------------
     CARDS
     --------------------------------------------- */

  .service-summary-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }


  .service-summary-card,
  .services-list-card,
  .customer-list-card {
    width: 100%;
    max-width: 100%;
  }


  /* ---------------------------------------------
     TABLES
     --------------------------------------------- */

  .table-wrapper {
    width: 100%;
    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling:
      touch;
  }


  .customer-table {
    min-width: 760px;
  }


  /* ---------------------------------------------
     BUTTON SAFETY
     --------------------------------------------- */

  .primary-button,
  .secondary-button,
  .save-customer-button,
  .cancel-button {
    max-width: 100%;
  }

}
/* =====================================================
   MOBILE SIDEBAR OVERRIDE FIX
   ===================================================== */

@media (max-width: 760px) {

  body.dashboard-page .sidebar {
    position: fixed !important;

    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    flex: none !important;

    padding:
      8px
      10px
      calc(
        8px +
        env(safe-area-inset-bottom)
      ) !important;

    overflow: visible !important;
  }


  body.dashboard-page .sidebar-menu {
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
  }


  body.dashboard-page .sidebar-brand,
  body.dashboard-page .sidebar-footer {
    display: none !important;
  }


  body.dashboard-page .dashboard-main,
  body.dashboard-page .premium-dashboard-main {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    padding:
      24px
      16px
      100px !important;

    overflow: visible !important;
  }

}
/* =====================================================
   MOBILE BOTTOM NAV SAFE SPACE
   ===================================================== */

@media (max-width: 760px) {

  body.dashboard-page {
    padding-bottom:
      calc(
        110px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  body.dashboard-page .dashboard-main,
  body.dashboard-page .premium-dashboard-main {
    padding-bottom:
      calc(
        140px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  body.dashboard-page .customer-list-card,
  body.dashboard-page .services-list-card,
  body.dashboard-page .form-card,
  body.dashboard-page .content-card {
    margin-bottom: 20px;
  }

}
/* =====================================================
   MOBILE MAIN SCROLL SAFE AREA
   ===================================================== */

@media (max-width: 760px) {

  body.dashboard-page .dashboard-main,
  body.dashboard-page .premium-dashboard-main {
    height: auto !important;
    min-height: 100vh !important;

    overflow-y: visible !important;
    overflow-x: hidden !important;

    padding-bottom:
      calc(
        170px +
        env(safe-area-inset-bottom)
      ) !important;
  }

}

/* =====================================================
   MOBILE PROFILE MENU
   ===================================================== */

.mobile-profile-menu {
  display: none;
}

@media (max-width: 760px) {

  .mobile-profile-menu {
    display: block;

    position: fixed;

    top:
      calc(
        14px +
        env(safe-area-inset-top)
      );

    right: 14px;

    z-index: 2000;
  }

  .mobile-profile-button {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
      linear-gradient(
        135deg,
        #155eef,
        #38bdf8
      );

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
      0 10px 28px
      rgba(
        21,
        94,
        239,
        0.28
      );
  }

  .mobile-profile-dropdown {
    position: absolute;

    top: 52px;
    right: 0;

    width: 255px;

    padding: 14px;

    border:
      1px solid
      #e2e8f0;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
      0 20px 55px
      rgba(
        7,
        27,
        58,
        0.18
      );
  }

  .mobile-profile-user {
    display: flex;
    align-items: center;

    gap: 11px;

    padding:
      4px
      4px
      10px;
  }

  .mobile-profile-avatar {
    width: 38px;
    height: 38px;

    flex:
      0
      0
      38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
      #eaf1ff;

    color:
      #155eef;

    font-size: 11px;
    font-weight: 800;
  }

  .mobile-profile-user strong {
    display: block;

    color:
      #071b3a;

    font-size: 13px;

    margin-bottom: 3px;
  }

  .mobile-profile-user span {
    color:
      #64748b;

    font-size: 11px;
  }

  .mobile-profile-divider {
    height: 1px;

    margin:
      8px
      0;

    background:
      #edf1f6;
  }

  .mobile-profile-links {
    display: grid;

    gap: 3px;
  }

  .mobile-profile-link,
  .mobile-profile-signout {
    min-height: 42px;

    padding:
      0
      12px;

    border-radius:
      10px;

    display: flex;
    align-items: center;

    gap: 10px;

    color:
      #071b3a;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
  }

  .mobile-profile-link:hover {
    background:
      #f4f7ff;

    color:
      #155eef;
  }

  .mobile-profile-link span {
    width: 20px;

    text-align: center;

    color:
      #155eef;
  }

  .mobile-profile-signout {
    color:
      #dc2626;
  }

  .mobile-profile-signout:hover {
    background:
      #fff5f5;
  }
}
.customer-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.14);

  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  backdrop-filter: blur(8px);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.customer-edit-button:hover {
  transform: translateY(-1px);

  background: rgba(255, 255, 255, 0.22);

  border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .customer-profile-actions {
    align-items: flex-end;
    flex-direction: column;
  }
}
.archive-customer-form {
  margin: 0;
}

.customer-archive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);

  color: #ffffff;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.customer-archive-button:hover {
  transform: translateY(-1px);

  background: rgba(255, 255, 255, 0.18);

  border-color: rgba(255, 255, 255, 0.55);
}