/* ============================================================
   Sistema de Suporte Técnico — Design System 2026
   Cores: #081808 / #0d4f0c / #1e7e34 / #28a745
   ============================================================ */

/* 1. Variáveis & Reset */
:root {
  --sidebar-dark:    #081808;
  --sidebar-mid:     #0d4f0c;
  --sidebar-light:   #1e7e34;
  --sidebar-width:   248px;

  --green:           #1e7e34;
  --green-hover:     #28a745;
  --green-active:    #155724;
  --green-soft:      #e8f5e9;
  --green-xsoft:     #f1fff4;

  --bg:              #f4f6fb;
  --card:            #ffffff;
  --border:          #e4e8f0;
  --border-light:    #f0f2f8;

  --text:            #1a2236;
  --text-sub:        #5a6682;
  --text-muted:      #9aa5be;

  --shadow-xs:   0 1px 3px rgba(0,0,0,.05);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md:   0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);

  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --trans:       0.2s var(--ease);
  --trans-slow:  0.35s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 2. Layout */
.container-fluid { padding: 0; }
.row { margin: 0; }

/* 3. Sidebar */
.sidebar {
  min-height: 100vh;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--sidebar-dark) 0%, var(--sidebar-mid) 60%, #0f6b0d 100%);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: transform var(--trans-slow);
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-logo img {
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-section {
  padding: 0 12px;
  margin-bottom: 4px;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.35);
  padding: 16px 8px 6px;
}
.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72) !important;
  border-radius: var(--radius-sm);
  margin: 2px 0;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--trans);
  position: relative;
  white-space: nowrap;
}
.nav-link i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: .85;
  flex-shrink: 0;
}
.nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.10);
  transform: translateX(2px);
}
.nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.15);
  box-shadow: inset 3px 0 0 var(--green-hover);
}
.nav-link.active i { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  text-decoration: none;
  transition: background var(--trans);
}
.sidebar-user:hover { background: rgba(255,255,255,.13); }
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-hover), var(--sidebar-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info .user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.2;
}
.sidebar-user-info .user-role {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

/* 4. Main content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 0;
  transition: margin var(--trans-slow);
}

/* 5. Page header / Topbar */
.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.95);
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title i {
  color: var(--green);
  font-size: 18px;
}
.page-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.page-body {
  padding: 24px 28px;
}

/* 6. Cards */
.card {
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--card);
  transition: box-shadow var(--trans), transform var(--trans);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow) !important;
}
.card-header {
  background: #fff !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 14px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h5, .card-header .h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h5 i, .card-header .h5 i { color: var(--green); }
.card-body { padding: 20px !important; }
.card-footer {
  background: var(--bg) !important;
  border-top: 1px solid var(--border-light) !important;
  padding: 12px 20px !important;
}

/* 7. Stat cards — Dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
  cursor: default;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.red    { background: #fff1f0; color: #e53e3e; }
.stat-icon.orange { background: #fffaf0; color: #d69e2e; }
.stat-icon.green  { background: #f0fff4; color: #38a169; }
.stat-icon.blue   { background: #ebf8ff; color: #3182ce; }
.stat-icon.purple { background: #faf5ff; color: #805ad5; }
.stat-icon.gray   { background: #f7fafc; color: #718096; }
.stat-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* 8. Buttons */
.btn {
  border-radius: var(--radius-sm) !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  transition: all var(--trans) !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
}
.btn-sm { font-size: 12.5px; padding: 5px 12px; }
.btn-lg { font-size: 15px; padding: 11px 22px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-hover)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(30,126,52,.3) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-hover), #2ecc71) !important;
  box-shadow: 0 4px 14px rgba(30,126,52,.4) !important;
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
  border: none !important;
  color: #fff !important;
}
.btn-danger {
  background: linear-gradient(135deg, #e53e3e, #fc4949) !important;
  border: none !important;
  color: #fff !important;
}
.btn-warning {
  background: linear-gradient(135deg, #d69e2e, #ecc94b) !important;
  border: none !important;
  color: #fff !important;
}
.btn-info {
  background: linear-gradient(135deg, #3182ce, #4299e1) !important;
  border: none !important;
  color: #fff !important;
}
.btn-secondary {
  background: #f0f2f8 !important;
  border: 1px solid var(--border) !important;
  color: var(--text-sub) !important;
}
.btn-secondary:hover {
  background: #e4e8f0 !important;
  color: var(--text) !important;
}

.btn-outline-primary {
  border: 1.5px solid var(--green) !important;
  color: var(--green) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: var(--green) !important;
  color: #fff !important;
}
.btn-outline-secondary {
  border: 1.5px solid var(--border) !important;
  color: var(--text-sub) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: var(--bg) !important;
  border-color: var(--text-sub) !important;
}
.btn-outline-success {
  border: 1.5px solid var(--green) !important;
  color: var(--green) !important;
  background: transparent !important;
}
.btn-outline-success:hover {
  background: var(--green) !important;
  color: #fff !important;
}
.btn-outline-danger {
  border: 1.5px solid #e53e3e !important;
  color: #e53e3e !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: #e53e3e !important;
  color: #fff !important;
}
.btn-outline-info {
  border: 1.5px solid #3182ce !important;
  color: #3182ce !important;
  background: transparent !important;
}
.btn-outline-info:hover {
  background: #3182ce !important;
  color: #fff !important;
}
.btn-outline-warning {
  border: 1.5px solid #d69e2e !important;
  color: #d69e2e !important;
  background: transparent !important;
}
.btn-outline-warning:hover {
  background: #d69e2e !important;
  color: #fff !important;
}

/* 9. Forms */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-control, .form-select {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  color: var(--text) !important;
  background: #fff !important;
  transition: border-color var(--trans), box-shadow var(--trans) !important;
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(30,126,52,.12) !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }
textarea.form-control { min-height: 100px; resize: vertical; }
.input-group-text {
  border: 1.5px solid var(--border) !important;
  background: var(--bg) !important;
  color: var(--text-sub) !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
  padding: 9px 14px !important;
}
.input-group .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.form-check-input:checked {
  background-color: var(--green) !important;
  border-color: var(--green) !important;
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(30,126,52,.15) !important;
}
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 10. Badges / Status chips */
.badge {
  border-radius: 50px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .2px;
}
.bg-danger   { background: #fff1f0 !important; color: #c53030 !important; border: 1px solid #fecaca !important; }
.bg-warning  { background: #fffbeb !important; color: #92400e !important; border: 1px solid #fde68a !important; }
.bg-success  { background: #f0fff4 !important; color: #22543d !important; border: 1px solid #9ae6b4 !important; }
.bg-primary  { background: #ebf8ff !important; color: #1a365d !important; border: 1px solid #90cdf4 !important; }
.bg-secondary{ background: #f7fafc !important; color: #4a5568 !important; border: 1px solid #e2e8f0 !important; }
.bg-info     { background: #ebf8ff !important; color: #2c5282 !important; border: 1px solid #bee3f8 !important; }
.bg-dark     { background: #1a202c !important; color: #e2e8f0 !important; border: 1px solid #4a5568 !important; }
.bg-light    { background: #f7fafc !important; color: #4a5568 !important; border: 1px solid #e2e8f0 !important; }

/* 11. Tables */
.table-responsive { border-radius: var(--radius); overflow: hidden; }
.table {
  margin: 0 !important;
  font-size: 13.5px;
}
.table thead th {
  background: var(--bg) !important;
  border-bottom: 2px solid var(--border) !important;
  color: var(--text-sub) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 11px 16px !important;
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border-light) !important;
  vertical-align: middle !important;
  color: var(--text);
}
.table tbody tr:last-child td { border-bottom: none !important; }
.table-hover tbody tr:hover td {
  background: var(--green-xsoft) !important;
}
.table tbody tr {
  transition: background var(--trans);
}

/* 12. Alerts */
.alert {
  border-radius: var(--radius-sm) !important;
  border: none !important;
  padding: 14px 18px !important;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: #f0fff4 !important; color: #22543d !important; border-left: 4px solid #48bb78 !important; }
.alert-danger  { background: #fff5f5 !important; color: #c53030 !important; border-left: 4px solid #fc8181 !important; }
.alert-warning { background: #fffbeb !important; color: #7b341e !important; border-left: 4px solid #f6ad55 !important; }
.alert-info    { background: #ebf8ff !important; color: #2c5282 !important; border-left: 4px solid #63b3ed !important; }

/* 13. Pagination */
.pagination { gap: 4px; }
.page-item .page-link {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-sub) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  transition: all var(--trans);
}
.page-item.active .page-link {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(30,126,52,.3);
}
.page-item .page-link:hover {
  background: var(--green-soft) !important;
  border-color: var(--green) !important;
  color: var(--green) !important;
}

/* 14. Progress bar */
.progress {
  height: 6px !important;
  border-radius: 99px !important;
  background: var(--border-light) !important;
  overflow: visible;
}
.progress-bar {
  border-radius: 99px !important;
  transition: width 0.6s var(--ease);
}
.progress-bar.bg-danger  { background: #fc8181 !important; }
.progress-bar.bg-warning { background: #f6ad55 !important; }
.progress-bar.bg-success { background: #48bb78 !important; }
.progress-bar.bg-secondary { background: #cbd5e0 !important; }
.progress-bar.bg-primary { background: #63b3ed !important; }

/* 15. Timeline */
.status-timeline {
  position: relative;
  padding-left: 28px;
}
.status-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 18px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border);
  z-index: 1;
}
.timeline-item.done::before { border-color: var(--green); background: var(--green); }
.timeline-item.active::before { border-color: #d69e2e; background: #d69e2e; }
.timeline-item strong { font-size: 13.5px; font-weight: 600; }
.timeline-item small { color: var(--text-muted); }

/* 16. Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(30,126,52,.4);
  z-index: 200;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(30,126,52,.5);
}

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* 17. Info items (ticket details) */
.info-item {
  padding: 12px 14px;
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg);
  margin-bottom: 10px;
  font-size: 13.5px;
}
.info-item strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 700; margin-bottom: 3px; }

/* 18. Quick stats bar */
.quick-stats-bar {
  display: flex;
  gap: 0;
  background: linear-gradient(135deg, var(--sidebar-dark), var(--sidebar-mid));
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.qstat {
  flex: 1;
  text-align: center;
  padding: 18px 12px;
  color: rgba(255,255,255,.7);
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background var(--trans);
}
.qstat:last-child { border-right: none; }
.qstat:hover { background: rgba(255,255,255,.07); }
.qstat .num { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -1px; display: block; line-height: 1; }
.qstat .lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* 19. Search / filter bar */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

/* 20. Attachment item */
.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg);
  transition: background var(--trans);
}
.attachment-item:hover { background: var(--green-xsoft); }
.attachment-item:last-child { margin-bottom: 0; }

/* 21. Modal */
.modal-content {
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border-light) !important;
  padding: 18px 24px !important;
}
.modal-footer {
  border-top: 1px solid var(--border-light) !important;
  padding: 14px 24px !important;
}
.modal-body { padding: 20px 24px !important; }

/* 22. Dropdown */
.dropdown-menu {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 6px !important;
}
.dropdown-item {
  border-radius: var(--radius-xs) !important;
  font-size: 13.5px;
  padding: 8px 12px !important;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-item:hover { background: var(--green-soft) !important; color: var(--green) !important; }
.dropdown-item.text-danger { color: #e53e3e !important; }
.dropdown-item.text-danger:hover { background: #fff5f5 !important; }
.dropdown-divider { border-color: var(--border-light) !important; margin: 4px !important; }

/* 23. Responsive — mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0 !important;
  }
  .sidebar-toggle {
    display: flex !important;
  }
  .page-header {
    padding: 12px 16px;
  }
  .page-body {
    padding: 16px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-title { font-size: 17px; }
  .quick-stats-bar { border-radius: var(--radius-sm); }
  .qstat .num { font-size: 20px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qstat { padding: 12px 8px; }
  .qstat .num { font-size: 18px; }
}

/* 24. Detail items (ticket details page) */
.detail-item {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* 25. Prose content (preformatted text sections) */
.prose-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 26. New inline timeline (card-based, no absolute lines) */
.timeline {
  padding: 8px 0;
}
.timeline .timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.timeline .timeline-item:last-child { border-bottom: none; }
.timeline .timeline-item::before {
  content: '';
  position: static;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  border: none;
}
.timeline .timeline-item.green::before  { background: var(--green); }
.timeline .timeline-item.orange::before { background: #d69e2e; }
.timeline .timeline-item.blue::before   { background: #3182ce; }
.timeline .timeline-item.red::before    { background: #e53e3e; }
.timeline .timeline-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.timeline .timeline-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 27. KB article link items */
.kb-link-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--trans);
}
.kb-link-item:last-of-type { border-bottom: none; }
.kb-link-item:hover { background: var(--green-xsoft); }

/* 28. Print styles */
@media print {
  .sidebar, .sidebar-toggle, .sidebar-overlay, .page-header .page-actions, #statusForm { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* 24. Utilities */
.text-green   { color: var(--green) !important; }
.text-sub     { color: var(--text-sub) !important; }
.text-muted   { color: var(--text-muted) !important; }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }
.rounded-pill-sm { border-radius: 99px; }

/* 25. Scrollbar global */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* 26. Print */
@media print {
  .sidebar, .sidebar-toggle, .sidebar-overlay, .page-header .btn { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
