/* ==========================================================================
   FINAL UNIFIED LAYOUT & SIZING FIXES (Overrides conflicting rules)
   ========================================================================== */

/* 1. Fix Tiny Text & Cramped Inputs Across All Pages (Forms, Filters, Tables) */
body {
  font-size: 14px;
}
.app-shell .field > span,
.app-shell .dashboard-control,
.app-shell .branding-grid label,
.app-shell .sale-reading-grid label > span {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.app-shell .field input,
.app-shell .field select,
.app-shell .search-box,
.app-shell .branding-grid input,
.app-shell .branding-grid select,
.app-shell .dashboard-control input,
.app-shell .dashboard-control select,
.app-shell .btn:not(.small) {
  height: 40px !important;
  min-height: 40px !important;
  font-size: 14px !important;
}
.app-shell .field textarea {
  min-height: 76px !important;
  font-size: 14px !important;
}

/* 2. Fix Micro-Fonts (8px/9px) in Shift Flow, Summaries & Cards */
.app-shell .shift-live-tile small,
.app-shell .sale-row-totals span,
.app-shell .sale-reading-grid em,
.app-shell .admin-tank-meta,
.app-shell .admin-dash-note,
.app-shell .admin-dash-warning,
.app-shell .small-note,
.app-shell .table-foot {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.app-shell .shift-live-tile b,
.app-shell .sale-row-totals b {
  font-size: 14px !important;
}

/* 3. Fix Dashboard KPI Cards Squeezing on Laptop Screens (Use 3x2 instead of cramped 6x1 below 1600px) */
@media (max-width: 1600px) and (min-width: 881px) {
  .app-shell .admin-dashboard .admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
.app-shell .admin-dashboard .admin-kpi,
.app-shell .admin-dashboard .admin-kpi[data-kind="dip"],
.app-shell .admin-dashboard .admin-kpi[data-kind="density"] {
  min-height: 210px !important;
  height: auto !important;
}

/* 4. Fix Dashboard Panels 450px Hard-Cut / Blank Space Issue */
@media (min-width: 881px) {
  .admin-dashboard .admin-dash-grid > .admin-dash-panel {
    height: auto !important;
    min-height: 360px !important;
    max-height: none !important;
  }
  .admin-dashboard .admin-dash-grid > .admin-dash-panel > .admin-dash-panel-body {
    overflow-y: visible !important;
  }
  .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history {
    max-height: 340px !important;
    overflow-y: auto !important;
  }
}

/* 5. Fix Table Wrapping & Sizing Consistency Across All Modules */
.app-shell .table-wrap table {
  width: 100% !important;
  min-width: 760px;
}
.app-shell .table-wrap thead th {
  font-size: 13px !important;
  padding: 11px 12px !important;
}
.app-shell .table-wrap tbody td {
  font-size: 13.5px !important;
  padding: 10px 12px !important;
}

