/* Mobile-specific styles for ROA Reports */

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
  /* Menubar mobile optimizations */
  .p-menubar {
    padding: 0.5rem 1rem;
  }

  .p-menubar .p-menubar-root-list {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-overlay);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    box-shadow: var(--overlay-shadow);
    z-index: 1000;
  }

  .p-menubar .p-menubar-root-list .p-menuitem {
    width: 100%;
  }

  .p-menubar .p-menubar-root-list .p-menuitem-link {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-border);
    width: 100%;
    justify-content: flex-start;
  }

  .p-menubar .p-menubar-button {
    display: flex !important;
  }

  /* Hide menu items by default on mobile */
  .p-menubar .p-menubar-root-list {
    display: none;
  }

  .p-menubar.p-menubar-mobile-active .p-menubar-root-list {
    display: flex;
  }
}

/* Mobile Page Headers - Ensure titles are visible */
@media (max-width: 768px) {
  .page-header {
    margin-bottom: var(--space-md, 1rem);
    text-align: center;
  }

  .page-title {
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Mobile DataTable Enhancements */
@media (max-width: 768px) {
  .p-datatable .p-datatable-wrapper {
    overflow-x: auto;
  }

  .p-datatable .p-datatable-thead > tr > th {
    min-width: 120px;
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .p-datatable .p-datatable-tbody > tr > td {
    padding: 0.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--surface-border);
  }

  /* Stack table content vertically on very small screens */
  .p-datatable.mobile-stack .p-datatable-thead {
    display: none;
  }

  .p-datatable.mobile-stack .p-datatable-tbody,
  .p-datatable.mobile-stack .p-datatable-tbody tr,
  .p-datatable.mobile-stack .p-datatable-tbody td {
    display: block;
    width: 100%;
  }

  .p-datatable.mobile-stack .p-datatable-tbody tr {
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--surface-card);
  }

  .p-datatable.mobile-stack .p-datatable-tbody td {
    border: none;
    position: relative;
    padding: 0.5rem 0;
  }

  .p-datatable.mobile-stack .p-datatable-tbody td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-color-secondary);
    display: inline-block;
    width: 40%;
    margin-right: 1rem;
  }
}

/* Mobile Card Optimizations */
@media (max-width: 768px) {
  .p-card .p-card-body {
    padding: 1rem;
  }

  .p-card .p-card-header {
    padding: 1rem 1rem 0.5rem 1rem;
  }

  .p-card .p-card-footer {
    padding: 0.5rem 1rem 1rem 1rem;
  }

  .p-card .p-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .p-card .p-card-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

/* Mobile Button Enhancements */
@media (max-width: 768px) {
  .p-button {
    min-height: 44px; /* Minimum touch target size */
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .p-button.p-button-sm {
    min-height: 36px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .p-button.p-button-lg {
    min-height: 52px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Full width buttons on mobile */
  .mobile-full-width .p-button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Mobile Form Enhancements */
@media (max-width: 768px) {
  .p-inputtext,
  .p-password input,
  .p-dropdown,
  .p-calendar input {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  .p-float-label > label {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
  }

  .p-float-label > .p-invalid + label {
    color: var(--red-500);
  }

  /* Stack form fields vertically */
  .mobile-form-stack .p-field {
    margin-bottom: 1.5rem;
  }

  .mobile-form-stack .p-field:last-child {
    margin-bottom: 0;
  }
}

/* Mobile Dialog Enhancements */
@media (max-width: 768px) {
  .p-dialog {
    width: 95vw !important;
    max-width: none !important;
    margin: 0 !important;
    max-height: 90vh;
  }

  .p-dialog .p-dialog-header {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-border);
  }

  .p-dialog .p-dialog-content {
    padding: 1rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
  }

  .p-dialog .p-dialog-footer {
    padding: 1rem;
    border-top: 1px solid var(--surface-border);
    justify-content: stretch;
  }

  .p-dialog .p-dialog-footer .p-button {
    flex: 1;
    margin: 0 0.25rem;
  }
}

/* Mobile Toast Enhancements */
@media (max-width: 768px) {
  .p-toast {
    width: calc(100vw - 2rem) !important;
    left: 1rem !important;
    right: 1rem !important;
  }

  .p-toast .p-toast-message {
    margin-bottom: 0.5rem;
  }
}

/* Toast positioning to avoid header conflicts */
.p-toast {
  z-index: 1100 !important;
}

/* Ensure toast notifications don't interfere with header dropdowns */
.p-toast[data-position="top-right"] {
  top: 80px !important; /* Move below header */
}

/* Mobile Dropdown Enhancements */
@media (max-width: 768px) {
  .p-dropdown-panel {
    max-height: 60vh;
    width: 100% !important;
  }

  .p-dropdown-item {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Mobile Calendar Enhancements */
@media (max-width: 768px) {
  .p-datepicker {
    width: 100% !important;
    max-width: none !important;
  }

  .p-datepicker table td {
    padding: 0.5rem;
  }

  .p-datepicker table td > span {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
  }
}

/* Mobile-specific utility classes */
@media (max-width: 640px) {
  .mobile-hide {
    display: none !important;
  }
  .mobile-show {
    display: block !important;
  }
  .mobile-flex {
    display: flex !important;
  }
  .mobile-grid {
    display: grid !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }
  .mobile-text-center {
    text-align: center !important;
  }
  .mobile-text-left {
    text-align: left !important;
  }

  .mobile-p-2 {
    padding: 0.5rem !important;
  }
  .mobile-p-4 {
    padding: 1rem !important;
  }
  .mobile-m-2 {
    margin: 0.5rem !important;
  }
  .mobile-m-4 {
    margin: 1rem !important;
  }

  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-stack > * {
    width: 100% !important;
    margin-bottom: 0.5rem;
  }

  .mobile-stack > *:last-child {
    margin-bottom: 0;
  }
}

/* Tablet-specific styles */
@media (min-width: 641px) and (max-width: 1024px) {
  .tablet-hide {
    display: none !important;
  }
  .tablet-show {
    display: block !important;
  }
  .tablet-flex {
    display: flex !important;
  }
  .tablet-grid {
    display: grid !important;
  }

  .tablet-full-width {
    width: 100% !important;
  }
  .tablet-half-width {
    width: 50% !important;
  }

  .tablet-text-center {
    text-align: center !important;
  }
  .tablet-text-left {
    text-align: left !important;
  }

  .tablet-p-3 {
    padding: 0.75rem !important;
  }
  .tablet-m-3 {
    margin: 0.75rem !important;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .p-button,
  .p-inputtext,
  .p-dropdown,
  .p-calendar input {
    min-height: 44px;
  }

  /* Remove hover effects on touch devices */
  .p-button:hover {
    transform: none;
    box-shadow: none;
  }

  /* Add active states for better touch feedback */
  .p-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .p-datatable .p-datatable-tbody > tr:active {
    background-color: var(--surface-hover);
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  /* Ensure focus is visible */
  .p-button:focus,
  .p-inputtext:focus,
  .p-dropdown:focus,
  .p-calendar input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .p-button,
    .p-inputtext,
    .p-dropdown,
    .p-calendar input {
      border-width: 2px;
    }
  }

  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* Custom mobile components */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
}

.mobile-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .mobile-card-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile-optimized stats cards */
.mobile-stat-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-stat-card .stat-icon {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.mobile-stat-card .stat-content {
  flex: 1;
}

.mobile-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.mobile-stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-color-secondary);
  margin: 0.25rem 0 0 0;
}

/* Mobile table alternative */
.mobile-list-view .list-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mobile-list-view .list-item-content {
  flex: 1;
}

.mobile-list-view .list-item-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.mobile-list-view .list-item-subtitle {
  font-size: 0.875rem;
  color: var(--text-color-secondary);
  margin-bottom: 0.5rem;
}

.mobile-list-view .list-item-actions {
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Swipe gestures support (future enhancement) */
.swipe-item {
  position: relative;
  overflow: hidden;
}

.swipe-actions {
  position: absolute;
  top: 0;
  right: -100px;
  height: 100%;
  width: 100px;
  background: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: right 0.3s ease;
}

.swipe-item.swiped .swipe-actions {
  right: 0;
}

/* Enhanced Responsive Tables - Prevent text shrinking and add horizontal scroll */
@media (max-width: 768px) {
  /* Container cu scroll orizontal pentru tabele */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem; /* Extend to edges on mobile */
    padding: 0 1rem;
  }

  /* Dimensiune minimă pentru tabele - Enhanced */
  .summary-table,
  .breakdown-table,
  .dashboard-table,
  .detailed-table,
  .p-datatable table {
    min-width: 600px !important; /* Prevent compression */
    font-size: 14px !important; /* Minimum readable size */
  }

  /* Celule tabel - Enhanced */
  .summary-table td,
  .summary-table th,
  .breakdown-table td,
  .breakdown-table th,
  .dashboard-table td,
  .dashboard-table th,
  .detailed-table td,
  .detailed-table th {
    padding: 0.5rem;
    font-size: 14px !important;
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 80px; /* Minimum column width */
  }

  /* Amount cells should never shrink */
  .amount-cell {
    font-size: 14px !important;
    font-family: monospace;
    white-space: nowrap;
  }

  /* Override PrimeVue table font sizes for mobile */
  .p-datatable .p-datatable-thead > tr > th,
  .p-datatable .p-datatable-tbody > tr > td {
    font-size: 14px !important;
    padding: 0.5rem !important;
  }

  /* Stack controls vertically on mobile */
  .section-controls {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .section-controls > * {
    width: 100%;
  }

  /* Button groups on mobile */
  .button-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .button-group .btn {
    flex: 1;
  }

  /* Indicator de scroll */
  .table-container::after {
    content: "← Scroll orizontal pentru mai multe coloane →";
    display: block;
    text-align: center;
    color: var(--color-text-secondary, #6b7280);
    font-size: 12px;
    margin-top: 0.5rem;
    font-style: italic;
  }

  .table-container.scrolled-full::after {
    display: none;
  }

  /* Ensure table wrappers don't compress */
  .table-wrapper,
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablet-specific improvements */
@media (min-width: 641px) and (max-width: 1024px) {
  .summary-table,
  .breakdown-table,
  .detailed-table {
    font-size: 14px !important; /* Slightly larger on tablet */
  }

  .summary-table td,
  .summary-table th,
  .breakdown-table td,
  .breakdown-table th {
    font-size: 14px !important;
    padding: 0.6rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Hide less important columns on very small screens */
  .breakdown-table th:nth-child(6),
  .breakdown-table td:nth-child(6),
  .breakdown-table th:nth-child(7),
  .breakdown-table td:nth-child(7) {
    display: none;
  }

  /* Maintain readable font sizes but slightly smaller */
  .summary-table,
  .breakdown-table,
  .detailed-table {
    font-size: 13px !important;
    min-width: 500px !important; /* Slightly smaller minimum on very small screens */
  }

  .summary-table td,
  .summary-table th,
  .breakdown-table td,
  .breakdown-table th {
    font-size: 13px !important;
    padding: 0.4rem;
    min-width: 70px;
  }

  /* Stack controls vertically on mobile */
  .section-controls {
    flex-direction: column !important;
    gap: 0.5rem;
  }

  .section-controls > * {
    width: 100% !important;
  }

  /* Adjust search inputs for mobile */
  .search-input,
  .data-type-select {
    width: 100% !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 44px; /* Touch-friendly height */
  }
}

/* ============================================
   Mobile Compact Toolbar
   Ultra-compact header for mobile views
   - Filter toggle (funnel icon)
   - Actions dropdown menu
   - Single compact total display
   ============================================ */

/* Mobile Toolbar - compact single line (~50px) */
.mobile-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--surface-border, #e2e8f0);
  border-radius: var(--border-radius, 6px);
  margin-bottom: var(--space-md, 1rem);
  min-height: 50px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Filter toggle button - colored when filters are active */
.mobile-toolbar .filter-active {
  color: var(--primary-color, #2563eb) !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

.mobile-toolbar .filter-active:hover {
  background: rgba(37, 99, 235, 0.2) !important;
}

/* Actions button - compact */
.mobile-toolbar .p-button-outlined {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Compact total display - pushed to right */
.mobile-toolbar .mobile-total {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xs, 0.25rem);
  font-size: var(--text-sm, 0.875rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.mobile-toolbar .total-label {
  color: var(--text-color-secondary, #64748b);
  font-weight: 500;
}

.mobile-toolbar .total-value {
  font-weight: var(--font-semibold, 600);
  color: var(--text-color, #1e293b);
  font-variant-numeric: tabular-nums;
}

/* Color classes for positive/negative values */
.mobile-toolbar .total-value.incasari {
  color: var(--green-600, #16a34a);
}

.mobile-toolbar .total-value.plati {
  color: var(--red-600, #dc2626);
}

/* Mobile-only visibility - show toolbar only on mobile */
@media (min-width: 769px) {
  .mobile-toolbar {
    display: none !important;
  }
}

/* Extra compact on very small screens */
@media (max-width: 400px) {
  .mobile-toolbar {
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    gap: var(--space-xs, 0.25rem);
  }

  .mobile-toolbar .mobile-total {
    font-size: var(--text-xs, 0.75rem);
  }

  .mobile-toolbar .p-button-outlined {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }

  /* Hide label on very small screens, show only icon */
  .mobile-toolbar .p-button-outlined .p-button-label {
    display: none;
  }

  .mobile-toolbar .p-button-outlined .p-button-icon {
    margin-right: 0;
  }
}

/* Filters card - more compact when visible on mobile */
@media (max-width: 768px) {
  .filters-card {
    margin-bottom: var(--space-sm, 0.5rem);
  }

  .filters-card .p-card-body {
    padding: var(--space-sm, 0.5rem);
  }

  .filters-card .form-row {
    gap: var(--space-sm, 0.5rem);
  }

  .filters-card .form-group {
    margin-bottom: var(--space-xs, 0.25rem);
  }

  .filters-card .form-label {
    font-size: var(--text-sm, 0.875rem);
    margin-bottom: var(--space-xs, 0.25rem);
  }
}

/* ============================================
   Mobile Data Cards
   Compact card layout for table data on mobile
   ============================================ */

.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-data-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--surface-border, #e2e8f0);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.mobile-data-card .card-header {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-color, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-data-card .card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-color-secondary, #64748b);
  margin-top: 0.25rem;
}

.mobile-data-card .card-meta {
  font-size: 0.8125rem;
}

.mobile-data-card .card-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}

.mobile-data-card .card-amount.positive {
  color: var(--green-600, #16a34a);
}

.mobile-data-card .card-amount.negative {
  color: var(--red-600, #dc2626);
}

/* Mobile empty state */
.mobile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  color: var(--text-color-secondary);
}

.mobile-empty i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   Mobile Responsive Totals
   Unified grid layout for totals on mobile
   Supports 1, 2, or 4 totals uniformly
   ============================================ */

.mobile-totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-ground, #f8fafc);
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
}

/* Single total - center it */
.mobile-totals-grid.single-total {
  grid-template-columns: 1fr;
  justify-items: center;
}

/* Two totals - side by side */
.mobile-totals-grid.two-totals {
  grid-template-columns: 1fr 1fr;
}

.mobile-totals-grid .total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mobile-totals-grid .total-label {
  color: var(--text-color-secondary, #64748b);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.mobile-totals-grid .total-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}

.mobile-totals-grid .total-value.incasari,
.mobile-totals-grid .total-value.positive {
  color: var(--green-600, #16a34a);
}

.mobile-totals-grid .total-value.plati,
.mobile-totals-grid .total-value.negative {
  color: var(--red-600, #dc2626);
}

/* Backward compatibility - stack totals (deprecated, use grid) */
.mobile-totals-stack {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.75rem;
  margin-left: auto;
}

.mobile-totals-stack .total-row {
  display: flex;
  gap: 0.5rem;
}

.mobile-totals-stack .total-label {
  color: var(--text-color-secondary, #64748b);
}

.mobile-totals-stack .total-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Mobile Toolbar v2 - Two-Row Layout
   Row 1: Icon-only action buttons
   Row 2: Totals display
   ============================================ */

.mobile-toolbar-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--surface-border, #e2e8f0);
  border-radius: var(--border-radius, 6px);
  margin-bottom: var(--space-md, 1rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Row 1: Icon-only action buttons */
.mobile-toolbar-buttons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-xs, 0.25rem);
}

/* Icon-only buttons - no labels */
.mobile-toolbar-buttons .p-button {
  padding: var(--space-sm, 0.5rem);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.mobile-toolbar-buttons .p-button .p-button-label {
  display: none !important;
}

.mobile-toolbar-buttons .p-button .p-button-icon {
  margin-right: 0 !important;
  font-size: 1.125rem;
}

/* Filter active state */
.mobile-toolbar-buttons .filter-active {
  color: var(--primary-color, #2563eb) !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: var(--primary-color, #2563eb) !important;
}

.mobile-toolbar-buttons .filter-active:hover {
  background: rgba(37, 99, 235, 0.2) !important;
}

/* Row 2: Totals display */
.mobile-toolbar-totals {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: var(--space-xs, 0.25rem);
  border-top: 1px solid var(--surface-border, #e2e8f0);
}

/* Center the totals grid/stack in row 2 */
.mobile-toolbar-totals .mobile-totals-grid,
.mobile-toolbar-totals .mobile-totals-stack,
.mobile-toolbar-totals .mobile-total {
  margin-left: 0;
  width: auto;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-toolbar-container {
    display: none !important;
  }
}

/* Extra compact on very small screens */
@media (max-width: 400px) {
  .mobile-toolbar-container {
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    gap: var(--space-xs, 0.25rem);
  }

  .mobile-toolbar-buttons .p-button {
    padding: var(--space-xs, 0.25rem);
    min-width: 40px;
    min-height: 40px;
  }

  .mobile-toolbar-buttons .p-button .p-button-icon {
    font-size: 1rem;
  }
}

/* ============================================
   Hamburger Menu Profile Section
   Profile options at bottom of slide menu
   ============================================ */

.menu-profile {
  margin-top: auto;
  border-top: 1px solid var(--color-border, #e2e8f0);
  padding-top: var(--space-md, 1rem);
}

.menu-profile .profile-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  font-weight: 600;
  color: var(--color-text, #1e293b);
  font-size: var(--text-sm, 0.875rem);
}

.menu-profile .profile-info .pi-user {
  font-size: 1.25rem;
  color: var(--color-primary, #2563eb);
}
