/* style-customer.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --bg-sidebar: #101b36;
  --bg-body: #f1f5f9;
  --primary-blue: #2563eb;
  --hover-blue: #1d4ed8;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 72px;
}

body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-width-collapsed);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

html,
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  min-height: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font: inherit;
}

a {
  color: var(--primary-blue);
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

/* === SIDEBAR === */
.sidebar {
  z-index: 10;
  width: var(--sidebar-width);
  min-height: 100vh;
  height: 100dvh;
  background-color: var(--bg-sidebar);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  padding: 24px 16px 18px;
  transition: width 240ms cubic-bezier(0.2, 0, 0, 1), padding 240ms cubic-bezier(0.2, 0, 0, 1);
}

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

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

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.sidebar-header a {
  display: flex !important;
  align-items: center;
  min-height: 42px;
  padding: 0 8px;
  text-decoration: none;
}

.sidebar-header img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.sidebar-header div {
  margin: 0;
  padding: 0;
}

.sidebar-header p {
  margin: 0;
  padding: 0 10px 0;
  color: #aebbd3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 0 0;
  margin: 0;
}

/* Mobile Hamburger Toggle Button */
.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-toggle:active {
  transform: translateY(1px);
}

.sidebar-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-toggle .icon-close {
  display: none;
}

.sidebar.is-open .sidebar-toggle .icon-hamburger {
  display: none;
}

.sidebar.is-open .sidebar-toggle .icon-close {
  display: block;
}

/* Base navigation link styling */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

/* Base icon styling */
.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.18s ease;
}

/* Hover state */
.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* Active / clicked state */
.nav-item.active,
.nav-item[aria-current="page"] {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 600;
}

.nav-item.active svg,
.nav-item[aria-current="page"] svg {
  stroke: #60a5fa;
  color: #60a5fa;
}

.nav-item--logout {
  color: #f87171 !important;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.nav-item--logout:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
}

.nav-item--logout svg {
  stroke: #f87171 !important;
}

.nav-item--logout:hover svg {
  stroke: #fca5a5 !important;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.user-info span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

/* === MAIN CONTENT === */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
  transition: margin-left 240ms cubic-bezier(0.2, 0, 0, 1), width 240ms cubic-bezier(0.2, 0, 0, 1);
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 14px;
  line-height: 1.3;
}

.brand-copy small {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.main-wrapper {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  transition: margin-left 240ms cubic-bezier(0.2, 0, 0, 1), width 240ms cubic-bezier(0.2, 0, 0, 1);
}

.top-header {
  background-color: var(--white);
  padding: 16px max(32px, calc((100% - 1280px) / 2 + 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: padding 240ms cubic-bezier(0.2, 0, 0, 1);
}

/* Desktop Collapse Button */
.desktop-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.desktop-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.desktop-collapse-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

/* Desktop Collapsed Sidebar State (min-width: 861px) */
@media (min-width: 861px) {
  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-collapsed);
    padding: 24px 8px 18px;
    align-items: center;
  }

  body.sidebar-collapsed .sidebar-header {
    align-items: center;
    padding: 0 0 10px 0;
    width: 100%;
  }

  body.sidebar-collapsed .sidebar-header a {
    padding: 0;
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-header img {
    height: 32px;
    width: 32px;
    object-position: left center;
  }

  body.sidebar-collapsed .sidebar-header p {
    display: none !important;
  }

  body.sidebar-collapsed .nav-menu {
    width: 100%;
    align-items: center;
  }

  body.sidebar-collapsed .nav-item {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    position: relative;
    border-radius: 10px;
  }

  body.sidebar-collapsed .nav-item span {
    display: none !important;
  }

  body.sidebar-collapsed .nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
  }

  body.sidebar-collapsed .nav-item[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
  }

  body.sidebar-collapsed .desktop-collapse-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
    position: relative;
  }

  body.sidebar-collapsed .desktop-collapse-btn .collapse-text {
    display: none !important;
  }

  body.sidebar-collapsed .desktop-collapse-btn svg {
    transform: rotate(180deg);
  }

  body.sidebar-collapsed .desktop-collapse-btn[title]::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
  }

  body.sidebar-collapsed .desktop-collapse-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
  }

  body.sidebar-collapsed .sidebar-footer {
    padding: 12px 0 4px;
    justify-content: center;
    width: 100%;
  }

  body.sidebar-collapsed .sidebar-footer .user-info {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .desktop-collapse-btn {
    display: none !important;
  }
}

.badge-pelanggan {
  background-color: #dbeafe;
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.online-label {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 10px;
}

.avatar-outline {
  background: #fff;
  border: 1px solid #bfdbfe;
  color: var(--primary-blue);
}

.content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 32px clamp(18px, 3vw, 40px);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-header>div {
  min-width: 0;
}

.page-header h1 {
  font-size: clamp(25px, 2.5vw, 32px);
  margin: 8px 0 4px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.page-title,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--primary-blue);
  font-weight: 800;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.btn-primary:hover {
  background-color: var(--hover-blue);
}

.btn-secondary {
  background-color: var(--white);
  color: #334155;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

.btn-danger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 42px;
}

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.stat-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  padding-left: 12px;
  border-left: 4px solid;
}

.border-blue {
  border-left-color: var(--primary-blue);
}

.border-green {
  border-left-color: var(--success-green);
}

.border-orange {
  border-left-color: var(--warning-orange);
}

/* Split Sections */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
  min-width: 0;
}

.card h2 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card h3 {
  font-size: 15px;
  line-height: 1.4;
}

.badge-orange {
  background-color: #fef3c7;
  color: var(--warning-orange);
  height: 28px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background-color: #d1fae5;
  color: var(--success-green);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Table Style */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}

td {
  padding: 16px 12px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

/* Detail & Profile Layouts */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-layout>*,
.side-stack>*,
.profile-form>* {
  min-width: 0;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-heading .subtitle {
  margin-top: 5px;
}

.status-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border: 1px solid;
  border-radius: 14px;
  margin-bottom: 24px;
}

.status-banner h2 {
  font-size: 17px;
  margin: 0 0 5px;
}

.status-banner p {
  color: #475569;
  font-size: 14px;
  margin: 0;
}

.status-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.status-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.status-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.status-success .status-icon {
  background: #dcfce7;
  color: #15803d;
}

.status-danger .status-icon {
  background: #ffe4e6;
  color: #be123c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  white-space: normal;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.danger {
  background: #ffe4e6;
  color: #be123c;
}

.status-pill.warning {
  background: #fef3c7;
  color: #92400e;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e2e8f0;
}

.info-list>div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  min-width: 0;
}

.info-list>div:nth-child(odd) {
  padding-left: 0;
}

.info-list span {
  color: var(--text-muted);
  font-size: 12px;
}

.info-list strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.price-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 22px 0;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e40af;
}

.price-panel span {
  font-size: 14px;
  font-weight: 600;
}

.price-panel strong {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
}

.confirmation-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
}

.confirmation-note span {
  color: #4d7c0f;
  font-size: 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  padding: 0 0 22px 42px;
  counter-increment: steps;
}

.step-list li:last-child {
  padding-bottom: 0;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 2px;
  left: 13px;
  width: 2px;
  background: #e2e8f0;
}

.step-list strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.step-list p,
.soft-card p,
.subsection p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.soft-card {
  background: #f8fafc;
}

.soft-card h3 {
  margin-bottom: 9px;
}

.text-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.table-link:hover {
  text-decoration: underline;
}

.subsection {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.subsection h3 {
  margin-bottom: 8px;
}

.muted-paragraph {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 12px;
}

.action-card {
  margin-top: 24px;
}

.action-card h2 {
  margin: 8px 0;
}

.action-card>p {
  color: var(--text-muted);
  font-size: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.profile-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 20px 24px;
}

.profile-intro h2 {
  font-size: 18px;
  margin-bottom: 3px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  font-size: 16px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card {
  padding: 24px;
}

.form-card .section-heading {
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

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

.field-help,
.checkbox-label small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.preferences {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.checkbox-label span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkbox-label strong {
  font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-blue);
}

.password-grid {
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.notice-card {
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.notice-card strong {
  color: #1d4ed8;
  font-size: 13px;
}

.notice-card p {
  color: #475569;
  font-size: 13px;
  margin-top: 5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

.history-stats .stat-value {
  font-size: clamp(20px, 2vw, 28px);
  overflow-wrap: anywhere;
}

.history-table {
  margin-top: 0;
  min-width: 760px;
}

.history-table th {
  background: #f8fafc;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.history-table td {
  vertical-align: middle;
}

.history-table tbody tr:hover {
  background: #f8fafc;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.price-cell {
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
}

.table-link {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 32px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
}

/* === PENGAJUAN SERVIS === */
.service-form {
  max-width: 1040px;
  margin: 0 auto;
}

.service-form .form-card {
  margin-bottom: 22px;
}

.service-form .section-heading {
  align-items: center;
}

.service-form .form-group label span {
  color: #dc2626;
}

.service-form .form-control {
  width: 100%;
  min-width: 0;
}

.service-form select.form-control {
  appearance: auto;
}

.service-form .form-group textarea {
  line-height: 1.6;
}

.service-form .notice-card {
  margin: 2px 0 22px;
}

.service-form .form-actions {
  margin-bottom: 8px;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-stack > .text-link {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px;
  }

  .main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .card,
  .form-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }

  .main-wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  .content {
    padding: 24px 20px;
  }

  .side-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .sidebar {
    width: 220px;
    padding: 20px 12px 16px;
  }

  .main-wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  .sidebar-header {
    padding: 0 0 12px;
  }

  .nav-menu {
    padding: 4px 0 0 0;
  }

  .sidebar-footer {
    padding: 10px 8px;
  }

  .content {
    padding: 24px 18px;
  }

  .top-header {
    padding: 14px 18px;
  }
}

@keyframes sidebarDropdown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    z-index: 100;
    overflow: visible;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
  }

  .sidebar-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
    width: 100%;
  }

  .sidebar-header a {
    min-height: auto !important;
    padding: 0 !important;
  }

  .sidebar-header p {
    display: none;
  }

  .sidebar-header img {
    height: 32px;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 6px;
    gap: 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sidebar.is-open .nav-menu {
    display: flex;
    animation: sidebarDropdown 0.22s ease-out;
  }

  .nav-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
  }

  .nav-item.active,
  .nav-item[aria-current="page"] {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 600;
  }

  .nav-item--logout {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin-top: 10px !important;
    padding-top: 12px !important;
    color: #f87171 !important;
    background: transparent !important;
  }

  .sidebar-footer {
    display: none;
    margin-top: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar.is-open .sidebar-footer {
    display: flex;
    animation: sidebarDropdown 0.22s ease-out;
  }

  .main-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    min-height: 0;
  }

  .top-header {
    position: static;
    padding: 10px 16px;
    min-height: 52px;
  }

  .content {
    padding: 18px 14px 48px !important;
  }

  .main-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .page-header .btn-primary,
  .page-header .btn-secondary {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .card,
  .form-card {
    padding: 18px;
  }

  .status-banner {
    padding: 16px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .history-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-stats .stat-card {
    padding: 16px;
  }

  .history-stats .stat-value {
    font-size: 24px;
  }

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

  .form-group-full {
    grid-column: auto;
  }

  .form-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form-actions>* {
    width: 100%;
    min-height: 44px;
    text-align: center;
    justify-content: center;
  }

  .table-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .history-table {
    min-width: 580px;
    width: 100%;
  }

  .progress-stepper {
    padding-bottom: 8px;
    margin-bottom: 20px;
  }

  .price-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-footer {
    padding: 18px 14px;
    flex-direction: column;
  }
}

@media print {

  .sidebar,
  .top-header,
  .site-footer,
  .page-header>a,
  .side-stack,
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    display: none !important;
  }

  .main-wrapper {
    margin: 0;
    width: 100%;
  }

  body {
    background: #fff;
  }

  .content {
    padding: 0;
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ==========================================================================
   URT Service Progress Stepper & Status Badge Components
   ========================================================================== */
.progress-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 24px 0 16px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.progress-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  max-width: 90px;
  line-height: 1.3;
}

.step-item.is-done .step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.step-item.is-done .step-label {
  color: #065f46;
}

.step-item.is-current .step-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-item.is-current .step-label {
  color: #1d4ed8;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.status-pill--warning,
.status-pill.warning {
  background: #fef3c7;
  color: #b45309;
}

.status-pill--success,
.status-pill.success {
  background: #d1fae5;
  color: #047857;
}

.status-pill--info,
.status-pill.info {
  background: #e0f2fe;
  color: #0369a1;
}

.status-pill--danger,
.status-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill--neutral,
.status-pill.neutral {
  background: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   Customer Dashboard & Details Styles (beranda-pelanggan.html & portals)
   ========================================================================== */
.dashboard-main-area {
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px max(32px, calc((100% - 1200px) / 2 + 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-role-blue {
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.status-online-text {
  font-size: 13px;
  color: #64748b;
}

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

.btn-icon-circle {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.btn-icon-circle:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-icon-circle svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex-shrink: 0 !important;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-container {
  padding: 28px 32px 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow-blue {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.page-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary-action:hover {
  background: #1d4ed8;
}

/* 3 Stat Cards Row */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-box-title {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.stat-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-blue { color: #2563eb; }
.stat-icon-green { color: #16a34a; }
.stat-icon-orange { color: #ea580c; }

.stat-box-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-accent-bar {
  width: 4px;
  height: 32px;
  border-radius: 4px;
}

.bar-blue { background: #2563eb; }
.bar-green { background: #16a34a; }
.bar-orange { background: #ea580c; }

.stat-big-number {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

/* Middle 2-Column Grid */
.middle-columns-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  margin-bottom: 24px;
}

.content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* Left Card: Tiket Aktif */
.ticket-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ticket-tag-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ticket-id-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.badge-status-orange-pill {
  background: #fffbeb;
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.device-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.device-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.device-name-text {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.device-complaint-text {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Segmented Progress Stepper */
.stepper-section {
  margin: 20px 0 18px;
}

.stepper-label-heading {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}

.segmented-progress-bar {
  display: flex;
  gap: 6px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.progress-segment {
  flex: 1;
  height: 100%;
  border-radius: 999px;
}

.seg-green { background: #10b981; }
.seg-orange { background: #ea580c; }
.seg-gray { background: #e2e8f0; }

.stepper-stages-labels {
  display: flex;
  justify-content: space-between;
}

.stage-step-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.stage-step-label.is-active {
  color: #ea580c;
  font-weight: 700;
}

/* Meta Info Box */
.ticket-meta-info-strip {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}

.meta-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-info-tag {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta-info-data {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.meta-price-val {
  color: #ea580c;
  font-size: 15px;
}

.btn-view-detail-service {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-view-detail-service:hover {
  background: #1d4ed8;
}

/* Right Card: Perjalanan Servis (Timeline) */
.timeline-card-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
}

.timeline-flow {
  display: flex;
  flex-direction: column;
}

.timeline-flow .timeline-step {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
}

.timeline-flow .timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-flow .timeline-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 5px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.timeline-flow .timeline-step:last-child::before {
  display: none;
}

.timeline-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

.circle-blue {
  background: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.circle-gray {
  background: #cbd5e1;
}

.timeline-step-body {
  flex: 1;
}

.timeline-step-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.timeline-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.timeline-step-time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.timeline-step-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Bottom Card: Servis Sebelumnya */
.prev-service-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.clean-table th {
  text-align: left;
  padding: 12px 14px;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.clean-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.clean-table tr:last-child td {
  border-bottom: none;
}

.table-ticket-code {
  color: #0f172a;
  font-weight: 700;
}

.table-device-bold {
  color: #0f172a;
  font-weight: 700;
}

.status-pill-green {
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}

/* Additional Customer Subpage Styles */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.cost-table th, .cost-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.cost-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}

.cost-table .text-right {
  text-align: right;
}

.cost-table .total-row td {
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid #cbd5e1;
  border-bottom: none;
  color: var(--text-dark);
}

.dl-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  margin: 16px 0;
  font-size: 14px;
}

.dl-grid dt {
  color: var(--text-muted);
  font-weight: 500;
}

.dl-grid dd {
  font-weight: 600;
  color: var(--text-dark);
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.badge-danger-tag {
  background: #fee2e2;
  color: #b91c1c;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pickup-notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}

.pickup-step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.pickup-step-num {
  width: 24px;
  height: 24px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.logout-nav-item {
  color: #ef4444 !important;
  margin-top: auto;
}

.logout-nav-item:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
}

.alert-success {
  background-color: #d1fae5;
  border: 1px solid #34d399;
  color: #065f46;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 4px;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.timeline-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  z-index: 1;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ffffff;
}

.timeline-list li:last-child {
  margin-bottom: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.kv-table td {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.kv-table td:first-child {
  width: 38%;
  color: var(--text-muted);
  font-weight: 500;
}

.kv-table td:last-child {
  color: var(--text-dark);
  font-weight: 600;
}

.cost-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

@media (max-width: 1150px) {
  .stats-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  .middle-columns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .dashboard-container {
    padding: 20px 16px 40px;
  }
  .topbar-header {
    padding: 12px 16px;
  }
  .ticket-meta-info-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .stats-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}