/* ============================================================
   pl-report.css — extracted inline styles + component styles
   ============================================================ */

/* ── Utilities ── */
.text-center  { text-align: center !important; }
.text-left    { text-align: left !important; }
.text-red     { color: var(--red) !important; }
.text-success { color: #166534 !important; }
.mt-12        { margin-top: 12px !important; }
.mt-24        { margin-top: 24px !important; }
.mb-8         { margin-bottom: 8px !important; }
.icon-sm      { font-size: 11px !important; }

/* ── Auth card variants ── */
.auth-card--center { text-align: center; }

/* ── Auth brand (logo only — no text) ── */
.pl-auth-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

/* ── Forgot-password link row ── */
.forgot-link-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -12px;
    margin-bottom: 24px;
}
.forgot-link {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ── Password input (right-padding for eye toggle) ── */
.pw-pad-right { padding-right: 28px !important; }

/* ── Auth note (small grey paragraph) ── */
.auth-note {
    font-size: 13px;
    color: var(--text-sm);
    margin-bottom: 28px;
}

/* ── Password rules ── */
.rule-icon--pending { color: var(--border); }

/* ── Resend button (link style) ── */
.btn-link-red {
    background: none;
    border: none;
    color: var(--red);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.btn-link-red:hover { text-decoration: underline; }

/* ── Centred small primary button ── */
.btn-centered-sm {
    max-width: 280px;
    margin: 0 auto;
    display: flex;
}

/* ── Phone selection icon wrap (static styles; JS adds/removes .selected) ── */
.phone-icon-wrap {
    width: 38px; height: 38px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.phone-icon-wrap .fa          { color: var(--text-sm); font-size: 16px; }
.phone-icon-wrap .fa-mobile-screen-button { font-size: 18px; }

.phone-option.selected .phone-icon-wrap          { background: var(--red-light); }
.phone-option.selected .phone-icon-wrap .fa      { color: var(--red); }

.check-icon               { color: var(--border); font-size: 18px; }
.phone-option.selected .check-icon { color: var(--red); }

/* ── Blue icon circle (ForgotPassword) ── */
.icon-circle-blue {
    width: 56px; height: 56px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: #1d4ed8;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD GRID
   ══════════════════════════════════════════════════════════ */

/* ── Toolbar: search + info ── */
.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.grid-search-wrap {
    position: relative;
    flex: 1;
    max-width: 340px;
}
.search-icon {
    position: absolute;
    left: 9px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-xs);
    font-size: 12px;
    pointer-events: none;
}
.grid-search-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0 8px 0 28px;
    height: 36px;
    font-size: 13px;
    outline: none;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s;
}
.grid-search-input:focus { border-color: var(--red); }

/* ── Pool selection dropdown (req 1 + 9) ── */
.pool-dropdown-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 380px;
}
.pool-dropdown-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.pool-dropdown {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    height: 36px;
    font-size: 13px;
    outline: none;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s;
}
.pool-dropdown:focus { border-color: var(--red); }

/* ── Next reporting day banner (req 2) ── */
.report-day-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--red);
}

/* ── Grid footer: report count ── */
.grid-footer {
    margin-top: 8px;
    min-height: 20px;
}

.grid-info {
    font-size: 13px;
    color: var(--text-sm);
    white-space: nowrap;
}

/* ── Responsive table container ── */
.grid-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Table ── */
.pool-grid {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
}
.pool-grid thead tr {
    background: var(--bg);
    border-bottom: 2px solid var(--border-light);
}
.pool-grid th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.pool-grid td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-md);
}
.pool-grid tbody tr:last-child td { border-bottom: none; }
.pool-grid tbody tr:hover { background: #fafafa; }
.pool-grid tbody tr.hidden-row { display: none; }

/* ── Pool ID badge ── */
.pool-id-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    background: var(--red-light);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Status badge ── */
.pool-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.pool-status--active  { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.pool-status--pending { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.pool-status--closed  { background: var(--bg);  color: var(--text-sm); border: 1px solid var(--border); }

/* ── Grid action buttons ── */
.btn-grid-report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.btn-settlement {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-settlement:hover:not(:disabled) {
    background: var(--red-dark);
    border-color: var(--red-dark);
}
.btn-details {
    background: var(--white);
    color: var(--text-md);
    border-color: var(--border);
}
.btn-details:hover:not(:disabled) {
    background: var(--bg);
    border-color: var(--text-sm);
}
.btn-grid-report:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.download-badge {
    display: none;
    margin-top: 5px;
    font-size: 11px;
    font-style: italic;
    color: var(--text-sm);
    animation: badge-pulse 1.2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.col-action { white-space: nowrap; }

/* ── Pagination ── */
.grid-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-page {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn-page:hover:not(:disabled) {
    background: var(--bg);
    border-color: var(--text-sm);
}
.btn-page:disabled { opacity: 0.4; cursor: not-allowed; }

.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-num {
    width: 34px; height: 34px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.page-num:hover { background: var(--bg); border-color: var(--text-sm); }
.page-num--active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ── No-results row ── */
.no-results-row td {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-xs);
    font-size: 14px;
}

/* ── Toast ── */
.pl-toast {
    display: none;
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 999;
    background: #1f2937;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 14px;
    align-items: center;
    gap: 10px;
    max-width: 340px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — grid-specific
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .grid-toolbar { flex-direction: column; align-items: flex-start; }
    .grid-search-wrap { max-width: 100%; width: 100%; }
    .btn-grid-report { font-size: 11px; padding: 6px 10px; }
}
