/* ==========================================================================
   ODONTOFINANCE PRO - RESPONSIVE STYLES (SIMPLES DENTAL / CLINICORP PRO)
   ========================================================================== */

@media (max-width: 1100px) {
  .app-sidebar {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
  }
  .app-workspace {
    margin-left: 230px;
    width: calc(100% - 230px);
    max-width: calc(100% - 230px);
  }
  .workspace-search-box {
    width: 210px;
  }
  .workspace-search-box input:focus {
    width: 240px;
  }
}

@media (max-width: 900px) {
  .workspace-view-subtitle {
    display: none;
  }
  .workspace-topbar-actions .btn span {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-layout-root {
    flex-direction: column;
  }
  .app-sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .app-workspace {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .sidebar-brand {
    padding: 0.75rem 1rem;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }
  .sidebar-section {
    flex-direction: row;
    gap: 0.25rem;
  }
  .sidebar-section-title {
    display: none;
  }
  .sidebar-footer {
    display: none;
  }
  .workspace-topbar {
    height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .workspace-search-box {
    width: 100%;
    order: 3;
  }
  .workspace-search-box input:focus {
    width: 100%;
  }
  .main-container.workspace-content {
    padding: 1rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-search {
    width: 100%;
    min-width: unset;
  }
  .toolbar-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .select-filter {
    width: 100%;
  }
  .view-header {
    flex-direction: column;
    align-items: stretch;
  }
  .view-heading h2 {
    font-size: 1.4rem;
  }
  .modal-card {
    max-height: 95vh;
  }
}
