.brand-logo-full{max-height:42px;width:auto}.login-logo{max-width:360px;width:100%;height:auto}.sidebar-logo-wrap{display:flex;align-items:center;justify-content:center;padding:.25rem 0}.table thead th{white-space:nowrap}.monitor-page-title{font-size:1.4rem;font-weight:700}.country-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.25rem .65rem;background:rgba(45,46,168,.08);color:#2d2ea8;font-size:.8rem;font-weight:600;margin:.15rem}.status-active{color:#198754;font-weight:700}.status-expired{color:#dc3545;font-weight:700}.monitor-card-stat .value{font-size:2rem;font-weight:800}.monitor-filter-card,.monitor-table-card{border-radius:1rem}.monitor-login-page{background:linear-gradient(135deg,#f5f7ff 0%, #eef2ff 100%)}.company-logo-preview{max-height:48px;max-width:140px;width:auto}.main-wrapper{padding-top:78px}.sidebar{top:61px;height:calc(100vh - 61px)}

/* Fixed sidebar/topbar layout */
html, body { overflow-x: hidden !important; }

#topbar.topbar{
  height: 64px !important;
  left: 260px !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 1040 !important;
  background: #fff !important;
  transition: left .25s ease !important;
}

#sidebar.sidebar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 260px !important;
  height: 100vh !important;
  z-index: 1045 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff !important;
  border-right: 1px solid #e9ecef !important;
  transition: width .25s ease, transform .25s ease !important;
}

#sidebar .sidebar-header{
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .75rem 1rem !important;
}

.brand-logo-full{
  max-width: 170px !important;
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

#sidebar .sidebar-body{
  padding: 1rem !important;
}

#sidebar .nav-link{
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  padding: .7rem .9rem !important;
}

.main-wrapper{
  margin-left: 260px !important;
  padding-top: 84px !important;
  min-height: 100vh !important;
  transition: margin-left .25s ease !important;
}

body.mr-collapsed #sidebar{
  width: 88px !important;
}

body.mr-collapsed #topbar{
  left: 88px !important;
}

body.mr-collapsed .main-wrapper{
  margin-left: 88px !important;
}

body.mr-collapsed #sidebar .nav-link{
  justify-content: center !important;
  font-size: 0 !important;
  padding-left: .5rem !important;
  padding-right: .5rem !important;
}

body.mr-collapsed #sidebar .nav-link i{
  font-size: 1rem !important;
  margin: 0 !important;
}

body.mr-collapsed .brand-logo-full{
  max-width: 42px !important;
  max-height: 42px !important;
}

#overlay.overlay{
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,23,42,.45) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .2s ease !important;
  z-index: 1044 !important;
}

@media (max-width: 991.98px){
  #topbar.topbar{
    left: 0 !important;
  }
  #sidebar.sidebar{
    transform: translateX(-100%) !important;
    width: 280px !important;
  }
  body.mr-mobile-open #sidebar.sidebar{
    transform: translateX(0) !important;
  }
  body.mr-mobile-open #overlay.overlay{
    opacity: 1 !important;
    visibility: visible !important;
  }
  .main-wrapper{
    margin-left: 0 !important;
  }
  body.mr-collapsed .main-wrapper{
    margin-left: 0 !important;
  }
  body.mr-collapsed #topbar{
    left: 0 !important;
  }
}

/* neutralize previous broken offsets */
.sidebar{ top: 0 !important; height: 100vh !important; }


/* v2 hard layout reset */
body{margin:0 !important;}
#sidebar, #topbar, .main-wrapper{box-sizing:border-box !important;}

#sidebar{
  position:fixed !important;
  inset:0 auto 0 0 !important;
  width:260px !important;
  min-width:260px !important;
  max-width:260px !important;
  height:100vh !important;
  top:0 !important;
  left:0 !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  z-index:2000 !important;
  background:#fff !important;
}

#sidebar .sidebar-inner{
  min-height:100vh !important;
}

#topbar{
  position:fixed !important;
  top:0 !important;
  left:260px !important;
  width:calc(100% - 260px) !important;
  height:64px !important;
  margin:0 !important;
  z-index:1900 !important;
  background:#fff !important;
}

.main-wrapper{
  position:relative !important;
  width:calc(100% - 260px) !important;
  margin-left:260px !important;
  margin-top:0 !important;
  padding-top:84px !important;
  padding-left:0 !important;
  padding-right:0 !important;
  min-height:100vh !important;
  z-index:1 !important;
}

.main-wrapper .container-fluid{
  width:100% !important;
  max-width:none !important;
}

#sidebar .sidebar-header{
  width:100% !important;
}

#sidebar .nav{
  margin:0 !important;
  padding:0 !important;
}

#sidebar .nav li{
  list-style:none !important;
}

#sidebar .nav-link span{
  display:inline !important;
}

body.mr-collapsed #sidebar{
  width:88px !important;
  min-width:88px !important;
  max-width:88px !important;
}

body.mr-collapsed #topbar{
  left:88px !important;
  width:calc(100% - 88px) !important;
}

body.mr-collapsed .main-wrapper{
  width:calc(100% - 88px) !important;
  margin-left:88px !important;
}

body.mr-collapsed #sidebar .nav-link span{
  display:none !important;
}

body.mr-collapsed #sidebar .nav-link{
  justify-content:center !important;
}

body.mr-collapsed #sidebar .brand-logo-full{
  max-width:44px !important;
}

@media (max-width: 991.98px){
  #sidebar{
    transform:translateX(-100%) !important;
    width:280px !important;
    min-width:280px !important;
    max-width:280px !important;
  }
  body.mr-mobile-open #sidebar{
    transform:translateX(0) !important;
  }
  #topbar{
    left:0 !important;
    width:100% !important;
  }
  .main-wrapper{
    width:100% !important;
    margin-left:0 !important;
  }
  body.mr-collapsed #topbar{
    left:0 !important;
    width:100% !important;
  }
  body.mr-collapsed .main-wrapper{
    width:100% !important;
    margin-left:0 !important;
  }
}


/* --- monitor radio v3 --- */
html, body { overflow-x: hidden !important; }
body { background: #f7f8fb !important; }

#sidebar {
  position: fixed !important;
  top: 0 !important; left: 0 !important; bottom: 0 !important;
  width: 250px !important;
  background: #fff !important;
  z-index: 1040 !important;
  border-right: 1px solid #eceef3 !important;
  overflow-y: auto !important;
  transition: width .22s ease, transform .22s ease !important;
}
#topbar {
  position: fixed !important;
  top: 0 !important; left: 250px !important; right: 0 !important;
  height: 72px !important;
  background: #fff !important;
  z-index: 1030 !important;
  border-bottom: 1px solid #eceef3 !important;
  transition: left .22s ease !important;
}
.main-wrapper {
  margin-left: 250px !important;
  padding-top: 96px !important;
  min-height: 100vh !important;
  transition: margin-left .22s ease !important;
}
.sidebar-header {
  min-height: 82px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.sidebar-logo-wrap { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; }
.brand-logo-full { max-width: 165px !important; max-height: 42px !important; width:auto !important; height:auto !important; display:block !important; object-fit:contain !important; }
.brand-logo-mini { display:none; max-width:40px; max-height:40px; width:auto; height:auto; object-fit:contain; }
#sidebar .nav-link {
  display:flex !important; align-items:center !important;
  gap:.55rem;
  min-height: 44px !important;
  margin-bottom: .2rem;
  padding: .75rem .95rem !important;
  border-radius: 12px !important;
  font-weight: 500;
  color: #2d2f35 !important;
}
#sidebar .nav-link:hover, #sidebar .nav-link.active {
  background: rgba(45,46,168,.08) !important;
  color: #2d2ea8 !important;
}
#sidebar .nav-link i { font-size: 1.12rem; }

body.mr-collapsed #sidebar { width: 88px !important; }
body.mr-collapsed #topbar { left: 88px !important; }
body.mr-collapsed .main-wrapper { margin-left: 88px !important; }
body.mr-collapsed .brand-logo-full { display:none !important; }
body.mr-collapsed .brand-logo-mini { display:block !important; }
body.mr-collapsed #sidebar .nav-link span { display:none !important; }
body.mr-collapsed #sidebar .nav-link { justify-content:center !important; padding-left:.5rem !important; padding-right:.5rem !important; }

#overlay {
  position: fixed !important; inset:0 !important; background: rgba(17,24,39,.45) !important;
  opacity:0; visibility:hidden; transition:opacity .2s ease !important; z-index:1035 !important;
}
body.mr-mobile-open #overlay { opacity:1; visibility:visible; }

.login-logo { max-width: 360px; width:100%; height:auto; }
.company-logo-preview { max-height: 52px; max-width: 150px; }
.country-badge { display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .65rem; background:rgba(45,46,168,.08); color:#2d2ea8; border-radius:999px; font-size:.82rem; font-weight:600; margin:.15rem; }
.status-active { color:#198754; font-weight:700; }
.status-expired { color:#dc3545; font-weight:700; }
.monitor-card-stat .value { font-size:2rem; font-weight:800; }
.table-search { min-width: 240px; }
.sortable-table th[data-sort] { cursor:pointer; user-select:none; }
.sortable-table th[data-sort]:after { content:" ↕"; font-size:.8em; color:#a0a4ab; }

@media (max-width: 991.98px){
  #sidebar { transform: translateX(-100%) !important; width: 280px !important; }
  body.mr-mobile-open #sidebar { transform: translateX(0) !important; }
  #topbar { left: 0 !important; }
  .main-wrapper { margin-left: 0 !important; }
  body.mr-collapsed #topbar { left: 0 !important; }
  body.mr-collapsed .main-wrapper { margin-left: 0 !important; }
}

/* v5 enhancements */
.topbar-user-wrap{display:flex;align-items:center;gap:.75rem}
.topbar-avatar,.table-avatar,.avatar-preview img{
  width:40px;height:40px;border-radius:999px;object-fit:cover;display:block;
}
.topbar-avatar-fallback,.table-avatar-fallback,.avatar-preview span{
  width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#eef1fe;color:#2d2ea8;font-weight:700;
}
.avatar-preview{
  width:76px;height:76px;border-radius:999px;overflow:hidden;border:2px solid #e8ebf4;background:#f8f9fc;display:flex;align-items:center;justify-content:center;
}
.avatar-preview-lg{width:96px;height:96px}
.table-avatar{width:32px;height:32px}
.table-avatar-fallback{width:32px;height:32px;font-size:.9rem}
.logo-preview-box{
  min-height:72px;border:1px dashed #d9deeb;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#fafbfe;padding:.5rem;
}
.logo-preview-box img{max-width:100%;max-height:56px;object-fit:contain}
.section-label{
  font-size:.9rem;font-weight:700;color:#6c757d;text-transform:uppercase;letter-spacing:.04em;padding-top:.5rem;
}
.sortable-table th.sorted-asc:after{content:" ↑";color:#2d2ea8}
.sortable-table th.sorted-desc:after{content:" ↓";color:#2d2ea8}


.form-select option { font-family: Arial, sans-serif; }
.topbar-user-wrap{display:flex;align-items:center;gap:.65rem}
.topbar-avatar{width:40px;height:40px;border-radius:999px;object-fit:cover;object-position:50% 50%;display:block;border:2px solid #eceef5}
.topbar-avatar-fallback{width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#eef1fe;color:#2d2ea8;font-weight:700;border:2px solid #eceef5}
.avatar-preview img{width:100% !important;height:100% !important;object-fit:cover !important;object-position:50% 50%}
.logo-preview-box img{width:100%;height:70px;object-fit:contain;object-position:50% 50%}
.table-search{min-width:260px}
.form-range{width:100%}


.warm-filter-shell{
  border: 1px solid #ebe8f2;
  box-shadow: 0 8px 28px rgba(24, 32, 56, .05);
}
.filter-input-wrap{
  position: relative;
}
.filter-leading-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#6e6a79;
  z-index:2;
  pointer-events:none;
}
.filter-select,
.filter-date-input{
  padding-left:44px !important;
  min-height:52px;
  border-radius:14px !important;
  border-color:#ddd7e7 !important;
  background-color:#fff !important;
}
.filter-primary-btn{
  min-height:52px;
  border-radius:14px !important;
  font-weight:700;
}
.table-search{
  min-width: 280px;
}
@media (max-width: 991.98px){
  .table-search{min-width: 100%;}
}


/* WARM-like enhanced selects */
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control{
  min-height:52px;
  border-radius:18px !important;
  border:1px solid #ddd7e7 !important;
  box-shadow:none !important;
  padding:10px 14px !important;
  background:#fff !important;
}
.ts-wrapper.focus .ts-control{
  border-color:#d86d43 !important;
  box-shadow:0 0 0 4px rgba(216,109,67,.12) !important;
}
.ts-wrapper .ts-control > input{
  font-size:16px !important;
}
.ts-dropdown{
  border-radius:22px !important;
  border:1px solid #e0d6e8 !important;
  box-shadow:0 14px 35px rgba(41, 23, 56, .18) !important;
  padding:14px !important;
}
.ts-dropdown .option,
.ts-dropdown .active{
  border-radius:16px !important;
  padding:12px 14px !important;
}
.warm-option-row{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:16px;
}
.warm-glyph{
  font-size:22px;
  color:#847189;
  width:24px;
  text-align:center;
}
.warm-flag{
  font-size:20px;
  border-radius:4px;
}
.ts-dropdown [data-selectable].active,
.ts-dropdown .option.active{
  background:rgba(216,109,67,.14) !important;
  color:#2c2430 !important;
}
.ts-dropdown .create,
.ts-dropdown .no-results{
  padding:12px 14px;
  color:#7b7481;
}
.filter-primary-btn{
  min-height:52px;
  border-radius:18px !important;
}


/* final warm-style fix */
.warm-filter-shell{
  border:1px solid #ece7f3 !important;
  box-shadow:none !important;
}
.warm-filter-shell .card-body{
  padding:18px 20px !important;
}
.warm-date-wrap{
  position:relative;
}
.warm-date-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#8b7c95;
  font-size:18px;
  pointer-events:none;
}
.warm-date-input{
  min-height:54px !important;
  padding-left:42px !important;
  border-radius:18px !important;
  border:1px solid #ddd7e7 !important;
  box-shadow:none !important;
  background:#fff !important;
}
.ts-wrapper{
  width:100%;
}
.ts-wrapper.single .ts-control{
  min-height:54px !important;
  border-radius:18px !important;
  border:1px solid #ddd7e7 !important;
  box-shadow:none !important;
  background:#fff !important;
  padding:9px 14px !important;
}
.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.focus .ts-control{
  border-color:#d86d43 !important;
  box-shadow:0 0 0 4px rgba(216,109,67,.10) !important;
}
.ts-wrapper.single .ts-control:after{
  border-color:#5c5565 transparent transparent transparent !important;
  right:16px !important;
}
.ts-wrapper.single.dropdown-active .ts-control:after{
  border-color:transparent transparent #5c5565 transparent !important;
}
.ts-control .item{
  width:100%;
}
.ts-dropdown{
  border:1px solid #ebe4f2 !important;
  border-radius:20px !important;
  box-shadow:0 14px 32px rgba(31, 26, 39, .12) !important;
  padding:10px !important;
  overflow:hidden !important;
}
.ts-dropdown .dropdown-input{
  min-height:48px !important;
  border-radius:16px !important;
  border:1px solid #e4deea !important;
  padding:10px 14px !important;
  margin-bottom:10px !important;
}
.ts-dropdown .option{
  border-radius:16px !important;
  padding:12px 14px !important;
}
.ts-dropdown .option.active{
  background:rgba(216,109,67,.12) !important;
}
.warm-option-row{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:16px;
  line-height:1.2;
}
.ts-flag-img,
.country-flag-img{
  width:22px;
  height:16px;
  object-fit:cover;
  border-radius:3px;
  flex:0 0 auto;
  box-shadow:0 0 0 1px rgba(0,0,0,.06);
}
.ts-leading-icon{
  font-size:20px;
  width:22px;
  color:#8b7c95;
  flex:0 0 auto;
}
.country-inline-label{
  margin-left:8px;
}


/* border/date cleanup */
.warm-filter-shell .row.g-3 > [class*="col-"]{
  display:flex;
  flex-direction:column;
}
.warm-filter-shell .form-label{
  margin-bottom:10px !important;
  font-weight:600;
}
.warm-filter-shell .ts-wrapper,
.warm-filter-shell .warm-date-wrap{
  width:100%;
}
.warm-filter-shell .ts-wrapper.single{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control{
  min-height:62px !important;
  height:62px !important;
  border-radius:18px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:0 48px 0 16px !important;
  display:flex !important;
  align-items:center !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control > *{
  align-self:center !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control .item{
  display:flex !important;
  align-items:center !important;
  line-height:1.2 !important;
  padding:0 !important;
  margin:0 !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control input{
  margin:0 !important;
  padding:0 !important;
  line-height:1.2 !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control:after{
  right:18px !important;
  margin-top:-3px !important;
}
.warm-filter-shell .warm-date-wrap{
  position:relative !important;
  height:62px !important;
}
.warm-filter-shell .warm-date-input{
  min-height:62px !important;
  height:62px !important;
  border-radius:18px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:0 16px 0 48px !important;
  line-height:60px !important;
}
.warm-filter-shell .warm-date-icon{
  left:16px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  line-height:1 !important;
}
.warm-filter-shell .filter-primary-btn{
  min-height:62px !important;
  height:62px !important;
  margin-top:0 !important;
  border-radius:18px !important;
}
.warm-filter-shell .ts-dropdown{
  margin-top:8px !important;
}
.warm-filter-shell .warm-option-row{
  min-height:28px;
}


/* filter alignment + size tuning */
.warm-filter-shell{
  border-radius: 16px !important;
}
.warm-filter-shell .card-body{
  padding: 14px 16px !important;
}
.warm-filter-shell .row.g-3{
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: .85rem !important;
}
.warm-filter-shell .row.g-3 > [class*="col-"]{
  padding-left: .5rem !important;
  padding-right: .5rem !important;
}
.warm-filter-shell .form-label{
  margin-bottom: 8px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding-left: 2px !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control,
.warm-filter-shell .warm-date-wrap,
.warm-filter-shell .warm-date-input,
.warm-filter-shell .filter-primary-btn{
  min-height: 54px !important;
  height: 54px !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control{
  padding: 0 42px 0 14px !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control .item{
  font-size: 16px !important;
}
.warm-filter-shell .warm-date-wrap{
  display:flex !important;
  align-items:center !important;
}
.warm-filter-shell .warm-date-input{
  padding: 0 14px 0 42px !important;
  line-height: normal !important;
}
.warm-filter-shell .warm-date-icon{
  left: 14px !important;
  font-size: 18px !important;
}
.warm-filter-shell .filter-primary-btn{
  border-radius: 16px !important;
  font-size: 16px !important;
  align-self: end !important;
}
.warm-filter-shell .ts-wrapper.single{
  margin: 0 !important;
}
.warm-filter-shell .filter-primary-btn{
  margin-top: 0 !important;
}

/* Flatpickr look closer to filters */
.flatpickr-calendar{
  border: 1px solid #ddd7e7 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 32px rgba(31,26,39,.12) !important;
  font-family: inherit !important;
}
.flatpickr-months,
.flatpickr-current-month{
  background: #fff !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  background: #d86d43 !important;
  border-color: #d86d43 !important;
}
.flatpickr-day:hover{
  background: rgba(216,109,67,.12) !important;
}


/* final alignment fix */
.warm-filter-shell form.warm-filter-row{
  align-items:flex-start !important;
}
.warm-filter-shell .warm-filter-action{
  display:flex !important;
  align-items:flex-end !important;
}
.warm-filter-shell .ts-wrapper,
.warm-filter-shell .warm-date-wrap{
  margin-left:0 !important;
  margin-right:0 !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control,
.warm-filter-shell .warm-date-input{
  width:100% !important;
}
.warm-filter-shell .ts-wrapper.single .ts-control{
  padding-left:12px !important;
}
.warm-filter-shell .warm-option-row{
  margin-left:0 !important;
}


/* final micro alignment tweak */
.warm-filter-shell .form-label{
  padding-left: 16px !important;
}
.warm-filter-shell .flatpickr-wrapper{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
.warm-filter-shell .flatpickr-wrapper .warm-date-input{
  display:block !important;
  width:100% !important;
  min-height:54px !important;
  height:54px !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
.warm-filter-shell .warm-date-wrap{
  margin-top: 2px !important;
}


/* date columns final alignment */
.warm-filter-shell .warm-date-col{
  display:flex !important;
  flex-direction:column !important;
}
.warm-filter-shell .warm-date-col .form-label{
  padding-left:2px !important;
}
.warm-filter-shell .warm-date-col .warm-date-wrap{
  margin-top:8px !important;
}


/* detections filter row with button on same line */
@media (min-width: 1200px){
  #detectionsFilterForm{
    display:grid !important;
    grid-template-columns: 1.2fr 1.2fr .9fr .8fr .8fr .8fr;
    gap: 16px;
    align-items:end;
  }
  #detectionsFilterForm > .col-xl-3,
  #detectionsFilterForm > .col-xl-2,
  #detectionsFilterForm > .col-md-4,
  #detectionsFilterForm > .col-md-6{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

/* searchable assignment form */
.assignment-country-select + .ts-wrapper .ts-control{
  min-height: 52px !important;
}
.ts-wrapper.multi .ts-control{
  min-height: 52px !important;
  border-radius: 16px !important;
  border:1px solid #ddd7e7 !important;
  box-shadow:none !important;
  padding:10px 12px !important;
}
.ts-wrapper.multi.focus .ts-control{
  border-color:#d86d43 !important;
  box-shadow:0 0 0 4px rgba(216,109,67,.10) !important;
}
.ts-wrapper.multi .ts-control > div{
  background:rgba(216,109,67,.12) !important;
  color:#3a2d35 !important;
  border-radius:999px !important;
  padding:4px 10px !important;
}

/* final stable UI fixes */
select.warm-select,
select.warm-multiselect-country{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.ts-wrapper.form-select,
.ts-wrapper.form-control,
.card .ts-wrapper.form-select,
.card .ts-wrapper.form-control,
.warm-filter-shell .ts-wrapper.form-select,
.warm-filter-shell .ts-wrapper.form-control{
  display:block !important;
  width:100% !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.card .ts-wrapper.single .ts-control,
.warm-filter-shell .ts-wrapper.single .ts-control{
  min-height:52px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
}
.card .ts-wrapper.focus .ts-control,
.warm-filter-shell .ts-wrapper.focus .ts-control{
  border-color:#d86d43 !important;
  box-shadow:0 0 0 4px rgba(216,109,67,.10) !important;
}
.ts-flag-img,
.country-flag-img{
  width:22px !important;
  height:16px !important;
  object-fit:cover !important;
  border-radius:3px !important;
  flex:0 0 auto !important;
}
.warm-option-row{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.assignment-country-select + .ts-wrapper{
  width:100% !important;
}
.assignment-country-select + .ts-wrapper .ts-control{
  min-height:54px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:10px 12px !important;
}
.assignment-country-select + .ts-wrapper.focus .ts-control{
  border-color:#d86d43 !important;
  box-shadow:0 0 0 4px rgba(216,109,67,.10) !important;
}
.assignment-country-select + .ts-wrapper .ts-control > div{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  background:rgba(216,109,67,.12) !important;
  border-radius:999px !important;
  padding:4px 10px !important;
  margin:2px 6px 2px 0 !important;
}
.assignment-country-select + .ts-wrapper .ts-control input{
  min-width:120px !important;
}
.warm-date-col .warm-date-wrap{
  position:relative !important;
}
.warm-date-col .warm-date-input{
  min-height:52px !important;
  height:52px !important;
  padding-left:42px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
}
.warm-date-col .warm-date-icon{
  position:absolute !important;
  left:14px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  color:#8b7c95 !important;
}
.warm-filter-shell .card-body{
  padding:16px 18px !important;
}
.warm-filter-shell .row.g-3{
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: .85rem !important;
}
.warm-filter-shell .form-label{
  margin-bottom:8px !important;
}
@media (min-width:1200px){
  #detectionsFilterForm{
    display:grid !important;
    grid-template-columns: 1.15fr 1.15fr .8fr .85fr .85fr .75fr;
    gap:16px;
    align-items:end;
  }
  #detectionsFilterForm > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  #detectionsFilterForm .filter-primary-btn{
    min-height:52px !important;
    margin-top:0 !important;
  }
  .ranking-filter-form{
    display:grid !important;
    grid-template-columns: 1.4fr 1fr 1fr .8fr;
    gap:16px;
    align-items:end;
  }
  .ranking-filter-form > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .ranking-filter-form .filter-primary-btn{
    min-height:52px !important;
    margin-top:0 !important;
  }
}


/* unified filter/form layout fixes */
.warm-filter-shell .card-body{
  padding: 18px 20px !important;
}
.warm-filter-shell .warm-filter-row{
  row-gap: 16px !important;
  column-gap: 16px !important;
}
.warm-filter-shell .form-label{
  margin-bottom: 8px !important;
  padding-left: 2px !important;
}

@media (min-width:1200px){
  #detectionsFilterForm{
    display:grid !important;
    grid-template-columns: 1.25fr 1.25fr .9fr .85fr .85fr .7fr !important;
    gap:16px !important;
    align-items:end !important;
  }
  #detectionsFilterForm > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .ranking-filter-form{
    display:grid !important;
    grid-template-columns: 1.45fr 1fr 1fr .7fr !important;
    gap:16px !important;
    align-items:end !important;
  }
  .ranking-filter-form > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

/* remove grey outer wrappers from TomSelect everywhere */
select.warm-select,
select.warm-multiselect-country{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.ts-wrapper.form-select,
.ts-wrapper.form-control,
.warm-filter-shell .ts-wrapper,
.card .ts-wrapper{
  display:block !important;
  width:100% !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.ts-wrapper.single .ts-control,
.card .ts-wrapper.single .ts-control,
.warm-filter-shell .ts-wrapper.single .ts-control{
  min-height:52px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:0 42px 0 14px !important;
  display:flex !important;
  align-items:center !important;
}
.ts-wrapper.single .ts-control .item{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.ts-wrapper.focus .ts-control{
  border-color:#d86d43 !important;
  box-shadow:0 0 0 4px rgba(216,109,67,.10) !important;
}
.ts-wrapper .ts-control:after{
  right:16px !important;
}
.ts-flag-img,
.country-flag-img{
  width:22px !important;
  height:16px !important;
  object-fit:cover !important;
  border-radius:3px !important;
  flex:0 0 auto !important;
}
.warm-option-row{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.warm-date-wrap{
  position:relative !important;
}
.warm-date-input{
  min-height:52px !important;
  height:52px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding-left:42px !important;
}
.warm-date-icon{
  position:absolute !important;
  left:14px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  color:#8b7c95 !important;
}

/* clients phone prefix same style as rest */
select[name="phone_prefix"],
select[name="mobile_prefix"]{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

/* assignments multiselect - hide original and show chip UI only */
.assignment-country-select,
select.warm-multiselect-country.assignment-country-select{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.assignment-country-select + .ts-wrapper{
  width:100% !important;
}
.assignment-country-select + .ts-wrapper.multi .ts-control{
  min-height:52px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:8px 12px !important;
}
.assignment-country-select + .ts-wrapper.multi .ts-control > div{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  background:rgba(216,109,67,.12) !important;
  border-radius:999px !important;
  padding:4px 10px !important;
  margin:2px 6px 2px 0 !important;
}
.assignment-country-select + .ts-wrapper.multi .ts-control input{
  min-width:140px !important;
}
.assignment-country-select + .ts-wrapper .ts-dropdown{
  z-index: 3000 !important;
}
.assignment-country-select + .ts-wrapper .option{
  border-radius:12px !important;
}

/* section spacing consistency */
.card .section-label{
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}


/* FIX ALIGNMENT RILEVAMENTI DEFINITIVO */
#detectionsFilterForm{
  display:grid !important;
  grid-template-columns: 
    minmax(0,1.2fr)
    minmax(0,1.2fr)
    minmax(0,0.9fr)
    minmax(0,0.8fr)
    minmax(0,0.8fr)
    minmax(0,0.7fr);
  gap:16px !important;
  align-items:end !important;
}

#detectionsFilterForm > [class*="col-"]{
  width:auto !important;
  max-width:none !important;
  flex:unset !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

#detectionsFilterForm .warm-date-col,
#detectionsFilterForm .warm-filter-action{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
}

/* uniform height */
#detectionsFilterForm .ts-control,
#detectionsFilterForm .warm-date-input{
  height:52px !important;
  min-height:52px !important;
  display:flex !important;
  align-items:center !important;
}

/* button align */
#detectionsFilterForm .warm-filter-action button{
  height:52px !important;
}


/* CLASSIFICA ALIGNMENT FIX */
.ranking-filter-form{
  align-items:end !important;
}

@media (min-width:1200px){
  .ranking-filter-form{
    display:grid !important;
    grid-template-columns:
      minmax(0,1.45fr)
      minmax(0,1fr)
      minmax(0,1fr)
      minmax(0,0.7fr) !important;
    gap:16px !important;
    align-items:end !important;
  }

  .ranking-filter-form > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-end !important;
  }

  .ranking-filter-form .warm-date-col,
  .ranking-filter-form .warm-filter-action{
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-end !important;
  }

  .ranking-filter-form .ts-control,
  .ranking-filter-form .warm-date-input,
  .ranking-filter-form .filter-primary-btn{
    height:52px !important;
    min-height:52px !important;
  }

  .ranking-filter-form .filter-primary-btn{
    margin-top:0 !important;
    align-self:stretch !important;
  }

  .ranking-filter-form .warm-date-wrap{
    margin-top:0 !important;
  }
}


/* CLASSIFICA PIXEL FIX */
.ranking-filter-form{
  align-items:start !important;
}
.ranking-filter-form > [class*="col-"]{
  display:flex !important;
  flex-direction:column !important;
}
.ranking-filter-form .form-label{
  height:32px !important;
  line-height:32px !important;
  margin:0 0 10px 0 !important;
  padding:0 2px !important;
}
.ranking-filter-form .warm-filter-action{
  display:flex !important;
  flex-direction:column !important;
}
.ranking-filter-form .warm-filter-action::before{
  content:"";
  display:block;
  height:42px;
  flex:0 0 42px;
}
.ranking-filter-form .ts-wrapper,
.ranking-filter-form .warm-date-wrap{
  margin:0 !important;
}
.ranking-filter-form .ts-control,
.ranking-filter-form .warm-date-input,
.ranking-filter-form .filter-primary-btn{
  min-height:52px !important;
  height:52px !important;
}
.ranking-filter-form .filter-primary-btn{
  margin:0 !important;
}
@media (min-width:1200px){
  .ranking-filter-form{
    display:grid !important;
    grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr) !important;
    gap:16px !important;
    align-items:start !important;
  }
  .ranking-filter-form > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:unset !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
}


/* CLASSIFICA GIORNALIERA - fix campo Data */
.ranking-filter-form .warm-date-col{
  display:flex !important;
  flex-direction:column !important;
}

.ranking-filter-form .warm-date-col .warm-date-wrap{
  display:flex !important;
  align-items:center !important;
  margin-top:0 !important;
  min-height:52px !important;
}

.ranking-filter-form .warm-date-col .flatpickr-wrapper{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

.ranking-filter-form .warm-date-col .warm-date-input{
  display:block !important;
  width:100% !important;
  min-height:52px !important;
  height:52px !important;
  line-height:52px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}


/* Paesi acquistati - pill con bandierina */
.country-check-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.country-check-pill{
  position:relative;
  margin:0;
}
.country-check-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.country-check-pill-ui{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid #d9d2e5;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  transition:.15s ease;
}
.country-check-pill input:checked + .country-check-pill-ui{
  border-color:#d86d43;
  background:rgba(216,109,67,.10);
  box-shadow:0 0 0 3px rgba(216,109,67,.08);
}
.country-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef0ff;
  color:#2d36b3;
  font-weight:600;
}
.country-check-pill-ui img,
.country-badge img{
  width:20px;
  height:14px;
  object-fit:cover;
  border-radius:3px;
  flex:0 0 auto;
}


.country-check-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px 12px !important;
  align-items:flex-start !important;
}
.country-check-pill{
  display:inline-flex !important;
}
.country-check-pill-ui{
  line-height:1.1 !important;
  white-space:nowrap !important;
}
.country-badge{
  white-space:nowrap !important;
}


/* Tables/lists: countries as flag only */
.country-flag-only{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin-right:8px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.country-flag-only img{
  width:22px !important;
  height:16px !important;
  border-radius:2px !important;
  box-shadow:none !important;
}
.country-inline-label,
.country-code-label{
  display:none !important;
}

/* Assignment countries searchable multiselect */
.assignment-country-select{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}
.assignment-country-select + .ts-wrapper{
  width:100% !important;
}
.assignment-country-select + .ts-wrapper.multi .ts-control{
  min-height:52px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:8px 12px !important;
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
}
.assignment-country-select + .ts-wrapper .ts-dropdown{
  z-index:3000 !important;
}
.assignment-country-select + .ts-wrapper .option{
  padding:10px 12px !important;
  border-radius:12px !important;
}
.assignment-country-select + .ts-wrapper .ts-control > div{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  background:#f5f6ff !important;
  color:#2733a7 !important;
  border-radius:999px !important;
  padding:4px 8px !important;
  margin:2px 4px 2px 0 !important;
  font-weight:700 !important;
}
.assignment-country-select + .ts-wrapper .ts-control > div .country-flag-img,
.assignment-country-select + .ts-wrapper .ts-dropdown .country-flag-img,
.assignment-country-select + .ts-wrapper .ts-dropdown .ts-flag-img,
.assignment-country-select + .ts-wrapper .ts-control .ts-flag-img{
  width:20px !important;
  height:14px !important;
  border-radius:2px !important;
  box-shadow:none !important;
}
.assignment-country-select + .ts-wrapper .ts-control input{
  min-width:180px !important;
}
.assignment-country-select + .ts-wrapper .ts-dropdown-content{
  max-height:320px !important;
}
.assignment-country-select + .ts-wrapper .warm-option-row{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}


/* Native countries selector fallback: always visible and functional */
.assignment-country-native{
  display:block !important;
  width:100% !important;
  min-height:280px !important;
  border:1px solid #d9d2e5 !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:10px !important;
  font-size:16px !important;
  line-height:1.4 !important;
}
.assignment-country-native option{
  padding:8px 10px !important;
}
.assignment-country-native option:checked{
  background:#d86d43 linear-gradient(0deg,#d86d43,#d86d43) !important;
  color:#fff !important;
}

.smart-brand-preview{display:flex;align-items:center;justify-content:flex-start;padding:14px;border:1px solid #ece6f4;border-radius:18px;background:#fff}
.smart-brand-preview img{max-height:72px;max-width:220px;object-fit:contain}
.smart-brand-table-logo{height:40px;max-width:120px;object-fit:contain}
.smart-report-wrapper .container-fluid{max-width:1200px}
.smart-report-brand{max-height:72px;max-width:240px;object-fit:contain}
.smart-report-stats .card{max-width:220px}


/* SmartLink admin */
.smart-country-select + .ts-wrapper .ts-control .item::before,
.smart-country-select + .ts-wrapper .option::before{display:none!important}
.smart-country-select + .ts-wrapper .ts-control .item img,
.smart-country-select + .ts-wrapper .option img{width:18px;height:14px;border-radius:2px;margin-right:6px}
.smart-input{border-radius:16px!important; min-height:52px!important; border:1px solid #d9d2e5!important; box-shadow:none!important}

/* SmartLink login */
.smart-login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f6fb;
  padding:24px;
}
.smart-login-card{
  width:100%;
  max-width:620px;
  border-radius:24px!important;
}
.smart-login-logo{
  max-width:360px;
  width:100%;
  height:auto;
}
.smart-login-track{
  font-size:1.6rem;
  font-weight:700;
  line-height:1.2;
}

/* SmartLink report */
.smart-report-wrapper{
  min-height:100vh;
  background:#f5f6fb;
}
.smart-report-wrapper .container-fluid{
  max-width:1240px;
}
.smart-report-card{
  border-radius:24px!important;
}
.smart-report-header{
  display:grid;
  grid-template-columns:minmax(180px,260px) 1fr auto;
  gap:24px;
  align-items:start;
}
.smart-report-brand-wrap{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
}
.smart-report-brand{
  max-width:220px;
  max-height:88px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.smart-report-artist{
  font-size:2rem;
  font-weight:800;
}
.smart-report-title{
  font-size:1.5rem;
  font-weight:600;
}
.smart-report-expiry{
  color:#111;
  font-weight:600;
}
.smart-report-flags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.smart-report-kpi{
  min-width:160px;
  text-align:right;
  align-self:start;
}
.smart-kpi-label{
  color:#6b7280;
  font-weight:600;
  margin-bottom:6px;
}
.smart-kpi-value{
  font-size:2rem;
  font-weight:800;
}
.smart-report-filters .smart-input,
.smart-report-filters .form-select{
  border-radius:16px!important;
  min-height:52px!important;
  border:1px solid #d9d2e5!important;
  box-shadow:none!important;
}
.smart-filter-btn{
  height:52px!important;
}
@media (max-width: 991.98px){
  .smart-report-header{
    grid-template-columns:1fr;
  }
  .smart-report-kpi{
    text-align:left;
    min-width:0;
  }
  .smart-login-logo{
    max-width:260px;
  }
}


/* Sidebar subitem */
.nav-link.nav-subitem{
  padding-left: 2.75rem !important;
  color:#6b7280 !important;
  font-size:.95rem !important;
}
.nav-link.nav-subitem i{
  font-size:1rem !important;
  opacity:.75;
}
.nav-link.nav-subitem.active{
  background:#f3f4f6 !important;
  color:#111827 !important;
}

/* SmartLink admin */
.smartlink-admin-form .warm-date-wrap{
  min-height:52px;
}
.smartlink-admin-form .warm-date-wrap .warm-date-input{
  width:100%;
}
.smart-country-select + .ts-wrapper .ts-control .item,
.smart-country-select + .ts-wrapper .option{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.smart-country-select + .ts-wrapper .ts-control .item img,
.smart-country-select + .ts-wrapper .option img{width:18px!important;height:14px!important;border-radius:2px!important;margin-right:6px!important}
#smartlinksTable td:nth-child(2) .country-badge{
  margin-right:0 !important;
}

/* Smart login */
.smart-login-page{
  min-height:100vh !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#f5f6fb !important;
  padding:24px !important;
}
.smart-login-card{
  width:100% !important;
  max-width:620px !important;
  border-radius:24px!important;
}
.smart-login-logo{
  max-width:340px !important;
  width:100% !important;
  height:auto !important;
  display:block;
  margin:0 auto 1.5rem auto !important;
}
.smart-login-track{
  font-size:1.5rem !important;
  font-weight:700 !important;
  line-height:1.2 !important;
}

/* Smart report */
.smart-report-wrapper{min-height:100vh;background:#f5f6fb}
.smart-report-wrapper .container-fluid{max-width:1240px}
.smart-report-card{border-radius:24px!important}
.smart-report-header{
  display:grid;
  grid-template-columns:220px 1fr 220px;
  gap:40px;
  align-items:start;
}
.smart-report-brand{max-width:190px;max-height:74px;width:auto;height:auto;object-fit:contain}
.smart-report-meta{padding-top:12px}
.smart-report-artist{font-size:2.25rem;font-weight:800;line-height:1.1}
.smart-report-title{font-size:1.45rem;font-weight:600;line-height:1.25}
.smart-report-expiry{margin-top:14px;font-size:.98rem;font-weight:500;color:#111}
.smart-report-side{display:flex;flex-direction:column;align-items:flex-end;gap:18px;padding-top:10px}
.smart-report-flags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.smart-report-kpi{text-align:right}
.smart-kpi-label{font-size:1rem;color:#111;font-weight:600;margin-bottom:4px}
.smart-kpi-value{font-size:2rem;font-weight:800;color:#111}
.smart-report-filters .smart-input,.smart-report-filters .form-select,.smart-report-filters .warm-date-input{
  border-radius:16px!important;min-height:52px!important;border:1px solid #d9d2e5!important;box-shadow:none!important;background:#fff!important
}
.smart-report-filters .warm-date-wrap{min-height:52px}
.smart-report-filters .warm-date-wrap .flatpickr-input[readonly]{background:#fff!important}
.smart-filter-btn{height:52px!important}
@media (max-width: 991.98px){
  .smart-report-header{grid-template-columns:1fr;gap:20px}
  .smart-report-side{align-items:flex-start}
  .smart-report-flags{justify-content:flex-start}
  .smart-report-kpi{text-align:left}
}


/* SmartLink submenu */
.nav-link.nav-subitem{
  padding-left: 3.1rem !important;
  color:#8b8fa3 !important;
  font-size:.92rem !important;
  padding-top:.45rem !important;
  padding-bottom:.45rem !important;
}
.nav-link.nav-subitem.active{
  background:transparent !important;
  color:#5b6277 !important;
}
.nav-link.nav-subitem i{
  opacity:.7;
  font-size:.95rem !important;
}

/* Smart login */
.smart-login-page{
  min-height:100vh !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#f5f6fb !important;
  padding:24px !important;
}
.smart-login-card{
  width:100% !important;
  max-width:760px !important;
  min-height:420px !important;
  border-radius:28px!important;
  display:flex;
  align-items:center;
}
.smart-login-logo{
  max-width:380px !important;
  width:100% !important;
  height:auto !important;
  display:block;
  margin:0 auto 1.5rem auto !important;
}
.smart-login-track{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:1rem !important;
  line-height:1.25 !important;
}
.smart-login-track strong{
  font-size:1.35rem;
  font-weight:800;
}
.smart-login-track span{
  font-size:1rem;
  font-weight:500;
}
.smart-login-code{
  max-width:520px;
  margin:0 auto;
}
.smart-login-card .btn{
  max-width:520px;
  margin:0 auto;
  display:block;
}

/* Smart report */
.smart-report-header{
  display:grid;
  grid-template-columns:220px 1fr 220px;
  gap:34px;
  align-items:center;
}
.smart-report-meta{
  padding-top:0 !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:120px;
}
.smart-report-artist{
  font-size:2.2rem;
  font-weight:800;
  line-height:1.08;
}
.smart-report-title{
  font-size:1.32rem;
  font-weight:500;
  line-height:1.2;
}
.smart-report-expiry{
  color:#111 !important;
  font-size:.92rem !important;
  font-weight:500 !important;
  margin-top:4px !important;
}
.smart-report-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  gap:18px;
}
.smart-report-flags{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.smart-report-kpi{
  text-align:right;
}
.smart-kpi-label{
  color:#111 !important;
  font-size:1rem !important;
  font-weight:600 !important;
}
.smart-kpi-value{
  color:#111 !important;
  font-size:2rem !important;
  font-weight:800 !important;
}
.smart-report-card .country-flag-only{
  margin-right:0 !important;
}
.smart-report-filters .smart-input,
.smart-report-filters .warm-date-input,
.smart-report-filters .form-select{
  border-radius:18px !important;
  min-height:56px !important;
}
.smart-filter-btn{
  height:56px !important;
}
@media (max-width: 991.98px){
  .smart-report-header{
    grid-template-columns:1fr;
    align-items:start;
    gap:20px;
  }
  .smart-report-meta{
    min-height:0;
  }
  .smart-report-side{
    align-items:flex-start;
  }
  .smart-report-flags{
    justify-content:flex-start;
  }
  .smart-report-kpi{
    text-align:left;
  }
}

.smart-login-card{max-width:560px!important;min-height:500px!important}
.smart-login-logo{max-width:320px!important}
.smart-login-track{max-width:380px;margin:0 auto;display:flex;flex-direction:column;gap:6px}
.smart-login-track strong{display:block;font-size:1.4rem!important;font-weight:800!important}
.smart-login-track span{display:block;font-size:1rem!important;font-weight:500!important}
.smart-login-code,.smart-login-card .btn{max-width:420px!important;margin-left:auto!important;margin-right:auto!important}
.smart-report-header{display:grid;grid-template-columns:220px 1fr 220px;gap:34px;align-items:center}
.smart-report-brand{max-width:190px;max-height:74px;width:auto;height:auto;object-fit:contain}
.smart-report-meta{display:flex;flex-direction:column;justify-content:center;align-self:center}
.smart-report-artist{font-size:2.2rem;font-weight:800;line-height:1.08}
.smart-report-title{font-size:1.32rem;font-weight:500;line-height:1.2}
.smart-report-expiry{font-size:.92rem!important;font-weight:500!important;color:#111!important;margin-top:10px!important}
.smart-report-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:14px}
.smart-report-flags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.smart-report-kpi{display:flex;gap:10px;align-items:baseline;justify-content:flex-end;text-align:right}
.smart-kpi-label{font-size:1rem!important;font-weight:600!important;color:#111!important;margin:0!important}
.smart-kpi-value{font-size:2rem!important;font-weight:800!important;color:#111!important}
.smart-report-filters .smart-input,.smart-report-filters .warm-date-input,.smart-report-filters .form-select{border-radius:18px!important;min-height:56px!important;border:1px solid #d9d2e5!important;box-shadow:none!important;background:#fff!important}
.smart-report-filters .warm-date-wrap{position:relative}
.smart-filter-btn{height:56px!important;border-radius:18px!important}
.smart-country-select + .ts-wrapper,.smart-report-country-select + .ts-wrapper{width:100%!important}
.smart-country-select + .ts-wrapper .ts-control,.smart-report-country-select + .ts-wrapper .ts-control{min-height:52px!important;border-radius:16px!important;border:1px solid #d9d2e5!important;box-shadow:none!important;background:#fff!important;padding:8px 12px!important}
.smart-country-select + .ts-wrapper .ts-dropdown,.smart-report-country-select + .ts-wrapper .ts-dropdown{z-index:4000!important}
.smart-country-select + .ts-wrapper .ts-flag-img,.smart-report-country-select + .ts-wrapper .ts-flag-img{width:20px!important;height:14px!important;border-radius:2px!important}
.smart-country-select + .ts-wrapper .warm-option-row,.smart-report-country-select + .ts-wrapper .warm-option-row{display:flex;align-items:center;gap:8px}
.nav-link.nav-subitem{padding-left:3.1rem!important;color:#8b8fa3!important;font-size:.92rem!important;padding-top:.45rem!important;padding-bottom:.45rem!important}
.nav-link.nav-subitem.active{background:transparent!important;color:#5b6277!important}
.nav-link.nav-subitem i{opacity:.7;font-size:.95rem!important}
@media (max-width: 991.98px){
  .smart-report-header{grid-template-columns:1fr;gap:20px}
  .smart-report-side{align-items:flex-start}
  .smart-report-flags{justify-content:flex-start}
  .smart-report-kpi{justify-content:flex-start;text-align:left}
}

.country-chip-grid{display:flex;flex-wrap:wrap;gap:10px}
.country-chip{cursor:pointer;margin:0}
.country-chip input{position:absolute;opacity:0;pointer-events:none}
.country-chip-ui{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #d9d2e5;border-radius:999px;background:#fff;min-width:88px;justify-content:center}
.country-chip input:checked + .country-chip-ui{border-color:#d86d43; box-shadow:0 0 0 2px rgba(216,109,67,.12) inset}
.country-chip-code{font-weight:700;color:#111}
.smartlink-admin-form .col-xl-3 .ts-wrapper,.smartlink-admin-form .col-xl-3 .ts-control{width:100%!important}
.smartlink-admin-form .col-xl-3 .ts-control{min-width:240px}
.smart-report-side{min-width:220px}

/* SmartLink multicountry admin */
.smartlink-admin-form .country-check-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.smartlink-admin-form .country-check-pill{
  margin:0;
  cursor:pointer;
}
.smartlink-admin-form .country-check-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.smartlink-admin-form .country-check-pill-ui{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid #d9d2e5;
  border-radius:999px;
  background:#fff;
  transition:.15s ease;
}
.smartlink-admin-form .country-check-pill input:checked + .country-check-pill-ui{
  border-color:#e4683a;
  box-shadow:0 0 0 2px rgba(228,104,58,.12) inset;
}
.smartlink-admin-form .country-check-pill-ui span{
  font-weight:600;
}
.smartlink-admin-form .ts-wrapper,
.smartlink-admin-form .ts-control{
  width:100% !important;
}
.smart-report-side{
  align-items:flex-end !important;
}
.smart-report-kpi{
  width:100%;
  justify-content:flex-end !important;
  text-align:right !important;
}
.smart-report-filters .col-xl-3 .ts-wrapper,
.smart-report-filters .col-xl-3 .ts-control{
  width:100% !important;
}


.country-check-grid{display:flex;flex-wrap:wrap;gap:10px}
.country-check-pill{cursor:pointer;margin:0}
.country-check-pill input{position:absolute;opacity:0;pointer-events:none}
.country-check-pill-ui{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #d9d2e5;border-radius:999px;background:#fff}
.country-check-pill input:checked + .country-check-pill-ui{border-color:#d86d43;box-shadow:0 0 0 2px rgba(216,109,67,.12) inset}
.country-check-pill-ui span{font-weight:600}
.smart-report-side{align-items:flex-end!important;justify-content:center!important;text-align:right!important}
.smart-report-kpi{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:2px!important}
.smart-kpi-label{display:block!important}
.smart-kpi-value{display:block!important;font-weight:800!important}
.smart-report-filters .col-xl-2 .ts-wrapper,
.smart-report-filters .col-xl-2 .ts-control,
.smart-report-filters .smart-report-country-select + .ts-wrapper,
.smart-report-filters .smart-report-country-select + .ts-wrapper .ts-control{
    width:100%!important; min-width:0!important;
}


.smart-countries-multi + .ts-wrapper{width:100% !important;}
.smart-countries-multi + .ts-wrapper .ts-control{
  min-height:52px !important;
  border-radius:16px !important;
  border:1px solid #d9d2e5 !important;
  box-shadow:none !important;
  background:#fff !important;
  padding:8px 12px !important;
}
.smart-countries-multi + .ts-wrapper.multi .ts-control{padding-top:10px !important; padding-bottom:10px !important;}
.smart-countries-multi + .ts-wrapper .item{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  background:#f7f7fb !important;
  border:1px solid #d9d2e5 !important;
  margin:2px 6px 2px 0 !important;
}
.smart-countries-multi + .ts-wrapper .option{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.smart-countries-multi + .ts-wrapper .ts-flag-img,
.smart-report-country-select + .ts-wrapper .ts-flag-img{width:18px !important;height:14px !important;border-radius:2px !important;}
.smart-report-side{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  text-align:right !important;
}
.smart-report-flags{justify-content:flex-end !important;}
.smart-report-kpi{display:flex !important; flex-direction:column !important; align-items:flex-end !important; gap:0 !important;}
.smart-kpi-label{font-weight:600 !important; margin-bottom:0 !important;}
.smart-kpi-value{font-weight:800 !important;}
.smart-report-filters .col-xl-2,
.smart-report-filters .col-xl-3{display:flex; flex-direction:column;}
.smart-report-filters .smart-report-country-select + .ts-wrapper,
.smart-report-filters .smart-report-country-select + .ts-wrapper .ts-control{
  width:100% !important;
  min-width:0 !important;
  min-height:56px !important;
  border-radius:18px !important;
}


/* SmartLink admin countries searchable multiselect */
.smart-countries-multi + .ts-wrapper{width:100%!important}
.smart-countries-multi + .ts-wrapper .ts-control{
  min-height:58px!important;
  border-radius:18px!important;
  border:1px solid #d9d2e5!important;
  box-shadow:none!important;
  background:#fff!important;
  padding:10px 12px!important;
}
.smart-countries-multi + .ts-wrapper.multi .ts-control{padding-top:10px!important;padding-bottom:10px!important}
.smart-countries-multi + .ts-wrapper .item{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#f5f6fb!important;
  border:1px solid #d9d2e5!important;
  margin:2px 6px 2px 0!important;
}
.smart-countries-multi + .ts-wrapper .option{
  display:flex!important;align-items:center!important;gap:8px!important;
}
.smart-countries-multi + .ts-wrapper .ts-dropdown{z-index:4000!important}
.smart-countries-multi + .ts-wrapper .ts-flag-img{width:18px!important;height:14px!important;border-radius:2px!important}

/* SmartLink report page aligned to reference */
.smart-report-wrapper{
  background:#f5f6fb!important;
}
.smart-report-card{
  max-width:1780px;
  margin:0 auto;
  border:1px solid #ddd8e7!important;
  border-radius:32px!important;
  background:#fff!important;
}
.smart-report-card .card-body{
  padding:48px!important;
}
.smart-report-header{
  display:grid!important;
  grid-template-columns:1fr 300px!important;
  gap:36px!important;
  align-items:start!important;
  margin-bottom:22px!important;
}
.smart-report-main{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.smart-report-meta{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-height:auto!important;
}
.smart-report-artist{
  font-size:4rem!important;
  line-height:.95!important;
  font-weight:800!important;
  margin:0 0 8px 0!important;
}
.smart-report-title{
  font-size:2rem!important;
  line-height:1.1!important;
  font-weight:700!important;
  margin:0!important;
}
.smart-report-left-flags{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:6px;
}
.smart-report-left-flags .country-flag-only{
  margin:0!important;
}
.smart-report-expiry{
  font-size:.95rem!important;
  font-weight:600!important;
  color:#111!important;
  margin:0 0 10px 0!important;
}
.smart-report-brand-box{
  height:160px;
  border:1px solid #d9d2e5;
  border-radius:28px;
  background:#f5f6fb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  margin-bottom:18px;
}
.smart-report-brand{
  max-width:100%;
  max-height:100px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.smart-report-side{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:16px!important;
}
.smart-report-flags{
  display:flex!important;
  gap:10px!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
}
.smart-report-kpi{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  text-align:right!important;
  gap:4px!important;
  width:100%!important;
}
.smart-kpi-label{
  font-size:.95rem!important;
  font-weight:700!important;
}
.smart-kpi-value{
  font-size:3.6rem!important;
  line-height:1!important;
  font-weight:800!important;
}
.smart-report-top-search{
  border-left:2px solid #ddd8e7;
  padding-left:26px;
  min-width:280px;
}
.smart-report-top-search .smart-input{min-height:56px!important}
.smart-report-filters{
  align-items:end!important;
  margin-bottom:20px!important;
}
.smart-report-filterbar{
  display:grid;
  grid-template-columns:1fr auto 360px;
  gap:28px;
  align-items:end;
  margin-bottom:18px;
}
.smart-report-filter-left{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  align-items:end;
}
.smart-report-filter-left .smart-filter-btn{
  width:100%!important;
}
.smart-report-country-select + .ts-wrapper,
.smart-report-country-select + .ts-wrapper .ts-control{
  width:100%!important;
  min-height:56px!important;
  border-radius:18px!important;
  border:1px solid #d9d2e5!important;
  box-shadow:none!important;
}
.smart-report-country-select + .ts-wrapper .item{
  background:transparent!important;
  border:none!important;
  margin:0!important;
  padding:0!important;
}
.smart-report-search-alone .smart-input{
  min-height:56px!important;
  border-radius:18px!important;
}
#smartReportTable th{
  font-weight:700!important;
  color:#111!important;
}
#smartReportTable td{
  vertical-align:middle!important;
}
#smartReportTable .country-flag-only{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
@media (max-width: 1200px){
  .smart-report-filterbar{
    grid-template-columns:1fr;
  }
  .smart-report-top-search{
    border-left:none;
    padding-left:0;
  }
}
@media (max-width: 991.98px){
  .smart-report-card .card-body{padding:28px!important}
  .smart-report-header{
    grid-template-columns:1fr!important;
    gap:24px!important;
  }
  .smart-report-artist{font-size:2.6rem!important}
  .smart-report-title{font-size:1.5rem!important}
  .smart-report-filter-left{
    grid-template-columns:1fr!important;
  }
  .smart-report-side,.smart-report-kpi,.smart-report-flags{
    align-items:flex-start!important;
    justify-content:flex-start!important;
    text-align:left!important;
  }
}


/* Final SmartLink report layout matching reference */
body.smart-report-page{
  background:#f5f6fb !important;
  color:#111 !important;
}
.smart-report-page-header{
  max-width:1780px;
  margin:22px auto 0;
  padding:0 8px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}
.smart-report-page-logo-img{
  width:auto;
  height:72px;
  max-width:220px;
  object-fit:contain;
  display:block;
}
.smart-report-page-title{
  font-size:2rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.03em;
  color:#d6d5dc;
  text-transform:uppercase;
  margin-top:2px;
}
.smart-report-reference-wrap{
  max-width:1780px;
  margin:24px auto 48px;
  padding:0 8px;
}
.smart-report-reference-card{
  background:#fff;
  border:1px solid #ded9e7;
  border-radius:32px;
  padding:48px;
}
.smart-report-reference-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:40px;
  align-items:start;
  margin-bottom:36px;
}
.smart-report-reference-artist{
  font-size:4rem;
  line-height:.95;
  font-weight:800;
  margin:0 0 10px;
}
.smart-report-reference-title{
  font-size:2rem;
  line-height:1.08;
  font-weight:700;
  margin:0 0 18px;
}
.smart-report-reference-flags{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:26px;
}
.smart-report-reference-expiry{
  font-size:.95rem;
  line-height:1.4;
  font-weight:600;
  margin:0;
}
.smart-report-reference-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  gap:18px;
  text-align:right;
}
.smart-report-reference-kpi-label{
  font-size:.95rem;
  font-weight:700;
  line-height:1.2;
  margin-top:2px;
}
.smart-report-reference-kpi-value{
  font-size:4rem;
  line-height:.95;
  font-weight:800;
}
.smart-report-reference-filter-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 190px 170px 24px 360px;
  gap:24px;
  align-items:end;
  margin-bottom:30px;
}
.smart-filter-col .form-label{
  display:block;
  font-size:.95rem;
  font-weight:600;
  color:#111;
  margin:0 0 10px;
}
.smart-report-reference-filter-row .smart-input,
.smart-report-reference-filter-row .warm-date-input,
.smart-report-reference-filter-row .ts-control{
  min-height:56px !important;
  height:56px !important;
  border-radius:18px !important;
  border:1px solid #d9d2e5 !important;
  box-shadow:none !important;
  background:#fff !important;
}
.smart-report-reference-filter-row .warm-date-wrap{
  position:relative;
}
.smart-report-reference-filter-row .smart-filter-btn{
  width:100%;
  height:56px;
  border-radius:20px;
  font-size:1rem;
  font-weight:700;
}
.smart-filter-divider{
  width:2px;
  height:56px;
  background:#ddd8e7;
  align-self:end;
}
.smart-report-reference-filter-row .smart-filter-search .smart-input{
  width:100%;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper{
  width:100%;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .ts-control{
  width:100%;
  padding:8px 14px;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .item{
  background:transparent !important;
  border:none !important;
  margin:0 !important;
  padding:0 !important;
}
.smart-report-reference-table th{
  font-size:.95rem;
  font-weight:700;
  color:#111;
  border-bottom:1px solid #ddd;
  padding:0 12px 14px 12px;
}
.smart-report-reference-table td{
  font-size:.95rem;
  color:#111;
  padding:16px 12px;
  border-bottom:1px solid #e8e8e8;
  vertical-align:middle;
}
.smart-report-reference-table .country-flag-only{
  margin:0;
}
@media (max-width: 1400px){
  .smart-report-reference-filter-row{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .smart-filter-divider{display:none;}
}
@media (max-width: 991.98px){
  .smart-report-page-header{
    flex-direction:column;
    gap:12px;
  }
  .smart-report-reference-card{
    padding:28px;
  }
  .smart-report-reference-top{
    grid-template-columns:1fr;
    gap:24px;
  }
  .smart-report-reference-artist{
    font-size:2.5rem;
  }
  .smart-report-reference-title{
    font-size:1.5rem;
  }
  .smart-report-reference-side{
    align-items:flex-start;
    text-align:left;
  }
  .smart-report-reference-filter-row{
    grid-template-columns:1fr;
  }
}


/* Reference-matching SmartLink report */
body.smart-report-page{background:#f5f6fb!important;color:#111!important}
.smart-report-page-header{max-width:1840px;margin:24px auto 0;padding:0 10px;display:flex;align-items:flex-start;justify-content:space-between}
.smart-report-page-logo-img{height:76px;max-width:260px;width:auto;object-fit:contain;display:block}
.smart-report-page-title{font-size:2rem;line-height:1;font-weight:800;letter-spacing:.03em;color:#d8d8de;text-transform:uppercase;margin-top:4px}
.smart-report-reference-wrap{max-width:1840px;margin:28px auto 48px;padding:0 10px}
.smart-report-reference-card{background:#fff;border:1px solid #ddd8e7;border-radius:32px;padding:48px}
.smart-report-reference-top{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:40px;align-items:start;margin-bottom:30px}
.smart-report-reference-main{display:flex;flex-direction:column;align-items:flex-start}
.smart-report-reference-artist{font-size:4rem;line-height:.95;font-weight:800;margin:0 0 8px}
.smart-report-reference-title{font-size:2rem;line-height:1.1;font-weight:700;margin:0 0 20px}
.smart-report-reference-flags{display:flex;gap:12px;align-items:center;margin:0 0 24px}
.smart-report-reference-expiry{font-size:.95rem;font-weight:600;line-height:1.5;margin:0}
.smart-report-reference-side{display:flex;flex-direction:column;align-items:flex-end;text-align:right;padding-top:6px}
.smart-report-reference-kpi-label{font-size:.95rem;font-weight:700;line-height:1.2;margin:0 0 6px}
.smart-report-reference-kpi-value{font-size:4rem;line-height:.95;font-weight:800;margin:0}
.smart-report-reference-filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 190px 170px;gap:24px;align-items:end;margin-bottom:18px}
.smart-report-reference-search-row{display:grid;grid-template-columns:minmax(0,1fr) 2px 360px;gap:24px;align-items:center;margin:0 0 26px}
.smart-report-reference-search-row .smart-filter-divider{width:2px;height:56px;background:#ddd8e7;justify-self:center}
.smart-report-reference-search-row .smart-filter-search{width:100%}
.smart-report-reference-search-row .smart-filter-search .smart-input{width:100%}
.smart-filter-col .form-label{display:block;font-size:.95rem;font-weight:600;color:#111;margin:0 0 10px}
.smart-report-reference-filter-row .smart-input,
.smart-report-reference-filter-row .warm-date-input,
.smart-report-reference-filter-row .ts-control,
.smart-report-reference-search-row .smart-input{
  min-height:56px!important;height:56px!important;border-radius:18px!important;border:1px solid #d9d2e5!important;box-shadow:none!important;background:#fff!important;
}
.smart-report-reference-filter-row .warm-date-wrap{position:relative}
.smart-report-reference-filter-row .smart-filter-btn{width:100%;height:56px;border-radius:20px;font-size:1rem;font-weight:700}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper{width:100%}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .ts-control{width:100%;padding:8px 14px}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .item{background:transparent!important;border:none!important;margin:0!important;padding:0!important}
.smart-report-reference-table th{font-size:.95rem;font-weight:700;color:#111;border-bottom:1px solid #ddd;padding:0 12px 14px}
.smart-report-reference-table td{font-size:.95rem;color:#111;padding:16px 12px;border-bottom:1px solid #e8e8e8;vertical-align:middle}
.smart-report-reference-table .country-flag-only{margin:0}
@media (max-width:1200px){
  .smart-report-reference-search-row{grid-template-columns:1fr}
  .smart-report-reference-search-row .smart-filter-divider{display:none}
}
@media (max-width:991.98px){
  .smart-report-page-header{flex-direction:column;gap:12px}
  .smart-report-reference-card{padding:28px}
  .smart-report-reference-top{grid-template-columns:1fr;gap:22px}
  .smart-report-reference-artist{font-size:2.5rem}
  .smart-report-reference-title{font-size:1.5rem}
  .smart-report-reference-side{align-items:flex-start;text-align:left}
  .smart-report-reference-filter-row{grid-template-columns:1fr}
  .smart-report-reference-search-row{grid-template-columns:1fr}
}


/* SmartLink report final size + spacing fix */
.smart-report-page-header{
  max-width:1520px !important;
  margin:18px auto 0 !important;
  padding:0 18px !important;
}
.smart-report-page-logo-img{
  height:60px !important;
  max-width:210px !important;
}
.smart-report-page-title{
  font-size:1.8rem !important;
}
.smart-report-reference-wrap{
  max-width:1520px !important;
  margin:22px auto 40px !important;
  padding:0 18px !important;
}
.smart-report-reference-card{
  padding:40px 46px !important;
  border-radius:28px !important;
}
.smart-report-reference-top{
  grid-template-columns:minmax(0,1fr) 220px !important;
  gap:34px !important;
  margin-bottom:28px !important;
}
.smart-report-reference-artist{
  font-size:3.15rem !important;
  line-height:0.96 !important;
  margin-bottom:8px !important;
}
.smart-report-reference-title{
  font-size:1.65rem !important;
  line-height:1.08 !important;
  margin-bottom:16px !important;
}
.smart-report-reference-flags{
  margin-bottom:18px !important;
}
.smart-report-reference-kpi-label{
  font-size:.9rem !important;
}
.smart-report-reference-kpi-value{
  font-size:3.2rem !important;
}
.smart-report-reference-filter-row{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 190px 170px !important;
  gap:22px !important;
  margin-bottom:18px !important;
}
.smart-report-reference-filter-row .smart-input,
.smart-report-reference-filter-row .warm-date-input,
.smart-report-reference-filter-row .ts-control{
  height:54px !important;
  min-height:54px !important;
  border-radius:18px !important;
}
.smart-report-reference-filter-row .smart-filter-btn{
  height:54px !important;
  border-radius:18px !important;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper,
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .ts-control{
  width:100% !important;
  min-width:0 !important;
  height:54px !important;
  min-height:54px !important;
  border-radius:18px !important;
  border:1px solid #d9d2e5 !important;
  box-shadow:none !important;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .ts-control{
  padding:8px 14px !important;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .item{
  background:transparent !important;
  border:none !important;
  margin:0 !important;
  padding:0 !important;
}
.smart-report-reference-table th{
  padding-top:8px !important;
}
.smart-report-reference-table td{
  padding:14px 12px !important;
}
@media (max-width: 991.98px){
  .smart-report-reference-wrap{
    padding:0 14px !important;
  }
  .smart-report-reference-card{
    padding:26px 20px !important;
  }
  .smart-report-reference-artist{
    font-size:2.35rem !important;
  }
  .smart-report-reference-title{
    font-size:1.35rem !important;
  }
  .smart-report-reference-filter-row{
    grid-template-columns:1fr !important;
  }
}


/* v4 smartlink report refinements */
.smart-report-page-header{
  align-items:center !important;
}
.smart-report-page-title{
  display:flex !important;
  align-items:center !important;
  min-height:60px !important;
}

.smart-report-reference-card{
  max-width:1500px !important;
  margin:0 auto !important;
  padding:34px 38px !important;
}
.smart-report-reference-top{
  grid-template-columns:minmax(0,1fr) 190px !important;
  gap:28px !important;
  margin-bottom:22px !important;
}
.smart-report-reference-artist{
  font-size:2.8rem !important;
  line-height:0.98 !important;
  margin-bottom:6px !important;
}
.smart-report-reference-title{
  font-size:1.35rem !important;
  line-height:1.12 !important;
  margin-bottom:14px !important;
}
.smart-report-reference-flags{
  margin-bottom:14px !important;
  gap:10px !important;
}
.smart-report-reference-expiry{
  font-size:.88rem !important;
}
.smart-report-reference-kpi-label{
  font-size:.88rem !important;
  margin-bottom:2px !important;
}
.smart-report-reference-kpi-value{
  font-size:2.7rem !important;
  line-height:1 !important;
}
.smart-report-reference-filter-row{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 170px 150px !important;
  gap:18px !important;
  margin-bottom:22px !important;
}
.smart-report-reference-filter-row .smart-input,
.smart-report-reference-filter-row .warm-date-input,
.smart-report-reference-filter-row .ts-control{
  height:52px !important;
  min-height:52px !important;
}
.smart-report-reference-filter-row .smart-filter-btn{
  height:52px !important;
}

.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper .ts-control{
  width:100% !important;
  min-width:0 !important;
  height:52px !important;
  min-height:52px !important;
  border-radius:18px !important;
  border:1px solid #d9d2e5 !important;
  box-shadow:none !important;
  background:#fff !important;
  padding:8px 14px !important;
}
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper.focus .ts-control,
.smart-report-reference-filter-row .smart-report-country-select + .ts-wrapper.focus{
  box-shadow:none !important;
}
.smart-report-reference-table{
  margin-top:8px !important;
}
.smart-report-reference-table th{
  font-size:.9rem !important;
}
.smart-report-reference-table td{
  font-size:.9rem !important;
  padding:12px 12px !important;
}

@media (max-width: 991.98px){
  .smart-report-page-header{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:0 14px !important;
  }
  .smart-report-page-logo-img{
    height:52px !important;
    max-width:180px !important;
  }
  .smart-report-page-title{
    order:-1 !important;
    min-height:auto !important;
    font-size:1.1rem !important;
    letter-spacing:.04em !important;
    align-items:center !important;
  }
  .smart-report-reference-wrap{
    padding:0 14px !important;
  }
  .smart-report-reference-card{
    max-width:none !important;
    padding:24px 20px !important;
    border-radius:24px !important;
  }
  .smart-report-reference-top{
    grid-template-columns:1fr !important;
    gap:14px !important;
    margin-bottom:16px !important;
  }
  .smart-report-reference-artist{
    font-size:2.2rem !important;
    line-height:1 !important;
  }
  .smart-report-reference-title{
    font-size:1.15rem !important;
    margin-bottom:10px !important;
  }
  .smart-report-reference-flags{
    margin-bottom:10px !important;
  }
  .smart-report-reference-expiry{
    font-size:.82rem !important;
    margin-bottom:2px !important;
  }
  .smart-report-reference-side{
    align-items:flex-start !important;
    text-align:left !important;
    gap:8px !important;
    padding-top:0 !important;
  }
  .smart-report-reference-kpi{
    width:auto !important;
  }
  .smart-report-reference-kpi-label,
  .smart-report-reference-kpi-value{
    display:inline-block !important;
    vertical-align:baseline !important;
  }
  .smart-report-reference-kpi-label{
    font-size:.88rem !important;
    margin-right:6px !important;
    margin-bottom:0 !important;
  }
  .smart-report-reference-kpi-value{
    font-size:1.15rem !important;
    font-weight:800 !important;
  }
  .smart-report-reference-filter-row{
    grid-template-columns:1fr !important;
    gap:14px !important;
    margin-bottom:24px !important;
  }
  .smart-report-reference-table{
    margin-top:18px !important;
  }
}


/* v5 final tweaks */
.smart-report-reference-kpi-label{
  margin-bottom:0 !important;
}
.smart-report-reference-kpi-value{
  margin-top:-4px !important;
}
.smart-filter-country{
  position:relative;
  top:1px;
}

@media (max-width: 991.98px){
  .smart-report-reference-expiry{
    font-size:.74rem !important;
    line-height:1.35 !important;
    margin-bottom:6px !important;
  }
  .smart-report-reference-kpi-label{
    font-weight:500 !important;
  }
  .smart-report-reference-kpi{
    display:flex !important;
    flex-direction:row !important;
    align-items:baseline !important;
    gap:6px !important;
  }
  .smart-report-reference-kpi-label,
  .smart-report-reference-kpi-value{
    display:inline !important;
  }
  .smart-report-reference-kpi-value{
    margin-top:0 !important;
  }
}


/* v6 explicit overrides */
body.smart-report-page .smart-filter-country{
  top: 1px !important;
}
body.smart-report-page .smart-report-reference-side .smart-report-reference-kpi-label{
  margin-bottom: -2px !important;
}
body.smart-report-page .smart-report-reference-side .smart-report-reference-kpi-value{
  margin-top: -8px !important;
}
body.smart-report-page .smart-report-reference-expiry{
  font-size: .84rem !important;
  line-height: 1.3 !important;
}
@media (max-width: 991.98px){
  body.smart-report-page .smart-report-page-header{
    display:flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  body.smart-report-page .smart-report-page-title{
    order: -1 !important;
    align-self: center !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    min-height: auto !important;
    margin-right: 8px !important;
  }
  body.smart-report-page .smart-report-reference-expiry{
    font-size: .70rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }
  body.smart-report-page .smart-report-reference-side{
    gap: 2px !important;
  }
  body.smart-report-page .smart-report-reference-side .smart-report-reference-kpi-label{
    display: inline !important;
    font-size: .88rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
  }
  body.smart-report-page .smart-report-reference-side .smart-report-reference-kpi-value{
    display: inline !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    margin: 0 0 0 6px !important;
  }
  body.smart-report-page .smart-report-reference-side{
    display: block !important;
    text-align: left !important;
  }
}


/* v7 mobile: move expiry under REPORT */
@media (max-width: 991.98px){
  body.smart-report-page .smart-report-reference-top{
    display:flex !important;
    flex-direction:column !important;
  }
  body.smart-report-page .smart-report-reference-side{
    order:2 !important;
  }
  body.smart-report-page .smart-report-reference-main{
    order:1 !important;
  }
  body.smart-report-page .smart-report-reference-expiry{
    order:-1 !important;
    margin:0 0 10px 0 !important;
  }
  body.smart-report-page .smart-report-reference-main{
    display:flex !important;
    flex-direction:column !important;
  }
  body.smart-report-page .smart-report-reference-artist{
    margin-top:0 !important;
  }
}


/* v8 mobile status exactly under REPORT */
.smart-report-page-title-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.smart-report-mobile-status{
  display:none;
  font-size:.82rem;
  line-height:1.2;
  font-weight:700;
  color:#111;
}
@media (max-width: 991.98px){
  body.smart-report-page .smart-report-page-header{
    align-items:flex-start !important;
    padding-top:6px !important;
  }
  body.smart-report-page .smart-report-page-title-wrap{
    order:-1 !important;
    align-items:flex-start !important;
    gap:4px !important;
    flex:1 1 auto !important;
  }
  body.smart-report-page .smart-report-page-title{
    font-size:.95rem !important;
    line-height:1 !important;
    min-height:auto !important;
    margin:0 !important;
  }
  body.smart-report-page .smart-report-mobile-status{
    display:block !important;
  }
  body.smart-report-page .smart-report-reference-expiry{
    display:none !important;
  }
}


/* v9 ensure mobile status visible under REPORT */
.smart-report-page-title-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.smart-report-mobile-status{
  display:none;
  font-size:.82rem;
  line-height:1.2;
  font-weight:700;
  color:#111;
}
@media (max-width: 991.98px){
  body.smart-report-page .smart-report-page-header{
    display:flex !important;
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
  }
  body.smart-report-page .smart-report-page-title-wrap{
    order:-1 !important;
    align-items:flex-start !important;
    gap:4px !important;
    flex:1 1 auto !important;
    margin-right:10px !important;
  }
  body.smart-report-page .smart-report-page-title{
    font-size:.95rem !important;
    line-height:1 !important;
    margin:0 !important;
    min-height:auto !important;
  }
  body.smart-report-page .smart-report-mobile-status{
    display:block !important;
    font-size:.78rem !important;
  }
  body.smart-report-page .smart-report-reference-expiry{
    display:none !important;
  }
}

/* v11 fix REPORT left align on mobile */
@media (max-width: 991.98px){
  body.smart-report-page .smart-report-page-title-wrap{
    align-items:flex-start !important;
    text-align:left !important;
  }
  body.smart-report-page .smart-report-page-title{
    text-align:left !important;
    width:100% !important;
  }
}

/* v12 vertical align REPORT with logo on mobile */
@media (max-width: 991.98px){
  body.smart-report-page .smart-report-page-header{
    align-items:center !important;
  }
  body.smart-report-page .smart-report-page-title-wrap{
    justify-content:center !important;
  }
}


.smart-countries-multi + .ts-wrapper{width:100%!important}
.smart-countries-multi + .ts-wrapper .ts-control{
  min-height:58px!important;
  border-radius:18px!important;
  border:1px solid #d9d2e5!important;
  box-shadow:none!important;
  background:#fff!important;
  padding:10px 12px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
.smart-countries-multi + .ts-wrapper .ts-control input{
  min-width:140px!important;
  flex:1 1 180px!important;
}
.smart-countries-multi + .ts-wrapper .item{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#f5f6fb!important;
  border:1px solid #d9d2e5!important;
  margin:0!important;
}
.smart-countries-multi + .ts-wrapper .item .remove{
  border-left:none!important;
  margin-left:2px!important;
  padding-left:2px!important;
  font-size:18px!important;
  line-height:1!important;
}
.smart-countries-multi + .ts-wrapper .ts-dropdown{
  z-index:5000!important;
  border-radius:16px!important;
}
.smart-countries-multi + .ts-wrapper .option{
  display:flex!important;align-items:center!important;gap:8px!important;
}
.smart-countries-multi + .ts-wrapper .ts-flag-img{
  width:18px!important;height:14px!important;border-radius:2px!important;object-fit:cover!important;
}


/* Robust custom multi-country picker for SmartLink admin */
.smart-country-picker{
  position:relative;
}
.smart-country-picker-toggle{
  width:100%;
  min-height:58px;
  border:1px solid #d9d2e5;
  border-radius:18px;
  background:#fff;
  padding:14px 18px;
  text-align:left;
  font-size:1rem;
  color:#6b6772;
}
.smart-country-picker-selected{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.smart-country-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #d9d2e5;
  background:#f5f6fb;
  font-size:.92rem;
  font-weight:600;
}
.smart-country-chip img,
.smart-country-option img{
  width:18px;
  height:14px;
  border-radius:2px;
  object-fit:cover;
}
.smart-country-picker-panel{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 10px);
  z-index:4000;
  background:#fff;
  border:1px solid #d9d2e5;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(24,24,34,.12);
  padding:14px;
}
.smart-country-picker.is-open .smart-country-picker-panel{
  display:block;
}
.smart-country-picker-search{
  width:100%;
  min-height:46px;
  border:1px solid #d9d2e5;
  border-radius:14px;
  padding:10px 14px;
  margin-bottom:12px;
}
.smart-country-picker-list{
  max-height:320px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.smart-country-option{
  display:grid;
  grid-template-columns:20px 24px 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.smart-country-option:hover{
  background:#f7f3ef;
}
.smart-country-option input{
  margin:0;
}
.smart-country-option-name{
  font-size:.95rem;
}
.smart-country-option-code{
  font-size:.8rem;
  color:#8a8693;
  font-weight:700;
}


/* SmartLink login centering + chosen brand */
.smart-login-card{
  display:flex;
  align-items:center;
  justify-content:center;
}
.smart-login-card .card-body{
  width:100%;
}
.smart-login-inner{
  max-width:440px;
  margin:0 auto;
}
.smart-login-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.smart-login-brand-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.smart-login-logo{
  display:block;
  max-width:360px!important;
  width:auto!important;
  max-height:92px;
  height:auto!important;
  margin:0 auto;
  object-fit:contain;
}
.smart-login-track{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:.35rem;
}
.smart-login-track strong,
.smart-login-track span{
  display:block;
  width:100%;
  text-align:center;
}
.smart-login-form{
  width:100%;
}
.smart-login-form .form-label{
  display:block;
  text-align:left;
}
@media (max-width: 575.98px){
  .smart-login-inner{
    max-width:100%;
  }
  .smart-login-logo{
    max-width:270px!important;
    max-height:72px;
  }
}

/* FIX CENTER + LOGO SIZE */
.smart-login-card .card-body{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:420px;
}

.smart-login-inner{
  width:100%;
  max-width:380px;
  margin:0 auto;
  text-align:center;
}

.smart-login-logo{
  max-width:260px!important;
  max-height:80px!important;
  margin:0 auto 10px auto!important;
}

.smart-login-track{
  margin-top:10px;
}

.smart-login-btn{
  background:#2b2b2b!important;
  border-color:#2b2b2b!important;
  color:#fff!important;
  font-weight:600;
}
.smart-login-btn:hover{
  background:#1f1f1f!important;
  border-color:#1f1f1f!important;
}
