:root{
  --orange:#c96b2c;
  --orange-dark:#aa561d;
  --blue:#2f80c9;
  --teal:#4c98a1;
  --green:#5c9f67;
  --bg:#f4f6f9;
  --card:#ffffff;
  --line:#dfe5ec;
  --line-soft:#ebeff4;
  --text:#1f2937;
  --muted:#6b7280;
  --heading:#111827;
  --shadow:0 2px 10px rgba(15,23,42,.04);
  --radius:12px;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  background:var(--bg);
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  font-size:13px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

img{
  display:block;
  max-width:100%;
}

.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.auth-wrap{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  max-width:1080px;
  width:100%;
}

.card{
  background:var(--card);
  border:1px solid var(--line-soft);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card-header{
  padding:16px 18px 0;
}

.card-header h2{
  margin:0;
  font-size:17px;
  font-weight:700;
  color:var(--heading);
}

.card-body{
  padding:18px;
}

.hero{
  padding:26px;
  background:#fff;
}

.hero h1{
  margin:0;
  font-size:28px;
  line-height:1.15;
  color:#374151;
  font-weight:800;
}

.hero p,
.muted{
  color:var(--muted);
  font-size:12px;
}

.brand-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-row img{
  height:44px;
  width:auto;
}

.field{
  display:grid;
  gap:5px;
}

.label{
  font-size:10px;
  color:var(--muted);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.input,
select,
textarea{
  width:100%;
  padding:8px 10px;
  border:1px solid #d5dde7;
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#b8c7d8;
  box-shadow:0 0 0 3px rgba(47,128,201,.08);
}

textarea{
  resize:vertical;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  min-height:32px;
  border-radius:8px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:700;
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  transition:all .15s ease;
}

.btn:hover{
  opacity:.96;
}

.btn-primary{
  background:var(--orange);
  color:#fff;
}

.btn-primary:hover{
  background:var(--orange-dark);
}

.btn-secondary{
  background:#fff;
  color:#425164;
  border-color:var(--line);
}

.btn-secondary:hover{
  background:#fafbfd;
}

.btn-view{
  background:#eef7f8;
  color:#2e6f77;
  border-color:#d8eaec;
}

.btn-view:hover{
  background:#e7f2f4;
}

.btn-download{
  background:#f7f9fb;
  color:#475569;
  border-color:var(--line);
}

.btn-download:hover{
  background:#eef2f6;
}

.btn-edit{
  background:#fff4eb;
  color:#b76427;
  border-color:#f0d8c5;
}

.btn-edit:hover{
  background:#ffeddf;
}

.btn-danger{
  background:#fff1f1;
  color:#c25353;
  border-color:#f0d0d0;
}

.btn-danger:hover{
  background:#ffe8e8;
}

.filters-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.filters-actions-left,
.filters-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

a.btn.btn-download,
.btn.btn-download {
  background: #2F80ED !important;
  color: #ffffff !important;
  border: 1px solid #2F80ED !important;
  text-decoration: none;
}

a.btn.btn-download:hover,
.btn.btn-download:hover {
  background: #1C60C7 !important;
  border-color: #1C60C7 !important;
  color: #ffffff !important;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.filters .field {
  margin: 0;
  min-width: 0;
}

.filters .label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.filters .input,
.filters select,
.filters input {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
}

.filters-actions {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .filters {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  .filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  .filters {
    grid-template-columns: 1fr;
  }

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

  .filters-actions-left,
  .filters-actions-right {
    width: 100%;
  }

  .filters-actions-right .btn-download {
    width: 100%;
    text-align: center;
  }
}
.flash{
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:12px;
  font-size:12px;
  border:1px solid transparent;
}

.flash.success{
  background:#edf9f0;
  color:#1f7a42;
  border-color:#cde7d4;
}

.flash.error{
  background:#fff2f2;
  color:#b53939;
  border-color:#efcccc;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 18px;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.brand-inline{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-inline img{
  height:38px;
  width:auto;
}

.app-title{
  font-size:17px;
  font-weight:800;
  color:var(--heading);
  line-height:1.1;
}

.top-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.tabs,
.subtabs{
  display:flex;
  gap:8px;
  padding:10px 18px 0;
  flex-wrap:wrap;
}

.tabs a,
.subtabs a{
  padding:7px 11px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
  color:#526173;
  font-size:12px;
  font-weight:700;
}

.tabs a:hover,
.subtabs a:hover{
  background:#fafbfd;
}

.tabs a.active,
.subtabs a.active{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}

.page{
  padding:12px 18px 22px;
}

.split{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.split h2{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:var(--heading);
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.stat{
  background:#fff;
  border:1px solid var(--line-soft);
  border-radius:10px;
  padding:12px;
  box-shadow:var(--shadow);
}

.stat-label{
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
}

.stat-value{
  font-size:22px;
  font-weight:800;
  margin-top:4px;
  color:var(--heading);
  line-height:1.05;
}

.filters{
  display:grid;
  grid-template-columns:2fr repeat(6,1fr) auto auto;
  gap:8px;
  margin-bottom:14px;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--line-soft);
  border-radius:10px;
  background:#fff;
}

.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

.table th,
.table td{
  padding:9px 8px;
  border-bottom:1px solid var(--line-soft);
  text-align:left;
  font-size:12px;
  vertical-align:middle;
}

.table th{
  font-size:10px;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:800;
  letter-spacing:.06em;
  background:#fafbfc;
}

.table tbody tr:hover{
  background:#fbfcfd;
}

.table td.actions{
  white-space:nowrap;
}

.stack{
  display:grid;
  gap:10px;
}

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

.full{
  grid-column:1/-1;
}

.detail-box{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow);
}

.detail-box h3{
  margin:0 0 10px 0;
  font-size:15px;
  font-weight:800;
  color:var(--heading);
}

.detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  font-size:12px;
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}

.badge.success{
  background:#edf8ef;
  color:#267744;
}

.badge.warning{
  background:#fff5e9;
  color:#b96a25;
}

.badge.info{
  background:#eef6fc;
  color:#2f80c9;
}

.badge.danger{
  background:#fff1f1;
  color:#c14f4f;
}

.edit-panel{
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:10px;
  background:#fcfcfd;
  margin-bottom:14px;
}

.edit-panel h3{
  margin-top:0;
  font-size:15px;
  font-weight:800;
}

.form-actions{
  display:flex;
  gap:8px;
  grid-column:1/-1;
  flex-wrap:wrap;
}

.charts-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.chart-card{
  border:1px solid var(--line-soft);
  border-radius:10px;
  padding:14px;
  background:#fff;
  box-shadow:var(--shadow);
}

.chart-card h3{
  margin:0 0 10px 0;
  font-size:14px;
  font-weight:800;
}

.chart-metric{
  margin-bottom:12px;
}

.chart-metric:last-child{
  margin-bottom:0;
}

.chart-metric-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}

.chart-label{
  font-size:12px;
  font-weight:600;
  color:var(--text);
}

.chart-meta{
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}

.bar{
  height:8px;
  background:#edf2f7;
  border-radius:999px;
  overflow:hidden;
}

.bar span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--orange),var(--blue));
  border-radius:999px;
}

.inline{
  display:inline-block;
}

.empty{
  text-align:center;
  color:var(--muted);
  padding:14px;
  font-size:12px;
}

hr{
  border:none;
  border-top:1px solid var(--line-soft);
  margin:16px 0;
}

@media (max-width:1050px){
  .auth-wrap,
  .stats-grid,
  .filters,
  .grid-form,
  .detail-grid,
  .charts-grid{
    grid-template-columns:1fr;
  }

  .topbar,
  .split{
    flex-direction:column;
    align-items:flex-start;
  }

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

.filters-actions-right a.btn.btn-download,
a.btn.btn-download,
.btn-download {
  background: #2F80ED !important;
  color: #FFFFFF !important;
  border: 1px solid #2F80ED !important;
  text-decoration: none !important;
}

.filters-actions-right a.btn.btn-download:hover,
a.btn.btn-download:hover,
.btn-download:hover {
  background: #1C60C7 !important;
  color: #FFFFFF !important;
  border-color: #1C60C7 !important;
}

.scope-indicator {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f5f7fa;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  font-size: 13px;
  color: #445;
  font-weight: 600;
}

.filters-actions-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #e8edf3;
}

.filters-actions-left,
.filters-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-action {
  min-width: 120px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* Primary */
button.btn.btn-primary.btn-action,
.btn.btn-primary.btn-action {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Secondary */
a.btn.btn-secondary.btn-action,
.btn.btn-secondary.btn-action {
  background: #ffffff;
  color: #4a5568;
  border: 1px solid #d9e1ea;
}

a.btn.btn-secondary.btn-action:hover,
.btn.btn-secondary.btn-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Download */
a.btn.btn-download.btn-action,
.btn.btn-download.btn-action {
  background: #2F80ED !important;
  color: #ffffff !important;
  border: 1px solid #2F80ED !important;
  box-shadow: 0 1px 2px rgba(47, 128, 237, 0.18);
}

a.btn.btn-download.btn-action:hover,
.btn.btn-download.btn-action:hover {
  background: #1C60C7 !important;
  border-color: #1C60C7 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .filters-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-actions-left,
  .filters-actions-right {
    width: 100%;
  }

  .filters-actions-left {
    flex-wrap: wrap;
  }

  .filters-actions-right .btn-action,
  .filters-actions-left .btn-action {
    width: 100%;
  }
}

.analytics-download-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}


.field-actions-inline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inline-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
  
  .analytics-download-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.field-actions-inline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 8px;
}

.analytics-download-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

a.btn.btn-download,
.btn.btn-download {
  background: #2F80ED !important;
  color: #fff !important;
  border: 1px solid #2F80ED !important;
}

a.btn.btn-download:hover,
.btn.btn-download:hover {
  background: #1C60C7 !important;
  border-color: #1C60C7 !important;
  color: #fff !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff; /* force white */
}

.stat-label {
  font-size: 12px;
  margin-top: 4px;
  color: #ffffff; /* force white */
  opacity: 1;     /* remove fading */
}
/* Color styles */
.stat-orange {
  background: linear-gradient(135deg, #d47a2a, #c5641f);
}

.stat-blue {
  background: linear-gradient(135deg, #3a7bd5, #2f80ed);
}

.stat-green {
  background: linear-gradient(135deg, #56ab2f, #3fa34d);
}

.stat-red {
  background: linear-gradient(135deg, #e05252, #c0392b);
}

.stat-dark {
  background: linear-gradient(135deg, #444, #222);
}

/* Subtle icon circle (top-right like your screenshot) */


/* GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 12px 0 18px;
}

/* CARD */
.stat-card {
  position: relative;
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

/* TEXT */
.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ICON (circle style like screenshot) */
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: rgba(255,255,255,0.25); /* clean soft circle */
  
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  color: #ffffff;

  position: relative;
}

/* COLORS (based on your screenshot) */

/* Total Logs (Orange) */
.stat-total {
  background: linear-gradient(135deg, #DC995F 0%, #DA8640 100%);
}

/* Pending (Blue-Green) */
.stat-pending {
  background: linear-gradient(135deg, #5F8999 0%, #698F7F 100%);
}

/* Acknowledged (Green upgrade) */
.stat-ack {
  background: linear-gradient(135deg, #5FAF6D 0%, #3F8F50 100%);
}

/* Disputed (Red-Orange) */
.stat-dispute {
  background: linear-gradient(135deg, #C8805E 0%, #B5613E 100%);
}

/* Closed (Dark) */
.stat-closed {
  background: linear-gradient(135deg, #555 0%, #222 100%);
}

.stat-card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

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

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

.stat-icon {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.stats-grid a.stat-card {
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.stats-grid a.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}
.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.field-clear-inline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.btn-clear-inline {
  height: 54px;
  width: 100%;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.analytics-download-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 1200px) {
  .filters {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .filters {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .analytics-download-bar {
    justify-content: stretch;
  }

  .analytics-download-bar .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .filters {
    grid-template-columns: 1fr;
  }
}

.analytics-filters {
  display: grid;
  grid-template-columns: repeat(8, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.analytics-filters .field {
  margin: 0;
  min-width: 0;
}

.analytics-filters .label {
  display: block;
  margin-bottom: 6px;
}

.analytics-filters .input,
.analytics-filters select,
.analytics-filters input {
  width: 100%;
  box-sizing: border-box;
  height: 56px;
}

.field-clear-inline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.btn-clear-inline {
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-sizing: border-box;
}

.analytics-download-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

a.btn.btn-download,
.btn.btn-download {
  background: #2F80ED !important;
  color: #fff !important;
  border: 1px solid #2F80ED !important;
}

a.btn.btn-download:hover,
.btn.btn-download:hover {
  background: #1C60C7 !important;
  border-color: #1C60C7 !important;
  color: #fff !important;
}

@media (max-width: 1400px) {
  .analytics-filters {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .analytics-filters {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .analytics-download-bar .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .analytics-filters {
    grid-template-columns: 1fr;
  }
}
.btn-clear-aviator {
  height: 48px;
  width: 80%;
  border-radius: 12px;

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

  font-weight: 600;
  text-decoration: none;

  background: linear-gradient(135deg, #DC995F 0%, #DA8640 100%);
  color: #ffffff;

  border: 1px solid #DA8640;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  transition: all 0.15s ease;
}

.btn-clear-aviator:hover {
  background: linear-gradient(135deg, #C9824A 0%, #C46F2E 100%);
  border-color: #C46F2E;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-clear-aviator:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.check-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.targeted-focus-field {
  margin-top: -6px;
}

.check-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  background: #fff;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.targeted-focus-field.has-error .check-group {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
  background: #fff5f5;
}

.targeted-error-text {
  display: none;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}

.targeted-focus-field.has-error .targeted-error-text {
  display: block;
}

.targeted-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.badge-targeted {
  display: inline-block !important;
  margin-left: 8px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}
.badge-focus {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  vertical-align: middle;
}

/* Behavioral */
.badge-b {
  background: linear-gradient(135deg, #f97316, #ea580c); /* orange */
}

/* Performance */
.badge-p {
  background: linear-gradient(135deg, #fb923c, #f97316); /* lighter orange */
}
.form-grid.form-grid-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.form-grid.form-grid-top > * {
  align-self: start;
}

.form-grid.form-grid-top .field {
  min-height: 0;
  height: auto;
}

.form-grid.form-grid-top select.input,
.form-grid.form-grid-top input.input {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

.form-stack-wide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.form-stack-wide .field {
  width: 100%;
}

.full-width {
  width: 100%;
}

.full-width textarea.input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

#eos-type-wrap,
#targeted-focus-wrap {
  align-self: start;
  min-height: 0;
  height: auto;
}

#targeted-focus-wrap .check-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
}

#targeted-focus-wrap .check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

#eos-type-wrap .targeted-error-text,
#targeted-focus-wrap .targeted-error-text {
  margin-top: 6px;
}

.actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

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

  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.filter-button-field .btn {
  width: 100%;
}

/* Force Analytics filters to match Logs layout */
.filters-form .filters-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 16px 20px !important;
  align-items: end !important;
}

.filters-form .filters-grid .field {
  min-width: 0;
}

.filters-form .filters-grid .label {
  display: block;
  margin-bottom: 8px;
}

.filters-form .filters-grid .input {
  width: 100%;
  height: 56px;
}

.filters-form .filters-grid .filter-action-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.filters-form .filters-grid .filter-action-field .btn {
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1600px) {
  .filters-form .filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1000px) {
  .filters-form .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .filters-form .filters-grid {
    grid-template-columns: 1fr !important;
  }
}
.timeline-mini{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}

.timeline-step{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  border:1px solid #e5e7eb;
  background:#f5f6f8;
  color:#8a8f98;
}

/* COMPLETED */
.timeline-step.done{
  background:#edf8ef;
  color:#267744;
  border-color:#bfe7c8;
}

/* DISPUTED */
.timeline-step.disputed{
  background:#fff1f1;
  color:#c14f4f;
  border-color:#f5b5b5;
}

/* SUPERVISOR NOTE */
.timeline-step.supervisor{
  background:#eef6fc;
  color:#2f80c9;
  border-color:#b6d7f5;
}

/* PENDING */
.timeline-step.pending{
  background:#fff5e9;
  color:#b96a25;
  border-color:#f2c79b;
}

/* DOT */
.timeline-dot{
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  color:#fff;
}

/* DOT COLORS */
.timeline-step.done .timeline-dot{ background:#267744; }
.timeline-step.disputed .timeline-dot{ background:#c14f4f; }
.timeline-step.supervisor .timeline-dot{ background:#2f80c9; }
.timeline-step.pending .timeline-dot{ background:#b96a25; }
.timeline-step.muted .timeline-dot{ background:#d8dbe0; }

.timeline-step.disputed,
.timeline-step.pending{
  transform:scale(1.02);
}

.timeline-mini{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  margin-top:12px !important;
}

.timeline-mini .timeline-step{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  font-size:13px !important;
  font-weight:800 !important;
  border:1px solid #e5e7eb !important;
  background:#f5f6f8 !important;
  color:#8a8f98 !important;
}

.timeline-mini .timeline-step.done{
  background:#edf8ef !important;
  color:#267744 !important;
  border-color:#bfe7c8 !important;
}

.timeline-mini .timeline-step.disputed{
  background:#fff1f1 !important;
  color:#c14f4f !important;
  border-color:#f5b5b5 !important;
}

.timeline-mini .timeline-step.supervisor{
  background:#eef6fc !important;
  color:#2f80c9 !important;
  border-color:#b6d7f5 !important;
}

.timeline-mini .timeline-step.pending{
  background:#fff5e9 !important;
  color:#b96a25 !important;
  border-color:#f2c79b !important;
}

.timeline-mini .timeline-dot{
  width:24px !important;
  height:24px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  font-weight:900 !important;
  color:#fff !important;
  background:#d8dbe0 !important;
  flex-shrink:0 !important;
}

.timeline-mini .timeline-step.done .timeline-dot{
  background:#267744 !important;
}

.timeline-mini .timeline-step.disputed .timeline-dot{
  background:#c14f4f !important;
}

.timeline-mini .timeline-step.supervisor .timeline-dot{
  background:#2f80c9 !important;
}

.timeline-mini .timeline-step.pending .timeline-dot{
  background:#b96a25 !important;
}
.timeline-horizontal{
  display:flex;
  align-items:flex-start;
  width:100%;
  margin-top:14px;
  overflow-x:auto;
  padding:8px 2px 4px;
}

.timeline-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:110px;
  text-align:center;
  color:#8a8f98;
  font-weight:800;
  font-size:11px;
}

.timeline-circle{
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#d8dbe0;
  color:#fff;
  font-size:13px;
  font-weight:900;
  box-shadow:0 0 0 4px #f5f6f8;
}

.timeline-item.done{
  color:#267744;
}

.timeline-item.done .timeline-circle{
  background:#267744;
  box-shadow:0 0 0 4px #edf8ef;
}

.timeline-item.active{
  color:#2f80c9;
}

.timeline-item.active .timeline-circle{
  background:#2f80c9;
  box-shadow:0 0 0 4px #eef6fc;
}

.timeline-label{
  margin-top:8px;
  line-height:1.2;
  max-width:120px;
}

.timeline-connector{
  flex:1;
  min-width:45px;
  height:4px;
  margin-top:13px;
  border-radius:999px;
  background:#d8dbe0;
}

.timeline-connector.done{
  background:#267744;
}

.timeline-circle{
  transition: all 0.25s ease;
}

.timeline-item.active .timeline-circle{
  transform: scale(1.1);
}

.timeline-item.active + .timeline-connector{
  background:#2f80c9;
}

.timeline-label small{
  font-size:10px;
  color:#999;
  font-weight:600;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-clear-small {
  background: #e5e7eb;
  color: #374151;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-clear-small:hover {
  background: #d1d5db;
}

.btn-download-small {
  background: #3b82f6;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-download-small:hover {
  background: #2563eb;
}

.btn-reset-custom {
  background: #ef4444; /* red */
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-reset-custom:hover {
  background: #dc2626;
}
.filters .reset-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.filters .reset-row .btn-reset-custom {
  background: #dc2626 !important;
  color: #fff !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  border: 0 !important;
  font-weight: 600;
}

.filters .reset-row .btn-reset-custom:hover {
  background: #b91c1c !important;
}

a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.chart-card a .chart-metric {
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  border-radius: 10px;
  padding: 8px;
}

.chart-card a:hover .chart-metric {
  background: rgba(214, 138, 74, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chart-card a:hover .chart-label {
  color: #d68a4a;
}

.chart-card a:hover .bar span {
  filter: brightness(1.08);
}

.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.donut-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 34px;
  background: #fff;
  border-radius: 50%;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.donut-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.badge-qa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(85, 107, 47, 0.16);
  color: #556b2f;
  border: 1px solid rgba(85, 107, 47, 0.35);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-focus.badge-qa {
  display: inline-block !important;
  margin-left: 6px !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  background: linear-gradient(135deg, #5c9f67, #3f8f50) !important;
  border: 0 !important;
}
.badge.neutral {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

