/* Map layout, 24/10:
   - On desktop the left column (filters and ticket list) can be pulled in and out with the tab on the map's edge.
   - The "XỬ LÝ GẤP" board (#urgentBoard) is hidden for now. Delete the rule below to bring it back.
     app.js still renders it and the HTML is kept. */
#urgentBoard { display: none !important; }

.sidebar-toggle { display: none; }

@media (min-width: 761px) {
  .workspace {
    overflow: hidden;
    transition: grid-template-columns 0.26s ease;
  }
  .workspace.sidebar-dragging { transition: none; }

  /* While moving or hidden the column keeps its full width and slides out to the left, so the content does not squash. */
  .workspace.sidebar-moving .sidebar,
  .workspace.sidebar-hidden .sidebar {
    justify-self: end;
    width: var(--sidebar-open-width, 420px);
    overflow: hidden;
  }
  .workspace.sidebar-hidden { grid-template-columns: 0px minmax(0, 1fr); }
  .workspace.sidebar-hidden:not(.sidebar-moving) .sidebar { visibility: hidden; }

  .sidebar-toggle {
    position: absolute;
    z-index: 640;
    top: 50%;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 68px;
    padding: 0;
    border: 1px solid var(--border, #e2e8f0);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--surface, #fff);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    color: var(--ink-700, #334155);
    cursor: grab;
    touch-action: none;
    transform: translateY(-50%);
  }
  .sidebar-toggle:hover { background: #f1f5f9; }
  .sidebar-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
  .workspace.sidebar-dragging .sidebar-toggle { cursor: grabbing; }
  .sidebar-toggle span {
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);            /* ‹ = ẩn sang trái */
  }
  .workspace.sidebar-hidden .sidebar-toggle span {
    margin-left: -4px;
    transform: rotate(-135deg);          /* › = kéo ra */
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace { transition: none; }
}
