/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Details/Summary accordion arrow rotation */
details[open] > summary svg {
  transform: rotate(90deg);
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Line items table (deals/show) */
#line-items-table {
  border-collapse: collapse;
}

#line-items-table .resize-handle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 16px;
  cursor: col-resize;
  color: oklch(var(--bc) / 0.4);
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  user-select: none;
}

#line-items-table .resize-handle:hover {
  color: oklch(var(--p));
}

#line-items-table th,
#line-items-table td {
  padding: 0.5rem 0.5rem 0.5rem 0.25rem !important;
}

#line-items-table th:first-child,
#line-items-table td:first-child {
  padding-left: 0 !important;
}

#line-items-table th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 1rem !important;
}
