/* ============================================================
   Delcom Console — Design tokens & shared styles
   Palette: crimson red + maroon + warm white + neutral ink
   Type: Sora (display) / Inter (body)
   ============================================================ */

:root {
  --maroon-950: #33060d;
  --maroon-900: #450a14;
  --maroon-850: #54101b;
  --maroon-800: #611523;
  --red-700: #a4111f;
  --red-600: #c8102e;
  --red-500: #e11d36;
  --red-400: #ef4a5c;
  --red-100: #fbe3e6;
  --red-50: #fdf4f4;

  --ink-900: #221c1d;
  --ink-700: #4a3f40;
  --ink-500: #7a6c6d;
  --ink-300: #b7abac;
  --ink-100: #e9e2e2;

  --paper: #fffdfd;
  --canvas: #f6f1f1;
  --line: #ecdfe0;

  --green-600: #1f7a4d;
  --green-100: #e2f4ea;
  --amber-600: #a6690a;
  --amber-100: #faedd6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card:
    0 1px 2px rgba(51, 6, 13, 0.06), 0 8px 20px -12px rgba(51, 6, 13, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink-900);
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--red-100);
  color: var(--maroon-900);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--ink-100);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: linear-gradient(
    190deg,
    var(--maroon-900) 0%,
    var(--maroon-950) 100%
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -3px rgba(200, 16, 46, 0.7);
}
.sidebar-brand .name {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  color: #fff;
}
.sidebar-brand .name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.side-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  padding: 1.1rem 1.4rem 0.4rem;
  letter-spacing: 0.03em;
}

.side-nav {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.85rem;
  flex: 1;
  overflow-y: auto;
}
.side-nav li {
  margin-bottom: 0.15rem;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.75rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.885rem;
  font-weight: 500;
  position: relative;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.side-nav a i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  opacity: 0.85;
}
.side-nav a .count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
  color: #fff;
}
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.side-nav a.active {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(225, 29, 54, 0.7);
}
.side-nav a.active .count {
  background: rgba(255, 255, 255, 0.22);
}

.sidebar-foot {
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-foot .agent-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.sidebar-foot .avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.sidebar-foot .agent-mini .who {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.sidebar-foot .agent-mini .role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}
.sidebar-foot a.logout-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.sidebar-foot a.logout-link:hover {
  color: #fff;
}

/* ---------- Main column ---------- */
.main-col {
  margin-left: 252px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 252px);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.topbar .page-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.topbar .page-sub {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin: 0;
}
.search-box {
  position: relative;
  width: 320px;
  max-width: 38vw;
}
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.5rem 2.15rem;
  font-size: 0.85rem;
}
.search-box input:focus {
  outline: none;
  border-color: var(--red-400);
  background: #fff;
  box-shadow: 0 0 0 3px var(--red-100);
}
.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  position: relative;
}
.icon-btn:hover {
  background: var(--canvas);
}
.icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  border: 1.5px solid #fff;
}

.topbar .who-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
}
.topbar .who-btn .avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--maroon-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.72rem;
}
.topbar .who-btn .who-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
}
.topbar .who-btn .who-role {
  font-size: 0.68rem;
  color: var(--ink-500);
}

.content {
  padding: 1.75rem;
  flex: 1;
}

/* ============================================================
   CARDS / STATS
   ============================================================ */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.panel-head {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.panel-head h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.panel-head .hint {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 0.15rem;
}
.panel-body {
  padding: 1.35rem;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red-600);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.stat-card .stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 500;
}
.stat-card .stat-value {
  font-family: "Sora", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.stat-card .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-50);
  color: var(--red-600);
  font-size: 1.05rem;
}
.stat-card.alt .stat-icon {
  background: var(--green-100);
  color: var(--green-600);
}
.stat-card.warn .stat-icon {
  background: var(--amber-100);
  color: var(--amber-600);
}
.stat-card .stat-delta {
  font-size: 0.75rem;
  margin-top: 0.55rem;
  color: var(--ink-500);
}
.stat-card .stat-delta.up {
  color: var(--green-600);
}
.stat-card .stat-delta.down {
  color: var(--red-600);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.badge-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pending {
  background: var(--amber-100);
  color: var(--amber-600);
}
.badge-accepted {
  background: var(--green-100);
  color: var(--green-600);
}
.badge-rejected {
  background: var(--red-100);
  color: var(--red-600);
}
.badge-resolved {
  background: #e7e9fb;
  color: #4338ca;
}

.badge-priority {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}
.priority-high {
  background: var(--red-100);
  color: var(--red-600);
}
.priority-medium {
  background: var(--amber-100);
  color: var(--amber-600);
}
.priority-low {
  background: var(--ink-100);
  color: var(--ink-700);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-modern {
  margin-bottom: 0;
}
.table-modern thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
  background: var(--canvas);
}
.table-modern thead tr th:first-child {
  border-top-left-radius: 8px;
}
.table-modern thead tr th:last-child {
  border-top-right-radius: 8px;
}
.table-modern tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-size: 0.855rem;
}
.table-modern tbody tr:last-child td {
  border-bottom: none;
}
.table-modern tbody tr:hover {
  background: var(--red-50);
}

.cust-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.avatar-tag {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--maroon-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.72rem;
}
.cust-cell .nm {
  font-weight: 600;
  font-size: 0.83rem;
}
.cust-cell .em {
  font-size: 0.72rem;
  color: var(--ink-500);
}
.ticket-id {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--red-600);
  font-size: 0.8rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-brand {
  background: var(--red-600);
  border: 1px solid var(--red-600);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
}
.btn-brand:hover {
  background: var(--red-700);
  border-color: var(--red-700);
  color: #fff;
}
.btn-outline-brand {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
}
.btn-outline-brand:hover {
  background: var(--canvas);
}
.btn-ghost-red {
  background: transparent;
  border: 1px solid var(--red-100);
  color: var(--red-600);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
}
.btn-ghost-red:hover {
  background: var(--red-50);
}
.icon-action {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
}
.icon-action:hover {
  background: var(--canvas);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.35rem;
}
.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  padding: 0.55rem 0.8rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--red-400);
  box-shadow: 0 0 0 3px var(--red-100);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.filter-bar .form-select,
.filter-bar .form-control {
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  width: auto;
}
.chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--ink-700);
  background: #fff;
}
.chip.active {
  background: var(--maroon-900);
  border-color: var(--maroon-900);
  color: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
}
.pager .pg-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
}
.pager .pg-btn.active {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

/* ============================================================
   AGENT CARDS
   ============================================================ */
.agent-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.agent-card .head {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.agent-card .avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--maroon-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
}
.agent-card .avatar-lg .status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.status-online {
  background: var(--green-600);
}
.status-busy {
  background: var(--amber-600);
}
.status-offline {
  background: var(--ink-300);
}
.agent-card .name {
  font-weight: 700;
  font-size: 0.95rem;
}
.agent-card .role {
  font-size: 0.76rem;
  color: var(--ink-500);
}
.agent-card .metrics {
  display: flex;
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.agent-card .metrics .m {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}
.agent-card .metrics .m:last-child {
  border-right: none;
}
.agent-card .metrics .m .v {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.agent-card .metrics .m .l {
  font-size: 0.68rem;
  color: var(--ink-500);
}

/* ============================================================
   CHAT / QUERY DETAIL
   ============================================================ */
.chat-thread {
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  max-height: 560px;
  overflow-y: auto;
}
.chat-msg {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  max-width: 80%;
}
.chat-msg.from-agent {
  margin-left: auto;
  flex-direction: row-reverse;
}
.chat-msg .bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.chat-msg.from-agent .bubble {
  background: var(--red-600);
  color: #fff;
  border-color: var(--red-600);
  border-radius: 12px 12px 3px 12px;
}
.chat-msg .meta {
  font-size: 0.68rem;
  color: var(--ink-500);
  margin-top: 0.3rem;
}
.chat-msg.from-agent .meta {
  text-align: right;
}
.chat-msg .avatar-tag {
  width: 30px;
  height: 30px;
  font-size: 0.65rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.83rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-row .k {
  color: var(--ink-500);
}
.info-row .v {
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.1rem;
  border-left: 2px solid var(--line);
  margin-left: 0.35rem;
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6.5px;
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red-600);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--red-100);
}
.timeline .t-title {
  font-size: 0.83rem;
  font-weight: 600;
}
.timeline .t-time {
  font-size: 0.72rem;
  color: var(--ink-500);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-shell {
  min-height: 100vh;
  display: flex;
}
.login-aside {
  flex: 1;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.06),
      transparent 40%
    ),
    linear-gradient(200deg, rgba(128, 0, 32, 0.75), rgba(60, 0, 15, 0.9)),
    url(../images/delcom-hero.jpg) center center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.login-aside .mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(225, 29, 54, 0.7);
}
.login-aside h1 {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  max-width: 420px;
  line-height: 1.2;
  margin-top: 2.2rem;
}
.login-aside p.lead-sub {
  color: rgba(255, 255, 255, 0.65);
  max-width: 400px;
  font-size: 0.92rem;
}
.login-aside .stat-strip {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.5rem;
}
.login-aside .stat-strip .v {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.login-aside .stat-strip .l {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
.login-aside .quote {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  border-left: 2px solid var(--red-500);
  padding-left: 0.85rem;
  max-width: 380px;
}
.login-aside .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-main {
  width: 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2rem;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
}
.login-card .sub {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 992px) {
  .login-aside {
    display: none;
  }
  .login-main {
    width: 100%;
  }
}

/* ============================================================
   CUSTOMER PORTAL — auth & verification additions
   ============================================================ */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red-600);
  background: var(--red-50);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.otp-group {
  display: flex;
  gap: 0.6rem;
}
.otp-group input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--ink-900);
}
.otp-group input:focus {
  outline: none;
  border-color: var(--red-500);
  background: #fff;
  box-shadow: 0 0 0 3px var(--red-100);
}
.verify-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--paper);
}
.verify-block .head-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.verify-block .head-row .ic {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--red-50);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.verify-block.done {
  opacity: 0.6;
}
.verify-block.done .ic {
  background: var(--green-100);
  color: var(--green-600);
}
.resend-line {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 0.75rem;
}
.resend-line a {
  color: var(--red-600);
  font-weight: 600;
}

/* ---------- Customer dashboard: quick-action / ticket cards ---------- */
.quick-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.quick-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.quick-card.alt .ic {
  background: var(--maroon-900);
}

.ticket-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.ticket-list-item:last-child {
  border-bottom: none;
}
.ticket-list-item:hover {
  background: var(--red-50);
}
.ticket-list-item .ticket-ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-state .ic {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--red-50);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
}
.step-pill .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.step-pill.active .n {
  background: var(--red-600);
  color: #fff;
}
.step-pill.done .n {
  background: var(--green-600);
  color: #fff;
}
.step-pill.active,
.step-pill.done {
  color: var(--ink-900);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-col {
    margin-left: 0;
    width: 100%;
  }
  .search-box {
    display: none;
  }
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(34, 28, 29, 0.45);
  z-index: 1025;
}
.sidebar-backdrop.show {
  display: block;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
}
@media (max-width: 991.98px) {
  .mobile-toggle {
    display: inline-flex;
  }
}
