﻿/* Add consistent padding to all TabPanel components */
.TabPanel,
.tab-pane {
    padding: 1.5rem;
}

/* Open Iconic import removed after migrating icons to Font Awesome */

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

h1:focus {
    outline: none;
}

.nav {
    flex-wrap: nowrap;
}

.card-title {
    color: #57b03a;
}

body .text-primary,
body a.text-primary,
body a.text-primary:hover,
body a.text-primary:focus {
    color: #57b039 !important;
}

a,
.btn-link {
    color: #2DACE3 !important;
    text-decoration: none !important;
}

a:hover,
.btn-link:hover,
a:focus,
.btn-link:focus,
a:active,
.btn-link:active {
    color: #56AF38 !important;
    text-decoration: none !important;
}

/* Do not apply global link palette inside blue theme areas */
.sidebar a,
.topbar a,
.sticky-footer a,
.bg-primary a,
.sidebar .btn-link,
.topbar .btn-link,
.sticky-footer .btn-link,
.bg-primary .btn-link {
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar a:hover,
.topbar a:hover,
.sticky-footer a:hover,
.bg-primary a:hover,
.sidebar a:focus,
.topbar a:focus,
.sticky-footer a:focus,
.bg-primary a:focus,
.sidebar a:active,
.topbar a:active,
.sticky-footer a:active,
.bg-primary a:active {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Sidebar submenu links (inside white collapse panels) */
.sidebar .collapse .collapse-item {
    color: #2DACE3 !important;
}

.btn-primary {
    color: #fff !important;
    background-color: #2dace3 !important;
    border-color: #2dace3 !important;
}

.btn-primary:hover {
    color: #2dace3 !important;
    background-color: #fff !important;
    border-color: #2dace3 !important;
}

/* Dropdown theme: blue background, white text */
.dropdown-menu {
    background-color: #2dace3 !important;
    border-color: #2dace3 !important;
}

.dropdown-item,
.dropdown-item-text {
    color: #fff !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    color: #fff !important;
    background-color: #2499cc !important;
}

.dropdown-item i,
.dropdown-item svg,
.dropdown-item .fa,
.dropdown-item .fas,
.dropdown-item .far,
.dropdown-item .fab {
    color: inherit !important;
    fill: currentColor !important;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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



.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}

.loader {
    color: #004080;
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loader:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.loader:after {
    left: 3.5em;
}

div.tab-content>div.tab-pane.active.show {
    border-color: #dee2e6;
    border-width: 1px;
    border-bottom-style: solid;
    border-left-style: solid;
    border-right-style: solid;
    /*border-top-style: solid;*/
    /*border-color: rgb(66, 121, 63);*/
    border-radius: 0px;
}


@-webkit-keyframes load7 {

    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

@keyframes load7 {

    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.offcanvas.offcanvas-end {
    width: 80%;
    max-width: 1200px;
}

.offcanvas-body {
    padding: 1rem;
    overflow-y: auto;
}

.offcanvas.scrollable-offcanvas {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

.offcanvas.scrollable-offcanvas .offcanvas-header {
    flex: 0 0 auto !important;
}

.offcanvas.scrollable-offcanvas .offcanvas-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: scroll !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #6c757d #f1f3f5;
}

.offcanvas.scrollable-offcanvas .offcanvas-body::-webkit-scrollbar {
    width: 12px;
}

.offcanvas.scrollable-offcanvas .offcanvas-body::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.offcanvas.scrollable-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border: 3px solid #f1f3f5;
    border-radius: 999px;
}

.offcanvas.scrollable-offcanvas .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background-color: #495057;
}

/* Form page styles */
.form-page-container {
    background-color: var(--light);
    min-height: 100vh;
    padding: 1.5rem;
}

.form-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
}

.upload-area {
    border: 2px dashed #dee2e6;
    background-color: var(--light);
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    padding: 2rem;
    text-align: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: #e7f5ff;
}

.file-display {
    background-color: var(--light);
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
}

/* Legend box for status indicators */
.legend-box {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 999px;
    background-color: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.modern-calendar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.modern-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
}

.modern-calendar-header h5 {
    color: #1f2937;
    font-weight: 700;
}

.modern-calendar-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modern-calendar-summary {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.modern-calendar-body {
    padding: 1rem;
    background-color: #f8fafc;
}

.modern-calendar-surface {
    min-height: 650px;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.modern-calendar-card .fc {
    color: #334155;
}

.modern-calendar-card .fc-toolbar {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modern-calendar-card .fc-toolbar h2 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: capitalize;
}

.modern-calendar-card .fc-button {
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
}

.modern-calendar-card .fc-button:hover,
.modern-calendar-card .fc-button:focus {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: none;
}

.modern-calendar-card .fc-button-primary:not(:disabled).fc-button-active,
.modern-calendar-card .fc-button-primary:not(:disabled):active {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.modern-calendar-card .fc-day-header,
.modern-calendar-card .fc-widget-header {
    color: #475569;
    background-color: #f8fafc;
    border-color: #e5e7eb;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.modern-calendar-card .fc-widget-content,
.modern-calendar-card .fc-unthemed td,
.modern-calendar-card .fc-unthemed th,
.modern-calendar-card .fc-unthemed thead,
.modern-calendar-card .fc-unthemed tbody,
.modern-calendar-card .fc-unthemed .fc-divider,
.modern-calendar-card .fc-unthemed .fc-row,
.modern-calendar-card .fc-unthemed .fc-content,
.modern-calendar-card .fc-unthemed .fc-popover,
.modern-calendar-card .fc-unthemed .fc-list-view,
.modern-calendar-card .fc-unthemed .fc-list-heading td {
    border-color: #e5e7eb;
}

.modern-calendar-card .fc-day-top .fc-day-number {
    color: #334155;
    font-weight: 700;
}

.modern-calendar-card .fc-today {
    background-color: #eff6ff !important;
}

.modern-calendar-card .fc-now-indicator {
    border-color: #ef4444;
}

.modern-calendar-card .fc-event {
    border-width: 0;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.modern-calendar-card .fc-event:hover {
    color: inherit;
    filter: brightness(0.97);
    text-decoration: none;
}

.modern-calendar-card .fc-event .fc-content {
    padding: 0.15rem 0.35rem;
}

.modern-calendar-card .fc-list-item:hover td {
    background-color: #f8fafc;
}

.absence-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    background-color: #f8fafc;
}

.absence-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    color: var(--status-text, #ffffff);
    background-color: var(--status-color, #4e73df);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    font-size: 0.86rem;
    font-weight: 700;
}

.absence-status-pill i {
    color: currentColor;
}

@media (max-width: 767.98px) {
    .modern-calendar-header,
    .modern-calendar-card .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .modern-calendar-summary {
        justify-content: center;
        white-space: normal;
    }

    .modern-calendar-body,
    .modern-calendar-surface {
        padding: 0.75rem;
    }

    .modern-calendar-surface {
        min-height: 560px;
        overflow-x: auto;
    }

    .modern-calendar-card .fc-toolbar h2 {
        font-size: 1.05rem;
        text-align: center;
    }

    .modern-calendar-card .fc-left,
    .modern-calendar-card .fc-center,
    .modern-calendar-card .fc-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Form switch improvements for better spacing */
.form-check.form-switch {
    padding: 0.5rem 0;
    min-height: 2rem;
}

.form-check.form-switch .form-check-input {
    margin-top: 0.25rem;
}

.form-check.form-switch .form-check-label {
    padding-top: 0.125rem;
}

/* Add padding to form elements in card bodies */
.card-body .form-check {
    margin-bottom: 0.5rem;
}

.card-body .form-check:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing in grid layouts with form elements */
.row.g-3>[class*="col-"] .form-check.form-switch {
    padding: 0.75rem;
    background-color: #f8f9fc;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.row.g-3>[class*="col-"] .form-check.form-switch:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Boxed switches in g-4 layouts with explicit bg-light and padding */
.row.g-4>[class*="col-"] .form-check.form-switch.p-3 {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem !important;
    min-height: 3rem;
}

.row.g-4>[class*="col-"] .form-check.form-switch.p-3 .form-check-input {
    position: relative;
    margin-top: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.row.g-4>[class*="col-"] .form-check.form-switch.p-3 .form-check-label {
    margin-bottom: 0;
    padding-top: 0;
    flex-grow: 1;
}

/* InputCheckbox spacing in tables */
table td .form-check-inline,
table td input[type="checkbox"] {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

table td {
    padding: 0.75rem !important;
    vertical-align: middle;
}

/* InputCheckbox in general containers */
.form-check-inline {
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
}

input[type="checkbox"]:not(.form-check-input) {
    margin: 0.5rem;
}

/* Table rows: alternating dark gray/gray and green/white */
table tbody tr:nth-child(odd),
table tbody tr:nth-child(odd) td,
table tbody tr:nth-child(odd) th,
.table tbody tr:nth-child(odd),
.table tbody tr:nth-child(odd) td,
.table tbody tr:nth-child(odd) th {
    color: #495057 !important;
    background-color: #f2f2f2 !important;
}

table tbody tr:nth-child(even),
table tbody tr:nth-child(even) td,
table tbody tr:nth-child(even) th,
.table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even) th {
    color: #57b039 !important;
    background-color: #ffffff !important;
}

table tbody tr:hover,
table tbody tr:hover td,
table tbody tr:hover th,
.table-hover>tbody>tr:hover,
.table-hover>tbody>tr:hover>* {
    background-color: #e9ecef !important;
}

/* Table header row: theme green text */
table thead tr th,
table thead tr td,
.table thead th,
.table thead td {
    color: #57b039 !important;
}

.modern-calendar-card table tbody tr,
.modern-calendar-card table tbody tr td,
.modern-calendar-card table tbody tr th,
.modern-calendar-card table tbody tr:nth-child(odd),
.modern-calendar-card table tbody tr:nth-child(odd) td,
.modern-calendar-card table tbody tr:nth-child(odd) th,
.modern-calendar-card table tbody tr:nth-child(even),
.modern-calendar-card table tbody tr:nth-child(even) td,
.modern-calendar-card table tbody tr:nth-child(even) th,
.modern-calendar-card table tbody tr:hover,
.modern-calendar-card table tbody tr:hover td,
.modern-calendar-card table tbody tr:hover th {
    color: inherit !important;
    background-color: transparent !important;
}

.modern-calendar-card table thead tr th,
.modern-calendar-card table thead tr td {
    color: #475569 !important;
}

.modern-calendar-card table tbody tr .fc-today {
    background-color: #eff6ff !important;
}

/* Definition lists: theme green text */
dt,
dd {
    color: #56AF38 !important;
}

/* DataGrid pager: highlight current page with theme blue background */
.pagination .page-item.active .page-link {
    background-color: #2dace3 !important;
    border-color: #2dace3 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.mission-offcanvas {
    visibility: visible;
    width: 70vw;
    max-width: 900px;
}

.salaries-category-offcanvas {
    visibility: visible;
    width: 70vw;
    max-width: 900px;
}
