/* =========================================================
   ADMIN — e-Serviços Amambai
========================================================= */

.admin-login,
.admin-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================================
   LOGIN
========================================================= */

.admin-login {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 0;
}

.admin-login__card {
    width: min(460px, 100%);
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.admin-login__brand {
    text-align: center;
    margin-bottom: 26px;
}

.admin-login__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 16px 34px rgba(0, 86, 166, 0.24);
}

.admin-login__icon svg {
    width: 32px;
    height: 32px;
}

.admin-login__brand span {
    display: block;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-login__brand h1 {
    margin: 8px 0 10px;
    color: var(--color-primary-deep);
    font-size: 1.8rem;
}

.admin-login__brand p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.admin-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
}

.admin-alert--error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.admin-login__form {
    display: grid;
    gap: 16px;
}

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field label {
    color: var(--color-primary-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-field__control {
    position: relative;
}

.admin-field__control svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: var(--color-primary);
}

.admin-field__control input {
    width: 100%;
    height: 54px;
    padding: 0 14px 0 44px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    outline: none;
    color: var(--color-primary-deep);
    background: #ffffff;
    font-weight: 600;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.admin-field__control input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.12);
}

/* =========================================================
   BOTÕES
========================================================= */

.admin-btn {
    position: relative;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease;
}

.admin-btn svg {
    width: 18px;
    height: 18px;
}

.admin-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow: 0 14px 30px rgba(10, 70, 141, 0.24);
}

.admin-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(10, 70, 141, 0.32);
}

.admin-btn--outline {
    color: var(--color-primary-deep);
    background: #ffffff;
    border: 1px solid rgba(15, 91, 181, 0.16);
    box-shadow: 0 10px 22px rgba(7, 42, 83, 0.10);
}

.admin-btn--outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 42, 83, 0.14);
}

/* =========================================================
   DASHBOARD
========================================================= */

.admin-page {
    padding: 54px 0 72px;
}

.admin-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-page__header h1 {
    margin: 14px 0 10px;
    color: var(--color-primary-deep);
    font-size: clamp(2rem, 4vw, 3rem);
}

.admin-page__header p {
    margin: 0;
    max-width: 760px;
    color: var(--color-muted);
    line-height: 1.7;
}

.admin-page__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card span {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-stat-card strong {
    display: block;
    margin-top: 10px;
    color: var(--color-primary-deep);
    font-size: 2.3rem;
    line-height: 1;
}

.admin-stat-card svg {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    color: rgba(0, 86, 166, 0.16);
}

.admin-panel {
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.admin-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.admin-panel__header h2 {
    margin: 0 0 6px;
    color: var(--color-primary-deep);
}

.admin-panel__header p {
    margin: 0;
    color: var(--color-muted);
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.94rem;
}

.admin-table th {
    color: var(--color-primary-deep);
    background: #f8fbff;
    font-weight: 800;
}

.admin-table td {
    color: #1f2937;
}

.admin-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f5bb5;
    background: rgba(15, 91, 181, 0.10);
    font-size: 0.78rem;
    font-weight: 800;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 980px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-page__header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .admin-login,
    .admin-page {
        width: min(100% - 24px, 1180px);
    }

    .admin-login__card {
        padding: 24px;
        border-radius: 22px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-panel__header {
        flex-direction: column;
    }

    .admin-panel__header .admin-btn {
        width: 100%;
    }
}

/* =========================================================
   COMPLEMENTOS — SECRETARIAS E USUÁRIOS
========================================================= */

.admin-alert--success {
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 22px;
    align-items: flex-start;
}

.admin-grid-two--wide {
    grid-template-columns: 0.9fr 1.35fr;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-field small {
    color: var(--color-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.admin-field__control select {
    width: 100%;
    height: 54px;
    padding: 0 14px 0 44px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    outline: none;
    color: var(--color-primary-deep);
    background: #ffffff;
    font-weight: 700;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.admin-field__control select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.12);
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--color-border);
}

.admin-list-item--user {
    align-items: flex-start;
}

.admin-list-item strong {
    display: block;
    color: var(--color-primary-deep);
    font-size: 0.98rem;
}

.admin-list-item span,
.admin-list-item small {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.admin-list-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-status--ok {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.admin-status--off {
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
}

.admin-btn-small {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 91, 181, 0.14);
    color: var(--color-primary-deep);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(7, 42, 83, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(7, 42, 83, 0.12);
}

.admin-reset-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-reset-form input {
    width: 130px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    outline: none;
    font-size: 0.78rem;
}

.admin-reset-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 166, 0.10);
}

.admin-empty {
    padding: 18px;
    border-radius: 18px;
    color: var(--color-muted);
    background: #f8fbff;
    border: 1px dashed var(--color-border);
    text-align: center;
    font-weight: 700;
}

.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.admin-shortcut-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 22px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--color-primary-deep);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.admin-shortcut-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 86, 166, 0.22);
    box-shadow: var(--shadow-md);
}

.admin-shortcut-card svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.admin-shortcut-card span {
    display: block;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-shortcut-card strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-primary-deep);
}

/* Botão vermelho de saída */
.admin-btn--danger {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
}

.admin-btn--danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(220, 38, 38, 0.30);
}

/* =========================================================
   RESPONSIVO — SECRETARIAS E USUÁRIOS
========================================================= */

@media (max-width: 980px) {
    .admin-grid-two,
    .admin-grid-two--wide {
        grid-template-columns: 1fr;
    }

    .admin-shortcuts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-list-item {
        flex-direction: column;
    }

    .admin-list-item__actions {
        justify-content: flex-start;
    }

    .admin-reset-form {
        width: 100%;
    }

    .admin-reset-form input {
        flex: 1;
        width: auto;
    }
}

/* =========================================================
   PROTOCOLOS — FILTROS E LISTAGEM
========================================================= */

.admin-filter-panel {
    margin-bottom: 22px;
}

.admin-filters {
    display: grid;
    grid-template-columns: 1.3fr 0.75fr 0.9fr auto;
    gap: 14px;
    align-items: end;
}

.admin-filters__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-table-muted {
    display: block;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.admin-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 1080px) {
    .admin-filters {
        grid-template-columns: 1fr 1fr;
    }

    .admin-filters__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-filters__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filters__actions .admin-btn {
        width: 100%;
    }

    .admin-table-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   BOTÕES DA COLUNA AÇÕES — PROTOCOLOS
========================================================= */

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-table-actions .admin-btn-small {
    min-width: 62px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        0 10px 22px rgba(7, 42, 83, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.admin-table-actions .admin-btn-small:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
        0 14px 28px rgba(7, 42, 83, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Botão Abrir */
.admin-table-actions .admin-btn-small:nth-child(1) {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

/* Botão PDF */
.admin-table-actions .admin-btn-small:nth-child(2) {
    background: linear-gradient(135deg, #10b981, #047857);
}

/* Ajuste visual dentro da tabela */
.admin-table td:last-child {
    min-width: 150px;
}

/* Responsivo */
@media (max-width: 680px) {
    .admin-table-actions {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .admin-table-actions .admin-btn-small {
        min-width: 58px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.78rem;
    }
}

/* =========================================================
   DETALHE DO PROTOCOLO
========================================================= */

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: flex-start;
}

.admin-detail-main,
.admin-detail-side {
    min-width: 0;
}

.admin-protocol-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.admin-detail-label {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-protocol-header h2 {
    margin: 0;
    color: var(--color-primary-deep);
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.admin-status--large {
    padding: 9px 14px;
    font-size: 0.86rem;
    white-space: nowrap;
}

.admin-detail-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.admin-detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-detail-section h3 {
    margin: 0 0 14px;
    color: var(--color-primary-deep);
    font-size: 1.05rem;
}

.admin-detail-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-detail-table div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid var(--color-border);
}

.admin-detail-table span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-detail-table strong {
    display: block;
    color: var(--color-primary-deep);
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-word;
}

.admin-detail-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-description-box {
    padding: 16px;
    border-radius: 18px;
    color: #1f2937;
    background: #f8fbff;
    border: 1px solid var(--color-border);
    line-height: 1.7;
    white-space: pre-line;
}

.admin-attachment a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(10, 70, 141, 0.22);
}

.admin-attachment a svg {
    width: 18px;
    height: 18px;
}

.admin-detail-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    color: #334155;
    background: #f8fbff;
    border: 1px solid var(--color-border);
    font-size: 0.88rem;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-side {
        order: -1;
    }
}

@media (max-width: 640px) {
    .admin-protocol-header {
        flex-direction: column;
    }

    .admin-detail-table {
        grid-template-columns: 1fr;
    }

    .admin-detail-actions .admin-btn {
        width: 100%;
    }

    .admin-attachment a {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   HISTÓRICO ADMINISTRATIVO DO PROTOCOLO
========================================================= */

.admin-field__textarea {
    position: relative;
}

.admin-field__textarea svg {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 19px;
    height: 19px;
    color: var(--color-primary);
}

.admin-field__textarea textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px 14px 14px 44px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    outline: none;
    resize: vertical;
    color: var(--color-primary-deep);
    background: #ffffff;
    font-weight: 600;
    line-height: 1.55;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.admin-field__textarea textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.12);
}

.admin-history {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.admin-history h3 {
    margin: 0 0 14px;
    color: var(--color-primary-deep);
    font-size: 1.05rem;
}

.admin-history-item {
    padding: 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid var(--color-border);
}

.admin-history-item + .admin-history-item {
    margin-top: 10px;
}

.admin-history-item__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.admin-history-item__top strong {
    color: var(--color-primary-deep);
    font-size: 0.9rem;
}

.admin-history-item__top span {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-history-item p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.admin-history-item__note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    background: #ffffff;
    border: 1px solid rgba(15, 91, 181, 0.10);
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-line;
}

@media (max-width: 640px) {
    .admin-history-item__top {
        flex-direction: column;
    }

    .admin-history-item__top span {
        white-space: normal;
    }
}

/* =========================================================
   PROTOCOLOS — LINK E BOTÕES DE AÇÃO
========================================================= */

.admin-protocolo-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-deep);
    font-weight: 900;
    text-decoration: none;
    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.admin-protocolo-link:hover {
    color: var(--color-primary);
    transform: translateX(2px);
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-action-btn {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        0 10px 22px rgba(7, 42, 83, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.admin-action-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 14px 28px rgba(7, 42, 83, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.admin-action-btn--details {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

.admin-action-btn--pdf {
    background: linear-gradient(135deg, #10b981, #047857);
}

.admin-table td:last-child {
    min-width: 190px;
}

@media (max-width: 680px) {
    .admin-table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .admin-action-btn {
        width: 100%;
        min-height: 36px;
        padding: 0 11px;
        font-size: 0.78rem;
    }
}

/* =========================================================
   HISTÓRICO ADMIN — MENSAGEM PÚBLICA
========================================================= */

.admin-history-item__note--public {
    border-color: rgba(16, 185, 129, 0.20);
    background: #ecfdf5;
    color: #065f46;
}

/* =========================================================
   PROTOCOLOS — CARDS DE RESUMO
========================================================= */

.admin-protocol-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-protocol-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-primary-deep);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.admin-protocol-summary-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 95px;
    height: 95px;
    border-radius: 999px;
    background: rgba(15, 91, 181, 0.08);
}

.admin-protocol-summary-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 91, 181, 0.25);
    box-shadow: var(--shadow-md);
}

.admin-protocol-summary-card.is-active {
    border-color: rgba(15, 91, 181, 0.42);
    box-shadow:
        0 18px 38px rgba(7, 42, 83, 0.12),
        inset 0 0 0 1px rgba(15, 91, 181, 0.10);
}

.admin-protocol-summary-card__icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow: 0 10px 22px rgba(7, 42, 83, 0.16);
}

.admin-protocol-summary-card__icon svg {
    width: 22px;
    height: 22px;
}

.admin-protocol-summary-card div:last-child {
    position: relative;
    z-index: 2;
}

.admin-protocol-summary-card span {
    display: block;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-protocol-summary-card strong {
    display: block;
    margin-top: 6px;
    color: var(--color-primary-deep);
    font-size: 2rem;
    line-height: 1;
}

/* Variações por status */
.admin-protocol-summary-card.is-received .admin-protocol-summary-card__icon {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

.admin-protocol-summary-card.is-analysis .admin-protocol-summary-card__icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.admin-protocol-summary-card.is-service .admin-protocol-summary-card__icon {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.admin-protocol-summary-card.is-success .admin-protocol-summary-card__icon {
    background: linear-gradient(135deg, #10b981, #047857);
}

/* =========================================================
   RESPONSIVO — CARDS DE PROTOCOLOS
========================================================= */

@media (max-width: 1180px) {
    .admin-protocol-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-protocol-summary {
        grid-template-columns: 1fr 1fr;
    }

    .admin-protocol-summary-card {
        min-height: 104px;
        padding: 16px;
        border-radius: 20px;
    }

    .admin-protocol-summary-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .admin-protocol-summary-card strong {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .admin-protocol-summary {
        grid-template-columns: 1fr;
    }

    .admin-protocol-summary-card {
        min-height: 96px;
    }
}

/* =========================================================
   RELATÓRIOS — FILTROS
========================================================= */

.admin-report-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.admin-report-filters__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================================================
   RELATÓRIOS — CARDS
========================================================= */

.admin-report-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-report-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-primary-deep);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.admin-report-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 95px;
    height: 95px;
    border-radius: 999px;
    background: rgba(15, 91, 181, 0.08);
}

.admin-report-card__icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow: 0 10px 22px rgba(7, 42, 83, 0.16);
}

.admin-report-card__icon svg {
    width: 22px;
    height: 22px;
}

.admin-report-card div:last-child {
    position: relative;
    z-index: 2;
}

.admin-report-card span {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-report-card strong {
    display: block;
    margin-top: 6px;
    color: var(--color-primary-deep);
    font-size: 2rem;
    line-height: 1;
}

.admin-report-card.is-service .admin-report-card__icon,
.admin-report-card.is-pending .admin-report-card__icon {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.admin-report-card.is-success .admin-report-card__icon {
    background: linear-gradient(135deg, #10b981, #047857);
}

.admin-report-card.is-analysis .admin-report-card__icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* =========================================================
   RELATÓRIOS — AGRUPAMENTOS
========================================================= */

.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.admin-report-list {
    display: grid;
    gap: 10px;
}

.admin-report-list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid var(--color-border);
}

.admin-report-list-item span {
    color: var(--color-primary-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-report-list-item strong {
    min-width: 38px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    font-size: 0.84rem;
}

/* =========================================================
   RESPONSIVO — RELATÓRIOS
========================================================= */

@media (max-width: 1180px) {
    .admin-report-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-report-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-report-cards,
    .admin-report-filters {
        grid-template-columns: 1fr;
    }

    .admin-report-filters__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-report-filters__actions .admin-btn {
        width: 100%;
    }

    .admin-report-card {
        min-height: 104px;
        padding: 16px;
        border-radius: 20px;
    }

    .admin-report-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .admin-report-card strong {
        font-size: 1.65rem;
    }
}

/* =========================================================
   PADRÃO GLOBAL — CARDS DO PAINEL ADMIN
========================================================= */

.admin-stat-card,
.admin-shortcut-card,
.admin-protocol-summary-card,
.admin-report-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 20px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid rgba(191, 211, 234, 0.90);
    box-shadow:
        0 14px 32px rgba(7, 42, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.admin-stat-card::before,
.admin-shortcut-card::before,
.admin-protocol-summary-card::before,
.admin-report-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.55),
            rgba(255, 255, 255, 0)
        );
}

.admin-stat-card::after,
.admin-shortcut-card::after,
.admin-protocol-summary-card::after,
.admin-report-card::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(15, 91, 181, 0.08);
}

.admin-stat-card:hover,
.admin-shortcut-card:hover,
.admin-protocol-summary-card:hover,
.admin-report-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 91, 181, 0.32);
    box-shadow:
        0 20px 46px rgba(7, 42, 83, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

/* =========================================================
   TEXTOS DOS CARDS
========================================================= */

.admin-stat-card span,
.admin-shortcut-card span,
.admin-protocol-summary-card span,
.admin-report-card span {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.admin-stat-card strong,
.admin-shortcut-card strong,
.admin-protocol-summary-card strong,
.admin-report-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 8px;
    color: var(--color-primary-deep);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 950;
}

/* =========================================================
   ÍCONES DOS CARDS
========================================================= */

.admin-stat-card > i,
.admin-stat-card > svg,
.admin-shortcut-card > i,
.admin-shortcut-card > svg {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow:
        0 12px 24px rgba(7, 42, 83, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.admin-protocol-summary-card__icon,
.admin-report-card__icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow:
        0 12px 24px rgba(7, 42, 83, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.admin-protocol-summary-card__icon svg,
.admin-report-card__icon svg {
    width: 22px;
    height: 22px;
}

.admin-protocol-summary-card > div:last-child,
.admin-report-card > div:last-child {
    position: relative;
    z-index: 2;
}

/* =========================================================
   CARDS CLICÁVEIS
========================================================= */

.admin-shortcut-card,
.admin-protocol-summary-card {
    color: var(--color-primary-deep);
    text-decoration: none;
}

.admin-protocol-summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-report-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================================================
   ESTADO ATIVO — FILTRO DE PROTOCOLOS
========================================================= */

.admin-protocol-summary-card.is-active {
    border-color: rgba(15, 91, 181, 0.48);
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.16), transparent 36%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow:
        0 22px 48px rgba(7, 42, 83, 0.15),
        inset 0 0 0 1px rgba(15, 91, 181, 0.12);
}

.admin-protocol-summary-card.is-active::after {
    background: rgba(15, 91, 181, 0.14);
}

/* =========================================================
   VARIAÇÕES POR STATUS
========================================================= */

.admin-protocol-summary-card.is-total .admin-protocol-summary-card__icon,
.admin-report-card.is-total .admin-report-card__icon {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

.admin-protocol-summary-card.is-received .admin-protocol-summary-card__icon,
.admin-report-card.is-received .admin-report-card__icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.admin-protocol-summary-card.is-analysis .admin-protocol-summary-card__icon,
.admin-report-card.is-analysis .admin-report-card__icon {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

.admin-protocol-summary-card.is-service .admin-protocol-summary-card__icon,
.admin-report-card.is-service .admin-report-card__icon,
.admin-report-card.is-pending .admin-report-card__icon {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.admin-protocol-summary-card.is-success .admin-protocol-summary-card__icon,
.admin-report-card.is-success .admin-report-card__icon {
    background: linear-gradient(135deg, #10b981, #047857);
}

/* =========================================================
   GRID PADRÃO DOS CARDS
========================================================= */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-protocol-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-report-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

/* =========================================================
   RESPONSIVO — CARDS DO PAINEL ADMIN
========================================================= */

@media (max-width: 1180px) {
    .admin-stats,
    .admin-protocol-summary,
    .admin-report-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-stats,
    .admin-shortcuts,
    .admin-protocol-summary,
    .admin-report-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .admin-stat-card,
    .admin-shortcut-card,
    .admin-protocol-summary-card,
    .admin-report-card {
        min-height: 106px;
        padding: 17px;
        border-radius: 22px;
    }

    .admin-protocol-summary-card,
    .admin-report-card {
        gap: 12px;
    }

    .admin-protocol-summary-card__icon,
    .admin-report-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .admin-protocol-summary-card__icon svg,
    .admin-report-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .admin-stat-card > i,
    .admin-stat-card > svg,
    .admin-shortcut-card > i,
    .admin-shortcut-card > svg {
        width: 38px;
        height: 38px;
        right: 15px;
        bottom: 15px;
        border-radius: 14px;
    }

    .admin-stat-card strong,
    .admin-shortcut-card strong,
    .admin-protocol-summary-card strong,
    .admin-report-card strong {
        font-size: 1.65rem;
    }
}

@media (max-width: 520px) {
    .admin-stats,
    .admin-shortcuts,
    .admin-protocol-summary,
    .admin-report-cards {
        grid-template-columns: 1fr;
    }

    .admin-stat-card,
    .admin-shortcut-card,
    .admin-protocol-summary-card,
    .admin-report-card {
        min-height: 98px;
    }
}