/* ==========================================================================
   Balliante Client Portal theme
   Loaded last (from head.php) so it overrides metronic.css / custom.css.
   To roll back: remove the balliante.css <link> from head.php.
   ========================================================================== */

:root {
  --bp-navy: #0b1f3a;
  --bp-navy-2: #12305a;
  --bp-blue: #1e74d6;
  --bp-blue-600: #1862b8;
  --bp-blue-50: #eaf2fc;
  --bp-sky: #00a5ea;
  --bp-teal: #05aaac;
  --bp-ink: #1c2a3d;
  --bp-ink-2: #3b4a5e;
  --bp-muted: #6b7a90;
  --bp-line: #e3e8ef;
  --bp-line-2: #eef1f5;
  --bp-bg: #f4f6fa;
  --bp-card: #ffffff;
  --bp-red: #d64545;
  --bp-red-50: #fdeeee;
  --bp-amber: #c27c0e;
  --bp-amber-50: #fdf4e3;
  --bp-green: #1e8e5a;
  --bp-green-50: #e7f6ee;
  --bp-slate-50: #eef1f5;
  --bp-radius: 12px;
  --bp-radius-sm: 8px;
  --bp-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 4px 16px rgba(16, 32, 64, .05);
  --bp-shadow-lg: 0 12px 40px rgba(11, 31, 58, .16);
  --bp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bp-band: 296px;
  --bp-header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html, body { font-family: var(--bp-font) !important; }
body {
  color: var(--bp-ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6 {
  font-family: var(--bp-font);
  color: var(--bp-ink);
  letter-spacing: -0.01em;
}
body a { color: var(--bp-blue); transition: color .15s ease; }
body a:hover, body a:focus { color: var(--bp-blue-600); text-decoration: none; }
body .bold, body b, body strong { font-weight: 600; }
body .text-muted { color: var(--bp-muted) !important; }
body hr { border-color: var(--bp-line-2); }
::selection { background: rgba(30, 116, 214, .18); }

/* Logged-in layout: replace the old network-graphic banner with a clean navy band.
   The band is drawn behind the page title (hero / subheader) so it grows with it. */
body.panel-admin:has(.bp-header) {
  background: var(--bp-bg) !important;
  min-height: 100vh;
  overflow-x: hidden;
}
@supports (overflow: clip) { body.panel-admin:has(.bp-header) { overflow-x: clip; } }
body:has(.bp-header) .bp-hero,
body:has(.bp-header) .bp-doc-hero,
body:has(.bp-header) .kt-subheader { position: relative; }
body:has(.bp-header) .bp-hero::before,
body:has(.bp-header) .bp-doc-hero::before,
body:has(.bp-header) .kt-subheader::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  top: -200px;
  bottom: -96px;
  background:
    radial-gradient(1200px 300px at 85% 0, rgba(5, 170, 172, .26), transparent 70%),
    radial-gradient(900px 260px at 10% 0, rgba(30, 116, 214, .32), transparent 70%),
    linear-gradient(180deg, var(--bp-navy) 0%, var(--bp-navy-2) 100%);
  pointer-events: none;
}
body:has(.bp-header) .kt-wrapper,
body:has(.bp-header) .kt-body { padding-top: 0 !important; }
body:has(.bp-header) .kt-grid--root,
body:has(.bp-header) .kt-page { background: transparent !important; }

/* Shared container width (header, subheader, content and footer line up) */
body .kt-container,
.bp-container {
  width: 100%;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
body .kt-container .kt-container { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 767px) {
  body .kt-container, .bp-container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.bp-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--bp-line);
  box-shadow: 0 1px 0 rgba(11, 31, 58, .02);
}
.bp-header::after {
  /* brand stripe taken from the logo: blue / sky / teal */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--bp-blue) 0 40%, var(--bp-sky) 40% 70%, var(--bp-teal) 70% 100%);
}
.bp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--bp-header-h);
}
.bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none !important;
}
.bp-brand img { width: 34px; height: 34px; object-fit: contain; }
.bp-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.bp-brand__name { font-size: 17px; font-weight: 700; color: var(--bp-ink); letter-spacing: -0.01em; }
.bp-brand__tag { font-size: 11px; font-weight: 500; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.bp-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.bp-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--bp-header-h);
  padding: 0 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-ink-2) !important;
  white-space: nowrap;
  text-decoration: none !important;
}
.bp-nav__link:hover { color: var(--bp-blue) !important; }
.bp-nav__link.is-active { color: var(--bp-blue) !important; font-weight: 600; }
.bp-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--bp-blue);
  z-index: 2;
}

.bp-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.bp-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bp-ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.bp-iconbtn:hover, .bp-dd.is-open > .bp-iconbtn { background: var(--bp-line-2); color: var(--bp-ink); }
.bp-iconbtn svg { width: 20px; height: 20px; }
.bp-iconbtn__count {
  position: absolute;
  top: 6px; right: 5px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  border: 2px solid #fff;
  background: var(--bp-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}
.bp-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px 0 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bp-user:hover, .bp-dd.is-open > .bp-user { background: var(--bp-line-2); }
.bp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bp-blue-50);
  flex-shrink: 0;
}
.bp-user__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.bp-user__name { font-size: 13.5px; font-weight: 600; color: var(--bp-ink); }
.bp-user__company { font-size: 12px; color: var(--bp-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-user__chev { width: 16px; height: 16px; color: var(--bp-muted); }

/* Dropdown panels */
.bp-dd { position: relative; }
.bp-dd__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 300px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 1040;
  overflow: hidden;
}
.bp-dd.is-open > .bp-dd__panel { opacity: 1; visibility: visible; transform: none; }
.bp-dd__panel--wide { width: 360px; }
.bp-dd__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--bp-line-2);
}
.bp-dd__head .bp-avatar { width: 44px; height: 44px; }
.bp-dd__title { font-size: 14px; font-weight: 600; color: var(--bp-ink); margin: 0; }
.bp-dd__sub { font-size: 12.5px; color: var(--bp-muted); margin: 0; word-break: break-all; }
.bp-dd__list { padding: 6px; margin: 0; list-style: none; }
.bp-dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--bp-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bp-ink-2) !important;
  text-decoration: none !important;
}
.bp-dd__item:hover { background: var(--bp-bg); color: var(--bp-ink) !important; }
.bp-dd__item svg { width: 17px; height: 17px; color: var(--bp-muted); flex-shrink: 0; }
.bp-dd__item.is-active { color: var(--bp-blue) !important; }
.bp-dd__sep { height: 1px; background: var(--bp-line-2); margin: 6px 0; }
.bp-dd__label { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .06em; }
.bp-dd__item--danger { color: var(--bp-red) !important; }
.bp-dd__item--danger svg { color: var(--bp-red); }
.bp-dd__item--danger:hover { background: var(--bp-red-50); color: var(--bp-red) !important; }
.bp-langs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.bp-langs a {
  padding: 3px 9px;
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--bp-ink-2) !important;
  text-decoration: none !important;
}
.bp-langs a.is-active, .bp-langs a:hover { border-color: var(--bp-blue); color: var(--bp-blue) !important; background: var(--bp-blue-50); }

.bp-ann { max-height: 340px; overflow-y: auto; }
.bp-ann__item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bp-line-2);
  color: var(--bp-ink-2) !important;
  font-size: 13px;
  text-decoration: none !important;
}
.bp-ann__item:last-child { border-bottom: 0; }
.bp-ann__item:hover { background: var(--bp-bg); }
.bp-ann__title { display: block; font-weight: 600; color: var(--bp-ink); margin-bottom: 2px; }
.bp-ann__meta { display: block; margin-top: 6px; font-size: 12px; color: var(--bp-muted); }
.bp-ann__empty { padding: 28px 16px; text-align: center; color: var(--bp-muted); font-size: 13px; }
.bp-dd__foot { padding: 10px 16px; border-top: 1px solid var(--bp-line-2); text-align: center; }
.bp-dd__foot a { font-size: 13px; font-weight: 600; }

.bp-burger { display: none; }

/* Header – tablet & mobile */
@media (max-width: 1240px) {
  .bp-nav__link { padding: 0 8px; font-size: 13.5px; }
  .bp-nav__link.is-active::after { left: 8px; right: 8px; }
  .bp-user__meta, .bp-user__chev { display: none; }
  .bp-user { padding: 0 4px; }
}
@media (max-width: 1100px) {
  .bp-burger { display: inline-flex; }
  .bp-nav {
    position: fixed;
    top: calc(var(--bp-header-h) + 2px);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .2s ease, visibility .2s;
    z-index: 1029;
  }
  .bp-nav.is-open { transform: none; visibility: visible; }
  .bp-nav__link {
    height: auto;
    padding: 14px 12px;
    font-size: 15px;
    border-radius: var(--bp-radius-sm);
  }
  .bp-nav__link.is-active { background: var(--bp-blue-50); }
  .bp-nav__link.is-active::after { display: none; }
  body.bp-nav-open { overflow: hidden; }
}
@media (max-width: 575px) {
  .bp-brand__tag { display: none; }
  .bp-header__inner { gap: 12px; }
  .bp-dd__panel, .bp-dd__panel--wide { position: fixed; left: 12px; right: 12px; top: calc(var(--bp-header-h) + 8px); width: auto; }
}

/* Hide the legacy Metronic header pieces if they are ever rendered */
body:has(.bp-header) #kt_header,
body:has(.bp-header) #kt_header_mobile { display: none !important; }

/* --------------------------------------------------------------------------
   Page header (subheader) – sits on the navy band
   -------------------------------------------------------------------------- */
body .kt-subheader {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 36px 0 30px !important;
  background: transparent !important;
}
body .kt-subheader .kt-subheader__main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body .kt-subheader .kt-subheader__main .kt-subheader__title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  color: #fff !important;
  letter-spacing: -0.02em;
}
body .kt-subheader .kt-subheader__main .kt-subheader__title b { font-weight: 700; }
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 0 !important; margin: 0 !important;
}
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-home { display: none !important; }
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-home + .kt-subheader__breadcrumbs-separator { display: none !important; }
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-link {
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, .68) !important;
}
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-link:hover { color: #fff !important; }
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-link:last-child { color: rgba(255, 255, 255, .92) !important; }
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-separator {
  display: inline-block !important;
  width: auto !important; height: auto !important;
  margin: 0 8px !important;
  background: none !important;
}
body .kt-subheader .kt-subheader__main .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-separator::after {
  content: "/" !important;
  display: inline !important;
  width: auto !important; height: auto !important;
  border-radius: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
}
body .kt-subheader .kt-subheader__toolbar { display: flex; align-items: center; padding: 0 !important; }
body .kt-subheader .kt-subheader__wrapper { display: flex; align-items: center; gap: 8px; }
body .kt-subheader .kt-subheader__toolbar .btn,
body .kt-subheader .kt-subheader__btn-secondary,
body .kt-subheader .kt-subheader__btn-options {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: var(--bp-radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
body .kt-subheader .kt-subheader__toolbar .btn:hover {
  background: rgba(255, 255, 255, .16) !important;
  border-color: rgba(255, 255, 255, .36) !important;
}
/* The first toolbar action (Support / Open ticket) is the primary action */
body .kt-subheader .kt-subheader__wrapper > .btn:first-child {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--bp-navy) !important;
}
body .kt-subheader .kt-subheader__wrapper > .btn:first-child:hover { background: #eaf2fc !important; }
/* Leftover template placeholder menu ("New Product", "New Order"...) */
body .kt-subheader .kt-subheader__toolbar .dropdown-menu { display: none !important; }

/* --------------------------------------------------------------------------
   Cards (portlets / panels)
   -------------------------------------------------------------------------- */
body .kt-portlet {
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
  background: var(--bp-card) !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: var(--bp-radius) !important;
  box-shadow: var(--bp-shadow) !important;
}
body .kt-portlet .kt-portlet__body { padding: 24px !important; }
body .kt-portlet .kt-portlet__head {
  min-height: 60px;
  padding: 0 24px !important;
  border-bottom: 1px solid var(--bp-line-2) !important;
}
body .kt-portlet .kt-portlet__head-title { font-size: 16px !important; font-weight: 600 !important; color: var(--bp-ink) !important; }
body .kt-grid__item[style*="margin-bottom: 60px"],
body .kt-container[style*="margin-bottom: 60px"] { margin-bottom: 0 !important; }

/* Perfex panels inside cards are flattened so we don't get boxes in boxes */
body .kt-portlet .panel_s,
body .kt-portlet .panel_s .panel-body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body .panel_s { border-radius: var(--bp-radius); border-color: var(--bp-line); box-shadow: none; }
body .section-heading,
body .kt-portlet .panel_s.section-heading { border-left: 0 !important; }
body .section-heading .section-text,
body .kt-portlet h4.bold,
body .kt-portlet .panel-body > h4 {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--bp-ink) !important;
  margin: 0 0 4px !important;
}
body .kt-portlet .panel_s.section-heading { margin-bottom: 16px !important; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body .btn {
  font-family: var(--bp-font);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--bp-radius-sm);
  padding: 8px 16px;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body .btn-sm { padding: 5px 11px; font-size: 12.5px; }
body .btn-lg { padding: 11px 22px; font-size: 15px; }
body .btn-primary, body .btn-info, body .btn-brand,
body .btn-primary:focus, body .btn-info:focus, body .btn-brand:focus {
  background: var(--bp-blue) !important;
  border-color: var(--bp-blue) !important;
  color: #fff !important;
}
body .btn-primary:hover, body .btn-info:hover, body .btn-brand:hover,
body .btn-primary:active, body .btn-info:active, body .btn-brand:active {
  background: var(--bp-blue-600) !important;
  border-color: var(--bp-blue-600) !important;
  color: #fff !important;
}
body .btn-success, body .btn-success:focus { background: var(--bp-green) !important; border-color: var(--bp-green) !important; color: #fff !important; }
body .btn-success:hover { background: #187a4c !important; border-color: #187a4c !important; }
body .btn-danger, body .btn-danger:focus { background: var(--bp-red) !important; border-color: var(--bp-red) !important; color: #fff !important; }
body .btn-danger:hover { background: #bf3737 !important; border-color: #bf3737 !important; }
body .btn-warning { background: #e0a020 !important; border-color: #e0a020 !important; color: #fff !important; }
body .btn-default, body .btn-secondary, body .btn-light {
  background: #fff !important;
  border: 1px solid var(--bp-line) !important;
  color: var(--bp-ink-2) !important;
}
body .btn-default:hover, body .btn-secondary:hover, body .btn-light:hover {
  background: var(--bp-bg) !important;
  border-color: #cfd7e2 !important;
  color: var(--bp-ink) !important;
}
body .btn.btn-pill { border-radius: var(--bp-radius-sm); }
body .btn:disabled, body .btn.disabled { opacity: .55; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
body .form-control,
body .bootstrap-select > .dropdown-toggle,
body select.form-control {
  height: 42px;
  padding: 9px 12px;
  font-family: var(--bp-font);
  font-size: 14px;
  color: var(--bp-ink) !important;
  background-color: #fff !important;
  border: 1px solid #d5dce6 !important;
  border-radius: var(--bp-radius-sm) !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body textarea.form-control { height: auto; min-height: 110px; }
body .form-control:focus,
body .bootstrap-select.open > .dropdown-toggle,
body .bootstrap-select > .dropdown-toggle:focus {
  border-color: var(--bp-blue) !important;
  box-shadow: 0 0 0 3px rgba(30, 116, 214, .15) !important;
  outline: 0 !important;
}
body .form-control::placeholder { color: #98a4b5; }
body label, body .control-label { font-size: 13px; font-weight: 600; color: var(--bp-ink-2); margin-bottom: 6px; }
body .input-group-addon, body .input-group-text {
  background: var(--bp-bg) !important;
  border-color: #d5dce6 !important;
  color: var(--bp-muted);
}
body .has-error .form-control { border-color: var(--bp-red) !important; }
body .text-danger, body p.text-danger { color: var(--bp-red) !important; }
body .bootstrap-select .dropdown-menu { border-radius: var(--bp-radius-sm); border-color: var(--bp-line); box-shadow: var(--bp-shadow-lg); }

/* --------------------------------------------------------------------------
   Tables & DataTables
   -------------------------------------------------------------------------- */
body .table { margin-bottom: 0; color: var(--bp-ink-2); font-size: 14px; }
body .table > thead > tr > th,
body .table thead th {
  padding: 12px 14px !important;
  background: #f7f9fc !important;
  border-top: 1px solid var(--bp-line-2) !important;
  border-bottom: 1px solid var(--bp-line) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--bp-muted) !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  vertical-align: middle !important;
}
body .table > thead > tr > th:first-child { border-top-left-radius: var(--bp-radius-sm); }
body .table > thead > tr > th:last-child { border-top-right-radius: var(--bp-radius-sm); }
body .table > tbody > tr > td,
body .table tbody td {
  padding: 14px 14px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--bp-line-2) !important;
  vertical-align: middle !important;
  font-size: 14px;
  color: var(--bp-ink-2);
}
body .table > tbody > tr:hover > td { background: #f9fbfe; }
body .table > tbody > tr:last-child > td { border-bottom: 0 !important; }
body .table tbody td a { font-weight: 600; color: var(--bp-blue); }
body .table-tickets tbody tr.text-danger td,
body .table-tickets tbody tr.text-danger td a { color: var(--bp-ink) !important; }
body .table-tickets tbody tr.text-danger td:first-child { box-shadow: inset 3px 0 0 var(--bp-blue); }

/* sorting arrows: subtle */
body table.dataTable thead .sorting::before, body table.dataTable thead .sorting::after,
body table.dataTable thead .sorting_asc::before, body table.dataTable thead .sorting_asc::after,
body table.dataTable thead .sorting_desc::before, body table.dataTable thead .sorting_desc::after { opacity: .25 !important; font-size: 10px !important; }
body table.dataTable thead .sorting_asc::before, body table.dataTable thead .sorting_desc::after { opacity: .8 !important; color: var(--bp-blue); }
body table.dataTable { border-collapse: separate !important; border-spacing: 0; margin-top: 8px !important; margin-bottom: 8px !important; }

body .dataTables_wrapper > .row { margin-left: 0 !important; margin-right: 0 !important; }
body .dataTables_wrapper > .row > [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter { margin: 0 0 12px !important; }
body div.dataTables_wrapper div.dataTables_length label {
  justify-content: flex-start !important; max-width: none !important; min-width: 0 !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  width: auto !important; margin: 0; font-weight: 500; color: var(--bp-muted);
  text-align: left !important; flex-wrap: nowrap; white-space: nowrap;
}
body .dataTables_wrapper .dataTables_paginate { float: right; }
body .dataTables_wrapper .dataTables_paginate .pagination { margin: 0; }
body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_length .bootstrap-select > .dropdown-toggle {
  height: 38px !important;
  min-width: 76px;
}
body .dataTables_wrapper .dataTables_filter { text-align: right; float: right; }
body .dataTables_wrapper .dataTables_filter label { width: auto !important; display: inline-flex; margin: 0; }
body .dataTables_wrapper .dataTables_filter .input-group,
body .dataTables_wrapper .dataTables_filter label { width: 280px !important; max-width: 100%; }
body .dataTables_wrapper .dataTables_filter input {
  width: 100% !important;
  height: 38px !important;
  margin-left: 0 !important;
}
body .dataTables_wrapper .dataTables_filter .input-group-addon {
  border-radius: var(--bp-radius-sm) 0 0 var(--bp-radius-sm) !important;
  border-right: 0 !important;
  background: #fff !important;
}
body .dataTables_wrapper .dataTables_filter .input-group-addon + input { border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0 !important; border-left: 0 !important; }
body .dataTables_wrapper .dataTables_info { padding-top: 16px !important; font-size: 13px; color: var(--bp-muted); }
body .dataTables_wrapper .dataTables_paginate { padding-top: 10px !important; }
body .dataTables_wrapper .pagination > li > a,
body .dataTables_wrapper .pagination > li > span,
body .dataTables_wrapper .page-link {
  min-width: 34px; height: 34px;
  margin: 0 2px !important;
  padding: 6px 10px !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: var(--bp-radius-sm) !important;
  background: #fff !important;
  color: var(--bp-ink-2) !important;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
body .dataTables_wrapper .pagination > .active > a,
body .dataTables_wrapper .pagination > .active > span,
body .dataTables_wrapper .page-item.active .page-link {
  background: var(--bp-blue) !important;
  border-color: var(--bp-blue) !important;
  color: #fff !important;
}
body .dataTables_wrapper .pagination > .disabled > a { opacity: .5; }
body .dataTables_empty { padding: 40px 14px !important; text-align: center; color: var(--bp-muted) !important; }
body .table-responsive { border: 0; }
body .dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   Status labels / badges (invoices, quotes, proposals, tickets...)
   -------------------------------------------------------------------------- */
body .label,
body .badge {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
body .label { border: 1px solid transparent; }
body .label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .9;
}
body .label-default, body .label.invoice-status-5, body .label.invoice-status-6,
body .label.estimate-status-1, body .label.proposal-status-6 {
  background: var(--bp-slate-50) !important; color: #556377 !important; border-color: #e0e5ec !important;
}
body .label-danger, body .label.invoice-status-1, body .label.invoice-status-4,
body .label.estimate-status-3, body .label.proposal-status-2 {
  background: var(--bp-red-50) !important; color: #b42d2d !important; border-color: #f7d4d4 !important;
}
body .label-success, body .label.invoice-status-2,
body .label.estimate-status-4, body .label.proposal-status-3 {
  background: var(--bp-green-50) !important; color: #17744a !important; border-color: #cbead9 !important;
}
body .label-warning, body .label.invoice-status-3, body .label.estimate-status-5 {
  background: var(--bp-amber-50) !important; color: #9a620a !important; border-color: #f4e1b7 !important;
}
body .label-info, body .label-primary, body .label.estimate-status-2,
body .label.proposal-status-4, body .label.proposal-status-1 {
  background: var(--bp-blue-50) !important; color: var(--bp-blue-600) !important; border-color: #cfe1f7 !important;
}
/* ticket status badges carry their own colour inline – keep it, just refine */
body .table-tickets .badge { color: #fff !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* --------------------------------------------------------------------------
   Invoice quick stats  (template_parts/invoices_stats.php)
   -------------------------------------------------------------------------- */
.bp-stats-wrap { width: 100%; flex: 1 1 100%; max-width: 100%; }
.bp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 991px) { .bp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bp-stats { grid-template-columns: 1fr; } }
.bp-stat {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px 18px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  text-decoration: none !important;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bp-stat:hover { border-color: #cbd6e4; box-shadow: var(--bp-shadow); }
.bp-stat__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--bp-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.bp-stat__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-stat, var(--bp-blue)); }
.bp-stat__value { font-size: 28px; font-weight: 700; color: var(--bp-ink); line-height: 1.15; letter-spacing: -0.02em; }
.bp-stat__of { font-size: 13px; font-weight: 500; color: var(--bp-muted); letter-spacing: 0; }
.bp-stat__bar { display: block; height: 5px; margin-top: 10px; border-radius: 999px; background: var(--bp-line-2); overflow: hidden; }
.bp-stat__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--bp-stat, var(--bp-blue)); }
.bp-stat--red { --bp-stat: var(--bp-red); }
.bp-stat--green { --bp-stat: var(--bp-green); }
.bp-stat--amber { --bp-stat: #e0a020; }
.bp-stat--blue { --bp-stat: var(--bp-blue); }
.bp-stat.is-active { border-color: var(--bp-stat); box-shadow: 0 0 0 3px rgba(30, 116, 214, .10); }

body .progress {
  height: 6px !important; margin: 0 !important; border-radius: 999px !important;
  background: var(--bp-line-2) !important; box-shadow: none !important; overflow: hidden;
}
body .progress .progress-bar { border-radius: 999px; box-shadow: none; font-size: 0 !important; color: transparent !important; }
body .progress-bar-danger { background: var(--bp-red) !important; }
body .progress-bar-success { background: var(--bp-green) !important; }
body .progress-bar-warning { background: #e0a020 !important; }
body .progress-bar-info { background: var(--bp-blue) !important; }

/* estimates stats share the same look */
body .estimates-stats > [class*="col-"] > .row {
  margin: 0 0 16px !important; padding: 16px 18px; background: #fff;
  border: 1px solid var(--bp-line); border-radius: var(--bp-radius);
}

/* --------------------------------------------------------------------------
   Ticket summary  (template_parts/tickets.php)
   -------------------------------------------------------------------------- */
body .section-tickets + .panel_s .panel-body > .row:first-child { display: flex; flex-wrap: wrap; margin: 0 -8px; }
body .section-tickets + .panel_s .panel-body > .row:first-child > .col-md-12 { flex: 1 1 100%; padding: 0 8px; }
body .section-tickets + .panel_s .panel-body > .row:first-child > .col-md-12 > hr { display: none; }
body .section-tickets + .panel_s .panel-body > .clearfix + hr { display: none; }
body .section-tickets .panel-body { display: flex; align-items: center; }
body .ticket-status.list-status {
  flex: 1 1 160px;
  max-width: none;
  padding: 0 8px !important;
  margin: 0 0 16px;
}
body .ticket-status.list-status > a {
  display: block;
  padding: 16px 18px;
  height: 100%;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body .ticket-status.list-status > a:hover { border-color: #cbd6e4; box-shadow: var(--bp-shadow); }
body .ticket-status.list-status > a.active { border-color: var(--bp-blue); box-shadow: 0 0 0 3px rgba(30, 116, 214, .12); }
body .ticket-status .ticket-status-heading {
  margin: 0 0 2px !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--bp-ink) !important;
  line-height: 1.2;
}
body .ticket-status.list-status span { font-size: 13px; font-weight: 600; }

/* ticket tiles used on the dashboard */
.bp-ticket-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin-bottom: 20px; }
.bp-tstat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: inset 3px 0 0 var(--bp-tstat, var(--bp-blue));
  text-decoration: none !important;
  transition: border-color .15s ease;
}
.bp-tstat:hover { border-color: #cbd6e4; }
.bp-tstat.is-active { border-color: var(--bp-tstat, var(--bp-blue)); }
.bp-tstat__value { font-size: 26px; font-weight: 700; color: var(--bp-ink); line-height: 1.2; letter-spacing: -0.02em; }
.bp-tstat__label { font-size: 13px; font-weight: 600; color: var(--bp-muted); }

/* --------------------------------------------------------------------------
   Home dashboard (views/home.php)
   -------------------------------------------------------------------------- */
.bp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 32px;
}
.bp-hero__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #7fd3e6; letter-spacing: .02em; }
.bp-hero__title { margin: 0 !important; font-size: 30px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: -0.02em; line-height: 1.2; }
.bp-hero__sub { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, .72); }
.bp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-btn-white, .bp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--bp-radius-sm);
  font-size: 14px; font-weight: 600;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease;
}
.bp-btn-white { background: #fff; color: var(--bp-navy) !important; border: 1px solid #fff; }
.bp-btn-white:hover { background: #eaf2fc; }
.bp-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border: 1px solid rgba(255, 255, 255, .24); }
.bp-btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.bp-btn-white svg, .bp-btn-ghost svg { width: 16px; height: 16px; }

.bp-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.bp-shortcut {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow);
  text-decoration: none !important;
  transition: border-color .15s ease, transform .15s ease;
}
.bp-shortcut:hover { border-color: #bcd2ee; transform: translateY(-1px); }
.bp-shortcut__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--bp-blue-50); color: var(--bp-blue);
}
.bp-shortcut__icon svg { width: 20px; height: 20px; }
.bp-shortcut--teal .bp-shortcut__icon { background: #e3f6f6; color: #058d8f; }
.bp-shortcut--sky .bp-shortcut__icon { background: #e2f4fc; color: #0089c4; }
.bp-shortcut--navy .bp-shortcut__icon { background: #e8ecf3; color: var(--bp-navy-2); }
.bp-shortcut__title { display: block; font-size: 14.5px; font-weight: 600; color: var(--bp-ink); }
.bp-shortcut__desc { display: block; font-size: 12.5px; color: var(--bp-muted); margin-top: 1px; }
@media (max-width: 991px) { .bp-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .bp-shortcuts { gap: 12px; }
  .bp-shortcut { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .bp-shortcut__desc { display: none; }
  .bp-hero { padding: 28px 0 24px; }
  .bp-hero__title { font-size: 24px !important; }
  .bp-hero__actions { width: 100%; }
  .bp-hero__actions a { flex: 1 1 auto; justify-content: center; }
}

.bp-card {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow);
}
.bp-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--bp-line-2);
}
.bp-card__title { margin: 0 !important; font-size: 16px !important; font-weight: 600 !important; color: var(--bp-ink) !important; }
.bp-card__sub { margin: 2px 0 0; font-size: 13px; color: var(--bp-muted); }
.bp-card__links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; font-weight: 600; }
.bp-card__body { padding: 24px; }
.bp-card__body .bp-stats { margin-bottom: 0; }
.bp-card .bp-currency { max-width: 280px; margin: 20px 0 0; }

/* --------------------------------------------------------------------------
   Alerts, tabs, misc
   -------------------------------------------------------------------------- */
body .alert {
  border-radius: var(--bp-radius-sm);
  border-width: 1px;
  font-size: 14px;
  padding: 12px 16px;
}
body .alert-success { background: var(--bp-green-50); border-color: #cbead9; color: #17603e; }
body .alert-danger { background: var(--bp-red-50); border-color: #f7d4d4; color: #9b2727; }
body .alert-warning { background: var(--bp-amber-50); border-color: #f4e1b7; color: #7d5108; }
body .alert-info { background: var(--bp-blue-50); border-color: #cfe1f7; color: #144f93; }

body .nav-tabs { border-bottom: 1px solid var(--bp-line); }
body .nav-tabs > li > a, body .nav-tabs .nav-link {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--bp-muted) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  background: transparent !important;
}
body .nav-tabs > li.active > a, body .nav-tabs .nav-link.active, body .nav-tabs > li > a:hover {
  color: var(--bp-blue) !important;
  border-bottom-color: var(--bp-blue) !important;
}

body .dropdown-menu { border-radius: var(--bp-radius-sm); border-color: var(--bp-line); box-shadow: var(--bp-shadow-lg); font-size: 13.5px; }

/* Knowledge base */
body .kb-search-jumbotron, body .kb-search { border-radius: var(--bp-radius); }
body .article_group_wrapper, body .kb-article-single { border-radius: var(--bp-radius); }

/* Ticket conversation */
body .ticket-thread, body .ticket-reply { border-radius: var(--bp-radius); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bp-footer {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--bp-line);
  font-size: 13.5px;
  color: var(--bp-muted);
}
.bp-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  padding: 40px 0 32px;
}
.bp-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bp-footer__brand img { width: 28px; height: 28px; }
.bp-footer__brand span { font-size: 16px; font-weight: 700; color: var(--bp-ink); }
.bp-footer h4 { margin: 0 0 14px !important; font-size: 12px !important; font-weight: 600 !important; color: var(--bp-ink) !important; text-transform: uppercase; letter-spacing: .08em; }
.bp-footer address { margin: 0; font-style: normal; line-height: 1.7; }
.bp-footer__links { list-style: none; margin: 0; padding: 0; }
.bp-footer__links li { margin-bottom: 8px; }
.bp-footer__links a { color: var(--bp-ink-2) !important; font-weight: 500; }
.bp-footer__links a:hover { color: var(--bp-blue) !important; }
.bp-footer__search { display: flex; gap: 8px; }
.bp-footer__search .form-control { flex: 1; height: 40px; }
.bp-footer__search .btn { height: 40px; }
.bp-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--bp-line-2);
  font-size: 12.5px;
}
.bp-footer__bottom a { color: var(--bp-muted) !important; margin-left: 16px; }
.bp-footer__bottom a:hover { color: var(--bp-blue) !important; }
@media (max-width: 767px) {
  .bp-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .bp-footer__bottom a { margin: 0 16px 0 0; }
}
/* hide the old Metronic footer if it is still output anywhere */
body:has(.bp-footer) #kt_footer { display: none !important; }

/* --------------------------------------------------------------------------
   Login / register / forgot password
   -------------------------------------------------------------------------- */
body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__head .kt-login__title {
  font-size: 22px; font-weight: 700; color: var(--bp-ink); letter-spacing: -0.01em;
}
body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__form .form-control {
  height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid #d5dce6 !important;
  border-radius: var(--bp-radius-sm) !important;
  background: #fff !important;
  font-size: 14.5px;
  color: var(--bp-ink);
}
body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__form .form-control:focus {
  border-color: var(--bp-blue) !important;
  box-shadow: 0 0 0 3px rgba(30, 116, 214, .15) !important;
}
body .kt-login .kt-login__extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px !important; }
body .kt-login .kt-login__extra .kt-checkbox { width: auto !important; margin: 0; font-weight: 500; color: var(--bp-ink-2); }
body .kt-login .kt-login__extra a { font-size: 13.5px; font-weight: 600; color: var(--bp-blue) !important; white-space: nowrap; }
body .kt-login .kt-login__actions { margin: 20px 0 !important; }
body .kt-login .kt-login__actions .btn,
body #kt_login_signin_submit {
  width: 100%;
  height: 46px;
  padding: 0 !important;
  border-radius: var(--bp-radius-sm) !important;
  background: var(--bp-blue) !important;
  border-color: var(--bp-blue) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
body .kt-login .kt-login__actions .btn:hover { background: var(--bp-blue-600) !important; }
body .kt-login .kt-login__account { font-size: 13.5px; }
body .kt-login .kt-login__account a { font-weight: 600; }
body .kt-login.kt-login--v6 .kt-login__form .form-control::placeholder { color: #8a96a8 !important; opacity: 1; }

/* ==========================================================================
   Document pages: invoice, quote, proposal, contract
   ========================================================================== */
.bp-header--doc .bp-header__inner { justify-content: space-between; }
.bp-backlink {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--bp-line); border-radius: var(--bp-radius-sm);
  font-size: 13.5px; font-weight: 600;
  color: var(--bp-ink-2) !important; text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease;
}
.bp-backlink:hover { background: var(--bp-bg); border-color: #cfd7e2; color: var(--bp-ink) !important; }
.bp-backlink svg { width: 16px; height: 16px; }

.bp-doc { padding-bottom: 24px; }
.bp-doc-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; padding: 36px 0 30px;
}
.bp-doc-hero__main { min-width: 0; }
.bp-doc-hero__titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bp-doc-hero__titlerow .bp-hero__title { word-break: break-word; }
.bp-doc-hero .bp-hero__sub strong { color: #fff; font-weight: 600; }
.bp-doc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bp-doc-hero__actions form { display: inline-flex; margin: 0; }
button.bp-btn-white, button.bp-btn-ghost { cursor: pointer; font-family: inherit; line-height: 1; }
.bp-btn-white i, .bp-btn-ghost i { font-size: 14px; }
.bp-btn-accept, button.bp-btn-accept { background: #1e8e5a !important; border-color: #1e8e5a !important; color: #fff !important; }
.bp-btn-accept:hover { background: #187a4c !important; border-color: #187a4c !important; }
.bp-doc-hero .label { font-size: 12.5px !important; }

/* the "paper" */
.bp-paper {
  margin-bottom: 24px;
  padding: 40px 48px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow);
  min-width: 0;
}
.bp-paper__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--bp-line-2);
}
.bp-paper__logo img { max-height: 56px; width: auto !important; max-width: 240px; }
.bp-paper__doctype { text-align: right; }
.bp-paper__doctype span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-muted); }
.bp-paper__doctype strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; color: var(--bp-ink); letter-spacing: -0.01em; }
.bp-paper__parties {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 280px);
  gap: 32px; margin-bottom: 32px;
}
.bp-label {
  margin: 0 0 6px !important;
  font-size: 11.5px !important; font-weight: 600 !important;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--bp-muted) !important;
}
.bp-party address, .bp-side address {
  margin: 0 0 14px; font-style: normal; line-height: 1.65; color: var(--bp-ink-2); font-size: 14px;
}
.bp-party address b, .bp-side address b { color: var(--bp-ink); }
.bp-meta {
  align-self: start;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0; padding: 16px 18px;
  background: var(--bp-bg); border-radius: 10px;
}
.bp-meta > div { display: flex; justify-content: space-between; gap: 16px; }
.bp-meta dt { font-size: 13px; font-weight: 500; color: var(--bp-muted); }
.bp-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--bp-ink); text-align: right; }
.bp-meta--stack { gap: 0; padding: 0; background: none; border-radius: 0; }
.bp-meta--stack > div { padding: 9px 0; border-bottom: 1px solid var(--bp-line-2); align-items: center; }
.bp-meta--stack > div:last-child { border-bottom: 0; }

.bp-items { margin: 0; border: 0; }
.bp-items .table > tbody > tr > td { vertical-align: top !important; }
.bp-items .table td .bold, .bp-items .table td strong { color: var(--bp-ink); font-weight: 600; }
.bp-items .table td span[style] { color: var(--bp-muted) !important; }

.bp-totals { display: flex; justify-content: flex-end; margin-top: 12px; }
.bp-totals .table { width: 100%; max-width: 380px; margin: 0; }
body .bp-totals .table > tbody > tr > td {
  padding: 8px 0 !important; border: 0 !important; background: none !important; font-size: 14px;
}
body .bp-totals .table > tbody > tr > td:first-child { text-align: left; color: var(--bp-muted); }
body .bp-totals .table > tbody > tr > td:last-child { text-align: right; font-weight: 600; color: var(--bp-ink); }
body .bp-totals .table > tbody > tr.bp-totals__total > td {
  padding-top: 12px !important; border-top: 1px solid var(--bp-line) !important;
  font-size: 16px; font-weight: 700; color: var(--bp-ink);
}
body .bp-totals .table > tbody > tr.bp-totals__due > td { padding: 10px 12px !important; background: var(--bp-bg) !important; font-weight: 700; }
body .bp-totals .table > tbody > tr.bp-totals__due > td:first-child { border-radius: 8px 0 0 8px; color: var(--bp-ink); }
body .bp-totals .table > tbody > tr.bp-totals__due > td:last-child { border-radius: 0 8px 8px 0; }
body .bp-totals .table > tbody > tr.bp-totals__due.is-outstanding > td { background: var(--bp-red-50) !important; color: #b42d2d !important; }
.bp-paper__words { margin: 8px 0 0; text-align: right; font-size: 13px; color: var(--bp-muted); }
.bp-paper__section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--bp-line-2); }
.bp-paper__text { color: var(--bp-ink-2); line-height: 1.7; }
.bp-files { list-style: none; margin: 0; padding: 0; }
.bp-files li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.bp-empty { margin: 0; color: var(--bp-muted); }

/* payment options */
.online-payment-radio {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; padding: 12px 14px;
  border: 1px solid var(--bp-line); border-radius: 10px;
}
.online-payment-radio:has(input:checked) { border-color: var(--bp-blue); background: var(--bp-blue-50); }
.online-payment-radio label { width: auto !important; margin: 0 !important; font-size: 14px; color: var(--bp-ink); cursor: pointer; }
.online-payment-radio input { margin: 0; accent-color: var(--bp-blue); }
.bp-paytotal { margin: 0 0 16px !important; font-size: 18px !important; font-weight: 700 !important; }
.bp-paymode { margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--bp-line); border-radius: 10px; }
.bp-paymode__name { margin: 0 0 4px; font-weight: 600; color: var(--bp-ink); }
.bp-paymode__desc { color: var(--bp-ink-2); font-size: 13.5px; line-height: 1.6; }
#bp-pay { scroll-margin-top: 90px; }

/* contract / proposal: content + sidebar */
.bp-doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bp-side { position: sticky; top: 88px; }
.bp-side .bp-card { margin-bottom: 0; }
body .bp-tabs { display: flex; gap: 4px; margin: 0; padding: 0 16px; border-bottom: 1px solid var(--bp-line-2); }
body .bp-tabs > li { float: none; margin-bottom: -1px; }
body .bp-tabs > li > a { padding: 14px 8px !important; margin-right: 8px; }
.bp-count {
  display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px;
  border-radius: 9px; background: var(--bp-blue-50); color: var(--bp-blue);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.bp-side__value { margin-bottom: 12px; padding: 14px 16px; background: var(--bp-blue-50); border-radius: 10px; }
.bp-side__value .bp-label { color: var(--bp-blue-600) !important; }
.bp-side__value strong { display: block; font-size: 22px; font-weight: 700; color: var(--bp-ink); letter-spacing: -0.01em; }
.bp-side__section { margin-top: 18px; }
.bp-comment-form { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bp-comment-form textarea { width: 100%; }
.bp-comments { margin-top: 12px; }
.bp-comment { padding: 12px 0; border-top: 1px solid var(--bp-line-2); }
.bp-comment__head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.bp-comment__head small { color: var(--bp-muted); margin-left: auto; }
.bp-comment__avatar, .bp-comment__head img { width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover; }
.bp-comment__body { margin-top: 6px; color: var(--bp-ink-2); font-size: 13.5px; line-height: 1.6; word-break: break-word; }

/* rich text (contract / proposal body) */
.bp-richtext { color: var(--bp-ink-2); font-size: 14.5px; line-height: 1.75; word-break: break-word; }
.bp-richtext h1, .bp-richtext h2, .bp-richtext h3, .bp-richtext h4 { color: var(--bp-ink); font-weight: 700; margin: 1.4em 0 .5em; line-height: 1.3; }
.bp-richtext h1 { font-size: 24px; }
.bp-richtext h2 { font-size: 20px; }
.bp-richtext h3 { font-size: 17px; }
.bp-richtext h4 { font-size: 15px; }
.bp-richtext > :first-child { margin-top: 0; }
.bp-richtext p { margin: 0 0 1em; }
.bp-richtext img { max-width: 100%; height: auto; border-radius: 6px; }
.bp-richtext ul, .bp-richtext ol { padding-left: 1.3em; margin: 0 0 1em; }

@media (max-width: 991px) {
  .bp-doc-grid { grid-template-columns: 1fr; }
  .bp-side { position: static; }
  .bp-paper__parties { grid-template-columns: 1fr 1fr; }
  .bp-paper__parties .bp-meta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bp-paper { padding: 24px 18px; }
  .bp-paper__head { flex-direction: column; }
  .bp-paper__doctype { text-align: left; }
  .bp-paper__parties { grid-template-columns: 1fr; gap: 20px; }
  .bp-doc-hero__actions { width: 100%; }
  .bp-doc-hero__actions > a, .bp-doc-hero__actions > button, .bp-doc-hero__actions form { flex: 1 1 auto; }
  .bp-doc-hero__actions form button { width: 100%; justify-content: center; }
  .bp-doc-hero__actions > a { justify-content: center; }
  .bp-backlink { padding: 0 10px; font-size: 13px; }
}

/* print: just the document */
@media print {
  .bp-header, .bp-footer, .bp-doc-hero__actions, .bp-side, #bp-pay, .invoice-html-payments { display: none !important; }
  body { background: #fff !important; }
  body:has(.bp-header) .bp-doc-hero::before { display: none !important; }
  .bp-doc-hero .bp-hero__title, .bp-doc-hero .bp-hero__sub, .bp-doc-hero .bp-hero__sub strong { color: #000 !important; }
  .bp-doc-grid { display: block; }
  .bp-paper { border: 0; box-shadow: none; padding: 0; }
}
.bp-richtext ul { list-style: disc !important; }
.bp-richtext ol { list-style: decimal !important; }
.bp-richtext li { display: list-item; margin-bottom: .3em; }
.bp-richtext table { width: 100%; margin: 0 0 1em; border-collapse: collapse; }
.bp-richtext table td, .bp-richtext table th { padding: 8px 10px; border: 1px solid var(--bp-line); }
@media (max-width: 991px) { .invoice-html-offline-payments { margin-top: 24px; } }

/* ==========================================================================
   Dropdowns (bootstrap-select): the plugin wraps the <select> in
   div.bootstrap-select.form-control and draws the box on the inner button.
   Only the button should have a border, and it must not be pushed down by
   metronic's ".dropdown-toggle { margin-top: 10px !important }".
   ========================================================================== */
body .bootstrap-select.form-control,
body .bootstrap-select.form-control:focus,
body .bootstrap-select.form-control.open {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .bootstrap-select > .dropdown-toggle,
body .bootstrap-select > .btn.dropdown-toggle {
  display: flex !important;
  align-items: center;
  width: 100%;
  margin: 0 !important;
  padding-right: 34px !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  text-align: left;
  color: var(--bp-ink) !important;
  background-color: #fff !important;
  outline: 0 !important;
}
body .bootstrap-select > .dropdown-toggle:hover { border-color: #b9c4d3 !important; background-color: #fff !important; }
body .bootstrap-select > .dropdown-toggle.bs-placeholder,
body .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option { color: #8a96a8 !important; }
body .bootstrap-select > .dropdown-toggle .filter-option { position: static; display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body .bootstrap-select > .dropdown-toggle .bs-caret { position: absolute; right: 14px; top: 50%; margin-top: -2px; color: var(--bp-muted); }
body .bootstrap-select > .dropdown-toggle::after { display: none !important; content: none !important; }
body .bootstrap-select .dropdown-menu { margin-top: 4px; padding: 4px; }
body .bootstrap-select .dropdown-menu li a { padding: 8px 10px; border-radius: 6px; font-size: 14px; }
body .bootstrap-select .dropdown-menu li.selected a,
body .bootstrap-select .dropdown-menu li a:hover { background: var(--bp-blue-50); color: var(--bp-blue-600); }
body .bootstrap-select .bs-searchbox { padding: 4px 4px 6px; }
body .bootstrap-select .bs-searchbox .form-control { height: 36px; }
/* DataTables "show 25" selector uses the same plugin */
body .dataTables_length .bootstrap-select > .dropdown-toggle { height: 38px !important; }

/* ==========================================================================
   Sign-in pages: login, forgot password, reset password
   ========================================================================== */
body:has(.bp-auth) { background: #fff !important; min-height: 100vh; }
.bp-auth {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(0, 1.15fr);
  min-height: 100vh;
}
.bp-auth__main {
  display: flex;
  flex-direction: column;
  padding: 40px 56px 28px;
  background: #fff;
}
.bp-auth__inner {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 32px 0;
}
.bp-auth__brand { margin-bottom: 44px; }
.bp-auth__brand img { width: 40px; height: 40px; }
.bp-auth__brand .bp-brand__name { font-size: 19px; }
.bp-auth__title {
  margin: 0 0 8px !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: var(--bp-ink) !important;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.bp-auth__sub { margin: 0 0 28px; font-size: 15px; line-height: 1.55; color: var(--bp-muted); }
.bp-auth__alerts:empty { display: none; }
.bp-auth .alert { margin-bottom: 20px; }

.bp-auth__form .form-group { margin-bottom: 18px; }
.bp-auth__form label,
.bp-auth__form .control-label {
  display: block;
  width: auto !important;
  margin: 0 0 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bp-ink-2);
}
body .bp-auth__form .form-control {
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 10px !important;
}
body .bp-auth__form .form-control::placeholder { color: #a3adbb !important; opacity: 1; }
.bp-auth__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bp-auth__labelrow a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.bp-auth__pw { position: relative; }
body .bp-auth__pw .form-control { padding-right: 46px; }
.bp-auth__pwtoggle {
  position: absolute;
  top: 50%; right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--bp-muted);
  cursor: pointer;
}
.bp-auth__pwtoggle:hover { background: var(--bp-line-2); color: var(--bp-ink); }
.bp-auth__pwtoggle.is-on { color: var(--bp-blue); }
.bp-auth__pwtoggle svg { width: 18px; height: 18px; }
.bp-auth__check {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  width: auto !important;
  margin: 2px 0 22px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--bp-ink-2) !important;
  cursor: pointer;
}
.bp-auth__check input { width: 17px; height: 17px; margin: 0; accent-color: var(--bp-blue); }
.bp-auth__captcha { margin: 0 0 20px; }
body .bp-auth__submit {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 16px rgba(30, 116, 214, .25) !important;
}
body .bp-auth__submit:hover { box-shadow: 0 8px 20px rgba(30, 116, 214, .32) !important; }
.bp-auth .text-danger { display: block; margin: 6px 0 0; font-size: 13px; }
.bp-auth__alt { margin: 26px 0 0; font-size: 14px; color: var(--bp-muted); text-align: center; }
.bp-auth__alt a { font-weight: 600; }
.bp-auth__legal { margin: 0; font-size: 12.5px; color: #98a4b5; text-align: center; }

/* brand panel */
.bp-auth__aside {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 64px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 100% 0, rgba(5, 170, 172, .30), transparent 65%),
    radial-gradient(800px 600px at 0 100%, rgba(30, 116, 214, .38), transparent 65%),
    linear-gradient(160deg, var(--bp-navy) 0%, var(--bp-navy-2) 100%);
}
.bp-auth__aside::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bp-blue) 0 40%, var(--bp-sky) 40% 70%, var(--bp-teal) 70% 100%);
}
.bp-auth__aside::after {
  /* faint grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  pointer-events: none;
}
.bp-auth__mark {
  position: absolute;
  top: 8%;
  right: -6%;
  width: min(46vw, 560px);
  height: auto;
  opacity: .13;
  pointer-events: none;
}
.bp-auth__pitch { position: relative; z-index: 1; max-width: 520px; }
.bp-auth__eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7fd3e6; }
.bp-auth__headline {
  margin: 0 0 36px !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  color: #fff !important;
}
.bp-auth__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bp-auth__features li { display: flex; align-items: flex-start; gap: 14px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.bp-auth__features strong { display: block; margin-bottom: 1px; font-size: 15px; font-weight: 600; color: #fff; }
.bp-auth__ficon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}
.bp-auth__ficon svg { width: 19px; height: 19px; }

@media (max-width: 1100px) {
  .bp-auth__aside { padding: 48px; }
  .bp-auth__headline { font-size: 30px !important; }
}
@media (max-width: 900px) {
  .bp-auth { grid-template-columns: 1fr; }
  .bp-auth__aside { display: none; }
  .bp-auth__main {
    position: relative;
    padding: 28px 20px 20px;
    background: linear-gradient(180deg, #f4f6fa 0, #fff 260px);
  }
  .bp-auth__main::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--bp-blue) 0 40%, var(--bp-sky) 40% 70%, var(--bp-teal) 70% 100%);
  }
  .bp-auth__brand { margin-bottom: 32px; }
  .bp-auth__title { font-size: 26px !important; }
}

/* alerts: metronic forces bright colours with !important */
body .alert { box-shadow: none !important; }
body .alert-success { background: var(--bp-green-50) !important; border-color: #cbead9 !important; color: #17603e !important; }
body .alert-danger { background: var(--bp-red-50) !important; border-color: #f7d4d4 !important; color: #9b2727 !important; }
body .alert-warning { background: var(--bp-amber-50) !important; border-color: #f4e1b7 !important; color: #7d5108 !important; }
body .alert-info { background: var(--bp-blue-50) !important; border-color: #cfe1f7 !important; color: #144f93 !important; }
body .alert a { color: inherit !important; text-decoration: underline; }
.bp-auth__brand .bp-brand__tag { display: block !important; }

/* ==========================================================================
   Register page (wide variant of the sign-in shell)
   ========================================================================== */
.bp-auth--wide { grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr); }
.bp-auth--wide .bp-auth__inner { max-width: 760px; }
.bp-auth--wide .bp-auth__aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 56px;
}
.bp-auth--wide .bp-auth__headline { font-size: 32px !important; }
.bp-auth--wide .bp-auth__mark { width: min(36vw, 460px); }
.bp-reg__section {
  margin: 0 0 22px;
  padding: 24px 24px 6px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: #fff;
}
.bp-reg__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--bp-ink) !important;
  letter-spacing: -0.01em;
}
.bp-reg__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(30, 116, 214, .1);
  color: var(--bp-blue);
  font-size: 13px;
  font-weight: 700;
}
.bp-reg__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.bp-reg__grid > .form-group { min-width: 0; }
.bp-reg__full { grid-column: 1 / -1; }
.bp-reg__full:not(:has(*)) { display: none; }
.bp-reg__opt { margin-left: 4px; font-size: 12px; font-weight: 500; color: #98a4b5; }
/* bootstrap-select country picker sized like the other inputs */
body .bp-auth__form .bootstrap-select > .dropdown-toggle {
  height: 46px;
  padding: 0 34px 0 14px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}
.bp-auth__form .register-terms-and-conditions-wrapper { margin: 4px 0 18px; }
.bp-auth__form .register-terms-and-conditions-wrapper .bp-auth__check { margin: 0 !important; align-items: flex-start; }
.bp-auth__form .register-terms-and-conditions-wrapper .bp-auth__check input { margin-top: 2px; }
@media (max-width: 1100px) {
  .bp-auth--wide { grid-template-columns: minmax(0, 1fr) 320px; }
  .bp-auth--wide .bp-auth__aside { padding: 40px 32px; }
  .bp-auth--wide .bp-auth__headline { font-size: 26px !important; }
}
@media (max-width: 900px) {
  .bp-auth--wide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bp-reg__grid { grid-template-columns: 1fr; }
  .bp-reg__section { padding: 20px 16px 4px; }
}

/* ==========================================================================
   Calendar (FullCalendar v5, views/calendar.php)
   ========================================================================== */
.bp-calendar-card .kt-portlet__body { padding: 22px 24px 26px !important; }
.bp-calendar__empty { margin: 0; padding: 32px 0; text-align: center; color: var(--bp-muted); }
.bp-calendar.fc {
  --fc-border-color: var(--bp-line);
  --fc-today-bg-color: rgba(30, 116, 214, .06);
  --fc-neutral-bg-color: #f7f9fc;
  --fc-page-bg-color: #fff;
  --fc-event-bg-color: var(--bp-blue);
  --fc-event-border-color: var(--bp-blue);
  --fc-now-indicator-color: #e5484d;
  font-family: inherit;
  font-size: 14px;
  color: var(--bp-ink);
}
.bp-calendar.fc .fc-toolbar { margin: 0 0 18px !important; padding: 0 !important; gap: 12px; flex-wrap: wrap; height: auto !important; }
.bp-calendar.fc .fc-toolbar-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  color: var(--bp-ink) !important;
}
.bp-calendar.fc .fc-button {
  height: 36px;
  padding: 0 14px !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--bp-ink-2) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.bp-calendar.fc .fc-button:hover { background: var(--bp-line-2) !important; color: var(--bp-ink) !important; }
.bp-calendar.fc .fc-button:focus { box-shadow: 0 0 0 3px rgba(30, 116, 214, .18) !important; }
.bp-calendar.fc .fc-button:disabled { color: #a3adbb !important; background: #fff !important; cursor: default; }
.bp-calendar.fc .fc-button-group { gap: 0; }
.bp-calendar.fc .fc-button-group > .fc-button { border-radius: 0 !important; margin-left: -1px !important; }
.bp-calendar.fc .fc-button-group > .fc-button:first-child { border-radius: 8px 0 0 8px !important; margin-left: 0 !important; }
.bp-calendar.fc .fc-button-group > .fc-button:last-child { border-radius: 0 8px 8px 0 !important; }
.bp-calendar.fc .fc-button-primary:not(:disabled).fc-button-active,
.bp-calendar.fc .fc-button-primary:not(:disabled):active {
  position: relative; z-index: 1;
  background: var(--bp-navy) !important;
  border-color: var(--bp-navy) !important;
  color: #fff !important;
}
.bp-calendar.fc .fc-today-button { margin-left: 8px !important; }
.bp-calendar.fc .fc-icon { font-size: 1.15em; }
.bp-calendar.fc .fc-scrollgrid { border-radius: 10px; overflow: hidden; }
.bp-calendar.fc .fc-col-header-cell { padding: 10px 0; background: #f7f9fc; }
.bp-calendar.fc .fc-col-header-cell-cushion {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--bp-muted) !important; text-decoration: none !important;
}
.bp-calendar.fc .fc-daygrid-day-number { padding: 8px 10px; font-size: 13px; font-weight: 500; color: var(--bp-ink-2) !important; text-decoration: none !important; }
.bp-calendar.fc .fc-day-other .fc-daygrid-day-number { color: #b3bccb !important; }
.bp-calendar.fc .fc-day-today .fc-daygrid-day-number {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; margin: 5px 6px; padding: 0 6px;
  border-radius: 13px; background: var(--bp-blue); color: #fff !important; font-weight: 700;
}
.bp-calendar.fc .fc-daygrid-day-frame { min-height: 104px; }
.bp-calendar.fc .fc-event {
  margin: 1px 4px 2px !important;
  padding: 2px 6px;
  border-radius: 6px !important;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: none !important;
}
.bp-calendar.fc .fc-h-event .fc-event-main,
.bp-calendar.fc .fc-h-event .fc-event-title,
.bp-calendar.fc .fc-v-event .fc-event-main { color: #fff; }
.bp-calendar.fc .fc-daygrid-dot-event { border: 0 !important; color: var(--bp-ink) !important; background: transparent !important; }
.bp-calendar.fc .fc-daygrid-dot-event .fc-event-title { color: var(--bp-ink); font-weight: 500; }
.bp-calendar.fc .fc-daygrid-dot-event .fc-event-time { color: var(--bp-muted); font-weight: 500; }
.bp-calendar.fc .fc-daygrid-dot-event:hover { background: var(--bp-line-2); }
.bp-calendar.fc .fc-daygrid-more-link { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--bp-blue) !important; }
.bp-calendar.fc .fc-timegrid-slot { height: 2.6em; }
.bp-calendar.fc .fc-timegrid-slot-label-cushion,
.bp-calendar.fc .fc-timegrid-axis-cushion { font-size: 12px; color: var(--bp-muted); }
.bp-calendar.fc .fc-list { border-radius: 10px; overflow: hidden; }
.bp-calendar.fc .fc-list-day-cushion { background: #f7f9fc !important; }
.bp-calendar.fc .fc-list-day-text,
.bp-calendar.fc .fc-list-day-side-text { color: var(--bp-ink) !important; font-weight: 600; text-decoration: none !important; }
.bp-calendar.fc .fc-list-event:hover td { background: var(--bp-line-2) !important; }
.bp-calendar.fc .fc-list-empty { background: #fff; color: var(--bp-muted); }
.bp-calendar.fc .fc-popover { border: 1px solid var(--bp-line); border-radius: 10px; box-shadow: var(--bp-shadow-lg); overflow: hidden; }
.bp-calendar.fc .fc-popover-header { padding: 8px 12px; background: #f7f9fc; font-weight: 600; }
@media (max-width: 760px) {
  .bp-calendar-card .kt-portlet__body { padding: 16px 12px 18px !important; }
  .bp-calendar.fc .fc-header-toolbar { flex-direction: column; align-items: stretch; }
  .bp-calendar.fc .fc-toolbar-chunk { display: flex; justify-content: center; }
  .bp-calendar.fc .fc-toolbar-title { font-size: 18px !important; text-align: center; }
  .bp-calendar.fc .fc-daygrid-day-frame { min-height: 72px; }
  .bp-calendar.fc .fc-button { padding: 0 10px !important; }
}
