@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* { box-sizing: border-box; }

body {
    font-family: "Lato", Arial, sans-serif;
    margin: 0;
    background: #f5f5f7;
    color: #1d1d1f;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: #1d1d1f;
    color: #fff;
}

.topbar-title { font-weight: 600; }
.topbar-title img {
    display: block;
    width: 200px;
    max-width: 200px;
    min-width: 200px;
}

.topbar nav { display: flex; gap: 1rem; flex: 1; }

.topbar nav a, .topbar-user a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.topbar nav a:hover, .topbar-user a:hover { opacity: 1; /* text-decoration: underline; */ }

.topbar nav a.active {
    opacity: 1;
    font-weight: 600;
    padding-bottom: 4px;
    /* border-bottom: 2px solid #fff; */
}

.topbar-user { opacity: 0.85; font-size: 0.9rem; }

main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }

h1 { margin-top: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

th { background: #fafafa; font-weight: 600; }
th:first-child, th:last-child { border-radius: 8px; } 

.kpi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-grid a { color: inherit; text-decoration: none; }

.kpi-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 160px;
}

.kpi-value { font-size: 1.8rem; font-weight: 700; }
.kpi-label { font-size: 0.85rem; color: #6e6e73; }

.status-success, .status-sent { color: #1a7f37; font-weight: 600; }
.status-error, .status-failed { color: #c0392b; font-weight: 600; }
.status-pending { color: #b8860b; font-weight: 600; }

.login-box {
    max-width: 320px;
    margin: 4rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-box .login-logo { display: flex; margin-bottom: 1rem; justify-content: center; }
.login-box form { display: flex; flex-direction: column; gap: 1rem; }
.login-box label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.login-box input {
    padding: 0.5rem;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    font-size: 1rem;
}
.login-box button {
    padding: 0.6rem;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.flashes { list-style: none; padding: 0; }
.flash-error { color: #c0392b; background: #fdecea; padding: 0.6rem 1rem; border-radius: 6px; }

.filter-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filter-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: #6e6e73; }
.filter-form input {
    padding: 0.4rem;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    font-size: 0.9rem;
}
.filter-form button {
    padding: 0.5rem 1rem;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}
.filter-form a { font-size: 0.85rem; line-height: 34px; align-self: end; }

.voucher-export {  width: 100%; display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.voucher-filters { width: 100%; display: flex; justify-content: space-between; }

.quick-ranges, .status-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
/* .status-filter { margin-bottom: 1.5rem; } */

.chip {
    padding: 0.3rem 0.7rem;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: #1d1d1f;
}
.chip:hover { background: #f0f0f0; }
.chip.active {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}
.chip.chip-reset {
    background: transparent;
    border-style: dashed;
    color: #6e6e73;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}
.btn:hover { background: #3a3a3c; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.pagination a { color: #1d1d1f; }
.pagination-disabled { color: #b0b0b5; }
.pagination-status { color: #6e6e73; }
