/* ==========================================================================
   app.css — page-specific rules of THIS app (moved out of the old style.css).
   Each production app keeps its own app.css; core.css stays identical.
   Colours use the theme tokens where the old value was a generic grey/blue.
   ========================================================================== */

/* ---- login page: forms toggled by js/admin-login.js ---- */
#link-login, #form-reset { display: none; }
.captchsize { transform: scale(0.80); transform-origin: 0 0; }

/* ---- old layout variants (kept for pages that still use them) ---- */
body.fixed-sidebar .navbar-static-side { position: sticky; top: 0; height: 100vh; }
.navbar-fixed-top { position: sticky; top: 0; z-index: 20; }
.fixed-footer { position: sticky; bottom: 0; }

/* ---- gallery ---- */
.gallery > .row > div { margin-bottom: 15px; }
.gallery a img, .gallery img, .gallery-image img, a[data-toggle=lightbox-image] img { max-width: 100%; }
.gallery a:hover img, .gallery-image:hover img, a[data-toggle=lightbox-image]:hover img { opacity: 0.75; }

/* ---- icon demo helpers (old) ---- */
.displayoi { margin-top: 15px; }
.displayoi .oi { font-size: 25px; margin-right: 10px; }
.fa-item { margin-top: 15px; }
.fa-item .fa { font-size: 25px; margin-right: 10px; }

/* ---- bootstrap-toggle speed variants ---- */
.slow .toggle-group { transition: left 0.7s; }
.fast .toggle-group { transition: left 0.1s; }
.quick .toggle-group { transition: none; }

/* ---- search box ---- */
.search-form { position: relative; float: left; width: 250px; margin: 0 5px; }
.searchbox {
  width: 250px; height: var(--control-h); padding: 0 36px 0 12px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.searchbox:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: 0; }
.searchbox-dark { background: var(--n-50); }
.searchbutton { position: absolute; top: 6px; right: 8px; font-size: 16px; color: var(--text-muted); background: none; border: none; }

/* ---- carousel ---- */
.carousel-control span { position: absolute; top: 50%; left: 50%; z-index: 5; display: inline-block; }
.carousel-control.left:hover, .carousel-control.right:hover { background: rgb(0 0 0 / 0.5); }
.carousel-inner > .item > img, .carousel-inner > .item > a > img { width: 100%; }

/* ---- coloured panel headings & filter buttons (device statuses) ---- */
.panel-heading.greenheading,     .btn-greenheading     { background-color: #1D7A46; color: #FFF; }
.panel-heading.blueheading,      .btn-blueheading      { background-color: #2175D9; color: #FFF; }
.panel-heading.darkgreenheading, .btn-darkgreenheading { background-color: #355E3B; color: #FFF; }
.panel-heading.turqoiseheading,  .btn-turqoiseheading  { background-color: #2E8FA3; color: #FFF; }
.panel-heading.orangeheading,    .btn-orangeheading    { background-color: #F2A900; color: #2B1D00; }
.panel-heading.redheading,       .btn-redheading       { background-color: #C0352E; color: #FFF; }
.panel-heading.blackheading,     .btn-blackheading     { background-color: #23252B; color: #FFF; }
.panel-heading:is(.greenheading, .blueheading, .darkgreenheading, .turqoiseheading, .redheading, .blackheading) :is(.panel-title, i, .icon, .panel-options .btn) { color: inherit; }
.panel-heading.orangeheading :is(.panel-title, i, .icon, .panel-options .btn) { color: inherit; }
.btn-filter { padding: 10px 6px !important; white-space: normal !important; border: 1px solid var(--border) !important; width: 12.5%; }
.btn-filter:focus { color: inherit; }
.btn-filter:hover, .btn-filter-sel:hover { background-color: var(--n-800); color: #FFF; }
.btn-filter-sel { padding: 9px 6px !important; white-space: normal !important; border: 1px solid var(--border) !important; box-shadow: inset 0 0 0 4px var(--n-800); }
.btn-filter-sel:focus { color: inherit; }
.filterselected { filter: brightness(75%); }

/* ---- small helpers used across pages ---- */
.hiddenspan { display: none; }
.columned { column-count: 3; }
.killbill { display: none; visibility: hidden; }
.marginbott1 { margin-bottom: 1em; }
.margintop1 { margin-top: 1em; }
.centeraligned { text-align: center; }
.vertaligned { vertical-align: middle; }
.dayseparator { width: 50%; text-align: left; margin-left: 0; }
.statusgreen { color: var(--success); }
.statusblue { color: var(--info); }
.statusred { color: var(--danger); }
.inline-alert {
  padding: 1px 6px; font-size: 11.5px; font-weight: 600;
  color: color-mix(in oklab, var(--danger), #000 15%);
  background: color-mix(in oklab, var(--danger) 14%, #FFF);
  border-radius: 3px;
}
.smallrightbutton {
  float: right; clear: both; margin-top: -2px; padding: 1px 6px;
  font-size: 0.8em; color: #FFF; background-color: var(--n-500);
  border: 0; border-radius: 3px;
}
#customalert {
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  top: 30%;
  left: 40%;
  width: 20%;
  min-width: 260px;
  height: fit-content;
  color: #FFF;
  text-align: center;
  background-color: var(--n-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.customalertcontent { padding: 0.7em; }

/* ---- employees page ---- */
.leaverbutton { background-color: var(--danger-solid); }
.leavericon { color: #FFF !important; }
.defaultemployeepanel { display: none; }
.entitynamediv { text-align: center; margin-bottom: -0.5em; }
.useractivesince { margin-top: -0.3em; }
.leaveannounceby { margin-top: 0.5em; }
.leaveannouncebyspan { color: var(--danger); }
.addempbtn { padding: unset; }
.empnametxt { font-size: 1.1em; padding: 10px 10px 7px !important; }
.empposition { text-align: center; }
.fa-whatsapp.copybutton { margin-left: 1em; display: inline; }
.onboardinginitial, .offboardinginitial { display: initial; }
#offboarding { margin-left: 1em; }
.emparchiveemptycontainer { height: 100%; }

/* ---- devices pages ---- */
.devicebtndiv { padding: unset; display: flex; flex-wrap: wrap; gap: 6px; }
.filterxtra { border-radius: var(--radius); font-size: 12px; }
#locationfilter { margin-top: 2em; }
.alllocations { margin-top: -0.5em; margin-right: 2em; }
.locationlabel { margin-left: 0.3em; margin-right: 2em; font-weight: 500; }
.statusdiv { margin-bottom: 1em; margin-top: 0.4em; }
.statustxt { margin-left: 4px; font-size: 1.1em; }
.setstatusselect { width: 30%; display: inline-block; }
.setemployeeselect { width: 30%; display: none; }
.setpriceinput { width: 5%; display: none; }
.setsaledateinput { width: 30%; display: none; }
.request_response { margin-bottom: 1em; }
.reqresponsetitle { vertical-align: top; }
.reqassigntxt { font-size: 1.1em; vertical-align: middle; }
.location_editable { display: inline; }
.deviceinfotable { margin-top: 4.8em; }
.addtrouble { margin-left: 1em; }
.remote_editable { display: inline; }
.remotecopybutton { margin-left: 1em; }
.defaultclosed { display: none; }
.devimgsdiv { text-align: center; }
.devimgsdivinput { display: inline; }

/* ---- messaging ---- */
.warnmessagedialog { width: auto !important; }
.sendmessagebuttondiv { padding: 15px; text-align: center; }
.viewmessagetable { font-size: 1.2em; }
.vmdaterow { width: 30%; }
