/*
 * SportsCoaching theme: Tabler 1.6 (loaded in head1.php) with this site's own colours,
 * plus a compatibility layer for the Metronic class names the pages were written with.
 *
 * The compatibility section exists so every page looks right inside the new shell on
 * day one. As a page is restyled it stops using those classes; when nothing does, the
 * section can go.
 */

/* ---- Tokens ------------------------------------------------------------------- */
:root,
[data-bs-theme] {
  /* Mariany blue, the primary the old head1.php set on .btn-primary */
  --tblr-primary: #0085CA;
  --tblr-primary-rgb: 0, 133, 202;
  --tblr-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* The field, as the playbook diagrams draw it */
  --sc-turf: #5b8f5b;
  --sc-turf-line: rgba(255, 255, 255, .85);
  --sc-turf-tick: rgba(255, 255, 255, .7);
  --sc-los: #e8402a;
}
[data-bs-theme="dark"] {
  --sc-turf: #4a7a4b;
}

body { background: var(--tblr-body-bg); }
.tabular, .table td { font-variant-numeric: tabular-nums; }

/* ---- Shell -------------------------------------------------------------------- */
.navbar-vertical .navbar-brand { font-size: 1rem; }
.sc-brand-team { display: block; font-size: .75rem; font-weight: 500; color: var(--tblr-navbar-color, rgba(255,255,255,.6)); }
.navbar-vertical .nav-link-icon .fa-light,
.navbar-vertical .nav-link-icon .fa-regular { width: 1.25rem; text-align: center; font-size: 1.05rem; }
.sc-sidebar-footer { margin-top: auto; padding: .75rem 1rem 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sc-sidebar-footer .sc-user { color: rgba(255,255,255,.75); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 992px) {
  .navbar-vertical .navbar-collapse { display: flex !important; flex-direction: column; min-height: calc(100vh - 4rem); }
}
.page-header .page-description { margin-top: .25rem; color: var(--tblr-secondary); font-size: .875rem; }

/* Notifications from $.notify sit above Tabler's modals */
[data-notify="container"] { z-index: 2000 !important; }

/* ---- DataTables 2 to match Tabler tables ---------------------------------------- */
.dt-container { padding: 0; }
.dt-container .dt-layout-row { padding: .75rem 1rem; margin: 0 !important; align-items: center; }
.dt-container .dt-layout-row.dt-layout-table { padding: 0; }
.dt-container .dt-input,
.dt-container select.dt-input,
.dt-container .dt-search input {
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: var(--tblr-border-radius) !important;
  background: var(--tblr-bg-forms, var(--tblr-bg-surface)) !important;
  color: var(--tblr-body-color) !important;
  padding: .3rem .6rem !important;
  font-size: .875rem;
}
.dt-container .dt-search input { min-width: 14rem; }
.dt-container .dt-paging .dt-paging-button {
  border: 1px solid transparent !important;
  border-radius: var(--tblr-border-radius) !important;
  background: transparent !important;
  color: var(--tblr-body-color) !important;
  padding: .25rem .6rem !important;
  margin-left: .15rem;
}
.dt-container .dt-paging .dt-paging-button:hover { background: var(--tblr-bg-surface-secondary) !important; }
.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--tblr-primary) !important;
  color: #fff !important;
}
.dt-container .dt-paging .dt-paging-button.disabled { opacity: .45; }
.dt-container .dt-info { color: var(--tblr-secondary); font-size: .875rem; }
table.dataTable { margin: 0 !important; border-collapse: collapse !important; }
table.dataTable > thead > tr > th,
table.dataTable > tfoot > tr > th {
  border-bottom: 1px solid var(--tblr-border-color) !important;
  background: var(--tblr-bg-surface-tertiary, var(--tblr-bg-surface-secondary));
  color: var(--tblr-secondary);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
table.dataTable > tfoot { display: none; } /* the header already names the columns */
table.dataTable > tbody > tr > td { border-top: 1px solid var(--tblr-border-color); vertical-align: middle; }
table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * { box-shadow: none; }
div.dt-processing { background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); }

/* ---- Field diagrams (Route Types, plays) ---------------------------------------- */
.sc-field { background: var(--sc-turf); border-radius: var(--tblr-border-radius); display: block; width: 100%; height: auto; }
.sc-field text { font-family: var(--tblr-font-sans-serif); }

/* ---- Compatibility: Metronic classes still in the pages ------------------------- */
.card-custom { /* a Tabler .card already */ }
.card-label { font-size: 1rem; font-weight: 600; margin: 0; }
.card-header .card-title h6 { font-weight: 400; }
.card-toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.font-weight-bold { font-weight: 600 !important; }
.font-weight-bolder { font-weight: 700 !important; }
.btn-light-primary { background: var(--tblr-primary-lt); color: var(--tblr-primary); border-color: transparent; }
.btn-light-primary:hover, .btn-light-primary:focus { background: var(--tblr-primary); color: #fff; }
.btn-clean { background: transparent; border-color: transparent; color: var(--tblr-secondary); }
.btn-clean:hover { background: var(--tblr-bg-surface-secondary); color: var(--tblr-body-color); }
.btn-icon-md { width: 2rem; height: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.dropdown-menu-right { right: 0; left: auto; }
.badge-success { background: var(--tblr-success-lt); color: var(--tblr-success); }
.badge-danger { background: var(--tblr-danger-lt); color: var(--tblr-danger); }
.svg-icon svg { width: 1.5rem; height: 1.5rem; }
.svg-icon.svg-icon-2x svg { width: 2rem; height: 2rem; }
.svg-icon-primary svg [fill]:not([fill="none"]) { fill: var(--tblr-primary); }
.alert-custom .alert-icon { margin-right: .5rem; }
.custom-file { position: relative; }
.custom-file-input { position: absolute; inset: 0; opacity: 0; }
.custom-file-label { display: block; padding: .45rem .75rem; border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); background: var(--tblr-bg-forms, var(--tblr-bg-surface)); }
