/* Global chrome aligned with home/login visual language */
.custom-header {
  min-height: 72px;
  background:
    radial-gradient(circle at left, rgba(96, 106, 118, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(244, 246, 249, 0.98) 0%, rgba(243, 247, 252, 0.98) 100%);
  border-bottom: 1px solid rgba(146, 154, 165, 0.16);
  box-shadow: 0 12px 30px rgba(3, 9, 22, 0.24) !important;
  backdrop-filter: blur(18px);
}

.custom-brand {
  display: flex;
  align-items: center;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(146, 154, 165, 0.12);
}

.custom-brand img {
  filter: brightness(0) saturate(100%) opacity(0.92);
}

.custom-header-tools {
  gap: 0.75rem;
}

.custom-header-label,
.custom-header .text-white-50 {
  color: rgba(64, 80, 106, 0.62) !important;
}

.custom-header-branch {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(146, 154, 165, 0.14);
  background: rgba(20, 32, 51, 0.04);
  color: #18253a !important;
  font-size: 0.92rem;
}

.custom-header-skin .form-select {
  border: 1px solid rgba(146, 154, 165, 0.16);
  border-radius: 14px;
  background-color: rgba(20, 32, 51, 0.06);
  color: #18253a;
}

.custom-header-skin .form-select:focus {
  border-color: rgba(111, 120, 132, 0.42);
  box-shadow: 0 0 0 0.2rem rgba(111, 120, 132, 0.12);
}

.custom-header-cart {
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(146, 154, 165, 0.16);
  background: rgba(20, 32, 51, 0.04);
  color: #5f6774 !important;
}

.custom-header-cart:hover {
  background: rgba(96, 106, 118, 0.08);
}

.custom-sidebar {
  background: linear-gradient(180deg, #e9edf2 0%, #e1e7ee 100%);
  border-right: 1px solid rgba(146, 154, 165, 0.14);
  min-height: 100vh;
}

.custom-sidebar-inner {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at top, rgba(96, 106, 118, 0.08), transparent 24%),
    rgba(242, 245, 248, 0.94);
  border-right: 1px solid rgba(146, 154, 165, 0.12);
  color: #18253a;
}

.custom-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  color: rgba(32, 50, 74, 0.78);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  border: 1px solid transparent;
}

.custom-sidebar .nav-link i {
  color: rgba(95, 103, 116, 0.88);
}

.custom-sidebar .nav-link:hover,
.custom-sidebar .nav-link.active {
  color: #18253a;
  background: rgba(20, 32, 51, 0.05);
  border-color: rgba(146, 154, 165, 0.14);
  transform: translateX(2px);
}

.custom-sidebar .nav-link.active {
  font-weight: 600;
}

.navbar-brand img {
  height: 40px;
}

.navbar-brand {
  background-color: transparent;
  box-shadow: none;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  background-color: #008060;
  border-color: #008060;
  color: #fff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nav-link[data-bs-toggle="collapse"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sidebar submenu triggers: do not rotate chevrons; highlight when open */
.nav-link[data-bs-toggle="collapse"] i {
  transition: color 0.2s ease;
  transform: none !important;
}
.nav-link[data-bs-toggle="collapse"].collapsed i {
  transform: none !important;
}
/* When the submenu is expanded (trigger lacks .collapsed), highlight link + icons */
.custom-sidebar .nav-link[data-bs-toggle="collapse"]:not(.collapsed) {
  color: #18253a;
  font-weight: 600;
  background: rgba(96, 106, 118, 0.08);
  border-color: rgba(96, 106, 118, 0.14);
}
.custom-sidebar .nav-link[data-bs-toggle="collapse"]:not(.collapsed) i {
  color: #5f6774;
}

.custom-sidebar .collapse .nav-link {
  padding: 0.55rem 0.8rem;
  margin-left: 0.35rem;
  font-size: 0.92rem;
  color: rgba(58, 76, 102, 0.72);
}

.custom-sidebar .collapse .nav-link:hover,
.custom-sidebar .collapse .nav-link.active {
  color: #18253a;
  background: rgba(20, 32, 51, 0.04);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 100%;
  overflow-y: auto;
  background-color: #f1f4f7;
  border-left: 1px solid #dfe3e8;
  padding: 1rem;
  z-index: 1040;
}

.cart-sidebar.collapsed {
  transform: translateX(100%);
}

.cart-sidebar-open-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
  display: none;
}

.cart-sidebar.collapsed + .cart-sidebar-open-btn {
  display: block;
}

@media (min-width: 768px) {
  body.with-cart-sidebar {
    padding-right: 320px;
  }
}

/* Fixed size for usage modal with scrollable body */
#usageModal .modal-dialog {
  max-width: 650px;
}

#usageModal .modal-body {
  max-height: 400px;
  overflow-y: auto;
}

#usageBody th {
  background-color: #f8f9fa;
}

.year-row {
  cursor: pointer;
}

/* Rounded border style for tables and containers */
.table {
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  overflow: visible;
}

.rounded-container {
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  padding: 1rem;
}

.table-responsive {
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  padding: .5rem;
}
/* Allow dropdowns inside responsive tables to overflow properly */
.neu-responsive-table { overflow: visible !important; }
.neu-theme .dropdown-menu { z-index: 2000; }

/* Disable sidebar menu links when no branch is selected */
.disabled-menu .nav-link {
  pointer-events: none;
  color: rgba(92, 108, 132, 0.4);
}

/* Keep logout link active even when menu disabled */
.disabled-menu #logout-link {
  pointer-events: auto;
  color: #18253a;
}

/* Smaller font size for classification table to improve input visibility */
.classification-table {
  font-size: 0.65rem;
}

/* ===================== */
/* Neumorphism theme (opt-in via .neu-theme) */
/* ===================== */

:root {
  --neu-bg: #f1f4f7;            /* surface (cards/controls) */
  --neu-page-bg: #eef2f7;       /* page background to increase contrast */
  --neu-text: #3f4d5a;          /* primary text */
  --neu-shadow-dark: #d3d3d3;   /* neutral gray shadow */
  --neu-shadow-light: #fafbfd;  /* light shadow */
  --neu-radius: 16px;
  --neu-radius-pill: 28px;
  --neu-accent-start: #1e90ff;  /* accent gradient */
  --neu-accent-end: #00d4ff;
}

.neu-theme {
  background: var(--neu-bg);
  color: var(--neu-text);
  border-radius: var(--neu-radius);
  padding: .25rem;
}

/* Optional stronger contrast wrapper (closer to reference). Use: <div class="neu-theme neu-contrast"> */
.neu-theme.neu-contrast {
  background: var(--neu-page-bg);
}

/* Surfaces */
.neu-theme .card,
.neu-theme .rounded-container,
.neu-theme .table-responsive,
.neu-theme .cart-sidebar {
  background: var(--neu-bg) !important;
  border: none !important;
  border-radius: var(--neu-radius) !important;
  box-shadow: 9px 9px 18px var(--neu-shadow-dark), -9px -9px 18px var(--neu-shadow-light) !important;
}

/* Pressed/inset look for inputs */
.neu-theme .form-control,
.neu-theme .form-select,
.neu-theme input[type="date"],
.neu-theme textarea {
  background: var(--neu-bg);
  border: none;
  border-radius: var(--neu-radius-pill);
  color: var(--neu-text);
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
}
.neu-theme .form-control:focus,
.neu-theme .form-select:focus,
.neu-theme textarea:focus {
  outline: none;
  box-shadow: inset 6px 6px 10px var(--neu-shadow-dark), inset -6px -6px 10px var(--neu-shadow-light);
}

/* Buttons: convex by default, pressed on active */
.neu-theme .btn {
  border: none;
  border-radius: var(--neu-radius-pill);
  background: var(--neu-bg);
  color: var(--neu-text);
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light);
  transition: transform .05s ease, box-shadow .15s ease;
}
.neu-theme .btn:active {
  box-shadow: inset 6px 6px 12px var(--neu-shadow-dark), inset -6px -6px 12px var(--neu-shadow-light);
}

/* Keep brand color on primary, but with neu shadow */
.neu-theme .btn-primary,
.neu-theme .btn-primary:hover,
.neu-theme .btn-primary:focus {
  background: linear-gradient(145deg, var(--neu-accent-start), var(--neu-accent-end));
  color: #fff;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.08), -6px -6px 12px rgba(255,255,255,0.9);
}

.neu-theme .btn-outline-primary {
  background: var(--neu-bg);
  color: #0d6efd;
}

/* Restore native look/behavior for checkboxes inside neu theme */
.neu-theme .form-check-input {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  background-color: #fff;
  border: 1px solid #adb5bd;
  border-radius: 0.25rem;
  box-shadow: none !important;
  transition: none !important; /* avoid visual lag on toggle */
}
.neu-theme .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* macOS-like segmented +/- control for card footers */
.neu-theme .segmented {
  display: inline-flex;
  align-items: center;
  background: #f1f3f5;
  border: 1px solid #cfd4da;
  border-radius: 10px;
  overflow: hidden;
}
.neu-theme .segmented .btn {
  border: 0;
  background: transparent;
  color: #495057;
  padding: .35rem .6rem;
  line-height: 1;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.neu-theme .segmented .btn + .btn,
.neu-theme .segmented .btn + .segmented-count,
.neu-theme .segmented .segmented-count + .btn {
  border-left: 1px solid #cfd4da;
}
.neu-theme .segmented .btn:hover { background: #e9ecef; }
.neu-theme .segmented .btn:active { background: #dee2e6; }
.neu-theme .segmented .btn i { pointer-events: none; }
.neu-theme .segmented .segmented-count {
  padding: .2rem .6rem;
  min-width: 2.2rem;
  text-align: center;
  font-weight: 600;
  color: #495057;
  background: transparent;
}

/* Isolate the extract section to reduce reflow when hiding/showing */
#doc-extract-section {
  contain: content;
}

/* Motorcycles list compact styling */
.moto-list-table {
  font-size: 0.85rem;
  white-space: nowrap;
}
.moto-list-table th,
.moto-list-table td {
  vertical-align: middle;
}

/* Cartolas RSLTDA compact */
.transfer-compact {
  /* ~15% más pequeño que 0.75rem => ~0.64rem */
  font-size: 0.64rem;
  white-space: nowrap;
  line-height: 1.1;
}
.transfer-compact th,
.transfer-compact td {
  padding: 0.2rem 0.3rem; /* aún más compacto */
}

/* Sidebar compact toggle (global) */
body.sidebar-compact #sidebarMenu{flex:0 0 68px!important;max-width:68px!important}
body.sidebar-compact #sidebarMenu .sidebar-sticky{padding:0.35rem!important}
body.sidebar-compact #sidebarMenu .nav-link{display:flex;justify-content:center;align-items:center;padding:.5rem 0;font-size:0}
body.sidebar-compact #sidebarMenu .nav-link i{margin:0;font-size:1.1rem}
body.sidebar-compact #sidebarMenu .fa-chevron-down{display:none!important}
body.sidebar-compact #sidebarMenu .collapse{display:none!important}
body.sidebar-compact #sidebarMenu .ms-3{display:none!important}
body.sidebar-compact .container-fluid .row > main{width:calc(100% - 68px)!important;max-width:calc(100% - 68px)!important;flex:0 0 calc(100% - 68px)!important}

/* Sidebar flyout (submenus) global */
.sidebar-flyout{position:fixed;left:68px;min-width:220px;max-width:320px;background:linear-gradient(180deg, rgba(242,245,248,.98) 0%, rgba(232,237,243,.98) 100%);border:1px solid rgba(129,180,255,.16);border-radius:16px;box-shadow:0 18px 36px rgba(116,129,146,.18);z-index:1050;padding:.35rem}
.sidebar-flyout ul{list-style:none;margin:0;padding:0}
.sidebar-flyout a{display:block;padding:.45rem .65rem;color:#18253a;text-decoration:none;border-radius:10px}
.sidebar-flyout a:hover{background:rgba(96,106,118,.1);color:#5f6774}

.custom-sidebar-toggle {
  margin-top: 0.5rem;
  border-radius: 14px;
  border-color: rgba(146, 154, 165, 0.16);
  color: rgba(32, 50, 74, 0.8);
  background: rgba(20, 32, 51, 0.04);
}

.custom-sidebar-toggle:hover,
.custom-sidebar-toggle:focus {
  color: #18253a;
  border-color: rgba(96, 106, 118, 0.24);
  background: rgba(96, 106, 118, 0.08);
}

.app-messages-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(146, 154, 165, 0.16);
  background: linear-gradient(180deg, rgba(242, 245, 248, 0.94) 0%, rgba(243, 247, 252, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(3, 9, 22, 0.18);
  color: #18253a;
}

.app-message-copy {
  color: #18253a;
  font-weight: 600;
}

.app-message-close {
  opacity: 1;
  filter: invert(1) brightness(1.4);
}

.app-message-success {
  border-color: rgba(34, 197, 94, 0.26);
  background: linear-gradient(180deg, rgba(232, 250, 239, 0.96) 0%, rgba(220, 244, 228, 0.98) 100%);
}

.app-message-info {
  border-color: rgba(111, 120, 132, 0.26);
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.98) 0%, rgba(224, 239, 252, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(3, 9, 22, 0.24), inset 0 0 0 1px rgba(111, 120, 132, 0.06);
}

.app-message-error,
.app-message-danger {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(180deg, rgba(255, 238, 240, 0.98) 0%, rgba(252, 228, 232, 0.98) 100%);
}

.app-message-warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(180deg, rgba(255, 247, 229, 0.98) 0%, rgba(253, 239, 205, 0.98) 100%);
}

/* Tables: keep Bootstrap layout but soften container */
.neu-theme .table {
  border: none;
}

/* Badges subtle */
.neu-theme .badge {
  border-radius: 999px;
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light);
}

/* Utility for small circular icon buttons */
.neu-theme .btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
}

/* Table row status colors adapted to neu surfaces */
.neu-theme .table-success { background-color: rgba(25, 135, 84, 0.08) !important; }
.neu-theme .table-danger { background-color: rgba(220, 53, 69, 0.08) !important; }
.neu-theme .table-primary { background-color: rgba(13, 110, 253, 0.08) !important; }

/* Search bar style (apply class .neu-search to an input) */
.neu-theme .neu-search {
  border-radius: 999px;
  padding-left: 2.25rem;
  position: relative;
}
.neu-theme .neu-search::placeholder { color: #94a3b8; }

/* Progress bar with gradient accent */
.neu-theme .progress {
  height: 12px;
  background: var(--neu-bg);
  border-radius: var(--neu-radius-pill);
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
}
.neu-theme .progress .progress-bar {
  background: linear-gradient(90deg, var(--neu-accent-start), var(--neu-accent-end));
  border-radius: var(--neu-radius-pill);
}

/* Pills for tabs or badges */
.neu-theme .nav-pills .nav-link {
  border-radius: var(--neu-radius-pill);
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light);
}
.neu-theme .nav-pills .nav-link.active {
  color: #fff;
  background: linear-gradient(145deg, var(--neu-accent-start), var(--neu-accent-end));
}

/* ============================= */
/* Neumorphic table integration  */
/* ============================= */
/* Default table style inside neu-theme keeps Bootstrap defaults.
   Specific neumorphic table variant below (.neu-table and .neu-table-card). */
.neu-theme .table { border: none; background: transparent; }

/* Compact header-row gap on mobile */
@media (max-width: 576px) {
  .neu-theme .table { border-spacing: 0 .5rem; }
}

/* ============================= */
/* Responsive table (Themesberg) */
/* ============================= */
.neu-theme .neu-responsive-table { width: 100%; }
.neu-theme .neu-responsive-table table { border-spacing: 0 .75rem; }

@media (max-width: 768px) {
  .neu-theme .neu-responsive-table table thead { display: none; }
  .neu-theme .neu-responsive-table table tbody tr {
    display: block;
    margin-bottom: 1rem;
    background: var(--neu-bg);
    border-radius: var(--neu-radius);
    box-shadow: 9px 9px 18px var(--neu-shadow-dark), -9px -9px 18px var(--neu-shadow-light);
    /* Allow dropdowns to overflow on mobile cards */
    overflow: visible;
  }
  .neu-theme .neu-responsive-table table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
  }
  .neu-theme .neu-responsive-table table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #8a97a8;
    margin-right: 1rem;
  }
}

/* Page background helper to match Themesberg */
body.neu-page {
  background: var(--neu-page-bg);
}

.app-main-content {
  background: linear-gradient(180deg, #e9edf2 0%, #e1e7ee 100%);
  color: #18253a;
  min-height: calc(100vh - 72px);
}

/* ============================= */
/* Neumorphism UI style (like demo) */
/* Card wrapper and clean rows without per-cell shadows */
.neu-theme .neu-table-card {
  background: var(--neu-bg);
  border-radius: var(--neu-radius);
  box-shadow: 12px 12px 24px var(--neu-shadow-dark), -12px -12px 24px var(--neu-shadow-light);
  padding: .25rem; /* small breathing */
}

.neu-theme .neu-table {
  border-collapse: separate; /* allows rounded corners */
  border-spacing: 0;
  width: 100%;
  border-radius: var(--neu-radius);
  /* Allow dropdown menus to overflow table bounds (avoid clipping) */
  overflow: visible;
}
.neu-theme .neu-table thead th:first-child { border-top-left-radius: var(--neu-radius); }
.neu-theme .neu-table thead th:last-child { border-top-right-radius: var(--neu-radius); }
.neu-theme .neu-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--neu-radius); }
.neu-theme .neu-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--neu-radius); }
.neu-theme .neu-table thead th {
  background: #e9edf5;
  color: #596b7a;
  border: none;
  font-weight: 600;
}
.neu-theme .neu-table tbody td {
  border: none;
  background: transparent;
  color: var(--neu-text);
}
.neu-theme .neu-table tbody tr + tr td { /* subtle separators */
  border-top: 1px solid rgba(0,0,0,0.04);
}
.neu-theme .neu-table tbody tr:nth-child(odd) td { background: rgba(0,0,0,0.015); }
.neu-theme .neu-table tbody tr:hover td { background: rgba(0,0,0,0.03); }

/* Make responsive container also use the card wrapper style */
.neu-theme .neu-responsive-table.neu-table-card table { width: 100%; }

.text-soft-danger {
  color: #c75252;
}

.text-soft-success {
  color: #1c7c54;
}

/* ============================= */
/* Home pseudo-desktop */
/* ============================= */
.desktop-wrap {
  background: radial-gradient(circle at 20% 20%, rgba(30,144,255,0.18), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(0,212,255,0.14), transparent 30%),
              var(--neu-page-bg);
  box-shadow: inset 10px 10px 20px rgba(0,0,0,0.04), inset -10px -10px 20px rgba(255,255,255,0.9);
  border: 1px solid #dfe3e8;
}
.desktop-signal span {
  display: inline-block;
  width: 6px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(145deg, #1e90ff, #00d4ff);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.12);
}
.desktop-signal span + span { margin-left: 4px; }
.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  min-height: 320px; /* asegura al menos dos filas de iconos visibles */
  align-content: start;
  overflow: visible;
}
.desktop-icon {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem .75rem;
  border-radius: var(--neu-radius);
  background: linear-gradient(145deg, #fefefe, #eef2f7);
  box-shadow: 10px 10px 20px rgba(0,0,0,0.05), -10px -10px 20px rgba(255,255,255,0.9);
  transition: transform .12s ease, box-shadow .12s ease;
}
.desktop-icon:hover {
  transform: translateY(-3px);
  box-shadow: 12px 12px 24px rgba(0,0,0,0.07), -12px -12px 24px rgba(255,255,255,0.9);
}
.desktop-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: none;
}
.desktop-icon .icon-bubble {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ebeff4, #f1f4f7);
  box-shadow: inset 6px 6px 12px rgba(0,0,0,0.04), inset -6px -6px 12px rgba(255,255,255,0.8), 8px 8px 16px rgba(0,0,0,0.05);
  color: #1e90ff;
  font-size: 1.6rem;
}
.desktop-icon .icon-label {
  font-weight: 600;
  font-size: .95rem;
  color: #1f2937;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.desktop-icon.has-children .icon-label::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: .35rem;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280; /* caret sin depender de fuentes externas */
}
.desktop-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - .25rem);
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 12px 12px 24px rgba(0,0,0,0.12), -12px -12px 24px rgba(255,255,255,0.9);
  padding: .5rem;
  display: none;
  z-index: 50;
}
.desktop-icon.open .desktop-dropdown {
  display: block;
}
.desktop-icon.open {
  z-index: 80;
}
.desktop-dropdown .dropdown-item {
  border-radius: 10px;
  padding: .5rem .65rem;
  color: #1f2937;
  text-decoration: none;
  display: block;
}
.desktop-dropdown .dropdown-item:hover {
  background: linear-gradient(145deg, #e6f3ed, #f1f4f7);
  color: #0f5132;
}
@media (max-width: 768px) {
  .desktop-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .desktop-dropdown {
    left: 0;
    right: 0;
    transform: none;
  }
}
