/* Card Apple */
.apple-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.apple-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Inputs */
.apple-input {
  background: rgba(0,0,0,0.03);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 10px 12px;
  width: 100%;
  outline: none;
}

/* =========================
   Ticket details (new panel)
========================= */

/* Custom scrollbar (opt-in via .custom-scroll) */
.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.10);
  border-radius: 10px;
}
.custom-scroll:hover::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.20); }

/* Hover surface for cards */
.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f3f4f6;
}
.card-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.2);
}

/* Modal scale animation hook used by core/dom.js */
.modal-content-anim {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
}

/* Sticky header for quote table */
.sticky-th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f9fafb; /* gray-50 */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Sticky table header helper */
.sticky-th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f9fafb; /* gray-50 */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.apple-input:focus {
  background: #fff;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.10);
}
.apple-input::placeholder { color: rgba(134,134,139,0.9); }

/* Pills status */
.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  flex: 0 0 auto;
}
.st-blue   { background: #eef7ff; color: #0077ed; } .st-blue::before   { background: #0077ed; }
.st-green  { background: #f0fdf4; color: #15803d; } .st-green::before  { background: #15803d; }
.st-orange { background: #fff7ed; color: #c2410c; } .st-orange::before { background: #c2410c; }
.st-purple { background: #f3e8ff; color: #9333ea; } .st-purple::before { background: #9333ea; }
.st-gray   { background: #f3f4f6; color: #6b7280; } .st-gray::before   { background: #6b7280; }
.st-red    { background: #fef2f2; color: #b91c1c; } .st-red::before    { background: #b91c1c; }

/* Modal animation */
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content-anim { animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Signature pad placeholder */
.sig-pad {
  background: #fbfbfd;
  border: 2px dashed #d1d1d6;
  border-radius: var(--radius-md);
  cursor: crosshair;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sig-pad:hover { border-color: var(--apple-blue); background: #f0f8ff; }

/* DEVIZ items */
#det-quote-items .quote-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
}
#det-quote-items .quote-item-title { font-weight: 700; color: var(--apple-text); }
#det-quote-items .quote-item-meta { font-size: 12px; color: rgba(134,134,139,1); margin-top: 2px; }
#det-quote-items .quote-item-price { font-weight: 800; white-space: nowrap; color: var(--apple-text); }

.quote-mini-btn {
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.quote-mini-btn:hover { background: #fff; transform: translateY(-1px); border-color: rgba(0,0,0,0.18); }
.quote-mini-btn.danger { color: #b91c1c; border-color: rgba(185, 28, 28, 0.25); }
.quote-mini-btn.danger:hover { border-color: rgba(185, 28, 28, 0.35); }

button:disabled, button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(29,29,31,0.92);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }