:root {
    --bp-primary: #0a6ed1;
    --bp-primary-dark: #0854a0;
    --bp-background: #f5f6f7;
    --bp-surface: #ffffff;
    --bp-border: #d9d9d9;
    --bp-text: #32363a;
    --bp-muted: #6a6d70;
    --bp-success: #107e3e;
    --bp-danger: #bb0000;
    --bp-warning: #e9730c;
    --bp-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--bp-text);
    background: var(--bp-background);
}

a {
    color: var(--bp-primary);
    text-decoration: none;
}

.bp-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(320px, 45%)
        minmax(420px, 55%);
}

.bp-login-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    padding: 64px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(3, 56, 99, 0.94),
            rgba(10, 110, 209, 0.78)
        ),
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.22),
            transparent 42%
        );
}

.bp-login-cover::before,
.bp-login-cover::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.bp-login-cover::before {
    width: 340px;
    height: 340px;
    top: -100px;
    right: -100px;
}

.bp-login-cover::after {
    width: 210px;
    height: 210px;
    top: 130px;
    right: 80px;
}

.bp-login-brand {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.bp-login-logo {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    font-size: 32px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.bp-login-brand h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -2px;
}

.bp-login-brand p {
    max-width: 520px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

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

.bp-login-card {
    width: min(100%, 430px);
    padding: 38px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    background: var(--bp-surface);
    box-shadow: var(--bp-shadow);
}

.bp-login-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.bp-login-subtitle {
    margin: 0 0 30px;
    color: var(--bp-muted);
    line-height: 1.5;
}

.bp-field {
    margin-bottom: 20px;
}

.bp-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.bp-input-wrap {
    position: relative;
}

.bp-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 44px 11px 14px;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: var(--bp-text);
    font-size: 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.bp-input:focus {
    border-color: var(--bp-primary);
    box-shadow:
        0 0 0 3px rgba(10, 110, 209, 0.14);
}

.bp-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--bp-muted);
}

.bp-password-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    color: var(--bp-muted);
    background: transparent;
    font-size: 18px;
}

.bp-password-button:hover {
    background: #f0f3f5;
}

.bp-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition:
        transform 0.15s ease,
        background 0.2s ease;
}

.bp-button-primary {
    color: #ffffff;
    background: var(--bp-primary);
}

.bp-button-primary:hover {
    background: var(--bp-primary-dark);
}

.bp-button:active {
    transform: scale(0.99);
}

.bp-alert {
    margin-bottom: 22px;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.bp-alert-error {
    border: 1px solid rgba(187, 0, 0, 0.28);
    color: #780000;
    background: #fff1f0;
}

.bp-alert-success {
    border: 1px solid rgba(16, 126, 62, 0.24);
    color: #075c2d;
    background: #f1fff6;
}

.bp-login-footer {
    margin-top: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--bp-muted);
}

.bp-shell {
    min-height: 100vh;
}

.bp-topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    color: #ffffff;
    background: #354a5f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.bp-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bp-topbar-logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 700;
    background: var(--bp-primary);
}

.bp-topbar-title {
    font-size: 18px;
    font-weight: 700;
}

.bp-user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bp-user-info {
    text-align: right;
}

.bp-user-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.bp-user-role {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
}

.bp-logout-link {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px;
    color: #ffffff;
}

.bp-logout-link:hover {
    background: rgba(255, 255, 255, 0.10);
}

.bp-main {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

.bp-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.bp-page-header h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.bp-page-header p {
    margin: 0;
    color: var(--bp-muted);
}

.bp-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.bp-kpi-card {
    min-height: 140px;
    padding: 22px;
    border: 1px solid #e5e7e9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bp-kpi-label {
    margin-bottom: 18px;
    color: var(--bp-muted);
    font-size: 14px;
    font-weight: 600;
}

.bp-kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--bp-primary-dark);
}

.bp-kpi-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--bp-muted);
}

.bp-content-card {
    padding: 26px;
    border: 1px solid #e5e7e9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bp-content-card h2 {
    margin: 0 0 8px;
}

.bp-content-card p {
    margin: 0;
    color: var(--bp-muted);
    line-height: 1.6;
}

@media (max-width: 950px) {
    .bp-login-page {
        grid-template-columns: 1fr;
    }

    .bp-login-cover {
        min-height: 320px;
        padding: 42px 30px;
    }

    .bp-login-panel {
        min-height: auto;
        padding: 36px 20px;
    }

    .bp-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bp-login-card {
        padding: 28px 22px;
    }

    .bp-login-cover {
        min-height: 260px;
    }

    .bp-login-brand h1 {
        font-size: 42px;
    }

    .bp-login-brand p {
        font-size: 15px;
    }

    .bp-topbar {
        align-items: flex-start;
        padding: 15px 18px;
    }

    .bp-user-info {
        display: none;
    }

    .bp-main {
        width: min(100% - 24px, 1450px);
    }

    .bp-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .bp-kpi-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CALENDARIO ADMINISTRATIVO
   ========================================================= */

.bp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bp-action-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.bp-action-button:active {
    transform: scale(0.98);
}

.bp-action-primary {
    color: #ffffff;
    background: var(--bp-primary);
}

.bp-action-primary:hover {
    background: var(--bp-primary-dark);
}

.bp-action-secondary {
    color: var(--bp-primary-dark);
    border-color: #a8c9e8;
    background: #ffffff;
}

.bp-action-secondary:hover {
    background: #eef7ff;
}

.bp-action-danger {
    color: #ffffff;
    background: #bb0000;
}

.bp-action-danger:hover {
    background: #8f0000;
}

.bp-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
}

.bp-calendar-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e5e7e9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bp-calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bp-sidebar-card {
    padding: 20px;
    border: 1px solid #e5e7e9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bp-sidebar-card h3 {
    margin: 0 0 15px;
    font-size: 16px;
}

.bp-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bp-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.bp-legend-color {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border-radius: 4px;
}

.bp-legend-solicitud {
    background: #e9730c;
}

.bp-legend-apartada {
    background: #6c757d;
}

.bp-legend-confirmada {
    background: #0a6ed1;
}

.bp-legend-liquidada {
    background: #107e3e;
}

.bp-legend-bloqueo {
    background: #bb0000;
}

.bp-calendar-note {
    font-size: 13px;
    line-height: 1.55;
    color: var(--bp-muted);
}

#calendar {
    min-height: 680px;
}

.fc .fc-toolbar-title {
    font-size: 23px;
    color: var(--bp-text);
}

.fc .fc-button {
    border-color: var(--bp-primary);
    background: var(--bp-primary);
    box-shadow: none;
    font-weight: 600;
}

.fc .fc-button:hover,
.fc .fc-button:focus {
    border-color: var(--bp-primary-dark);
    background: var(--bp-primary-dark);
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    border-color: #354a5f;
    background: #354a5f;
}

.fc .fc-daygrid-day-number {
    color: var(--bp-text);
    font-weight: 600;
}

.fc .fc-col-header-cell-cushion {
    padding: 10px 4px;
    color: var(--bp-text);
    font-weight: 700;
}

.fc .fc-day-today {
    background: #fff8d6 !important;
}

.fc .fc-day-past {
    background: #f4f4f4;
}

.fc-event {
    cursor: pointer;
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 12px;
}

/* Modal */

.bp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.52);
}

.bp-modal-backdrop.is-open {
    display: flex;
}

.bp-modal {
    width: min(100%, 680px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.bp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7e9;
}

.bp-modal-header h2 {
    margin: 0;
    font-size: 21px;
}

.bp-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--bp-muted);
    background: transparent;
}

.bp-modal-close:hover {
    background: #f0f3f5;
}

.bp-modal-body {
    padding: 24px;
}

.bp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid #e5e7e9;
}

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

.bp-form-full {
    grid-column: 1 / -1;
}

.bp-select,
.bp-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    outline: none;
    color: var(--bp-text);
    background: #ffffff;
    font-size: 15px;
}

.bp-select {
    min-height: 48px;
}

.bp-textarea {
    min-height: 100px;
    resize: vertical;
}

.bp-select:focus,
.bp-textarea:focus {
    border-color: var(--bp-primary);
    box-shadow:
        0 0 0 3px rgba(10, 110, 209, 0.14);
}

.bp-form-message {
    display: none;
    margin-bottom: 18px;
}

.bp-form-message.is-visible {
    display: block;
}

.bp-required {
    color: #bb0000;
}

@media (max-width: 1000px) {
    .bp-calendar-layout {
        grid-template-columns: 1fr;
    }

    .bp-calendar-sidebar {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .bp-calendar-card {
        padding: 12px;
    }

    .bp-calendar-sidebar {
        grid-template-columns: 1fr;
    }

    .bp-form-grid {
        grid-template-columns: 1fr;
    }

    .bp-form-full {
        grid-column: auto;
    }

    .bp-modal-footer {
        flex-direction: column-reverse;
    }

    .bp-modal-footer .bp-action-button {
        width: 100%;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}


/* =========================================================
   ORCA POOL - IDENTIDAD / CABECERA ADMIN
   Mantiene clases bp-* por compatibilidad con la aplicación.
   ========================================================= */
.bp-topbar{
    width:100%;
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:0 30px;
    color:#fff;
    background:linear-gradient(90deg,#073b57 0%,#075b92 55%,#0a6ed1 100%);
    box-shadow:0 3px 14px rgba(7,59,87,.18);
}
.bp-topbar-brand{display:flex;align-items:center;gap:13px;min-width:0}
.bp-topbar-logo{
    width:42px;height:42px;flex:0 0 42px;
    display:grid;place-items:center;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.32);
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:15px;font-weight:900;letter-spacing:.04em;
}
.bp-topbar-title{color:#fff;font-size:19px;font-weight:800;letter-spacing:-.01em}
.bp-user-menu{display:flex;align-items:center;gap:18px}
.bp-user-info{text-align:right;line-height:1.15}
.bp-user-name{display:block;color:#fff;font-size:14px;font-weight:800}
.bp-user-role{
    display:block;margin-top:4px;
    color:rgba(255,255,255,.70);
    font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase
}
.bp-logout-link{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:38px;padding:8px 13px;
    border:1px solid rgba(255,255,255,.30);
    border-radius:9px;color:#fff!important;
    font-size:12px;font-weight:750;text-decoration:none;
    background:rgba(255,255,255,.08)
}
.bp-logout-link:hover{background:rgba(255,255,255,.16)}
@media(max-width:650px){
    .bp-topbar{padding:13px 16px;align-items:center}
    .bp-topbar-title{font-size:17px}
    .bp-user-info{display:none}
}
