﻿:root {
  --bg-start: #041b2d;
  --bg-end: #0f4c81;
  --surface: rgba(255, 255, 255, 0.95);
  --ink: #0c2239;
  --accent: #00a8e8;
}
* { font-family: 'Plus Jakarta Sans', sans-serif; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #2e86de 0%, #154c79 42%, #082032 100%);
  overflow-x: hidden;
}
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(2, 17, 29, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 950;
}
.sidebar {
  width: 280px;
  flex: 0 0 280px;
  padding: 1.4rem 1.1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(46, 134, 222, 0.28), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(0, 168, 232, 0.2), transparent 42%),
    linear-gradient(180deg, #02111d, #06263f 58%, #083252);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  overflow-y: auto;
  border-right: 1px solid rgba(150, 214, 255, 0.18);
  box-shadow: inset -1px 0 0 rgba(8, 34, 54, 0.8);
  transform: translateX(0);
  transition: transform .25s ease, margin .25s ease;
  z-index: 980;
}
.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}
.sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: .6rem;
  border: 1px solid rgba(152, 215, 255, 0.35);
  background: rgba(12, 48, 75, 0.35);
  color: #d8efff;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
}
.brand {
  color: #f5fbff;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.5rem;
  line-height: 1.05;
  padding: .25rem .55rem .95rem;
  border-bottom: 1px solid rgba(146, 209, 255, 0.2);
}
.brand span {
  display: block;
  color: #5ec0ff;
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: .15rem;
}
.nav-link {
  color: #d9edff;
  border-radius: .8rem;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .68rem .9rem;
  position: relative;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: .52rem;
  top: 50%;
  width: 3px;
  height: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #60d1ff;
  transition: height .2s ease;
}
.nav-link.active,
.nav-link:hover {
  background: linear-gradient(90deg, rgba(95, 172, 235, .3), rgba(95, 172, 235, .14));
  color: #fff;
  border-color: rgba(130, 203, 255, 0.35);
  transform: translateX(2px);
}
.nav-link.active::before,
.nav-link:hover::before {
  height: 62%;
}
.nav-accordion summary {
  list-style: none;
  cursor: pointer;
}
.nav-accordion summary::-webkit-details-marker {
  display: none;
}
.nav-summary::after {
  content: "▾";
  float: right;
  color: #7ed0ff;
  font-size: .84rem;
  margin-top: .12rem;
  transition: transform .18s ease;
}
.nav-accordion:not([open]) .nav-summary::after {
  transform: rotate(-90deg);
  display: inline-block;
}
.nav-submenu {
  margin-top: .3rem;
  margin-left: .55rem;
  padding: .25rem 0 .2rem .7rem;
  border-left: 1px solid rgba(111, 189, 240, .3);
}
.nav-sublink {
  display: block;
  color: #c6e7ff;
  text-decoration: none;
  padding: .43rem .62rem;
  border-radius: .65rem;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: all .16s ease;
}
.nav-sublink:hover,
.nav-sublink.active {
  background: linear-gradient(90deg, rgba(111, 189, 240, .27), rgba(111, 189, 240, .13));
  color: #fff;
  border-color: rgba(121, 198, 247, .3);
  transform: translateX(2px);
}
.nav-subtitle {
  color: #96c7ea;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: .45rem;
  margin-bottom: .2rem;
  padding: 0 .55rem;
}
.nav-section {
  color: #7fc9f7;
  font-size: .76rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-top: .9rem;
  margin-bottom: .2rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-top: 1px solid rgba(146, 209, 255, 0.18);
}
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  margin-right: -280px;
}
body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.sidebar-open {
  overflow: hidden;
}
.content-area {
  flex: 1;
  min-width: 0;
  padding: 1.4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-main {
  flex: 1 0 auto;
}
.global-footer {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-top: 1px solid rgba(173, 214, 247, 0.25);
  color: rgba(223, 242, 255, 0.92);
  font-size: .84rem;
  text-align: center;
  letter-spacing: .01em;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.topbar h1 {
  margin: 0;
}
.menu-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: .72rem;
  border: 1px solid rgba(189, 229, 255, 0.72);
  background: rgba(9, 47, 76, 0.28);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: background .16s ease, border-color .16s ease;
}
.menu-toggle-btn:hover,
.menu-toggle-btn:focus-visible {
  background: rgba(9, 47, 76, 0.44);
  border-color: rgba(202, 236, 255, 0.95);
}
.menu-toggle-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e7f5ff;
  display: block;
}
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-color: rgba(192, 230, 255, 0.85);
  background: rgba(9, 47, 76, 0.22);
  backdrop-filter: blur(4px);
  padding: .35rem .6rem;
}
.profile-btn:hover,
.profile-btn:focus {
  background: rgba(9, 47, 76, 0.38);
  border-color: rgba(198, 234, 255, 1);
}
.profile-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00b4d8, #2e86de);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}
.profile-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.08;
}
.profile-meta strong {
  color: #fff;
  font-size: .82rem;
}
.profile-meta small {
  color: #b8defa;
  font-size: .68rem;
}
.profile-menu {
  min-width: 235px;
  border-radius: .8rem;
  border: 1px solid rgba(13, 76, 129, 0.2);
  box-shadow: 0 12px 28px rgba(9, 34, 58, 0.2);
}
.language-form {
  margin: 0;
}
.metric-card, .panel-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(5, 19, 35, 0.2);
}
.metric-card { padding: 1rem; }
.metric-card span { color: #4f5d75; font-size: .85rem; }
.metric-card h3 { margin: .2rem 0 0; font-weight: 800; }
.filter-card { margin-top: .8rem; }
.dashboard-main-card {
  min-height: 300px;
}
.dashboard-top-card {
  min-height: 390px;
  height: 100%;
}
.chart-box {
  width: 100%;
  max-width: 340px;
  height: 240px;
  margin: 0 auto;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.chart-box canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}
.report-main-card {
  height: 100%;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(14, 58, 94, 0.06);
}
.report-summary-card {
  justify-content: flex-start;
}
.report-filter-card {
  border: 1px solid rgba(14, 58, 94, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(243,248,253,0.96));
}
.report-kpi-card {
  border: 1px solid rgba(14, 58, 94, 0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(242,247,253,0.96));
  min-height: 128px;
}
.report-kpi-card h3 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: .02em;
}
.report-kpi-card small {
  color: #5a7088;
  font-size: .78rem;
}
.report-section-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #3f6487;
  margin-bottom: .45rem;
  font-weight: 700;
}
.report-gradient-card {
  background: linear-gradient(155deg, #f8fcff 0%, #edf5ff 50%, #f7fcff 100%);
}
.report-chart-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,255,0.98));
}
.report-stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .35rem;
}
.report-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(13, 76, 129, 0.12);
  border-radius: .75rem;
  padding: .48rem .58rem;
  background: rgba(255, 255, 255, 0.85);
  min-height: 46px;
}
.report-stat-item span {
  color: #48637f;
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: .4rem;
}
.report-stat-item strong {
  color: #0f4c81;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.report-chart-card .chart-box {
  max-width: 100%;
  height: 320px;
  margin-top: .4rem;
}
.report-latest-card {
  border: 1px solid rgba(14, 58, 94, 0.08);
}
.report-export-card {
  border: 1px solid rgba(14, 58, 94, 0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(240,248,255,0.96));
}
.export-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: .55rem .8rem;
}
.export-check-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(13, 76, 129, 0.14);
  border-radius: .6rem;
  padding: .4rem .55rem;
  background: rgba(255,255,255,0.85);
  color: #1f3f5f;
  font-size: .85rem;
}
.export-check-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}
.export-action-wrap {
  min-width: 180px;
}
.report-ticket-item {
  border-bottom: 1px dashed #d7e4f2;
}
.report-ticket-detail-card {
  border: 1px solid rgba(14, 58, 94, 0.12);
  border-radius: .8rem;
  padding: .75rem .85rem;
  margin-bottom: .65rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.report-ticket-detail-card:last-child {
  margin-bottom: 0;
}
.report-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  border-bottom: 1px dashed rgba(14, 58, 94, 0.15);
  padding-bottom: .5rem;
  margin-bottom: .5rem;
}
.report-ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem .8rem;
}
.report-ticket-meta-grid div span {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5d7692;
  margin-bottom: .1rem;
}
.report-ticket-meta-grid div strong {
  display: block;
  font-size: .86rem;
  color: #163a5b;
  font-weight: 700;
  line-height: 1.28;
  word-break: break-word;
}
.report-ticket-main strong a {
  text-decoration: none;
}
.report-ticket-main strong a:hover {
  text-decoration: underline;
}
.ticket-item { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; border-bottom: 1px solid #eef3f8; }
.ticket-item:last-child { border-bottom: 0; }
.ticket-list-card {
  border: 1px solid rgba(13, 76, 129, 0.12);
  background: linear-gradient(175deg, rgba(255,255,255,0.99), rgba(246,251,255,0.98));
}
.ticket-filter-bar .form-label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #4a6987;
}
.ticket-filter-bar .form-control,
.ticket-filter-bar .form-select {
  border-color: #c8d9ea;
  min-height: 44px;
}
.ticket-filter-actions .btn {
  min-width: 120px;
}
.ticket-table-wrap {
  border: 1px solid #d7e4f2;
  border-radius: .8rem;
  overflow: hidden;
  background: #fff;
}
.ticket-table {
  margin-bottom: 0;
}
.ticket-table thead th {
  font-size: .9rem;
  color: #17395a;
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 1px solid #d7e4f2;
}
.ticket-table tbody td {
  border-color: #e3edf7;
  vertical-align: middle;
}
.ticket-table tbody tr:hover {
  background: rgba(49, 135, 209, 0.04);
}
.priority-pill,
.status-pill,
.approval-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  border-radius: .58rem;
  padding: .2rem .58rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
}
.priority-critical { background: #6f1d1b; color: #fff; }
.priority-high { background: #b45309; color: #fff; }
.priority-medium { background: #64748b; color: #fff; }
.priority-low { background: #0f766e; color: #fff; }
.status-new { background: #1d4ed8; color: #fff; }
.status-open { background: #155e75; color: #fff; }
.status-in_progress { background: #0f172a; color: #fff; }
.status-on_hold { background: #7c2d12; color: #fff; }
.status-resolved { background: #14532d; color: #fff; }
.status-closed { background: #1f2937; color: #fff; }
.status-reopened { background: #7c3aed; color: #fff; }
.status-escalated { background: #991b1b; color: #fff; }
.status-pending { background: #334155; color: #fff; }
.status-draft { background: #374151; color: #fff; }
.approval-approved { background: #22c55e; color: #073b1b; }
.approval-pending { background: #06b6d4; color: #022c38; }
.approval-rejected { background: #ef4444; color: #fff; }
.ticket-actions {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}
.ticket-action-btn {
  width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: .5rem;
}
.action-icon {
  width: 16px;
  height: 16px;
  display: block;
}
.sla-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: .95rem;
}
.sla-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
}
.sla-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.sla-meta {
  font-size: 1rem;
  color: #5c6f86;
  line-height: 1.42;
}
.sla-badge-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: .55rem;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}
.sla-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: .6rem;
  min-height: 44px;
  padding: 0 .7rem;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}
.sla-badge.match { background: #1fbe77; }
.sla-badge.miss { background: #e45745; }
.sla-ring-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .25rem 0 .1rem;
  min-width: 0;
  overflow: hidden;
}
.sla-ring-wrap canvas {
  width: 185px !important;
  height: 185px !important;
}
.sla-target-card {
  border: 1px solid rgba(15, 76, 129, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 150, 227, 0.18), transparent 38%),
    linear-gradient(165deg, rgba(255,255,255,0.98), rgba(244,250,255,0.98));
}
.sla-target-head h6 {
  font-size: 1.08rem;
  color: #0f3557;
  font-weight: 800;
}
.sla-target-head p {
  font-size: .78rem;
  color: #59758f;
}
.sla-target-grid {
  display: grid;
  gap: .48rem;
}
.sla-target-item {
  border: 1px solid #cfdeec;
  border-radius: .72rem;
  background: #fff;
  padding: .46rem .56rem;
  box-shadow: 0 6px 14px rgba(16, 58, 96, 0.07);
}
.sla-target-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
}
.sla-severity {
  font-size: .85rem;
  font-weight: 800;
  color: #113758;
}
.sla-response-pill {
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  border-radius: .6rem;
  padding: .16rem .55rem;
  white-space: nowrap;
}
.sla-investigation {
  border-top: 1px dashed #d9e5f0;
  padding-top: .35rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.sla-investigation span {
  font-size: .72rem;
  color: #647f99;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sla-investigation strong {
  font-size: .86rem;
  color: #13395b;
}
.sla-note {
  margin-top: .2rem;
  font-size: .72rem;
  color: #4d6b86;
}
.severity-critical .sla-response-pill {
  background: linear-gradient(90deg, #db3123, #ff6f4d);
}
.severity-high .sla-response-pill {
  background: linear-gradient(90deg, #f28c00, #f7b500);
}
.severity-medium .sla-response-pill {
  background: linear-gradient(90deg, #1d8bcf, #35b2f3);
}
.severity-low .sla-response-pill {
  background: linear-gradient(90deg, #1f9d6c, #33c486);
}
.status-dist-card .dashboard-status-chart {
  max-width: 100%;
  width: 100%;
  height: 300px;
}
.status-dist-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.status-dist-card h5 {
  margin-bottom: .6rem !important;
}
.status-dist-card .chart-box {
  margin-top: .1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-client-sla-card {
  border: 1px solid rgba(14, 58, 94, 0.12);
  border-radius: .85rem;
  padding: .75rem .8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  min-width: 0;
}
.dashboard-client-sla-card h6 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dashboard-client-sla-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.dashboard-client-sla-meta .sla-badge {
  min-height: 34px;
  font-size: .84rem;
  padding: 0 .45rem;
}
.dashboard-client-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.dashboard-client-chart-box {
  border: 1px solid rgba(14, 58, 94, 0.12);
  border-radius: .7rem;
  background: #fff;
  height: 155px;
  padding: .4rem;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.dashboard-client-chart-box canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}
.report-client-graph-card {
  border: 1px solid rgba(14, 58, 94, 0.12);
  border-radius: .85rem;
  padding: .75rem .8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.report-client-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.report-client-chart-box {
  border: 1px solid rgba(14, 58, 94, 0.12);
  border-radius: .7rem;
  background: #fff;
  height: 155px;
  padding: .4rem;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.report-client-chart-box canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}
.sla-target-table thead th {
  background: linear-gradient(180deg, #2e86de, #1d6fbf);
  color: #fff;
  font-size: .76rem;
  letter-spacing: .03em;
  border: 1px solid rgba(20, 83, 143, 0.6);
  white-space: nowrap;
}
.sla-target-table tbody td {
  border: 1px solid #d8e4f0;
  font-size: .8rem;
  color: #173856;
  font-weight: 600;
  line-height: 1.25;
}
.incident-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}
.incident-stepper .step {
  text-align: center;
  font-size: .82rem;
  color: #7a8da5;
  border-top: 2px solid #d8e2ef;
  padding-top: .45rem;
}
.incident-stepper .step-icon {
  margin-right: .35rem;
}
.incident-stepper .step.active {
  color: #0f4c81;
  border-top-color: #0f4c81;
  font-weight: 700;
}
.slm-strip {
  margin-top: .7rem;
  border: 1px solid #e2eaf3;
  border-radius: .65rem;
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cyber-stepper-card {
  border: 1px solid rgba(12, 67, 108, 0.11);
  background: linear-gradient(155deg, rgba(255,255,255,0.98), rgba(245,250,255,0.98));
}
.cyber-form-card {
  border: 1px solid rgba(12, 67, 108, 0.11);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,255,0.98));
}
.cyber-block {
  border: 1px solid rgba(15, 76, 129, 0.16);
  border-radius: .9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(11, 40, 64, 0.08);
  padding: 1rem 1rem .9rem;
}
.cyber-section-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #2f5f86;
  font-weight: 800;
  margin-bottom: .85rem;
  padding-bottom: .4rem;
  border-bottom: 1px dashed rgba(13, 76, 129, 0.24);
}
.cyber-form-card .form-label {
  font-weight: 600;
  color: #193a59;
  margin-bottom: .35rem;
}
.cyber-form-card .form-control,
.cyber-form-card .form-select {
  border-color: #cad9ea;
  border-radius: .6rem;
  min-height: 42px;
  background: #fff;
}
.cyber-form-card .form-control:focus,
.cyber-form-card .form-select:focus {
  border-color: #6cb8f3;
  box-shadow: 0 0 0 .17rem rgba(108, 184, 243, 0.2);
}
.cyber-form-card textarea.form-control {
  min-height: 120px;
}
.cyber-form-card .cyber-textarea-eq {
  min-height: 210px;
}
.cyber-form-card .form-text {
  font-size: .78rem;
  color: #5f7690;
}
.cyber-form-card .btn {
  border-radius: .6rem;
  min-width: 130px;
}
.btn-gradient {
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, #0077b6, #00b4d8);
}
.btn-gradient:hover { color: #fff; filter: brightness(1.05); }
.report-wa-card {
  border: 1px solid rgba(14, 58, 94, 0.12);
  background: linear-gradient(155deg, rgba(255,255,255,0.98), rgba(245,250,255,0.97));
}
.wa-result-list {
  max-height: none;
  overflow: visible;
  border-radius: .75rem;
}
.wa-result-item {
  border-color: #d9e6f3;
}
.wa-result-item.active {
  background: linear-gradient(120deg, #eaf5ff, #dff0ff);
  color: #13395b;
  border-color: #8fc2ef;
}
.wa-result-item.active strong,
.wa-result-item.active .small {
  color: #13395b;
}
.wa-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.wa-meta-grid div {
  border: 1px solid rgba(13, 76, 129, 0.15);
  border-radius: .65rem;
  padding: .45rem .55rem;
  background: #fff;
}
.wa-meta-grid span {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5d7692;
}
.wa-meta-grid strong {
  display: block;
  color: #173856;
  margin-top: .15rem;
}
.wa-report-output {
  min-height: 820px;
  height: clamp(820px, 78vh, 1500px);
  resize: vertical;
  overflow: hidden;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: .86rem;
  line-height: 1.45;
}
.report-modal-output {
  min-height: clamp(420px, 62vh, 760px);
  max-height: 62vh;
  resize: vertical;
  overflow: auto;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: .86rem;
  line-height: 1.45;
}
.ticket-report-modal-dialog {
  width: min(62vw, 860px);
  max-width: min(62vw, 860px);
}
#ticketReportModal .modal-content {
  max-height: 92vh;
}
.persift-output {
  min-height: 420px;
  resize: vertical;
  overflow: hidden;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: .9rem;
  line-height: 1.5;
}
.auth-wrap { min-height: 100vh; display: grid; place-items: center; }
.auth-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,.96);
  color: #13263b;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.captcha-img {
  width: 180px;
  height: 56px;
  border: 1px solid #b8d1ea;
  border-radius: .55rem;
  background: #edf5ff;
}
.captcha-refresh {
  min-width: 78px;
}
.comment-box { background: #f4f7fb; border-radius: .75rem; padding: .65rem .8rem; margin-bottom: .6rem; }
@media (max-width: 992px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    margin-right: 0;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 300px);
    flex: none;
    transform: translateX(-100%);
    margin-right: 0;
    border-right: 1px solid rgba(150, 214, 255, 0.24);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-close {
    display: inline-flex;
  }
  .content-area {
    padding: 1rem;
    min-height: 100vh;
  }
  .topbar {
    align-items: flex-start;
  }
  .topbar-heading {
    width: 100%;
  }
  .chart-box {
    max-width: 320px;
    height: 240px;
  }
  .report-main-card {
    min-height: 360px;
  }
  .report-stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-kpi-card {
    min-height: 120px;
  }
  .export-checkbox-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  .report-ticket-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main-card {
    min-height: 260px;
  }
  .dashboard-top-card {
    min-height: 340px;
  }
  .sla-title {
    font-size: 1.65rem;
  }
  .sla-meta {
    font-size: .92rem;
  }
  .sla-badge-row {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    max-width: 280px;
  }
  .sla-ring-wrap {
    min-height: 150px;
  }
  .sla-ring-wrap canvas {
    width: 155px !important;
    height: 155px !important;
  }
  .status-dist-card .dashboard-status-chart {
    max-width: 100%;
    height: 250px;
  }
  .dashboard-client-chart-box,
  .report-client-chart-box {
    height: 145px;
  }
  .report-client-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-client-chart-grid {
    grid-template-columns: 1fr;
  }
  .sla-investigation {
    flex-direction: column;
    align-items: flex-start;
  }
  .cyber-block {
    padding: .85rem .8rem .8rem;
  }
  .wa-meta-grid {
    grid-template-columns: 1fr;
  }
  .wa-result-list {
    max-height: none;
  }
  .ticket-report-modal-dialog {
    width: min(94vw, 860px);
    max-width: min(94vw, 860px);
  }
  #ticketReportModal .modal-content {
    max-height: 92vh;
  }
  .report-modal-output {
    min-height: 48vh;
    max-height: 58vh;
  }
  .ticket-filter-actions .btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 576px) {
  .export-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .export-action-wrap {
    width: 100%;
  }
  .report-ticket-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .report-ticket-meta-grid {
    grid-template-columns: 1fr;
  }
  .report-stat-list {
    grid-template-columns: 1fr;
  }
  .sla-badge-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .dashboard-client-sla-meta,
  .dashboard-client-chart-grid,
  .report-client-chart-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-client-sla-card > .d-flex {
    flex-wrap: wrap;
  }
  .ticket-filter-actions {
    width: 100%;
  }
  .ticket-filter-actions .btn {
    width: 100%;
  }
  .ticket-table thead th,
  .ticket-table tbody td {
    font-size: .86rem;
  }
}
