* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f3f5f8;
  color: #1f2a37;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4fb, #f7f9fc);
}

.login-shell {
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand-block {
  margin-bottom: 24px;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  color: #1c4f93;
}

.brand-subtitle {
  margin-top: 6px;
  color: #6b7280;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form label {
  font-size: 14px;
  font-weight: 600;
}

.login-form input {
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-size: 14px;
}

.login-form button {
  margin-top: 10px;
  padding: 12px 14px;
  background: #1c7ed6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.login-form button:hover {
  background: #1864ab;
}

.message {
  min-height: 20px;
  font-size: 14px;
  margin-top: 6px;
}

.message.error {
  color: #c92a2a;
}

.message.success {
  color: #2b8a3e;
}

.dashboard-body {
  min-height: 100vh;
  background: #eef2f7;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 18px 24px;
  border-bottom: 1px solid #dce3ea;
}

.logo-title {
  font-size: 24px;
  font-weight: 700;
  color: #1c4f93;
}

.logo-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logout-btn {
  padding: 10px 14px;
  border: none;
  background: #e03131;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.dashboard-main {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #dde4ec;
}

.crm-body {
  margin: 0;
  background: #eef2f6;
  color: #20324a;
}

.crm-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.crm-sidebar {
  background: #f7f9fc;
  border-right: 1px solid #d9e2ec;
  padding: 18px;
}

.sidebar-brand {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.sidebar-logo {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.sidebar-sub {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
}

.funnel-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 3px solid transparent;
  font-size: 16px;
}

.funnel-card strong {
  font-size: 32px;
  font-weight: 700;
}

.funnel-contact { border-color: #83e6ea; }
.funnel-prospect { border-color: #e26a33; }
.funnel-lead { border-color: #e59a3b; }
.funnel-offer { border-color: #7b4300; }
.funnel-lost { border-color: #ef4444; }
.funnel-order { border-color: #09be2b; }
.funnel-delivered { border-color: #2340bf; }

.crm-main {
  padding: 18px;
}

.crm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.top-title {
  font-size: 34px;
  font-weight: 500;
  color: #254b87;
}

.top-subtitle {
  margin-top: 6px;
  color: #6b7280;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn-danger {
  background: #e03131;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.crm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.crm-tab {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  color: #305e9b;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crm-tab.active {
  background: #e8f1fc;
  border-color: #8fb8ef;
}

.crm-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.filter-box {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 12px;
}

.filter-box label {
  display: block;
  font-size: 13px;
  color: #5f6c7b;
  margin-bottom: 8px;
}

.filter-box select {
  width: 100%;
  border: 1px solid #d5dde7;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 18px;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 500;
}

.large-panel {
  min-height: 420px;
}

.funnel-visual {
  margin-top: 10px;
  padding: 10px 40px 0;
}

.funnel-row {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10233f;
  font-weight: 700;
  margin: 0 auto;
}

.funnel-row span {
  font-size: 20px;
}

.funnel-contact-bg { background: #83e6ea; }
.funnel-prospect-bg { background: #e26a33; }
.funnel-lead-bg { background: #e59a3b; }
.funnel-offer-bg { background: #7b4300; color: #fff; }
.funnel-lost-bg { background: #ef4444; color: #fff; }
.funnel-order-bg { background: #09be2b; color: #fff; }
.funnel-delivered-bg { background: #2340bf; color: #fff; }

.funnel-row {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0;
  transition: width 0.35s ease;
  min-width: 120px;
  max-width: 100%;
}

.funnel-row span {
  font-size: 20px;
}

.stat-list {
  display: grid;
  gap: 12px;
}

.stat-item,
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
}

.stat-item strong,
.mini-row strong {
  font-size: 18px;
}

.mini-table {
  display: grid;
  gap: 10px;
}

@media (max-width: 1200px) {
  .crm-layout {
    grid-template-columns: 1fr;
  }

  .crm-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .crm-filters {
    grid-template-columns: 1fr;
  }

  .crm-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.simple-page {
  padding: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 32px;
  color: #254b87;
}

.page-header p {
  margin: 0;
  color: #6b7280;
}

.page-actions {
  display: flex;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #1c7ed6;
  color: #fff;
}

.btn-secondary {
  background: #e9eef5;
  color: #254b87;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.grid-form.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.grid-form input,
.grid-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5dde7;
  border-radius: 10px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebf2;
  font-size: 14px;
}

.data-table th {
  background: #f7f9fc;
  color: #4b6077;
}

.empty-state {
  padding: 20px;
  border: 1px dashed #c9d4e0;
  border-radius: 10px;
  background: #fafcff;
  color: #6b7280;
}

@media (max-width: 1000px) {
  .grid-form,
  .grid-form.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-form,
  .grid-form.four-col {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.inline-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-filters.wrap {
  flex-wrap: wrap;
}

.inline-filters input,
.inline-filters select {
  padding: 10px 12px;
  border: 1px solid #d5dde7;
  border-radius: 10px;
  min-width: 190px;
  background: #fff;
}

.text-link {
  color: #1c7ed6;
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.record-header {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
}

@media (max-width: 900px) {
  .panel-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-filters {
    width: 100%;
    flex-wrap: wrap;
  }
}

.followup-card {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 12px 14px;
}

.followup-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.followup-sub {
  font-size: 13px;
  color: #5f6c7b;
  margin-bottom: 6px;
}

.followup-stage {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #254b87;
  background: #e8f1fc;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.followup-note {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}

.btn-small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-link {
  background: none;
  border: none;
  color: #c92a2a;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.qr-card {
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}

.qr-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.qr-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f3b6d;
}

.qr-card-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.qr-status {
  height: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.qr-status.active {
  background: #e8fff0;
  color: #15803d;
}

.qr-status.inactive {
  background: #fff1f2;
  color: #be123c;
}

.qr-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.qr-preview {
  min-height: 180px;
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-meta {
  font-size: 13px;
  color: #334155;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.qr-link-row a {
  word-break: break-all;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.data-table input,
.data-table select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d5dde7;
  border-radius: 8px;
  background: #fff;
}

.report-header-note {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 14px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.report-stat {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.report-stat span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

.report-stat strong {
  font-size: 24px;
  color: #0f172a;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.crm-table th,
.crm-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.crm-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.audit-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.audit-table td,
.audit-table th {
  white-space: nowrap;
}

.audit-details-row td {
  background: #f8fafc;
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.audit-detail-box {
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 14px;
}

.audit-detail-box strong {
  display: block;
  margin-bottom: 8px;
}

.audit-detail-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  color: #1f2937;
}

.empty-state {
  color: #6b7280;
  padding: 8px 0;
}

.inline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-filters.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-filters label {
  margin: 0;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 6px;
}

.inline-checkbox input[type="checkbox"] {
  margin: 0;
}

.inline-checkbox span {
  line-height: 1;
}

.inline-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-filters.wrap {
  flex-wrap: wrap;
}

.inline-filters label {
  margin: 0;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 4px;
  margin: 0;
}

.inline-checkbox input[type="checkbox"] {
  margin: 0;
  width: auto;
  min-width: auto;
  flex: 0 0 auto;
}

.inline-checkbox span {
  line-height: 1;
  display: inline-block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 14px;
}

.kpi-label {
  font-size: 13px;
  color: #5f6c7b;
  margin-bottom: 8px;
}

.kpi-rate {
  font-size: 24px;
  font-weight: 700;
  color: #10233f;
  line-height: 1.1;
}

.kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 700px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.kpi-label {
  font-size: 13px;
  color: #5f6c7b;
  margin-bottom: 8px;
}

.kpi-rate {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.kpi-good {
  border-color: #b7e4c7;
  background: #f3fbf6;
}

.kpi-good .kpi-rate {
  color: #166534;
}

.kpi-mid {
  border-color: #fde68a;
  background: #fffaf0;
}

.kpi-mid .kpi-rate {
  color: #b45309;
}

.kpi-low {
  border-color: #fecaca;
  background: #fff5f5;
}

.kpi-low .kpi-rate {
  color: #b91c1c;
}

@media (max-width: 700px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.report-stat {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 14px;
}

.report-stat span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.report-stat strong {
  font-size: 24px;
  color: #10233f;
}

.report-header-note {
  margin-bottom: 12px;
  font-size: 14px;
  color: #64748b;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight-item {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 12px 14px;
  color: #10233f;
}

.activity-history-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-row {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.activity-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.activity-time {
  color: #64748b;
  white-space: nowrap;
}

.activity-user {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.activity-role {
  color: #475569;
  background: #f8fafc;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.activity-action {
  color: #1d4ed8;
  font-weight: 600;
  white-space: nowrap;
}

.activity-field {
  color: #7c3aed;
  white-space: nowrap;
}

.activity-change {
  color: #0f172a;
  word-break: break-word;
}

.activity-toggle {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.activity-reason {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #334155;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5ebf2;
}

.table-pagination-info {
  font-size: 13px;
  color: #5f6c7b;
}

.table-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-page-indicator {
  font-size: 13px;
  color: #334155;
  padding: 0 4px;
}

.followup-notification-strip {
  display: grid;
  grid-template-columns: 220px 220px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.followup-notification-card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 16px 18px;
}

.followup-notification-card.due {
  border-left: 6px solid #f59e0b;
}

.followup-notification-card.upcoming {
  border-left: 6px solid #2563eb;
}

.followup-notification-card.neutral {
  border-left: 6px solid #94a3b8;
}

.followup-notification-label {
  font-size: 13px;
  font-weight: 700;
  color: #5f6c7b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.followup-notification-value {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 8px;
}

.followup-notification-sub,
.followup-notification-subtext {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.followup-alert-panel {
  margin-bottom: 14px;
}

.followup-alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.followup-alert-heading {
  margin: 0 0 10px;
  font-size: 18px;
  color: #254b87;
}

.followup-alert-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.legend-pill.due {
  background: #fff7e6;
  color: #b45309;
}

.legend-pill.upcoming {
  background: #e8f1fc;
  color: #1d4ed8;
}

.notification-item {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 12px 14px;
}

.notification-item.due {
  border-left: 5px solid #f59e0b;
}

.notification-item.upcoming {
  border-left: 5px solid #2563eb;
}

.notification-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.notification-item-sub {
  font-size: 13px;
  color: #5f6c7b;
  margin-bottom: 6px;
}

.notification-item-stage {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #254b87;
  background: #e8f1fc;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.notification-item-meta {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
}

.notification-item.upcoming .notification-item-meta {
  color: #1d4ed8;
}

.notification-item-note {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}

@media (max-width: 1200px) {
  .followup-notification-strip {
    grid-template-columns: 1fr 1fr;
  }

  .followup-notification-card.neutral {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .followup-alert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .followup-notification-strip {
    grid-template-columns: 1fr;
  }
}

.admin-watch-panel {
  margin-bottom: 14px;
}

.panel-note {
  font-size: 13px;
  color: #64748b;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.compact-table th,
.compact-table td {
  white-space: nowrap;
}

.compact-table td strong {
  color: #10233f;
}

.catalog-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.compact-table th,
.compact-table td {
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .catalog-overview-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: #173c73;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 18px;
  font-weight: 700;
  color: #5f6c7b;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 18px 16px;
  color: #334155;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-page {
  max-width: 1180px;
  margin: 0 auto;
}

.faq-header h1 {
  margin-bottom: 6px;
}

.faq-panel {
  padding: 0;
  overflow: hidden;
}

.faq-intro {
  padding: 28px 28px 18px;
  border-bottom: 1px solid #e6edf5;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.faq-intro-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f1fc;
  color: #1f4f95;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-intro h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #163a70;
}

.faq-intro p {
  margin: 0;
  max-width: 760px;
  color: #5d6b7b;
  line-height: 1.7;
}

.corporate-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 28px;
}

.corporate-faq-item {
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 35, 65, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}

.corporate-faq-item:hover {
  border-color: #c6d8ee;
  box-shadow: 0 8px 20px rgba(15, 35, 65, 0.06);
}

.corporate-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #163a70;
  user-select: none;
}

.corporate-faq-item summary::-webkit-details-marker {
  display: none;
}

.corporate-faq-item[open] summary {
  background: #f8fbff;
  border-bottom: 1px solid #e6edf5;
}

.faq-toggle-icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: #e8f1fc;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #1f4f95;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.faq-toggle-icon::before {
  width: 12px;
  height: 2px;
}

.faq-toggle-icon::after {
  width: 2px;
  height: 12px;
}

.corporate-faq-item[open] .faq-toggle-icon::after {
  display: none;
}

.corporate-faq-item .faq-answer {
  padding: 18px 20px 20px;
  color: #39495a;
  line-height: 1.75;
  font-size: 15px;
}

.corporate-faq-item .faq-answer p {
  margin: 0 0 8px;
}

.corporate-faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-intro {
    padding: 22px 18px 16px;
  }

  .faq-intro h3 {
    font-size: 22px;
  }

  .corporate-faq-list {
    padding: 18px;
    gap: 12px;
  }

  .corporate-faq-item summary {
    padding: 16px;
    font-size: 16px;
  }

  .corporate-faq-item .faq-answer {
    padding: 16px;
  }
}

.corporate-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #163a70;
  cursor: pointer;
  user-select: none;
}

.corporate-faq-item summary::marker {
  content: "";
  font-size: 0;
}

.corporate-faq-item summary::-webkit-details-marker {
  display: none;
}

.corporate-faq-item summary > span:first-child {
  flex: 1 1 auto;
}

.faq-toggle-icon {
  margin-left: auto;
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: #e8f1fc;
}

.faq-item summary::after,
.corporate-faq-item summary::after {
  content: none !important;
  display: none !important;
}

.faq-item summary::marker,
.corporate-faq-item summary::marker {
  content: "";
  font-size: 0;
}

.faq-item summary::-webkit-details-marker,
.corporate-faq-item summary::-webkit-details-marker {
  display: none !important;
}

.corporate-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.corporate-faq-item summary > span:first-child {
  flex: 1 1 auto;
}

.faq-toggle-icon {
  margin-left: auto;
}

.scope-hidden {
  display: none;
}

.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.notif-bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e03131;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-dropdown {
  position: absolute;
  top: 56px;
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 35, 65, 0.12);
  z-index: 50;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf3;
}

.notif-dropdown-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
}

.notif-item {
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.notif-item.unread {
  border-left: 5px solid #2559a7;
  background: #fbfdff;
}

.notif-item:last-child {
  margin-bottom: 0;
}

.notif-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.notif-item-top strong {
  color: #173c73;
}

.notif-item-top span {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.notif-item-body {
  font-size: 13px;
  color: #445468;
  line-height: 1.5;
  margin-bottom: 10px;
}

.notif-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.notif-read-label {
  font-size: 12px;
  font-weight: 700;
  color: #5f6c7b;
}

.table-subtext {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.announcement-card {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  margin-bottom: 14px;
}

.announcement-card.unread {
  border-left: 5px solid #2559a7;
  background: #fbfdff;
}

.announcement-card:last-child {
  margin-bottom: 0;
}

.announcement-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.announcement-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #173c73;
}

.announcement-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.announcement-card-body {
  color: #39495a;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .top-actions {
    flex-wrap: wrap;
  }
}

.crm-topbar,
.top-actions,
.notif-bell-wrap {
  overflow: visible;
}

.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 35, 65, 0.12);
  z-index: 9999;
}

.crm-topbar,
.top-actions,
.notif-bell-wrap {
  overflow: visible;
}

.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bell-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.notif-bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e03131;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 35, 65, 0.12);
  z-index: 9999;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf3;
}

.notif-dropdown-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
}

.notif-item {
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.notif-item.unread {
  border-left: 5px solid #2559a7;
  background: #fbfdff;
}

.notif-item:last-child {
  margin-bottom: 0;
}

.notif-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.notif-item-top strong {
  color: #173c73;
}

.notif-item-top span {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.notif-item-body {
  font-size: 13px;
  color: #445468;
  line-height: 1.5;
  margin-bottom: 10px;
}

.notif-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.notif-read-label {
  font-size: 12px;
  font-weight: 700;
  color: #5f6c7b;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.compact-table th,
.compact-table td {
  white-space: nowrap;
}