/* SEND Life Update 20.1 - pagination, quick-log mobile controls and notification admin */

/* Laravel's default pagination expects Tailwind utility classes. SEND Life does not load Tailwind,
   so explicitly size and arrange every element to prevent full-screen arrow SVGs. */
.sl-pagination {
    margin: 22px 0 8px;
}
.sl-pagination nav[role="navigation"] {
    display: block !important;
    width: 100%;
    font-size: .9rem;
}
.sl-pagination nav[role="navigation"] > div:first-child {
    display: none !important;
}
.sl-pagination nav[role="navigation"] > div:last-child {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.sl-pagination nav[role="navigation"] > div:last-child > div {
    min-width: 0;
}
.sl-pagination nav[role="navigation"] p {
    margin: 0;
    color: #64748b;
    font-size: .86rem;
}
.sl-pagination nav[role="navigation"] span[aria-current="page"] > span,
.sl-pagination nav[role="navigation"] a,
.sl-pagination nav[role="navigation"] span[aria-disabled="true"] > span,
.sl-pagination nav[role="navigation"] span.relative > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d6e3ec;
    background: #fff;
    color: #102754;
    text-decoration: none;
    font-weight: 850;
    line-height: 1;
}
.sl-pagination nav[role="navigation"] span[aria-current="page"] > span {
    border-color: #079fa1;
    background: #079fa1;
    color: #fff;
}
.sl-pagination nav[role="navigation"] a:hover {
    border-color: #9fdfe0;
    background: #ecfbfb;
}
.sl-pagination nav[role="navigation"] svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}
.sl-pagination nav[role="navigation"] [class*="inline-flex"] {
    display: inline-flex !important;
    align-items: center;
}

/* The voice script uses flex: 1 1 0 and nowrap. Stack the longer AI action on phones so
   the label and border always stay inside the evidence card. */
@media (max-width: 700px) {
    .sl19d-quick-form .sl19d-voice-controls {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .sl19d-quick-form .sl19d-voice-controls .sl-voice-button,
    .sl19d-quick-form .sl19d-voice-controls .sl-ai-inline-button,
    .sl19d-quick-form .sl19d-voice-controls .sl19d-ai-help {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: center;
    }
    .sl19d-quick-form .sl19d-voice-controls .sl-voice-button strong,
    .sl19d-quick-form .sl19d-voice-controls .sl-ai-inline-button strong {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
    .sl19d-quick-form .sl19d-voice-controls .sl-voice-status {
        width: 100% !important;
        margin: 0 !important;
    }
    .sl-pagination nav[role="navigation"] > div:last-child {
        align-items: flex-start;
        flex-direction: column;
    }
}

.sl-admin-notification-stat {
    text-decoration: none;
    color: inherit;
}
.sl-admin-notification-stat small {
    color: #64748b;
    font-weight: 750;
}
.sl20a-admin-head .sl-actions {
    justify-content: flex-end;
}
.sl20a-push-stats .sl-stat {
    min-height: 122px;
}
.sl20a-runner-card {
    margin: 20px 0;
}
.sl20a-runner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.sl20a-runner-grid > div {
    padding: 14px;
    border: 1px solid #d9e7ee;
    border-radius: 14px;
    background: #f8fcfd;
}
.sl20a-runner-grid strong {
    color: #102754;
}
.sl20a-runner-grid p {
    margin: 4px 0 0;
    color: #5f7188;
}
.sl20a-command-label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: #102754;
}
.sl20a-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.sl20a-copy-row input {
    width: 100%;
    min-width: 0;
    border: 1px solid #cedee8;
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    color: #102754;
    background: #fff;
}
.sl20a-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sl20a-admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}
.sl20a-admin-table th,
.sl20a-admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e1eaf0;
    text-align: left;
    vertical-align: top;
}
.sl20a-admin-table th {
    color: #102754;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.sl20a-admin-table td strong,
.sl20a-admin-table td small {
    display: block;
}
.sl20a-admin-table td small {
    margin-top: 3px;
    color: #687a91;
}
.sl20a-admin-table tr.is-inactive {
    opacity: .62;
}
.sl20a-health {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}
.sl20a-health.is-good {
    background: #eaf9f1;
    color: #17613f;
}
.sl20a-health.has-issue {
    background: #fff1ed;
    color: #963b27;
}
.sl20a-push-history {
    max-height: 680px;
    overflow: auto;
}
@media (max-width: 900px) {
    .sl20a-runner-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 620px) {
    .sl20a-admin-head .sl-actions,
    .sl20a-admin-head .sl-button {
        width: 100%;
    }
    .sl20a-runner-grid,
    .sl20a-copy-row {
        grid-template-columns: 1fr;
    }
}
