/* SmartPOS Hub custom overrides (our file; vendor updates don't touch it). Loaded from layouts/partials/css.blade.php */

/* Settings-style vertical tabs (Business Settings, Superadmin Settings): on phones the
   col-xs-2 menu was ~50px wide and cut every label. Stack it as a swipeable pill row. */
@media (max-width: 991px) {
  .pos-tab-container div.pos-tab-menu,
  .pos-tab-container div.pos-tab {
    float: none;
    width: 100%;
  }
  .pos-tab-container div.pos-tab-menu {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding: 8px !important;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
  }
  div.pos-tab-menu div.list-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }
  div.pos-tab-menu div.list-group > a.list-group-item {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--spu-radius, 6px) !important; /* owner rule: no pill buttons (2026-10-21) */
    margin: 0;
  }
  .pos-tab-container div.pos-tab {
    padding: 12px !important;
  }
}

/* Fields inside settings tabs: Bootstrap 3 floats left a ragged grid on tablets and
   squeezed 3 fields per row on phones. */
@media (max-width: 991px) {
  .pos-tab-container .pos-tab .row {
    display: flex;
    flex-wrap: wrap;
  }
  .pos-tab-container .pos-tab .row::before,
  .pos-tab-container .pos-tab .row::after {
    display: none;
  }
  .pos-tab-container .pos-tab [class*="col-sm-"],
  .pos-tab-container .pos-tab [class*="col-md-"],
  .pos-tab-container .pos-tab [class*="col-lg-"] {
    width: 50%;
  }
  .pos-tab-container .pos-tab .col-sm-12,
  .pos-tab-container .pos-tab .col-md-12,
  .pos-tab-container .pos-tab .col-lg-12 {
    width: 100%;
  }
}
@media (max-width: 767px) {
  .pos-tab-container .pos-tab [class*="col-xs-"],
  .pos-tab-container .pos-tab [class*="col-sm-"],
  .pos-tab-container .pos-tab [class*="col-md-"],
  .pos-tab-container .pos-tab [class*="col-lg-"] {
    width: 100%;
  }
}
