/* app/assets/stylesheets/application.css */

/* Import a clean, geometric sans-serif font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #fafafa !important;
  color: #000;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

.tracking-wide {
  letter-spacing: 2px !important;
}

/* Sharp, Premium Buttons */
.btn {
  border-radius: 0 !important; /* Removes Bootstrap's rounded corners */
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding: 12px 24px;
  transition: all 0.2s ease-in-out;
}

.btn-dark, .btn-primary {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.btn-dark:hover, .btn-primary:hover {
  background-color: #333 !important;
}

.btn-outline-dark {
  border-color: #000 !important;
  color: #000 !important;
}

.btn-outline-dark:hover {
  background-color: #000 !important;
  color: #fff !important;
}

/* Clean Cards & Forms */
.card {
  border-radius: 0 !important;
  border: 1px solid #e0e0e0;
  box-shadow: none !important;
}

.form-control, .form-select {
  border-radius: 0 !important;
  border: 1px solid #ccc;
  padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
  border-color: #000;
  box-shadow: none;
}

/* Badges for Statuses */
.badge {
  border-radius: 0 !important;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 10px;
}


/* ============================================================
   MOBILE: Size Check Live Feed
   Only affects the size-check index table. Desktop (≥768px)
   is completely unchanged — everything below is scoped to
   the md breakpoint.
   ============================================================ */
@media (max-width: 767.98px) {

  /* Header: stack title above the + New Request button */
  .size-check-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .size-check-header .btn {
    width: 100%;
    padding: 12px 16px;
  }

  /* Kill the horizontal-scroll wrapper — we're stacking now */
  .size-check-wrapper {
    overflow: visible !important;
  }

  /* Table becomes a plain stack of blocks */
  .size-check-table {
    display: block;
    border: 0 !important;
    background: transparent !important;
  }
  .size-check-table thead { display: none; }
  .size-check-table tbody { display: block; }

  /* Section headers ("Active", "Completed") become full-width bars */
  .size-check-table tr.section-header {
    display: block;
    border: 1px solid #000;
    background: #f8f9fa;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
  }
  .size-check-table tr.section-header td {
    display: block;
    border: 0;
    padding: 0;
    text-align: left;
    width: auto !important;
  }

  /* Empty state row */
  .size-check-table tr.empty-state {
    display: block;
    border: 1px dashed #adb5bd;
    padding: 2rem 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  .size-check-table tr.empty-state td {
    display: block;
    border: 0;
    padding: 0;
    width: auto !important;
  }

  /* Each request row → a card */
  .size-check-table tr.request-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "submitted status"
      "employee  employee"
      "product   product"
      "size      zone"
      "actions   actions";
    gap: 0.6rem 0.75rem;
    border: 1px solid #000;
    background: #fff;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
  }

  /* Reset td defaults so they behave like plain grid cells */
  .size-check-table tr.request-row > td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    text-align: left;
  }

  /* Grid area assignments */
  .size-check-table td.cell-submitted { grid-area: submitted; }
  .size-check-table td.cell-employee  { grid-area: employee;  }
  .size-check-table td.cell-product   { grid-area: product;   }
  .size-check-table td.cell-size      { grid-area: size;      }
  .size-check-table td.cell-zone      { grid-area: zone;      text-align: right; }
  .size-check-table td.cell-status    { grid-area: status;    text-align: right; }
  .size-check-table td.cell-actions   { grid-area: actions;   }

  /* Give the product name a slightly bigger presence on mobile */
  .size-check-table td.cell-product .fw-bold {
    font-size: 1rem;
  }

  /* Action buttons: finger-sized, left-aligned inside the card */
  .size-check-table td.cell-actions .d-flex {
    justify-content: flex-start !important;
    gap: 0.4rem !important;
  }
  .size-check-table td.cell-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    flex: 0 0 auto;
  }

  /* Notes under employee — allow full width on mobile */
  .size-check-table td.cell-employee small[style] {
    max-width: 100% !important;
  }
}