/* =============================================================================
   Mobile Drawer & Desktop Sidebar Panel Styles
   Matching Contractor's bottom-drawer design pattern
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Shared Overlay (for mobile drawer)
   ----------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(28, 25, 23, 0.6); /* stone-950/60 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hide on desktop and print */
@media (min-width: 768px) {
  .drawer-overlay {
    display: none;
  }
}

@media print {
  .drawer-overlay {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   Mobile Drawer Trigger Button
   ----------------------------------------------------------------------------- */
.drawer-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #4b5563; /* gray-600 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
}

.drawer-trigger:hover {
  background-color: #282828; /* card-hover - neutral gray */
}

.drawer-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.5);
}

.drawer-trigger svg {
  height: 1.5rem;
  width: 1.5rem;
  color: white;
}

/* Hide on desktop and print */
@media (min-width: 768px) {
  .drawer-trigger {
    display: none;
  }
}

@media print {
  .drawer-trigger {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   Notification Badge
   ----------------------------------------------------------------------------- */
.drawer-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  height: 1.25rem;
  min-width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #ef4444; /* red-500 */
  padding: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.drawer-badge.hidden {
  display: none;
}

.drawer-badge.pulse {
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Task complete badge (green) */
.drawer-badge.task-complete {
  background-color: #22c55e; /* green-500 */
}

/* -----------------------------------------------------------------------------
   Mobile Bottom Drawer
   ----------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  max-height: 85vh;
  transform: translateY(100%);
  flex-direction: column;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background-color: white;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 300ms ease;
}

.mobile-drawer.open {
  transform: translateY(0);
}

/* Dark mode */
body.dark .mobile-drawer {
  background-color: var(--card-bg, #1e1e1e);
}

/* Hide on desktop and print */
@media (min-width: 768px) {
  .mobile-drawer {
    display: none;
  }
}

@media print {
  .mobile-drawer {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   Drawer Header
   ----------------------------------------------------------------------------- */
.drawer-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  padding: 1rem;
}

body.dark .drawer-header {
  border-bottom-color: #3a3a3a; /* divider - neutral gray */
}

/* Mode toggle buttons container */
.drawer-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f3f4f6; /* gray-100 */
  padding: 0.25rem;
  border-radius: 0.5rem;
}

body.dark .drawer-mode-toggle {
  background-color: #333333; /* input-border - neutral gray */
}

/* Mode toggle button */
.mode-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280; /* gray-500 */
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.mode-btn:hover {
  color: #374151; /* gray-700 */
}

body.dark .mode-btn {
  color: #9ca3af; /* gray-400 */
}

body.dark .mode-btn:hover {
  color: #d1d5db; /* gray-300 */
}

/* Active mode button */
.mode-btn.active {
  background-color: white;
  color: #111827; /* gray-900 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark .mode-btn.active {
  background-color: #282828; /* card-hover - neutral gray */
  color: white;
}

/* Close button */
.drawer-close-btn {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #9ca3af; /* gray-400 */
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.drawer-close-btn:hover {
  background-color: #f3f4f6; /* gray-100 */
  color: #4b5563; /* gray-600 */
}

body.dark .drawer-close-btn:hover {
  background-color: #282828; /* card-hover - neutral gray */
  color: #e0e0e0; /* neutral light gray */
}

/* -----------------------------------------------------------------------------
   Drawer Content Areas
   ----------------------------------------------------------------------------- */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.drawer-content.hidden {
  display: none;
}

/* Nav content specific styles */
.drawer-nav-content .nav-section {
  margin-bottom: 1.5rem;
}

.drawer-nav-content .nav-section-label {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af; /* gray-400 */
}

body.dark .drawer-nav-content .nav-section-label {
  color: #6b7280; /* gray-500 */
}

.drawer-nav-content .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #374151; /* gray-700 */
  text-decoration: none;
  transition: all 150ms ease;
}

.drawer-nav-content .nav-item:hover {
  background-color: #f3f4f6; /* gray-100 */
}

body.dark .drawer-nav-content .nav-item {
  color: #d1d5db; /* gray-300 */
}

body.dark .drawer-nav-content .nav-item:hover {
  background-color: #282828; /* card-hover - neutral gray */
}

.drawer-nav-content .nav-item.active {
  background-color: rgba(46, 125, 50, 0.1); /* primary/10 */
  color: #2e7d32; /* primary */
  font-weight: 500;
}

body.dark .drawer-nav-content .nav-item.active {
  background-color: rgba(46, 125, 50, 0.2);
}

.drawer-nav-content .nav-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: #6b7280; /* gray-500 */
}

body.dark .drawer-nav-content .nav-icon {
  color: #9ca3af; /* gray-400 */
}

/* Assistant content specific styles */
.drawer-assistant-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message bubbles */
.drawer-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  /* Allow long links/words to wrap */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Links in messages - clickable and wrap naturally */
.drawer-message a {
  color: #2e7d32;
  text-decoration: underline;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

body.dark .drawer-message a {
  color: #66bb6a;
}

.drawer-message a:hover {
  opacity: 0.8;
}

/* Markdown content styling in messages */
.drawer-message h1,
.drawer-message h2,
.drawer-message h3 {
  font-weight: 600;
  margin: 0.5em 0 0.25em 0;
}

.drawer-message h1 { font-size: 1.1em; }
.drawer-message h2 { font-size: 1em; }
.drawer-message h3 { font-size: 0.95em; }

.drawer-message ul,
.drawer-message ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.drawer-message li {
  margin: 0.25em 0;
}

.drawer-message code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.9em;
}

body.dark .drawer-message code {
  background-color: rgba(255, 255, 255, 0.1);
}

.drawer-message pre {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.75em;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 0.5em 0;
}

body.dark .drawer-message pre {
  background-color: rgba(255, 255, 255, 0.1);
}

.drawer-message pre code {
  background: none;
  padding: 0;
}

.drawer-message p {
  margin: 0.5em 0;
}

.drawer-message p:first-child {
  margin-top: 0;
}

.drawer-message p:last-child {
  margin-bottom: 0;
}

.drawer-message strong {
  font-weight: 600;
}

.drawer-message.user {
  align-self: flex-end;
  background-color: #282828; /* card-hover */
  color: #f0f0f0;
  border-bottom-right-radius: 0.25rem;
}

body:not(.dark) .drawer-message.user {
  background-color: #e5e7eb; /* gray-200 for light mode */
  color: #1f2937;
}

.drawer-message.assistant {
  align-self: flex-start;
  background-color: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  border-bottom-left-radius: 0.25rem;
}

body.dark .drawer-message.assistant {
  background-color: #1e1e1e; /* card-bg */
  color: #f0f0f0;
  border: 1px solid #3a3a3a; /* divider */
}

/* Input area */
.drawer-input-area {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.75rem 1rem;
}

body.dark .drawer-input-area {
  border-top-color: #3a3a3a; /* divider - neutral gray */
}

.drawer-input-form {
  display: flex;
  gap: 0.5rem;
}

.drawer-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 9999px;
  font-size: 0.875rem;
  background-color: white;
  color: #111827;
}

.drawer-input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

body.dark .drawer-input {
  background-color: #1e1e1e; /* card-bg - neutral gray */
  border-color: #3a3a3a; /* divider - neutral gray */
  color: white;
}

.drawer-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background-color: #2e7d32; /* primary */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.drawer-send-btn:hover {
  background-color: #256528; /* primary-dark */
}

.drawer-send-btn:disabled {
  background-color: #9ca3af; /* gray-400 */
  cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   Drawer Footer (User section)
   ----------------------------------------------------------------------------- */
.drawer-footer {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb; /* gray-200 */
  padding: 1rem;
}

body.dark .drawer-footer {
  border-top-color: #3a3a3a; /* divider - neutral gray */
}

.drawer-user-info {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #f9fafb; /* gray-50 */
}

body.dark .drawer-user-info {
  background-color: rgba(51, 51, 51, 0.5); /* input-border/50 - neutral gray */
}

.drawer-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827; /* gray-900 */
}

body.dark .drawer-user-name {
  color: #e5e7eb; /* gray-200 */
}

.drawer-logout-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #dc2626; /* red-600 */
  background-color: white;
  border: 1px solid #fecaca; /* red-200 */
  cursor: pointer;
  transition: all 150ms ease;
}

.drawer-logout-btn:hover {
  background-color: #dc2626;
  color: white;
  border-color: #dc2626;
}

body.dark .drawer-logout-btn {
  background-color: transparent;
  border-color: rgba(220, 38, 38, 0.3);
  color: #f87171; /* red-400 */
}

body.dark .drawer-logout-btn:hover {
  background-color: #dc2626;
  color: white;
}

/* =============================================================================
   Desktop Right Sidebar Panel
   ============================================================================= */

/* Trigger button (visible when panel closed) - positioned at same height as left toggle */
.side-panel-trigger {
  position: fixed;
  top: 1.5rem;
  right: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  background-color: #2e7d32; /* primary */
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 200ms ease;
}

.side-panel-trigger:hover {
  background-color: #256528;
  padding-right: 0.75rem;
}

/* Show only on desktop */
@media (min-width: 768px) {
  .side-panel-trigger {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.side-panel-trigger svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* Badge on trigger */
.side-panel-trigger .trigger-badge {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background-color: #ef4444;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-panel-trigger .trigger-badge.hidden {
  display: none;
}

/* The panel itself */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 35;
  height: 100%;
  width: 24rem; /* 384px */
  transform: translateX(100%);
  display: none;
  flex-direction: column;
  background-color: white;
  box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 300ms ease;
}

.side-panel.open {
  transform: translateX(0);
}

body.dark .side-panel {
  background-color: var(--card-bg, #1e1e1e);
}

/* Show only on desktop */
@media (min-width: 768px) {
  .side-panel {
    display: flex;
  }
}

/* Panel header */
.side-panel-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

body.dark .side-panel-header {
  border-bottom-color: #3a3a3a; /* divider - neutral gray */
}

.side-panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

body.dark .side-panel-title {
  color: white;
}

.side-panel-close-btn {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.side-panel-close-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

body.dark .side-panel-close-btn:hover {
  background-color: #282828; /* card-hover - neutral gray */
  color: #e0e0e0; /* neutral light gray */
}

/* User selector dropdown in chat mode - constrain width */
#sidePanelUserSelect {
  max-width: 10rem;
  min-width: 0;
  flex-shrink: 1;
}

/* Panel content */
.side-panel-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Panel messages area */
.side-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Panel input area */
.side-panel-input-area {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
}

body.dark .side-panel-input-area {
  border-top-color: #3a3a3a; /* divider - neutral gray */
}

/* Reuse drawer input styles for panel */
.side-panel-input-form {
  display: flex;
  gap: 0.5rem;
}

.side-panel-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: white;
  color: #111827;
}

.side-panel-input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

body.dark .side-panel-input {
  background-color: #1e1e1e; /* card-bg */
  border-color: #3a3a3a; /* divider */
  color: #f0f0f0;
}

/* Auto-resize textarea input */
.side-panel-input-form {
  flex-direction: column;
}

.side-panel-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.side-panel-textarea {
  flex: 1;
  min-height: 2.5rem;
  max-height: 10rem; /* ~7 lines */
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: white;
  color: #111827;
  resize: none;
  overflow: hidden; /* Hide scrollbar until max height */
  line-height: 1.4;
}

.side-panel-textarea:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

body.dark .side-panel-textarea {
  background-color: #1e1e1e;
  border-color: #3a3a3a;
  color: #f0f0f0;
}

/* File attachment button */
.side-panel-attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  color: #6b7280;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.side-panel-attach-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

body.dark .side-panel-attach-btn {
  background-color: #282828;
  color: #9ca3af;
}

body.dark .side-panel-attach-btn:hover {
  background-color: #3a3a3a;
  color: #f0f0f0;
}

/* File preview */
.side-panel-file-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

body.dark .side-panel-file-preview {
  background-color: #282828;
}

/* File thumbnail in preview */
.file-thumbnail {
  max-width: 50%;
  max-height: 80px;
  border-radius: 0.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.file-thumbnail.pdf-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 60px;
  background-color: #dc2626;
  color: white;
  border-radius: 0.25rem;
}

/* Message attachment thumbnail */
.message-attachment {
  max-width: 200px;
  max-height: 150px;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease;
  object-fit: contain;
}

.message-attachment:hover {
  transform: scale(1.02);
}

.message-attachment-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #dc2626;
  color: white;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Images in message bubbles (from chat history) */
.drawer-message img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  cursor: pointer;
  object-fit: contain;
}

.drawer-message img:hover {
  opacity: 0.9;
}

/* Resizable panel */
.side-panel {
  min-width: 20rem;
  max-width: 50vw;
}

.side-panel-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  background: transparent;
  z-index: 10;
}

.side-panel-resize-handle:hover,
.side-panel-resize-handle.active {
  background: rgba(46, 125, 50, 0.3);
}

.side-panel-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background-color: #2e7d32;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.side-panel-send-btn:hover {
  background-color: #256528;
}

.side-panel-send-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* =============================================================================
   Desktop Left Sidebar (Contractor-style) - Global Styles
   ============================================================================= */

/* Sidebar overlays content - doesn't push it */
#desktopSidebar {
  position: fixed !important;
  left: 0;
  top: 0;
  z-index: 50;
  transition: transform 0.15s ease-out;
}
#desktopSidebar .sidebar-content {
  transition: opacity 0.1s ease-out;
}

/* Sidebar collapse toggle - straddles the nav edge */
.sidebar-toggle {
  position: fixed;
  top: 1.5rem;
  left: 16rem; /* Sidebar width */
  transform: translateX(-50%);
  transition: transform 0.15s ease-out, left 0.15s ease-out, background-color 0.15s ease-out;
  z-index: 100;
  /* Light mode styling */
  background-color: white !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.sidebar-toggle:hover {
  background-color: #f9fafb !important;
  color: #2e7d32 !important;
}

/* Dark mode styling for sidebar toggle - using card-bg colors */
body.dark .sidebar-toggle {
  background-color: #1e1e1e !important; /* card-bg */
  border-color: #3a3a3a !important; /* divider */
  color: #9ca3af !important;
}
body.dark .sidebar-toggle:hover {
  background-color: #282828 !important; /* card-hover */
  color: white !important;
}

/* Collapsed state - sidebar slides off screen */
body.sidebar-collapsed #desktopSidebar .sidebar-content {
  opacity: 0;
  pointer-events: none;
}
body.sidebar-collapsed #desktopSidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .sidebar-toggle {
  left: 0;
  transform: translateX(-40%) rotate(180deg);
  /* After 180° rotation: CSS right = visual left (off-screen), CSS left = visual right (visible) */
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
}

/* =============================================================================
   Utility classes
   ============================================================================= */
.overflow-hidden {
  overflow: hidden;
}
