
:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #292337;
    background: #f7f6fa;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: #81218b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background: white;
    border-bottom: 1px solid #e9e5ed;
    padding: 17px max(22px, calc((100vw - 1140px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #81218b;
}

.brand span {
    color: #f39a20;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav form {
    margin: 0;
}

.wrap {
    max-width: 1140px;
    margin: 36px auto;
    padding: 0 20px;
}

.headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

h1 {
    font-size: 36px;
    margin: 4px 0 8px;
}

h2 {
    font-size: 20px;
    margin: 26px 0 15px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #81218b;
    margin: 0;
}

.headline p:not(.eyebrow) {
    color: #766f7f;
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat,
.panel {
    background: white;
    border: 1px solid #ece8f0;
    border-radius: 16px;
    box-shadow: 0 5px 25px #24142d08;
}

.stat {
    padding: 22px;
}

.stat small {
    display: block;
    color: #7c7583;
    margin-bottom: 10px;
}

.stat strong {
    font-size: 32px;
    color: #81218b;
}

.panel {
    padding: 24px;
}

.filters {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.filters label {
    flex: 1;
    min-width: 160px;
}

.filters label:first-child {
    flex: 2;
}

.muted {
    color: #807989;
    font-size: 13px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #51485b;
}

input:not([type=checkbox]),
select,
textarea {
    display: block;
    width: 100%;
    border: 1px solid #d9d2e1;
    border-radius: 9px;
    padding: 12px 13px;
    font: inherit;
    margin-top: 7px;
    background: white;
    color: #28232c;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #81218b44;
    border-color: #81218b;
}

button,
.button {
    border: 0;
    background: #81218b;
    color: white;
    padding: 13px 19px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.button:hover,
button:hover {
    background: #681a71;
    color: white;
    text-decoration: none;
}

.quiet {
    background: #f3eef5;
    color: #81218b;
}

.clear {
    font-size: 13px;
}

.tablewrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 12px;
}

th {
    color: #807989;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

td,
th {
    padding: 16px 12px;
    border-bottom: 1px solid #eeeaf1;
}

td {
    font-size: 14px;
}

td small {
    display: block;
    color: #807989;
    margin-top: 5px;
}

.tag {
    background: #f3eef6;
    color: #81218b;
    border-radius: 20px;
    padding: 7px 10px;
    font-size: 12px;
}

.pager {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.formgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.checks label {
    padding: 10px 12px;
    border: 1px solid #eee6f2;
    border-radius: 8px;
    font-weight: 400;
}

.checks input {
    accent-color: #81218b;
}

.actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.alert {
    background: #fff0ef;
    border: 1px solid #f5c7c3;
    padding: 12px;
    border-radius: 8px;
    color: #8b241c;
}

.success {
    background: #eaf8f0;
    border: 1px solid #b4e4c8;
    padding: 12px;
    border-radius: 8px;
    color: #19683b;
}

/* =========================================
   TELA DE LOGIN
   ========================================= */

.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login .panel {
    width: min(420px, 100%);
    padding: 35px;
}

.login form label {
    margin: 17px 0;
}

.login button {
    width: 100%;
}

/* =========================================
   CAMPO DE SENHA COM ÍCONE DE OLHO
   ========================================= */

.login .password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.login .password-wrap input {
    width: 100%;
    padding-right: 52px !important;
}

/* Corrige o botão que estava ocupando
   toda a largura do campo */

.login .password-wrap .password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 8px !important;

    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: #81218b !important;

    cursor: pointer;
    z-index: 2;
}

.login .password-wrap .password-toggle:hover {
    background: rgba(129, 33, 139, .09) !important;
}

.login .password-wrap .password-toggle:focus-visible {
    outline: 2px solid #81218b;
    outline-offset: 2px;
}

.login .password-toggle svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login .password-toggle .eye-off {
    display: none;
}

.login .password-toggle[aria-pressed="true"] .eye-on {
    display: none;
}

.login .password-toggle[aria-pressed="true"] .eye-off {
    display: block;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */

@media (max-width: 720px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .headline {
        align-items: flex-start;
        flex-direction: column;
    }

    .formgrid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 15px 20px;
    }

    .brand {
        font-size: 18px;
    }

    h1 {
        font-size: 29px;
    }

    .panel {
        padding: 16px;
    }

    .filters {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}
