* {
    box-sizing: border-box;
}

body.eb-body {
    background: #f3f6f8;
    color: #16202d;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.eb-login {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.eb-login-card,
.eb-panel,
.eb-topbar {
    background: #ffffff;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 34, 50, 0.06);
}

.eb-login-card {
    max-width: 460px;
    padding: 32px;
    width: 100%;
}

.eb-login-logo {
    display: block;
    height: auto;
    margin: 0 auto 26px;
    max-height: 150px;
    max-width: 380px;
    object-fit: contain;
    width: 82%;
}

.eb-login-card h1 {
    color: #101b29;
    font-size: 28px;
    margin: 0 0 8px;
}

.eb-login-card p,
.eb-topbar p {
    color: #637083;
    margin: 0;
}

.eb-alert,
.eb-success {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 18px 0;
    padding: 12px 14px;
}

.eb-alert {
    background: #fff2f0;
    border: 1px solid #f2b8ad;
    color: #9d2f20;
}

.eb-success {
    background: #e8f6ee;
    border: 1px solid #a8d8bc;
    color: #24583e;
}

.eb-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    min-height: 100vh;
}

.eb-sidebar {
    background: linear-gradient(180deg, #111d2b 0%, #17283a 58%, #10242a 100%);
    color: #ffffff;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 18px;
    position: sticky;
    top: 0;
}

.eb-sidebar img {
    display: block;
    height: auto;
    margin: 4px auto 12px;
    max-height: 96px;
    max-width: 250px;
    object-fit: contain;
    width: 86%;
}

.eb-sidebar nav {
    display: grid;
    gap: 6px;
}

.eb-sidebar a {
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d8e1ea;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 13px;
    text-decoration: none;
}

.eb-sidebar a.active,
.eb-sidebar a:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 4px 0 0 #29a3b7;
    color: #ffffff;
}

.eb-main {
    min-width: 0;
    padding: 26px 28px 34px;
}

.eb-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 18px 20px;
}

.eb-topbar h1 {
    color: #101b29;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 4px;
}

.eb-logout,
.eb-form button,
.eb-crud-form button,
.eb-filter-actions button {
    background: #1d8494;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
}

.eb-panel {
    margin-bottom: 16px;
    padding: 20px;
}

.eb-dashboard {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.eb-dashboard article {
    background: #ffffff;
    border: 1px solid #dce4ec;
    border-left: 5px solid #1d8494;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 34, 50, 0.06);
    min-height: 100px;
    padding: 16px;
}

.eb-dashboard span {
    color: #667485;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.eb-dashboard strong {
    color: #101b29;
    display: block;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.eb-card-pago {
    border-left-color: #2f9d63 !important;
}

.eb-card-vencido {
    border-left-color: #c24133 !important;
}

.eb-card-a-vencer {
    border-left-color: #d08a00 !important;
}

.eb-panel h2 {
    color: #101b29;
    font-size: 18px;
    margin: 0 0 14px;
}

.eb-form,
.eb-crud-form,
.eb-filters {
    display: grid;
    gap: 14px;
}

.eb-form {
    margin-top: 22px;
}

.eb-crud-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eb-crud-form .wide,
.eb-crud-form button {
    grid-column: 1 / -1;
}

.eb-form label,
.eb-crud-form label,
.eb-filters label {
    color: #253342;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
}

.eb-form input,
.eb-crud-form input,
.eb-crud-form select,
.eb-crud-form textarea,
.eb-filters input,
.eb-filters select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #17212f;
    font-size: 14px;
    min-height: 42px;
    padding: 10px 11px;
    width: 100%;
}

.eb-password-field {
    align-items: stretch;
    display: flex;
    width: 100%;
}

.eb-password-field input {
    border-bottom-right-radius: 0;
    border-right: 0;
    border-top-right-radius: 0;
    flex: 1;
    min-width: 0;
}

.eb-password-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom-right-radius: 8px;
    border-left: 0;
    border-top-right-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    width: 46px;
}

.eb-password-toggle:hover {
    background: #f6f8fb;
}

.eb-eye-icon {
    border: 2px solid #637083;
    border-radius: 999px 999px 999px 999px / 760px 760px 760px 760px;
    display: block;
    height: 13px;
    position: relative;
    width: 22px;
}

.eb-eye-icon::after {
    background: #637083;
    border-radius: 50%;
    content: "";
    height: 6px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
}

.eb-password-toggle.is-visible .eb-eye-icon::before {
    background: #637083;
    content: "";
    height: 2px;
    left: -3px;
    position: absolute;
    top: 5px;
    transform: rotate(-35deg);
    width: 28px;
}

.eb-filters {
    align-items: end;
    background: #f6f8fb;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 0.8fr)) auto;
    margin-bottom: 14px;
    padding: 14px;
}

.eb-filter-actions {
    display: flex;
    gap: 8px;
}

.eb-filter-actions a {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #253342;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 14px;
    text-decoration: none;
}

.eb-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 16px;
}

.eb-months a {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #253342;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 11px;
    text-decoration: none;
}

.eb-months a.active {
    background: #1d8494;
    border-color: #1d8494;
    box-shadow: 0 8px 18px rgba(29, 132, 148, 0.22);
    color: #ffffff;
}

.eb-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.eb-table-wrap table {
    border-collapse: collapse;
    min-width: 900px;
    width: 100%;
}

.eb-table-wrap th,
.eb-table-wrap td {
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    padding: 13px 10px;
    text-align: left;
    vertical-align: middle;
}

.eb-table-wrap th {
    color: #667485;
    font-size: 12px;
    text-transform: uppercase;
}

.eb-row-status {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(112px, 1fr) auto;
    margin: 0;
    min-width: 220px;
}

.eb-row-status select,
.eb-row-status button {
    min-height: 34px;
}

.eb-row-status button {
    background: #f6f8fb;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #253342;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.eb-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
}

.eb-status-pago { background: #e8f6ee; color: #276145; }
.eb-status-a_vencer { background: #fff6df; color: #8a5a00; }
.eb-status-vencido { background: #fff0ef; color: #a12d24; }
.eb-status-cancelado { background: #eef2f6; color: #596879; }

@media (max-width: 1200px) {
    .eb-shell,
    .eb-crud-form,
    .eb-filters,
    .eb-dashboard {
        grid-template-columns: 1fr;
    }
    .eb-sidebar {
        height: auto;
        position: static;
    }
}
