/* Import modern premium fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Gobar';
  src: local('Gobar');
  font-display: swap;
}

/* Color System & Variables */
:root {
  /* Common Brand Colors */
  --primary: hsl(265, 60%, 45%);
  --primary-dark: hsl(265, 60%, 30%);
  --primary-light: hsl(265, 70%, 60%);
  --secondary: hsl(24, 100%, 50%);
  /* Orange */

  --success: hsl(142, 72%, 40%);
  --success-bg: hsl(142, 72%, 95%);
  --danger: hsl(350, 80%, 50%);
  --danger-bg: hsl(350, 80%, 95%);
  --warning: hsl(45, 90%, 50%);
  --info: hsl(195, 85%, 45%);

  /* Fonts */
  --font-main: 'Gobar', 'Inter', Arial, sans-serif;
  --font-title: 'Gobar', 'Inter', Arial, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
}

/* Light Theme (Default) */
[data-theme="light"] {
  --bg: hsl(220, 20%, 95%);
  --bg-gradient: linear-gradient(135deg, hsl(220, 20%, 95%), hsl(220, 20%, 92%));
  --card-bg: hsl(0, 0%, 100%);
  --card-border: hsl(220, 15%, 88%);

  --text-main: hsl(224, 60%, 12%);
  --text-medium: hsl(224, 15%, 35%);
  --text-muted: hsl(224, 10%, 60%);

  --nav-bg: #4d1b7f;
  --nav-bg-darker: #421775;
  --nav-text: hsl(0, 0%, 100%);

  --dropdown-bg: #653091;
  --title-bar-bg: hsl(272, 23%, 58%);
  --whatsapp-phone-border: #5c2d91;
  --stats-header-bg: #5c2d91;

  --input-bg: hsl(0, 0%, 98%);
  --input-border: hsl(220, 15%, 83%);
  --input-focus: hsl(265, 60%, 45%);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: hsl(222, 47%, 6%);
  --bg-gradient: linear-gradient(135deg, hsl(222, 47%, 4%), hsl(222, 47%, 8%));
  --card-bg: hsl(222, 47%, 11%);
  --card-border: hsl(222, 30%, 16%);

  --text-main: hsl(210, 40%, 98%);
  --text-medium: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 15%, 55%);

  --nav-bg: hsl(222, 47%, 9%);
  --nav-bg-darker: hsl(222, 47%, 6%);
  --nav-text: hsl(210, 40%, 98%);

  --dropdown-bg: hsl(222, 47%, 13%);
  --title-bar-bg: hsl(222, 25%, 20%);
  --whatsapp-phone-border: hsl(222, 30%, 20%);
  --stats-header-bg: hsl(222, 47%, 13%);

  --input-bg: hsl(222, 47%, 8%);
  --input-border: hsl(222, 30%, 20%);
  --input-focus: hsl(265, 70%, 60%);

  --success-bg: rgba(16, 185, 129, 0.1);
  --danger-bg: rgba(239, 68, 68, 0.1);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html,
body,
button,
input,
select,
textarea,
table,
label,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
td,
th {
  font-family: var(--font-main) !important;
}

.fa,
.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab,
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-brands,
.fab {
  font-family: "Font Awesome 6 Brands" !important;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
  outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--input-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- LOGIN SCREEN --- */
.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at 50% 50%, hsl(220, 20%, 94%) 0%, hsl(220, 15%, 85%) 100%);
  transition: var(--transition);
}

[data-theme="dark"] .login-container {
  background: radial-gradient(circle at 50% 50%, hsl(222, 47%, 8%) 0%, hsl(222, 47%, 2%) 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(20px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-logo-container {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 20px rgba(81, 45, 168, 0.3);
}

.login-logo {
  width: 70px;
  height: 70px;
}

.login-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.login-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-medium);
}

.login-input-wrapper {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.login-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 15px;
  transition: var(--transition);
}

.login-input:focus {
  border-color: var(--input-focus);
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(81, 45, 168, 0.1);
}

.forgot-password-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 15px;
  transition: var(--transition);
}

.forgot-password-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(81, 45, 168, 0.2);
  transition: var(--transition);
  margin-top: 10px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(81, 45, 168, 0.35);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.login-button:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 30px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-footer-logo {
  height: 14px;
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  text-align: left;
  border-left: 4px solid var(--danger);
  animation: shake 0.4s ease-in-out;
}

.credentials-hint {
  margin-top: 20px;
  background: hsl(220, 20%, 90%);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: hsl(220, 15%, 30%);
}

[data-theme="dark"] .credentials-hint {
  background: hsl(222, 30%, 14%);
  color: hsl(222, 10%, 80%);
}

/* --- MODERN USER AUTH SCREENS --- */
.auth-page {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, hsl(220, 20%, 94%) 0%, hsl(220, 15%, 85%) 100%);
  color: #111827;
}

.auth-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-login-card {
  padding: 40px 30px;
  text-align: center;
}

.auth-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.auth-logo-ring,
.auth-pin-logo {
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #d9dde6;
  box-shadow: 0 18px 45px rgba(20, 28, 45, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-logo-ring {
  width: 90px;
  height: 90px;
  padding: 2px;
}

.auth-logo-ring img,
.auth-pin-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.auth-title {
  margin: 24px 0 4px;
  color: #10172f;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0 0 30px;
  color: #9399a8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
}

.auth-form {
  max-width: 100%;
  margin: 0 auto;
}

.auth-field {
  margin-bottom: 20px;
  text-align: left;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #525b70;
  font-size: 13px;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa1b2;
  font-size: 18px;
}

.auth-input {
  width: 100%;
  height: auto;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid #cfd5e1;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input::placeholder {
  color: #777;
}

.auth-input:focus {
  border-color: #7a35d0;
  box-shadow: 0 0 0 5px rgba(122, 53, 208, .12);
}

.login-field-note {
  display: block;
  margin-top: 7px;
  color: #7a8294;
  font-size: 13px;
  font-weight: 500;
}

.auth-primary-btn,
.auth-verify-btn {
  width: 100%;
  height: auto;
  padding: 14px;
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.auth-primary-btn {
  margin-top: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  box-shadow: 0 8px 16px rgba(81, 45, 168, 0.2);
}

.auth-primary-btn:hover,
.auth-verify-btn:hover,
.auth-signout-btn:hover {
  transform: translateY(-1px);
}

.auth-member-row {
  margin-top: 20px;
  color: #596174;
  font-size: 14px;
  font-weight: 500;
}

.auth-member-row a,
.auth-download-row a {
  color: #6f2cc9;
  font-weight: 800;
}

.auth-member-row a {
  margin-left: 4px;
}

.auth-download-row {
  margin-top: 12px;
  font-size: 14px;
}

.auth-footer {
  margin-top: 30px;
  color: #959cac;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.auth-message {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 14px 16px;
  border-radius: 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.auth-message-error {
  background: #fff1f1;
  color: #c92525;
  border: 1px solid #f4baba;
}

.auth-message-success {
  background: #edf9f0;
  color: #16803a;
  border: 1px solid #bde7c8;
}

.auth-pin-card {
  width: min(420px, 100%);
}

.auth-pin-head {
  padding: 22px 30px 32px;
  background: #693197;
  color: #fff;
  text-align: center;
}

.auth-server-time {
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-size: 15px;
  font-weight: 800;
}

.auth-pin-logo {
  width: 118px;
  height: 118px;
  padding: 10px;
  border-color: #fff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .12);
}

.auth-pin-head h1 {
  margin: 20px 0 6px;
  color: #fff;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 1px;
}

.auth-pin-head p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  font-weight: 800;
}

.auth-pin-body {
  padding: 34px 30px 30px;
  background: #fff;
}

.auth-pin-field {
  margin-bottom: 24px;
}

.auth-pin-field label {
  display: block;
  margin-bottom: 18px;
  color: #8e95a6;
  font-size: 24px;
  font-weight: 400;
}

.auth-pin-input {
  width: 100%;
  height: 46px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid #ccd2de;
  background: transparent;
  color: #111827;
  font-size: 20px;
  letter-spacing: 3px;
  outline: none;
}

.auth-pin-input::placeholder {
  color: #8e95a6;
  letter-spacing: 0;
}

.auth-pin-input:focus {
  border-bottom-color: #693197;
}

.auth-verify-btn {
  margin-bottom: 24px;
  background: #2ecc71;
  box-shadow: 0 18px 30px rgba(46, 204, 113, .24);
}

.auth-pin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 2px solid #d0d5df;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f39c12;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: #f39c12;
}

.auth-pin-actions form {
  margin: 0;
}

.auth-signout-btn {
  min-width: 92px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #693197;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .auth-page {
    padding: 20px 14px;
  }

  .auth-login-card {
    padding: 36px 22px 30px;
    border-radius: var(--radius-lg);
  }

  .auth-logo-ring {
    width: 82px;
    height: 82px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    margin-bottom: 26px;
    font-size: 13px;
  }

  .auth-field label {
    font-size: 13px;
  }

  .auth-input {
    height: auto;
    font-size: 15px;
  }

  .auth-primary-btn,
  .auth-verify-btn {
    height: auto;
    font-size: 16px;
  }

  .auth-member-row,
  .auth-download-row {
    font-size: 14px;
  }

  .auth-pin-head {
    padding: 22px 24px 30px;
  }

  .auth-server-time {
    font-size: 14px;
  }

  .auth-pin-logo {
    width: 104px;
    height: 104px;
  }

  .auth-pin-head h1 {
    font-size: 28px;
  }

  .auth-pin-body {
    padding: 30px 24px 28px;
  }

  .auth-pin-field label {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .auth-pin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-signout-btn {
    width: 100%;
  }
}

.login-page-with-panel {
  min-height: 100vh;
  background: #f4eff8;
  display: flex;
  flex-direction: column;
}

.login-page-with-panel .login-container {
  flex: 1;
  min-height: calc(100vh - 126px);
}

.login-panel-header {
  flex-shrink: 0;
}

.login-panel-nav {
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.login-dashboard-title {
  flex-shrink: 0;
}

.login-panel-nav::-webkit-scrollbar {
  height: 4px;
}

@media (max-width: 720px) {
  .login-panel-header {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .login-panel-header .header-brand {
    width: auto;
  }

  .login-panel-header .header-controls {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .login-page-with-panel .login-container {
    min-height: calc(100vh - 156px);
    padding: 16px;
  }
}

/* --- CLIENT LOGIN SCREEN --- */
.client-login-page {
  min-height: 100vh;
  background: #cfcfcf;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  color: #111;
}

.client-login-shell {
  width: 920px;
  max-width: calc(100vw - 48px);
  min-height: 427px;
  background: #fff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 428px;
  overflow: hidden;
}

.client-login-blank {
  min-height: 427px;
}

.client-login-panel {
  padding: 22px 16px 18px 0;
}

.client-login-panel h1 {
  color: #000091;
  font-size: 37px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  margin: 2px 0 24px;
  letter-spacing: 0;
}

.client-login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.client-login-form label {
  font-size: 13px;
  line-height: 1;
  color: #000;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 11px;
}

.client-login-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 15px;
  padding: 0 13px;
  margin: 0 0 27px;
  box-shadow: none;
}

.client-login-form input::placeholder {
  color: #babec4;
}

.client-login-form input:focus {
  border-color: #caa249;
}

.client-login-form button {
  height: 48px;
  border: 0;
  border-radius: 3px;
  background: #e7b545;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.client-login-form button:hover {
  background: #daa93b;
}

.client-signup-text {
  text-align: center;
  margin: 23px 0 24px;
  color: #6d6d76;
  font-size: 16px;
}

.client-signup-text a,
.client-download-link {
  color: #00008b;
  font-weight: 700;
}

.client-download-link {
  display: block;
  text-align: left;
  font-size: 17px;
  margin-top: 0;
}

.client-login-footer {
  width: 920px;
  max-width: calc(100vw - 48px);
  height: 33px;
  background: #adadad;
  color: #00008b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 0;
}

.client-login-footer span {
  color: #c94b1b;
  font-weight: 800;
  transform: rotate(-18deg);
  display: inline-block;
  margin-left: 4px;
}

.register-container {
  min-height: 100vh;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef1f7 0%, #d8dee8 100%);
}

.register-card {
  position: relative;
  width: min(760px, 100%);
  padding: 38px 44px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(20, 28, 45, .16);
  overflow: hidden;
}

.register-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #6f2cc9, #ba3a72, #ff6f00);
}

.register-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: #fff;
  border: 2px solid var(--card-border);
  padding: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.register-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.register-form {
  margin-top: 24px;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-bottom: 22px;
}

.register-card .login-form-group {
  margin-bottom: 0;
}

.register-card .login-title {
  font-size: 24px;
}

.register-card .login-subtitle {
  margin-bottom: 0;
}

.register-card .login-input {
  padding-top: 11px;
  padding-bottom: 11px;
}

.register-card .login-field-note {
  margin-top: 5px;
  font-size: 12px;
}

.register-card .login-button {
  margin-top: 4px;
  padding: 12px;
}

.register-signin-row {
  margin-top: 18px;
  text-align: center;
  color: var(--text-medium);
  font-size: 16px;
}

.register-signin-row a {
  color: var(--primary);
  font-weight: 700;
  margin-left: 5px;
}

@media (max-width: 720px) {
  .register-card {
    padding: 34px 22px 28px;
    border-radius: 24px;
  }

  .register-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.client-login-message {
  font-size: 13px;
  padding: 9px 11px;
  margin: -10px 0 14px;
  border-radius: 3px;
}

.client-login-message-error {
  background: #f8dddd;
  color: #b72222;
  border: 1px solid #efbaba;
}

.client-login-message-success {
  background: #e4f5e8;
  color: #15792c;
  border: 1px solid #bfe3c7;
}

.checkpoint-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background: #adadad;
  color: #111;
  font-family: var(--font-main);
}

.checkpoint-card {
  width: 450px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.checkpoint-head {
  min-height: 332px;
  padding: 11px 15px 8px;
  background: #5d2a88;
  color: #fff;
  text-align: center;
}

.checkpoint-server-time {
  height: 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
}

.checkpoint-rule {
  height: 1px;
  margin: 0 0 11px;
  background: #32114f;
}

.checkpoint-pin-orb {
  position: relative;
  width: 178px;
  height: 178px;
  margin: 0 auto 25px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkpoint-pin-orb::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 2;
}

.checkpoint-pin-pattern {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(14deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 9px),
    #69a2ff;
  overflow: hidden;
}

.checkpoint-pin-pattern::after {
  content: "970129319486508457729759880579283701648693420716293143590420716293143590420716293143590420716293143590";
  position: absolute;
  inset: 8px;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  line-height: 13px;
  letter-spacing: 2px;
  word-break: break-all;
}

.checkpoint-pin-orb span {
  position: relative;
  z-index: 3;
  color: #fff;
  font-size: 54px;
  font-weight: 300;
  letter-spacing: 2px;
}

.checkpoint-head h1 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 33px;
  font-weight: 300;
  line-height: 1;
}

.checkpoint-head p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.checkpoint-body {
  min-height: 260px;
  padding: 26px 15px 14px;
  background: #fff;
}

.checkpoint-error {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #efbaba;
  background: #f8dddd;
  color: #b72222;
  font-size: 13px;
}

.checkpoint-pin-input {
  width: 100%;
  height: 60px;
  border: 0;
  background: #fff0da;
  color: #555;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 0 2px;
}

.checkpoint-pin-input::placeholder {
  color: #888;
}

.checkpoint-verify-row {
  display: flex;
  justify-content: center;
  margin: 12px 0 36px;
}

.checkpoint-verify-btn {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: #00a957;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.checkpoint-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 2px solid #4a1b72;
}

.checkpoint-remember {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0a52b;
  font-size: 16px;
  font-weight: 700;
}

.checkpoint-remember input {
  width: 18px;
  height: 18px;
}

.checkpoint-signout-btn {
  height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: #60308d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.checkpoint-footer {
  padding: 11px 0 0 15px;
  color: #777;
  font-size: 12px;
}

.checkpoint-footer span {
  color: #c94b1b;
  font-size: 18px;
  font-weight: 800;
  transform: rotate(-18deg);
  display: inline-block;
  margin-left: 1px;
}

.client-panel-page {
  min-height: 100vh;
  padding-bottom: 34px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.client-panel-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #542080;
  color: #fff;
  font-size: 14px;
}

.client-panel-topbar strong {
  font-size: 20px;
}

.client-panel-title {
  height: 36px;
  padding: 9px 8px;
  border-bottom: 1px solid #4d1874;
  background: #9a7ab2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.client-panel-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px 18px;
}

.client-panel-summary div {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #ded7e5;
  background: #fff;
}

.client-panel-summary span {
  display: block;
  margin-bottom: 7px;
  color: #5b1684;
  font-size: 13px;
  font-weight: 700;
}

.client-panel-summary strong {
  font-size: 14px;
}

.client-panel-active {
  color: #008000;
}

.client-username-link {
  color: inherit;
  text-decoration: none;
}

.client-username-link:hover,
.client-username-link:focus {
  color: #5d2390;
  text-decoration: none;
}

.client-panel-inactive {
  color: #d5322c;
}

.client-panel-table-wrap {
  padding: 0 18px;
}

.client-panel-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.client-panel-table th,
.client-panel-table td {
  height: 28px;
  padding: 3px 6px;
  border-bottom: 1px solid #d7d7d7;
  text-align: left;
}

.client-panel-table th {
  background: #f1f1f1;
  color: #5b1684;
}

.client-panel-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.client-panel-footer {
  position: fixed;
}

.user-panel-container {
  background: var(--body-bg);
}

.user-panel-header {
  padding-right: 14px;
}

.user-panel-container .header-brand {
  width: 220px;
}

.user-panel-container .header-title {
  font-size: 21px;
}

.user-panel-container .header-controls {
  gap: 25px;
}

.user-panel-icon-btn {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-panel-icon-btn i {
  font-size: 15px;
}

.user-panel-profile-wrap {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
}

.user-panel-profile-menu {
  display: none;
  position: absolute;
  top: 54px;
  right: -8px;
  width: 180px;
  border: 1px solid #6b37a0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.user-panel-profile-wrap.open .user-panel-profile-menu {
  display: block;
}

.user-panel-profile-card {
  min-height: 174px;
  padding: 13px 8px 9px;
  background: #6862b4;
  color: #fff;
  text-align: center;
}

.user-panel-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 9px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e7eef8;
  background: linear-gradient(#d9d9d9 0 30%, #2888dc 31% 100%);
  overflow: hidden;
}

.user-panel-avatar i {
  font-size: 58px;
  color: #e9eef7;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .25);
}

.user-panel-profile-name {
  font-size: 18px;
  line-height: 21px;
}

.user-panel-profile-balance {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.user-panel-profile-actions {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px;
  background: #fff;
}

.user-panel-profile-actions button {
  height: 33px;
  min-width: 70px;
  border: 1px solid #dedede;
  background: #fafafa;
  color: #555;
  font-size: 14px;
  cursor: pointer;
}

.user-panel-nav {
  height: 36px;
  padding-left: 2px;
}

.user-panel-nav .nav-dropdown {
  height: 36px;
}

.user-panel-nav .nav-tab {
  height: 36px;
  padding: 0 18px;
  gap: 4px;
  color: #fff;
  font-size: 13px;
}

.user-panel-nav .nav-tab-home {
  width: 58px;
  padding: 0;
}

.user-panel-nav .nav-tab-home i {
  font-size: 20px;
}

.user-panel-nav .dropdown-content {
  min-width: 164px;
  padding: 8px 0;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
}

.user-panel-nav .dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-main);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.user-panel-nav .dropdown-item i {
  width: 14px;
  font-size: 12px;
}

.user-panel-nav .dropdown-divider {
  height: 1px;
  margin: 7px 0;
  background: rgba(255, 255, 255, .45);
}

.user-panel-complain-menu {
  min-width: 158px;
}

.user-panel-logout {
  border: 0;
  background: transparent;
  font-family: var(--font-main);
  font-weight: 700;
}

.user-panel-main {
  min-height: calc(100vh - 126px);
  padding: 0 0 34px;
}

.dashboard-title-bar {
  height: 35px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #9a7ab2;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.user-panel-tab {
  min-height: calc(100vh - 121px);
  background: #f4eff8;
}

.user-panel-summary-line {
  display: flex;
  gap: 22px;
  padding: 12px 18px;
  color: #111;
  font-size: 13px;
}

.user-request-workspace,
.user-panel-empty-workspace {
  min-height: calc(100vh - 161px);
  background: #f4eff8;
}

.user-request-workspace {
  padding: 16px 20px;
}

.user-request-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 290px;
  gap: 20px;
  min-height: 390px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #f2f2f2;
  padding: 26px 56px 24px 38px;
}

.user-wallet-card {
  width: 720px;
  min-height: 365px;
  grid-template-columns: 235px 370px;
  gap: 22px;
  padding: 24px 36px;
}

.user-request-form-panel {
  max-width: 250px;
}

.user-section-heading {
  color: #2d83ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  border-bottom: 1px solid #ddd;
  padding: 0 0 8px 2px;
  margin: 0 0 10px;
}

.user-request-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.user-request-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.user-request-form input,
.user-request-form select {
  height: 30px;
  border: 1px solid #cbd5df;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 4px 10px;
  outline: none;
}

.user-request-form .user-request-big-input {
  height: 49px;
  color: #999;
  font-size: 25px;
  font-weight: 700;
}

.user-request-form small {
  color: #7f8fa3;
  font-size: 11px;
  font-weight: 400;
}

.user-request-form .user-request-warning {
  color: red;
  font-size: 12px;
}

.user-request-divider {
  height: 1px;
  background: #ddd;
  margin-top: 2px;
}

.user-purple-btn {
  width: max-content;
  height: 30px;
  border: 0;
  border-radius: 3px;
  background: #663394;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.user-purple-btn i {
  margin-right: 5px;
}

.user-request-history-panel {
  padding-top: 1px;
}

.user-request-history-title {
  display: grid;
  grid-template-columns: 1fr 22px auto;
  align-items: center;
  border-bottom: 0;
}

.user-request-history-title i {
  color: #5b1684;
  font-size: 13px;
}

.user-mini-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.user-mini-table th,
.user-mini-table td {
  height: 25px;
  border: 1px solid #c9c9c9;
  padding: 3px 6px;
  text-align: left;
}

.user-mini-table th {
  background: #e9eaec;
  color: #111;
  font-weight: 700;
}

.user-custom-select {
  color: #111;
}

.user-amount-search {
  display: grid;
  grid-template-columns: 1fr 40px;
}

.user-amount-search input {
  height: 50px;
  font-size: 26px;
  font-weight: 700;
}

.user-amount-search button {
  border: 0;
  background: #663394;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.user-submit-btn {
  margin-top: 5px;
  height: 34px;
  font-size: 15px;
}

.user-wallet-request {
  padding: 12px 16px;
}

.user-wallet-request .user-request-form-panel {
  max-width: 235px;
}

.user-wallet-request .user-request-form input,
.user-wallet-request .user-request-form select {
  width: 235px;
}

.user-wallet-request .user-request-form {
  gap: 18px;
}

.user-panel-empty-workspace {
  min-height: calc(100vh - 161px);
}

.user-profile-edit-workspace {
  min-height: calc(100vh - 161px);
  padding: 16px 15px;
  background: #f4eff8;
}

.user-profile-edit-card {
  width: 378px;
  min-height: 415px;
  border: 1px solid #dedede;
  border-radius: 3px;
  background: #f2f2f2;
  padding: 27px 46px 24px 40px;
}

.user-profile-edit-card .user-section-heading {
  margin-bottom: 12px;
}

.user-profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.user-profile-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.user-profile-edit-form input,
.user-profile-edit-form select {
  width: 274px;
  height: 30px;
  border: 1px solid #cbd5df;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 4px 10px;
  outline: none;
}

.user-profile-email-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-profile-email-row input {
  width: 218px;
}

.user-profile-email-row button {
  border: 0;
  background: transparent;
  color: #5b1684;
  font-family: var(--font-main);
  font-size: 13px;
  cursor: pointer;
}

.user-profile-scope-line {
  color: #111;
  font-size: 13px;
}

.user-profile-scope-line span {
  color: #0000cc;
}

.user-profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 1px;
}

.user-profile-edit-actions input {
  width: 100px;
}

.user-profile-edit-actions .user-purple-btn,
.user-profile-edit-actions .user-red-btn {
  height: 31px;
  padding: 0 11px;
}

.user-red-btn {
  width: max-content;
  border: 0;
  border-radius: 3px;
  background: #e84b3f;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.user-red-btn i {
  margin-right: 5px;
}

.user-panel-list-workspace {
  min-height: calc(100vh - 161px);
  padding: 14px 14px 44px;
  background: #f4eff8;
}

.user-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 10px;
}

.user-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.user-filter-bar input,
.user-filter-bar select {
  height: 23px;
  border: 1px solid #cfd4dc;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 1px 6px;
  outline: none;
}

.user-filter-bar select {
  min-width: 84px;
}

.user-filter-bar input {
  width: 136px;
}

.user-filter-bar label:nth-child(1) select {
  min-width: 55px;
}

.user-filter-btn {
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: #e9433c;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
}

.user-filter-btn span {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 3px;
  border: 2px solid #fff;
  border-radius: 50%;
  vertical-align: -1px;
}

.user-inline-filter {
  display: flex;
  gap: 3px;
}

.user-inline-filter select {
  min-width: 38px;
  width: 38px;
  padding: 1px 2px;
}

.user-inline-filter input {
  width: 50px;
}

.user-panel-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.user-panel-table th,
.user-panel-table td {
  height: 21px;
  padding: 2px 5px;
  border-top: 1px solid #d7d7d7;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-panel-table th {
  background: #f1f1f1;
  color: #5b1684;
  font-weight: 700;
}

.user-panel-table tbody tr:nth-child(odd) td {
  background: #ece7ef;
}

.user-panel-table tbody tr:nth-child(even) td {
  background: #fff;
}

.user-total-row td {
  background: #e9e9e9 !important;
  font-weight: 700;
}

.user-success-total {
  color: #008000;
}

.user-sort-col::after {
  content: "";
  display: inline-block;
  margin-left: 18px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #5f9bd6;
  vertical-align: middle;
}

.user-history-table th:nth-child(4),
.user-history-table td:nth-child(4) {
  width: 58px;
}

.user-history-table th:nth-child(1),
.user-history-table td:nth-child(1) {
  width: 52px;
}

.user-history-table th:nth-child(2),
.user-history-table td:nth-child(2) {
  width: 120px;
}

.user-history-table th:nth-child(3),
.user-history-table td:nth-child(3) {
  width: 92px;
}

.user-history-table th:nth-child(5),
.user-history-table td:nth-child(5) {
  width: 92px;
}

.user-history-table th:nth-child(6),
.user-history-table td:nth-child(6) {
  width: 90px;
}

.user-history-table th:nth-child(7),
.user-history-table td:nth-child(7) {
  width: 90px;
}

.user-history-table th:nth-child(8),
.user-history-table td:nth-child(8) {
  width: 92px;
}

.user-history-table th:nth-child(9),
.user-history-table td:nth-child(9),
.user-history-table th:nth-child(10),
.user-history-table td:nth-child(10) {
  width: 92px;
}

.user-history-table th:nth-child(11),
.user-history-table td:nth-child(11) {
  width: 100px;
}

.user-history-table th:nth-child(12),
.user-history-table td:nth-child(12) {
  width: 190px;
  text-overflow: ellipsis;
}

.user-history-table th:nth-child(13),
.user-history-table td:nth-child(13) {
  width: 112px;
}

.user-history-table th:nth-child(14),
.user-history-table td:nth-child(14) {
  width: 58px;
}

.user-panel-meta {
  margin-top: 22px;
  color: #333;
  font-size: 12px;
}

.user-add-client-btn {
  height: 30px;
  margin: 0 0 11px;
  border: 0;
  border-radius: 3px;
  background: #5d2b8b;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.user-add-client-btn i {
  font-size: 12px;
}

.user-client-list-workspace {
  padding-top: 8px;
}

.user-client-filter-bar {
  margin-bottom: 8px;
}

.user-client-filter-bar input {
  width: 150px;
}

.user-client-filter-bar label:nth-child(3) input,
.user-client-filter-bar label:nth-child(4) input,
.user-client-filter-bar label:nth-child(5) input {
  width: 188px;
}

.user-client-table th,
.user-client-table td {
  height: 26px;
  padding: 2px 5px;
}

.user-client-table th:first-child,
.user-client-table td:first-child {
  width: 31px;
  text-align: center;
}

.user-client-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
}

.user-bulk-action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}

.user-bulk-action select {
  width: 104px;
  height: 23px;
  border: 1px solid #cfd4dc;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
}

.subadmin-rate-workspace {
  min-height: calc(100vh - 82px);
  padding: 6px 13px 40px;
  background: #f4eff8;
  overflow-x: auto;
}

.rate-action-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.rate-action-block {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.rate-action-btn {
  height: 30px;
  min-width: 106px;
  border: 0;
  border-radius: 3px 3px 0 0;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
}

.rate-action-btn.purple {
  background: #5d2b8b;
}

.rate-action-btn.orange {
  background: #ff9700;
}

.rate-action-btn.red {
  background: #e74c3c;
}

.rate-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 11px;
}

.rate-filter-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.rate-filter-row input,
.rate-filter-row select {
  height: 22px;
  border: 1px solid #cfd4dc;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 1px 6px;
}

.rate-filter-row input {
  width: 95px;
}

.rate-filter-row select {
  width: 86px;
}

.subadmin-rate-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  min-width: 1500px;
}

.subadmin-rate-table th,
.subadmin-rate-table td {
  height: 23px;
  padding: 3px 5px;
  border-top: 1px solid #d8d8d8;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.subadmin-rate-table th {
  background: #f1f1f1;
  color: #5b1684;
  font-weight: 700;
}

.subadmin-rate-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.subadmin-rate-table tbody tr:nth-child(even) td {
  background: #ece7ef;
}

.rate-sort-col::after {
  content: "";
  display: inline-block;
  margin-left: 28px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #5f9bd6;
  vertical-align: middle;
}

.green-rate {
  color: #008000;
}

.red-rate {
  color: #ff0000;
}

.rate-check {
  color: #74bd20;
  font-size: 16px;
  font-weight: 700;
}

.subadmin-rate-paging {
  margin-top: 21px;
  color: #333;
  font-size: 12px;
}

.user-myrates-workspace {
  min-height: calc(100vh - 161px);
  padding-top: 6px;
}

@media (max-width: 760px) {
  .client-login-page {
    justify-content: flex-start;
    padding-top: 24px;
  }

  .client-login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .client-login-blank {
    display: none;
  }

  .client-login-panel {
    padding: 24px 16px 20px;
  }

  .client-login-panel h1 {
    font-size: 32px;
  }
}

/* --- DASHBOARD SHELL --- */
.dashboard-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Header Styles */
.dashboard-header {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 0 14px 0 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  z-index: 300;
}

.header-brand {
  background: var(--nav-bg);
  width: 190px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 13px;
}

.header-title {
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 700;
  color: white;
  letter-spacing: 0;
}

.header-service-tab {
  height: 100%;
  min-width: 78px;
  width: auto;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 18px 0 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

.header-service-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-service-badge {
  position: absolute;
  top: 12px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 3px;
  background: #e84c3d;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Switch styling for Theme Toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 58px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ff6b00;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: white;
  bottom: 2px;
  content: "";
  height: 20px;
  width: 20px;
  left: 36px;
  position: absolute;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}

.theme-switch input:checked+.slider {
  background-color: #7f8c8d !important;
}

.theme-switch input:checked+.slider:before {
  transform: translateX(-34px) !important;
}

/* Sun/Moon Icon Toggle */
.theme-switch .icon-moon {
  display: none !important;
}

.theme-switch input:checked+.slider .icon-sun {
  display: none !important;
}

.theme-switch input:checked+.slider .icon-moon {
  display: block !important;
}

/* Control Buttons (Notification, Language, Profile) */
.ctrl-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--nav-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.ctrl-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--nav-bg);
}

.profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.profile-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

.profile-menu-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--dropdown-bg);
  box-shadow: var(--shadow-lg);
  z-index: 250;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 6px 0;
  animation: fadeInFast 0.2s ease-out;
}

.profile-menu-wrapper.open .profile-dropdown-content {
  display: block;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.profile-name {
  font-size: 14px;
  font-weight: 550;
}

/* Sub-Navigation Bar */
.sub-nav {
  background: var(--dropdown-bg);
  padding: 0;
  display: flex;
  height: 39px;
  position: relative;
  z-index: 110;
}

.nav-dropdown {
  position: relative;
  height: 100%;
}

.nav-tab {
  padding: 0 19px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: #fff;
  font-weight: 600;
  background: transparent;
}

.nav-tab i {
  font-size: 20px;
}

/* Dropdown Menu Container */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-height: none;
  background: var(--dropdown-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 150;
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  overflow: visible;
  animation: fadeInFast 0.2s ease-out;
}

/* Show after menu click */
.nav-dropdown.open .dropdown-content {
  display: block;
}

/* Dropdown Header */
.dropdown-header {
  padding: 8px 18px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #00e5ff;
  /* Cyan subtitle text matching screenshot */
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: none;
}

/* Dropdown Item */
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding-left: 22px;
  /* Smooth micro-slide */
}

.settings-dropdown {
  min-width: 260px;
}

.tools-dropdown {
  min-width: 154px;
}

.tools-dropdown .dropdown-item {
  padding-left: 21px;
  padding-right: 16px;
}

.settings-dropdown .dropdown-item,
.tools-dropdown .dropdown-item {
  min-height: 23px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.dropdown-item.danger-item i.prefix-arrow {
  color: #ff0000;
  opacity: 1;
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 0;
}

/* Micro Chevron or Prefix spacing */
.dropdown-item i.prefix-arrow {
  font-size: 10px;
  margin-right: 10px;
  opacity: 0.7;
}

@keyframes fadeInFast {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

/* Main Dashboard Body */
.dashboard-main {
  flex: 1;
  padding: 6px 31px 42px;
  max-width: none;
  width: 100%;
  margin: 0;
  animation: fadeIn 0.5s ease-out;
}

/* WhatsApp Support Banner Card */
.whatsapp-banner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.whatsapp-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.whatsapp-icon-bg {
  width: 44px;
  height: 44px;
  background: hsl(142, 72%, 95%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(142, 72%, 40%);
  font-size: 24px;
}

[data-theme="dark"] .whatsapp-icon-bg {
  background: rgba(16, 185, 129, 0.15);
}

.whatsapp-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-main);
}

.whatsapp-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.whatsapp-action {
  background: hsl(142, 72%, 40%);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: var(--transition);
}

.whatsapp-action:hover {
  background: hsl(142, 72%, 35%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* Dashboard Grid Layout (4 columns matching screenshot) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Card General Design */
.panel-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.panel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.panel-header {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-body {
  padding: 20px;
  flex: 1;
}

/* Stat row item styles */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}

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

.stat-label {
  color: var(--text-medium);
  font-weight: 500;
}

.stat-value {
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Specific component elements inside cards */
.badge-status {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.active {
  background: var(--success-bg);
  color: var(--success);
}

.badge-status.inactive {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-status.warning {
  background: hsl(45, 90%, 95%);
  color: var(--warning);
}

.badge-status.processing {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

[data-theme="dark"] .badge-status.warning {
  background: rgba(245, 158, 11, 0.15);
}

/* Margin Editable inputs inside Dashboard */
.margin-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.margin-input {
  width: 60px;
  padding: 4px 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  transition: var(--transition);
}

.margin-input:focus {
  border-color: var(--input-focus);
  background: var(--card-bg);
}

/* API Status toggles */
.api-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.api-toggle input {
  display: none;
}

.api-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-border);
  transition: .3s;
  border-radius: 20px;
}

.api-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.api-slider {
  background-color: var(--success);
}

input:checked+.api-slider:before {
  transform: translateX(20px);
}

/* Real-time System Load display inside Card */
.progress-bar-wrapper {
  width: 100%;
  margin-top: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--input-border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.5s ease-out;
}

.progress-bar-fill.warning {
  background: var(--warning);
}

.progress-bar-fill.danger {
  background: var(--danger);
}

/* Interactive Tabs Section */
.tab-content-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-top: 24px;
}

.section-title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables style */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-main);
}

.data-table tr {
  background: var(--card-bg);
}

.data-table th {
  padding: 12px 16px;
  background: var(--input-bg);
  color: var(--text-medium);
  font-weight: 600;
  border-bottom: 2px solid var(--card-border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-main);
  background: var(--card-bg);
}

.data-table tr.totals-row td {
  background: var(--input-bg);
}

.data-table tr:hover td {
  background: rgba(81, 45, 168, 0.02);
}

/* Add Button Styles */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

/* Responsive queries */
@media (max-width: 768px) {
  .login-card {
    padding: 30px 20px;
  }

  .dashboard-header {
    padding: 12px 16px;
  }

  .dashboard-main {
    padding: 16px;
  }

  .whatsapp-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .whatsapp-action {
    width: 100%;
    justify-content: center;
  }
}

/* Pending Request Workspace Layout Styles */
#tab-pending {
  background: #f2edf6;
  margin: 0 -31px -28px;
  padding: 0 22px 165px;
  min-height: calc(100vh - 131px);
  font-size: 14px;
}

#tab-pending .tab-content-section {
  font-family: var(--font-main);
}

#tab-pending .pending-table-wrap {
  border: none;
  border-radius: 0;
  background: transparent;
}



.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
  background: #f2edf6;
  padding: 14px 0 11px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #d9d4de;
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #555;
  line-height: 1;
}

.filter-input {
  padding: 2px 8px;
  border: 1px solid #cfd6df;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 12px;
  height: 26px;
  min-width: 172px;
}

.filter-select {
  padding: 2px 10px;
  border: 1px solid #cfd6df;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 12px;
  height: 26px;
  cursor: pointer;
}

#pendingShowLimit {
  width: 66px;
}

#pendingClientFilter {
  width: 188px;
}

#pendingServiceFilter,
#pendingStatusFilter,
#pendingModemFilter {
  width: 106px;
}

#pendingTypeFilter {
  width: 126px;
}

#pendingCountryFilter {
  width: 214px;
}

#pendingOperatorFilter {
  width: 126px;
}

.filter-btn {
  background: #d8463d;
  color: white;
  border: none;
  padding: 4px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  transition: none;
}

.filter-btn:hover {
  background: #c0392b;
}

#tab-pending .data-table {
  font-family: var(--font-main);
  font-size: 13px;
  color: #000;
  background: transparent;
}

#tab-pending .data-table th {
  padding: 4px 6px;
  background: #eeeeee;
  color: #4b1684;
  font-weight: 700;
  border-bottom: 1px solid #d3d3d3;
  line-height: 1.1;
}

#tab-pending .data-table td {
  padding: 3px 6px;
  border-bottom: none;
  color: #000;
  background: #fff;
  line-height: 1.05;
}

#tab-pending .data-table tbody tr.pending-tx-row:nth-of-type(even) td {
  background: #f0ebf4;
}

#tab-pending .data-table tr:hover td {
  background: #f8f4fb;
}

#tab-pending .data-table tr.totals-row td {
  background: #eeeeee;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  font-weight: 700;
  padding: 4px 6px;
}

#tab-pending input[type="checkbox"] {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.pending-sender {
  color: #4b1684 !important;
  font-weight: 700;
}

.pending-status {
  color: #ff9900;
  font-weight: 700;
}

.pending-status.active {
  color: #148f3f;
}

.pending-status.inactive {
  color: #d5322c;
}

.pending-status.processing {
  color: #2563eb;
}

.pending-action-btn {
  width: 43px;
  height: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  background: #f7f7f7;
  border: 1px solid #444;
  border-radius: 5px;
  cursor: pointer;
}

.pending-action-btn span {
  width: 24px;
  height: 2px;
  background: #ff2d1f;
  display: block;
}

#merchant-pending .pending-table-wrap {
  overflow-x: auto;
}

#merchant-pending .merchant-pending-table {
  table-layout: fixed;
  min-width: 1020px;
  font-size: 12px;
}

#merchant-pending .merchant-pending-table th,
#merchant-pending .merchant-pending-table td {
  padding: 3px 4px;
  height: 28px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#merchant-pending .merchant-pending-table th {
  font-size: 12px;
}

#merchant-pending .merchant-pending-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
}

#merchant-pending .pending-action-btn {
  width: 36px;
  height: 20px;
  gap: 2px;
  border-radius: 4px;
}

#merchant-pending .pending-action-btn span {
  width: 21px;
  height: 2px;
}

#merchant-pending .merchant-waiting-time {
  font-weight: 700;
  color: #148f3f;
}

#merchant-pending .merchant-waiting-time.waiting-green {
  color: #148f3f;
}

#merchant-pending .merchant-waiting-time.waiting-red {
  color: #d5322c;
}

#merchant-pending .merchant-waiting-accepted {
  color: #2563eb;
  font-weight: 700;
}

.merchant-pending-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-main);
  font-size: 12px;
}

.merchant-pending-page-info {
  color: #555;
}

.merchant-pending-page-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.merchant-pending-page-links a,
.merchant-pending-page-links span {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #d0d4dc;
  background: #ffffff;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.merchant-pending-page-links span {
  color: #888;
  background: #f3f4f6;
}

.merchant-pending-page-links .active {
  border-color: #5d2a91;
  background: #5d2a91;
  color: #ffffff;
}

.pending-meta-row {
  display: block;
  margin-top: 26px;
  font-family: var(--font-main);
  font-size: 13px;
  color: #3f3f4a;
}

.pending-bulk-action {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 30px;
}

#pendingBulkAction {
  width: 188px;
}

#tab-pending .filter-bar {
  column-gap: 5px !important;
  row-gap: 0 !important;
}

#tab-pending .filter-label {
  font-size: 14px !important;
  line-height: 1 !important;
}

#tab-pending .filter-input,
#tab-pending .filter-select {
  height: 28px !important;
  padding: 3px 9px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  min-width: 0 !important;
}

#tab-pending #pendingShowLimit {
  width: 66px !important;
}

#tab-pending #pendingNumberSearch {
  width: 174px !important;
}

#tab-pending #pendingClientFilter {
  width: 188px !important;
}

#tab-pending #pendingServiceFilter {
  width: 108px !important;
}

#tab-pending #pendingTypeFilter {
  width: 126px !important;
}

#tab-pending #pendingCountryFilter {
  width: 214px !important;
}

#tab-pending #pendingOperatorFilter {
  width: 126px !important;
}

#tab-pending #pendingStatusFilter,
#tab-pending #pendingModemFilter {
  width: 108px !important;
}

#tab-pending .filter-btn {
  height: 28px !important;
  padding: 4px 9px !important;
  font-size: 14px !important;
  line-height: 18px !important;
}

#tab-pending #pendingBulkAction {
  width: 188px !important;
}

.summary-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 438px;
  margin: 32px auto 0;
  text-align: center;
  box-shadow: none;
  font-family: var(--font-main);
}

.summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid #ded8e3;
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: 0;
  text-align: left;
}

.summary-value {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.pending-summary-label {
  color: #ff9900;
}

[data-theme="dark"] .summary-value {
  color: #111;
}

.detector-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-medium);
}

.detector-dot {
  width: 10px;
  height: 10px;
  background: #2ecc71;
  /* Green square */
  border-radius: 1px;
}

/* Page title banner */
.page-title-bar {
  background: var(--title-bar-bg);
  padding: 8px 12px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-align: left;
  height: 38px;
  display: flex;
  align-items: center;
}

/* WhatsApp Phone Card Simulation */
.whatsapp-phone-card {
  width: 188px;
  height: 84px;
  border: 1px solid var(--whatsapp-phone-border);
  border-radius: 0;
  background: var(--card-bg);
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 17px;
  font-size: 9px;
  color: #ffffff;
  padding: 0 5px;
  background: var(--nav-bg-darker);
  border-bottom: none;
  margin-bottom: 0;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.phone-battery-icon {
  width: 29px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.whatsapp-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 7px;
}

.whatsapp-avatar-img {
  width: 42px;
  height: 42px;
  background: #25d366;
  border-radius: 4px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.whatsapp-avatar-img i {
  color: #ffffff !important;
  line-height: 1;
}

.whatsapp-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
  min-width: 0;
}

.whatsapp-title-sub {
  font-size: 9px;
  font-weight: 600;
  color: #5c2d91;
  letter-spacing: 0;
  line-height: 1.1;
}

.whatsapp-bdt-val {
  font-size: 16px;
  font-weight: 800;
  color: #4b1684;
  line-height: 1.1;
}

.whatsapp-phone-num {
  font-size: 9px;
  color: #5c2d91;
  line-height: 1.15;
}

/* 5 Column Dashboard Grid */
.dashboard-col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
  margin-bottom: 24px;
}

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

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

/* Custom stats card per column */
.stats-column-card {
  background: var(--card-bg);
  border: 1px solid var(--whatsapp-phone-border);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 400px;
}

.stats-column-header {
  background: var(--stats-header-bg);
  color: white;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.stats-column-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stats-column-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 20px;
  border-bottom: 1px solid var(--whatsapp-phone-border);
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.stats-column-row:last-child {
  border-bottom: none;
}

.stats-column-row.subtotal-row {
  background: var(--input-bg);
  border-top: 1px solid var(--card-border);
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
}

.stats-column-label {
  color: var(--text-medium);
  text-align: left;
}

.stats-column-value {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

/* 30 Days Requests Overview Line Chart */
.chart-section {
  background: #fff;
  border: 0;
  border-radius: 0;
  height: 450px;
  padding: 14px 74px 24px;
  margin: 0 0 24px;
  box-shadow: none;
  overflow: visible;
}

.chart-title-red {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #ff0000;
  text-align: left;
  margin: 0 0 12px;
}

.chart-svg-wrap {
  width: 100%;
  height: 390px;
  position: relative;
  overflow: visible;
}

.chart-drawing {
  transform: translateY(-22px);
}

.chart-grid-lines line {
  stroke: #cfcfcf;
  stroke-width: 1;
}

.chart-grid-lines line.minor {
  stroke: #e5e5e5;
}

.chart-y-labels text {
  fill: #222;
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-anchor: start;
}

.chart-x-labels text {
  fill: #111;
  font-family: Arial, sans-serif;
  font-size: 10px;
  text-anchor: middle;
}

.chart-area-fill {
  fill: rgba(99, 137, 204, 0.42);
}

.chart-line-path {
  fill: none;
  stroke: #2f67db;
  stroke-width: 2;
}

.chart-legend rect {
  fill: rgba(99, 137, 204, 0.5);
}

.chart-legend text {
  fill: #111;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

/* Header specific buttons */
.hdr-icon-link {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hdr-icon-link:hover {
  transform: scale(1.1);
}

.whatsapp-header-link {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #25d366 !important;
  color: #ffffff !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.whatsapp-header-link i {
  font-size: 17px;
  line-height: 1;
}

.hdr-balance-text {
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.merchant-header-controls {
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.merchant-header-controls .hdr-balance-text,
.merchant-header-controls form {
  flex-shrink: 0;
}

.merchant-logout-btn {
  background: #ff5252;
  color: #fff;
  border: 0;
  min-width: 82px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.merchant-logout-btn:hover {
  background: #e84141;
}

.nav-tab-home {
  width: 48px !important;
  padding: 0 !important;
  justify-content: center;
  background: transparent !important;
}

.nav-tab-home i {
  color: #fff;
  font-size: 18px !important;
  line-height: 1;
}

.nav-tab-home:hover,
.nav-tab-home.active:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff;
}

/* Legacy pending page scale: matches the previous production admin screen. */
.page-title-bar {
  height: 34px;
  padding: 6px 10px;
}

#tab-pending .tab-content-section {
  zoom: 1;
  width: 100%;
}

#tab-pending {
  padding-right: 18px !important;
}

#tab-pending .filter-bar {
  padding: 16px 0 11px !important;
  column-gap: 4px !important;
  row-gap: 0 !important;
  align-items: flex-end !important;
}

#tab-pending .filter-group {
  gap: 4px !important;
}

#tab-pending .filter-label {
  font-family: var(--font-main) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

#tab-pending .filter-input,
#tab-pending .filter-select {
  height: 24px !important;
  min-width: 0 !important;
  padding: 1px 7px !important;
  font-family: var(--font-main) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

#tab-pending #pendingShowLimit {
  width: 66px !important;
}

#tab-pending #pendingNumberSearch {
  width: 172px !important;
}

#tab-pending #pendingClientFilter {
  width: 188px !important;
}

#tab-pending #pendingServiceFilter,
#tab-pending #pendingStatusFilter,
#tab-pending #pendingModemFilter {
  width: 106px !important;
}

#tab-pending #pendingTypeFilter,
#tab-pending #pendingOperatorFilter {
  width: 126px !important;
}

#tab-pending #pendingCountryFilter {
  width: 214px !important;
}

#tab-pending .filter-btn {
  height: 24px !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  line-height: 18px !important;
  gap: 4px !important;
}

#tab-pending .data-table {
  font-family: var(--font-main) !important;
  font-size: 13px !important;
  table-layout: auto !important;
  width: 100% !important;
}

#tab-pending .data-table th {
  padding: 4px 5px !important;
  white-space: nowrap !important;
}

#tab-pending .data-table td {
  padding: 3px 5px !important;
  white-space: nowrap !important;
}

#tab-pending .pending-meta-row,
#tab-pending .summary-box {
  font-family: var(--font-main) !important;
  font-size: 13px !important;
}

#tab-pending .pending-meta-row {
  margin-top: 30px !important;
}

#tab-pending .pending-bulk-action {
  margin-top: 33px !important;
}

#tab-pending .summary-box {
  margin-top: 36px !important;
}

/* Action Dropdown Styles */
.action-dropdown {
  position: relative;
  display: inline-block;
}

.action-dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  width: 164px;
  border: 2px solid #5d2a91;
  border-radius: 3px;
  box-shadow: none;
  z-index: 99999;
  overflow: hidden;
}

.action-dropdown-content button {
  display: block;
  width: 100%;
  height: 26px;
  padding: 0 14px;
  background: none;
  border: none;
  border-bottom: 1px solid #208ee8;
  color: #000000;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.action-dropdown-content button:last-child {
  border-bottom: none;
}

.action-dropdown-content button:hover {
  background-color: #f0ebf4;
}

.action-dropdown-content.show {
  display: block !important;
}

.client-action-dropdown {
  display: none;
  position: absolute;
  width: 164px;
  background: #ffffff;
  border: 2px solid #5d2a91;
  border-radius: 0;
  box-shadow: none;
  z-index: 99999;
  overflow: hidden;
}

.client-action-dropdown button {
  display: block;
  width: 100%;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #208ee8;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.client-action-dropdown button:last-child {
  border-bottom: 0;
}

.client-action-dropdown button:hover,
.client-action-dropdown button:focus {
  background: #c7dbff;
}

.client-action-dropdown.show {
  display: block !important;
}

.payment-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-popup {
  width: 634px;
  min-height: 600px;
  max-width: calc(100vw - 18px);
  background: #ffffff;
  color: #111111;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  padding: 6px 8px 16px;
  font-family: Arial, sans-serif;
}

.payment-popup h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 7px 0 7px;
  color: #111111;
}

.payment-history-box {
  height: 160px;
  border: 1px solid #c9c9c9;
  overflow-y: auto;
  overflow-x: hidden;
}

.payment-history-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.payment-history-box th {
  height: 20px;
  background: #0572b8;
  color: #ffffff;
  text-align: left;
  font-weight: 700;
  padding: 2px 6px;
}

.payment-history-box td {
  height: 22px;
  padding: 2px 6px;
  color: #444444;
  border: 0;
}

.payment-history-empty {
  text-align: center;
  color: #777777 !important;
}

.payment-popup-form {
  margin-top: 5px;
}

.payment-popup-form label {
  display: grid;
  grid-template-columns: 178px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #111111;
}

.payment-popup-form input,
.payment-popup-form select {
  height: 28px;
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  background: #ffffff;
  color: #333333;
  padding: 3px 6px;
  font-size: 14px;
}

.payment-popup-form select {
  padding: 2px 5px;
}

.payment-popup-footer {
  border-top: 1px solid #d7d7d7;
  margin-top: 24px;
  padding-top: 7px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 42px;
}

.payment-sms-check {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  gap: 6px !important;
  grid-template-columns: none !important;
  width: 190px;
  margin: 0 !important;
  font-size: 13px !important;
}

.payment-sms-check input {
  width: 13px;
  height: 13px;
  margin-left: 0;
}

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

.payment-popup-actions button {
  height: 31px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.payment-save-btn {
  background: #48b84f;
}

.payment-close-btn {
  background: #e4423d;
}

@media (max-width: 660px) {
  .payment-popup {
    min-height: auto;
  }

  .payment-popup-form label {
    grid-template-columns: 120px 1fr;
  }
}

/* --- ADD PAYMENT PAGE --- */
.payment-add-page {
  min-height: 0;
  background: #f4eff8;
  color: #111111;
  padding: 12px 16px 14px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.payment-add-page h2 {
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 7px;
}

.payment-add-alert {
  border: 1px solid #b7e0bd;
  background: #e3f5e5;
  color: #147128;
  padding: 7px 10px;
  margin-bottom: 8px;
}

.payment-add-error {
  border-color: #efbaba;
  background: #f8dddd;
  color: #a62424;
}

.payment-add-history {
  height: 146px;
  border: 1px solid #d6ccd9;
  border-radius: 0;
  overflow-y: auto;
  background: #fff;
  margin-bottom: 8px;
}

.payment-add-history table {
  width: 100%;
  border-collapse: collapse;
}

.payment-add-history th {
  position: sticky;
  top: 0;
  height: 22px;
  background: #6f3194;
  color: #ffffff;
  text-align: left;
  font-size: 13px;
  padding: 3px 8px;
  z-index: 1;
}

.payment-add-history td {
  height: 23px;
  padding: 3px 8px;
  color: #333;
  border-bottom: 1px solid #eee8f2;
}

.payment-add-history tbody tr:nth-child(even) td {
  background: #f6f1f8;
}

.payment-add-history tbody tr:hover td {
  background: #eadff0;
}

.payment-add-form {
  margin-top: 0;
  padding-top: 0;
}

.payment-add-form>label {
  display: grid;
  grid-template-columns: 178px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.payment-add-form input,
.payment-add-form select {
  height: 29px;
  border: 1px solid #c8c2ce;
  border-radius: 2px;
  background: #ffffff;
  color: #222;
  padding: 3px 9px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.payment-add-form input:focus,
.payment-add-form select:focus {
  border-color: #6f3194;
  box-shadow: 0 0 0 2px rgba(111, 49, 148, .12);
}

.payment-add-footer {
  border-top: 1px solid #d8d0dc;
  margin-top: 12px;
  padding-top: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.payment-notify-options {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-left: 0;
}

.payment-add-sms {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #111;
}

.payment-add-sms input {
  width: 13px;
  height: 13px;
}

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

.payment-add-actions button {
  height: 32px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}

.payment-add-save {
  background: #5f2c90;
}

.payment-add-close {
  background: #e53935;
}

.payment-add-save:hover {
  background: #4f237c;
}

.payment-add-close:hover {
  background: #d22f2b;
}

@media (max-width: 520px) {
  .payment-add-page {
    padding: 10px;
  }

  .payment-add-form>label {
    grid-template-columns: 118px 1fr;
  }

  .payment-add-sms {
    min-width: 92px;
  }
}

/* --- CLIENT DETAILS PAGE --- */
.client-details-page {
  min-height: 100vh;
  background: #f4eff8;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding-bottom: 30px;
}

.client-details-title {
  height: 38px;
  background: #9677ad;
  border-top: 2px solid #4f137d;
  border-bottom: 1px solid #4f137d;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 36px;
  padding: 0 8px;
}

.details-grid {
  display: grid;
  grid-template-columns: 356px 356px 356px 356px;
  gap: 30px;
  align-items: start;
  padding: 25px 18px 15px;
}

.details-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0 18px;
}

.details-bottom-grid .details-card:last-child {
  margin-top: 0;
}

.details-stack {
  display: grid;
  gap: 12px;
}

.details-card {
  background: #e3d8e9;
  border-radius: 4px;
  padding: 10px 10px 11px;
}

.details-card h3 {
  color: #003c86;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin: 3px 0 11px;
}

.details-card table {
  width: 100%;
  border-collapse: collapse;
}

.details-card td,
.details-card th {
  height: 22px;
  padding: 2px 5px;
  border: 0;
  white-space: nowrap;
}

.details-card tr:nth-child(odd) td {
  background: #fff;
}

.details-card tr:nth-child(even) td {
  background: #f0ebf3;
}

.details-card td:first-child {
  width: 140px;
}

.details-card a {
  color: #5b1689;
}

.details-card button,
.details-inline-btn {
  border: 0;
  background: transparent;
  color: #5b1689;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.details-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.details-ok {
  color: #19a600;
}

.details-muted-icon {
  color: #8d8d8d;
}

.details-active,
.details-open {
  color: #008000;
  font-weight: 700;
}

.details-inactive {
  color: #f00;
  font-weight: 700;
}

.details-link-list {
  display: grid;
  gap: 11px;
  padding: 13px 9px 3px;
  font-size: 13px;
}

.details-link-list i {
  width: 20px;
}

.details-empty-line {
  background: #fff;
  height: 30px;
  line-height: 30px;
  text-align: center;
  margin-bottom: 2px;
}

.details-head-table th {
  background: #c7c7c7 !important;
  color: #000;
  border: 2px solid #fff;
  text-align: left;
  font-weight: 700;
  height: 20px;
}

.details-head-table td {
  height: 22px;
}

.details-card textarea {
  width: 100%;
  height: 64px;
  border: 1px solid #ccc;
  resize: none;
  background: #fff;
}

.details-submit-btn {
  margin-top: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: #653091;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.other-actions-card {
  padding: 10px;
}

.other-actions-list {
  background: #fff;
  padding: 7px 10px;
  display: grid;
  gap: 0;
}

.other-actions-list a,
.other-actions-list button,
.other-actions-list span {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px;
}

.other-actions-list a:nth-child(even),
.other-actions-list button:nth-child(even) {
  background: #f0ebf3;
}

.other-actions-list i {
  width: 16px;
  color: #653091;
  font-size: 15px;
}

.details-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
}

.details-edit-modal {
  width: 430px;
  padding: 14px;
  background: #e3d8e9;
  border: 1px solid #6a2c91;
  color: #111;
}

.details-edit-modal h3 {
  color: #003c86;
  text-align: center;
  margin-bottom: 12px;
}

.details-edit-modal label {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.details-edit-modal input {
  height: 28px;
  border: 1px solid #c8c2ce;
  background: #fff;
  padding: 3px 8px;
}

.details-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.details-edit-actions button {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: #653091;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.details-edit-actions button:last-child {
  background: #e4423d;
}

@media (max-width: 1300px) {

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

@media (max-width: 760px) {

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

/* History Workspace */
body.history-page {
  background: #f4eff8;
}

body.history-page .dashboard-main {
  padding: 0 0 42px;
}

body.subadmin-page {
  background: #f4eff8;
}

body.subadmin-page .dashboard-main {
  padding: 0 0 42px;
}

body.rate-module-page {
  background: #f4eff8;
  overflow-x: hidden;
}

body.rate-module-page .dashboard-main {
  padding: 0 0 42px;
  overflow-x: hidden;
}

body.module-page {
  background: #f4eff8;
  overflow-x: hidden;
}

body.module-page .dashboard-main {
  padding: 0 0 42px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.details-page {
  background: #f4eff8;
}

body.details-page .dashboard-main {
  padding: 0 0 42px;
}

.dashboard-details-page {
  min-height: calc(100vh - 165px);
}

.dashboard-details-page .details-grid {
  padding-top: 25px;
}

body.message-page {
  background: #f4eff8;
}

body.message-page .dashboard-main {
  padding: 0 0 42px;
}

body.payment-page {
  background: #f4eff8;
}

body.payment-page .dashboard-main {
  padding: 0 0 42px;
}

body.security-page .dashboard-main {
  padding: 0 0 42px;
}

body.security-page .admin-global-footer {
  background: #f4eff8;
  border-top-color: #f4eff8;
}

.payment-history-workspace {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
  padding: 14px 18px 30px;
  font-family: var(--font-main);
}

.payment-history-filter {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.payment-history-filter label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-history-filter span {
  color: #555555;
  font-size: 14px;
  font-weight: 700;
}

.payment-history-filter input,
.payment-history-filter select {
  height: 23px;
  border: 1px solid #cfd5dd;
  background: #ffffff;
  color: #444444;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 0;
}

.payment-history-filter label:nth-child(1) select {
  width: 55px;
}

.payment-history-filter label:nth-child(2) select,
.payment-history-filter label:nth-child(3) select {
  width: 150px;
}

.payment-history-filter label:nth-child(4) input {
  width: 138px;
}

.payment-history-filter label:nth-child(5) select {
  width: 96px;
}

.payment-history-filter label:nth-child(6) select {
  width: 96px;
}

.payment-history-filter label:nth-child(7) input,
.payment-history-filter label:nth-child(8) input {
  width: 138px;
}

.payment-filter-btn,
.payment-print-btn,
.payment-day-btn {
  height: 24px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 7px;
  cursor: pointer;
}

.payment-filter-btn {
  background: #e34037;
}

.payment-print-btn {
  background: #f29d13;
}

.payment-day-btn {
  background: #09b6df;
}

.payment-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  background: #ffffff;
}

.payment-history-table th,
.payment-history-table td {
  height: 21px;
  border: 1px solid #dddddd;
  padding: 2px 5px;
  white-space: nowrap;
}

.payment-history-table th {
  background: #f1f1f1;
  color: #5b1689;
  font-size: 13px;
  font-weight: 700;
}

.payment-history-table th:nth-child(1) {
  width: 48px;
  text-align: left;
}

.payment-history-table th:nth-child(2) {
  width: 130px;
}

.payment-history-table th:nth-child(3) {
  width: 250px;
}

.payment-history-table th:nth-child(4) {
  width: 120px;
}

.payment-history-table th:nth-child(6),
.payment-history-table th:nth-child(7),
.payment-history-table th:nth-child(8),
.payment-history-table th:nth-child(9),
.payment-history-table th:nth-child(10) {
  width: 125px;
}

.payment-history-table tbody tr:nth-child(odd):not(.payment-total-row) td {
  background: #ffffff;
}

.payment-history-table tbody tr:nth-child(even):not(.payment-total-row) td {
  background: #f0ebf3;
}

.payment-total-row td {
  background: #eeeeee;
  font-weight: 700;
}

.payment-history-paging {
  margin-top: 21px;
  color: #374151;
  font-size: 12px;
}

.payment-summary-box {
  width: 350px;
  margin: 41px auto 0;
  color: #111111;
  font-size: 12px;
}

.payment-summary-box h3 {
  color: #555555;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 5px;
  margin-bottom: 11px;
  border-bottom: 1px solid #d8d8d8;
}

.payment-summary-line {
  display: grid;
  grid-template-columns: 1fr 55px;
  gap: 8px;
  width: 200px;
  margin: 0 auto 2px;
}

.payment-summary-line span {
  text-align: right;
}

.payment-summary-line strong {
  text-align: left;
}

#tab-transactions {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
}

#tab-transactions .history-legacy-log {
  display: none;
}

#tab-transactions .history-workspace,
#tab-merchanthistory .history-workspace {
  min-height: calc(100vh - 137px);
  position: relative;
  padding: 14px 14px 52px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.page-title-bar.history-title-bar {
  height: 38px;
  padding: 0 4px;
  border-top: 1px solid #4b1684;
  border-bottom: 1px solid #4b1684;
  background: #9978ad;
  justify-content: flex-start;
  gap: 0;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1;
}

.history-graph-btn {
  height: 30px;
  margin-left: clamp(320px, 39vw, 635px);
  padding: 0 10px;
  border: 1px solid #3a116c;
  border-radius: 3px;
  background: #5a2790;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.history-filter-bar {
  display: flex;
  align-items: end;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.history-advanced-row {
  flex-basis: 100%;
  display: flex;
  align-items: end;
  gap: 4px;
  margin-top: -3px;
}

.history-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.history-field input,
.history-field select {
  height: 22px;
  border: 1px solid #d5d4dc;
  border-radius: 0;
  background: #fff;
  color: #222;
  font-size: 12px;
  padding: 1px 7px;
}

.history-show-field select {
  width: 65px;
}

.history-number-field input,
.history-amount-field input {
  width: 137px;
}

.history-services-field select,
.history-status-field select {
  width: 92px;
}

.history-modem-field select {
  width: 107px;
}

.history-date-field input {
  width: 102px;
  padding: 1px 3px;
}

.history-req-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-req-inputs select {
  width: 36px;
  padding: 1px 3px;
}

.history-req-inputs input {
  width: 50px;
}

.history-client-field select {
  width: 150px;
}

.history-type-field select {
  width: 100px;
}

.history-country-field select {
  width: 170px;
}

.history-operator-field select {
  width: 100px;
}

.history-trx-field input {
  width: 138px;
}

.history-epin-field input {
  width: 138px;
}

.history-filter-btn,
.history-advance-btn {
  height: 24px;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.history-filter-btn {
  width: 58px;
  background: #e3443b;
}
.history-filter-btn:disabled {
  width: auto;
  padding: 0 10px;
  background: #e08080;
  cursor: not-allowed;
}
.history-filter-btn:disabled::before {
  display: none;
}

.history-filter-btn::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  vertical-align: -1px;
}

.history-advance-btn {
  width: 108px;
  background: #5c2b92;
}

.history-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.history-table {
  width: 100%;
  min-width: unset;
  border-collapse: collapse;
  table-layout: auto;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
}

.history-table th,
.history-table td {
  height: 23px;
  padding: 2px 4px;
  border-bottom: 1px solid #d7d7d7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.history-table th {
  background: #f7f7f7;
  color: #5b1684;
  font-weight: 700;
}


.history-table tbody tr.history-row td {
  background: #fff;
}

.history-table tbody tr.history-row:nth-child(even) td {
  background: #f1ecf4;
}

.history-table .history-total-row td {
  background: #e9e9e9;
  font-weight: 700;
  overflow: visible;
}

#historyCompletedTotal,
#mhCompletedTotal {
  color: #008000;
}

#mhTable .history-total-row td {
  background: #e9e9e9;
  font-weight: 700;
  overflow: visible;
  white-space: nowrap;
}

#mhTable {
  table-layout: fixed;
  min-width: 820px;
}

#mhTable th:nth-child(1),
#mhTable td:nth-child(1) { width: 40px; }

#mhTable th:nth-child(2),
#mhTable td:nth-child(2) { width: 130px; }

#mhTable th:nth-child(3),
#mhTable td:nth-child(3) { width: 110px; }

#mhTable th:nth-child(4),
#mhTable td:nth-child(4) { width: 85px; }

#mhTable th:nth-child(5),
#mhTable td:nth-child(5) { width: 70px; }

#mhTable th:nth-child(6),
#mhTable td:nth-child(6) { width: 90px; }

#mhTable th:nth-child(7),
#mhTable td:nth-child(7) { width: 90px; }

#mhTable th:nth-child(8),
#mhTable td:nth-child(8) { width: 75px; }

#mhTable th:nth-child(9),
#mhTable td:nth-child(9) { width: 90px; }

#mhTable th:nth-child(10),
#mhTable td:nth-child(10) { width: 55px; text-align: center; }

.history-table .history-no-records td {
  background: #fff;
  color: #666;
  text-align: center;
}

.history-sort::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 30px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #5d86c7;
  vertical-align: middle;
}

.history-status {
  font-weight: 700;
}

.history-status-pending {
  color: #ff9900;
}

.history-status-success {
  color: #008000;
}

.history-status-completed {
  color: #008000;
}

.history-status-processing {
  color: #2563eb;
}

.history-status-processed {
  color: #2563eb;
}

.history-status-failed {
  color: #d5322c;
}

.history-status-cancelled,
.history-status-canceled {
  color: #d5322c;
}

.history-action-btn {
  width: 35px;
  height: 18px;
  background: #fff;
  border-radius: 4px;
}

.history-action-btn span {
  width: 22px;
  height: 1px;
}

.transaction-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 25, 0.45);
}

.transaction-confirm-modal {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #d8cce6;
  box-shadow: 0 14px 34px rgba(27, 14, 48, 0.24);
  padding: 18px;
}

.transaction-confirm-title {
  color: #4b0f78;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.transaction-confirm-subtitle {
  color: #5b5367;
  font-size: 13px;
  margin-bottom: 16px;
}

.transaction-confirm-modal label {
  display: grid;
  gap: 6px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.transaction-confirm-modal input,
.transaction-confirm-modal textarea {
  height: 36px;
  border: 1px solid #c9d2df;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.transaction-confirm-modal textarea {
  min-height: 92px;
  padding: 9px 10px;
  resize: vertical;
}

.transaction-confirm-modal input:focus,
.transaction-confirm-modal textarea:focus {
  border-color: #5b1a8e;
  box-shadow: 0 0 0 2px rgba(91, 26, 142, 0.14);
}

.transaction-confirm-error {
  min-height: 18px;
  margin-top: 8px;
  color: #d5322c;
  font-size: 12px;
  font-weight: 700;
}

.transaction-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.transaction-confirm-actions button {
  height: 34px;
  border: 0;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.transaction-confirm-cancel {
  background: #ece7f3;
  color: #3b2454;
}

.transaction-confirm-save {
  background: #5b1a8e;
  color: #fff;
}

.smart-otp-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #ece7f3;
  color: #111827;
  padding: 18px;
}

.smart-otp-card {
  background: #fff;
  width: min(520px, 100%);
  border: 1px solid #d7c8e6;
  box-shadow: 0 14px 32px rgba(45, 18, 75, 0.18);
  overflow: hidden;
}

.smart-otp-header {
  background: #5a1f83;
  color: #fff;
  text-align: center;
  padding: 14px 26px 18px;
}

.smart-otp-country {
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.smart-otp-brand {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 1px;
  font-weight: 500;
}

.smart-otp-subtitle {
  font-size: 19px;
  font-weight: 800;
  margin-top: 6px;
}

.smart-otp-form {
  padding: 28px 26px 30px;
}

.smart-otp-form label {
  display: block;
  color: #32114d;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.smart-otp-form input {
  width: 100%;
  height: 54px;
  border: 1px solid #b9c4d0;
  font-size: 24px;
  padding: 0 14px;
  outline: none;
  color: #111827;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.smart-otp-form input:focus {
  border-color: #5a1f83;
  box-shadow: 0 0 0 3px rgba(90, 31, 131, 0.14);
}

.smart-otp-note {
  color: #6b7280;
  font-size: 12px;
  margin-top: 9px;
}

.smart-otp-error {
  color: #d5322c;
  font-weight: 700;
  margin-top: 10px;
}

.smart-otp-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.smart-otp-actions button {
  border: 0;
  color: #fff;
  height: 34px;
  min-width: 92px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.16);
}

.smart-otp-logout {
  background: #e0524d;
}

.smart-otp-verify {
  background: #2d6598;
}

.smart-otp-actions button:hover {
  filter: brightness(0.96);
}

.request-detail-page {
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.request-detail-card {
  padding: 10px;
}

.request-detail-card h1,
.request-detail-card h2 {
  color: #4b5563;
  font-weight: 400;
  border-bottom: 1px solid #cfcfcf;
  margin: 0 0 8px;
  padding-bottom: 4px;
}

.request-detail-card h1 {
  font-size: 20px;
}

.request-detail-card h2 {
  font-size: 19px;
  margin-top: 12px;
}

.request-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.request-detail-card table {
  width: 100%;
  border-collapse: collapse;
}

.request-detail-card th,
.request-detail-card td {
  text-align: left;
  padding: 5px 0;
  vertical-align: top;
}

.request-detail-card th {
  width: 126px;
  font-weight: 800;
}

.request-detail-grid>div:nth-child(2) th {
  color: blue;
}

.request-detail-success {
  color: #008000;
}

.request-detail-pending {
  color: #ff9900;
}

.request-detail-processing {
  color: #2563eb;
}

.request-detail-danger {
  color: #d5322c;
}

.request-detail-wide-table th {
  width: 280px;
}

.request-detail-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 0;
  background: #fff;
  border-top: 1px solid #ddd;
  margin-top: 32px;
}

.request-detail-actions button {
  background: #e74c3c;
  color: #fff;
  border: 0;
  height: 28px;
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer;
}

.request-action-page {
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-size: 13px;
  padding: 12px;
}

.request-action-card {
  max-width: 560px;
  margin: 0 auto;
}

.request-action-card h1 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #cfcfcf;
  font-size: 16px;
  font-weight: 800;
}

.request-action-static,
.request-action-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.request-action-static span,
.request-action-row span,
.request-action-two-col span {
  font-weight: 800;
}

.request-action-static strong {
  font-weight: 800;
}

.request-action-static small {
  font-weight: 400;
}

.request-action-row input,
.request-action-two-col select {
  width: 100%;
  height: 27px;
  border: 1px solid #c8c8c8;
  padding: 0 6px;
  font-size: 13px;
}

.request-action-row input:focus,
.request-action-two-col select:focus {
  outline: 1px solid #6a2c90;
}

.request-action-radio-row {
  display: flex;
  gap: 10px;
}

.request-action-radio-row>span {
  width: 112px;
  flex: 0 0 112px;
}

.request-action-radio-row label {
  font-weight: 400;
}

.request-action-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.request-action-two-col label {
  display: grid;
  gap: 6px;
}

.request-action-footer {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  border-top: 1px solid #d7d7d7;
  margin-top: 20px;
  padding-top: 10px;
}

.request-action-footer button {
  height: 25px;
  border: 0;
  color: #fff;
  padding: 0 9px;
  font-weight: 800;
  cursor: pointer;
}

.request-action-submit {
  background: #46ad50;
}

.request-action-close {
  background: #d94d48;
}

.request-action-error {
  color: #d5322c;
  font-weight: 800;
  margin: 4px 0 8px 128px;
}

.request-action-success {
  background: #e8f7ec;
  color: #168431;
  border: 1px solid #b7e4c2;
  padding: 7px 9px;
  font-weight: 800;
  margin-bottom: 10px;
}

.history-paging-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.history-paging {
  color: #334;
  font-size: 12px;
  font-family: var(--font-main);
}

.history-pagination {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.history-pagination button {
  min-width: 29px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid #dddddd;
  border-left: 0;
  background: #ffffff;
  color: #336;
  cursor: pointer;
}

.history-pagination button:first-child {
  border-left: 1px solid #dddddd;
  border-radius: 4px 0 0 4px;
}

.history-pagination button:last-child {
  border-radius: 0 4px 4px 0;
}

.history-pagination button.active {
  background: #2e86c1;
  border-color: #2e86c1;
  color: #fff;
}

.admin-global-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 7px;
  background: #fff;
  border-top: 1px solid #d6d2dc;
  color: #111;
  font-size: 13px;
  font-family: var(--font-main);
  z-index: 250;
}

.merchant-global-footer .footer-left,
.merchant-global-footer .footer-right {
  display: flex;
  align-items: center;
}

.merchant-global-footer .footer-left span,
.merchant-global-footer .footer-right span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #333333;
}

.merchant-global-footer .footer-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.merchant-global-footer .footer-right i {
  color: var(--primary, #6b21a8);
  font-size: 13px;
}

.merchant-global-footer .footer-separator {
  color: #777777;
  font-size: 13px;
  margin: 0 8px;
  gap: 0;
}

.merchant-global-footer .footer-flag-container {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

.merchant-global-footer .footer-flag-container img {
  width: 16px;
  height: 10px;
  border-radius: 1px;
  object-fit: cover;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .merchant-global-footer {
    height: auto;
    min-height: 29px;
    padding: 4px 8px;
    align-items: flex-start;
    gap: 4px;
  }

  .merchant-global-footer .footer-right {
    font-size: 12px;
  }
}

.admin-footer-director {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5d1684;
}

.admin-footer-flag {
  width: 16px;
  height: 10px;
  display: inline-block;
  position: relative;
  background: #008000;
}

.admin-footer-flag::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e51b23;
}

/* Sub Admin Workspace */
#tab-subadmin {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
}

.subadmin-workspace {
  min-height: calc(100vh - 137px);
  padding: 6px 18px 52px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.subadmin-add-btn {
  height: 29px;
  margin-bottom: 9px;
  padding: 0 11px;
  border: none;
  border-radius: 2px;
  background: #5d2a91;
  color: #fff;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.subadmin-add-btn i {
  font-size: 12px;
}

.subadmin-filter-bar {
  display: flex;
  align-items: end;
  gap: 4px;
  margin-bottom: 10px;
}

.subadmin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.subadmin-field input,
.subadmin-field select,
.subadmin-bulk select {
  height: 23px;
  border: 1px solid #d2d0da;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 1px 7px;
}

.subadmin-show-field select {
  width: 52px;
}

.subadmin-username-field input {
  width: 154px;
}

.subadmin-name-field input {
  width: 188px;
}

.subadmin-mobile-field input {
  width: 139px;
}

.subadmin-status-field select {
  width: 82px;
}

.subadmin-filter-btn {
  height: 24px;
  width: 60px;
  border: none;
  border-radius: 3px;
  background: #e3443b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.subadmin-filter-btn::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  vertical-align: -1px;
}

.merchant-workspace {
  min-height: calc(100vh - 137px);
  padding: 5px 18px 52px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
}

.merchant-add-btn {
  height: 30px;
  margin: 0 0 9px 0;
  padding: 0 11px;
  border-radius: 3px;
}

.merchant-add-form {
  width: 520px;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  background: #f1f1f1;
}

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

.merchant-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
}

.merchant-form-grid input,
.merchant-form-grid select {
  height: 24px;
  border: 1px solid #cdd4db;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 2px 7px;
}

.merchant-form-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #d8d8d8;
}

.merchant-form-actions .subadmin-add-btn {
  margin: 0;
}

.merchant-cancel-btn {
  height: 29px;
  padding: 0 11px;
  border: none;
  border-radius: 3px;
  background: #e3443b;
  color: #fff;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.merchant-provider-card {
  width: 420px;
  min-height: 390px;
  margin: 18px 0 0 0;
  padding: 28px 60px 26px 40px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #f1f1f1;
  font-family: var(--font-main);
}

.merchant-provider-heading {
  margin: 0 0 12px 2px;
  padding: 0 0 8px 2px;
  border-bottom: 1px solid #d4d4d4;
  color: #2f83ff;
  font-size: 14px;
  font-weight: 700;
}

.merchant-provider-card label {
  display: block;
  margin-bottom: 15px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.merchant-provider-card label span {
  display: block;
  margin-bottom: 8px;
}

.merchant-provider-card input,
.merchant-provider-card textarea,
.merchant-provider-card select {
  width: 100%;
  min-height: 30px;
  border: 1px solid #cdd4db;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 4px 8px;
}

.merchant-provider-card textarea {
  height: 48px;
  resize: vertical;
}

.merchant-provider-actions {
  margin-top: 18px;
  padding-top: 9px;
  border-top: 1px solid #d4d4d4;
}

.merchant-provider-actions button {
  height: 30px;
  padding: 0 11px;
  border: none;
  border-radius: 3px;
  background: #693199;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.merchant-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 10px 0;
}

.merchant-filter-bar .subadmin-field {
  margin: 0;
}

.merchant-filter-bar .subadmin-field span {
  margin-bottom: 0;
  color: #555;
}

.merchant-filter-bar .subadmin-field input,
.merchant-filter-bar .subadmin-field select {
  height: 22px;
  padding: 1px 5px;
  border: 1px solid #cdd4db;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
}

.merchant-provider-field input,
.merchant-number-field input {
  width: 151px;
}

.merchant-status-field select {
  width: 80px;
}

.merchant-filter-bar .subadmin-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 60px;
  margin-left: 1px;
  padding: 0 8px;
  border-radius: 3px;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 24px;
}

.merchant-filter-bar .subadmin-filter-btn::before {
  flex: 0 0 auto;
}

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

.merchant-table {
  width: 100%;
  min-width: 905px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
}

.merchant-table th,
.merchant-table td {
  height: 29px;
  padding: 2px 4px;
  border-bottom: 1px solid #d8d8d8;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  vertical-align: middle;
}

.merchant-table th {
  height: 24px;
  background: #f7f7f7;
  color: #111;
  font-weight: 700;
}

.merchant-table tbody tr:nth-child(odd) td {
  background: #fff;
}

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

.merchant-table th:nth-child(1),
.merchant-table td:nth-child(1) {
  width: 30px;
  text-align: center;
}

.merchant-table th:nth-child(2),
.merchant-table td:nth-child(2) {
  width: 40px;
}

.merchant-table th:nth-child(3),
.merchant-table td:nth-child(3) {
  width: 110px;
}

.merchant-table th:nth-child(4),
.merchant-table td:nth-child(4) {
  width: 100px;
}

.merchant-table th:nth-child(5),
.merchant-table td:nth-child(5) {
  width: 105px;
}

.merchant-table th:nth-child(6),
.merchant-table td:nth-child(6) {
  width: 85px;
}

.merchant-table th:nth-child(7),
.merchant-table td:nth-child(7) {
  width: 75px;
}

.merchant-table th:nth-child(8),
.merchant-table td:nth-child(8) {
  width: 110px;
}

.merchant-table th:nth-child(9),
.merchant-table td:nth-child(9) {
  width: 85px;
}

.merchant-table th:nth-child(10),
.merchant-table td:nth-child(10) {
  width: 50px;
}

.merchant-table th:nth-child(11),
.merchant-table td:nth-child(11) {
  width: 65px;
  text-align: center;
}

.merchant-table th:nth-child(12),
.merchant-table td:nth-child(12) {
  width: 50px;
  text-align: center;
}

.merchant-request-section {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #d7c9df;
}

.merchant-request-section .merchant-provider-heading {
  color: #4b1578;
}

.merchant-request-table th,
.merchant-request-table td {
  text-align: left;
}

.merchant-request-table th:nth-child(1),
.merchant-request-table td:nth-child(1) {
  width: 55px;
}

.merchant-request-table th:nth-child(2),
.merchant-request-table td:nth-child(2) {
  width: 170px;
}

.merchant-request-table th:nth-child(3),
.merchant-request-table td:nth-child(3) {
  width: 150px;
}

.merchant-request-table th:nth-child(4),
.merchant-request-table td:nth-child(4),
.merchant-request-table th:nth-child(5),
.merchant-request-table td:nth-child(5) {
  width: 110px;
}

.merchant-request-table th:nth-child(6),
.merchant-request-table td:nth-child(6),
.merchant-request-table th:nth-child(7),
.merchant-request-table td:nth-child(7),
.merchant-request-table th:nth-child(8),
.merchant-request-table td:nth-child(8) {
  width: 130px;
}

.merchant-request-table th:nth-child(9),
.merchant-request-table td:nth-child(9) {
  width: 100px;
  text-align: center;
}

.merchant-request-table th:nth-child(10),
.merchant-request-table td:nth-child(10) {
  width: 105px;
  text-align: center;
}

.merchant-complete-btn {
  min-width: 78px;
  height: 24px;
  padding: 0 9px;
  border-radius: 3px;
}

.merchant-purple-text {
  color: #5b1684;
  font-weight: 700;
}

.merchant-status-active {
  color: #008000;
  font-weight: 700;
}

.merchant-status-inactive {
  color: #d5322c;
  font-weight: 700;
}

.merchant-action-btn {
  width: 34px;
  height: 20px;
  padding: 2px 4px;
  border: 1px solid #666;
  border-radius: 4px;
  background-color: #ffffff;
  background-image:
    linear-gradient(#ff2a16, #ff2a16),
    linear-gradient(#ff2a16, #ff2a16),
    linear-gradient(#ff2a16, #ff2a16);
  background-repeat: no-repeat;
  background-size: 22px 2px, 22px 2px, 22px 2px;
  background-position: center 5px, center 9px, center 13px;
  vertical-align: middle;
}

.pending-action-btn.merchant-action-btn span {
  display: none;
  width: 22px;
  height: 2px;
  margin: 2px auto;
  background: #ff2a16;
  border-radius: 0;
}

.merchant-action-dropdown {
  display: none;
  position: absolute;
  width: 164px;
  background: #ffffff;
  border: 2px solid #5d2a91;
  border-radius: 0;
  box-shadow: none;
  z-index: 99999;
  overflow: hidden;
}

.merchant-action-dropdown button {
  display: block;
  width: 100%;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #208ee8;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.merchant-action-dropdown button:last-child {
  border-bottom: 0;
}

.merchant-action-dropdown button:hover,
.merchant-action-dropdown button:focus {
  background: #c7dbff;
}

.merchant-action-dropdown.show {
  display: block !important;
}

.subadmin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.subadmin-table th,
.subadmin-table td {
  height: 29px;
  padding: 2px 4px;
  border-bottom: 1px solid #d7d7d7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: left;
}

.subadmin-table th {
  height: 26px;
  background: #f7f7f7;
  color: #5b1684;
  font-weight: 700;
}

.subadmin-table tbody tr:nth-child(odd) td {
  background: #fff;
}

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

.subadmin-table th:nth-child(1),
.subadmin-table td:nth-child(1) {
  width: 34px;
  text-align: center;
}

.subadmin-table th:nth-child(2),
.subadmin-table td:nth-child(2) {
  width: 128px;
}

.subadmin-table th:nth-child(3),
.subadmin-table td:nth-child(3) {
  width: 160px;
}

.subadmin-table th:nth-child(4),
.subadmin-table td:nth-child(4) {
  width: 118px;
}

.subadmin-table th:nth-child(5),
.subadmin-table td:nth-child(5) {
  width: 190px;
}

.subadmin-table th:nth-child(6),
.subadmin-table td:nth-child(6) {
  width: 112px;
}

.subadmin-table th:nth-child(7),
.subadmin-table td:nth-child(7) {
  width: 112px;
}

.subadmin-table th:nth-child(8),
.subadmin-table td:nth-child(8) {
  width: 58px;
}

.subadmin-table th:nth-child(9),
.subadmin-table td:nth-child(9) {
  width: 72px;
  text-align: center;
}

.subadmin-table th:nth-child(10),
.subadmin-table td:nth-child(10) {
  width: 170px;
  overflow: visible;
  text-overflow: clip;
}

.subadmin-table th:nth-child(11),
.subadmin-table td:nth-child(11) {
  width: 58px;
  text-align: center;
  vertical-align: middle;
  line-height: 0;
}

.subadmin-ok-dot {
  color: #009f1a;
  font-size: 11px;
  margin-left: 3px;
}

.subadmin-check {
  color: #87c83a;
  font-size: 13px;
}

.subadmin-cross {
  color: #f35b44;
  font-size: 13px;
}

.subadmin-action-btn {
  width: 35px;
  height: 18px;
  vertical-align: middle;
  background: #fff;
  border-radius: 4px;
}

.subadmin-action-btn span {
  width: 22px;
  height: 1px;
}

.restore-client-btn {
  height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: 3px;
  background: #5f2c90;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.restore-client-btn:hover {
  background: #4f237c;
}

.subadmin-paging {
  margin-top: 22px;
  color: #334;
  font-size: 12px;
  font-family: var(--font-main);
}

.subadmin-bulk {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 150px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
}

.subadmin-bulk select {
  width: 150px;
}

.subadmin-add-workspace {
  min-height: calc(100vh - 137px);
  padding: 18px 22px 40px;
  background: #f4eff8;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.add-subadmin-panel {
  width: min(1420px, 100%);
  min-height: calc(100vh - 198px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
  gap: 18px 22px;
  position: relative;
  padding: 18px 20px 78px;
  border: 1px solid #d8d0dc;
  border-radius: 6px;
  background: #f4f2f5;
  box-shadow: 0 6px 18px rgba(48, 28, 64, .07), inset 0 1px 0 rgba(255, 255, 255, .75);
}

.add-form-alert {
  width: min(1420px, 100%);
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #efbaba;
  border-radius: 4px;
  background: #f8dddd;
  color: #b01717;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
}

.add-subadmin-card {
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid #ded6e4;
  border-radius: 6px;
  background: rgba(255, 255, 255, .42);
}

.add-subadmin-column,
.add-subadmin-card {
  display: flex;
  flex-direction: column;
}

.add-form-heading,
.add-permission-heading span {
  color: #5f2c90;
  font-size: 13px;
  font-weight: 700;
}

.add-form-heading {
  padding: 0 0 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dadada;
}

.add-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 13px 16px;
}

.add-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
}

.add-field input,
.add-field select {
  width: 100%;
  height: 34px;
  border: 1px solid #c8c2ce;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 4px 10px;
}

.add-field input:focus,
.add-field select:focus {
  border-color: #6f3194;
  box-shadow: 0 0 0 2px rgba(111, 49, 148, .12);
}

.add-field select,
.add-field input[value="Derector"] {
  background: #eaf2ff;
}

.add-field small {
  color: #d24b4b;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 400;
}

.add-field-wide,
.add-permission-box,
.add-checkbox-stack {
  grid-column: 1 / -1;
}

.add-permission-box {
  padding: 12px 14px;
  border: 1px solid #ddd4e5;
  border-radius: 5px;
  background: #faf8fc;
}

.add-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 9px 14px;
  padding-top: 10px;
}

.add-permission-list label,
.add-checkbox-stack label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
}

.add-permission-empty {
  grid-column: 1 / -1;
  color: #777;
  font-family: var(--font-main);
  font-size: 12px;
}

.add-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.add-checkbox-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ddd4e5;
  border-radius: 5px;
  background: #faf8fc;
}

.profile-form-workspace {
  min-height: calc(100vh - 137px);
  padding: 10px 18px 40px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.profile-form-panel {
  width: 420px;
  min-height: 477px;
  padding: 26px 40px 24px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #f3f3f3;
}

.change-password-panel {
  min-height: 330px;
}

.profile-form-heading {
  width: 318px;
  margin: 0 0 10px;
  padding: 0 0 8px 2px;
  border-bottom: 1px solid #dadada;
  color: #2a65ff;
  font-size: 13px;
  font-weight: 700;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
}

.profile-field input {
  width: 318px;
  height: 30px;
  border: 1px solid #cbd1da;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  padding: 4px 10px;
}

.profile-field input[value="Derector"] {
  background: #eaf2ff;
}

.profile-check-line {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 21px 0 0;
  font-size: 13px;
  font-weight: 400;
}

.profile-service-line {
  gap: 5px;
  margin-top: 17px;
  font-weight: 700;
}

.profile-check-line input {
  width: 13px;
  height: 13px;
}

.profile-form-footer {
  width: 318px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding-top: 10px;
  border-top: 1px solid #dadada;
}

.password-footer {
  margin-top: 18px;
}

.profile-pin-input {
  width: 100px;
  height: 30px;
  border: 1px solid #cbd1da;
  background: #eaf2ff;
  color: #111;
  padding: 4px 8px;
  font-size: 13px;
}

.profile-change-btn {
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 3px;
  background: #663096;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-change-btn i {
  margin-right: 6px;
}

.google-auth-workspace,
.manage-users-workspace,
.api-guide-workspace {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.google-auth-workspace {
  display: flex;
  gap: 256px;
  padding: 8px 0 40px 8px;
}

.google-auth-panel {
  width: 441px;
  min-height: 719px;
  padding: 20px 42px 20px 34px;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #f3f3f3;
}

.google-heading {
  width: 357px;
  margin-bottom: 12px;
}

.google-section-title {
  width: 357px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dadada;
  font-size: 11px;
  font-weight: 700;
}

.google-steps {
  width: 357px;
  margin: 18px 0 17px 14px;
  padding: 0;
  font-size: 11px;
  line-height: 1.35;
}

.google-qr-box,
.google-help-mini-qr {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, #111 10px, transparent 10px),
    linear-gradient(#111 10px, transparent 10px),
    repeating-linear-gradient(45deg, #111 0 4px, transparent 4px 8px),
    repeating-linear-gradient(-45deg, transparent 0 5px, #111 5px 8px);
  background-size: 30px 30px, 30px 30px, 15px 15px, 17px 17px;
  border: 1px solid #dedede;
}

.google-qr-box {
  width: 192px;
  height: 192px;
  margin: 21px 0 32px;
  box-shadow: inset 0 0 0 16px #fff;
}

.google-help-text {
  width: 357px;
  margin: 0 0 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dadada;
  font-size: 11px;
  line-height: 1.35;
}

.google-secret {
  width: 357px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #dadada;
  font-size: 11px;
  font-weight: 700;
}

.google-secret span {
  color: #2a65ff;
}

.google-code-help {
  margin-top: 28px;
  border-bottom: none;
}

.google-code-field {
  margin-bottom: 12px;
}

.google-code-field input {
  width: 357px;
  height: 24px;
}

.google-radio-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 357px;
  margin: 8px 0 18px;
  font-size: 11px;
}

.google-radio-row label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-submit-row {
  width: 357px;
  padding-top: 8px;
  border-top: 1px solid #dadada;
}

.google-download-card {
  width: 200px;
  height: 504px;
  padding: 12px;
  border: 1px solid #bfbfbf;
  background: #fff;
  text-align: center;
}

.google-download-link {
  display: block;
  color: #4d1b7f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
}

.google-auth-logo {
  position: relative;
  width: 132px;
  height: 118px;
  margin: 36px auto 28px;
}

.ga-bar {
  position: absolute;
  left: 12px;
  top: 48px;
  width: 112px;
  height: 22px;
  border-radius: 12px;
}

.ga-yellow {
  background: #fbbc04;
  transform: rotate(60deg);
}

.ga-blue {
  background: #1a73e8;
  transform: rotate(-60deg);
}

.ga-green {
  background: #34a853;
}

.ga-red {
  background: #ea4335;
  transform: rotate(60deg);
  top: 78px;
}

.google-help-image {
  position: relative;
  width: 172px;
  height: 207px;
  margin: 10px auto 8px;
  overflow: hidden;
  border: 1px solid #a7a7a7;
  background: linear-gradient(#4285f4 0 63px, #fff 63px);
}

.google-help-image button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: 0;
  background: transparent;
  color: #dfe8ff;
  font-size: 11px;
}

.google-help-circle {
  width: 38px;
  height: 38px;
  margin: 12px auto 0;
  border-radius: 50%;
  background: #888;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.google-help-lines {
  margin: 20px 8px 0;
}

.google-help-lines span {
  display: block;
  width: 78px;
  height: 3px;
  margin-bottom: 7px;
  background: #dadada;
}

.google-help-mini-qr {
  width: 40px;
  height: 40px;
  margin: 11px auto 0;
  background-size: 12px 12px, 12px 12px, 6px 6px, 7px 7px;
  box-shadow: inset 0 0 0 4px #fff;
}

.google-help-arrow {
  position: absolute;
  left: 28px;
  bottom: 18px;
  width: 66px;
  height: 9px;
  background: red;
  transform: rotate(-40deg);
}

.google-help-arrow::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -6px;
  border-left: 16px solid red;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.manage-users-workspace {
  padding: 5px 14px 40px;
}

.manage-user-add-btn {
  height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
}

.manage-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 8px;
}

.manage-filter-bar .subadmin-field {
  width: 110px;
}

.manage-filter-bar .subadmin-field input {
  width: 100%;
}

.manage-filter-bar .subadmin-field:nth-child(4),
.manage-filter-bar .subadmin-field:nth-child(5) {
  width: 112px;
}

.manage-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #000;
}

.manage-users-table th {
  height: 18px;
  padding: 2px 4px;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  background: #f2f2f2;
  color: #5b1686;
  font-weight: 700;
  text-align: left;
}

.manage-users-table td {
  height: 23px;
  padding: 2px 4px;
}

.manage-users-table tbody tr:nth-child(even) {
  background: #eee8f1;
}

.manage-users-table tbody tr:nth-child(odd) {
  background: #fff;
}

.manage-users-table strong {
  color: #5b1686;
}

.manage-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.manage-actions button {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 2px;
  background: #663096;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.manage-actions button:last-child {
  background: #e64b3c;
}

.api-guide-workspace {
  padding: 11px 7px 40px;
}

.api-guide-workspace h3 {
  margin: 0 0 18px 16px;
  border-left: 1px solid #e6e0ea;
  padding-left: 8px;
  font-size: 14px;
  font-weight: 400;
}

.api-guide-box {
  width: 736px;
  margin: 0 0 18px;
  padding: 10px 11px 16px;
  border: 1px solid #bfe4ef;
  background: #dff5ff;
  color: #111;
}

.api-guide-box strong {
  display: block;
  margin-bottom: 16px;
  color: #0c5a83;
  font-size: 9px;
}

.api-service-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 233px;
  margin-bottom: 34px;
  color: #0c5a83;
  font-size: 9px;
  font-weight: 700;
}

.api-service-field select {
  height: 15px;
  border: 1px solid #cbd1da;
  background: #fff;
  font-size: 9px;
}

.api-guide-box pre {
  margin: 0;
  padding: 8px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #000;
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.download-apps-workspace,
.change-logs-workspace,
.server-info-workspace {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
  color: #000;
  font-family: var(--font-main);
}

.download-apps-workspace {
  padding: 6px 7px 40px;
}

.server-update-strip {
  width: 1133px;
  min-height: 52px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #dedede;
  background: #f8f8f8;
  text-align: center;
  font-size: 6px;
}

.server-update-strip button {
  display: block;
  height: 29px;
  margin: 7px auto 0;
  padding: 0 13px;
  border: 0;
  border-radius: 2px;
  background: #e14336;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.download-table-wrap {
  width: 1133px;
  height: 637px;
  overflow: auto;
  border-left: 1px solid #ff6b6b;
  border-right: 1px solid #ff6b6b;
}

.download-links-table {
  width: 1110px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f5f5f5;
  font-size: 14px;
}

.download-links-table th,
.download-links-table td {
  border: 1px solid #ff6b6b;
  vertical-align: middle;
}

.download-links-table th {
  width: 222px;
  padding: 12px 5px;
  text-align: right;
  font-size: 9px;
  font-weight: 400;
}

.download-links-table td {
  min-height: 34px;
  padding: 8px 5px;
  font-size: 16px;
  line-height: 1.2;
}

.download-links-table td strong {
  font-size: 17px;
}

.download-links-table a {
  color: #00f;
  text-decoration: underline;
}

.download-links-table span {
  color: red;
}

.change-logs-workspace {
  width: 1046px;
  padding: 42px 24px;
  background: #f3f3f3;
}

.change-logs-workspace pre {
  margin: 0;
  color: #111;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.change-logs-workspace strong {
  font-weight: 700;
}

.server-info-workspace {
  padding: 7px 7px 40px;
}

.server-info-strip {
  margin-bottom: 15px;
}

.server-info-table {
  width: 1124px;
  border-collapse: collapse;
  background: #eee;
  border: 2px solid #fff;
  font-size: 11px;
}

.server-info-table th,
.server-info-table td {
  height: 42px;
  border: 2px solid #fff;
  padding: 8px 9px;
}

.server-info-table th {
  width: 224px;
  text-align: right;
  background: #fff;
  font-weight: 400;
}

.server-info-table td {
  background: #eee;
}

.server-premium-badge {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 11px;
  border-radius: 2px;
  background: #02b8e6;
  color: #fff;
  font-size: 11px;
}

.notif-popover {
  position: fixed !important;
  right: 0 !important;
  top: 37px !important;
  width: 240px !important;
  z-index: 260 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #222;
  font-family: var(--font-main);
}

.notif-popover-title {
  height: 37px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #663096;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.notif-popover-item {
  min-height: 75px;
  padding: 13px 10px 8px;
  border-bottom: 4px solid #663096;
  background: #f2f2f2;
  font-size: 13px;
}

.notif-popover-item span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 5px;
  border-radius: 2px;
  background: #05b9e8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.notif-popover-item p {
  margin: 6px 0 0;
  color: #222;
  line-height: 1.25;
  white-space: nowrap;
}

.notif-empty-state {
  min-height: 75px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 4px solid #663096;
  background: #f2f2f2;
  color: #222;
  font-size: 14px;
}

.notif-see-all {
  width: 100%;
  height: 51px;
  border: 0;
  border-bottom: 4px solid #663096;
  background: #fff;
  color: #222;
  text-align: left;
  padding: 0 10px;
  font-size: 14px;
  cursor: pointer;
}

.notification-workspace {
  min-height: calc(100vh - 137px);
  padding: 16px 17px 40px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.notification-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 10px;
}

.notification-filter-bar .subadmin-field {
  width: 96px;
}

.notification-filter-bar .subadmin-field input,
.notification-filter-bar .subadmin-field select {
  width: 100%;
}

.notification-filter-bar .notification-user-type {
  width: 75px;
}

.notification-filter-bar .notification-subject {
  width: 166px;
}

.notification-filter-bar .notification-status {
  width: 80px;
}

.notification-filter-bar .notification-date {
  width: 132px;
}

.notification-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.notification-table th {
  height: 27px;
  padding: 3px 4px;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  background: #f2f2f2;
  color: #5b1686;
  font-weight: 700;
  text-align: left;
}

.notification-table th:first-child {
  width: 30px;
}

.notification-table th:nth-child(2) {
  width: 150px;
}

.notification-table th:nth-child(3) {
  width: 245px;
}

.notification-table th:nth-child(4) {
  width: 365px;
}

.notification-table th:nth-child(5) {
  width: 410px;
}

.notification-paging {
  margin-top: 24px;
}

.notification-bulk {
  margin: 27px 0 0 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 150px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
}

.notification-bulk select {
  width: 150px;
  height: 23px;
  border: 1px solid #cbd1da;
  background: #fff;
  font-size: 12px;
}

.whatsapp-guide-workspace {
  min-height: calc(100vh - 137px);
  padding: 46px 19px 40px;
  background: #f4eff8;
  color: #222;
  font-family: var(--font-main);
}

.whatsapp-guide-workspace h1 {
  margin: 0 0 8px;
  font-size: 33px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
}

.whatsapp-guide-note {
  margin: 0 0 7px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.whatsapp-guide-panel {
  width: 100%;
  min-height: 390px;
  padding: 36px 14px 38px;
  border: 1px solid #bfe4ef;
  background: #dff5ff;
}

.whatsapp-guide-main-title {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #9878b1;
  border-bottom: 1px solid #4d1b7f;
  color: #fff;
  font-size: 29px;
  font-weight: 400;
}

.whatsapp-guide-subtitle {
  margin: 10px 0 27px;
  color: #1a5b83;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.whatsapp-guide-card {
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.whatsapp-guide-card-title {
  height: 39px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: #9878b1;
  border-bottom: 1px solid #4d1b7f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.whatsapp-guide-card-body {
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #f7f7f7;
  border-bottom: 1px solid #d6d6d6;
  font-size: 15px;
}

.whatsapp-guide-card-body p,
.whatsapp-guide-format p {
  margin: 0;
}

.whatsapp-guide-card-body span {
  font-weight: 400;
}

.whatsapp-guide-format {
  min-height: 112px;
  padding: 15px 16px;
  color: #1a5b83;
  background: #fff;
  border-bottom: 1px solid #d6d6d6;
  font-size: 15px;
  line-height: 1.35;
}

.whatsapp-guide-response {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #1a5b83;
  background: #f7f7f7;
  font-size: 15px;
}

.add-permission-column {
  padding-top: 0;
}

.add-check-row,
.add-permission-list label,
.add-checkbox-stack label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 11px;
  color: #111;
}

.add-permission-heading {
  height: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dadada;
}

.add-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 9px 14px;
  margin: 0;
}

.add-expiry-grid {
  display: contents;
}

.add-permission-list input,
.add-checkbox-stack input,
.add-permission-heading input {
  width: 13px;
  height: 13px;
}

.add-pin-field {
  margin: 0;
}

.add-checkbox-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.add-form-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #dadada;
}

.add-footer-pin {
  width: 120px;
  height: 32px;
  margin-left: auto;
  border: 1px solid #cbd1da;
  background: #eaf2ff;
  padding: 4px 10px;
  font-family: var(--font-main);
  font-size: 13px;
}

.add-client-btn {
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: #5d2a91;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.security-settings-workspace {
  min-height: calc(100vh - 137px);
  padding: 18px 28px 45px;
  background: #f4eff8;
  color: #111;
  font-family: var(--font-main);
}

.security-settings-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 190px);
  padding: 22px 26px 24px;
  border: 1px solid #ded6e4;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(48, 28, 64, .07);
}

.security-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px 24px;
  max-width: none;
}

.security-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.security-field input,
.security-field select {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd1da;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 5px 12px;
}

.security-field input:focus,
.security-field select:focus {
  border-color: #6f3194;
  box-shadow: 0 0 0 2px rgba(111, 49, 148, .12);
  outline: none;
}

.security-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: none;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #dadada;
}

.security-settings-footer input {
  width: 118px;
  height: 32px;
  border: 1px solid #cbd1da;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-main);
  font-size: 13px;
}

.security-settings-footer button {
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: #6a2a98;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.security-settings-footer button:hover {
  background: #55207f;
}

@media (max-width: 980px) {
  .add-subadmin-panel {
    grid-template-columns: 1fr;
    padding-bottom: 92px;
  }

  .add-form-grid,
  .add-checkbox-stack {
    grid-template-columns: 1fr;
  }

  .add-permission-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .security-settings-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  .subadmin-add-workspace {
    padding: 12px 8px 34px;
  }

  .add-subadmin-panel {
    padding: 12px 12px 108px;
  }

  .add-subadmin-card {
    padding: 14px 12px;
  }

  .add-permission-list {
    grid-template-columns: 1fr;
  }

  .add-form-footer {
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
  }

  .security-settings-workspace {
    padding: 10px 8px 34px;
  }

  .security-settings-panel {
    padding: 12px;
  }

  .security-settings-grid {
    grid-template-columns: 1fr;
  }

  .security-settings-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.client-list-workspace {
  min-height: calc(100vh - 137px);
  padding: 5px 18px 52px;
  background: #f4eff8;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.client-add-btn {
  margin-bottom: 9px;
}

.client-filter-bar {
  display: flex;
  align-items: end;
  gap: 4px;
  margin-bottom: 9px;
}

.client-username-field input {
  width: 153px;
}

.client-name-field input {
  width: 188px;
}

.client-address-field input {
  width: 188px;
}

.client-mobile-field input {
  width: 139px;
}

.client-email-field input {
  width: 138px;
}

.client-status-field select {
  width: 78px;
}

.client-list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.client-list-table th,
.client-list-table td {
  height: 27px;
  padding: 2px 4px;
  border-bottom: 1px solid #d7d7d7;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

.client-list-table th {
  background: #f7f7f7;
  color: #5b1684;
  font-weight: 700;
}

.client-list-table th:nth-child(1) {
  width: 34px;
  text-align: center;
}

.client-list-table th:nth-child(2) {
  width: 138px;
}

.client-list-table th:nth-child(3) {
  width: 130px;
}

.client-list-table th:nth-child(4) {
  width: 112px;
}

.client-list-table th:nth-child(5) {
  width: 150px;
}

.client-list-table th:nth-child(6) {
  width: 112px;
}

.client-list-table th:nth-child(7) {
  width: 56px;
}

.client-list-table th:nth-child(8) {
  width: 112px;
}

.client-list-table th:nth-child(9) {
  width: 112px;
}

.client-list-table th:nth-child(10) {
  width: 112px;
}

.client-list-table th:nth-child(11) {
  width: 62px;
}

.client-list-table th:nth-child(12) {
  width: 62px;
}

.client-list-table th:nth-child(13) {
  width: 92px;
}

.client-list-table th:nth-child(14) {
  width: 92px;
}

.client-list-table th:nth-child(15) {
  width: 72px;
}

.client-list-table th:nth-child(16) {
  width: 58px;
  text-align: center;
}

.suspended-list-table th:nth-child(7),
.suspended-list-table td:nth-child(7) {
  width: 140px;
}

.suspended-list-table th:nth-child(8),
.suspended-list-table td:nth-child(8) {
  width: 80px;
  text-align: center;
}

.client-bulk {
  margin-top: 27px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.client-bulk select {
  width: 101px;
  height: 23px;
  border: 1px solid #d2d0da;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 1px 7px;
}

/* Message Pages */
.message-workspace {
  min-height: calc(100vh - 137px);
  padding: 5px 18px 52px;
  background: #f4eff8;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.message-send-btn {
  margin-bottom: 9px;
  margin-top: -2px;
}

.message-filter-bar {
  display: flex;
  align-items: end;
  gap: 4px;
  margin-bottom: 10px;
}

.message-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.message-field input,
.message-field select {
  height: 23px;
  border: 1px solid #d2d0da;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 1px 7px;
}

.message-show-field select {
  width: 52px;
}

.message-short-field input {
  width: 138px;
}

.message-content-field input {
  width: 138px;
}

.message-modem-field select {
  width: 94px;
}

.message-type-field select {
  width: 86px;
}

.message-status-field select {
  width: 88px;
}

.message-date-field input {
  width: 138px;
}

.message-operator-field select {
  width: 166px;
}

.message-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.message-table th,
.message-table td {
  height: 29px;
  padding: 2px 4px;
  border-bottom: 1px solid #d7d7d7;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

.message-table th {
  height: 26px;
  background: #f7f7f7;
  color: #5b1684;
  font-weight: 700;
}

.message-table tbody tr:nth-child(odd) td {
  background: #fff;
}

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

.outbox-table th:nth-child(1),
.outbox-table td:nth-child(1) {
  width: 30px;
  text-align: center;
}

.outbox-table th:nth-child(2),
.outbox-table td:nth-child(2) {
  width: 126px;
}

.outbox-table th:nth-child(3),
.outbox-table td:nth-child(3) {
  width: auto;
}

.outbox-table th:nth-child(4),
.outbox-table td:nth-child(4) {
  width: 75px;
}

.outbox-table th:nth-child(5),
.outbox-table td:nth-child(5) {
  width: 48px;
}

.outbox-table th:nth-child(6),
.outbox-table td:nth-child(6) {
  width: 74px;
}

.outbox-table th:nth-child(7),
.outbox-table td:nth-child(7) {
  width: 96px;
}

.outbox-table th:nth-child(8),
.outbox-table td:nth-child(8) {
  width: 64px;
  text-align: center;
}

.inbox-table th:nth-child(1),
.inbox-table td:nth-child(1) {
  width: 30px;
  text-align: center;
}

.inbox-table th:nth-child(2),
.inbox-table td:nth-child(2) {
  width: 82px;
}

.inbox-table th:nth-child(3),
.inbox-table td:nth-child(3) {
  width: 58px;
}

.inbox-table th:nth-child(4),
.inbox-table td:nth-child(4) {
  width: 68px;
}

.inbox-table th:nth-child(5),
.inbox-table td:nth-child(5) {
  width: 94px;
}

.inbox-table th:nth-child(6),
.inbox-table td:nth-child(6) {
  width: auto;
}

.inbox-table th:nth-child(7),
.inbox-table td:nth-child(7) {
  width: 48px;
  text-align: center;
}

.whatsapp-filter-bar {
  margin-top: 30px;
}

.whatsapp-table th:nth-child(1),
.whatsapp-table td:nth-child(1) {
  width: 30px;
  text-align: center;
}

.whatsapp-table th:nth-child(2),
.whatsapp-table td:nth-child(2) {
  width: 520px;
}

.whatsapp-table th:nth-child(3),
.whatsapp-table td:nth-child(3) {
  width: auto;
}

.whatsapp-table th:nth-child(4),
.whatsapp-table td:nth-child(4) {
  width: 160px;
}

.whatsapp-table th:nth-child(5),
.whatsapp-table td:nth-child(5) {
  width: 90px;
}

.whatsapp-table th:nth-child(6),
.whatsapp-table td:nth-child(6) {
  width: 110px;
}

.whatsapp-table th:nth-child(7),
.whatsapp-table td:nth-child(7) {
  width: 80px;
  text-align: center;
}

.message-success {
  color: #008000;
  font-weight: 700;
}

.message-pending {
  color: #ff9900;
  font-weight: 700;
}

.message-failed {
  color: #777;
  font-weight: 700;
}

.message-paging-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.message-bulk {
  margin-top: 18px;
}

.message-reload-btn {
  width: 22px;
  height: 20px;
  border: none;
  border-radius: 4px;
  background: #6a2c91;
  color: #fff;
  font-size: 17px;
  line-height: 18px;
  cursor: pointer;
}

.send-sms-workspace {
  padding-top: 10px;
}

.send-sms-panel {
  width: 420px;
  min-height: 298px;
  padding: 28px 40px 26px;
  border: 1px solid #dedede;
  border-radius: 3px;
  background: #f3f3f3;
  margin-left: 0;
}

.send-sms-heading {
  width: 318px;
  padding: 0 0 8px 2px;
  margin-bottom: 12px;
  border-bottom: 1px solid #dadada;
  color: #2a65ff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
}

.send-sms-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  color: #111;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
}

.send-sms-field small {
  color: #888;
  font-size: 11px;
  font-weight: 700;
}

.send-sms-field input,
.send-sms-field textarea {
  width: 318px;
  border: 1px solid #cbd1da;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 8px 10px;
}

.send-sms-field input {
  height: 30px;
}

.send-sms-field textarea {
  height: 65px;
  resize: vertical;
}

.send-sms-footer {
  width: 318px;
  padding-top: 8px;
  border-top: 1px solid #dadada;
}

.send-sms-btn {
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 3px;
  background: #5d2a91;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* --- Rate Module Tab Styling --- */
.subadmin-rate-workspace {
  background: #f4eff8;
  padding: 16px;
  min-height: calc(100vh - 137px);
  overflow-x: auto;
}

.rate-blocks-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.add-rate-btn {
  background: #20173e;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 68px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.add-rate-btn:hover {
  background: #2b2053;
}

.rate-block {
  border: 1px solid #bfb7cb;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 250px;
  background: #f4eff8;
}

.rate-block.purple-block {
  border-color: #5d2a91;
}

.rate-block.red-block {
  border-color: #d84315;
}

.rate-block.orange-block {
  border-color: #ff8f00;
}

.rate-block-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.rate-block-btn {
  border: none;
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.purple-block .rate-block-btn {
  background: #5d2a91;
}

.purple-block .rate-block-btn:hover {
  background: #4d1b7f;
}

.red-block .rate-block-btn {
  background: #d84315;
}

.red-block .rate-block-btn:hover {
  background: #bf360c;
}

.orange-block .rate-block-btn {
  background: #ff8f00;
}

.orange-block .rate-block-btn:hover {
  background: #ff6f00;
}

.rate-block-buttons .wide-btn {
  grid-column: span 2;
}

.rate-block-title {
  font-size: 9px;
  font-weight: 900;
  color: #111;
  margin-top: 2px;
  text-align: center;
  letter-spacing: 0.5px;
  font-family: var(--font-main);
}

/* Filter Row */
.rate-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
  border: none;
}

.rate-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #4b4b4b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.rate-filter-field input,
.rate-filter-field select {
  height: 22px;
  border: 1px solid #d2d0da;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 11px;
  padding: 1px 6px;
}

#rateShowLimit {
  width: 50px;
}

#ratePrefixSearch {
  width: 100px;
}

#rateServiceFilter {
  width: 120px;
}

.rate-filter-btn {
  height: 22px;
  padding: 0 12px;
  border: none;
  background: #d84315;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 2px;
}

.rate-filter-btn:hover {
  background: #bf360c;
}

/* Table */
.subadmin-rate-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 1500px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11.5px;
  margin-bottom: 15px;
}

.subadmin-rate-table th,
.subadmin-rate-table td {
  height: 26px;
  padding: 2px 6px;
  border-bottom: 1px solid #d7d7d7;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.subadmin-rate-table th {
  background: #f1f1f1;
  color: #5b1684;
  font-weight: 700;
}

.subadmin-rate-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.subadmin-rate-table tbody tr:nth-child(even) td {
  background: #f8f6fb;
}

/* Colored values */
.subadmin-rate-table td.green-rate {
  color: #2e7d32;
  font-weight: 700;
}

.subadmin-rate-table td.red-rate {
  color: #d32f2f;
  font-weight: 700;
}

.rate-row-action-btn {
  background: #fff;
  border: 1px solid #ff5252;
  border-radius: 4px;
  color: #ff5252;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
}

.rate-row-action-btn:hover {
  background: #ffebee;
}

.subadmin-rate-paging {
  margin-top: 15px;
  color: #334;
  font-size: 12px;
  font-family: var(--font-main);
  font-weight: 500;
}

/* Rate Action Dropdown */
.rate-action-dropdown {
  position: absolute;
  z-index: 99999;
  display: none;
  background: #fff;
  border: 1.5px solid #5d2a91;
  /* Purple border matching client dropdown */
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.rate-action-dropdown button {
  width: 100%;
  padding: 8px 12px;
  background: #fff;
  border: 0;
  border-bottom: 1.5px solid #005a9c;
  /* Blue separator border */
  color: #000;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  /* Bold text */
  text-align: center;
  /* Centered text */
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s;
  white-space: normal;
  /* Allow text wrapping */
  display: block;
}

.rate-action-dropdown button:last-child {
  border-bottom: 0;
}

.rate-action-dropdown button:hover {
  background: #f3ebfa;
  /* Light purple hover effect */
}

.rate-action-dropdown.show {
  display: block !important;
}

/* Add Rate Panel & Form Styling */
.rate-add-workspace {
  min-height: calc(100vh - 137px);
  padding: 24px 20px 40px;
  background: #f4eff8;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.rate-add-panel {
  width: 440px;
  /* Panel width matching mockup */
  background: #f1eff4;
  /* Slightly grey background matching mockup container */
  border: 1px solid #dcd7e2;
  border-radius: 4px;
  padding: 24px 34px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rate-add-heading {
  color: #3b82f6;
  /* Blue subheader color matching mockup "Rate Information" */
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #dcd7e2;
  font-family: var(--font-main), Arial, sans-serif;
}

.rate-add-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #333;
}

.rate-add-field span {
  display: block;
}

.rate-add-field input,
.rate-add-field select {
  width: 100%;
  height: 28px;
  border: 1.5px solid #d1d5db;
  /* Regular grey border */
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 12px;
  padding: 2px 8px;
  box-sizing: border-box;
}

.rate-add-field.required-border input {
  border: 1.5px solid #ef4444 !important;
  /* Bold red border for required values matching mockup */
}

.required-asterisk {
  color: #ef4444;
  display: inline !important;
}

.rate-add-field input:focus,
.rate-add-field select:focus {
  border-color: #6f3194;
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 49, 148, .12);
}

.rate-add-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1.5px solid #dcd7e2;
}

.rate-add-otp-input {
  width: 100px !important;
  height: 28px;
  border: 1.5px solid #cbd1da;
  background: #fff;
  padding: 2px 8px;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 12px;
  box-sizing: border-box;
}

/* Full-page Rate Add/Edit layout */
.rate-add-workspace .rate-add-panel {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 18px 16px;
  align-items: start;
  padding: 22px 28px 24px;
}

.rate-add-workspace .rate-add-heading,
.rate-add-workspace .rate-add-footer {
  grid-column: 1 / -1;
}

.rate-add-workspace .rate-add-field {
  margin-bottom: 0;
  gap: 6px;
  min-width: 0;
}

.rate-add-workspace .rate-add-field>span {
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 16px;
}

.rate-add-workspace .rate-add-field input,
.rate-add-workspace .rate-add-field select {
  height: 32px;
  min-width: 0;
}

.rate-add-workspace .rate-add-footer {
  justify-content: flex-end;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .rate-add-workspace .rate-add-panel {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }
}

@media (max-width: 780px) {
  .rate-add-workspace .rate-add-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .rate-add-workspace .rate-add-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.rate-add-save-btn {
  height: 28px;
  padding: 0 16px;
  border: none;
  border-radius: 3px;
  background: #6d2a93;
  /* Purple background matching mockup button */
  color: #fff;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background 0.15s;
}

.rate-add-save-btn:hover {
  background: #5b217e;
}

.rate-modify-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: rgba(244, 239, 248, 0.82);
  overflow: auto;
}

.rate-modify-window {
  width: min(468px, 100vw);
  min-height: 100vh;
  background: #f4eff8;
  color: #111;
  box-shadow: 8px 0 22px rgba(0, 0, 0, .13);
}

.rate-modify-title {
  height: 28px;
  padding: 0 4px;
  background: #9b78b3;
  color: #fff;
  border-bottom: 1px solid #5b1684;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rate-modify-title button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rate-modify-workspace {
  min-height: calc(100vh - 28px);
  padding: 10px 13px 0;
}

.rate-modify-panel {
  width: 350px;
  padding: 21px 34px 6px;
}

.rate-modify-panel .rate-add-heading {
  font-size: 11px;
  margin-bottom: 11px;
}

.rate-modify-panel .rate-add-field {
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
}

.rate-modify-panel .rate-add-field input,
.rate-modify-panel .rate-add-field select {
  height: 25px;
  font-size: 11px;
  border-radius: 0;
}

.rate-modify-panel .rate-add-footer {
  gap: 4px;
  margin-top: 18px;
  padding-top: 8px;
}

.rate-modify-panel .rate-add-otp-input {
  width: 82px !important;
  height: 25px;
  font-size: 11px;
}

.rate-modify-panel .rate-add-save-btn {
  height: 25px;
  padding: 0 11px;
  border-radius: 2px;
  font-size: 11px;
}

@media (max-width: 520px) {

  .rate-modify-window,
  .rate-modify-panel {
    width: 100%;
  }

  .rate-modify-workspace {
    padding: 10px;
  }

  .rate-modify-panel {
    padding: 18px 22px 10px;
  }
}

body.rate-module-page .subadmin-rate-workspace {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: auto;
}

body.rate-module-page .subadmin-rate-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: 11.5px;
}

body.rate-module-page .subadmin-rate-table th,
body.rate-module-page .subadmin-rate-table td {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  padding-left: 5px;
  padding-right: 5px;
}

body.rate-module-page .rate-blocks-container {
  width: 100%;
  max-width: 100%;
}

.module-setup-workspace {
  min-height: calc(100vh - 137px);
  padding: 7px 18px 40px;
  background: #f4eff8;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid #d8d8d8;
}

.module-top-btn {
  height: 37px;
  border: 0;
  border-radius: 3px;
  padding: 0 13px;
  color: #fff;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.module-add-btn {
  background: #6c2b91;
}

.module-enable-btn {
  background: #008b55;
}

.module-disable-btn {
  background: #df4939;
}

.module-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.module-table th:last-child,
.module-table td:last-child {
  width: 1%;
}

.module-table th,
.module-table td {
  height: 36px;
  padding: 2px 6px;
  border-bottom: 1px solid #efedf3;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.module-table th {
  height: 28px;
  background: #f1f1f1;
  color: #5b1684;
  font-weight: 700;
}

.module-table th:last-child {
  text-align: right;
  padding-right: 6px;
}

.module-table tbody tr:nth-child(odd) td {
  background: #fff;
}

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

.module-icon {
  width: 27px;
  height: 27px;
  margin-right: 17px;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.module-logo-touch {
  background: #55c9bc;
  color: #fff;
  border-radius: 5px;
}

.module-logo-touch::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 3px;
  top: 4px;
  left: 7px;
}

.module-logo-touch i {
  position: relative;
  transform: translate(3px, 5px) scale(.72);
}

.module-logo-gift {
  border-radius: 4px;
  background: #f7f7f7;
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.module-logo-gift::before {
  display: none;
}

.module-logo-gift i {
  transform: scale(1.22);
}

.module-logo-image {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.module-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-logo-bkash {
  background: #e31370;
  color: #fff;
}

.module-logo-bkash i {
  transform: rotate(-18deg) scale(1.05);
}

.module-logo-bkash::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 6px;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(15deg);
}

.module-logo-rocket {
  background: #8b2e99;
  color: #fff;
}

.module-logo-rocket i {
  transform: rotate(1deg) scale(1.1);
}

.module-logo-upay {
  background: linear-gradient(135deg, #ffd400 0 49%, #1260a9 51% 100%);
  color: #fff;
  border-radius: 50%;
}

.module-logo-upay span {
  width: 17px;
  height: 18px;
  border: 4px solid #fff;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  color: transparent;
  display: block;
}

.module-logo-nagad {
  background: radial-gradient(circle at 50% 52%, #fff 0 25%, transparent 26%),
    conic-gradient(from 25deg, #f7941d, #f15a24, #ed1c24, #f7941d);
  color: #ed1c24;
  border-radius: 50%;
}

.module-logo-nagad i {
  transform: scale(.65);
}

.module-bkash-title {
  color: #6d2a93;
}

.module-rocket-title {
  color: #6d2a93;
}

.module-nagad-title {
  color: #6d2a93;
}

.module-upay-title {
  color: #3f4b4d;
}

.module-pin-yes {
  color: #f00;
}

.module-check {
  color: #8fcb42;
  font-size: 17px;
  font-weight: 700;
}

.module-cross {
  color: #ff634b;
  font-size: 17px;
  font-weight: 700;
}

.module-action-cell {
  white-space: nowrap;
  text-align: left;
  padding-right: 6px !important;
}

.module-action-btn {
  width: 29px;
  height: 25px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: 4px;
}

.module-edit-btn {
  background: #08aeea;
  color: #000;
}

.module-tools-btn {
  background: #6c2b91;
}

.module-ok-btn {
  background: #008b55;
}

.module-warn-btn {
  background: #f39a00;
  color: #000;
}

.module-delete-btn {
  background: #e84b44;
}

.rate-sync-all-btn {
  background: #e7421a !important;
}

.rate-compact-btn {
  height: 32px;
  min-width: 104px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

.add-rate-compact-btn {
  background: #211447;
}

.module-add-workspace {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
  color: #111;
  padding: 30px 0 40px;
  font-family: Georgia, "Times New Roman", serif;
}

.module-add-heading {
  margin: 0 0 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ded9e6;
  color: #202a35;
  font-family: var(--font-title), var(--font-main), Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.module-add-form {
  width: 780px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
}

.module-add-row {
  display: grid;
  grid-template-columns: 185px 428px;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
}

.module-add-label {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.module-option-row {
  align-items: start;
}

.module-input-wrap {
  display: grid;
  grid-template-columns: 44px 1fr;
  width: 428px;
  height: 38px;
}

.module-input-wrap i {
  border: 1px solid #cfd3dc;
  border-right: 0;
  background: #fff;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.module-input-wrap input,
.module-input-wrap select {
  width: 100%;
  height: 38px;
  border: 1px solid #cfd3dc;
  background: #fff;
  color: #111;
  font-size: 16px;
  padding: 0 12px;
}

.module-input-wrap input::placeholder {
  color: #8b96a3;
}

.module-select-plus {
  width: 428px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.module-plus-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #6f3292;
  border-radius: 2px;
  background: #6f3292;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.module-plus-btn:hover {
  background: #562277;
}

.module-request-type-panel {
  width: 428px;
  display: flex;
  flex-direction: column;
}

.module-request-type-panel .module-input-wrap {
  width: 428px;
}

.module-add-type-btn {
  width: 428px;
  height: 31px;
  border: 0;
  background: #6f3292;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.module-add-type-btn i {
  margin-right: 5px;
}

.module-request-type-table {
  width: 428px;
  border-collapse: collapse;
  border: 1px solid #6f3292;
  font-size: 14px;
}

.module-request-type-table th,
.module-request-type-table td {
  height: 26px;
  padding: 3px 8px;
  border-bottom: 1px solid #d5c4df;
  text-align: left;
}

.module-request-type-table th {
  background: #f4eef8;
  font-weight: 700;
}

.module-request-type-table th:last-child,
.module-request-type-table td:last-child {
  width: 126px;
  text-align: center;
}

.module-edit-type-btn,
.module-remove-type-btn {
  width: 26px;
  height: 24px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.module-edit-type-btn {
  background: #2f7bdc;
  margin-right: 4px;
}

.module-remove-type-btn {
  background: #e74b44;
}

.module-logo-upload-row {
  align-items: start;
}

.module-logo-upload {
  width: 428px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-logo-upload .module-input-wrap {
  width: 428px;
}

.module-file-wrap {
  height: 36px;
}

.module-file-wrap>i {
  height: 36px;
}

.module-file-control {
  width: 100%;
  height: 36px;
  border: 1px solid #cfd3dc;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.module-file-control button {
  height: 22px;
  border: 1px solid #999;
  background: #f7f7f7;
  color: #000;
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
}

.module-file-control input[type="file"] {
  display: none;
}

.module-file-name {
  color: #222;
  line-height: 1;
}

.module-logo-current {
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.module-logo-current img {
  width: 28px;
  height: 28px;
  border: 1px solid #cfd3dc;
  object-fit: cover;
  background: #fff;
}

.module-logo-current button {
  height: 25px;
  border: 0;
  background: #e74b44;
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.module-logo-current button i {
  margin-right: 4px;
}

.module-logo-upload small {
  color: #555;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.module-check-row {
  align-items: start;
  margin-bottom: 21px;
}

.module-check-options,
.module-desc-check {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.module-check-options label,
.module-desc-check {
  font-weight: 400;
}

.module-check-options input,
.module-desc-check input {
  width: 13px;
  height: 13px;
  margin: 0 4px 0 0;
}

.module-submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 57px;
}

.module-submit-row input {
  width: 112px;
  height: 34px;
  border: 1px solid #cfd3dc;
  background: #fff;
  color: #333;
  font-size: 14px;
  padding: 0 11px;
}

.module-submit-row button {
  width: 202px;
  height: 38px;
  border: 0;
  border-radius: 3px;
  background: #f69a08;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.module-config-workspace {
  min-height: calc(100vh - 137px);
  background: #f4eff8;
  color: #111;
  padding: 20px 0 34px;
  font-family: Georgia, "Times New Roman", serif;
}

.module-config-heading {
  margin: 0 0 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ded9e6;
  text-align: center;
  font-family: var(--font-main), Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.module-config-form {
  width: 720px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
}

.module-config-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 13px;
}

.module-config-label {
  padding-top: 5px;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}

.module-config-input,
.module-config-section {
  width: 452px;
}

.module-config-input {
  height: 25px;
  grid-template-columns: 30px 1fr;
}

.module-config-input i,
.module-config-input select {
  height: 25px;
  font-size: 12px;
}

.module-config-section {
  border: 1px solid #6f3292;
  background: #fff;
}

.module-config-set-btn {
  width: 100%;
  height: 24px;
  border: 0;
  background: #13b6de;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.module-config-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.module-config-section th,
.module-config-section td {
  height: 25px;
  padding: 4px 6px;
  text-align: left;
}

.module-config-section th {
  font-weight: 700;
}

.module-config-actions {
  width: 52px;
  text-align: right !important;
  white-space: nowrap;
}

.module-config-actions button {
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  padding: 0 3px;
}

.module-config-remove-row {
  color: #ff0000;
}

.module-config-footer {
  width: 452px;
  margin: 8px 0 0 166px;
  text-align: center;
}

.module-config-footer button {
  height: 30px;
  border: 0;
  background: #6f3292;
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.module-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 38px;
  background: rgba(0, 0, 0, .35);
}

.module-popup-window {
  width: 506px;
  min-height: 478px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.module-popup-browser-title {
  height: 36px;
  background: #efe5f4;
  color: #6b6470;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 14px;
}

.module-popup-browser-title i {
  margin-right: 6px;
}

.module-popup-window-icons {
  color: #3d3344;
  letter-spacing: 9px;
  white-space: nowrap;
}

.module-popup-address-bar {
  height: 42px;
  background: #e8ddec;
  border-bottom: 1px solid #cfc4d5;
  display: grid;
  grid-template-columns: 34px 1fr 36px 36px;
  align-items: center;
  color: #101827;
  font-size: 17px;
}

.module-popup-site-icon {
  width: 27px;
  height: 27px;
  margin-left: 8px;
  border-radius: 50%;
  background: #f7f7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.module-popup-url {
  padding-left: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.module-popup-title {
  margin: 8px 12px 0;
  padding: 0 0 7px;
  border-bottom: 1px solid #cfcfcf;
  font-weight: 700;
  font-size: 16px;
}

.module-popup-form {
  padding: 8px 12px 0;
}

.module-popup-form label {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.module-popup-form select,
.module-popup-form input {
  height: 28px;
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 0 8px;
  font-size: 13px;
}

.module-popup-actions {
  margin-top: 26px;
  padding-top: 4px;
  border-top: 1px solid #e4e4e4;
  text-align: right;
}

.module-popup-actions button {
  height: 24px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  padding: 0 8px;
  font-weight: 700;
  cursor: pointer;
}

.module-popup-save {
  background: #47b95a;
}

.module-popup-close {
  background: #e64b45;
}

/* User Panel Global Footer */
.user-global-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 7px;
  background: #ffffff;
  border-top: 1px solid #d6d2dc;
  color: #111111;
  font-size: 13px;
  font-family: var(--font-main, 'Inter', sans-serif);
  z-index: 250;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.03);
}

.user-global-footer .footer-left {
  display: flex;
  align-items: center;
}

.user-global-footer .footer-left span {
  color: #333333;
  font-weight: 500;
}

.user-global-footer .footer-separator {
  color: #d6d2dc;
  font-size: 11px;
  margin: 0 10px;
}

.user-global-footer .footer-right {
  display: flex;
  align-items: center;
}

.user-global-footer .footer-right span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333333;
}

.user-global-footer .footer-right i {
  color: var(--primary, #6b21a8);
  font-size: 13px;
}

.user-global-footer .footer-flag-container {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}

.user-global-footer .footer-flag-container img {
  width: 16px;
  height: 10px;
  border-radius: 1px;
  object-fit: cover;
  vertical-align: middle;
}

/* Header Designation Badge */
.hdr-designation-badge {
  background-color: #f3e8ff;
  color: #6b21a8;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #e8dbf8;
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
}

/* Live Chat Tab Workspace */
.user-chat-workspace {
  padding: 20px;
  background-color: #f4eff8;
  min-height: calc(100vh - 161px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.chat-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: var(--shadow-md, 0 4px 15px rgba(0, 0, 0, 0.05));
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, #6b21a8, #581c87);
  color: #ffffff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-agent-avatar {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
}

.chat-agent-status {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border: 2px solid #6b21a8;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  animation: pulse-green 2s infinite;
}

.chat-agent-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.chat-agent-meta span {
  font-size: 11px;
  opacity: 0.8;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #faf9fc;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.chat-msg.bot {
  background-color: #f1f0f5;
  color: #333333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background-color: #6b21a8;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-msg .msg-time {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.chat-options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  margin-top: 5px;
}

.chat-opt-btn {
  background-color: #ffffff;
  border: 1px solid #dcd3eb;
  color: #6b21a8;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chat-opt-btn:hover {
  background-color: #f3ebfc;
  border-color: #c084fc;
  transform: translateY(-1px);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background-color: #f1f0f5;
  border-radius: 12px;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #8b5cf6;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-footer {
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input-field {
  flex: 1;
  height: 38px;
  border: 1px solid #dedede;
  border-radius: 20px;
  padding: 0 15px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input-field:focus {
  border-color: #8b5cf6;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #6b21a8;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.chat-send-btn:hover {
  background-color: #581c87;
  transform: scale(1.05);
}

.chat-wa-direct-card {
  margin-top: 15px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-card-text {
  color: #1b5e20;
  font-size: 13px;
}

.wa-card-text strong {
  display: block;
  font-size: 14px;
}

.wa-pulse-btn {
  background-color: #25d366;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  animation: wa-pulse 2s infinite;
  transition: transform 0.2s ease;
}

.wa-pulse-btn:hover {
  transform: translateY(-1px);
  background-color: #128c7e;
}

/* Animations */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes typing-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

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

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

/* Login page user-panel preview bar */
.login-page-with-panel {
  min-height: 100vh;
  background: #f4eff8;
  display: flex;
  flex-direction: column;
}

.login-page-with-panel .login-panel-header {
  height: 54px;
  flex-shrink: 0;
  padding: 0 13px 0 8px;
  background: #4d1b7f;
  color: #ffffff;
  box-shadow: none;
}

.login-page-with-panel .login-panel-header .header-brand {
  width: auto;
  min-width: 210px;
  padding-left: 0;
  background: transparent;
}

.login-page-with-panel .login-panel-header .header-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.login-page-with-panel .login-panel-header .header-controls {
  gap: 25px;
  margin-left: auto;
}

.login-page-with-panel .login-panel-header .hdr-balance-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.login-page-with-panel .login-panel-nav {
  height: 39px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #6b3293;
  padding-left: 0;
}

.login-page-with-panel .login-panel-nav .nav-dropdown {
  height: 39px;
}

.login-page-with-panel .login-panel-nav .nav-tab {
  height: 39px;
  padding: 0 19px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  gap: 3px;
}

.login-page-with-panel .login-panel-nav .nav-tab-home {
  width: 42px;
  padding: 0;
}

.login-page-with-panel .login-panel-nav .nav-tab-home i {
  font-size: 19px;
}

.login-page-with-panel .login-dashboard-title {
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #9a7ab2;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.login-page-with-panel .login-container {
  flex: 1;
  min-height: calc(100vh - 127px);
  justify-content: flex-start;
  padding: 10px 20px 24px;
  background: #f4eff8;
}

.login-page-with-panel .login-card {
  margin: 0 auto 40px;
}

.login-page-with-panel .login-panel-nav::-webkit-scrollbar {
  height: 4px;
}

@media (max-width: 720px) {
  .login-page-with-panel .login-panel-header {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .login-page-with-panel .login-panel-header .header-brand {
    min-width: 0;
  }

  .login-page-with-panel .login-panel-header .header-controls {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .login-page-with-panel .login-container {
    min-height: calc(100vh - 156px);
    padding: 10px 16px 24px;
  }
}

/* User panel title bar must sit flush under the menu */
.user-panel-container .user-panel-main {
  padding: 0 0 34px !important;
  margin: 0;
  width: 100%;
  animation: none;
}

.user-panel-container .dashboard-title-bar {
  width: 100%;
  height: 35px;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #9a7ab2;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.user-panel-container .user-panel-tab {
  margin: 0;
  background: #f4eff8;
}

.user-panel-container,
.user-panel-container .user-panel-header,
.user-panel-container .user-panel-nav,
.user-panel-container .dashboard-title-bar {
  flex-shrink: 0;
  transition: none;
}

.user-panel-container {
  scrollbar-gutter: stable;
}

.merchant-panel-main #merchant-pending .filter-bar {
  padding-top: 2px;
}

/* User panel request pages */
.user-panel-container .user-request-workspace {
  min-height: calc(100vh - 161px);
  padding: 14px 15px 34px;
  background: #f4eff8;
}

.user-panel-container .user-request-card {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(420px, 1fr);
  align-items: start;
  gap: 16px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.user-panel-container .user-request-form-panel,
.user-panel-container .user-request-history-panel {
  width: 100%;
  max-width: none;
  min-width: 0;
  border: 1px solid #d9d1e3;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(40, 22, 62, .06);
}

.user-panel-container .user-request-form-panel {
  padding: 16px 18px 18px;
}

.user-panel-container .user-request-history-panel {
  padding: 16px;
  overflow-x: auto;
}

.user-panel-container .user-section-heading {
  display: flex;
  align-items: center;
  min-height: 25px;
  margin: 0 0 14px;
  padding: 0 0 9px;
  border-bottom: 1px solid #e1dbe9;
  color: #5b1684;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.user-panel-container .user-request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 14px;
}

.user-panel-container .user-request-form label {
  min-width: 0;
  gap: 6px;
  color: #21172f;
  font-size: 13px;
  font-weight: 700;
}

.user-panel-container .user-request-form label:first-child {
  grid-column: 1 / -1;
}

.user-panel-container .user-request-form input,
.user-panel-container .user-request-form select,
.user-panel-container .user-wallet-request .user-request-form input,
.user-panel-container .user-wallet-request .user-request-form select {
  width: 100%;
  height: 35px;
  border: 1px solid #c9d1db;
  border-radius: 2px;
  background: #ffffff;
  color: #1d2430;
  font-size: 13px;
  padding: 6px 10px;
}

.user-panel-container .user-request-form input:focus,
.user-panel-container .user-request-form select:focus {
  border-color: #6b3293;
  box-shadow: 0 0 0 2px rgba(107, 50, 147, .12);
}

.user-panel-container .user-request-form .user-request-big-input {
  height: 48px;
  color: #1d2430;
  font-size: 23px;
  font-weight: 700;
}

.user-panel-container .user-request-form .user-request-big-input::placeholder {
  color: #7b7b7b;
}

.user-panel-container .user-request-form small {
  color: #78879b;
  font-size: 11px;
  line-height: 1.25;
}

.user-panel-container .username-account-preview {
  min-height: 0;
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.user-panel-container .username-account-preview.account-found {
  padding: 8px 10px;
  border: 1px solid #cbe9d2;
  background: #f0fff4;
  color: #136b2f;
}

.user-panel-container .username-account-preview.account-found strong {
  color: #0b4f22;
}

.user-panel-container .username-account-preview.account-found span {
  color: #587464;
}

.user-panel-container .username-account-preview.account-loading {
  color: #5b3c94;
}

.user-panel-container .username-account-preview.account-error {
  color: #d11f1f;
}

.user-panel-container .user-request-form .user-request-warning {
  color: #e60012;
  font-size: 11px;
}

.user-panel-container .user-request-form .user-request-pin-message {
  margin-top: 2px;
  color: #e60012;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.user-panel-container .user-request-form .user-request-pin-message.success {
  color: #0a8f2f;
}

.user-panel-container .user-request-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: 2px 0 0;
  background: #e1dbe9;
}

.user-panel-container .user-purple-btn {
  height: 34px;
  min-width: 86px;
  border-radius: 3px;
  background: #5b1684;
  font-size: 13px;
  justify-self: start;
}

.user-panel-container .user-purple-btn:hover {
  background: #4b0f72;
}

.user-panel-container .user-request-history-title {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: #5b1684;
}

.user-panel-container .user-request-history-title span {
  display: none;
}

.user-panel-container .user-mini-table {
  min-width: 920px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13px;
}

.user-panel-container .user-mini-table th,
.user-panel-container .user-mini-table td {
  height: 29px;
  border: 1px solid #d6d6d6;
  padding: 5px 7px;
  white-space: nowrap;
}

.user-panel-container .user-mini-table th {
  background: #f1f1f1;
  color: #21172f;
}

.user-panel-container .user-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  font-weight: 700;
}

.user-panel-container .user-status-badge.status-pending {
  color: #d88a00;
}

.user-panel-container .user-status-badge.status-completed {
  color: #0a8f2f;
}

.user-panel-container .user-status-badge.status-processing {
  color: #0b72d9;
}

.user-panel-container .user-status-badge.status-danger {
  color: #e60012;
}

.user-panel-container .user-status-badge.status-muted {
  color: #5f6672;
}

@media (max-width: 980px) {
  .user-panel-container .user-request-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .user-panel-container .user-request-workspace {
    padding: 10px 8px 24px;
  }

  .user-panel-container .user-request-form {
    grid-template-columns: 1fr;
  }
}

/* --- PREMIUM HISTORY REDESIGN --- */
.history-workspace-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  transition: var(--transition);
}

.history-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-end;
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.history-filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 180px;
}

.history-filter-item.item-small {
  flex: 0 1 100px;
}

.history-filter-item.item-double {
  flex: 2 1 300px;
}

.history-filter-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
}

.history-input,
.history-select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  transition: var(--transition);
}

.history-input:focus,
.history-select:focus {
  border-color: var(--input-focus);
  background-color: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(81, 45, 168, 0.15);
}

.history-btn-filter {
  height: 40px;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.history-btn-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(81, 45, 168, 0.25);
  filter: brightness(1.05);
}

.history-btn-advance {
  height: 40px;
  padding: 0 16px;
  background-color: transparent;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-medium);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.history-btn-advance:hover {
  border-color: var(--text-medium);
  color: var(--text-main);
}

.history-advanced-row-wrap {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--card-border);
}

.history-req-inputs {
  display: flex;
  gap: 8px;
  width: 100%;
}

.history-req-inputs select {
  width: 70px;
}

.history-req-inputs input {
  flex: 1;
}

/* Premium Table Styles */
.history-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.premium-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13.5px;
}

.premium-table th {
  background-color: var(--input-bg);
  color: var(--text-medium);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid var(--card-border);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.premium-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-main);
  transition: var(--transition);
  vertical-align: middle;
}

.premium-table tbody tr {
  transition: var(--transition);
}

.premium-table tbody tr:hover td {
  background-color: rgba(81, 45, 168, 0.04);
}

[data-theme="dark"] .premium-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

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

.premium-table .history-total-row td {
  font-weight: 700;
  background-color: var(--input-bg);
  border-top: 2px solid var(--card-border);
  border-bottom: none;
}

/* Elegant Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-status-completed,
.badge-status-success {
  background-color: var(--success-bg);
  color: var(--success);
}

.badge-status-pending {
  background-color: hsl(45, 90%, 95%);
  color: hsl(45, 90%, 35%);
}

[data-theme="dark"] .badge-status-pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: hsl(45, 90%, 65%);
}

.badge-status-processing,
.badge-status-processed {
  background-color: hsl(195, 85%, 95%);
  color: hsl(195, 85%, 38%);
}

[data-theme="dark"] .badge-status-processing,
[data-theme="dark"] .badge-status-processed {
  background-color: rgba(14, 165, 233, 0.15);
  color: hsl(195, 85%, 65%);
}

.badge-status-failed,
.badge-status-cancelled {
  background-color: var(--danger-bg);
  color: var(--danger);
}

.history-no-records td {
  text-align: center;
  color: var(--text-muted);
  padding: 32px !important;
}

.history-action-btn {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition);
}

.history-action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* User Panel Status Badges Custom Redesign */
.user-panel-container .user-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.user-panel-container .user-status-badge.status-completed {
  background-color: var(--success-bg) !important;
  color: var(--success) !important;
}

.user-panel-container .user-status-badge.status-pending {
  background-color: hsl(45, 90%, 95%) !important;
  color: hsl(45, 90%, 35%) !important;
}

[data-theme="dark"] .user-panel-container .user-status-badge.status-pending {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: hsl(45, 90%, 65%) !important;
}

.user-panel-container .user-status-badge.status-processing {
  background-color: hsl(195, 85%, 95%) !important;
  color: hsl(195, 85%, 38%) !important;
}

[data-theme="dark"] .user-panel-container .user-status-badge.status-processing {
  background-color: rgba(14, 165, 233, 0.15) !important;
  color: hsl(195, 85%, 65%) !important;
}

.user-panel-container .user-status-badge.status-danger {
  background-color: var(--danger-bg) !important;
  color: var(--danger) !important;
}

/* ── Custom Date Picker ─────────────────────────────────────────────────────── */
.cdp-popup {
  width: 242px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
  overflow: hidden;
  font-family: var(--font-main);
  user-select: none;
}

.cdp-head {
  background: #4b1684;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.cdp-title {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

.cdp-nav {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cdp-nav:hover {
  background: rgba(255,255,255,0.32);
}

.cdp-daynames {
  background: #3a0f6b;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px 6px 4px;
}

.cdp-daynames span {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 0;
}

.cdp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px 6px 10px;
  gap: 2px;
}

.cdp-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12.5px;
  color: #333;
  cursor: pointer;
  transition: background 0.12s;
}

.cdp-cell:hover {
  background: #ede4fb;
}

.cdp-cell.cdp-other {
  color: #bbb;
  cursor: default;
}

.cdp-cell.cdp-other:hover {
  background: transparent;
}

.cdp-cell.cdp-today {
  border: 2px solid #1976d2;
  color: #1976d2;
  font-weight: 700;
}

.cdp-cell.cdp-today:hover {
  background: #e3f2fd;
}

.cdp-cell.cdp-sel {
  background: #4b1684;
  color: #fff;
  font-weight: 700;
  border: 2px solid #4b1684;
}

.cdp-cell.cdp-sel:hover {
  background: #3a0f6b;
}

.cdp-cell.cdp-today.cdp-sel {
  background: #4b1684;
  border-color: #4b1684;
  color: #fff;
}