@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&display=swap");

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

:root {
    --app-accent: #0ea5e9;
    --app-accent-strong: #14b8a6;
    --app-ink: #0f172a;
    --app-surface: #f8fafc;
    --app-border: rgba(15, 23, 42, 0.16);
}

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-compact {
    padding: 0.45rem 1rem;
    font-size: 0.95rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-dark,
.btn-outline-light {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--app-border);
    color: var(--app-ink);
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:focus {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
    color: #0f172a;
}

.btn-outline-success {
    border-color: rgba(34, 197, 94, 0.35);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
    color: var(--app-ink);
}

.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
    color: #7f1d1d;
}

.btn-outline-dark {
    border-color: rgba(15, 23, 42, 0.35);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.45);
    color: var(--app-ink);
}

.btn-primary {
    color: #f8fafc;
    background: linear-gradient(120deg, #0f8db8, #1aa2c9);
    border-color: rgba(14, 116, 144, 0.35);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #f8fafc;
    background: linear-gradient(120deg, #1295c0, #23add3);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.btn-primary:disabled {
    box-shadow: none;
}

.page-hero__actions .form-control[type="date"],
.page-hero__actions .form-control[type="month"] {
    max-width: 210px;
}

.month-nav-group {
    flex-wrap: nowrap;
}

.month-nav-group .form-control {
    min-width: 160px;
}

@media (max-width: 768px) {
    .page-hero__actions .form-control[type="date"],
    .page-hero__actions .form-control[type="month"] {
        max-width: 100%;
        width: 100%;
    }
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--app-border);
    color: var(--app-ink);
}

.btn-light:hover,
.btn-light:focus {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.35);
    color: var(--app-ink);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(14, 165, 233, 0.35);
}

.page-hero {
    position: relative;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(14, 165, 233, 0.12), rgba(20, 184, 166, 0.08)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 55%);
    border: 1px solid rgba(14, 116, 144, 0.14);
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(15, 23, 42, 0.5) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0f766e;
    font-weight: 600;
}

.page-hero__title {
    margin: 0.1rem 0 0.2rem;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.page-hero__subtitle {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.8rem;
}

.page-hero__status {
    color: #64748b;
    font-size: 0.9rem;
    align-self: center;
    padding-left: 0.25rem;
}

.nav-divider {
    height: 1px;
    margin: 0.6rem 1.2rem;
    background: rgba(148, 163, 184, 0.25);
}

.confirm-modal {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.confirm-modal .modal-header,
.confirm-modal .modal-footer {
    border-color: rgba(148, 163, 184, 0.2);
}

.confirm-modal__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.confirm-modal__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.confirm-modal__icon--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.confirm-modal__icon--info {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.confirm-modal__icon--warn {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.confirm-modal__icon--neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
}

.confirm-modal__message {
    margin-bottom: 0;
    color: #334155;
    line-height: 1.5;
}

.confirm-modal__confirm {
    min-width: 120px;
}

.report-detail {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.report-detail__client {
    display: grid;
    gap: 0.35rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.report-detail__client:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.report-detail__projects {
    display: grid;
    gap: 0.25rem;
}

.report-detail__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 84px 110px;
    gap: 1rem;
    align-items: center;
}

.report-detail--cost .report-detail__row {
    grid-template-columns: minmax(0, 1fr) 84px 84px 110px 110px 110px;
}

.report-detail__row--header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748b;
}

.report-detail__row--header span:not(:first-child) {
    text-align: right;
}

.report-detail__row--client {
    font-weight: 600;
    color: #0f172a;
}

.report-detail__row--project {
    padding-left: 1rem;
    color: #475569;
}

.report-detail__value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.report-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0;
}

.report-check .form-check-input {
    margin-left: 0;
    margin-top: 0;
}

.report-check .form-check-label {
    font-size: 0.95rem;
    white-space: nowrap;
}

.margin-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.margin-bar-row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr minmax(80px, 110px);
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.margin-bar-row__label {
    font-weight: 600;
    color: #1f2937;
}

.margin-bar-row__value {
    text-align: right;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.margin-bar {
    position: relative;
    height: 0.5rem;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
}

.margin-bar__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 160ms ease;
}

.margin-bar__fill--pos {
    background: linear-gradient(90deg, #2ebf91, #32d58f);
}

.margin-bar__fill--neg {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

@media (max-width: 768px) {
    .margin-bar-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .margin-bar-row__value {
        text-align: left;
    }
}

.absence-form {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.absence-board {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    margin-bottom: 2rem;
}

.absence-board__scroll {
    overflow-x: auto;
    padding-bottom: 0.4rem;
    max-width: 100%;
    padding-right: 0.6rem;
    width: 100%;
}

.absence-board__inner {
    min-width: 720px;
    --day-min-width: 24px;
    --day-gap: 0.2rem;
    --timeline-pad: 0.8rem;
    --timeline-min-width: calc((var(--days) * var(--day-min-width)) + ((var(--days) - 1) * var(--day-gap)) + var(--timeline-pad) + var(--day-min-width));
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-sizing: border-box;
    padding-right: 0.6rem;
    width: 100%;
    min-width: calc(180px + var(--timeline-min-width));
}

.absence-scale {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
    align-items: end;
    font-size: 0.8rem;
    color: #64748b;
    width: 100%;
}

.absence-scale__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.absence-scale__grid {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.absence-scale__weeks {
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(var(--day-min-width), 1fr));
    gap: var(--day-gap);
    align-items: center;
    font-size: 0.7rem;
    color: #7d899a;
}

.absence-scale__week {
    text-align: center;
    padding: 0.1rem 0;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.12);
    font-weight: 600;
}

.absence-scale__days {
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(var(--day-min-width), 1fr));
    gap: var(--day-gap);
    align-items: center;
}

.absence-scale__day {
    text-align: center;
    padding: 0.15rem 0;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.absence-scale__day.is-weekend {
    color: #ef4444;
}

.absence-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    width: 100%;
}

.absence-row__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 0.75rem 0.9rem 1rem;
}

.absence-row__name {
    font-weight: 600;
    color: #0f172a;
}

.absence-row__timeline {
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(var(--day-min-width), 1fr));
    align-items: center;
    gap: var(--day-gap);
    padding: 0.6rem var(--timeline-pad) 0.6rem 0;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.04), rgba(148, 163, 184, 0.08));
    overflow: hidden;
}

.absence-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.3));
    color: #0f172a;
    font-size: 0.82rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    white-space: nowrap;
    overflow: hidden;
}

.absence-bar.is-editable {
    cursor: pointer;
}

.absence-bar.is-editable:hover {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.2);
    background: linear-gradient(120deg, rgba(14, 165, 233, 0.28), rgba(56, 189, 248, 0.4));
}

.absence-bar__label {
    text-align: left;
    min-width: 1.1em;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 768px) {
    .absence-board__inner {
        --day-min-width: 20px;
        --day-gap: 0.15rem;
    }

    .absence-bar {
        font-size: 0.78rem;
    }

    .absence-row__timeline {
        background: transparent;
        padding: 0;
    }
}


.content {
    padding-top: 1.1rem;
    overflow-x: hidden;
}

.home-dashboard {
    padding-bottom: 2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaW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MDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    gap: 2.5rem;
    padding: 3rem;
    background: linear-gradient(120deg, #f6f1e9 0%, #eef2f5 50%, #f9f6f0 100%);
    font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
}

.login-wrap--solo {
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-wrap--solo .login-card {
    max-width: 520px;
    width: 100%;
    flex: 0 1 520px;
}

.login-wrap--solo .login-hero {
    flex: 0 1 360px;
    max-width: 520px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.login-hero--compact {
    padding: 1.75rem;
}

.login-hero--compact .headline {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.login-hero {
    flex: 1 1 50%;
    padding: 2rem;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 10% 10%, rgba(90, 160, 255, 0.35), transparent 55%),
        radial-gradient(140% 120% at 90% 0%, rgba(48, 92, 185, 0.4), transparent 50%),
        linear-gradient(135deg, #162446 0%, #22345e 50%, #2f4580 100%);
    color: #f3f5f8;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.login-hero::before,
.login-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.35;
    animation: hero-float 10s ease-in-out infinite;
    pointer-events: none;
}

.login-hero::before {
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    animation-delay: -2s;
}

.login-hero::after {
    bottom: -90px;
    left: -70px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(95, 193, 255, 0.6), rgba(95, 193, 255, 0));
}

@keyframes hero-float {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(12px) scale(1.04);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.brand {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cfd6e6;
}

.brand-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(207, 214, 230, 0.7);
}

.headline {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    margin: 1rem 0;
}

.muted {
    color: #9aa7bd;
}

.hero-pills {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.login-card {
    flex: 1 1 40%;
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(24, 39, 75, 0.12);
}

.login-card--hero {
    padding-top: 0;
}

.login-card__hero {
    margin: 0 -2.5rem 2rem;
    padding: 1.75rem 2.5rem 1.5rem;
    border-radius: 18px 18px 0 0;
    background:
        radial-gradient(110% 120% at 10% 15%, rgba(90, 160, 255, 0.25), transparent 55%),
        radial-gradient(120% 110% at 90% 0%, rgba(48, 92, 185, 0.25), transparent 50%),
        linear-gradient(135deg, #1a2c55 0%, #233660 50%, #2b4174 100%);
    color: #f3f6fb;
}

.login-card__hero .brand {
    color: #d7e2f5;
}

.login-card__hero .brand-sub {
    color: rgba(215, 226, 245, 0.7);
}

.login-card__hero .headline {
    margin: 0.75rem 0 0.6rem;
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
}

.login-card__hero .muted {
    color: rgba(215, 226, 245, 0.82);
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.login-card .muted {
    color: #6e7a90;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .login-wrap {
        flex-direction: column;
        padding: 1.5rem;
    }

    .login-hero,
    .login-card {
        width: 100%;
    }

    .login-card__hero {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 1.5rem 1.5rem 1.25rem;
        border-radius: 16px 16px 0 0;
    }
}
