/*
 * 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.
 */

@import "vendor/flatpickr";

/* Sidebar collapsed state — applied before JS loads to prevent FOUC */
html.sidebar-collapsed [data-sidebar-target="panel"] {
  width: 0px;
  border-right-width: 0px;
  box-shadow: none;
}

html.sidebar-collapsed [data-sidebar-target="toggleButton"] {
  display: block;
}

/* Secret field: solid disc masking with generous spacing */
.secret-field-input {
  -webkit-text-security: disc;
  letter-spacing: 0.3em;
}

/* When revealed via toggle, remove masking */
.secret-field-input.revealed {
  -webkit-text-security: none;
  letter-spacing: normal;
}

/* Styled select -- custom chevron arrow with proportional spacing */
.select-arrow {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25em;
  padding-left: 0.75rem;
  padding-right: 2.25rem;
}

/* Required field indicator -- red asterisk after label */
.required-label::after {
  content: " *";
  color: #ef4444;
}

/* Display precision inline-edit success pulse (Phase 58 D-12) */
@keyframes pulse-success {
  0% { border-color: #22c55e; }
  100% { border-color: #d1d5db; }
}

.precision-success {
  animation: pulse-success 1s ease-out forwards;
}

/* Global: suppress browser spinner arrows on every numeric input.
   Chrome/Safari/Edge (webkit) + Firefox. Users type values; spinners
   conflict with form styling and are unused throughout the app. */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Backward-compat alias — `.no-spin` still works if any markup references it. */
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spin {
  -moz-appearance: textfield;
  appearance: textfield;
}

