/* ===== UNIFIED COMPONENT STYLES ===== */

/* Container System */
.container {
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.container--fluid {
  max-width: 100%;
}

.container--small {
  max-width: 800px;
}

/* CUSTOMER Header */
.header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px var(--spacing-lg);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

/* Status System */
.status {
  padding: 4px var(--spacing-sm);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status--success {
  background: #d4edda;
  color: #155724;
}

.status--warning {
  background: #fff3cd;
  color: #856404;
}

.status--danger {
  background: #f8d7da;
  color: #721c24;
}

.status--info {
  background: #d1ecf1;
  color: #0c5460;
}

/* Order Status System */
.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status--pending {
  background: #fff3cd;
  color: #856404;
}

.order-status--processing {
  background: #cce5ff;
  color: #004085;
}

.order-status--shipped {
  background: #d1ecf1;
  color: #0c5460;
}

.order-status--delivered {
  background: #d4edda;
  color: #155724;
}

.order-status--cancelled {
  background: #f8d7da;
  color: #721c24;
}

body h1 {
  color: var(--primary-text-color);
}

body h2 {
  color: var(--primary-text-color);
  padding: 10px 0px;
  /* border-bottom: 1px solid var(--border-color); */
}

body p {
  font-size: 12px;
}

/* Shell Containers */
.shell {
  background: var(--sidebar-color);
  box-shadow: var(--shadows);
  padding: 20px;
  margin: 10px 0px;
  width: 100%;
  border-radius: 10px;
  height: fit-content;
}

.shell.stock-summary {
  height: auto;
}

.totals {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  height: max-content;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.total-row h3,
.total-row h2 {
  margin: 0;
  font-weight: 600;
}

.total-row span,
.total-row h1 {
  font-weight: bold;
}

.con {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  width: 100%;
  overflow: hidden;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .container {
    padding: var(--spacing-sm);
  }

  .con {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .con.add {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .con.pos {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .shell {
    padding: 15px;
    margin: 8px 0;
    border-radius: 8px;
  }

  .shell.product-variants,
  .shell.stock-variants {
    max-height: 500px;
  }

  body h1 {
    font-size: 24px;
  }

  body h2 {
    font-size: 20px;
    padding: 8px 0;
  }

  .header-content {
    padding: 10px var(--spacing-sm);
  }

  .logo {
    font-size: 20px;
  }

  .search-field {
    width: 100%;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
  .container {
    padding: var(--spacing-md);
  }

  .con {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .con.add {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .con.pos {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shell {
    padding: 18px;
    margin: 9px 0;
  }

  .shell.product-variants,
  .shell.stock-variants {
    max-height: 550px;
  }

  .header-content {
    padding: 12px var(--spacing-md);
  }

  .logo {
    font-size: 22px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .con {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .con.add {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .con.pos {
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }

  .shell.product-variants,
  .shell.stock-variants {
    max-height: 600px;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .con {
    grid-template-columns: 1fr 2fr;
    gap: 20px;
  }

  .con.add {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .con.pos {
    grid-template-columns: 3fr 1fr;
    gap: 20px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1700px;
    margin: 0 auto;
  }

  .con {
    grid-template-columns: 1fr 2fr;
    gap: 25px;
  }

  .con.add {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .con.pos {
    grid-template-columns: 3fr 1fr;
    gap: 25px;
  }

  .shell {
    padding: 25px;
  }
}

/* FILTER SECTION */
#filterSection {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease,
    margin 0.3s ease;
}

#filterSection.show {
  max-height: 2000px;
  opacity: 1;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.search-buttons {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: right;
}

.search-button,
.clear-fields {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--tran-02);
  font-weight: 600;
}

.search-button {
  background: #667eea;
  color: white;
}

.search-button:hover {
  background: #5a6fd8;
}

.clear-fields {
  background: #6c757d;
  color: white;
}

.clear-fields:hover {
  background: #5a6268;
}

/* Table Quick Search */
.search-field {
  position: relative;
}

.search-field .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  color: var(--primary-text-color);
}

.search-field input {
  width: 100%;
  padding: 8px 10px 8px 35px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: var(--primary-text-color);
}

@media screen and (max-width: 630px) {
  .search-field {
    width: 130px;
  }
}

/* Card styling */
.supplier-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.supplier-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.supplier-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #222;
}

.supplier-header .email {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.supplier-address p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

/* Product View */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color);
  padding: 20px 0px 0px 0px;
  text-decoration: underline;
}

.info-value {
  font-size: 14px;
  color: var(--primary-text-color);
  font-weight: 500;
  opacity: 0.8;
}

.description-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.description-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-text-color);
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

.description-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-color);
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shell {
    padding: 20px;
  }
}
.btn {
  background-color: #007bff; /* Blue background */
  color: #ffffff; /* White text */
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: scale(1.03);
}

.btn:disabled {
  background-color: #cccccc; /* Grey if disabled */
  cursor: not-allowed;
}
