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

/* While a form is being sent Turbo switches its Save button off. Make that visible (dimmed, waiting cursor) so nobody taps it again
   thinking nothing happened (Jeff, Nov 3: a daily log was saved 7 times). */
button:disabled, input[type="submit"]:disabled { opacity: .6; cursor: wait; }

/* Payment markers on a timeline (Jeff, Nov 17): a "$" badge that opens a small card on tap (a <details>, so no script is needed) or on
   hover, and a thin line at the payment's due day. Used on the Schedule page's timeline and the customer's timeline. */
.pay-mark { position: absolute; top: 2px; transform: translateX(-50%); z-index: 30; }
.pay-mark > summary { list-style: none; }
.pay-mark > summary::-webkit-details-marker { display: none; }
.pay-mark-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 9999px; background: #b45309; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 0 0 2px #fff; }
.pay-mark-pop { display: none; position: absolute; top: 20px; left: -8px; width: max-content; max-width: 260px; white-space: normal; border-radius: 8px; background: #1e293b; color: #fff; padding: 6px 8px; font-size: 11px; font-weight: 600; line-height: 1.35; box-shadow: 0 6px 16px rgba(15, 23, 42, .3); }
.pay-mark--left .pay-mark-pop { left: auto; right: -8px; }
.pay-mark[open] .pay-mark-pop { display: block; }
@media (hover: hover) { .pay-mark:hover .pay-mark-pop { display: block; } }
.gantt-pay-line { width: 0; border-left: 1.5px dashed #b45309; opacity: .75; }

/* "Updating the list…" (Jeff, Nov 19): shows the moment a filter changes, fades the old list until the new one arrives. See lib/updating.js. */
.jas-updating-pill { position: fixed; top: .75rem; left: 50%; z-index: 9999; display: flex; align-items: center; gap: .5rem; max-width: calc(100vw - 2rem);
  padding: .5rem .95rem; border-radius: 999px; background: #0f172a; color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.2;
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, .55); opacity: 0; transform: translate(-50%, -140%); pointer-events: none; transition: opacity .15s, transform .15s; }
.jas-updating-pill.is-on { opacity: 1; transform: translate(-50%, 0); }
.jas-updating-spin { flex: none; width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: jas-updating-spin .7s linear infinite; }
@keyframes jas-updating-spin { to { transform: rotate(360deg); } }
.jas-updating-dim { opacity: .4; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) { .jas-updating-spin { animation-duration: 2s; } .jas-updating-pill, .jas-updating-dim { transition: none; } }
@media print { .jas-updating-pill { display: none; } }
