html,
body {
    height: 100%;
}

body{
    padding: 0 !important;
    font-family: 'Work Sans';
}

body, table, td, th, p{
    color: black;
}

[class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link > p {
    color: #ffffff;
}

[class*="sidebar-dark-"] .nav-sidebar .nav-treeview > .nav-item > .nav-link,
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview > .nav-item > .nav-link p {
    color: #ffffff;
}


.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Font Awesome\ 5 Free';
    font-style: normal;
    /*font-weight: normal;*/
    line-height: 1;
    padding-left: 5px;
    font-weight: 900;
}

a.asc:after {
    content: "\f15d";
}

a.desc:after {
    content: "\f15e";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.user-menu > .nav-link > img {
    width: 25px;
    height: 25px;
}

.help-block {
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

button, .btn{
    text-transform: uppercase;
}

[class*="sidebar-dark-"]{
    background-color: #151D24;
}

[class*="sidebar-dark"] .brand-link, [class*="sidebar-dark"] .user-panel {
    border-bottom: 1px solid #233646;
}

[class*="sidebar-dark-"] .sidebar a {
    color: white;
}

[class*="sidebar-dark-"] .nav-header {
    color: #E5E5E5;
}

.content-wrapper {
    background: #E5E5E5;
}

.black{
    color: black;
}

.table-bordered th, .table-bordered td {
    border: 1px solid #E5E5E5;
}

.table-bordered {
    border: 1px solid #E5E5E5;
}

.badge-notification {
    color: black;
    background-color: #00FFC2;
}

.table-striped tbody tr:nth-of-type(2n+1) {
    background-color: #f4f6f9;
}


.content-wrapper > .content {
    padding: 0 1rem;
}

.card{
    border-radius: 0;
    /*box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);*/
}

.card-header, .card-header:first-child{
    border-radius: 0;
}


.my-box, .payments {
    height: 2.5rem;
    width: 2.5rem;
    margin-left: -0.5rem;
}

nav .nav-link img {
    height: auto;
    width: 20px;
}

.fitness-icon{
    border-radius: 20%;
    filter: invert(100%);
}


/* TimePicker starts */
.timerangepicker-container {
    display:flex;
    position: absolute;
    min-width: 200px;
}
.timerangepicker-label {
    display: block;
    line-height: 2em;
    background-color: #c8c8c880;
    padding-left: 1em;
    border-bottom: 1px solid grey;
    margin-bottom: 0.75em;
}

.timerangepicker-from,
.timerangepicker-to {
    border: 1px solid grey;
    padding-bottom: 0.75em;
}
.timerangepicker-from {
    border-right: none;
}
.timerangepicker-display {
    box-sizing: border-box;
    display: inline-block;
    width: 2.5em;
    height: 2.5em;
    border: 1px solid grey;
    line-height: 2.5em;
    text-align: center;
    position: relative;
    margin: 1em 0.175em;
}
.timerangepicker-display .increment,
.timerangepicker-display .decrement {
    cursor: pointer;
    position: absolute;
    font-size: 1.5em;
    width: 1.5em;
    text-align: center;
    left: 0;
}

.timerangepicker-display .increment {
    margin-top: -0.25em;
    top: -1em;
}

.timerangepicker-display .decrement {
    margin-bottom: -0.25em;
    bottom: -1em;
}

.timerangepicker-display.hour {
    margin-left: 1em;
}
.timerangepicker-display.period {
    margin-right: 1em;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

/* Professional backend design system
 * Shared primitives intentionally enhance the existing Bootstrap/AdminLTE
 * markup, so every CRUD screen keeps its behaviour while sharing one look.
 */
:root {
    --pro-ink: #172033;
    --pro-muted: #718096;
    --pro-purple: #7357e8;
    --pro-teal: #16a6a1;
    --pro-amber: #f0a442;
    --pro-border: #e7eaf0;
    --pro-surface: #ffffff;
    --pro-canvas: #f4f6fa;
    --pro-shadow: 0 8px 28px rgba(30, 42, 72, .08);
}

body { background: var(--pro-canvas); color: var(--pro-ink); }
.content-wrapper { background: var(--pro-canvas); }
.content-wrapper > .content { padding: 0 1.25rem 2rem; }
.content-header { padding: 1.35rem 1.25rem .8rem; }
.content-header h1 { color: var(--pro-ink); font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; }
.breadcrumb { padding: .45rem .75rem; border-radius: 1rem; background: rgba(255,255,255,.7); font-size: .75rem; }
.breadcrumb-item a { color: var(--pro-purple); font-weight: 600; }
.breadcrumb-item.active { color: var(--pro-muted); }

.pro-navbar { min-height: 62px; border-bottom: 1px solid rgba(23,32,51,.06); box-shadow: 0 3px 16px rgba(30,42,72,.05); }
.pro-navbar .nav-link { color: #526079 !important; font-size: .875rem; font-weight: 600; }
.pro-sidebar { background: linear-gradient(180deg, #172033 0%, #111827 100%); box-shadow: 7px 0 24px rgba(17,24,39,.12) !important; }
.pro-sidebar .user-panel { align-items: center; padding: .75rem .25rem 1.25rem !important; }
.pro-sidebar .user-panel .image img { width: 42px; height: 42px; object-fit: cover; }
.pro-sidebar .user-panel .info a { font-weight: 700; }
.nav-sidebar .nav-item > .nav-link { margin-bottom: 3px; border-radius: 9px; transition: background .18s ease, transform .18s ease; }
.nav-sidebar .nav-item > .nav-link:hover { background: rgba(255,255,255,.08); transform: translateX(2px); }
.nav-sidebar .nav-item > .nav-link.active { background: linear-gradient(120deg, var(--pro-purple), #5d43cb); box-shadow: 0 7px 16px rgba(115,87,232,.25); }
.sidebar-collapse .nav-sidebar > .nav-item > .nav-link.active { background: linear-gradient(120deg, var(--pro-purple), #5d43cb); }

.payment-index__toolbar { display: flex; justify-content: flex-end; gap: .4rem; margin-bottom: .5rem; }
.payment-index .grid-view { width: 100%; clear: both; }

.reservation-day-picker label { display: block; margin-bottom: .3rem; }
.reservation-day-picker__title { display: flex; flex-direction: column; padding: 0 0 .2rem .75rem; }
.reservation-day-picker__title span { color: var(--pro-muted); font-size: .78rem; }
.reservation-agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: .75rem; }
.reservation-agenda__empty { padding: 2rem; border: 1px dashed #cfd5df; border-radius: 14px; color: var(--pro-muted); background: #fff; text-align: center; }
.reservation-slot { display: flex; overflow: hidden; min-height: 96px; border-radius: 14px; background: #fff; box-shadow: var(--pro-shadow); }
.reservation-slot__time { display: flex; flex: 0 0 78px; align-items: center; justify-content: center; padding: .75rem; color: #fff; background: linear-gradient(145deg, var(--pro-purple), #5d43cb); flex-direction: column; }
.reservation-slot__time strong { color: #fff; font-size: 1.25rem; }
.reservation-slot__time span { color: rgba(255,255,255,.78); font-size: .8rem; }
.reservation-slot__content { flex: 1; min-width: 0; padding: .8rem .9rem; }
.reservation-slot__content header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.reservation-slot__content h3 { margin: 0; color: var(--pro-ink); font-size: 1rem; font-weight: 800; }
.reservation-slot__content header div > span { color: var(--pro-muted); font-size: .75rem; }
.reservation-slot__capacity { flex-shrink: 0; padding: .3rem .6rem; border-radius: 1rem; color: var(--pro-purple); background: #efebff; font-size: .75rem; font-weight: 800; }
.reservation-slot__athletes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.reservation-athlete { padding: .35rem .6rem; border-radius: 1rem; color: #277c78; background: #e7f7f6; font-size: .75rem; font-weight: 600; }
.reservation-athlete--queue { color: #9a651b; background: #fff5e5; }
.reservation-athlete small { margin-left: .25rem; font-weight: 800; text-transform: uppercase; }
.user-reservations__filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.user-reservations__filter > div { width: min(100%, 260px); }

.card { border: 0; border-radius: 14px; box-shadow: var(--pro-shadow); }
.card-header, .card-header:first-child { padding: 1rem 1.25rem; border-bottom: 1px solid #eef0f4; border-radius: 14px 14px 0 0; background: var(--pro-surface); }
.card-header h3, .card-header h4, .card-title { color: var(--pro-ink); font-weight: 800; }
.card-body { padding: 1.25rem; }

.btn { border-radius: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .025em; box-shadow: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.btn-primary { color: #fff !important; border-color: var(--pro-purple) !important; background-color: var(--pro-purple) !important; }
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle { color: #fff !important; border-color: #6046d2 !important; background-color: #6046d2 !important; box-shadow: 0 6px 14px rgba(115,87,232,.22); }
.btn:focus { outline: 0; }
.btn:focus-visible { outline: 3px solid rgba(115,87,232,.3); outline-offset: 2px; }
.btn-outline-primary { color: var(--pro-purple); border-color: #c8bff5; }
.btn-outline-primary:hover { border-color: var(--pro-purple); background: var(--pro-purple); }
.btn-success { border-color: var(--pro-teal); background: var(--pro-teal); }
.form-control, .custom-select, .select2-container--krajee .select2-selection { min-height: 40px; border-color: #dfe4ec; border-radius: 8px; background-color: #fafbfc; }
.form-control:focus, .custom-select:focus { border-color: #aa9af1; box-shadow: 0 0 0 .2rem rgba(115,87,232,.12); }
label { color: #526079; font-size: .78rem; font-weight: 700; }

.table { margin-bottom: 0; color: var(--pro-ink); }
.table thead th { border-top: 0; border-bottom: 1px solid var(--pro-border); color: #657189; background: #f8f9fc; font-size: .71rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.table td { border-color: #edf0f4; vertical-align: middle; }
.table-striped tbody tr:nth-of-type(2n+1) { background: #fafbfc; }
.table-hover tbody tr:hover { background: #f3f1fd; }
.grid-view { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--pro-shadow); }
.grid-view .summary { padding: .9rem 1.1rem; color: var(--pro-muted); font-size: .78rem; }
.grid-view .pagination { padding: 0 1rem 1rem; }
.pagination .page-link { margin: 0 2px; border: 0; border-radius: 7px; color: var(--pro-purple); }
.pagination .active .page-link { background: var(--pro-purple); }
.modal-content { overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 22px 60px rgba(23,32,51,.22); }
.modal-header { border-bottom-color: #edf0f4; }
.dropdown-menu { border: 0; border-radius: 11px; box-shadow: 0 12px 32px rgba(23,32,51,.14); }
.alert { border: 0; border-radius: 10px; box-shadow: 0 6px 18px rgba(30,42,72,.06); }

.pro-hero { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; margin-bottom: 18px; border-radius: 18px; color: #fff; background: linear-gradient(120deg,#17233e 0%,#29355a 58%,#593bb8 140%); box-shadow: 0 14px 35px rgba(23,32,51,.18); }
.pro-eyebrow { color: #9ce5df; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.pro-hero h2 { margin: 5px 0; color: #fff; font-size: 30px; font-weight: 800; }
.pro-hero p { max-width: 650px; margin: 0; color: #d7ddeb; }
.pro-live { padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pro-live span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #55dbc4; box-shadow: 0 0 0 4px rgba(85,219,196,.14); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.dashboard-kpi { position: relative; overflow: hidden; padding: 18px 22px; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(30,42,72,.07); }
.dashboard-kpi:before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--pro-purple); content: ''; }
.dashboard-kpi.accounting:before { background: var(--pro-teal); }
.dashboard-kpi.members:before { background: var(--pro-amber); }
.dashboard-kpi span { display: block; color: var(--pro-muted); font-size: 12px; font-weight: 700; }
.dashboard-kpi strong { display: block; margin-top: 3px; color: var(--pro-ink); font-size: 27px; }
.dashboard-kpi small { color: #9aa5b5; }
.dashboard-charts > [class*='col-'], .dashboard-team > [class*='col-'] { margin-bottom: 18px; }
.pro-chart-card, .pro-team-card { height: 100%; }
.pro-chart-card .card-body { padding: 24px; }
.pro-chart-heading { display: flex; align-items: center; }
.pro-chart-heading h3 { margin: 0; color: var(--pro-ink); font-size: 18px; font-weight: 800; }
.pro-chart-heading p { margin: 2px 0 0; color: var(--pro-muted); font-size: 12px; }
.pro-chart-icon { display: flex; flex: 0 0 38px; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 11px; border-radius: 11px; color: var(--pro-purple); background: #efebff; }
.pro-chart-icon.accounting { color: var(--pro-teal); background: #e7f7f6; }
.pro-chart-icon.members { color: var(--pro-amber); background: #fff5e5; }
.pro-chart-pill { margin-left: auto; padding: 6px 9px; border-radius: 12px; color: #7c8799; background: #f5f7fa; font-size: 10px; font-weight: 700; }
.dashboard-chart { height: 320px; margin-top: 12px; }
.pro-team-card .card-header { display: flex; align-items: center; justify-content: space-between; }
.pro-team-card .card-header h3 { margin: 0; font-size: 18px; }
.pro-team-card .badge { border-radius: 10px; color: var(--pro-purple); background: #efebff; }
.dashboard-user-item { display: flex; align-items: center; justify-content: space-between; transition: background .18s ease; }
.dashboard-user-item:hover { background: #faf9ff; }
.dashboard-user-avatar { flex-shrink: 0; width: 42px; height: 42px; margin-right: 12px; object-fit: cover; }
.dashboard-user-item small { color: var(--pro-muted); }
.dashboard-user-actions { display: flex; gap: 6px; }

.global-maintenance-control { display: flex; align-items: center; gap: .65rem; min-width: 285px; padding: .45rem .65rem; border: 1px solid #cfe8df; border-radius: 12px; background: #f1fbf7; box-shadow: 0 4px 14px rgba(30,42,72,.08); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.global-maintenance-control__icon { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: #16816d; background: #d9f4eb; }
.global-maintenance-control__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; line-height: 1.1; }
.global-maintenance-control__copy label { margin-bottom: .2rem !important; color: var(--pro-ink); font-size: .78rem; white-space: nowrap; cursor: pointer; }
.global-maintenance-control__copy small { color: #16816d; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.global-maintenance-control .toggle { flex: 0 0 auto; border-radius: 9px; overflow: hidden; box-shadow: none; }
.global-maintenance-control .toggle .btn { font-size: .66rem; letter-spacing: .035em; }
.global-maintenance-control.is-active { border-color: #f3c7cc; background: #fff3f4; box-shadow: 0 5px 16px rgba(205,61,76,.13); }
.global-maintenance-control.is-active .global-maintenance-control__icon { color: #bd2f40; background: #fbdde1; }
.global-maintenance-control.is-active .global-maintenance-control__copy small { color: #bd2f40; }

@media (max-width: 767px) {
    .content-wrapper > .content { padding-right: .75rem; padding-left: .75rem; }
    .pro-hero { align-items: flex-start; padding: 22px; flex-direction: column; }
    .pro-live { margin-top: 16px; }
    .dashboard-kpis { grid-template-columns: 1fr; }
    .pro-chart-heading { align-items: flex-start; flex-wrap: wrap; }
    .pro-chart-pill { margin-top: 8px; }
    .dashboard-chart { height: 300px; }
    .table-responsive, .grid-view { overflow-x: auto; }
    .global-maintenance-control { min-width: 225px; gap: .45rem; padding: .35rem .45rem; }
    .global-maintenance-control__icon { display: none; }
    .global-maintenance-control__copy label { font-size: .7rem; }
    .global-maintenance-control__copy small { display: none; }
}
@media (max-width: 575px) {
    .global-maintenance-control { min-width: 195px; gap: .3rem; padding-right: .3rem; padding-left: .4rem; }
    .global-maintenance-control__icon { display: none; }
    .global-maintenance-control__copy { display: flex; }
    .global-maintenance-control__copy label { font-size: .62rem; }
}
.wod-index-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; border-radius: .5rem; background: #f4f6f9; }
.wod-toolbar { min-width: 0; }
.wod-type-tabs { display: flex; flex-wrap: wrap; gap: .65rem; }
.wod-type-tab { display: inline-flex; align-items: center; gap: .45rem; border-radius: 2rem; }
.wod-type-tab img { width: 1.25rem; height: 1.25rem; filter: currentColor; }
.wod-create-button { flex: 0 0 auto; }
.wod-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .75rem; max-height: 30rem; overflow: auto; }
.wod-icon-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem; border: 1px solid #dee2e6; border-radius: .4rem; background: #fff; overflow-wrap: anywhere; }
.wod-icon-card:hover, .wod-icon-card:focus, .wod-icon-card.is-selected { border-color: #007bff; box-shadow: 0 0 0 .2rem rgba(0,123,255,.18); }
.wod-icon-card img { width: 2rem; height: 2rem; }
.wod-icon-selection__preview { width: 1.25rem; height: 1.25rem; margin-right: .35rem; }
@media (max-width: 767.98px) { .wod-index-header { flex-direction: column; } .wod-create-button { width: 100%; } }
