/* ─── panel-base.css — layout, nav, tokens, formularios ─── */

/* Hereda los tokens del tema hijo si están disponibles, los redefine en standalone */
:root {
    --ar-ink:         #0E0E10;
    --ar-paper:       #F7F4EE;
    --ar-crimson:     #E1261C;
    --ar-crimson-700: #B81C13;
    --ar-amber:       #F5C518;
    --ar-violet:      #3B1F4D;
    --ar-n-100: #EFEAE0;
    --ar-n-200: #DDD8CC;
    --ar-n-400: #8A8170;
    --ar-n-500: #5C5448;

    --ar-green:  #22C55E;
    --ar-red:    var(--ar-crimson);
    --ar-blue:   #3B82F6;

    --ar-font-body:    'Inter', system-ui, sans-serif;
    --ar-font-mono:    'JetBrains Mono', monospace;
    --ar-font-display: 'Bebas Neue', 'Anton', sans-serif;

    --ar-radius-sm:  6px;
    --ar-radius-md:  8px;
    --ar-radius-lg: 12px;
    --ar-radius-xl: 20px;

    --ar-sidebar-w: 220px;
    --ar-ease: cubic-bezier(.2,.8,.2,1);
    --ar-dur:  160ms;

    --ar-shadow-sm: 0 1px 2px rgba(14,14,16,.06), 0 2px 8px rgba(14,14,16,.07);
    --ar-shadow-md: 0 1px 2px rgba(14,14,16,.06), 0 8px 24px rgba(14,14,16,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.ar-panel {
    font-family: var(--ar-font-body);
    background: #F2EFE9;
    color: var(--ar-ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.ar-sidebar {
    width: var(--ar-sidebar-w);
    min-height: 100vh;
    background: var(--ar-ink);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}

.ar-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ar-brand-mark {
    font-family: var(--ar-font-display);
    font-size: 28px;
    line-height: 1;
    color: var(--ar-crimson);
    background: rgba(225,38,28,.15);
    width: 44px; height: 44px;
    border-radius: var(--ar-radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ar-brand-mark--lg { width: 56px; height: 56px; font-size: 34px; }

.ar-brand-name {
    font-family: var(--ar-font-display);
    font-size: 15px;
    letter-spacing: .04em;
    color: #fff;
    line-height: 1;
}
.ar-brand-role {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-top: 3px;
}

.ar-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; flex: 1; }

.ar-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--ar-radius-md);
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background var(--ar-dur) var(--ar-ease), color var(--ar-dur) var(--ar-ease);
}
.ar-nav__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.ar-nav__item--active { background: var(--ar-crimson) !important; color: #fff !important; }
.ar-nav__divider { height: 1px; background: rgba(255,255,255,.1); margin: 6px 8px; }

.ar-nav__icon { width: 18px; text-align: center; font-size: 14px; opacity: .8; line-height: 1; }
.ar-nav__icon i { display: inline-block; width: 14px; }
.ar-nav__label { flex: 1; }

.ar-sidebar__footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.ar-sidebar__user { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.ar-sidebar__footer form { margin: 0; padding: 0; background: none; border: none; }
.ar-sidebar__change-pw { display: block; font-size: 12px; color: rgba(255,255,255,.45); text-decoration: none; margin-bottom: 6px; }
.ar-sidebar__change-pw:hover { color: rgba(255,255,255,.8); }
.ar-sidebar__logout { font-size: 12px; color: rgba(255,255,255,.45); text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.ar-sidebar__logout:hover { color: var(--ar-crimson); }

.ar-panel-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 32px;
    background: var(--ar-ink);
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 99;
}
.ar-panel-footer__label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.2);
}
.ar-panel-footer__logo {
    height: 13px;
    width: auto;
    opacity: .22;
    transition: opacity .2s;
}
.ar-panel-footer:hover .ar-panel-footer__logo { opacity: .5; }

/* ── Main content ────────────────────────────────────────── */
.ar-main {
    margin-left: var(--ar-sidebar-w);
    flex: 1;
    min-width: 0;
    padding: 0 0 32px;
    display: flex;
    flex-direction: column;
}

/* ── Section body (wraps all non-dashboard pages) ────────── */
.ar-section-body {
    padding: 0 32px 40px;
    flex: 1;
    min-width: 0;
}

/* ── Page header — full-width white band ─────────────────── */
.ar-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* bleed to full section width */
    margin: 0 -32px 28px;
    padding: 22px 32px 18px;
    background: #fff;
    border-bottom: 1.5px solid var(--ar-n-100);
    flex-shrink: 0;
}
.ar-page-title { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.ar-page-sub   { font-size: 14px; font-weight: 400; color: var(--ar-n-400); margin-left: 8px; }
.ar-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Profile header — full-width white band ──────────────── */
.ar-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    /* same bleed treatment as ar-page-header */
    margin: 0 -32px 28px;
    padding: 22px 32px 18px;
    background: #fff;
    border-bottom: 1.5px solid var(--ar-n-100);
    flex-shrink: 0;
}

.ar-initials-avatar {
    width: 52px; height: 52px;
    border-radius: var(--ar-radius-md);
    background: var(--ar-ink);
    color: #fff;
    font-family: var(--ar-font-display);
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.ar-profile-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.ar-profile-meta {
    font-size: 13px;
    color: var(--ar-n-400);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Table panel (white card container) ──────────────────── */
.ar-table-panel {
    background: #fff;
    border-radius: var(--ar-radius-lg);
    border: 1px solid var(--ar-n-100);
    overflow: hidden;
    box-shadow: var(--ar-shadow-sm);
    margin-bottom: 24px;
}

.ar-table-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 13px;
    border-bottom: 1px solid var(--ar-n-100);
}

.ar-table-panel__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ar-table-panel .ar-table th {
    background: #FAFAF8;
}

.ar-table-panel .ar-table td:first-child,
.ar-table-panel .ar-table th:first-child { padding-left: 20px; }
.ar-table-panel .ar-table td:last-child,
.ar-table-panel .ar-table th:last-child  { padding-right: 20px; }

/* ── Filter card ─────────────────────────────────────────── */
.ar-filter-card {
    background: #fff;
    border: 1px solid var(--ar-n-100);
    border-radius: var(--ar-radius-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    box-shadow: var(--ar-shadow-sm);
}

.ar-filter-card .ar-select { width: auto; }

/* ── Two-col detail grid ─────────────────────────────────── */
.ar-detail-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .ar-detail-cols { grid-template-columns: 1fr; }
    .ar-profile-header { flex-wrap: wrap; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.ar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: var(--ar-font-body);
    font-size: 13.5px; font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--ar-radius-md);
    border: none; cursor: pointer; text-decoration: none;
    transition: background var(--ar-dur) var(--ar-ease), transform var(--ar-dur) var(--ar-ease), opacity var(--ar-dur);
    white-space: nowrap;
}
.ar-btn:hover { transform: translateY(-1px); }
.ar-btn:active { transform: translateY(0); }
.ar-btn--primary  { background: var(--ar-crimson); color: #fff; }
.ar-btn--primary:hover { background: var(--ar-crimson-700); }
.ar-btn--outline  { background: transparent; color: var(--ar-ink); border: 1.5px solid var(--ar-n-200); }
.ar-btn--outline:hover { border-color: var(--ar-n-400); }
.ar-btn--ghost    { background: transparent; color: var(--ar-n-500); }
.ar-btn--ghost:hover { color: var(--ar-ink); }
.ar-btn--green    { background: var(--ar-green); color: #fff; }
.ar-btn--amber    { background: var(--ar-amber); color: #000; }
.ar-btn--amber:hover { filter: brightness(.92); }
.ar-btn--red      { background: var(--ar-crimson); color: #fff; }
.ar-btn--red:hover { background: var(--ar-crimson-700); }
.ar-btn--danger   { background: transparent; color: var(--ar-crimson); border: 1.5px solid var(--ar-n-200); }
.ar-btn--danger:hover { background: #FEE2E2; border-color: var(--ar-crimson); }
.ar-btn--sm  { padding: 6px 12px; font-size: 12.5px; }
.ar-btn--xs  { padding: 4px 8px;  font-size: 11.5px; }
.ar-btn--full { width: 100%; }
.ar-btn--icon { padding: 8px 12px; }

/* ── Inputs ──────────────────────────────────────────────── */
.ar-input {
    width: 100%;
    font-family: var(--ar-font-body);
    font-size: 14px;
    padding: 9px 12px;
    border: 1.5px solid var(--ar-n-200);
    border-radius: var(--ar-radius-md);
    background: #fff;
    color: var(--ar-ink);
    outline: none;
    transition: border-color var(--ar-dur) var(--ar-ease), box-shadow var(--ar-dur);
}
.ar-input:focus { border-color: var(--ar-crimson); box-shadow: 0 0 0 3px rgba(225,38,28,.12); }
.ar-input::placeholder { color: var(--ar-n-400); }
.ar-textarea { resize: vertical; min-height: 80px; }
.ar-input--sm { padding: 6px 10px; font-size: 12.5px; width: auto; }
.ar-input--search { max-width: 340px; }
.ar-input--date   { width: auto; }
.ar-select {
    width: 100%;
    font-family: var(--ar-font-body);
    font-size: 14px;
    padding: 9px 36px 9px 12px;
    border: 1.5px solid var(--ar-n-200);
    border-radius: var(--ar-radius-md);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5448' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--ar-ink);
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color var(--ar-dur) var(--ar-ease), box-shadow var(--ar-dur);
}
.ar-select:focus { border-color: var(--ar-crimson); box-shadow: 0 0 0 3px rgba(225,38,28,.12); }
.ar-select--sm { padding: 6px 30px 6px 10px; font-size: 12.5px; width: auto; }

/* ── Forms ───────────────────────────────────────────────── */
.ar-form--card { background: #fff; border-radius: var(--ar-radius-lg); padding: 28px; box-shadow: var(--ar-shadow-sm); max-width: 720px; }
.ar-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* Two-column form layout (main + sidebar) */
.ar-form-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
.ar-form-layout__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ar-form-layout__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 20px; }
.ar-form-card {
    background: #fff;
    border-radius: var(--ar-radius-lg);
    box-shadow: var(--ar-shadow-sm);
    padding: 24px;
}
.ar-form-card--flush { padding: 0; overflow: hidden; }
.ar-form-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--ar-n-100);
}
.ar-form-card__icon {
    width: 32px; height: 32px;
    background: var(--ar-n-50, #FAFAFA);
    border: 1px solid var(--ar-n-100);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ar-n-400);
    flex-shrink: 0;
}
.ar-form-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ar-ink);
    letter-spacing: -0.01em;
}
.ar-form-card__sub {
    font-size: 12px;
    color: var(--ar-n-400);
    margin-top: 1px;
}
.ar-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.ar-form-row--auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ar-badge-img { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 6px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s; }
.ar-badge-img input { position: absolute; opacity: 0; width: 0; height: 0; }
.ar-badge-img--yes { background: #F0FFF4; border-color: #86EFAC; color: #166534; }
.ar-badge-img--no  { background: #FFF5F5; border-color: #FCA5A5; color: #991B1B; }
.ar-badge-img input:checked + span { font-weight: 800; }
.ar-img-auth-group { display: flex; gap: 8px; }
.ar-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ar-field--wide { grid-column: 1 / -1; }
.ar-label { font-size: 13px; font-weight: 600; color: var(--ar-n-500); }
.ar-required { color: var(--ar-crimson); }
.ar-form-footer { display: flex; gap: 10px; padding-top: 8px; }
.ar-form-footer--sticky { position: sticky; bottom: 0; background: rgba(242,239,233,.95); backdrop-filter: blur(4px); padding: 12px 0; margin-top: 20px; }
.ar-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.ar-checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.ar-radio-group { display: flex; flex-wrap: wrap; gap: 16px; }
.ar-radio--card { align-items: flex-start; gap: 12px; border: 1.5px solid var(--ar-n-200); border-radius: var(--ar-radius-md); padding: 12px 16px; flex: 1; min-width: 200px; transition: border-color .15s; }
.ar-radio--card:hover { border-color: var(--ar-n-400); }
.ar-radio--card-active,
.ar-radio--card input:checked ~ * { color: var(--ar-crimson); }
.ar-radio--card input:checked { accent-color: var(--ar-crimson); }
.ar-radio--card-active { border-color: var(--ar-crimson) !important; background: #FFF5F5; }
.ar-field-hint { font-size: 12px; color: var(--ar-n-400); margin: 2px 0 8px; }
.ar-form-section-label { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ar-crimson); margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ar-n-100); }
.ar-card-subtitle { font-size: 12px; font-weight: 700; color: var(--ar-n-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ar-collapsible { border: 1.5px solid var(--ar-n-200); border-radius: var(--ar-radius-md); padding: 12px 16px; margin-top: 16px; }
.ar-collapsible summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ar-crimson); }

/* ── Tables ──────────────────────────────────────────────── */
.ar-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ar-table th {
    text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--ar-n-400);
    padding: 10px 12px; background: #FAFAF8;
    border-bottom: 1.5px solid var(--ar-n-100);
}
.ar-table td { padding: 12px 12px; border-bottom: 1px solid #F4F2EE; vertical-align: middle; }
.ar-table tr:last-child td { border-bottom: none; }
.ar-table tbody tr { transition: background var(--ar-dur) var(--ar-ease); }
.ar-table tr:hover td { background: rgba(14,14,16,.03); }
.ar-actions { display: flex; gap: 6px; align-items: center; }

/* ── Row status coloring ─────────────────────────────────── */
.ar-tr--overdue > td { background: rgba(225,38,28,.03); }
.ar-tr--overdue > td:first-child {
    border-left: 3px solid var(--ar-crimson);
    padding-left: 17px !important;
}
.ar-tr--overdue:hover > td { background: rgba(225,38,28,.07) !important; }

.ar-tr--pending > td { background: rgba(245,197,24,.05); }
.ar-tr--pending > td:first-child {
    border-left: 3px solid var(--ar-amber);
    padding-left: 17px !important;
}
.ar-tr--pending:hover > td { background: rgba(245,197,24,.1) !important; }

/* ── Amount color by status ──────────────────────────────── */
.ar-amount { font-family: var(--ar-font-mono); font-weight: 700; font-size: 13px; }
.ar-amount--paid    { color: #16A34A; }
.ar-amount--pending { color: #D97706; }
.ar-amount--overdue { color: var(--ar-crimson); }

/* ── Badges ──────────────────────────────────────────────── */
.ar-badge {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
    white-space: nowrap;
}
.ar-badge--green  { background: #DCFCE7; color: #166534; }
.ar-badge--amber  { background: #FEF3C7; color: #92400E; }
.ar-badge--red    { background: #FEE2E2; color: #991B1B; }
.ar-badge--gray   { background: var(--ar-n-100); color: var(--ar-n-500); }
.ar-badge--violet { background: #EDE9FE; color: #5B21B6; }
.ar-badge--blue   { background: #DBEAFE; color: #1E40AF; }

/* ── Table panel dark-head variant (for attendance) ──────── */
.ar-table-panel--ink .ar-table-panel__head {
    background: var(--ar-ink);
    border-bottom-color: rgba(255,255,255,.08);
}
.ar-table-panel--ink .ar-table-panel__title { color: #fff; }

.ar-att-slot-time {
    font-family: var(--ar-font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--ar-amber);
    line-height: 1;
    flex-shrink: 0;
}

.ar-att-slot-meta {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin-top: 3px;
}

.ar-att-slot-count {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    flex-shrink: 0;
}

/* ── Stat cards ──────────────────────────────────────────── */
.ar-stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; margin-bottom: 32px; }
.ar-stat-grid--sm { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); }
.ar-stat-card { background: #fff; border-radius: var(--ar-radius-lg); padding: 20px; box-shadow: var(--ar-shadow-sm); }
.ar-stat-card--wide { grid-column: span 2; }
.ar-stat-value { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.ar-stat-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ar-n-400); }
.ar-stat-card--green .ar-stat-value { color: #16A34A; }
.ar-stat-card--amber .ar-stat-value { color: #D97706; }
.ar-stat-card--red   .ar-stat-value { color: var(--ar-crimson); }

/* ── Cards ───────────────────────────────────────────────── */
.ar-card { background: #fff; border-radius: var(--ar-radius-lg); padding: 22px; box-shadow: var(--ar-shadow-sm); }
.ar-card-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.ar-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ar-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.ar-dl dt { font-weight: 600; color: var(--ar-n-500); }

/* ── Section ─────────────────────────────────────────────── */
.ar-section { margin-bottom: 32px; }
.ar-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ar-section-title  { font-size: 16px; font-weight: 700; }
.ar-quick-actions  { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Misc ────────────────────────────────────────────────── */
.ar-link   { color: var(--ar-crimson); text-decoration: none; font-weight: 500; }
.ar-link:hover { text-decoration: underline; }
.ar-empty  { color: var(--ar-n-400); font-size: 14px; padding: 24px 0; }
.ar-empty--centered { text-align: center; padding: 48px; }
.ar-alert  { padding: 12px 16px; border-radius: var(--ar-radius-md); margin-bottom: 20px; font-size: 14px; }
.ar-alert--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.ar-alert--success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.ar-search-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.ar-filter-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.ar-date-nav   { display: flex; gap: 6px; align-items: center; }
.ar-stat-row   { display: flex; gap: 8px; }
.ar-stat-label-badge { display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--ar-n-400); }

/* ── Slot / schedule cards ───────────────────────────────── */
.ar-slot-list  { display: flex; flex-direction: column; gap: 10px; }
.ar-slot-card  { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--ar-radius-md); padding: 14px 18px; box-shadow: var(--ar-shadow-sm); }
.ar-slot-time  { font-family: var(--ar-font-mono); font-size: 20px; font-weight: 500; color: var(--ar-ink); min-width: 56px; }
.ar-slot-info  { flex: 1; }
.ar-slot-discipline { font-weight: 700; font-size: 14px; }
.ar-slot-day   { font-size: 12px; color: var(--ar-n-400); margin-top: 2px; }

/* ── Login page ──────────────────────────────────────────── */
.ar-panel--login {
    display: flex; align-items: center; justify-content: center;
    background: var(--ar-ink);
    min-height: 100vh;
}
.ar-login-card {
    background: #fff;
    border-radius: var(--ar-radius-xl);
    padding: 40px;
    width: 100%; max-width: 400px;
    box-shadow: 0 32px 80px rgba(0,0,0,.45);
}
.ar-login-brand { text-align: center; margin-bottom: 28px; }
.ar-login-title { font-family: var(--ar-font-display); font-size: 28px; letter-spacing: .04em; margin-top: 10px; }
.ar-login-sub   { font-size: 13px; color: var(--ar-n-400); margin-top: 4px; }
.ar-turnstile-widget { display: flex; justify-content: center; margin-bottom: 16px; }

/* ── Attendance ──────────────────────────────────────────── */
.ar-att-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    background: #FAF8F4; border: 1px solid var(--ar-n-100);
    border-radius: var(--ar-radius-md); padding: 10px 14px;
    margin-bottom: 20px; font-size: 12.5px;
}
.ar-att-legend__label { font-weight: 600; color: var(--ar-n-500); margin-right: 4px; }
.ar-att-legend__text  { color: var(--ar-n-500); margin-right: 8px; }

.ar-att-group { margin-bottom: 24px; }
.ar-att-group-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0 8px; border-bottom: 2px solid var(--ar-n-100); margin-bottom: 4px;
}
.ar-att-discipline { font-weight: 700; font-size: 15px; }
.ar-att-meta       { font-size: 12.5px; color: var(--ar-n-400); }

.ar-att-list { display: flex; flex-direction: column; gap: 2px; }
.ar-att-row  {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 4px; border-bottom: 1px solid #FAF8F4;
}
.ar-att-name  { flex: 1; font-size: 14px; min-width: 120px; }
.ar-att-pills { display: flex; gap: 5px; }

/* Pill base — unselected */
.ar-att-pill-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 13px; font-weight: 700; cursor: pointer;
    border: 2px solid var(--ar-n-200); color: var(--ar-n-400);
    background: #fff; transition: all 120ms ease; user-select: none;
}
.ar-att-pill-label:hover { border-color: var(--ar-n-400); color: var(--ar-ink); }
.ar-att-radio-input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Pill selected states */
.ar-att-pill-label.is-selected.ar-att-pill--a   { background: var(--ar-green);   border-color: var(--ar-green);   color: #fff; }
.ar-att-pill-label.is-selected.ar-att-pill--m   { background: var(--ar-crimson); border-color: var(--ar-crimson); color: #fff; }
.ar-att-pill-label.is-selected.ar-att-pill--med { background: #3B82F6;           border-color: #3B82F6;           color: #fff; }
.ar-att-pill-label.is-selected.ar-att-pill--r   { background: var(--ar-amber);   border-color: var(--ar-amber);   color: #000; }
.ar-att-pill-label.is-selected.ar-att-pill--s   { background: var(--ar-n-400);   border-color: var(--ar-n-400);   color: #fff; }
.ar-att-pill-label.is-selected.ar-att-pill--p   { background: #7C3AED;           border-color: #7C3AED;           color: #fff; }

/* Summary chips (dashboard / student show) */
.ar-stat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ar-att-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 13px; font-weight: 700; cursor: default;
}
.ar-att--b { background: #DCFCE7; color: #15803D; }
.ar-att--a { background: #FEF9C3; color: #854D0E; }
.ar-att--m { background: #FEE2E2; color: #B91C1C; }
.ar-hint   { font-size: 11.5px; color: var(--ar-n-400); margin-top: 6px; }

/* Legend pills (static display) */
.ar-att-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    font-size: 11px; font-weight: 700; cursor: default;
}
.ar-att-pill--a   { background: var(--ar-green);   color: #fff; }
.ar-att-pill--m   { background: var(--ar-crimson); color: #fff; }
.ar-att-pill--med { background: #3B82F6;           color: #fff; }
.ar-att-pill--r   { background: var(--ar-amber);   color: #000; }
.ar-att-pill--s   { background: var(--ar-n-400);   color: #fff; }
.ar-att-pill--p   { background: #7C3AED;           color: #fff; }

/* Sticky save bar */
.ar-form-footer--sticky {
    position: sticky; bottom: 0;
    background: rgba(247,244,238,.92); backdrop-filter: blur(8px);
    padding: 14px 0; margin-top: 24px;
    border-top: 1px solid var(--ar-n-100);
}

/* ── Settings page ───────────────────────────────────────── */

/* Sección — tarjeta contenedora de cada bloque de configuración */
.ar-cfg-section {
    background: #fff;
    border: 1.5px solid var(--ar-n-100);
    border-radius: var(--ar-radius-lg);
    overflow: hidden;
    box-shadow: var(--ar-shadow-sm);
    margin-bottom: 20px;
    max-width: 760px;
}

/* Cabecera de sección — icono + título + badge */
.ar-cfg-section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--ar-n-100);
    background: #FAFAF8;
}

.ar-cfg-section__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ar-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ar-cfg-section__icon svg { width: 20px; height: 20px; }

.ar-cfg-section__icon--wa      { background: rgba(37,211,102,.12); }
.ar-cfg-section__icon--wa svg  { fill: #16A34A; }

.ar-cfg-section__icon--clock   { background: rgba(59,130,246,.10); }
.ar-cfg-section__icon--clock svg { fill: #2563EB; }

.ar-cfg-section__icon--contact { background: rgba(225,38,28,.10); }
.ar-cfg-section__icon--contact svg { fill: var(--ar-crimson); }

.ar-cfg-section__icon--pricing { background: rgba(34,197,94,.12); }
.ar-cfg-section__icon--pricing svg { fill: #16a34a; }

.ar-cfg-section__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ar-ink);
    line-height: 1.2;
}

.ar-cfg-section__desc {
    font-size: 12.5px;
    color: var(--ar-n-400);
    margin-top: 3px;
    line-height: 1.45;
}
.ar-cfg-section__desc a { color: var(--ar-crimson); text-decoration: none; }
.ar-cfg-section__desc a:hover { text-decoration: underline; }

.ar-cfg-section__badge { margin-left: auto; flex-shrink: 0; }

/* Cuerpo de sección */
.ar-cfg-section__body { padding: 0; }

/* Fila de configuración — label+hint a la izq, control a la der */
.ar-cfg-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ar-n-100);
}
.ar-cfg-row:last-child { border-bottom: none; }

.ar-cfg-row__meta { padding-top: 2px; }

.ar-cfg-row__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ar-ink);
    display: block;
    margin-bottom: 4px;
}

.ar-cfg-row__hint {
    font-size: 12px;
    color: var(--ar-n-400);
    line-height: 1.45;
    display: block;
}

.ar-cfg-row__control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Input con prefijo (+) */
.ar-cfg-input-wrap {
    display: flex;
    align-items: center;
}

.ar-cfg-input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 10px;
    background: var(--ar-n-100);
    border: 1.5px solid var(--ar-n-200);
    border-right: none;
    border-radius: var(--ar-radius-md) 0 0 var(--ar-radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--ar-n-500);
    flex-shrink: 0;
    line-height: 1;
}

.ar-cfg-input-prefixed {
    border-radius: 0 var(--ar-radius-md) var(--ar-radius-md) 0 !important;
    max-width: 240px;
}

/* Link de preview (wa.me/...) */
.ar-cfg-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-family: var(--ar-font-mono);
    color: #16A34A;
    text-decoration: none;
    font-weight: 500;
}
.ar-cfg-preview-link:hover { text-decoration: underline; }
.ar-cfg-preview-link svg { flex-shrink: 0; width: 10px; height: 10px; }

/* Separador de grupo en Configuración */
.ar-cfg-group {
    margin: 32px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ar-cfg-group__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ar-n-400);
    white-space: nowrap;
}
.ar-cfg-group__line {
    flex: 1;
    height: 1px;
    background: var(--ar-n-100);
}
.ar-cfg-group:first-child { margin-top: 0; }

/* Texto de preview para horario */
.ar-cfg-preview-text {
    font-size: 12px;
    color: var(--ar-n-400);
    font-style: italic;
}

/* Shortcode badge en settings */
.ar-cfg-shortcode {
    display: inline-block;
    font-family: var(--ar-font-mono);
    font-size: 11.5px;
    background: var(--ar-n-100);
    color: var(--ar-n-500);
    padding: 3px 8px;
    border-radius: var(--ar-radius-sm);
    border: 1px solid var(--ar-n-200);
    user-select: all;
    cursor: pointer;
}

/* ── Payment sub-tabs ────────────────────────────────────── */
.ar-pay-tabs {
    display: flex;
    gap: 2px;
    padding: 0 20px;
    border-bottom: 1px solid var(--ar-n-100);
    background: var(--ar-n-50, #fafafa);
}
.ar-pay-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ar-n-400);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.ar-pay-tab:hover { color: var(--ar-ink); }
.ar-pay-tab--active {
    color: var(--ar-ink);
    border-bottom-color: var(--ar-crimson);
    font-weight: 700;
}
.ar-pay-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: var(--ar-n-200);
    color: var(--ar-n-500);
}
.ar-pay-tab-count--green { background: #dcfce7; color: #166534; }
.ar-pay-tab-count--amber { background: #fef3c7; color: #92400e; }
.ar-pay-tab-count--red   { background: #fee2e2; color: #991b1b; }

/* ── Payment table amounts ───────────────────────────────── */
.ar-pay-amount {
    font-family: var(--ar-font-mono);
    font-weight: 700;
    font-size: 13px;
}
.ar-pay-amount--paid    { color: #16a34a; }
.ar-pay-amount--pending { color: #d97706; }
.ar-pay-amount--overdue { color: var(--ar-crimson); }

.ar-pay-method {
    font-size: 12.5px;
    color: var(--ar-n-500);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ar-pay-date {
    font-size: 11px;
    color: var(--ar-n-400);
    font-family: var(--ar-font-mono);
}
.ar-pay-action-form {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ar-pay-done {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}
.ar-pay-done svg { stroke: #16a34a; }

/* ── Risk card (dashboard) ───────────────────────────────── */
.ar-risk-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--ar-radius);
    padding: 16px;
}
.ar-risk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ar-risk-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
}
.ar-risk-title svg { stroke: #d97706; flex-shrink: 0; }
.ar-risk-badge {
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}
.ar-risk-desc {
    font-size: 12px;
    color: #92400e;
    margin: 0 0 10px;
}
.ar-risk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-top: 1px solid #fde68a;
}
.ar-risk-name { font-size: 13px; font-weight: 600; color: var(--ar-ink); flex: 1; }
.ar-risk-actions { display: flex; align-items: center; gap: 4px; }
.ar-risk-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: #25D366;
    flex-shrink: 0;
    transition: background .15s;
}
.ar-risk-wa:hover { background: #1ebe5d; }
.ar-risk-wa svg { width: 14px; height: 14px; fill: #fff; }
.ar-risk-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fef3c7;
    border: 1px solid #fde68a;
    flex-shrink: 0;
    transition: background .15s;
}
.ar-risk-link:hover { background: #fde68a; }
.ar-risk-link svg { width: 13px; height: 13px; stroke: #92400e; }
.ar-risk-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #fde68a;
    display: flex;
    justify-content: flex-end;
}
.ar-risk-footer a {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    text-decoration: none;
}
.ar-risk-footer a:hover { text-decoration: underline; }

/* ── Input xs ────────────────────────────────────────────── */
.ar-input--xs { padding: 4px 8px; font-size: 12px; height: 28px; }
.ar-btn--xs   { padding: 3px 8px; font-size: 11px; }

/* ── Enrollment panel ────────────────────────────────────── */
.ar-enroll-panel {
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--ar-n-100);
    background: var(--ar-n-50, #fafafa);
}
.ar-hint-inline {
    font-size: 11px;
    font-weight: 400;
    color: var(--ar-n-400);
    margin-left: 6px;
}

/* ── Error pages ─────────────────────────────────────────── */
.ar-panel--error { align-items: center; justify-content: center; }
.ar-error-box  { text-align: center; padding: 48px; }
.ar-error-code { font-family: var(--ar-font-display); font-size: 80px; color: var(--ar-crimson); line-height: 1; }

/* ── Designer panel ──────────────────────────────────────── */
.ar-design-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--ar-n-100);
    margin-bottom: 24px;
    padding-bottom: 0;
}
.ar-design-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ar-n-400);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color .15s, border-color .15s;
    margin-bottom: -1px;
}
.ar-design-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.ar-design-tab:hover { color: var(--ar-ink); }
.ar-design-tab--active {
    color: var(--ar-crimson);
    border-bottom-color: var(--ar-crimson);
}
.ar-design-panel {
    background: #fff;
    border: 1px solid var(--ar-n-100);
    border-radius: 8px;
    padding: 20px 24px;
}
.ar-design-panel__desc {
    font-size: 13px;
    color: var(--ar-n-400);
    margin-bottom: 16px;
    line-height: 1.55;
}
.ar-design-panel__desc--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 10px 14px;
    color: #92400e;
}
.ar-code-editor-wrap {
    border: 1px solid var(--ar-n-200);
    border-radius: 6px;
    overflow: hidden;
}
.ar-code-editor-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    background: var(--ar-n-50, #fafafa);
    border-bottom: 1px solid var(--ar-n-100);
}
.ar-code-editor-lang {
    font-family: var(--ar-font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--ar-n-400);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ar-code-editor-hint {
    font-size: 11px;
    color: var(--ar-n-300);
}
.ar-code-editor {
    display: block;
    width: 100%;
    min-height: 260px;
    padding: 14px 16px;
    font-family: var(--ar-font-mono);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ar-ink);
    background: #fdfdfd;
    border: none;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.ar-code-editor:focus { background: #fff; }
/* Sections list */
.ar-design-sections-list { margin-bottom: 24px; }
.ar-design-section-item {
    border: 1px solid var(--ar-n-100);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.ar-design-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--ar-n-50, #fafafa);
}
.ar-design-section-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ar-ink);
    margin-right: 10px;
}
.ar-design-section-form {
    padding: 16px;
    border-top: 1px solid var(--ar-n-100);
    background: #fff;
}
.ar-design-new-section {
    border-top: 1px solid var(--ar-n-100);
    padding-top: 20px;
    margin-top: 8px;
}

/* ── Password strength meter ─────────────────────────────── */
.ar-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.ar-pw-wrap .ar-input,
.ar-pw-wrap .tf-input {
    padding-right: 40px;
    flex: 1;
    width: 100%;
}
.ar-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ar-n-400);
    padding: 4px;
    line-height: 1;
    font-size: 14px;
    transition: color .15s;
    flex-shrink: 0;
}
.ar-pw-toggle:hover { color: var(--ar-ink); }

/* ── Password meter ──────────────────────────────────────── */
/* display:flex overrides UA [hidden]; must restore explicitly */
.ar-pw-meter[hidden],
.ar-pw-match-hint[hidden] { display: none !important; }

.ar-pw-meter {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    background: var(--ar-n-50, #F8F8F6);
    border: 1px solid var(--ar-n-100);
    border-radius: 10px;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ar-pw-match-hint {
    width: 100%;
    box-sizing: border-box;
}

/* Strength bar — 5 segments with overlay separators */
.ar-pw-bar {
    height: 6px;
    background: var(--ar-n-150, #E8E8E4);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.ar-pw-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0%,
        transparent calc(20% - 1.5px),
        #fff calc(20% - 1.5px),
        #fff 20%,
        transparent 20%,
        transparent calc(40% - 1.5px),
        #fff calc(40% - 1.5px),
        #fff 40%,
        transparent 40%,
        transparent calc(60% - 1.5px),
        #fff calc(60% - 1.5px),
        #fff 60%,
        transparent 60%,
        transparent calc(80% - 1.5px),
        #fff calc(80% - 1.5px),
        #fff 80%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 1;
}
.ar-pw-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0;
    border-radius: 4px;
    transition: width .4s cubic-bezier(.4,0,.2,1), background .4s ease;
    z-index: 0;
}

.ar-pw-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-top: 2px;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1.5px solid currentColor;
    line-height: 1.7;
    background: #fff;
    opacity: .9;
}

/* Requirements as horizontal chips */
.ar-pw-reqs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ar-pw-reqs li {
    font-size: 11px;
    font-weight: 500;
    color: var(--ar-n-400);
    background: #fff;
    border: 1.5px solid var(--ar-n-150, #E4E4E0);
    border-radius: 20px;
    padding: 3px 9px 3px 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .2s, border-color .2s, background .2s;
    line-height: 1.4;
}
.ar-pw-reqs li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ar-n-200);
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}
.ar-pw-reqs li.ar-pw-req--ok {
    color: #15803D;
    border-color: #BBF7D0;
    background: #F0FDF4;
}
.ar-pw-reqs li.ar-pw-req--ok::before {
    content: "✓";
    width: auto;
    height: auto;
    background: none;
    font-size: 10px;
    font-weight: 700;
    color: #16A34A;
    transform: scale(1.1);
}

/* Generate button */
.ar-pw-gen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--ar-font-body);
    color: var(--ar-n-600, #44403C);
    background: #fff;
    border: 1.5px solid var(--ar-n-200);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
    letter-spacing: .01em;
}
.ar-pw-gen:hover {
    border-color: var(--ar-crimson);
    color: var(--ar-crimson);
    background: #FFF5F5;
    box-shadow: 0 1px 4px rgba(225,38,28,.08);
}
.ar-pw-gen i { font-size: 11px; }

.ar-pw-match-hint {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ar-pw-match--ok  { color: #15803D; }
.ar-pw-match--err { color: #DC2626; }

/* ── Session notes ───────────────────────────────────────── */
.ar-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
}
.ar-note-row {
    background: linear-gradient(135deg, #fff 0%, #FAFAF9 100%);
    border: 1px solid var(--ar-n-100);
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .18s, transform .18s;
}
.ar-note-row:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
    transform: translateY(-1px);
}
.ar-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px 9px;
    background: var(--ar-n-50, #F8F8F6);
    border-bottom: 1px solid var(--ar-n-100);
}
.ar-note-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.ar-note-date {
    font-family: var(--ar-font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--ar-n-500);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ar-note-date::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--ar-crimson, #E1261C);
    border-radius: 50%;
    flex-shrink: 0;
}
.ar-note-disc {
    font-size: 11px;
    font-weight: 700;
    color: var(--ar-crimson, #E1261C);
    background: #FFF1F0;
    border: 1px solid #FFD0CC;
    padding: 2px 9px;
    border-radius: 99px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.ar-note-teacher {
    font-size: 11px;
    font-weight: 600;
    color: var(--ar-n-500);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ar-note-students {
    font-size: 11px;
    font-weight: 600;
    color: var(--ar-n-500);
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ar-note-teacher-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ar-crimson,#E1261C) 0%, #9B1A12 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}
.ar-note-text {
    font-size: 13.5px;
    color: var(--ar-n-700, #292524);
    line-height: 1.65;
    padding: 11px 14px 12px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .ar-sidebar { transform: translateX(-100%); transition: transform var(--ar-dur) var(--ar-ease); }
    .ar-sidebar.is-open { transform: translateX(0); }
    .ar-main { margin-left: 0; }
    .ar-section-body { padding: 0 16px 32px; }
    .ar-page-header,
    .ar-profile-header { margin: 0 -16px 20px; padding: 18px 16px 14px; }
    .ar-form-row { grid-template-columns: 1fr; }
    .ar-form-row--3 { grid-template-columns: 1fr; }
    .ar-form-layout { grid-template-columns: 1fr; }
    .ar-form-layout__side { position: static; }
    .ar-detail-grid { grid-template-columns: 1fr; }
    .ar-detail-cols { grid-template-columns: 1fr; }
    .ar-stat-card--wide { grid-column: span 1; }
}

/* ─── Money toggle ──────────────────────────────────────────── */
/* When used inside the dashboard header (ar-dash-btn-ghost combo) */
.ar-dash-btn-money { gap: 6px; }

/* Base toggle style — sidebar + dashboard header (dark bg) variants */
.ar-money-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    transition: color .15s;
    text-align: left;
}
.ar-money-toggle:hover { color: rgba(255,255,255,.8); }
.ar-money-toggle i { width: 14px; text-align: center; flex-shrink: 0; }

/* Floating pill — fixed bottom-right above footer, visible on every page */
.ar-money-fab {
    position: fixed;
    bottom: 44px;
    right: 20px;
    z-index: 300;
    background: #F7F4EE !important;
    border: 1px solid #DDD9D2 !important;
    border-radius: 20px;
    padding: 6px 14px;
    color: #57534E !important;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}
.ar-money-fab:hover {
    background: #EDE9E3 !important;
    border-color: #C0BBB3 !important;
    color: #1C1917 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.ar-money-fab i { font-size: 11px; width: auto; }

/* ─── Amount privacy (default: hidden until toggle reveals) ─── */
.ar-money { transition: filter .3s; display: inline-block; }
html.ar-amounts-hidden .ar-money {
    filter: blur(7px);
    user-select: none;
    cursor: pointer;
}
html.ar-amounts-hidden .ar-money:hover { filter: blur(4px); }
html.ar-amounts-hidden .ar-money--revealed {
    filter: none;
    cursor: default;
    user-select: auto;
}
