/* ============================================
   DASHBOARD LAYOUT - GLOBAL OVERRIDES
   ============================================ */

#dashboardlayout {
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  background: transparent;
  padding: 20px;
  padding-top: 0px;
  max-width: 100%;
}

main.clg-main-content {
  padding-top: 0px;
  overflow-x: initial;
}

#dashboardlayout.clg-view-users {
  overflow-x: auto;
  max-width: 1180px;
}

/* ============================================
   HEADER & TITLE
   ============================================ */

#dashboardlayout .dashboard-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding: 0;
}

/* ============================================
   SEARCH BAR (Top)
   ============================================ */

#dashboardlayout .clg-search-bar {
  margin-bottom: 16px;
}

#dashboardlayout .search-form-top {
	position: relative;
	width: 100%;
	display: flex;
	gap: 20px;
}

#dashboardlayout .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

#dashboardlayout .search-input-top {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  background: white;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#dashboardlayout .search-input-top::placeholder {
  color: #9ca3af;
}

#dashboardlayout .search-input-top:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============================================
   OPEN ORDERS + FILTERS CONTAINER (mismo borde que tabla)
   ============================================ */

#dashboardlayout .orders-filters-container {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid #E5E7EB;
}

#dashboardlayout .orders-and-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

#dashboardlayout .orders-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 40px;
}

#dashboardlayout .orders-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

#dashboardlayout .orders-count {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

/* ============================================
   FILTERS BAR (ocupar todo el espacio disponible)
   ============================================ */

#dashboardlayout .filters-bar-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
}

#dashboardlayout .filters-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
  flex-wrap: wrap !important;
}

#dashboardlayout .filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#dashboardlayout .filter-item label {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  white-space: nowrap;
}

#dashboardlayout .filter-item select,
#dashboardlayout .filter-item input[type="date"] {
  padding: 8px 32px 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
  max-width: 180px;
  flex: 0 1 auto;
}

#dashboardlayout .filter-item input[type="date"] {
  background-image: none;
  padding: 8px 12px;
  min-width: 140px;
  max-width: 160px;
}

#dashboardlayout .filter-item select:focus,
#dashboardlayout .filter-item input[type="date"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============================================
   PRINT BUTTON
   ============================================ */

#dashboardlayout .print-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px;
  background: white !important;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
#dashboardlayout button.apply-filters {
	color: #777;
	font-weight: 400;
}

#dashboardlayout .print-btn svg {
  width: 20px;
  height: 20px;
  stroke: #6b7280 !important;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.2s;
}

#dashboardlayout .print-btn:hover {
  background: #6256c4 !important;
  border-color: #6256c4 !important;
}

#dashboardlayout button.apply-filters:hover,
#dashboardlayout button.apply-filters:focus {
	color: #fff;
}

#dashboardlayout .print-btn:hover svg {
  stroke: white !important;
}

/* ============================================
   TABLE WRAPPER (prevent page overflow)
   ============================================ */

#dashboardlayout .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: visible!important;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   TABLE CONTAINER
   ============================================ */

#dashboardlayout .clg-table {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  table-layout: auto;
}

/* ============================================
   TABLE HEADER
   ============================================ */

#dashboardlayout .clg-table thead {
  background: #f9f9f9;
  border-bottom: 1px solid #e5e7eb;
}

#dashboardlayout .clg-table thead th {
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #101828 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: none;
  white-space: nowrap;
}

/* ============================================
   TABLE BODY
   ============================================ */

#dashboardlayout .clg-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

#dashboardlayout .clg-table tbody tr:hover {
  background: #fafafa;
}

#dashboardlayout .clg-table tbody tr:last-child {
  border-bottom: none;
}

#dashboardlayout .clg-table tbody td {
  font-size: 14px !important;
  color: #4A5565 !important;
  border: none;
  vertical-align: middle;
  white-space: nowrap;
}

#dashboardlayout .clg-table tbody td * {
  white-space: nowrap !important;
}

#dashboardlayout .clg-table tbody td select,
#dashboardlayout .clg-table tbody td input,
#dashboardlayout .clg-table tbody td .view-btn {
  min-width: fit-content !important;
  flex-shrink: 0 !important;
}

#dashboardlayout .clg-table tbody td strong {
  font-weight: 400 !important;
  color: #4A5565 !important;
}

#dashboardlayout .clg-table.cell-lines-table tbody td input {
  min-width: 100% !important;
  padding: 8px;
  font-size: .9rem;
}

/* ============================================
   ITEMS COUNT WITH ICON
   ============================================ */

#dashboardlayout .items-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #4A5565;
}

#dashboardlayout .package-icon {
  color: #6b7280;
  flex-shrink: 0;
}

/* ============================================
   STATUS BADGES
   ============================================ */

#dashboardlayout .clg-table .status-select {
	padding: 6px 32px 6px 12px;
	border-radius: 20px;
	border: 1px solid;
	font-size: 14px;
	font-weight: 500;
	appearance: none;
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 12px;
	transition: all 0.2s;
	min-width: 120px !important;
	width: auto !important;
}
#dashboardlayout .clg-table select.status-select {
	cursor: pointer;
}
#dashboardlayout .clg-table span.status-select {
	font-weight: 400;
	padding: 10px 32px 10px 12px;
}

/* Status Colors */
#dashboardlayout .status-select.processing {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

#dashboardlayout .status-select.completed {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

#dashboardlayout .status-select.on-hold {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

#dashboardlayout .status-select.pending {
  background-color: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

#dashboardlayout .status-select.cancelled,
#dashboardlayout .status-select.failed {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

#dashboardlayout .status-select.refunded {
  background-color: #e0e7ff;
  color: #3730a3;
  border-color: #a5b4fc;
}

/* ============================================
   ACTION BUTTONS (Order Details)
   ============================================ */

#dashboardlayout .view-btn {
  padding: 10px 20px 10px 18px;
  background: #6256c4 !important;
  color: white !important;
  border: none !important;
  border-radius: 25px;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

#dashboardlayout .view-btn i {
  font-size: 14px !important;
  font-weight: 900 !important;
}

#dashboardlayout .view-btn:hover {
  background: #3F37A0 !important;
}

/* ============================================
   ORDER DETAILS PAGE
   ============================================ */

#dashboardlayout .order-header-box {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#dashboardlayout .order-header-box .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

#dashboardlayout .order-header-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

#dashboardlayout .header-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#dashboardlayout .header-grid .grid-col p {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.6;
}

#dashboardlayout .header-grid .grid-col p strong {
  display: block;
  color: #111827;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================
   ACCORDION ITEMS
   ============================================ */

#dashboardlayout .item-details-accordion {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

#dashboardlayout .item-summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  color: #111827;
  background: #fafafa;
  transition: background 0.2s;
  list-style: none;
}

#dashboardlayout .item-summary::-webkit-details-marker {
  display: none;
}

#dashboardlayout .item-summary:hover {
  background: #f3f4f6;
}

#dashboardlayout .details-accordion-box-items {
  display: flex;
  align-items: center;
  gap: 12px;
}

#dashboardlayout .clg-item-label {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

#dashboardlayout .item-content {
  padding: 24px;
  background: white;
}

/* ============================================
   FORM FIELDS
   ============================================ */

#dashboardlayout .item-edit-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

#dashboardlayout .grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#dashboardlayout .field {
  display: flex;
  flex-direction: column;
}

#dashboardlayout .field.full {
  grid-column: 1 / -1;
}

#dashboardlayout .field label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

#dashboardlayout .field input,
#dashboardlayout .field textarea {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s;
}

#dashboardlayout .field input:focus,
#dashboardlayout .field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============================================
   META TABLE
   ============================================ */

#dashboardlayout .meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

#dashboardlayout .meta-table tr {
  border-bottom: 1px solid #f3f4f6;
}

#dashboardlayout .meta-table tr:last-child {
  border-bottom: none;
}

#dashboardlayout .meta-table td {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
}

#dashboardlayout .meta-label {
  color: #6b7280;
  font-weight: 500;
  width: 200px;
}

#dashboardlayout .meta-val {
  color: #111827;
}

/* ============================================
   UPDATE BUTTON
   ============================================ */

#dashboardlayout .update-btn {
  padding: 12px 24px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

#dashboardlayout .update-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1410px) {
  #dashboardlayout .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1024px) {
  #dashboardlayout {
    padding: 0px !important;
  }
  
  .clg-dashboard-container {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .clg-sidebar {
    width: 100% !important;
    padding: 30px !important;
  }
  
  #dashboardlayout .header-grid {
    grid-template-columns: 1fr;
  }
  
  #dashboardlayout .grid-row {
    grid-template-columns: 1fr;
  }
  
  #dashboardlayout .orders-and-filters-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }
  
  #dashboardlayout .filters-bar-wrapper {
    width: 100%;
  }
  
  #dashboardlayout .filters-inline {
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  
  #dashboardlayout .filter-item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  #dashboardlayout .filter-item label {
    margin-bottom: 4px;
    text-align: left;
  }
  
  #dashboardlayout .filter-item select,
  #dashboardlayout .filter-item input[type="date"] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  
  /* #dashboardlayout .print-btn {
    width: 100%;
  } */
  
  #dashboardlayout .clg-table thead th {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  /* Font sizes mobile */
  #dashboardlayout {
    padding: 12px;
    font-size: 14px;
  }
  
  #dashboardlayout .dashboard-title {
    font-size: 22px;
  }
  
  #dashboardlayout .orders-section-title {
    font-size: 16px;
  }
  
  #dashboardlayout .orders-count,
  #dashboardlayout .filter-item label,
  #dashboardlayout .search-input-top,
  #dashboardlayout .filter-item select,
  #dashboardlayout .filter-item input[type="date"],
  #dashboardlayout .clg-table,
  #dashboardlayout .view-btn,
  #dashboardlayout .item-summary,
  #dashboardlayout .clg-item-label,
  #dashboardlayout .field label,
  #dashboardlayout .field input,
  #dashboardlayout .field textarea,
  #dashboardlayout .meta-table td,
  #dashboardlayout .update-btn {
    font-size: 14px;
  }
  
  #dashboardlayout .order-header-box h3 {
    font-size: 16px;
  }
  
  /* Layout mobile */
  #dashboardlayout .orders-filters-container {
    padding: 16px;
  }
  
  #dashboardlayout .orders-and-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  #dashboardlayout .orders-header-title {
    margin-bottom: 0;
  }
  
  #dashboardlayout .filters-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  #dashboardlayout .filter-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  #dashboardlayout .filter-item label {
    margin-bottom: 4px;
  }
  
  #dashboardlayout .filter-item select,
  #dashboardlayout .filter-item input[type="date"] {
    width: 100%;
    min-width: 100%;
  }
  
  /*#dashboardlayout .print-btn {
    width: 100%;
  }*/
  
  #dashboardlayout .clg-table thead th,
  #dashboardlayout .clg-table tbody td {
    padding: 12px 10px;
  }
  
  #dashboardlayout .clg-table thead th {
    white-space: normal;
  }
}

/* ============================================
   VISTA B - ORDER DETAILS PAGE
   ============================================ */

/* Order Information Card */
#dashboardlayout .order-info-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px 32px 32px 32px;
  margin-bottom: 24px;
}

/* Top Bar: Back to List + Status (dentro del card) */
#dashboardlayout .order-detail-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

#dashboardlayout .back-to-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

#dashboardlayout .back-to-list-btn:hover {
  color: #374151;
}

#dashboardlayout .back-to-list-btn svg {
  width: 20px;
  height: 20px;
}

#dashboardlayout .order-status-form {
  margin: 0;
}

#dashboardlayout .order-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

#dashboardlayout .order-icon {
  color: #155DFC;
  background: #EFF6FF;
  border-radius: 12px;
  padding: 12px;
  flex-shrink: 0;
}

#dashboardlayout .order-info-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

#dashboardlayout .order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

#dashboardlayout .order-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#dashboardlayout .order-detail-label {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
  text-transform: none;
  letter-spacing: 0;
}

#dashboardlayout .order-detail-value {
  font-size: 14px;
  font-weight: 400;
  color: #111827;
}

/* Item Accordion */
#dashboardlayout .order-items-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#dashboardlayout .item-accordion {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

#dashboardlayout .item-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  background: white;
  transition: background 0.2s;
}

#dashboardlayout .item-accordion-header::-webkit-details-marker {
  display: none;
}

#dashboardlayout .item-accordion-header:hover {
  background: #f9fafb;
}

#dashboardlayout .item-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#dashboardlayout .item-icon {
  color: #6b7280;
  flex-shrink: 0;
}

#dashboardlayout .item-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

#dashboardlayout .item-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#dashboardlayout .edit-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

#dashboardlayout .edit-product-btn:hover {
  color: #374151;
}

#dashboardlayout .edit-product-btn svg {
  width: 16px;
  height: 16px;
}

#dashboardlayout .accordion-arrow {
  color: #6b7280;
  transition: transform 0.2s;
}

#dashboardlayout .item-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}

/* Item Content */
#dashboardlayout .item-accordion-content {
  padding: 24px;
  border-top: 1px solid #E5E7EB;
}

#dashboardlayout .item-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

#dashboardlayout .item-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#dashboardlayout .item-field.full {
  grid-column: 1 / -1;
}

#dashboardlayout .item-field label {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}

#dashboardlayout .item-field input,
#dashboardlayout .item-field textarea {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  transition: all 0.2s;
}

#dashboardlayout .item-field input:focus,
#dashboardlayout .item-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#dashboardlayout .item-field textarea {
  resize: vertical;
  font-family: "Fira Sans", sans-serif;
}

/* Metadata Table */
#dashboardlayout .metadata-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  outline: #e9e9e9 solid 1px;
}

#dashboardlayout .metadata-table thead {
  background: #f9f9f9;
  border-bottom: 1px solid #e5e7eb;
}

#dashboardlayout .metadata-table thead th {
  padding: 14px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #101828;
  text-transform: none;
  letter-spacing: 0;
  border: none;
}

#dashboardlayout .metadata-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

#dashboardlayout .metadata-table tbody tr:hover {
  background: #fafafa;
}

#dashboardlayout .metadata-table tbody tr:last-child {
  border-bottom: none;
}

#dashboardlayout .metadata-table tbody td {
  padding: 15px 10px;
  font-size: 14px;
  color: #4A5565;
  border: none;
  vertical-align: middle;
}

#dashboardlayout .metadata-table tbody td:first-child {
  color: #4A5565;
  font-weight: 400;
}

#dashboardlayout .metadata-table p {
  margin-bottom: 0px;
}

/* Update Button */
#dashboardlayout .update-order-btn {
  padding: 13px 25px;
  background: #6256c4;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin-top: 8px;
  width: fit-content;
}

#dashboardlayout .update-order-btn svg {
  width: 21px;
  height: 21px;
  stroke: white;
  fill: none;
}

#dashboardlayout .update-order-btn:hover {
  background: #3F37A0;
}

/* Responsive para Vista B */
@media (max-width: 1024px) {
  #dashboardlayout .order-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #dashboardlayout .item-fields-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #dashboardlayout .order-info-card {
    padding: 20px;
  }
  
  #dashboardlayout .order-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #dashboardlayout .order-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #dashboardlayout .order-info-title {
    font-size: 20px;
  }
  
  #dashboardlayout .item-accordion-header {
    padding: 16px;
  }
  
  #dashboardlayout .item-accordion-content {
    padding: 16px;
  }
  
  #dashboardlayout .item-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}

/* ============================================
   CELL LINES VIEW
   ============================================ */

/* Header Section */
#dashboardlayout .cell-lines-header {
  margin-bottom: 24px;
}

#dashboardlayout .cell-lines-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding: 0;
}

#dashboardlayout .cell-lines-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  margin: 0;
}

/* Table Card */
#dashboardlayout .cell-lines-table-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

#dashboardlayout .cell-lines-table {
  margin-bottom: 0;
  border: none;
  box-shadow: none;
  width: 100%;
  table-layout: auto;
}

#dashboardlayout .cell-lines-table-card .table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
}

/* Cell Actions (botones) */
#dashboardlayout .cell-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Botones Cell Lines - Estilo Order Details */
#dashboardlayout .clg-btn-edit,
#dashboardlayout .clg-btn-save,
#dashboardlayout .clg-btn-delete,
#dashboardlayout .clg-btn-cancel {
  padding: 8px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 24px;
}

#dashboardlayout .clg-btn-add {
  padding: 8px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 24px;
  width: 100%;
}

#dashboardlayout .clg-btn-edit {
  background: #6256c4;
  color: white;
}
#dashboardlayout .clg-btn-edit:hover {
  background: #3F37A0;
}
#dashboardlayout .clg-btn-save {
  background: #10b981;
  color: white;
}
#dashboardlayout .clg-btn-save:hover {
  background: #059669;
}
#dashboardlayout .clg-btn-delete {
  background: #ef4444;
  color: white;
}
#dashboardlayout .clg-btn-delete:hover {
  background: #dc2626;
}
#dashboardlayout .clg-btn-cancel {
  background: #6b7280;
  color: white;
}
#dashboardlayout .clg-btn-cancel:hover {
  background: #4b5563;
}
#dashboardlayout .clg-btn-add {
  background: #6256c4;
  color: #fff;
  max-width: 74px;
  min-height: 36px;
}
#dashboardlayout .clg-btn-add:hover {
  background: #3F37A0;
}
#dashboardlayout .clg-btn-add svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* Inputs Cell Lines */
#dashboardlayout tfoot input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  width: 100%;
  transition: all 0.2s;
}
#dashboardlayout tfoot input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
#dashboardlayout tfoot input::placeholder {
  color: #9ca3af;
}

/* Tfoot - Add New Row */
#dashboardlayout .cell-lines-table tfoot {
  background: #f9f9f9;
  border-top: 2px solid #e5e7eb;
}
#dashboardlayout .add-new-row td {
  padding: 16px 10px;
}

/* No Records */
#dashboardlayout .no-records-cell {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 40px 20px !important;
}

/* Responsive Cell Lines */
@media (max-width: 768px) {
  #dashboardlayout .cell-lines-title-section {
    flex-direction: column;
    align-items: flex-start;
  }
  #dashboardlayout .cell-lines-title {
    font-size: 22px;
  }
  #dashboardlayout .cell-actions {
    flex-wrap: wrap;
  }
  #dashboardlayout .clg-btn-edit,
  #dashboardlayout .clg-btn-save,
  #dashboardlayout .clg-btn-delete,
  #dashboardlayout .clg-btn-cancel {
    font-size: 12px;
    padding: 5px 10px;
  }
}

