/* Module Custom Styles */

@keyframes assetman-spin {
    to { transform: rotate(360deg); }
}

/* Spinner inside the PDF preview dialog (loading state) */
.assetman-pdf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: assetman-spin 0.8s linear infinite;
}

/* Large spinner for the full-page production overlay */
.assetman-produce-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-top-color: #2ecc71;
    border-radius: 50%;
    animation: assetman-spin 0.9s linear infinite;
}

/* ── Holiday cells in the Syncfusion DatePicker calendar ──────────────
   Syncfusion renders: <td class="e-cell e-disabled assetman-holiday">
                          <span class="e-day">25</span>
                        </td>
   We target td.assetman-holiday (with and without .e-cell) plus the
   inner span so that our styles survive Syncfusion's disabled-cell
   overrides.
   ──────────────────────────────────────────────────────────────────── */

/* Cell background — use td selector to beat Syncfusion specificity */
td.assetman-holiday,
td.assetman-holiday.e-cell,
.e-calendar td.assetman-holiday {
    background-color: #fdecea !important;
    position: relative;
    overflow: visible !important;          /* allow the dot to render  */
}

/* Day number text */
td.assetman-holiday span.e-day,
td.assetman-holiday.e-cell span.e-day,
.e-calendar td.assetman-holiday span.e-day {
    color: #c0392b !important;
    font-weight: 600;
}

/* Small red dot under the day number */
td.assetman-holiday span.e-day::after,
.e-calendar td.assetman-holiday span.e-day::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #e74c3c;
    pointer-events: none;
}

/* Ensure the span itself is a positioning context for the dot */
td.assetman-holiday span.e-day,
.e-calendar td.assetman-holiday span.e-day {
    position: relative;
}

/* Legend row for date picker */
.assetman-datepicker-legend {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 10px;
    color: #95a5a6;
    align-items: center;
}

.assetman-datepicker-legend .legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
    flex-shrink: 0;
}

.assetman-datepicker-legend .legend-dot.holiday {
    background-color: #e74c3c;
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.3);
}