/**
 * responsive.css
 * Mobile and tablet responsiveness adjustments
 */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
  }

  .header-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .main-content {
    padding: 1rem 0.75rem 2rem 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .toolbar-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .toolbar-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .search-box {
    max-width: 100%;
  }

  .toolbar-right {
    display: flex;
    justify-content: flex-end;
  }

  .view-switch-group {
    width: 100%;
    justify-content: center;
  }

  .view-btn {
    flex: 1;
    justify-content: center;
  }

  /* Modal on mobile */
  .modal-card {
    max-height: 96vh;
  }

  .modal-form {
    padding: 0.85rem;
  }

  .expense-header-columns {
    display: none;
  }

  .expense-rows-container {
    border-radius: var(--radius-md);
    border-top: 1px solid var(--border-color);
  }

  .row-fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .col-field-title {
    grid-column: span 2;
  }

  .col-field-type {
    grid-column: span 2;
  }

  .col-field-order {
    grid-column: span 1;
    flex-direction: row;
    gap: 0.3rem;
  }

  .btn-order-move {
    height: 34px;
    font-size: 0.8rem;
  }

  .col-field-delete {
    grid-column: span 1;
  }

  .btn-remove-row {
    width: 100%;
    background-color: var(--accent-rose-bg);
    color: var(--accent-rose);
  }

  .modal-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .modal-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .toast-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Stylesheet */
@media print {
  .app-header,
  .toolbar-section,
  .row-actions,
  .card-actions,
  .app-footer,
  .modal-overlay,
  .toast-notification {
    display: none !important;
  }

  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
  }

  .table-sheet-card, .day-card {
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
  }
}
