* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #e6ebf2;
  --text: #172033;
  --muted: #738099;
  --primary: #2458d3;
  --primary-dark: #173f9f;
  --sidebar: #101827;
  --sidebar-soft: #172236;
  --success: #16a36a;
  --danger: #d74343;
  --shadow: 0 14px 40px rgba(30, 47, 80, .08);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}


/* LOGIN */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 10% 20%, #dce8ff 0, transparent 35%),
    radial-gradient(circle at 90% 80%, #dfe9ff 0, transparent 35%),
    #f5f8ff;
}

.login-shell {
  width: min(980px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(21, 44, 91, .16);
}

.login-brand {
  padding: 60px;
  background:
    linear-gradient(145deg, rgba(9, 25, 55, .96), rgba(28, 72, 166, .96));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5591ff, #1c59dc);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(28, 89, 220, .4);
}

.brand-badge.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

.login-brand h1 {
  margin: 38px 0 0;
  font-size: 44px;
  line-height: 1;
}

.login-brand h2 {
  margin: 8px 0 18px;
  font-size: 25px;
  font-weight: 500;
  color: #b9d0ff;
}

.login-brand p {
  color: #cbd8ef;
  line-height: 1.7;
  max-width: 360px;
}

.security-note {
  margin-top: 40px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #bcd0f5;
}

.security-note span {
  color: #4de3a3;
}

.login-card {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.login-header h2 {
  margin: 0;
  font-size: 32px;
}

.login-header p {
  color: var(--muted);
  margin: 10px 0 32px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  outline: none;
  background: #fbfcfe;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 88, 211, .11);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 75px;
}

.password-wrap button {
  position: absolute;
  right: 9px;
  top: 15px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.primary-btn {
  border: 0;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.error-box {
  padding: 11px 13px;
  margin-bottom: 15px;
  border-radius: 9px;
  background: #fff0f0;
  color: #b52e2e;
  font-size: 13px;
}

.login-footer {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aab2bf;
}

.dot.online {
  background: var(--success);
}


/* DASHBOARD */

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: var(--sidebar);
  color: white;
  min-height: 100vh;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 25px;
}

.sidebar-brand strong {
  display: block;
  font-size: 13px;
}

.sidebar-brand span {
  color: #8191ae;
  font-size: 11px;
}

nav {
  flex: 1;
}

.nav-title {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #596984;
  margin: 22px 12px 8px;
}

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #aab6ca;
  padding: 11px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 2px 0;
  font-size: 13px;
}

.nav-item:hover,
.nav-item.active {
  background: var(--sidebar-soft);
  color: white;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 #4f84ff;
}

.sidebar-footer {
  padding: 12px 6px 0;
}

.server-small {
  padding: 12px;
  border: 1px solid #27354c;
  border-radius: 12px;
  font-size: 10px;
  color: #8090aa;
}

.server-small strong {
  display: block;
  color: #57dba5;
  margin: 4px 0 0 18px;
}

.main {
  min-width: 0;
}

.topbar {
  height: 88px;
  padding: 0 34px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
  font-weight: 800;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 22px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-info {
  text-align: right;
}

.admin-info strong {
  display: block;
  font-size: 12px;
}

.admin-info span {
  color: var(--muted);
  font-size: 9px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e5edff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.logout-btn {
  border: 1px solid var(--border);
  background: white;
  border-radius: 9px;
  padding: 8px 12px;
  cursor: pointer;
  color: #5f6c82;
}

#overviewContent,
#placeholderContent {
  padding: 32px;
}

.welcome-card {
  background:
    linear-gradient(120deg, #173d9d, #265fd7);
  color: white;
  border-radius: 18px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.welcome-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #b8d0ff;
  font-weight: 800;
}

.welcome-card h2 {
  margin: 7px 0;
  font-size: 25px;
}

.welcome-card p {
  margin: 0;
  color: #d8e4ff;
  font-size: 13px;
}

.server-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
}

.server-status small {
  display: block;
  color: #bcd1fb;
  font-size: 9px;
}

.server-status strong {
  color: #5aefaf;
}

.pulse {
  width: 11px;
  height: 11px;
  background: #40dda1;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(64,221,161,.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-top: 20px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 22px rgba(30, 47, 80, .035);
}

.stat-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  font-size: 18px;
  margin: 8px 0 3px;
  color: var(--success);
}

.stat-card small {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 22px rgba(30, 47, 80, .035);
}

.panel h3 {
  margin: 0;
}

.flow {
  text-align: center;
  padding-top: 20px;
}

.flow-box {
  border: 1px solid #dce5f2;
  background: #f8faff;
  border-radius: 11px;
  padding: 11px;
  font-size: 11px;
}

.flow-box strong,
.flow-box span {
  display: block;
}

.flow-box span {
  color: var(--muted);
  margin-top: 3px;
}

.main-flow {
  border-color: #9ebcff;
  background: #edf3ff;
}

.flow-arrow {
  color: #9aabc3;
  margin: 7px;
}

.flow-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.security-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.security-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 12px;
}

.security-list span {
  color: var(--success);
  margin-right: 8px;
  font-weight: 800;
}

.placeholder {
  min-height: 400px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.placeholder-icon {
  width: 70px;
  height: 70px;
  background: #edf3ff;
  color: var(--primary);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.placeholder h2 {
  margin-bottom: 4px;
}

.placeholder p {
  color: var(--muted);
}


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

  .login-brand {
    display: none;
  }

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

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

  .nav-title {
    display: none;
  }

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

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

/* SUPPLIER IRS MODULE */

.supplier-page {
  padding: 32px;
}

.supplier-hero {
  border-radius: 18px;
  padding: 27px 30px;
  background: linear-gradient(120deg, #173d9d, #2c65df);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.supplier-hero .eyebrow {
  color: #b9ceff;
}

.supplier-hero h2 {
  margin: 6px 0;
  font-size: 25px;
}

.supplier-hero p {
  margin: 0;
  color: #dce6ff;
  font-size: 13px;
}

.supplier-online {
  padding: 13px 18px;
  border-radius: 13px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  gap: 12px;
  align-items: center;
}

.supplier-online small {
  display: block;
  color: #bcd1fb;
  font-size: 9px;
}

.supplier-online strong {
  display: block;
  margin-top: 3px;
}

.supplier-stats {
  margin-top: 20px;
}

.supplier-content-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 18px;
  margin-top: 20px;
}

.provider-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.provider-title h3 {
  margin: 3px 0 7px;
  font-size: 20px;
}

.provider-logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, #173f9f, #3976f1);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.supplier-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #e8f8f1;
  color: #12825a;
  font-size: 9px;
  font-weight: 800;
}

.provider-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.provider-details > div {
  border: 1px solid #edf0f5;
  border-radius: 11px;
  padding: 14px;
}

.provider-details span,
.provider-api span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--muted);
  text-transform: uppercase;
}

.provider-details strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.provider-api {
  margin-top: 14px;
  padding: 14px;
  background: #fafbfc;
  border: 1px solid #edf0f5;
  border-radius: 11px;
}

.provider-api code {
  display: block;
  margin-top: 6px;
  color: #42526b;
  font-size: 11px;
  word-break: break-all;
}

.supplier-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  border: 0;
  background: var(--primary);
  color: white;
}

.secondary-action {
  border: 1px solid #dce3ef;
  background: white;
  color: #52617a;
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: .6;
  cursor: wait;
}

.supplier-message {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
}

.supplier-message.success {
  background: #eaf8f2;
  color: #147652;
}

.supplier-message.error {
  background: #fff0f0;
  color: #b63838;
}

.supplier-security {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.supplier-security li {
  padding: 11px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 12px;
  color: #52617a;
}

@media (max-width: 950px) {
  .supplier-content-grid {
    grid-template-columns: 1fr;
  }
}


/* PRODUCT MANAGEMENT MODULE */

.products-page {
  padding: 32px;
}

.products-hero {
  background: linear-gradient(120deg, #173d9d, #2c65df);
  color: white;
  border-radius: 18px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.products-hero .eyebrow {
  color: #b9ceff;
}

.products-hero h2 {
  margin: 6px 0;
  font-size: 25px;
}

.products-hero p {
  margin: 0;
  color: #dce6ff;
  font-size: 13px;
}

.product-add-btn {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.13);
  color: white;
  padding: 11px 17px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
}

.product-add-btn:hover {
  background: rgba(255,255,255,.20);
}

.product-form-card {
  margin-top: 20px;
}

.product-form-title,
.product-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-form-title h3,
.product-table-header h3 {
  margin: 3px 0;
}

.product-close-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #e2e7ef;
  background: white;
  border-radius: 9px;
  font-size: 22px;
  color: #66748a;
  cursor: pointer;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
  margin-top: 22px;
}

.product-form-grid select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fbfcfe;
  outline: none;
}

.product-form-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,88,211,.11);
}

.product-form-grid input:disabled,
.product-form-grid select:disabled {
  background: #f1f3f6;
  color: #8b95a7;
  cursor: not-allowed;
}

.product-price-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: center;
  gap: 13px;
  margin-top: 4px;
  padding: 17px;
  background: #f6f9ff;
  border: 1px solid #dfe8fb;
  border-radius: 13px;
}

.product-price-preview > div:not(.price-plus) {
  padding: 5px 10px;
}

.product-price-preview span {
  display: block;
  font-size: 9px;
  letter-spacing: .8px;
  font-weight: 800;
  color: var(--muted);
}

.product-price-preview strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.price-plus {
  color: #8f9bb0;
  font-weight: 900;
}

.server-price-result {
  background: #eaf1ff;
  border-radius: 10px;
}

.server-price-result strong {
  color: var(--primary);
  font-size: 20px;
}

.product-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.product-message {
  margin-top: 15px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
}

.product-message.success {
  background: #eaf8f2;
  color: #147652;
}

.product-message.error {
  background: #fff0f0;
  color: #b63838;
}

.product-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-top: 20px;
}

.product-table-panel {
  margin-top: 20px;
}

.product-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.product-table th {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #e7ebf1;
  color: #7b8799;
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.product-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eef1f5;
  font-size: 12px;
  vertical-align: middle;
}

.product-table tbody tr:hover {
  background: #fafcff;
}

.product-name-cell strong {
  display: block;
}

.product-name-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.product-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
}

.product-status.active {
  background: #e8f8f1;
  color: #12825a;
}

.product-status.inactive {
  background: #f0f2f6;
  color: #727d8f;
}

.product-edit-btn {
  border: 1px solid #dce3ef;
  background: white;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: #45618f;
  font-size: 11px;
  font-weight: 700;
}

.product-empty {
  text-align: center;
  padding: 40px !important;
  color: var(--muted);
}

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

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

  .product-price-preview {
    grid-template-columns: 1fr;
  }

  .price-plus {
    display: none;
  }
}



/* IRS IMPORT + PRICING MODULE */

.irs-import-card {
  margin-top: 20px;
}

.import-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.import-head h3 {
  margin: 3px 0 6px;
}

.import-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.import-badge {
  padding: 7px 11px;
  border-radius: 20px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.import-guide {
  margin-top: 18px;
  padding: 13px 15px;
  background: #f7f9fc;
  border: 1px solid #e7ebf2;
  border-radius: 11px;
  color: #657187;
  font-size: 11px;
  line-height: 1.7;
}

.import-file-row {
  margin-top: 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
}

.excel-file-button {
  margin: 0;
  padding: 11px 15px;
  border-radius: 10px;
  background: #eef3ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.excel-file-info strong {
  display: block;
  font-size: 12px;
}

.excel-file-info span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-top: 19px;
}

.import-summary {
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e9edf4;
  background: #fafbfd;
}

.import-summary span {
  display: block;
  font-size: 9px;
  letter-spacing: .8px;
  font-weight: 800;
}

.import-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.import-summary.new strong {
  color: #2563d9;
}

.import-summary.update strong {
  color: #c17b16;
}

.import-summary.same strong {
  color: #18845d;
}

.import-summary.error strong {
  color: #c43d3d;
}

.preview-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.preview-meta strong {
  color: var(--text);
}

.import-action {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 900;
}

.import-action.new {
  background: #eaf1ff;
  color: #2458d3;
}

.import-action.update {
  background: #fff5df;
  color: #a96708;
}

.import-action.same {
  background: #eaf8f2;
  color: #147652;
}

.import-action.error {
  background: #fff0f0;
  color: #b63838;
}

.import-preview-table td {
  white-space: nowrap;
}

.import-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 17px;
}

.import-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.pricing-page {
  padding: 32px;
}

.pricing-hero {
  padding: 27px 30px;
  border-radius: 18px;
  background: linear-gradient(120deg, #173d9d, #2c65df);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.pricing-hero .eyebrow {
  color: #b9ceff;
}

.pricing-hero h2 {
  margin: 6px 0;
  font-size: 25px;
}

.pricing-hero p {
  margin: 0;
  color: #dce6ff;
  font-size: 13px;
}

.pricing-provider {
  padding: 13px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
}

.pricing-provider span {
  display: block;
  color: #bcd0fa;
  font-size: 9px;
}

.pricing-provider strong {
  display: block;
  margin-top: 3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 18px;
  margin-top: 20px;
}

.markup-all-card h3 {
  margin: 3px 0 7px;
}

.markup-all-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.markup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-top: 19px;
}

.money-input {
  position: relative;
}

.money-input span {
  position: absolute;
  left: 14px;
  top: 21px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.money-input input {
  padding-left: 40px;
}

.markup-example {
  padding: 13px 15px;
  border-radius: 11px;
  background: #f6f9ff;
  border: 1px solid #dce7ff;
}

.markup-example span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.markup-example strong,
.markup-example b {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.markup-example b {
  color: var(--primary);
  font-size: 16px;
}

.markup-actions {
  margin-top: 17px;
  display: flex;
  justify-content: flex-end;
}

.pricing-rule {
  margin-top: 15px;
}

.pricing-rule > div {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}

.pricing-rule > div > span {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
}

.pricing-rule p {
  margin: 2px 0 0;
  color: #5e6a80;
  font-size: 11px;
  line-height: 1.5;
}

.pricing-warning {
  margin-top: 18px;
}

.pricing-warning strong {
  color: #2458d3;
}

.pricing-warning p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 950px) {
  .import-file-row,
  .markup-form,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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



/* PRODUCT FILTER MODULE */

.product-filter-bar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(160px, 1fr)
    minmax(160px, 1fr)
    minmax(130px, .7fr)
    auto;
  gap: 10px;
  align-items: center;
  margin: 18px 0 8px;
}

.product-filter-bar input,
.product-filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  outline: none;
}

.product-filter-bar input:focus,
.product-filter-bar select:focus {
  border-color: #3568d4;
  box-shadow: 0 0 0 3px rgba(53,104,212,.09);
}

.product-filter-search {
  position: relative;
}

.product-filter-result {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: #7a8498;
  font-size: 10px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .product-filter-bar {
    grid-template-columns:
      repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 650px) {
  .product-filter-bar {
    grid-template-columns: 1fr;
  }
}



/* FIXED SCROLL SIDEBAR V1 */

@media (min-width: 769px) {

  .dashboard {
    align-items: start;
  }


  .sidebar {
    position: sticky;
    top: 0;

    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color:
      rgba(255,255,255,.22)
      transparent;
  }


  .sidebar::-webkit-scrollbar {
    width: 6px;
  }


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


  .sidebar::-webkit-scrollbar-thumb {
    background:
      rgba(255,255,255,.20);

    border-radius: 20px;
  }


  .sidebar::-webkit-scrollbar-thumb:hover {
    background:
      rgba(255,255,255,.32);
  }


  .sidebar-footer {
    margin-top: auto;
  }

}


/* MEMBER MODULE V1 */

.members-page {
  padding: 32px;
}

.members-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px;
  border-radius: 18px;
  background:
    linear-gradient(
      120deg,
      #173d9d,
      #2c65df
    );
  color: #fff;
}

.members-hero h2 {
  margin: 6px 0;
}

.members-hero p {
  margin: 0;
  color: #dce6ff;
  font-size: 12px;
}

.member-stats {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.member-form-card,
.member-list-panel {
  margin-top: 18px;
}

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

.member-form-head h3 {
  margin: 4px 0;
}

.member-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.member-access-box {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #f8faff;
}

.member-access-box label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  font-size: 11px;
}

.member-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.member-filter-bar {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.5fr)
    minmax(140px, .7fr)
    minmax(140px, .7fr)
    auto;
  gap: 10px;
  margin: 18px 0 7px;
}

.member-filter-bar input,
.member-filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}

@media (max-width: 850px) {

  .members-page {
    padding: 18px;
  }

  .member-stats,
  .member-form-grid,
  .member-filter-bar {
    grid-template-columns: 1fr;
  }

  .members-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* MEMBER UI POLISH V2 */

/* -----------------------------------------
   FORM INPUT / SELECT
----------------------------------------- */

.member-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;

  font-size: 12px;
  font-weight: 700;
  color: #172033;
}


.member-form-grid input,
.member-form-grid select {
  width: 100%;
  height: 52px;

  padding: 0 16px;

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

  background: #fff;

  color: #172033;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  outline: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}


.member-form-grid input:focus,
.member-form-grid select:focus {
  border-color: #3165d9;

  box-shadow:
    0 0 0 3px
    rgba(49,101,217,.10);
}


.member-form-grid input:disabled {
  background: #f3f6fa;
  color: #6e7b91;
  cursor: not-allowed;
}


/* SELECT CUSTOM */

.member-form-grid select {
  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;

  padding-right: 42px;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      #71809a 50%
    ),
    linear-gradient(
      135deg,
      #71809a 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 15px) 22px;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}


/* -----------------------------------------
   LEVEL BADGE
----------------------------------------- */

.member-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 82px;

  padding: 6px 10px;

  border-radius: 999px;

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

  letter-spacing: .45px;
}


.member-level-badge.regular {
  background: #eef3ff;
  color: #365da9;
}


.member-level-badge.agen {
  background: #e9f8f1;
  color: #14835c;
}


.member-level-badge.master {
  background: #fff4df;
  color: #a76a0c;
}


.member-level-badge.distributor {
  background: #f3ebff;
  color: #7041b5;
}


/* -----------------------------------------
   STATUS BADGE
----------------------------------------- */

.member-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 82px;

  padding: 6px 10px;

  border-radius: 999px;

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

  letter-spacing: .4px;
}


.member-status-badge.active {
  background: #e7f8ef;
  color: #078755;
}


.member-status-badge.inactive {
  background: #edf1f6;
  color: #66758c;
}


.member-status-badge.suspended {
  background: #fff3dc;
  color: #ad6a00;
}


.member-status-badge.blocked {
  background: #ffebeb;
  color: #bf3333;
}


/* -----------------------------------------
   ACCESS MEMBER
----------------------------------------- */

.member-access-box {
  padding: 18px 20px;
}


.member-access-box > strong {
  margin-right: 10px;

  font-size: 13px;
}


.member-access-box label {
  min-height: 38px;

  padding: 0 13px;

  border: 1px solid #e0e6f0;
  border-radius: 10px;

  background: #fff;

  cursor: pointer;

  font-weight: 700;
}


.member-access-box input[type="checkbox"] {
  width: 16px;
  height: 16px;

  accent-color: #2860d6;

  cursor: pointer;
}


/* -----------------------------------------
   MEMBER TABLE
----------------------------------------- */

.member-list-panel .product-table td {
  vertical-align: middle;
}


.member-list-panel .product-table tbody tr {
  transition: background .15s ease;
}


.member-list-panel .product-table tbody tr:hover {
  background: #f8faff;
}


.member-list-panel small {
  color: #7b879b;
}


/* -----------------------------------------
   FORM GRID RESPONSIVE
----------------------------------------- */

@media (min-width: 900px) {

  .member-form-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 20px;
    row-gap: 18px;
  }

}


/* WALLET MODULE V1 */

.balance-page {
  padding: 32px;
}

.balance-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 27px 30px;

  border-radius: 18px;

  background:
    linear-gradient(
      120deg,
      #173d9d,
      #2c65df
    );

  color: #fff;
}

.balance-hero h2 {
  margin: 6px 0;
}

.balance-hero p {
  margin: 0;
  color: #dce6ff;
  font-size: 12px;
}

.balance-stats {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.wallet-form-card,
.wallet-list-panel,
.wallet-ledger-panel {
  margin-top: 18px;
}

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

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

.wallet-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;

  color: #172033;
  font-size: 12px;
  font-weight: 700;
}

.wallet-form-grid input,
.wallet-form-grid select,
.wallet-form-grid textarea {
  width: 100%;

  padding: 0 15px;

  border: 1px solid #d8e1ef;
  border-radius: 11px;

  background: #fff;

  font-family: inherit;
  font-size: 13px;

  outline: none;
}

.wallet-form-grid input,
.wallet-form-grid select {
  min-height: 50px;
}

.wallet-form-grid textarea {
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.wallet-reason-field {
  grid-column: 1 / -1;
}

.wallet-preview {
  display: grid;

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

  align-items: center;

  gap: 20px;

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

  border: 1px solid #dce6f6;
  border-radius: 13px;

  background: #f7f9ff;
}

.wallet-preview span {
  display: block;

  color: #748198;

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

  letter-spacing: .7px;
}

.wallet-preview strong {
  display: block;

  margin-top: 4px;

  color: #173d9d;

  font-size: 20px;
}

.wallet-arrow {
  color: #8a96aa;
  font-size: 22px;
}

.wallet-negative {
  color: #bf3333 !important;
}

.wallet-filter-bar {
  display: grid;

  grid-template-columns:
    minmax(240px, 1.5fr)
    minmax(140px, .7fr)
    minmax(140px, .7fr)
    auto;

  gap: 10px;

  margin: 18px 0 8px;
}

.wallet-filter-bar input,
.wallet-filter-bar select {
  min-height: 42px;

  padding: 0 13px;

  border: 1px solid #dce3ee;
  border-radius: 10px;

  background: #fff;
}

.wallet-money-cell {
  color: #078755;
  font-weight: 800;
}

.wallet-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wallet-action-btn {
  padding: 7px 10px;

  border: 1px solid #d8e1ef;
  border-radius: 8px;

  background: #fff;
  color: #31538d;

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

  cursor: pointer;
}

.wallet-action-btn.deposit {
  border-color: #cfe6da;
  background: #ebf8f1;
  color: #087d51;
}

.ledger-type {
  display: inline-flex;

  padding: 5px 9px;

  border-radius: 999px;

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

.ledger-type.deposit {
  background: #e8f8ef;
  color: #087d51;
}

.ledger-type.adjustment {
  background: #fff3dc;
  color: #a86808;
}

.ledger-type.reserve,
.ledger-type.capture {
  background: #edf3ff;
  color: #315db0;
}

.ledger-type.release,
.ledger-type.refund {
  background: #f2edff;
  color: #7041b5;
}

.ledger-credit {
  color: #078755;
  font-weight: 800;
}

.ledger-debit {
  color: #bd3838;
  font-weight: 800;
}

@media (max-width: 900px) {

  .balance-page {
    padding: 18px;
  }

  .balance-stats,
  .wallet-form-grid,
  .wallet-filter-bar {
    grid-template-columns: 1fr;
  }

  .wallet-reason-field {
    grid-column: auto;
  }

  .balance-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* WALLET PAYMENT METHOD V2 */

#walletReasonSelect {
  cursor: pointer;
}

#walletReasonManualWrap {
  grid-column: 1 / -1;
}

#walletReasonManual {
  min-height: 50px;
}


/* TRANSACTION MODULE V1 */

.transactions-page {
  padding: 32px;
}

.transaction-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 27px 30px;

  border-radius: 18px;

  background:
    linear-gradient(
      120deg,
      #173d9d,
      #2c65df
    );

  color: #fff;
}

.transaction-hero h2 {
  margin: 6px 0;
}

.transaction-hero p {
  margin: 0;

  color: #dce6ff;

  font-size: 12px;
}

.transaction-live {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;

  border: 1px solid
    rgba(255,255,255,.18);

  border-radius: 999px;

  background:
    rgba(255,255,255,.08);

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

.transaction-live span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #47e697;

  box-shadow:
    0 0 0 5px
    rgba(71,230,151,.13);
}

.transaction-stats {
  display: grid;

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

  gap: 16px;

  margin-top: 18px;
}

.transaction-list-panel,
.transaction-detail-card {
  margin-top: 18px;
}

.transaction-filter-bar {
  display: grid;

  grid-template-columns:
    minmax(260px, 1fr)
    minmax(170px, .35fr)
    auto;

  gap: 10px;

  margin: 18px 0 8px;
}

.transaction-filter-bar input,
.transaction-filter-bar select {
  min-height: 42px;

  padding: 0 13px;

  border: 1px solid #dce3ee;
  border-radius: 10px;

  background: #fff;

  font-size: 12px;
}

.trx-id-cell strong,
.trx-id-cell span {
  display: block;
}

.trx-id-cell span {
  margin-top: 3px;

  color: #7b879b;

  font-size: 9px;
}

.trx-price {
  color: #173d9d;
  font-weight: 800;
}

.trx-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 82px;

  padding: 6px 9px;

  border-radius: 999px;

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

.trx-status.success {
  background: #e6f8ef;
  color: #078755;
}

.trx-status.failed,
.trx-status.cancelled {
  background: #ffebeb;
  color: #bd3434;
}

.trx-status.pending,
.trx-status.processing,
.trx-status.reserved,
.trx-status.received,
.trx-status.validating {
  background: #fff3dc;
  color: #a86a08;
}

.trx-status.refunded {
  background: #f0eaff;
  color: #7041b5;
}

.trx-status.unknown {
  background: #edf1f6;
  color: #65738a;
}

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

.transaction-detail-grid {
  display: grid;

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

  gap: 12px;

  margin-top: 18px;
}

.transaction-detail-grid > div {
  min-height: 78px;

  padding: 13px 14px;

  border: 1px solid #e4e9f2;
  border-radius: 11px;

  background: #f9fbfe;
}

.transaction-detail-grid span {
  display: block;

  color: #78849a;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .6px;
}

.transaction-detail-grid strong {
  display: block;

  margin-top: 6px;

  font-size: 12px;

  word-break: break-word;
}

.transaction-event-title {
  margin-top: 25px;
}

.transaction-event-title h3 {
  margin: 4px 0;
}

.transaction-event-list {
  margin-top: 14px;
}

.transaction-event {
  position: relative;

  display: flex;
  gap: 12px;

  padding: 0 0 20px;
}

.transaction-event:not(:last-child)::before {
  content: '';

  position: absolute;

  left: 5px;
  top: 13px;
  bottom: 0;

  width: 1px;

  background: #dce4f1;
}

.transaction-event-dot {
  position: relative;

  flex: 0 0 11px;

  width: 11px;
  height: 11px;

  margin-top: 4px;

  border-radius: 50%;

  background: #2b62d6;
}

.transaction-event strong {
  display: block;

  font-size: 11px;
}

.transaction-event small {
  display: block;

  margin-top: 3px;

  color: #7b879a;

  font-size: 9px;
}

.transaction-event p {
  margin: 5px 0 0;

  color: #536077;

  font-size: 10px;
}

.transaction-event-empty {
  padding: 18px;

  text-align: center;

  color: #7c8799;

  font-size: 11px;
}

@media (max-width: 1050px) {

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

@media (max-width: 700px) {

  .transactions-page {
    padding: 18px;
  }

  .transaction-stats,
  .transaction-detail-grid,
  .transaction-filter-bar {
    grid-template-columns: 1fr;
  }

  .transaction-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==============================================
   LCD_MONITOR_DASHBOARD_V21
   ============================================== */

.lcd-monitor-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;

  padding: 12px 14px;

  margin: 2px 0;

  border-radius: 10px;

  color: #aeb8ca;

  text-decoration: none;

  font-size: 14px;

  transition:
    background .18s ease,
    color .18s ease;
}

.lcd-monitor-nav-link:hover {
  background: rgba(65,111,220,.16);
  color: #fff;
}

.lcd-monitor-nav-icon {
  width: 18px;
  text-align: center;
  color: #62a0ff;
}

.lcd-monitor-live-dot {
  margin-left: auto;

  width: 7px;
  height: 7px;

  background: #26c281;

  border-radius: 50%;

  box-shadow:
    0 0 0 4px
    rgba(38,194,129,.12);
}


.lcd-monitor-dashboard {
  margin-top: 20px;

  padding: 20px;

  border:
    1px solid #dfe6f1;

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8faff 100%
    );

  box-shadow:
    0 10px 30px
    rgba(28,51,92,.06);
}


.lcd-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 16px;
}


.lcd-monitor-head h3 {
  margin: 4px 0 3px;

  font-size: 18px;
}


.lcd-monitor-head p {
  margin: 0;

  color: #7e8aa0;

  font-size: 12px;
}


.lcd-monitor-eyebrow {
  color: #356be8;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .12em;
}


.lcd-monitor-head-right {
  display: flex;

  align-items: center;

  gap: 10px;
}


.lcd-health-badge {
  padding: 8px 11px;

  border-radius: 20px;

  font-size: 11px;

  font-weight: 800;
}


.lcd-health-badge.normal {
  background: #eaf9f2;
  color: #148b59;
}


.lcd-health-badge.warning {
  background: #fff3cf;
  color: #a87300;
}


.lcd-health-badge.critical {
  background: #ffe5e8;
  color: #bf2635;
}


.lcd-open-monitor {
  padding: 9px 12px;

  border-radius: 9px;

  background: #205ccc;

  color: #fff;

  text-decoration: none;

  font-size: 11px;

  font-weight: 700;
}


.lcd-health-grid {
  display: grid;

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

  gap: 9px;
}


.lcd-health-card {
  padding: 13px;

  border:
    1px solid #e3e8f1;

  border-radius: 11px;

  background: #fff;
}


.lcd-health-card span {
  display: block;

  color: #7e899e;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: .07em;
}


.lcd-health-card strong {
  display: block;

  margin: 7px 0 3px;

  font-size: 17px;
}


.lcd-health-card small {
  color: #8b96aa;

  font-size: 10px;
}


.lcd-ping-panel {
  margin-top: 14px;

  overflow: hidden;

  border-radius: 12px;

  background: #0d1728;

  border:
    1px solid #1c2940;
}


.lcd-ping-title {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  padding: 11px 14px;

  border-bottom:
    1px solid
    rgba(255,255,255,.07);
}


.lcd-ping-title strong {
  display: block;

  margin-top: 2px;

  color: #eef4ff;

  font-size: 12px;
}


.lcd-ping-running {
  color: #48d394;

  font-size: 10px;

  font-weight: 800;
}


.lcd-ping-stream {
  height: 190px;

  overflow-y: auto;

  padding: 8px 0;

  font-family:
    Consolas,
    "Courier New",
    monospace;

  font-size: 11px;

  line-height: 1.55;
}


.lcd-ping-line {
  padding: 4px 13px;

  color: #6cdda6;
}


.lcd-ping-line span {
  color: #72829e;
}


.lcd-ping-line.warning {
  color: #ffd167;
}


.lcd-ping-line.critical {
  color: #ff7a83;
}


.lcd-ping-line.info {
  color: #85a9e8;
}


@media (max-width: 1250px) {

  .lcd-health-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      );
  }
}


@media (max-width: 760px) {

  .lcd-monitor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lcd-monitor-head-right {
    width: 100%;
    justify-content: space-between;
  }

  .lcd-health-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }
}


/* ==============================================
   LCD_MONITOR_DASHBOARD_V24
   ============================================== */

.lcd-monitor-nav-link {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:12px 14px;
  margin:2px 0;
  border-radius:12px;
  color:#b5c0d4;
  text-decoration:none;
  font-size:14px;
  transition:all .18s ease;
}
.lcd-monitor-nav-link:hover {
  background:linear-gradient(90deg, rgba(57,104,233,.18), rgba(57,104,233,.08));
  color:#fff;
}
.lcd-monitor-nav-icon {
  width:18px;
  text-align:center;
  color:#63a0ff;
}
.lcd-monitor-live-dot {
  margin-left:auto;
  width:8px;
  height:8px;
  background:#2bc67d;
  border-radius:50%;
  box-shadow:0 0 0 5px rgba(43,198,125,.12);
}

.lcd-monitor-dashboard {
  margin-top:22px;
  padding:24px;
  border:1px solid #e1e9f5;
  border-radius:22px;
  background:
    radial-gradient(circle at top right, rgba(61,120,255,.08), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59,213,160,.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:0 18px 45px rgba(22,40,84,.07);
}

.lcd-monitor-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.lcd-monitor-head h3 {
  margin:6px 0 6px;
  font-size:20px;
  line-height:1.25;
}
.lcd-monitor-head p {
  margin:0;
  color:#71809b;
  font-size:13px;
}
.lcd-monitor-eyebrow {
  color:#356be8;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}
.lcd-monitor-head-right {
  display:flex;
  align-items:center;
  gap:12px;
}
.lcd-health-badge {
  padding:10px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
}
.lcd-health-badge.normal {
  background:#e9f9f0;
  color:#128953;
}
.lcd-health-badge.warning {
  background:#fff3cf;
  color:#9a6c00;
}
.lcd-health-badge.critical {
  background:#ffe5e8;
  color:#c52d3f;
}
.lcd-open-monitor {
  padding:11px 15px;
  border-radius:12px;
  background:linear-gradient(135deg, #376cf0, #2457cd);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  box-shadow:0 10px 20px rgba(53,104,232,.18);
}

.lcd-health-grid {
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:12px;
}
.lcd-health-card {
  position:relative;
  padding:16px;
  border:1px solid #e7edf6;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.lcd-health-card::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  opacity:.95;
}
.lcd-health-card.tone-blue::before   { background:linear-gradient(90deg,#2b7cff,#7bb2ff); }
.lcd-health-card.tone-indigo::before { background:linear-gradient(90deg,#5c6bff,#90a0ff); }
.lcd-health-card.tone-green::before  { background:linear-gradient(90deg,#1dbb72,#82e0b5); }
.lcd-health-card.tone-cyan::before   { background:linear-gradient(90deg,#2aa9c6,#88dbe9); }
.lcd-health-card.tone-orange::before { background:linear-gradient(90deg,#ff9548,#ffc07e); }
.lcd-health-card.tone-gold::before   { background:linear-gradient(90deg,#d4a017,#f2d47e); }

.lcd-health-card span {
  display:block;
  color:#77859d;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
}
.lcd-health-card strong {
  display:block;
  margin:10px 0 4px;
  font-size:18px;
  color:#1b2940;
}
.lcd-health-card small {
  color:#8a96aa;
  font-size:11px;
}

.lcd-security-inline {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.lcd-inline-item {
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.85);
  border:1px solid #e7edf6;
  box-shadow:0 8px 20px rgba(28,51,92,.04);
}
.lcd-inline-item span {
  display:block;
  color:#7a88a0;
  font-size:11px;
  font-weight:700;
}
.lcd-inline-item strong {
  display:block;
  margin-top:8px;
  font-size:22px;
  color:#1b2940;
}

.lcd-ping-panel {
  margin-top:16px;
  overflow:hidden;
  border-radius:18px;
  background:linear-gradient(180deg,#0b1730 0%, #081227 100%);
  border:1px solid #172743;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.lcd-ping-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.lcd-ping-title strong {
  display:block;
  margin-top:4px;
  color:#eef4ff;
  font-size:14px;
}
.lcd-ping-running {
  color:#46d390;
  font-size:12px;
  font-weight:800;
}
.lcd-ping-stream {
  overflow-y:auto;
  padding:10px 0;
  font-family:Consolas,"Courier New",monospace;
  font-size:11px;
  line-height:1.65;
}
.lcd-ping-line {
  padding:4px 16px;
  color:#67e0a5;
}
.lcd-ping-line span {
  color:#8191ac;
}
.lcd-ping-line.warning {
  color:#ffd46c;
}
.lcd-ping-line.critical {
  color:#ff7a87;
}
.lcd-ping-line.info {
  color:#88a9e7;
}

@media (max-width:1280px) {
  .lcd-health-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lcd-security-inline { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .lcd-monitor-head {
    flex-direction:column;
    align-items:flex-start;
  }
  .lcd-monitor-head-right {
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
  }
  .lcd-health-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lcd-security-inline { grid-template-columns:1fr; }
}

/* ==================================================
   LCD CONSOLE LIVE MONITOR V2.5
   ================================================== */

.lcd-monitor-dashboard {
  display:none !important;
}

.lcd-v25-monitor {
  margin-top:22px;
  overflow:hidden;
  border:1px solid #dde6f3;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 45px rgba(29,52,92,.07);
}

.lcd-v25-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px 26px;
  background:
    radial-gradient(circle at 86% 20%,rgba(61,122,255,.20),transparent 28%),
    radial-gradient(circle at 72% 100%,rgba(34,197,139,.12),transparent 25%),
    linear-gradient(135deg,#0b1831,#10254a 58%,#173c78);
  color:#fff;
}

.lcd-v25-kicker {
  color:#74a7ff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}

.lcd-v25-hero h2 {
  margin:7px 0 5px;
  font-size:24px;
  color:#fff;
}

.lcd-v25-hero p {
  margin:0;
  color:#b7c5dc;
  font-size:13px;
}

.lcd-v25-hero-actions {
  display:flex;
  align-items:center;
  gap:12px;
}

.lcd-v25-status {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:138px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.13);
  backdrop-filter:blur(8px);
}

.lcd-v25-status .status-dot {
  width:11px;
  height:11px;
  border-radius:50%;
}

.lcd-v25-status small {
  display:block;
  color:#aebed7;
  font-size:8px;
  font-weight:800;
  letter-spacing:.1em;
}

.lcd-v25-status strong {
  display:block;
  margin-top:2px;
  color:#fff;
  font-size:13px;
}

.lcd-v25-status.normal .status-dot {
  background:#35db92;
  box-shadow:0 0 0 5px rgba(53,219,146,.14);
}

.lcd-v25-status.warning .status-dot {
  background:#ffc84a;
  box-shadow:0 0 0 5px rgba(255,200,74,.14);
}

.lcd-v25-status.critical .status-dot {
  background:#ff5867;
  box-shadow:0 0 0 5px rgba(255,88,103,.14);
}

.lcd-v25-open {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 17px;
  border-radius:13px;
  background:#3472ec;
  color:#fff;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(10,25,57,.28);
}

.lcd-v25-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  padding:20px 22px 12px;
  background:#f7f9fd;
}

.lcd-v25-card {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:102px;
  padding:15px;
  border-radius:16px;
  background:#fff;
  border:1px solid #e2e8f2;
  box-shadow:0 6px 18px rgba(28,48,82,.04);
}

.lcd-v25-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:12px;
  font-size:10px;
  font-weight:900;
}

.lcd-v25-card.blue .lcd-v25-icon {
  background:#eaf2ff;
  color:#3379ea;
}

.lcd-v25-card.purple .lcd-v25-icon {
  background:#efedff;
  color:#6c62e7;
}

.lcd-v25-card.green .lcd-v25-icon,
.lcd-v25-card.security .lcd-v25-icon {
  background:#e8f9f1;
  color:#159361;
}

.lcd-v25-card.cyan .lcd-v25-icon {
  background:#e8f8fb;
  color:#248ca4;
}

.lcd-v25-card.orange .lcd-v25-icon {
  background:#fff1e5;
  color:#e5792d;
}

.lcd-v25-card span {
  display:block;
  color:#738099;
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
}

.lcd-v25-card strong {
  display:block;
  margin:6px 0 3px;
  color:#17243a;
  font-size:17px;
}

.lcd-v25-card small {
  color:#8895aa;
  font-size:10px;
}

.lcd-v25-security-strip {
  display:flex;
  align-items:center;
  gap:25px;
  padding:12px 24px;
  background:#f7f9fd;
  border-top:1px solid #edf1f6;
  color:#65748e;
  font-size:11px;
}

.lcd-v25-security-strip > div {
  display:flex;
  align-items:center;
  gap:7px;
}

.lcd-v25-security-strip strong {
  color:#17243a;
  font-size:13px;
}

.green-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#20ba75;
}

.lcd-v25-audit-note {
  margin-left:auto;
  color:#8a96aa;
}

.lcd-v25-terminal {
  margin:0 22px 22px;
  overflow:hidden;
  border-radius:15px;
  background:#09162b;
  border:1px solid #142744;
}

.lcd-v25-terminal-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:11px 16px;
  background:#0c1c35;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.lcd-v25-terminal-head span {
  display:block;
  color:#5d91ee;
  font-size:9px;
  font-weight:800;
  letter-spacing:.11em;
}

.lcd-v25-terminal-head strong {
  display:block;
  margin-top:2px;
  color:#f0f5ff;
  font-size:12px;
}

.lcd-v25-running {
  color:#45d590;
  font-size:10px;
  font-weight:800;
}

.lcd-v25-ping {
  height:148px;
  overflow:hidden;
  padding:8px 0;
  font-family:Consolas,"Courier New",monospace;
  font-size:10.5px;
  line-height:1.55;
}

.lcd-v25-ping-line {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:26px;
  padding:3px 16px;
  color:#5fe0a2;
  white-space:nowrap;
}

.lcd-v25-ping-line span {
  color:#7486a5;
}

.lcd-v25-ping-line b {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  border-radius:50%;
  background:rgba(50,207,139,.13);
  color:#4bdd95;
  font-size:9px;
}

.lcd-v25-ping-line.warning {
  color:#ffd168;
}

.lcd-v25-ping-line.warning b {
  background:rgba(255,209,104,.13);
  color:#ffd168;
}

.lcd-v25-ping-line.critical {
  color:#ff7785;
}

.lcd-v25-ping-line.critical b {
  background:rgba(255,119,133,.13);
  color:#ff7785;
}

.ping-info {
  padding:10px 16px;
  color:#7589ac;
}

@media(max-width:1280px) {
  .lcd-v25-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px) {
  .lcd-v25-hero {
    flex-direction:column;
    align-items:flex-start;
  }

  .lcd-v25-hero-actions {
    width:100%;
    flex-wrap:wrap;
  }

  .lcd-v25-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .lcd-v25-security-strip {
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  .lcd-v25-audit-note {
    margin-left:0;
  }

  .lcd-v25-ping {
    overflow-x:auto;
  }
}



/* STEP7J_SN_TABLE_V1 */

.trx-sn-cell {
  min-width: 260px;
  max-width: 380px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
}

