/* ============================================================
   ADS styles - Time: attendance register colour configuration
   Split out of the former monolithic style.css WITHOUT code changes.
   Files are linked in numeric order (see Core/templates/_styles.html) so
   the cascade is identical to the old single file.
   ============================================================ */

/* ============================================================
   Attendance Register - Color Configuration panel
   Redesigned tile grid: each tier gets a card with a live preview
   swatch (shows the actual cell look) plus labeled bg/text pickers,
   instead of bare native <input type=color> lines.
   ============================================================ */
.ar-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.ar-color-tile {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--gray-lite, #f9fafb);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ar-color-tile-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-700, #374151);
    line-height: 1.3;
}
.ar-color-tile-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    align-self: flex-start;
    height: 30px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    border: 1px solid rgba(0,0,0,.08);
    transition: background-color .15s ease, color .15s ease;
}
.ar-color-swatch-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ar-color-swatch-row label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: .3px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.ar-color-swatch-row input[type="color"] {
    width: 38px;
    height: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    background: none;
}
