﻿/* ✅ Global Styles (Light Mode Default) */
[data-theme="light"] body {
    background-color: #f8f9fa;
    color: #212529;
}

/* fallback: target the common TMS panel ids that host the canvas/SVG */
[id^="Mainfrm_Panel"], [id^="MainForm_Panel"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}



















body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
}

/* ✅ Buttons */
button, .btn {
    font-size: 1rem;
    padding: 1px 15px;
    border-radius: 5px;
}

.btn-primary {
    background-color: lightsteelblue !important;
    border: none !important;
    color: black !important;
}

.btn-primary:hover {
    background-color: #b0c4de !important;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

button:focus, .btn:focus, .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #b0c4de !important;
}

.logout-icon-btn {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.logout-icon-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h9a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-9v-2h9V5h-9V3Zm1.707 4.293L16.414 12l-4.707 4.707-1.414-1.414L12.586 13H3v-2h9.586l-2.293-2.293 1.414-1.414Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h9a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-9v-2h9V5h-9V3Zm1.707 4.293L16.414 12l-4.707 4.707-1.414-1.414L12.586 13H3v-2h9.586l-2.293-2.293 1.414-1.414Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.theme-toggle {
    width: 126px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #cbd3da;
    background-color: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #212529;
}

.theme-toggle__track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    position: relative;
    display: block;
}

.theme-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.theme-toggle__icon {
    position: absolute;
    top: 5px;
    width: 22px;
    height: 22px;
    color: #f59f00;
    opacity: 1;
}

.theme-toggle__icon--sun {
    left: auto;
    right: auto;
    color: #ffd000;
}

.theme-toggle__icon--moon {
    left: auto;
    right: auto;
    color: #6c757d;
}

.theme-toggle__icon svg {
    display: block;
}


[data-theme="dark"] .theme-toggle {
    background-color: #343a40;
    border-color: #495057;
}

[data-theme="dark"] .theme-toggle__thumb {
    transform: translateX(44px);
}

[data-theme="dark"] .theme-toggle__icon--sun {
    color: #f1c40f;
}

[data-theme="dark"] .theme-toggle__icon--moon {
    color: #6c757d;
}



.btn, .btn-primary {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #b0c4de !important;
    transform: translateY(-1px);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pkg-grid-sm,
.pkg-grid-sm td,
.pkg-grid-sm th {
    font-size: 0.85rem;
}


.btn-primary:active,
.btn-primary:focus {
    font-weight: bold !important;
}



/* ✅ Inputs (Text Fields, Text Areas) */
input, textarea, .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
}

/* ✅ Dropdowns (ComboBox) */
select, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
}

/* ✅ Panels */
.card, .panel {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    color: #212529;
}

/* ✅ Labels
label {
    font-weight: bold;
}
.label-bold {
    font-weight: bold;
	colour: black;
}  */

/* General label style */
.extra-label {
  margin-left: 10px;
  white-space: nowrap;
}






/* ✅ Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    color: #212529;
}

.table th {
    background-color: #007bff;
    color: white;
    text-align: left;
}

.table td, .table th {
    padding: 10px;
    border: 1px solid #ddd;
}

/* ✅ Tabs */
.nav-tabs {
    border-bottom: 2px solid #007bff;
}


/* 🔵 Inactive pill buttons */
.nav-pills .nav-link {
    border: 1px solid lightsteelblue;
    border-radius: 5px;
    color: black !important;
    background-color: white !important;
    padding: 10px 15px;
}

/* 🔷 Active pill (selected tab) */
.nav-pills .nav-link.active {
    background-color: lightsteelblue !important;
    color: black !important;
    font-weight: bold;
}


/* Inactive tab */
.nav-tabs .nav-link {
    border: 1px solid lightsteelblue;
    border-radius: 5px 5px 0 0;
    color: black;
    padding: 10px 15px;
    background-color: white;
}

/* Active tab */
.nav-tabs .nav-link.active {
    background-color: lightsteelblue;
    color: black;
    font-weight: bold;
}

.nav-tabs .nav-link:hover {
    background-color: #d0e0f0;
    color: black;
}




/* ✅ Side Menu */
.navbar {
    background-color: #007bff !important;
}

.navbar a {
    color: white !important;
}

/* ✅ Scrollable Areas */
.scrollable, .overflow-auto {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #212529;
}

/* ✅ Checkboxes */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
}

/* ✅ List Boxes */
.list-group {
    width: 100%;
    border-radius: 5px;
}

.list-group-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    color: #212529;
}

.list-group-item:hover {
    background-color: #007bff;
    color: white;
}

/* ✅ Footers */
.footer {
    background-color: #343a40;
    color: white;
    padding: 10px;
    text-align: center;
}

/* ✅ Ensure TWebContinuousScroll has the correct styling */
.continuous-scroll {
    /*max-height: 400px;*/
    overflow-y: auto;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #212529;
    padding: 10px;
}


/* ✅ Standard Radio Group Fix */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 1rem;
    height: 1rem;
    accent-color: #007bff; /* blue tint */
}

.radio-option label {
    margin: 0;
    font-weight: normal;
    color: #212529;
}

/* Communications merge mode radio caption */
.comms-merge-mode-legend {
  font-size: 0.9rem;
  font-weight: 600;
}

/* 📌 Custom Radio Group Alignment Fix */
.custom-control.custom-radio {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem; /* space between radio and label */
}

.custom-control-input {
  margin: 0 !important;
  vertical-align: middle !important;
  width: 1rem;
  height: 1rem;
  accent-color: #007bff; /* optional color */
}

.custom-control-label {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  white-space: nowrap;
  font-weight: normal;
}



/* Light mode */
.activity-card {
  background-color: #f9f9f9;
  color: #212529;
}


.responsive-grid {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

/* Base styling for image */
.background-image {
  max-width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.weekend-cell {
  background-color: rgba(219, 234, 254, 0.45);
}

.drag-bar {
  background-color: rgba(100, 200, 100, 0.7); /* translucent green */
  border-radius: 4px;
  transition: background-color 0.2s ease;
}


.sort-bar {
  display: flex;
  width: 100%;
  border: none;           /* optional: remove grey border */
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 5px;
  background-color: transparent; /* ← makes the container blend */
}

.sort-button {
   flex: 1;
  border: none;
  background-color: #eee;
  font-weight: normal;
  font-size: 14px;
  line-height: 32px;  /* vertically centers text */
  height: 32px;
  cursor: pointer;
  padding: 0;          /* remove extra button padding */
  margin: 0;           /* prevent overflow */
  vertical-align: middle;
  transition: background-color 0.2s ease-in-out;
}

.sort-button:hover {
  background-color: #e0e0e0;
}

.sort-button.active {
  background-color: #0078d4;
  color: white;
}

.agenda-gap {
  background-color: white;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  height: 4px;
}

.agenda-item-panel {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  margin: 0;
}

.agenda-button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  font-weight: bold;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.agenda-button.up::after {
  content: '⇧';  /* heavy up arrow */
  font-size: 18px;
  font-weight: bold;
  color: blue;
}

.agenda-button.down::after {
  content: '⇩';  /* heavy down arrow */
  font-size: 18px;
  font-weight: bold;
  color: blue;
}

.agenda-button.delete::after {
  content: '✖';  /* heavy X */
  font-size: 18px;
  font-weight: bold;
  color: darkred;
}


.agenda-font {
  /*font-size: 1.1rem;*/
  font-size: 18px  /* Or use px, like 16px */
  font-family: 'Segoe UI', sans-serif;
}

/* In your project's CSS */
.scrollbox-scroll {
  overflow-y: auto !important;
  max-height: 400px;
}

.scrollable-htmlpreview {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
}

.preview-box {
  max-height: 600px;
  overflow-y: auto;
  border: 0px solid #ccc;
  padding: 10px;
}


/* Floating split-toggle button */
.calendar-fab{
  width:28px; height:28px;
  border-radius:999px;
  border:1px solid rgba(16,24,40,.08);
  background: linear-gradient(#ffffff, #f7f7f8);
  box-shadow: 0 6px 16px rgba(16,24,40,.12);
  display:flex; align-items:center; justify-content:center;
  line-height:1; font-size:16px; font-weight:700;
  cursor:pointer; user-select:none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

.calendar-fab:hover{
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(16,24,40,.16);
  background: linear-gradient(#ffffff, #f1f2f4);
}

.calendar-fab:active{ transform: scale(0.96); }

/* Use the same glyph and just rotate when “open” for a playful touch */
.calendar-fab.open{ transform: rotate(180deg); }

/* Dark mode friendly (optional) */
@media (prefers-color-scheme: dark){
  .calendar-fab{
    background: linear-gradient(#2b2e32,#23262a);
    border-color: rgba(255,255,255,.08);
    color:#e6e8eb;
    width:40px;                 /* was 28 */
	height:40px;                /* was 28 */
	font-size:20px;             /* was 16 */
	box-shadow: 0 8px 20px rgba(16,24,40,.14);
  }
  .calendar-fab:hover{
    background: linear-gradient(#303439,#282b2f);
  }
}



/*for conflict screen*/

.scrollable-panel {
  max-height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.conflict-date-group {
  margin-bottom: 20px;
}

.conflict-entry {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.resource-name {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-left: 12px;
}

.suggestion-option {
  display: flex;
  align-items: center;
  font-weight: normal;
  white-space: nowrap;
}



/* SIDEMENU */
.sidemenu{
  background:#f4f5f7;
  border-right:1px solid #e3e5ea;
  box-sizing:border-box;
  padding-top:100px !important; /* under your top bar */
}

/* Row look */
.menu-row{
  display:flex !important;
  align-items:flex-start;
  gap:.5rem !important;
  height:50px;
  padding:0 .5rem !important;
  margin:.1rem .25rem !important;
  border-radius:10px;
  cursor:pointer; user-select:none;
  color:#111;
}
.menu-row:hover{ background:#eaf3ff; }

/* keep children full height & centered */
.menu-row .menu-icon,
.menu-row .menu-text,
.menu-row .menu-badge{
  height:40px !important;
  display:flex;
  align-items:center;
}

/* ALL items same typography */
.menu-row .menu-text label{
  font-weight:550 !important;
  font-size:14px !important;
  line-height:35px;
}

.menu-text { flex: 1 1 auto; min-width: 0; }



/* (optional) set the whole row’s base font too */
.menu-row {
  font-size: 14px !important;
  width: 100% !important;
}


/* Let the row receive the click */
.menu-row .menu-icon,
.menu-row .menu-text,
.menu-row .menu-badge,
.menu-row label{ pointer-events:none; }

/* Icon column */
.menu-icon{ width:34px; min-width:34px; text-align:center; opacity:.95; }
.sidemenu .menu-icon label{
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",
              "Segoe UI Symbol","Noto Sans Symbols","Twemoji Mozilla",sans-serif !important;
  font-size:25px !important;
  line-height:25px !important;
}

/* Text */
.menu-text{ flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Submenu container (visibility controlled in code) */
.submenu{
height:auto !important;
overflow:visible !important;
padding-left: 18px;           /* <- adjust indent here */
margin-left: 8px;             /* gives space for the guide line */
border-left: 2px solid #e8edf5;  /* optional vertical guide */
height: auto !important;
overflow: visible !important;
}


/* Collapsed (icons only) */
.sidemenu.collapsed{ width:72px; }
.sidemenu.collapsed .menu-text,
.sidemenu.collapsed .menu-badge{ display:none !important; }
.sidemenu.collapsed .menu-row{ justify-content:center; padding:0; margin:.25rem 0; }
.sidemenu.collapsed .menu-icon label{ font-size:22px; }

/* (optional) active row highlight */
.menu-row-active{ background:#ddecff; }
.sidemenu.collapsed .menu-row-active{ background:#e2eefc; }


/* MAIN rows (direct children of the rail) keep current weight/color */
.sidemenu > .menu-row .menu-text label{
  color:#111;
  font-weight:600;
}

/* SUBMENU rows look lighter */
.submenu .menu-row .menu-text label{
  color:#5c667a;     /* a softer grey/blue */
  font-weight:500;   /* slightly lighter than mains */
  /* optional: a hair smaller */
  /* font-size:15px; */
}

/* (optional) tone down submenu icons a bit too */
.submenu .menu-icon label{ opacity:.75; }
.submenu .menu-row:hover{ background:#eef5ff; } /* gentle hover for subs */


.burger-btn{
  background: transparent;
  border: 0 !important;
  width: 50px;
  height: 50px;              /* comfy hit area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px !important;
  font-weight: 700;      /* makes the ≡ nice and bold */
  line-height: 1;
  cursor: pointer;
  color: #111;
}
.burger-btn:focus{
	outline: none !important;
}

.burger-btn:focus-visible{
	outline: none;
	border-radius: 4px;
}


/* =========================================================
   ElementClassName corp-panelheader: dark blue + white text
   BUT keep combos/dropdowns readable
   ========================================================= */

[data-theme="light"] .corp-panelheader{
  background: #f4f5f7 !important;
  border: 1px solid #f4f5f7 !important;
  border-radius: 10px;
  color: #6c757d !important;
}

/* Make header text white by default */
[data-theme="light"] .corp-panelheader,
[data-theme="light"] .corp-panelheader label,
[data-theme="light"] .corp-panelheader span,
[data-theme="light"] .corp-panelheader .btn,
[data-theme="light"] .corp-panelheader .nav-link,
[data-theme="light"] .corp-panelheader .title,
[data-theme="light"] .corp-panelheader .caption,
[data-theme="light"] .corp-panelheader .dash-funnel-title,
[data-theme="light"] .corp-panelheader .dash-funnel-stage,
[data-theme="light"] .corp-panelheader .dash-funnel-note{
  color: #6c757d !important;
}

/* ✅ EXCEPTION: inputs/selects/combos inside header stay dark text on white */
[data-theme="light"] .corp-panelheader input,
[data-theme="light"] .corp-panelheader select,
[data-theme="light"] .corp-panelheader textarea,
[data-theme="light"] .corp-panelheader .form-control,
[data-theme="light"] .corp-panelheader .form-select{
  background: #ffffff !important;
  color: #0f1f3d !important;
  -webkit-text-fill-color: #6c757d !important;
  border-color: #f4f5f7 !important;
}

/* ✅ If the combo is Bootstrap-style dropdown, fix the popup list too */
[data-theme="light"] .corp-panelheader .dropdown-menu{
  background: #ffffff !important;
  border: 1px solid #f4f5f7 !important;
}

[data-theme="light"] .corp-panelheader .dropdown-item{
  color: #f4f5f7 !important;
  -webkit-text-fill-color: #f4f5f7 !important;
  background: #6c757d !important;
}

[data-theme="light"] .corp-panelheader .btn:hover,
[data-theme="light"] .corp-panelheader .btn:focus {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

/* make icons / spans inside go white too */
[data-theme="light"] .corp-panelheader .btn:hover *,
[data-theme="light"] .corp-panelheader .btn:focus * {
  color: #ffffff !important;
}




/*Floorplan start */

/* Resources panel */
#fpResPanel{
  position:absolute; left:8px; top:64px; width:260px; max-height:60vh; overflow:auto;
  background:#fff; border:1px solid #ddd; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,.08);
  padding:8px; font: 13px/1.4 system-ui, Arial;
  display:none; z-index:99998;
}
#fpResPanel h4{ margin:6px 4px 8px; font-size:13px; font-weight:600; }
#fpResPanel .res{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; cursor:pointer; }
#fpResPanel .res:hover{ background:#f5f6f8; }
#fpResPanel .rid{ font-size:11px; color:#777; margin-left:auto; }

/* On-item badge (debug/authoring) */
g.item .res-badge{
  pointer-events:none;
  font-size:10px; fill:#fff;
}
g.item .res-badge rect{
  fill:#5563f0; opacity:.9; rx:4; ry:4;
}

/*Kiosk Mode*/

/* Hide interface in kiosk mode */
.kiosk-mode .toolbar,
.kiosk-mode .sidebar,
.kiosk-mode .bookings-panel,
.kiosk-mode .menu-bar { display:none !important; }

.kiosk-mode #floorplanContainer {
  position: fixed; inset: 0;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  width: 100vw !important; height: 100vh !important;
  background:#fff; overflow: hidden !important;
}

/* ensure the root svg stretches to the container */
.kiosk-mode #floorplanSvg { width:100%; height:100%; display:block; }





/* Make sure cursor is visible */
.kiosk-mode,
.kiosk-mode * {
  cursor: default !important;
}




/*Floorplan End */



/*FOR NEW LIST OF ROOMS TO BOOK*/
.avail-ok   td { background:#c8f7c5 !important; }  /* green  */
.avail-busy td { background:#ffd6e0 !important; }  /* pink   */
.avail-unk  td { background:#fff7cc !important; }  /* amber for unknown */


























/* ✅ Apply Dark Mode Automatically */
/* ✅ Dark Mode (Triggers When data-theme="dark") */
[data-theme="dark"] body {
    /*background-color: #121212;*/
    background-color: #2d2f32;

    color: #ffffff; /* Ensure white text for better contrast */
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-control {
    background-color: #2d2f32;
    border-color: #444;
    color: #ffffff;
}

[data-theme="dark"] select,
[data-theme="dark"] .form-select {
    background-color: #2d2f32;
    border-color: #444;
    color: #ffffff;
}

[data-theme="dark"] .card,
[data-theme="dark"] .panel {
    background-color: #2d2f32;
    color: #ffffff;
    border: 1px solid #444; /* Add a border for visibility */
}

[data-theme="dark"] .table {
    background-color: #2d2f32;
    color: #ffffff;
    border-color: #444;
}

[data-theme="dark"] .table th {
    background-color: #333;
    color: #ffffff;
}







/* Fix label color in dark mode */
[data-theme="dark"] label {
  color: #ffffff !important;
}

/* Optional: fix overflow */
[data-theme="dark"] .text-truncate label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

[data-theme="dark"] .extra-label {
  color: #ffffff !important;
}


.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: something small;
}










/* ✅ Force dark mode for ALL tables */
[data-theme="dark"] table {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

/* ✅ Force dark mode for table rows & cells */
[data-theme="dark"] tbody,
[data-theme="dark"] tr,
[data-theme="dark"] td,
[data-theme="dark"] th {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #444 !important;
}





/* ✅ Fix for any inline styles applying `rgb(255,255,255)` */
[data-theme="dark"] div[style*="background-color: rgb(255, 255, 255)"] {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}



/* Dark mode base button */
[data-theme="dark"] button,
[data-theme="dark"] .btn {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
    box-shadow: none;
}

/* Dark mode hover */
[data-theme="dark"] button:hover,
[data-theme="dark"] .btn:hover {
    background-color: #333;
    border-color: #666;
}

/* Dark mode focus (when clicked or tabbed to) */
[data-theme="dark"] button:focus,
[data-theme="dark"] .btn:focus,
[data-theme="dark"] .btn:active,
[data-theme="dark"] button:active {
    background-color: #333;
    color: white;
    border: 1px solid #666;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25); /* Optional glow effect */
}



/* message boxes*/
[data-theme="dark"] .modal-content {
    background-color: #1e1e1e !important;
    color: white !important;
    border: 1px solid #444;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-body,
[data-theme="dark"] .modal-footer {
    background-color: #1e1e1e !important;
    color: white !important;
}

[data-theme="dark"] .modal-title {
    color: white !important;
}

[data-theme="dark"] .btn-close {
    filter: invert(1); /* makes the close "X" button visible in dark mode */
}






[data-theme="dark"] .list-group {
    background-color: #1e1e1e;
}

[data-theme="dark"] .list-group-item {
    background-color: #1e1e1e;
    color: #ffffff;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: #007bff;
    color: white;
}

[data-theme="dark"] .footer {
    background-color: #222;
    color: white;
}



[data-theme="dark"] div[style*="background-color: #f9f9f9"] {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
   }



/*Booking and customers continuous scroll  */
[data-theme="teams"] div[style*="background-color: #f9f9f9"] {
    background-color: #f3f2f7 !important;
    color: #0b0b0b !important;
   }





/* ✅ Force Dark Mode on All Scrollable Containers */
[data-theme="dark"] span[style*="background-color: rgb(240, 240, 240)"] {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #444 !important;
}



/* ✅ Dark mode radio group */
[data-theme="dark"] .radio-option label {
    color: #ffffff;
}

[data-theme="dark"] .radio-option input[type="radio"] {
    background-color: #1e1e1e;
    border: 1px solid #aaa;
}

/* ✅ Dark mode support */
[data-theme="dark"] .custom-control-label {
  color: #ffffff !important;
}

/* ✅ Fix for spans with white inline background in dark mode */
[data-theme="dark"] span.form-control[style*="background-color: rgb(255, 255, 255)"] {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #444 !important;
}
[data-theme="dark"] .form-control {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #444 !important;
}
/* Dark mode override */
[data-theme="dark"] .activity-card {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
}

/* Dark mode effect (dim the image) */
[data-theme="dark"] .background-image {
  filter: brightness(0.5) contrast(1.1);
}




/* =========================
   TWebCalendar — DARK MODE ONLY
   Leave light mode untouched
   Requires: WebCalendar.ElementClassName = 'ez-cal'
   ========================= */
[data-theme="dark"] .ez-cal{
  --cal-bg:#121212;
  --cal-fg:#e5e7eb;
  --cal-border:#2d333b;
  --cal-header-bg:#1a1d21;
  --cal-header-fg:#e5e7eb;
  --cal-grid:#20252b;
  --cal-muted:#9aa4b2;
  --cal-cell-bg:#171a1f;
  --cal-cell-muted-bg:#14161a;
  --cal-accent:#60a5fa;
  --cal-on-accent:#0b1020;

  background:var(--cal-bg) !important;
  color:var(--cal-fg) !important;
  border:1px solid var(--cal-border) !important;
  border-radius:10px;
}

/* Header bar (month title + nav) */
[data-theme="dark"] .ez-cal .ez-cal-header,
[data-theme="dark"] .ez-cal .header,
[data-theme="dark"] .ez-cal thead tr:first-child th{
  background:var(--cal-header-bg) !important;
  color:var(--cal-header-fg) !important;
  border-bottom:1px solid var(--cal-border) !important;
}

/* Day names row */
[data-theme="dark"] .ez-cal .ez-cal-dow,
[data-theme="dark"] .ez-cal thead tr:nth-child(2) th{
  background:var(--cal-header-bg) !important;
  color:var(--cal-header-fg) !important;
  border-bottom:1px solid var(--cal-border) !important;
}

/* Grid cells */
[data-theme="dark"] .ez-cal table{ width:100%; border-collapse:collapse; }
[data-theme="dark"] .ez-cal td,
[data-theme="dark"] .ez-cal th{
  background:var(--cal-cell-bg) !important;
  color:var(--cal-fg) !important;
  border:1px solid var(--cal-grid) !important;
  padding:6px;
}

/* Outside-month (if your control marks them) */
[data-theme="dark"] .ez-cal td.outside-month{
  background:var(--cal-cell-muted-bg) !important;
  color:var(--cal-muted) !important;
}

/* Hover: visible in dark, no light-mode changes */
[data-theme="dark"] .ez-cal td:hover{
  background:#223041 !important;
  cursor:pointer;
}

/* Today: high-contrast ring that doesn’t kill nav */
[data-theme="dark"] .ez-cal td.today{
  box-shadow: inset 0 0 0 2px var(--cal-accent) !important;
}

/* Selected: solid fill + readable text */
[data-theme="dark"] .ez-cal td.selected{
  background:var(--cal-accent) !important;
  color:var(--cal-on-accent) !important;
  font-weight:600;
}

/* Nav buttons: keep your existing icons; just ensure contrast  */
[data-theme="dark"] .ez-cal .ez-cal-header button,
[data-theme="dark"] .ez-cal .header button{
  background:transparent !important;
  color:var(--cal-fg) !important;
  border:1px solid var(--cal-border) !important;
  border-radius:8px;
  padding:4px 10px;
  line-height:1;
  box-shadow:none !important;
}
[data-theme="dark"] .ez-cal .ez-cal-header button:hover,
[data-theme="dark"] .ez-cal .header button:hover{
  border-color:var(--cal-accent) !important;
  color:var(--cal-accent) !important;
}

/* If arrows are SVG/IMG, keep them visible without replacing content */
[data-theme="dark"] .ez-cal .ez-cal-header button svg,
[data-theme="dark"] .ez-cal .header button svg{
  fill:currentColor !important; stroke:currentColor !important;
}
[data-theme="dark"] .ez-cal .ez-cal-header button img,
[data-theme="dark"] .ez-cal .header button img{
  filter: invert(1) brightness(1.2) contrast(1.1);
}

/* Only fix inline hardcoded whites INSIDE the calendar */
[data-theme="dark"] .ez-cal [style*="background-color: rgb(255, 255, 255)"],
[data-theme="dark"] .ez-cal [style*="#fff"]{
  background:var(--cal-cell-bg) !important;
  color:var(--cal-fg) !important;
  border-color:var(--cal-grid) !important;
}


/* Rail SIDE Menu*/
/* Dark mode */
[data-theme="dark"] .sidemenu{ background:#1f232b; border-color:#2b303b; color:#e7eaf0; }
[data-theme="dark"] .menu-row:hover{ background:#2a3241; }
[data-theme="dark"] .menu-row-active{ background:#203349; }



[data-theme="dark"] .burger-btn{
  background:#2a2f37; border:1px solid #3a4150; color:#e7eaf0;
}
[data-theme="dark"] .burger-btn:hover{ background:#343b49; }




/* ============================================
   DELPHI-STYLE DARK THEME REFINEMENT (v2)
   Paste at the VERY END of your CSS file
   ============================================ */

/* ---- Core palette for dark mode ---- */
:root[data-theme="dark"] {
  --bg-main:        #1e1e1e;  /* IDE editor background */
  --bg-surface:     #252526;  /* panels / cards */
  --bg-surface-alt: #2d2d30;  /* headers / sidebars */
  --bg-elevated:    #333337;  /* dialogs, popups */
  --bg-chip:        #3e3e42;

  --fg-main:        #e8e8e8;
  --fg-muted:       #b8b8b8;
  --fg-subtle:      #8a8a8a;

  --border-subtle:  #3f3f46;
  --border-strong:  #4b4b55;

  --accent:         #0e639c;  /* Delphi blue */
  --accent-soft:    #1177bb;
  --accent-faded:   #2b88cf;

  --danger:         #f14c4c;
  --success:        #27ae60;
}

/* ---- Global layout ---- */
[data-theme="dark"] body {
  background-color: var(--bg-main) !important;
  color:            var(--fg-main) !important;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Top bars / toolbars */
[data-theme="dark"] .navbar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .menu-bar {
  background-color: var(--bg-surface-alt) !important;
  color:            var(--fg-main) !important;
  border-bottom:    1px solid var(--border-subtle) !important;
}

/* Panels / cards / booking “dialog” areas */
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .booking-panel,
[data-theme="dark"] .activity-card {
  background-color: var(--bg-surface) !important;
  color:            var(--fg-main) !important;
  border:           1px solid var(--border-subtle) !important;
  box-shadow:       0 0 0 1px rgba(0,0,0,0.5);
}

/* Side rail / side menus */
[data-theme="dark"] .sidemenu {
  background-color: var(--bg-surface-alt) !important;
  border-right:     1px solid var(--border-subtle) !important;
  color:            var(--fg-main) !important;
}

[data-theme="dark"] .menu-row {
  color: var(--fg-muted) !important;
}
[data-theme="dark"] .menu-row:hover {
  background-color: #30343a !important;
  color:            var(--fg-main) !important;
}
[data-theme="dark"] .menu-row-active {
  background-color: #094771 !important;
  color:            var(--fg-main) !important;
}

/* ---- Inputs / selects / textareas ---- */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #1b1b1f !important;
  border:           1px solid var(--border-subtle) !important;
  color:            var(--fg-main) !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Labels & helper text */
[data-theme="dark"] label,
[data-theme="dark"] .extra-label,
[data-theme="dark"] .form-text {
  color: var(--fg-muted) !important;
}

/* ---- Buttons ----
[data-theme="dark"] .btn,
[data-theme="dark"] button {
  background-color: var(--bg-chip) !important;
  color:            var(--fg-main) !important;
  border:           1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}   */

[data-theme="dark"] .btn-primary,
[data-theme="dark"] button.btn-primary {
  background-color: var(--accent) !important;
  border-color:     var(--accent-soft) !important;
  color:            #ffffff !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] button.btn-primary:hover {
  background-color: var(--accent-soft) !important;
  border-color:     var(--accent-faded) !important;
}

[data-theme="dark"] .btn:disabled,
[data-theme="dark"] button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* RichEdit toolbar in dark mode */
[data-theme="dark"] .btn-toolbar.bg-body-secondary {
  background-color: #2a2d33 !important;
  border-color: #3a3f48 !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .btn-toolbar .btn {
  background-color: #2b3036 !important;
  border-color: #3a3f48 !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .btn-toolbar select,
[data-theme="dark"] .btn-toolbar .form-select {
  background-color: #1f2328 !important;
  border-color: #3a3f48 !important;
  color: #e8e8e8 !important;
}

/* Small “chip” style buttons (like your Yesterday/Today etc) */
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .pill-button {
  background-color: transparent !important;
  border-color:     var(--accent) !important;
  color:            var(--accent-faded) !important;
}
[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .pill-button:hover {
  background-color: rgba(14, 99, 156, 0.25) !important;
}

/* ---- Tabs (Booking / Master / Extras …) ---- */
[data-theme="dark"] .nav-tabs .nav-link {
  background-color: var(--bg-surface-alt) !important;
  border-color:     var(--border-subtle) var(--border-subtle) transparent !important;
  color:            var(--fg-muted) !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
  background-color: var(--bg-main) !important;
  border-color:     var(--accent) var(--accent) transparent !important;
  color:            var(--fg-main) !important;
  font-weight:      600;
}

/* Pills (e.g. filter/status chips) */
[data-theme="dark"] .nav-pills .nav-link {
  background-color: var(--bg-chip) !important;
  color:            var(--fg-muted) !important;
  border-color:     transparent !important;
}
[data-theme="dark"] .nav-pills .nav-link.active {
  background-color: var(--accent) !important;
  color:            #ffffff !important;
}

/* ---- Tables / grids / calendars ---- */
[data-theme="dark"] table,
[data-theme="dark"] .table {
  background-color: var(--bg-main) !important;
  color:            var(--fg-main) !important;
  border-color:     var(--border-subtle) !important;
}

[data-theme="dark"] thead tr,
[data-theme="dark"] .table thead tr {
  background-color: var(--bg-surface-alt) !important;
  color:            var(--fg-main) !important;
}

[data-theme="dark"] tbody tr {
  background-color: var(--bg-main) !important;
}
[data-theme="dark"] tbody tr:nth-child(even) {
  background-color: #222326 !important;
}

[data-theme="dark"] tbody tr:hover {
  background-color: #2c313a !important;
}



/* Working-day calendar / booking grid lines:
   soften contrast so it looks more IDE-like */
[data-theme="dark"] .wdc-grid,
[data-theme="dark"] .booking-grid,
[data-theme="dark"] .calendar-grid {
  background-color: #1e1e1e !important;
}
[data-theme="dark"] .wdc-grid td,
[data-theme="dark"] .booking-grid td,
[data-theme="dark"] .calendar-grid td {
  border-color: #3c3c3c !important;
}

/* Keep existing green booking bars but tweak text contrast if needed */
[data-theme="dark"] .drag-bar,
[data-theme="dark"] .booking-block {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

/* ---- Scrollable regions / side panels ---- */
[data-theme="dark"] .scrollable,
[data-theme="dark"] .continuous-scroll,
[data-theme="dark"] .scrollbox-scroll,
[data-theme="dark"] .scrollable-panel,
[data-theme="dark"] .preview-box {
  background-color: var(--bg-main) !important;
  color:            var(--fg-main) !important;
  border-color:     var(--border-subtle) !important;
}

/* ---- Modals / message boxes ---- */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-body,
[data-theme="dark"] .modal-footer {
  background-color: var(--bg-elevated) !important;
  color:            var(--fg-main) !important;
  border-color:     var(--border-subtle) !important;
}

/* Close button in dark */
[data-theme="dark"] .btn-close {
  filter: invert(1) brightness(1.1);
}

/* ---- Status colours (Confirmed / Provisional / Enquiry bars) ---- */
[data-theme="dark"] .status-confirmed   { background-color: var(--success) !important; color:#000 !important; }
[data-theme="dark"] .status-provisional { background-color: #2eccbb !important;      color:#000 !important; }
[data-theme="dark"] .status-enquiry     { background-color: #f39c12 !important;      color:#000 !important; }

/* ---- Scrollbars (WebKit browsers) ---- */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1a1a1a;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 5px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #4c4c4c;
}






/* ================================
   UNIVERSAL GRID HIGHLIGHT – DARK
   ================================ */



/* Selected row – handles lots of possible class names */
[data-theme="dark"] tr.selected > td,
[data-theme="dark"] tr.active > td,
[data-theme="dark"] tr.table-active > td,
[data-theme="dark"] tr.ez-selected > td,
[data-theme="dark"] .tms-grid-row-selected > td,
[data-theme="dark"] .TMSWebStringGrid:not(.no-dark-highlight) tr.selected > td {
  background-color: #094771 !important;   /* Delphi-style selection blue */
  color: #ffffff !important;
}

/* If selection is done per-cell instead of row */
[data-theme="dark"] table:not(.no-dark-highlight) td.selected,
[data-theme="dark"] table:not(.no-dark-highlight) td.cell-selected,
[data-theme="dark"] .TMSWebStringGrid:not(.no-dark-highlight) td.cell-selected {
  background-color: #094771 !important;
  color: #ffffff !important;
}

/* Also catch grids that have role="grid" (ARIA), but not the opt-out ones */
[data-theme="dark"] [role="grid"]:not(.no-dark-highlight) tr:hover > td {
  background-color: #2c313a !important;
  color: #ffffff !important;
}


/* Grid canvases themselves */
[data-theme="dark"] .TMSWebStringGrid:not(.no-dark-highlight),
[data-theme="dark"] .TMSWebGrid:not(.no-dark-highlight),
[data-theme="dark"] .booking-grid,
[data-theme="dark"] table:not(.no-dark-highlight) {
  background-color: #1e1e1e !important;
  border-color: #3c3c3c !important;
}



 /* ================================
   GRID / SCROLLBOX CONTAINERS
   ================================ */

/* Generic scrollboxes / calendar hosts */
[data-theme="dark"] .scrollbox,
[data-theme="dark"] .scrollbox-scroll,
[data-theme="dark"] .TMSWebScrollBox,
[data-theme="dark"] .TWebScrollBox,
[data-theme="dark"] .calendar-scroll,
[data-theme="dark"] .booking-scroll-container,
[data-theme="dark"] .wdc-host {
  background-color: #1e1e1e !important;
}

/* Grid canvases themselves */
[data-theme="dark"] .TMSWebStringGrid,
[data-theme="dark"] .TMSWebGrid,
[data-theme="dark"] .booking-grid,
[data-theme="dark"] .wdc-grid,
[data-theme="dark"] table {
  background-color: #1e1e1e !important;
  border-color: #3c3c3c !important;
}



 /* Dark-mode weekend shading in the working-day calendar */
[data-theme="dark"] .weekend-cell {
  background-color: #252526 !important;  /* a slightly lighter band */
}

 /* Dark mode – bookings sidebar */
[data-theme="dark"] #BookingsPanel {
  background-color: #151515; /* dark background for the whole menu */
  color: #f5f5f5;            /* light text */
}

/* Ensure the scroll area uses the same dark background */
[data-theme="dark"] #BookingsPanel #fpBkList {
  background-color: #151515;
}

/* Cards inside the menu – slightly lighter so they stand out */
[data-theme="dark"] #BookingsPanel .booking-card {
  background-color: #222222;
  border-color: #444444 !important;
  color: #f5f5f5;
}

/* Kill any inline opacity on text so it's readable */
[data-theme="dark"] #BookingsPanel .booking-card > div {
  opacity: 1 !important;
}
 /* === Dark mode: booking side panel header & buttons === */

/* Panel chrome */
[data-theme="dark"] #BookingsPanel {
  background-color: #101010 !important;
  border-color: #444 !important;
}

/* Header strip: "Bookings in window" + close button */
[data-theme="dark"] #BookingsPanel > div:first-child {
  background-color: #181818 !important;
  color: #f5f5f5 !important;
  border-bottom-color: #333 !important;
}

/* Header text itself (in case there are spans) */
[data-theme="dark"] #BookingsPanel > div:first-child * {
  color: #f5f5f5 !important;
}

/* Little white round buttons ("…" actions, close, etc.) */
[data-theme="dark"] #BookingsPanel button {
  background-color: #2f2f2f !important;
  border-color: #666 !important;
  color: #f5f5f5 !important;
}

/* Optional: slightly lighter on hover so they feel clickable */
[data-theme="dark"] #BookingsPanel button:hover {
  background-color: #3a3a3a !important;
}


/*CHARTS*/
/* KPI layout */
.kpi-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px;
}

.kpi-card {
    width: 220px;       /* narrower tiles */
    height: 110px;
    cursor: pointer;
}

/* DASHBOARDS host scrollbox – vertical scrolling, no bars */
#DashboardFrm_pnlCharts {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;            /* Firefox */
}
#DashboardFrm_pnlCharts::-webkit-scrollbar {
  width: 0;
  height: 0;                        /* Chrome/Edge */
}

/* Right-hand charts area: transparent, scroll but no visible scrollbar */
.charts-host {
    background: transparent !important;
}

/* Right-hand charts area: transparent, scroll but no visible scrollbar */
.charts-host {
    background: transparent !important;
}

/* Hide scrollbars but keep wheel / touch scrolling */
.charts-host::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.charts-host {
    -ms-overflow-style: none;   /* IE / old Edge */
    scrollbar-width: none;      /* Firefox */
}
 .spinnerContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinnerContainer::after {
  content: "";
  width: 60px;
  height: 60px;
  border: 6px solid #888;
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TMS fixed column cells often hardcode light bg inline */
[data-theme="dark"] td.fixed,
[data-theme="dark"] td.fixed * {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #444 !important;
}

/* Catch inline light grey backgrounds (like rgb(240,240,240)) */
[data-theme="dark"] td[style*="background-color: rgb(240, 240, 240)"],
[data-theme="dark"] div[style*="background-color: rgb(240, 240, 240)"] {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
}

/* If the fixed cell has inline text colour too */
[data-theme="dark"] td[style*="color: rgb(1, 1, 1)"],
[data-theme="dark"] td.fixed[style*="color"] {
  color: #ffffff !important;
}

/* =========================
   AGENDA ITEMS — DARK MODE OVERRIDES
   Targets TMS generated spans like:
   <span id="agendaitem-..." class="agenda-item-panel" style="background-color: rgb(...)" ...>
   ========================= */

[data-theme="dark"] span[id^="agendaitem-"].agenda-item-panel,
[data-theme="dark"] div[id^="agendaitem-"].agenda-item-panel {
  background-color: #252526 !important;
  color: #e8e8e8 !important;
  border-color: #3f3f46 !important;
}

/* If the whiteness is on an inner child, nuke that too */
[data-theme="dark"] span[id^="agendaitem-"].agenda-item-panel * {
  border-color: #3f3f46 !important;
}

/* Override inline light backgrounds, but ONLY inside agenda items */
[data-theme="dark"] span[id^="agendaitem-"].agenda-item-panel [style*="background-color: rgb(240, 240, 240)"],
[data-theme="dark"] span[id^="agendaitem-"].agenda-item-panel [style*="background-color: rgb(255, 255, 255)"],
[data-theme="dark"] span[id^="agendaitem-"].agenda-item-panel [style*="background-color: white"] {
  background-color: #252526 !important;
  color: #e8e8e8 !important;
}

/* If the agenda item itself has the inline background */
[data-theme="dark"] span[id^="agendaitem-"].agenda-item-panel[style*="background-color"] {
  background-color: #252526 !important;
  color: #e8e8e8 !important;
}

/* WorkingDayCalendar fixed cell background in dark mode */
[data-theme="dark"] td.fixed[style*="background-color: rgb(240, 240, 240)"] {
  background-color: #1e1e1e !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] #WorkingDayCalendarFrm_StringGrid221tblResizeFixedColTable td.fixed {
  background-color: #1e1e1e !important;
  color: #e8e8e8 !important;
}
 /* Agenda buttons: dark mode icon colours */
[data-theme="dark"] .agenda-button.up::after,
[data-theme="dark"] .agenda-button.down::after{
  color: #00ff4c !important;   /* bright green */
}

[data-theme="dark"] .agenda-button.delete::after{
  color: #ff2b2b !important;   /* bright red */
}

/* Optional: make the button “pills” match the neon vibe */
[data-theme="dark"] .agenda-button.up,
[data-theme="dark"] .agenda-button.down{
  border-color: rgba(0, 255, 76, 0.55) !important;
}

[data-theme="dark"] .agenda-button.delete{
  border-color: rgba(255, 43, 43, 0.55) !important;
}


[data-theme="dark"] #TMainFrm_Panel88,
[data-theme="dark"] #TMainFrm_Panel88 > .card-body {
  background-color: #222 !important;
}

[data-theme="dark"] #TMainFrm_Panel110,
[data-theme="dark"] #TMainFrm_Panel110 > .card-body {
  background-color: #222 !important;
}























/* ✅ Corporate Blue Theme     new 121c2d   f9f9fa */
  /* =========================================================
   CORPORATE BLUE THEME (Full Replacement)
   Dark blue chrome + pale blue surfaces + white data entry
   ========================================================= */

/* ✅ Theme Variables */
:root[data-theme="corporateblue"] {
  --corp-bg:        #e4ebf7;   /* page background */
  --corp-surface:   #fdfefe;   /* default surface */
  --corp-panel:     #eef3fa;   /* stronger panel blocks */
  --corp-primary:   #123a83;   /* header blue */
  --corp-primary-2: #16459b;   /* hover/active */
  --corp-deep:      #0f1b2c;   /* deepest/nav */
  --corp-accent:    #2f6fff;
  --corp-text:      #0f1f3d;
  --corp-muted:     #3f4f6b;
  --corp-border:    #8ba0bf;

  --corp-input-bg:  #ffffff;
  --corp-input-br:  #41597d;

  --corp-radius:    10px;
}

/* ✅ Base */
[data-theme="corporateblue"] body {
  background: var(--corp-bg);
  color: var(--corp-text);
  font-family: "Segoe UI","Helvetica Neue",Arial,sans-serif;
  font-weight: 500;
}

[data-theme="corporateblue"] h1,
[data-theme="corporateblue"] h2,
[data-theme="corporateblue"] h3,
[data-theme="corporateblue"] h4 {
  color: var(--corp-deep);
  letter-spacing: 0.2px;
}

/* =========================================================
   DARK BLUE CHROME (top bars / headers / nav)
   ========================================================= */

/* Header panels: make the panel itself white text */
[data-theme="corporateblue"] #TopMenuWebPanel,
[data-theme="corporateblue"] #CalendarMenuWebPanel,
[data-theme="corporateblue"] #BookingHeaderWebPanel,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"],
[data-theme="corporateblue"] #AddBookingHeaderPanel,
[data-theme="corporateblue"] [id*="AddBookingHeaderPanel"]{
  color: #fff !important;
}

/* Only make labels/spans/buttons in header white (NOT menus/inputs) */
[data-theme="corporateblue"] #TopMenuWebPanel label,
[data-theme="corporateblue"] #TopMenuWebPanel span,
[data-theme="corporateblue"] #TopMenuWebPanel .btn,
[data-theme="corporateblue"] #CalendarMenuWebPanel label,
[data-theme="corporateblue"] #CalendarMenuWebPanel span,
[data-theme="corporateblue"] #CalendarMenuWebPanel .btn,
[data-theme="corporateblue"] #BookingHeaderWebPanel label,
[data-theme="corporateblue"] #BookingHeaderWebPanel span,
[data-theme="corporateblue"] #BookingHeaderWebPanel .btn,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] label,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] span,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] .btn,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel label,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel span,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel .btn,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] label,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] span,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] .btn{
  color: #fff !important;
}

/* ===== Header exceptions: inputs + dropdown menus must NOT be forced white text ===== */
[data-theme="corporateblue"] #TopMenuWebPanel input,
[data-theme="corporateblue"] #TopMenuWebPanel select,
[data-theme="corporateblue"] #TopMenuWebPanel textarea,
[data-theme="corporateblue"] #TopMenuWebPanel .form-control,
[data-theme="corporateblue"] #CalendarMenuWebPanel input,
[data-theme="corporateblue"] #CalendarMenuWebPanel select,
[data-theme="corporateblue"] #CalendarMenuWebPanel textarea,
[data-theme="corporateblue"] #CalendarMenuWebPanel .form-control,
[data-theme="corporateblue"] #BookingHeaderWebPanel input,
[data-theme="corporateblue"] #BookingHeaderWebPanel select,
[data-theme="corporateblue"] #BookingHeaderWebPanel textarea,
[data-theme="corporateblue"] #BookingHeaderWebPanel .form-control,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] input,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] select,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] textarea,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] .form-control,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel input,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel select,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel textarea,
[data-theme="corporateblue"] #AddBookingHeaderWebPanel .form-control,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] input,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] select,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] textarea,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] .form-control{
  background: #fff !important;
  color: #0f1f3d !important;
  -webkit-text-fill-color: #0f1f3d !important;
}

/* Dropdown menu + items (Bootstrap dropdown / many TMS combos render like this) */
[data-theme="corporateblue"] #TopMenuWebPanel .dropdown-menu,
[data-theme="corporateblue"] #CalendarMenuWebPanel .dropdown-menu,
[data-theme="corporateblue"] #BookingHeaderWebPanel .dropdown-menu,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] .dropdown-menu,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] .dropdown-menu  {
  background: #fff !important;
  color: #0f1f3d !important;
}

[data-theme="corporateblue"] #TopMenuWebPanel .dropdown-menu .dropdown-item,
[data-theme="corporateblue"] #CalendarMenuWebPanel .dropdown-menu .dropdown-item,
[data-theme="corporateblue"] #BookingHeaderWebPanel .dropdown-menu .dropdown-item,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] .dropdown-menu .dropdown-item,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] .dropdown-menu .dropdown-item{
  color: #0f1f3d !important;
  -webkit-text-fill-color: #0f1f3d !important;
}

[data-theme="corporateblue"] #TopMenuWebPanel .dropdown-menu .dropdown-item:hover,
[data-theme="corporateblue"] #CalendarMenuWebPanel .dropdown-menu .dropdown-item:hover,
[data-theme="corporateblue"] #BookingHeaderWebPanel .dropdown-menu .dropdown-item:hover,
[data-theme="corporateblue"] [id*="BookingHeaderWebPanel"] .dropdown-menu .dropdown-item:hover,
[data-theme="corporateblue"] [id*="AddBookingHeaderWebPanel"] .dropdown-menu .dropdown-item:hover {
  background: #f4f4f6 !important;
  color: #121c2d !important;
}




/* Side menus */
[data-theme="corporateblue"] .sidemenu,
[data-theme="corporateblue"] #MainMenu,
[data-theme="corporateblue"] #SmallMenu {
  background: var(--corp-deep) !important;
  border-right: 1px solid #07306f !important;
}

[data-theme="corporateblue"] #MainMenu *,
[data-theme="corporateblue"] #SmallMenu * {
  color: #fff !important;
}

[data-theme="corporateblue"] .menu-row,
[data-theme="corporateblue"] .menu-row .menu-icon label,
[data-theme="corporateblue"] .menu-row .menu-text label {
  color: #fff;
  font-weight: 600;
}

[data-theme="corporateblue"] .menu-row:hover { background: var(--corp-primary-2); }
[data-theme="corporateblue"] .menu-row-active { background: var(--corp-primary); }

[data-theme="corporateblue"] .submenu .menu-row .menu-text label {
  color: #d9e6ff;
  font-weight: 500;
}

/* =========================================================
   ElementClassName  coorp-panel   SURFACES (cards/panels/modals/tab pages)
   ========================================================= */

[data-theme="corporateblue"] .card,
[data-theme="corporateblue"] .panel,
[data-theme="corporateblue"] .modal-content,
[data-theme="corporateblue"] .accordion-item,
[data-theme="corporateblue"] .tab-content,
[data-theme="corporateblue"] .tab-pane {
  background: var(--corp-surface) !important;
  color: var(--corp-text) !important;
  border: 1px solid var(--corp-border) !important;
  border-radius: var(--corp-radius);
  box-shadow: 0 8px 20px rgba(23, 66, 163, 0.08);
}

/* Optional: if you tag certain TWebPanels as corp-panel, they pop slightly */
[data-theme="corporateblue"] .corp-panel {
  background: var(--corp-panel) !important;
  border: 2px solid var(--corp-border) !important;
  border-radius: var(--corp-radius);
}


[data-theme="corporateblue"] .corp-panel{
  background: #eef3fa !important;
  border: 2px solid #8ba0bf !important;
  border-radius: 10px;
}

[data-theme="corporateblue"] .corp-panel .form-control,
[data-theme="corporateblue"] .corp-panel input,
[data-theme="corporateblue"] .corp-panel select,
[data-theme="corporateblue"] .corp-panel textarea{
  background: #fff !important;
  color: #0f1f3d !important;
}




/* =========================================================
   ElementClassName corp-panelheader: dark blue + white text
   BUT keep combos/dropdowns readable
   ========================================================= */

[data-theme="corporateblue"] .corp-panelheader{
  background: #121c2d !important;
  border: 2px solid #1a3f9a !important;
  border-radius: 10px;
  color: #ffffff !important;
}

/* Make header text white by default */
[data-theme="corporateblue"] .corp-panelheader,
[data-theme="corporateblue"] .corp-panelheader label,
[data-theme="corporateblue"] .corp-panelheader span,
[data-theme="corporateblue"] .corp-panelheader .btn,
[data-theme="corporateblue"] .corp-panelheader .nav-link,
[data-theme="corporateblue"] .corp-panelheader .title,
[data-theme="corporateblue"] .corp-panelheader .caption,
[data-theme="corporateblue"] .corp-panelheader .dash-funnel-title,
[data-theme="corporateblue"] .corp-panelheader .dash-funnel-stage,
[data-theme="corporateblue"] .corp-panelheader .dash-funnel-note{
  color: #ffffff !important;
}

[data-theme="dark"] .corp-panelheader,
[data-theme="dark"] .corp-panelheader{
  background: #2a2f39 !important;
  border: 1px solid #3f4654 !important;
}

[data-theme="dark"] .corp-panelheader,
[data-theme="dark"] .corp-panelheader label,
[data-theme="dark"] .corp-panelheader span,
[data-theme="dark"] .corp-panelheader .btn,
[data-theme="dark"] .corp-panelheader .nav-link,
[data-theme="dark"] .corp-panelheader .title,
[data-theme="dark"] .corp-panelheader .caption,
[data-theme="dark"] .corp-panelheader .dash-funnel-title,
[data-theme="dark"] .corp-panelheader .dash-funnel-stage,
[data-theme="dark"] .corp-panelheader .dash-funnel-note{
  color: #e7eaf0 !important;
}

[data-theme="dark"] .corp-panelheader .survey-card,
[data-theme="dark"] .corp-panelheader .survey-kpi{
  background: #2a2f39 !important;
  border: 1px solid #3f4654 !important;
  color: #e7eaf0 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22) !important;
}

[data-theme="dark"] .corp-panelheader .survey-card *,
[data-theme="dark"] .corp-panelheader .survey-kpi *,
[data-theme="dark"] .corp-panelheader .survey-title,
[data-theme="dark"] .corp-panelheader .survey-meta,
[data-theme="dark"] .corp-panelheader .survey-row,
[data-theme="dark"] .corp-panelheader .survey-samples,
[data-theme="dark"] .corp-panelheader .survey-table td,
[data-theme="dark"] .corp-panelheader .survey-kpi .label,
[data-theme="dark"] .corp-panelheader .survey-kpi .delta{
  color: #e7eaf0 !important;
}

[data-theme="dark"] .corp-panelheader .survey-bar{
  background: #1f232b !important;
}

[data-theme="dark"] .corp-panelheader .survey-donut-hole{
  background: #2a2f39 !important;
}

[data-theme="dark"] .corp-panelheader .survey-donut-center{
  color: #e7eaf0 !important;
}

/* ✅ EXCEPTION: inputs/selects/combos inside header stay dark text on white */
[data-theme="corporateblue"] .corp-panelheader input,
[data-theme="corporateblue"] .corp-panelheader select,
[data-theme="corporateblue"] .corp-panelheader textarea,
[data-theme="corporateblue"] .corp-panelheader .form-control,
[data-theme="corporateblue"] .corp-panelheader .form-select{
  background: #ffffff !important;
  color: #0f1f3d !important;
  -webkit-text-fill-color: #0f1f3d !important;
  border: 2px solid #41597d !important;
}

/* ✅ If the combo is Bootstrap-style dropdown, fix the popup list too */
[data-theme="corporateblue"] .corp-panelheader .dropdown-menu{
  background: #ffffff !important;
  border: 1px solid #c7d6ee !important;
}

[data-theme="corporateblue"] .corp-panelheader .dropdown-item{
  color: #0f1f3d !important;
  -webkit-text-fill-color: #0f1f3d !important;
  background: #ffffff !important;
}

[data-theme="corporateblue"] .corp-panelheader .dropdown-item:hover,
[data-theme="corporateblue"] .corp-panelheader .dropdown-item:focus{
  background: #f4f4f6 !important;
  color: #121c2d !important;
}

/* Effectiveness grid: smaller header text, larger numbers, red alerts */
[data-theme="corporateblue"] .effectiveness-grid td{
  font-size: 15px;
}
[data-theme="corporateblue"] .effectiveness-grid tr:first-child > td,
[data-theme="corporateblue"] .effectiveness-grid thead th,
[data-theme="corporateblue"] .effectiveness-grid thead td{
  font-size: 12px;
}
[data-theme="corporateblue"] .effectiveness-grid .grid-alert{
  color: #c0162e !important;
  font-weight: 600;
}

/* Communications status popup */
[data-theme="corporateblue"] .comms-status-popup{
  background: #ffffff !important;
  border: 1px solid #c7d6ee !important;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(8, 26, 66, 0.25);
  padding: 8px;
  z-index: 9999;
}
[data-theme="corporateblue"] .comms-status-grid td{
  font-size: 13px;
}
[data-theme="corporateblue"] .comms-status-grid tr:first-child > td{
  font-size: 12px;
  font-weight: 600;
}
[data-theme="corporateblue"] .comms-status-grid .status-negative{
  color: #c0162e !important;
  font-weight: 600;
}
[data-theme="corporateblue"] .comms-status-grid .status-positive{
  color: #0a7a3d !important;
  font-weight: 600;
}
[data-theme="corporateblue"] .comms-status-grid .status-emphasis{
  font-size: 14px;
  font-weight: 600;
}



/* =========================================================
   TWebStringGrid: header row dark blue with white text
   Works with thead headers OR "row 1 is header" grids
   =========================================================

/* If the grid outputs a THEAD (most common with column headers
[data-theme="corporateblue"] table thead th,
[data-theme="corporateblue"] table thead td{
  background: #0b2f7a !important;
  color: #ffffff !important;
  border-color: #1a3f9a !important;
  font-weight: 300;
}

/* If the grid does NOT output a THEAD, treat first row as header
[data-theme="corporateblue"] table tbody tr:first-child > td{
  background: #0b2f7a !important;
  color: #ffffff !important;
  border-color: #1a3f9a !important;
  font-weight: 300;
}

/* Make sure links/icons inside header are white too
[data-theme="corporateblue"] table thead th *,
[data-theme="corporateblue"] table thead td *,
[data-theme="corporateblue"] table tbody tr:first-child > td *{
  color: #ffffff !important;
}

/* Optional: keep non-header grid body readable (white background, dark text)
[data-theme="corporateblue"] table tbody td{
  background: #ffffff !important;
  color: #0f1f3d !important;
  border-color: #c7d6ee !important;
}
                */







/* =========================================================
   TABS
   ========================================================= */

[data-theme="corporateblue"] .nav-tabs {
  border-bottom: 2px solid var(--corp-primary);
}

[data-theme="corporateblue"] .nav-tabs .nav-link {
  border: 2px solid var(--corp-border);
  background: var(--corp-surface);
  color: var(--corp-text);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

[data-theme="corporateblue"] .nav-tabs .nav-link.active {
  background: var(--corp-panel);
  color: var(--corp-deep);
  border-color: var(--corp-primary) var(--corp-primary) transparent;
}

/* Pills if you use them */
[data-theme="corporateblue"] .nav-pills .nav-link {
  border: 2px solid var(--corp-border);
  color: var(--corp-text) !important;
  background: var(--corp-surface) !important;
}

[data-theme="corporateblue"] .nav-pills .nav-link.active {
  background: var(--corp-panel) !important;
  color: var(--corp-deep) !important;
  border-color: var(--corp-primary) !important;
}

/* =========================================================
   DATA ENTRY CONTROLS (ALWAYS WHITE)
   Covers "plain form ok, tabsheet not ok"
   ========================================================= */

/* CorporateBlue: style TEXT-like inputs only (exclude checkbox/radio) */
[data-theme="corporateblue"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
[data-theme="corporateblue"] textarea,
[data-theme="corporateblue"] select,
[data-theme="corporateblue"] .form-control,
[data-theme="corporateblue"] .form-select{
  background: var(--corp-input-bg) !important;
  color: var(--corp-text) !important;
  border: 2px solid var(--corp-input-br) !important;
  border-radius: 8px;
}



/* Extra-strong inside surfaces (tab panes/panels/cards) */
[data-theme="corporateblue"] .tab-content input,
[data-theme="corporateblue"] .tab-content textarea,
[data-theme="corporateblue"] .tab-content select,
[data-theme="corporateblue"] .tab-content .form-control,
[data-theme="corporateblue"] .tab-content .form-select,
[data-theme="corporateblue"] .tab-pane input,
[data-theme="corporateblue"] .tab-pane textarea,
[data-theme="corporateblue"] .tab-pane select,
[data-theme="corporateblue"] .tab-pane .form-control,
[data-theme="corporateblue"] .tab-pane .form-select,
[data-theme="corporateblue"] .panel input,
[data-theme="corporateblue"] .panel textarea,
[data-theme="corporateblue"] .panel select,
[data-theme="corporateblue"] .panel .form-control,
[data-theme="corporateblue"] .panel .form-select,
[data-theme="corporateblue"] .card input,
[data-theme="corporateblue"] .card textarea,
[data-theme="corporateblue"] .card select,
[data-theme="corporateblue"] .card .form-control,
[data-theme="corporateblue"] .card .form-select {
  background: var(--corp-input-bg) !important;
  color: var(--corp-text) !important;
  border: 2px solid var(--corp-input-br) !important;
}

/* Placeholder + disabled */
[data-theme="corporateblue"] ::placeholder { color: #6a7a96 !important; }
[data-theme="dark"] .portal-reply-memo::placeholder,
[data-theme="dark"] .portal-reply-memo textarea::placeholder,
[data-theme="teams"] .portal-reply-memo::placeholder,
[data-theme="teams"] .portal-reply-memo textarea::placeholder {
  color: #aeb8c7 !important;
  opacity: 1 !important;
}

[data-theme="corporateblue"] .form-control:disabled,
[data-theme="corporateblue"] .form-select:disabled,
[data-theme="corporateblue"] input:disabled,
[data-theme="corporateblue"] textarea:disabled,
[data-theme="corporateblue"] select:disabled {
  background: #f9f9fa !important;
  color: #6a7a96 !important;
}

/* Focus ring */
[data-theme="corporateblue"] .form-control:focus,
[data-theme="corporateblue"] .form-select:focus,
[data-theme="corporateblue"] input:focus,
[data-theme="corporateblue"] textarea:focus,
[data-theme="corporateblue"] select:focus {
  border-color: var(--corp-accent) !important;
  box-shadow: 0 0 0 .2rem rgba(47,111,255,0.20) !important;
}

/* =========================================================
   DROPDOWNS / COMBOS (fixes unreadable combo lists)
   ========================================================= */

/* Bootstrap-style dropdown menus */
[data-theme="corporateblue"] .dropdown-menu {
  background: #fff !important;
  border: 2px solid var(--corp-border) !important;
  box-shadow: 0 10px 24px rgba(23, 66, 163, 0.18);
}

[data-theme="corporateblue"] .dropdown-item {
  color: var(--corp-text) !important;
  background: #fff !important;
}

[data-theme="corporateblue"] .dropdown-item:hover,
[data-theme="corporateblue"] .dropdown-item:focus {
  background: var(--corp-primary) !important;
  color: #fff !important;
}

[data-theme="corporateblue"] .btn-outline-secondary,
[data-theme="corporateblue"] .btn-outline-primary,
[data-theme="corporateblue"] .btn-light,
[data-theme="corporateblue"] .btn.btn-sm.btn-outline-secondary,
[data-theme="corporateblue"] .btn.btn-sm.btn-outline-primary {
  border-width: 2px !important;
}

[data-theme="corporateblue"] .booking-item-row,
[data-theme="corporateblue"] .booking-item-row.border-light,
[data-theme="corporateblue"] .booking-item-row.border-primary {
  background: #10233d !important;
  color: #ffffff !important;
  border: 2px solid #31528a !important;
  box-shadow: 0 6px 14px rgba(16, 35, 61, 0.14);
}

[data-theme="corporateblue"] .booking-item-row .text-muted,
[data-theme="corporateblue"] .booking-item-row .badge {
  color: #ffffff !important;
}

[data-theme="corporateblue"] .booking-item-row .badge.bg-light {
  background: #173253 !important;
  color: #ffffff !important;
  border: 1px solid #4b6c9b !important;
}

[data-theme="corporateblue"] #EzSelectedResourcesListBox,
[data-theme="corporateblue"] #EzSelectedResourcesListBox option,
[data-theme="corporateblue"] #EzSelectedResourcesListBox:focus {
  background: #10233d !important;
  color: #ffffff !important;
  border: 2px solid #31528a !important;
}

[data-theme="corporateblue"] .dropdown-item.active,
[data-theme="corporateblue"] .dropdown-item:active {
  background: var(--corp-primary) !important;
  color: #fff !important;
}

/* Native select options (best-effort; browser limits apply) */
[data-theme="corporateblue"] select option {
  color: var(--corp-text);
  background: #fff;
}

/* =========================================================
   LABELS
   ========================================================= */
[data-theme="corporateblue"] label,
[data-theme="corporateblue"] .extra-label {
  color: var(--corp-muted);
}

/* CorporateBlue: radio/checkbox labels need white text */
[data-theme="corporateblue"] .form-check-label,
[data-theme="corporateblue"] label[for*="Radio"],
[data-theme="corporateblue"] label[for*="radio"],
[data-theme="corporateblue"] .radio label,
[data-theme="corporateblue"] .checkbox label {
  color: #ffffff !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */
[data-theme="corporateblue"] .btn-primary {
  background: var(--corp-primary) !important;
  border: 1px solid var(--corp-primary) !important;
  color: #fff !important;
}

[data-theme="corporateblue"] .btn-primary:hover {
  background: var(--corp-primary-2) !important;
}

[data-theme="corporateblue"] .btn-outline-primary {
  border-color: var(--corp-primary) !important;
  color: var(--corp-primary) !important;
}

[data-theme="corporateblue"] .btn-outline-primary:hover {
  background: var(--corp-primary) !important;
  color: #fff !important;
}

/* =========================================================
   TABLE HEADERS (your calendar / grids)
   ========================================================= */
[data-theme="corporateblue"] .ez-cal .ez-cal-header,
[data-theme="corporateblue"] .ez-cal .header {
  background: var(--corp-primary) !important;
  color: #fff !important;
  border-bottom: 1px solid #1a3f9a !important;
}

[data-theme="corporateblue"] .ez-cal th {
  background: var(--corp-panel) !important;
  color: var(--corp-deep) !important;
  border-color: var(--corp-border) !important;
}

/* WorkingDayCalendar header + fixed column */
[data-theme="corporateblue"] [id*="WorkingDayCalendar"] th,
[data-theme="corporateblue"] [id*="WorkingDayCalendar"] thead th {
  background: var(--corp-primary) !important;
  color: #fff !important;
  border-color: #1a3f9a !important;
}

[data-theme="corporateblue"] [id*="WorkingDayCalendar"] td.fixed,
[data-theme="corporateblue"] [id*="WorkingDayCalendar"] td.fixed * {
  background: var(--corp-deep) !important;
  color: #fff !important;
  border-color: #1a3f9a !important;
}


/* =========================================================
   Corporate Blue: scrollable/continuous containers readability
   Fixes inline bg #f9f9f9 / rgb(240,240,240) used by TMS
   ========================================================= */
[data-theme="corporateblue"] .corp-scroll{
  background: var(--corp-surface) !important;
  color: var(--corp-text) !important;
  border: 1px solid var(--corp-border) !important;
}
[data-theme="corporateblue"] .corp-scroll *{
  color: var(--corp-text) !important;
}


/* =========================================================
   ARGYLL THEME
   Based on https://www.workargyll.com/about-argyll
   ========================================================= */
[data-theme="argyll"] {
  --argyll-bg: #f6f1e8;
  --argyll-surface: #fbf8f2;
  --argyll-panel: #ffffff;
  --argyll-text: #2f4942;
  --argyll-muted: #6f7f77;
  --argyll-green: #23473f;
  --argyll-green-2: #1a3832;
  --argyll-gold: #b69b6a;
  --argyll-gold-2: #a58a5e;
  --argyll-border: #d9cfbf;
  --argyll-input: #fffdfa;
}

[data-theme="argyll"] body,
[data-theme="argyll"] {
  background-color: var(--argyll-bg);
  color: var(--argyll-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="argyll"] #TopMenuWebPanel,
[data-theme="argyll"] [id*="TopMenuWebPanel"] {
  background: linear-gradient(180deg, #fdfbf7 0%, #f6f1e8 100%) !important;
  border-bottom: 1px solid var(--argyll-border) !important;
}

[data-theme="argyll"] h1,
[data-theme="argyll"] h2,
[data-theme="argyll"] h3,
[data-theme="argyll"] h4,
[data-theme="argyll"] h5,
[data-theme="argyll"] h6,
[data-theme="argyll"] label,
[data-theme="argyll"] .btn,
[data-theme="argyll"] button,
[data-theme="argyll"] .custom-control-label,
[data-theme="argyll"] .nav-link,
[data-theme="argyll"] .title,
[data-theme="argyll"] .caption,
[data-theme="argyll"] .extra-label,
[data-theme="argyll"] .table th,
[data-theme="argyll"] .corp-panelheader,
[data-theme="argyll"] .corp-panelheader * {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif !important;
  letter-spacing: 0.01em;
}

[data-theme="argyll"] .card,
[data-theme="argyll"] .panel,
[data-theme="argyll"] .corp-panel {
  background-color: var(--argyll-panel);
  color: var(--argyll-text);
  border: 1px solid var(--argyll-border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(34, 53, 45, 0.08);
}

[data-theme="argyll"] input,
[data-theme="argyll"] textarea,
[data-theme="argyll"] select,
[data-theme="argyll"] .form-control,
[data-theme="argyll"] .form-select {
  background: var(--argyll-input) !important;
  color: var(--argyll-text) !important;
  border: 1px solid var(--argyll-border) !important;
  border-radius: 8px;
}

[data-theme="argyll"] .form-control:focus,
[data-theme="argyll"] .form-select:focus,
[data-theme="argyll"] input:focus,
[data-theme="argyll"] textarea:focus,
[data-theme="argyll"] select:focus {
  border-color: var(--argyll-gold) !important;
  box-shadow: 0 0 0 .2rem rgba(182, 155, 106, 0.18) !important;
}

[data-theme="argyll"] label,
[data-theme="argyll"] .extra-label {
  color: var(--argyll-green);
}

[data-theme="argyll"] .btn-primary,
[data-theme="argyll"] button.btn-primary {
  background: var(--argyll-gold) !important;
  border: 1px solid var(--argyll-gold) !important;
  color: #ffffff !important;
  border-radius: 2px !important;
}

[data-theme="argyll"] .btn-primary:hover,
[data-theme="argyll"] .btn-primary:focus,
[data-theme="argyll"] button.btn-primary:hover,
[data-theme="argyll"] button.btn-primary:focus {
  background: var(--argyll-gold-2) !important;
  border-color: var(--argyll-gold-2) !important;
  box-shadow: 0 8px 18px rgba(182, 155, 106, 0.22) !important;
}

[data-theme="argyll"] .btn-outline-secondary,
[data-theme="argyll"] button.btn-outline-secondary,
[data-theme="argyll"] .btn.btn-sm.btn-outline-secondary,
[data-theme="argyll"] button.btn.btn-sm.btn-outline-secondary,
[data-theme="argyll"] input.btn-outline-secondary,
[data-theme="argyll"] input.btn.btn-sm.btn-outline-secondary,
[data-theme="argyll"] a.btn-outline-secondary,
[data-theme="argyll"] .btn-light,
[data-theme="argyll"] button.btn-light,
[data-theme="argyll"] .btn.btn-light,
[data-theme="argyll"] input.btn-light,
[data-theme="argyll"] a.btn-light,
[data-theme="argyll"] #TopMenuWebPanel .btn {
  background: #fffdfa !important;
  background-color: #fffdfa !important;
  color: var(--argyll-green) !important;
  border: 1px solid var(--argyll-border) !important;
  border-radius: 2px !important;
  box-shadow: 0 3px 10px rgba(34, 53, 45, 0.05);
}

[data-theme="argyll"] .btn-outline-secondary:hover,
[data-theme="argyll"] .btn-outline-secondary:focus,
[data-theme="argyll"] button.btn-outline-secondary:hover,
[data-theme="argyll"] button.btn-outline-secondary:focus,
[data-theme="argyll"] .btn.btn-sm.btn-outline-secondary:hover,
[data-theme="argyll"] .btn.btn-sm.btn-outline-secondary:focus,
[data-theme="argyll"] input.btn.btn-sm.btn-outline-secondary:hover,
[data-theme="argyll"] input.btn.btn-sm.btn-outline-secondary:focus,
[data-theme="argyll"] .btn-light:hover,
[data-theme="argyll"] .btn-light:focus,
[data-theme="argyll"] button.btn-light:hover,
[data-theme="argyll"] button.btn-light:focus,
[data-theme="argyll"] .btn.btn-light:hover,
[data-theme="argyll"] .btn.btn-light:focus,
[data-theme="argyll"] #TopMenuWebPanel .btn:hover,
[data-theme="argyll"] #TopMenuWebPanel .btn:focus {
  background: var(--argyll-gold) !important;
  background-color: var(--argyll-gold) !important;
  color: #ffffff !important;
  border-color: var(--argyll-gold) !important;
  box-shadow: 0 8px 18px rgba(182, 155, 106, 0.22) !important;
}

[data-theme="argyll"] .btn-outline-secondary:not(:hover):not(:focus):not(.active),
[data-theme="argyll"] .btn.btn-sm.btn-outline-secondary:not(:hover):not(:focus):not(.active),
[data-theme="argyll"] .btn-light:not(:hover):not(:focus):not(.active),
[data-theme="argyll"] .btn.btn-light:not(:hover):not(:focus):not(.active) {
  background-color: #fffdfa !important;
  color: var(--argyll-green) !important;
  border-color: var(--argyll-border) !important;
}

[data-theme="argyll"] .btn-outline-secondary *,
[data-theme="argyll"] .btn-light *,
[data-theme="argyll"] #TopMenuWebPanel .btn * {
  color: inherit !important;
}

[data-theme="argyll"] #FloorPlanHostPanel .btn-outline-secondary:hover,
[data-theme="argyll"] #FloorPlanHostPanel .btn-outline-secondary:focus,
[data-theme="argyll"] #FloorPlanHostPanel .btn.btn-sm.btn-outline-secondary:hover,
[data-theme="argyll"] #FloorPlanHostPanel .btn.btn-sm.btn-outline-secondary:focus,
[data-theme="argyll"] #FloorPlanHostPanel input.btn.btn-sm.btn-outline-secondary:hover,
[data-theme="argyll"] #FloorPlanHostPanel input.btn.btn-sm.btn-outline-secondary:focus {
  color: inherit !important;
  background: #fffdfa !important;
  background-color: #fffdfa !important;
  border-color: var(--argyll-border) !important;
}

[data-theme="argyll"] #FloorPlanHostPanel .btn-outline-secondary:hover *,
[data-theme="argyll"] #FloorPlanHostPanel .btn-outline-secondary:focus *,
[data-theme="argyll"] #FloorPlanHostPanel .btn.btn-sm.btn-outline-secondary:hover *,
[data-theme="argyll"] #FloorPlanHostPanel .btn.btn-sm.btn-outline-secondary:focus * {
  color: inherit !important;
  fill: var(--argyll-green) !important;
}

[data-theme="argyll"] .nav-tabs {
  border-bottom: 1px solid var(--argyll-border);
}

[data-theme="argyll"] .nav-tabs .nav-link,
[data-theme="argyll"] .nav-pills .nav-link {
  background: var(--argyll-surface) !important;
  color: var(--argyll-green) !important;
  border: 1px solid var(--argyll-border);
  border-bottom-width: 2px !important;
}

[data-theme="argyll"] .nav-tabs .nav-link.active,
[data-theme="argyll"] .nav-pills .nav-link.active {
  background: var(--argyll-panel) !important;
  color: var(--argyll-green-2) !important;
  border-color: var(--argyll-gold) !important;
  box-shadow: inset 0 -2px 0 var(--argyll-gold);
}

[data-theme="argyll"] .table,
[data-theme="argyll"] table {
  background: var(--argyll-panel);
  color: var(--argyll-text);
}

[data-theme="argyll"] .table td,
[data-theme="argyll"] .table th,
[data-theme="argyll"] table td,
[data-theme="argyll"] table th {
  border-color: #e5ddd0;
}

[data-theme="argyll"] .table th,
[data-theme="argyll"] table thead th,
[data-theme="argyll"] .ez-cal .ez-cal-header,
[data-theme="argyll"] .ez-cal .header,
[data-theme="argyll"] [id*="WorkingDayCalendar"] th,
[data-theme="argyll"] [id*="WorkingDayCalendar"] thead th {
  background: var(--argyll-green) !important;
  color: #f7f2e8 !important;
  border-color: var(--argyll-green-2) !important;
}

[data-theme="argyll"] [id*="WorkingDayCalendar"] td.fixed,
[data-theme="argyll"] [id*="WorkingDayCalendar"] td.fixed * {
  background: #eef1eb !important;
  color: var(--argyll-green) !important;
  border-color: var(--argyll-border) !important;
}

[data-theme="argyll"] .corp-panelheader,
[data-theme="argyll"] .corp-panelheader.form-control,
[data-theme="argyll"] span.corp-panelheader,
[data-theme="argyll"] div.corp-panelheader {
  background: var(--argyll-surface) !important;
  border: 1px solid var(--argyll-border) !important;
  border-radius: 12px;
  color: var(--argyll-green) !important;
}

[data-theme="argyll"] .corp-panelheader,
[data-theme="argyll"] .corp-panelheader label,
[data-theme="argyll"] .corp-panelheader span,
[data-theme="argyll"] .corp-panelheader .btn,
[data-theme="argyll"] .corp-panelheader .nav-link,
[data-theme="argyll"] .corp-panelheader .title,
[data-theme="argyll"] .corp-panelheader .caption {
  color: var(--argyll-green) !important;
}

[data-theme="argyll"] .corp-panelheader input,
[data-theme="argyll"] .corp-panelheader select,
[data-theme="argyll"] .corp-panelheader textarea,
[data-theme="argyll"] .corp-panelheader .form-control,
[data-theme="argyll"] .corp-panelheader .form-select {
  background: #fffdfa !important;
  color: var(--argyll-text) !important;
  -webkit-text-fill-color: var(--argyll-text) !important;
  border-color: var(--argyll-border) !important;
}

[data-theme="argyll"] .corp-panelheader .dropdown-menu,
[data-theme="argyll"] .dropdown-menu {
  background: #fffdfa !important;
  border: 1px solid var(--argyll-border) !important;
  box-shadow: 0 12px 28px rgba(34, 53, 45, 0.12);
}

[data-theme="argyll"] .corp-panelheader .dropdown-item,
[data-theme="argyll"] .dropdown-item {
  background: #fffdfa !important;
  color: var(--argyll-text) !important;
}

[data-theme="argyll"] .corp-panelheader .dropdown-item:hover,
[data-theme="argyll"] .corp-panelheader .dropdown-item:focus,
[data-theme="argyll"] .dropdown-item:hover,
[data-theme="argyll"] .dropdown-item:focus {
  background: #f2ece2 !important;
  color: var(--argyll-green) !important;
}

[data-theme="argyll"] .portal-msg-shell {
  background: var(--argyll-bg);
  color: var(--argyll-text);
}

[data-theme="argyll"] .portal-msg-card {
  background: #ffffff;
  border-color: var(--argyll-border);
  color: var(--argyll-text);
}

[data-theme="argyll"] .portal-msg-empty,
[data-theme="argyll"] .portal-msg-meta,
[data-theme="argyll"] .portal-msg-context {
  color: var(--argyll-muted);
  opacity: 1;
}

[data-theme="argyll"] .form-check-input {
  background-color: #ffffff !important;
  border-color: var(--argyll-border) !important;
}

[data-theme="argyll"] .form-check-input:checked {
  background-color: #ffffff !important;
  border-color: var(--argyll-gold) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23b69b6a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-7'/%3e%3c/svg%3e") !important;
}

[data-theme="argyll"] .form-check-input:focus {
  border-color: var(--argyll-gold) !important;
  box-shadow: 0 0 0 .2rem rgba(182, 155, 106, 0.18) !important;
}

[data-theme="argyll"] .argyll-workingday-calendar,
[data-theme="argyll"] .argyll-workingday-calendar table,
[data-theme="argyll"] .argyll-workingday-calendar tbody,
[data-theme="argyll"] .argyll-workingday-calendar tr,
[data-theme="argyll"] .argyll-workingday-calendar td,
[data-theme="argyll"] .argyll-workingday-calendar th {
  background: #fffdfa !important;
  color: var(--argyll-text) !important;
  border-color: var(--argyll-border) !important;
}

[data-theme="argyll"] .argyll-workingday-calendar th,
[data-theme="argyll"] .argyll-workingday-calendar thead th,
[data-theme="argyll"] .argyll-workingday-calendar .header,
[data-theme="argyll"] .argyll-workingday-calendar .month,
[data-theme="argyll"] .argyll-workingday-calendar .monthname {
  background: var(--argyll-green) !important;
  color: #f7f2e8 !important;
  border-color: var(--argyll-green-2) !important;
}

[data-theme="argyll"] .argyll-workingday-calendar a,
[data-theme="argyll"] .argyll-workingday-calendar span,
[data-theme="argyll"] .argyll-workingday-calendar div {
  color: var(--argyll-green) !important;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

[data-theme="argyll"] .argyll-workingday-calendar .selected,
[data-theme="argyll"] .argyll-workingday-calendar .active,
[data-theme="argyll"] .argyll-workingday-calendar td.active,
[data-theme="argyll"] .argyll-workingday-calendar td.selected,
[data-theme="argyll"] .argyll-workingday-calendar a.active {
  background: var(--argyll-gold) !important;
  color: #ffffff !important;
  border-color: var(--argyll-gold-2) !important;
}

[data-theme="argyll"] .argyll-workingday-calendar .today,
[data-theme="argyll"] .argyll-workingday-calendar td.today {
  background: #efe7d8 !important;
  color: var(--argyll-green-2) !important;
  border-color: var(--argyll-gold) !important;
}

[data-theme="dark"] .argyll-workingday-calendar,
[data-theme="dark"] .argyll-workingday-calendar table,
[data-theme="dark"] .argyll-workingday-calendar tbody,
[data-theme="dark"] .argyll-workingday-calendar tr,
[data-theme="dark"] .argyll-workingday-calendar td,
[data-theme="dark"] .argyll-workingday-calendar th {
  background: #232833 !important;
  color: #e7eaf0 !important;
  border-color: #434b5a !important;
}

[data-theme="dark"] .argyll-workingday-calendar th,
[data-theme="dark"] .argyll-workingday-calendar thead th,
[data-theme="dark"] .argyll-workingday-calendar .header,
[data-theme="dark"] .argyll-workingday-calendar .month,
[data-theme="dark"] .argyll-workingday-calendar .monthname {
  background: #2f3745 !important;
  color: #f4f6f8 !important;
  border-color: #566071 !important;
}

[data-theme="dark"] .argyll-workingday-calendar a,
[data-theme="dark"] .argyll-workingday-calendar span,
[data-theme="dark"] .argyll-workingday-calendar div {
  color: #d7dde6 !important;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

[data-theme="dark"] .argyll-workingday-calendar .selected,
[data-theme="dark"] .argyll-workingday-calendar .active,
[data-theme="dark"] .argyll-workingday-calendar td.active,
[data-theme="dark"] .argyll-workingday-calendar td.selected,
[data-theme="dark"] .argyll-workingday-calendar a.active {
  background: #b69b6a !important;
  color: #ffffff !important;
  border-color: #a58a5e !important;
}

[data-theme="dark"] .argyll-workingday-calendar .today,
[data-theme="dark"] .argyll-workingday-calendar td.today {
  background: #303847 !important;
  color: #f1dcae !important;
  border-color: #b69b6a !important;
}

[data-theme="light"] .argyll-workingday-calendar a,
[data-theme="light"] .argyll-workingday-calendar span,
[data-theme="light"] .argyll-workingday-calendar div,
[data-theme="corporateblue"] .argyll-workingday-calendar a,
[data-theme="corporateblue"] .argyll-workingday-calendar span,
[data-theme="corporateblue"] .argyll-workingday-calendar div,
[data-theme="teams"] .argyll-workingday-calendar a,
[data-theme="teams"] .argyll-workingday-calendar span,
[data-theme="teams"] .argyll-workingday-calendar div {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}



/* Menu icon size */
.menu-ico{
  width: 40px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain; /* helps <img> behave nicely */
}




/* =========================================================
   🚫 REMOVED ON PURPOSE:
   This rule was tinting Booking tab controls and breaking contrast
   (DO NOT re-add it)
   ========================================================= */
/*
[data-theme="corporateblue"] [id*="EditBooking"] .form-control,
[data-theme="corporateblue"] [id*="Booking"] .form-control {
  background-color: #eef4ff !important;
}
*/


/* ---- Teams theme (enhanced) ---- */
:root[data-theme="teams"] {
  --corp-bg:        #f6f6f8;
  --corp-surface:   #ffffff;
  --corp-panel:     #f0f0f4;
  --corp-primary:   #5b5fc7;
  --corp-primary-2: #4f52b4;
  --corp-deep:      #2b2b38;
  --corp-accent:    #7a7fe0;
  --corp-text:      #1f1f2e;
  --corp-muted:     #6b6f7a;
  --corp-border:    #d7d9e2;
  --corp-input-bg:  #ffffff;
  --corp-input-br:  #c7c9d3;
}

[data-theme="teams"] body {
  background: var(--corp-bg) !important;
  color: var(--corp-text) !important;
  font-family: "Segoe UI", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500;
}

[data-theme="teams"] .corp-panelheader,
[data-theme="teams"] #TopMenuWebPanel,
[data-theme="teams"] #CalendarMenuWebPanel,
[data-theme="teams"] #BookingHeaderWebPanel,
[data-theme="teams"] [id*="BookingHeaderWebPanel"],
[data-theme="teams"] #AddBookingHeaderPanel,
[data-theme="teams"] [id*="AddBookingHeaderPanel"]{
  background: #f3f2f7 !important;
  border: 1px solid #e0e1eb !important;
  color: #2b2b38 !important;
}

[data-theme="teams"] .corp-panelheader label,
[data-theme="teams"] .corp-panelheader span,
[data-theme="teams"] .corp-panelheader .btn,
[data-theme="teams"] .corp-panelheader .nav-link,
[data-theme="teams"] .corp-panelheader .title,
[data-theme="teams"] .corp-panelheader .caption,
[data-theme="teams"] .corp-panelheader .dash-funnel-title,
[data-theme="teams"] .corp-panelheader .dash-funnel-stage,
[data-theme="teams"] .corp-panelheader .dash-funnel-note{
  color: #2b2b38 !important;
}

[data-theme="teams"] .corp-panelheader .survey-card,
[data-theme="teams"] .corp-panelheader .survey-kpi{
  background: #ebe9f3 !important;
  border: 1px solid #d7d9e2 !important;
  color: #2b2b38 !important;
}

.portal-messages-archive{
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-top: .45rem;
  padding-right: .5rem;
}

.portal-messages-archive input{
  margin: 0 !important;
}

[data-theme="dark"] .portal-messages-archive,
[data-theme="dark"] .portal-messages-archive label{
  color: #e7eaf0 !important;
}

[data-theme="teams"] .portal-messages-archive,
[data-theme="teams"] .portal-messages-archive label{
  color: #2b2b38 !important;
}

[data-theme="teams"] .corp-panelheader .survey-donut-hole{
  background: #ebe9f3 !important;
}


.dash-funnel-bar{
  box-sizing: border-box;
}

[data-theme="dark"] .dash-funnel-bar{
  border-color: rgba(255,255,255,0.18) !important;
}

[data-theme="dark"] .sales-funnel-panel .dash-funnel-title,
[data-theme="dark"] .sales-funnel-panel .dash-funnel-stage,
[data-theme="dark"] .sales-funnel-panel .dash-funnel-note {
  color: #e7eaf0 !important;
}

[data-theme="dark"] .sales-funnel-panel .dash-funnel-bar {
  color: #0f172a !important;
}

[data-theme="corporateblue"] .dash-funnel-bar{
  border-color: rgba(18,28,45,0.18) !important;
}

[data-theme="teams"] .dash-funnel-bar{
  border-color: rgba(43,43,56,0.14) !important;
}

[data-theme="teams"] .sales-funnel-panel .dash-funnel-title,
[data-theme="teams"] .sales-funnel-panel .dash-funnel-stage,
[data-theme="teams"] .sales-funnel-panel .dash-funnel-note {
  color: #2b2b38 !important;
}

[data-theme="teams"] .sales-funnel-panel .dash-funnel-bar {
  color: #0f172a !important;
}

[data-theme="teams"] .corp-panelheader input,
[data-theme="teams"] .corp-panelheader select,
[data-theme="teams"] .corp-panelheader textarea,
[data-theme="teams"] .corp-panelheader .form-control,
[data-theme="teams"] .corp-panelheader .form-select{
  background: #f3f3f5 !important;
  color: #1f1f2e !important;
  border-color: #d9dbe4 !important;
}

[data-theme="teams"] .sidemenu,
[data-theme="teams"] #MainMenu,
[data-theme="teams"] #SmallMenu {
  background: #f3f2f7 !important;
  border-right: 1px solid #e0e1eb !important;
}

[data-theme="teams"] #MainMenu *,
[data-theme="teams"] #SmallMenu * {
  color: #2b2b38 !important;
}

[data-theme="teams"] .menu-row:hover {
  background: #e9e7f7 !important;
}

[data-theme="teams"] .menu-row-active {
  background: #dcd9f4 !important;
  color: #2b2b38 !important;
}

[data-theme="teams"] .btn-primary {
  background: #5b5fc7 !important;
  border-color: #5b5fc7 !important;
  color: #ffffff !important;
}

[data-theme="teams"] .btn-primary:hover {
  background: #4f52b4 !important;
  border-color: #4f52b4 !important;
}

[data-theme="teams"] .btn-outline-primary {
  border-color: #5b5fc7 !important;
  color: #5b5fc7 !important;
}

[data-theme="teams"] .btn-outline-primary:hover {
  background: #5b5fc7 !important;
  color: #ffffff !important;
}

[data-theme="teams"] .btn:hover,
[data-theme="teams"] .btn:focus {
  background: #5b5fc7 !important;
  border-color: #5b5fc7 !important;
  color: #ffffff !important;
}

/* Teams: style text-like inputs only (exclude checkbox/radio) */
[data-theme="teams"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
[data-theme="teams"] textarea,
[data-theme="teams"] select,
[data-theme="teams"] .form-control,
[data-theme="teams"] .form-select {
  background: #f3f3f5 !important;
  color: #1f1f2e !important;
  border-color: #c7c9d3 !important;
  border-radius: 8px;
}


[data-theme="teams"] .form-control:focus,
[data-theme="teams"] .form-select:focus,
[data-theme="teams"] input:focus,
[data-theme="teams"] textarea:focus,
[data-theme="teams"] select:focus {
  border-color: #7a7fe0 !important;
  box-shadow: 0 0 0 .2rem rgba(91,95,199,0.2) !important;
}

[data-theme="teams"] .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #d7d9e2 !important;
}

[data-theme="teams"] .dropdown-item {
  color: #2b2b38 !important;
}

[data-theme="teams"] .dropdown-item:hover,
[data-theme="teams"] .dropdown-item:focus {
  background: #edeaf8 !important;
  color: #2b2b38 !important;
}

[data-theme="teams"] .nav-tabs .nav-link.active,
[data-theme="teams"] .nav-pills .nav-link.active {
  background: #5b5fc7 !important;
  color: #ffffff !important;
}

[data-theme="teams"] .tab-content,
[data-theme="teams"] .card,
[data-theme="teams"] .panel,
[data-theme="teams"] .modal-content,
[data-theme="teams"] .accordion-item {
  background: #ffffff !important;
  border-color: #e0e1eb !important;
}

[data-theme="teams"] .menu-row .menu-icon label,
[data-theme="teams"] .menu-row .menu-text label {
  color: #2b2b38 !important;
}

/* =========================================================
   CHECKBOX VISIBILITY — ALL THEMES
   Covers both Bootstrap 5 (.form-check-input)
   and Bootstrap 4/TMS (.custom-control-input)
   Put at END of file.
   ========================================================= */
/* =========================================================
   CHECKBOX: FORCE NATIVE RENDERING (works with TMS/Bootstrap)
   Paste at END of CSS
   ========================================================= */

/* 1) Undo any “custom checkbox” styling */
input[type="checkbox"],
input[type="checkbox"].form-check-input,
input[type="checkbox"].custom-control-input,
.form-check-input[type="checkbox"],
.custom-control-input[type="checkbox"]{
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;

  background: initial !important;
  background-image: none !important;
  border: initial !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;

  width: 1.1rem !important;
  height: 1.1rem !important;
}

/* 2) Now “paint” the tick/fill using accent-color */
[data-theme="light"] input[type="checkbox"]{ accent-color: #0d6efd !important; }          /* bootstrap blue */
[data-theme="dark"] input[type="checkbox"]{ accent-color: #60a5fa !important; }           /* readable in dark */
[data-theme="corporateblue"] input[type="checkbox"]{ accent-color: #15398e !important; }  /* corp primary */
[data-theme="teams"] input[type="checkbox"]{ accent-color: #5b5fc7 !important; }          /* teams purple */

/* Enquiry Kanban theme surface */
.enq-theme-surface {
  background: #f8f9fa !important;
  color: #212529 !important;
}

[data-theme="dark"] .enq-theme-surface {
  background: #1f232b !important;
  color: #e7eaf0 !important;
}

[data-theme="dark"] .enq-lane-scroll {
  background: #1f232b !important;
  color: #e7eaf0 !important;
  border-color: #3f4654 !important;
}

[data-theme="dark"] .enq-lane-scroll .enq-card,
[data-theme="dark"] .enq-card {
  background: #2a2f39 !important;
  color: #e7eaf0 !important;
  border-color: #3f4654 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.22) !important;
}

[data-theme="dark"] .enq-lane-scroll .enq-card *,
[data-theme="dark"] .enq-card * {
  color: inherit !important;
}

[data-theme="dark"] .enq-lane-scroll .card-header,
[data-theme="dark"] .enq-lane-scroll .card-footer {
  background: #2a2f39 !important;
  color: #e7eaf0 !important;
  border-color: #3f4654 !important;
}

[data-theme="corporateblue"] .enq-theme-surface {
  background: var(--corp-panel) !important;
  color: #1a1a1a !important;
}

[data-theme="teams"] .enq-theme-surface {
  background: #f0f0f4 !important;
  color: #2b2b2b !important;
}

body .dash-kpi-rail,
body .dash-kpi-rail > div,
body .dash-chart-host,
body .dash-chart-host > div,
body .dash-pipeline-host,
body .dash-pipeline-host > div,
body .dash-monthly-host,
body .dash-monthly-host > div,
body .dash-forecast-header,
body .dash-forecast-header > div,
body .sales-funnel-panel,
body .sales-funnel-panel > div,
body .dash-explanation,
body .dash-explanation > div,
body .dash-overview-tab,
body .dash-overview-tab > div {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

[data-theme="dark"] .dash-kpi-rail,
[data-theme="dark"] .dash-kpi-rail > div {
  background: #252526 !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .dash-chart-host,
[data-theme="dark"] .dash-chart-host > div,
[data-theme="dark"] .dash-pipeline-host,
[data-theme="dark"] .dash-pipeline-host > div,
[data-theme="dark"] .dash-monthly-host,
[data-theme="dark"] .dash-monthly-host > div,
[data-theme="dark"] .dash-forecast-header,
[data-theme="dark"] .dash-forecast-header > div,
[data-theme="dark"] .sales-funnel-panel,
[data-theme="dark"] .sales-funnel-panel > div,
[data-theme="dark"] .dash-explanation,
[data-theme="dark"] .dash-explanation > div,
[data-theme="dark"] .dash-overview-tab,
[data-theme="dark"] .dash-overview-tab > div {
  background: #1f232b !important;
  border-color: #3f3f46 !important;
  color: #e7eaf0 !important;
}

[data-theme="dark"] .dash-forecast-title,
[data-theme="dark"] .dash-forecast-title label,
[data-theme="dark"] .dash-forecast-title div,
[data-theme="dark"] .dash-explanation,
[data-theme="dark"] .dash-explanation *,
[data-theme="dark"] .dash-monthly-host,
[data-theme="dark"] .dash-monthly-host *,
[data-theme="dark"] .dash-pipeline-host,
[data-theme="dark"] .dash-pipeline-host * {
  color: #e7eaf0 !important;
}

[data-theme="corporateblue"] .dash-kpi-rail,
[data-theme="corporateblue"] .dash-kpi-rail > div {
  background: #edf3ff !important;
  border-color: #c7d6ee !important;
}

[data-theme="corporateblue"] .dash-chart-host,
[data-theme="corporateblue"] .dash-chart-host > div,
[data-theme="corporateblue"] .dash-pipeline-host,
[data-theme="corporateblue"] .dash-pipeline-host > div,
[data-theme="corporateblue"] .dash-monthly-host,
[data-theme="corporateblue"] .dash-monthly-host > div,
[data-theme="corporateblue"] .dash-forecast-header,
[data-theme="corporateblue"] .dash-forecast-header > div,
[data-theme="corporateblue"] .sales-funnel-panel,
[data-theme="corporateblue"] .sales-funnel-panel > div,
[data-theme="corporateblue"] .dash-explanation,
[data-theme="corporateblue"] .dash-explanation > div,
[data-theme="corporateblue"] .dash-overview-tab,
[data-theme="corporateblue"] .dash-overview-tab > div {
  background: #f7f9fd !important;
  border-color: #c7d6ee !important;
  color: #0f1f3d !important;
}

[data-theme="teams"] .dash-kpi-rail,
[data-theme="teams"] .dash-kpi-rail > div {
  background: #efedf7 !important;
  border-color: #d7d9e2 !important;
}

[data-theme="teams"] .dash-chart-host,
[data-theme="teams"] .dash-chart-host > div,
[data-theme="teams"] .dash-pipeline-host,
[data-theme="teams"] .dash-pipeline-host > div,
[data-theme="teams"] .dash-monthly-host,
[data-theme="teams"] .dash-monthly-host > div,
[data-theme="teams"] .dash-forecast-header,
[data-theme="teams"] .dash-forecast-header > div,
[data-theme="teams"] .sales-funnel-panel,
[data-theme="teams"] .sales-funnel-panel > div,
[data-theme="teams"] .dash-explanation,
[data-theme="teams"] .dash-explanation > div,
[data-theme="teams"] .dash-overview-tab,
[data-theme="teams"] .dash-overview-tab > div {
  background: #f3f2f7 !important;
  border-color: #d7d9e2 !important;
  color: #2b2b38 !important;
}

[data-theme="teams"] .dash-forecast-title,
[data-theme="teams"] .dash-forecast-title label,
[data-theme="teams"] .dash-forecast-title div {
  color: #2b2b38 !important;
  background: transparent !important;
}

.enq-required-missing {
  border: 3px solid #ff0000 !important;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 0, 0, 0.30) !important;
  border-radius: 6px !important;
}
[data-theme="dark"] .enq-required-missing {
  border-color: #ff0000 !important;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.40), inset 0 0 0 1px rgba(255, 0, 0, 0.32) !important;
}


}

 /* ===== Reminder: restore post-it look and kill the "white card" effect ===== */
#activity-reminder-panel{
  background: transparent !important;  /* force true transparency */
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* The content layer should be transparent so the image shows through */
#activity-reminder-html,
#activity-reminder-header{
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ===== Top bar icon buttons ===== */
#TopMenuWebPanel .btn {
  height: 40px !important;
}

.gs-icon-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  min-width: 42px !important;
  width: 42px !important;
}

.gs-icon-btn svg {
  display: block;
}

.gs-topbar-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #dc3545;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ===== Global Search Bar ===== */
.global-search-wrap {
  position: absolute;
  left: calc(70px + 20% + 10px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  width: 15%;
  max-width: 300px;
  min-width: 36px;
  z-index: 100;
  transition: width .25s ease;
}

.global-search-wrap:focus-within {
  width: 20%;
  max-width: 300px;
  min-width: 200px;
}

.global-search-input {
  width: 100%;
  height: 40px;
  padding: 7px 34px 7px 14px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: #212529;
  transition: border-color .2s, box-shadow .2s, width .25s ease, padding .25s ease;
  box-sizing: border-box;
}

.global-search-input:focus {
  border-color: #80b0d4;
  box-shadow: 0 0 0 3px rgba(176,196,222,.35);
}

.global-search-input::placeholder {
  color: #999;
  font-style: italic;
}

.global-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  font-size: 14px;
}

.global-search-spinner {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: gs-spin .6s linear infinite;
  display: none;
}

@keyframes gs-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 950px) {
  .global-search-wrap {
    width: 36px;
    min-width: 36px;
    overflow: hidden;
  }
  .global-search-input {
    padding: 4px 32px 4px 32px;
    cursor: pointer;
  }
  .global-search-input::placeholder {
    color: transparent;
  }
  .global-search-icon {
    right: auto;
    left: 10px;
    pointer-events: none;
  }
  .global-search-wrap:focus-within {
    width: 200px;
    min-width: 200px;
    overflow: visible;
  }
  .global-search-wrap:focus-within .global-search-input {
    padding: 4px 32px 4px 12px;
    cursor: text;
  }
  .global-search-wrap:focus-within .global-search-input::placeholder {
    color: #999;
  }
  .global-search-wrap:focus-within .global-search-icon {
    right: 10px;
    left: auto;
  }
}

/* ===== Results Screen (appended to document.body) ===== */
.gs-screen {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: 94vw;
  max-height: 80vh;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  flex-direction: column;
  overflow: hidden;
  color: #212529;
}

.gs-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: lightsteelblue;
  border-bottom: 1px solid #b0c4de;
  flex-shrink: 0;
}

.gs-screen-title {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.gs-screen-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0 4px;
  transition: color .15s;
}

.gs-screen-close:hover {
  color: #dc3545;
}

.gs-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f4f5f7;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.gs-summary-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
}

.gs-summary-chip.customer  { background: #28a745; }
.gs-summary-chip.booking   { background: #007bff; }
.gs-summary-chip.invoice   { background: #fd7e14; }
.gs-summary-chip.enquiry   { background: #6f42c1; }

.gs-summary-total {
  font-size: 10px;
  color: #6c757d;
  margin-left: auto;
}

.gs-screen-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.gs-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}

.gs-result-row:hover {
  background: #e8eef4;
}

.gs-result-row:last-child {
  border-bottom: none;
}

.gs-result-where {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 100px;
}

.gs-type-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .3px;
}

.gs-type-badge.customer  { background: #28a745; }
.gs-type-badge.booking   { background: #007bff; }
.gs-type-badge.invoice   { background: #fd7e14; }
.gs-type-badge.enquiry   { background: #6f42c1; }

.gs-where-sep {
  color: #adb5bd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.gs-where-field {
  font-size: 10px;
  color: #6c757d;
  font-weight: 600;
  text-transform: lowercase;
  white-space: nowrap;
}

.gs-result-body {
  flex: 1;
  min-width: 0;
}

.gs-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-result-subtitle {
  font-size: 11px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-result-detail {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-open-arrow {
  flex: 0 0 auto;
  font-size: 16px;
  color: #b0c4de;
  transition: color .15s;
}

.gs-result-row:hover .gs-open-arrow {
  color: #007bff;
}

.gs-paging {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  border-top: 1px solid #eee;
  background: #f4f5f7;
  flex-shrink: 0;
  font-size: 12px;
  color: #6c757d;
}

.gs-paging .btn {
  font-size: 11px;
  padding: 2px 10px;
}

.gs-paging .btn:disabled {
  opacity: .4;
  cursor: default;
}

.gs-no-results {
  padding: 40px 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* Dark mode - search input */
[data-theme="dark"] .global-search-input {
  background: #2b3035;
  border-color: #495057;
  color: #e9ecef;
}

[data-theme="dark"] .global-search-input:focus {
  border-color: #6c9ec4;
  box-shadow: 0 0 0 3px rgba(108,158,196,.25);
}

[data-theme="dark"] .global-search-input::placeholder {
  color: #6c757d;
}

[data-theme="dark"] .global-search-icon {
  color: #6c757d;
}

/* Dark mode - results screen */
[data-theme="dark"] .gs-screen {
  background: #2b3035;
  border-color: #495057;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

[data-theme="dark"] .gs-screen-header {
  background: #343a40;
  border-bottom-color: #495057;
}

[data-theme="dark"] .gs-screen-title {
  color: #e9ecef;
}

[data-theme="dark"] .gs-screen-close {
  color: #adb5bd;
}

[data-theme="dark"] .gs-screen-close:hover {
  color: #ff6b6b;
}

[data-theme="dark"] .gs-summary-bar {
  background: #343a40;
  border-bottom-color: #495057;
}

[data-theme="dark"] .gs-summary-total {
  color: #adb5bd;
}

[data-theme="dark"] .gs-result-row {
  border-bottom-color: #3a4045;
}

[data-theme="dark"] .gs-result-row:hover {
  background: #3a4550;
}

[data-theme="dark"] .gs-where-sep {
  color: #6c757d;
}

[data-theme="dark"] .gs-where-field {
  color: #adb5bd;
}

[data-theme="dark"] .gs-result-title {
  color: #e9ecef;
}

[data-theme="dark"] .gs-result-subtitle {
  color: #adb5bd;
}

[data-theme="dark"] .gs-result-detail {
  color: #6c757d;
}

[data-theme="dark"] .gs-open-arrow {
  color: #6c757d;
}

[data-theme="dark"] .gs-result-row:hover .gs-open-arrow {
  color: #6cb4ee;
}

[data-theme="dark"] .gs-paging {
  background: #343a40;
  border-top-color: #495057;
  color: #adb5bd;
}

[data-theme="dark"] .gs-no-results {
  color: #6c757d;
}

@media (max-width: 900px) {
  .gs-screen {
    width: 96vw;
    max-height: 85vh;
  }
}

@media (max-width: 700px) {
  .global-search-wrap {
    left: auto;
    right: 8px;
    width: 36px;
    min-width: 36px;
    overflow: hidden;
  }
  .global-search-wrap:focus-within {
    width: 200px;
    min-width: 200px;
    overflow: visible;
  }
}
