/* @layer-wrapped:base */
@layer base {
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

html {
  --custom-nav-bg: #0f172a;
  --custom-toolbar-bg: #111827;
  --custom-footer-bg: #0f172a;
  --custom-profile-button-bg: #2563eb;
  --custom-dashboard-bg: #f4f7fb;
  --custom-admin-header-bg: #1d4ed8;
  --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-sans);
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

nav {
  display: block;
}

body {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
  color: #515151;
  text-align: left;
  background-color: #e9edf4;
  min-height: 100vh;
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: #3f84fc;
  text-decoration: none;
  background-color: transparent;
}

a:not([href]) {
  color: #fff !important;
}

a:hover {
  color: var(--color-text-link-hover) !important;
  text-decoration: underline;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  font-family: var(--font-display);
}

h1,
.h1 {
  font-size: 2.5rem;
  font-weight: normal;
}

.body-login {
  background-color: #1b1f27;
  font-family: var(--font-sans);
}
.area-login {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items:center;
}

.login, .register {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ddd;
  width: 360px;
  height: 340px;
  padding: 18px 34px;
  border-radius: 6px;
}

#message {
  width:100%;
  padding-top: 10px;
  color: #f76b6b;
  font-size: .9rem;
  font-weight: bold;
  text-align: center;
}
.register {
  height: 440px;
}

.login form, .register form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.login h1.lead {
  padding-top: 14px;
}
.login input, .register input {
  margin-top: 10px;
  background-color: #bbb;
  padding-left: 8px;
  height: 45px;
  border: none;
  outline: none;
  border-radius: 6px;
  text-align: center;
}

input[type="file"] {
  display: none;  
}

#label-file {
  margin: 0 auto;
  cursor: pointer;
}

#preview-reg {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: var(--color-primary) 2px solid;
  margin: 10px auto;
}

#preview-reg-server {
    width: 100px;
    height: 100px;
    padding: 6px;
    border-radius: 8px;
    border: var(--color-primary) 2px solid;
    margin: 10px auto;
}

#preview-reg:hover, #preview-reg-server:hover {
  transition: 1s;
  border-color: var(--color-primary-hover);
}

.reg-server{
  display: flex;
  text-align: center;
  flex-wrap: wrap;
  overflow-y: scroll;
  overflow: hidden;
}

.box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex: 1;
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 8px;
  margin: 5px;
  text-align: center;
  padding: 20px;
  background-color: #ddd;
}

.info-server {
  flex-basis: 310px;
}

.info-link button {
  margin-top: 2rem !important;
}

.info-link .form-check {
  padding-left: 1rem;
}

.info-ac {
  max-width: 600px;
}
.info-ac select {
  text-align: center !important;
}

.imgInfo-ac {
  display: block !important;
  background-color: #e9e5e5 !important;
  
}

.form-status {
  width: 100% !important;
  

}
.reg-server input[type="text"],
.info-settings-server input[type="text"],
.responsabilities-server input[type="text"] {
  width: 160px;
  height: 28px;
  padding: .3rem .5rem;
  margin: .3rem;
  text-align: center;
}

.reg-server select,
.info-settings-server select {
  width: 160px;
  height: 30px;
  margin: .3rem;
}

.form-status {
  width: 160px;
  height: 30px;
  display: flex;
  padding-top: 8px;
  padding-left: 4rem !important;
  text-align: left;
}

.form-status i {
  margin-left: 10px;
  font-size: 1.4rem;
}
.form-status i:hover {
  color: var(--color-primary-hover);
}

.info-settings-server {
  align-content: flex-start;
}

.info-settings-server option{
  text-align: left;
}

.responsabilities-server {
  align-content: flex-start;
}

.responsabilities-server input[type="text"]{
  width: 100%;
}

.login img {
  padding-top: 10px;
  width: 140px;
}

.login input::placeholder, .register input::placeholder {
  color: #1b1f27;
}

.login a, .register a {
  color: #3f84fc;
}

#admin-nav:hover {
  color: #000 !important;
}
.btnclass {
  display: block;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  margin-top: 20px;
  padding: 6px 10px;
}

.btnclass:hover{
  background-color: var(--color-primary-hover) !important;
  transition: 1s;
}

.card {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0;
}

.card-body {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem;
}

.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  text-align: center;
}

.dashboard {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

.dashboard-app {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 2;
  -webkit-flex-grow: 2;
  -ms-flex-positive: 2;
  flex-grow: 2;
  margin-top: 60px;
  min-width: 0;
  height: calc(100vh - 60px);
  min-height: calc(100vh - 60px);
  overflow: hidden;
}

.dashboard-content {
  background: url("/img/signal_searching.svg") no-repeat;
  background-color: var(--custom-dashboard-bg, #e9e9e9);
  background-size: 25%;
  background-position: bottom right;
  display: flex;
  -webkit-box-flex: 2;
  -webkit-flex-grow: 2;
  -ms-flex-positive: 2;
  flex-grow: 2;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.dashboard-nav {
  min-width: 238px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--custom-nav-bg, #1a1a21);
}

.dashboard-compact .dashboard-nav {
  width: 72px;
}

.dashboard-nav header {
  min-height: 60px;
  padding: 8px 27px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.dashboard-nav header .menu-toggle {
  display: none;
  margin-right: auto;
}

.dashboard-nav a {
  color: #3b3636;
}

.dashboard-nav a:hover {
  text-decoration: none;
}

.dashboard-nav a {
  color: #fff;
}

#dashboard-button {
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--custom-profile-button-bg, #6c757d);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

#profile-anchor li a{
  color: #fff;
  text-align: center !important;
}

#profile-anchor {
  background-color: var(--custom-profile-button-bg, #6c757d) !important;
}

#profile-anchor li a:hover{
  background-color: #bbb;
  color: #000 !important;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 20px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  color: #515151;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.brand-logo:focus,
.brand-logo:active,
.brand-logo:hover {
  color: #dbdbdb;
  text-decoration: none;
}

.brand-logo img {
  width: 140px;
  margin-right: 10px;
}

.dashboard-nav-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-nav-item {
  min-height: 56px;
  padding: 8px 20px 8px 70px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  letter-spacing: 0.02em;
  transition: ease-out 0.5s;
}

.dashboard-nav-item i {
  width: 36px;
  font-size: 19px;
  margin-left: -40px;
}

.dashboard-nav-item:hover {
  background-color: #04cfb1;
  background: rgba(255, 255, 255, 0.04);
}

.active {
  background: rgba(0, 0, 0, 0.1);
}

.dashboard-nav-dropdown {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.dashboard-nav-dropdown.show {
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle {
  font-weight: bold;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle:after {
  -webkit-transform: none;
  -o-transform: none;
  transform: none;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.dashboard-nav-dropdown-toggle:after {
  content: "";
  margin-left: auto;
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(81, 81, 81, 0.8);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.dashboard-nav .dashboard-nav-dropdown-toggle:after {
  border-top-color: rgba(255, 255, 255, 0.72);
}

.dashboard-nav-dropdown-menu {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.dashboard-nav-dropdown-item {
  min-height: 40px;
  padding: 8px 20px 8px 70px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  transition: ease-out 0.5s;
}

.dashboard-nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #04cfb1;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
  text-decoration: none;
  color: #04cfb1;
}

.menu-toggle i {
  font-size: 20px;
}

.dashboard-toolbar {
  height: 60px;
  background: var(--custom-toolbar-bg, #18181b);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 8px 27px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}

.dashboard-toolbar h1 {
  font-size: 1.5rem;
  color: #fdfdfd;
  padding-left: 128px;
}

.nav-item-divider {
  height: 1px;
  margin: 1rem 0;
  overflow: hidden;
  background-color: rgba(236, 238, 239, 0.3);
}

main {
  width: min(100%, 70rem);
  margin: 0 auto;
}

main p:nth-last-child(1) {
  margin-bottom: 2rem;
}

#dash {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  padding: clamp(1rem, 2vw, 2rem);
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  overflow-y: auto;
  scroll-behavior: smooth;
  gap: 1.2rem;
}

#dash::-webkit-scrollbar {
  width: 0px;
}

#dash.dash-layout-flow {
  display: flex;
  justify-content: center;
}

#dash.dash-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: stretch;
  gap: 1.25rem;
  width: 100%;
}

#dash.dash-layout-grid > * {
  min-width: 0;
}

#dash.dash-layout-grid > section,
#dash.dash-layout-grid > main,
#dash.dash-layout-grid > .container-fluid {
  grid-column: 1 / -1;
}

.dash-toolbar-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 0.25rem;
  background: linear-gradient(180deg, rgba(233, 233, 233, 0.98), rgba(233, 233, 233, 0.82), rgba(233, 233, 233, 0));
}

.dash-device-card {
  width: 100%;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dash-device-card .card-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dash-device-media {
  height: 148px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.7));
}

.dash-device-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-weight: 700;
}

.status-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.status-online {
  color: #14803d;
}

.status-online .status-dot {
  background-color: #22c55e;
}

.status-offline {
  color: #b91c1c;
}

.status-offline .status-dot {
  background-color: #ef4444;
}

.dash-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(15, 23, 42, 0.15);
  color: #334155;
  font-size: 1.05rem;
  padding: 2rem;
}

/* #loading + rotate-scale-up: regras legadas do painel TV antigo
   removidas. O loading novo (app-loading-shell) vive em layout-overrides.css
   na layer overrides e usa keyframe app-loading-spin. */

.card-header span,
ul li span {
  font-weight: bold;
}

.fa-circle-info {
  font-size: 1.4rem;
  color: #3f84fc;
  cursor: pointer;
}

dialog {
  border: none;
  border-radius: 0.4rem;
  box-shadow: 0 0 1em rgb(0 0 0 / 0.3);
  position: relative;
  background-color: #aaa;
}

dialog i {
  position: absolute;
  border: none;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background-color: red;
  font-size: 1.4em;
  border-radius: 50%;
  color: #fff;
}

dialog:focus-visible {
  outline: transparent;
}

dialog::backdrop {
  background-color: rgb(0 0 0 / 0.5);
}

figure {
  max-height: 520px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin: 1rem;
}

.info-imgs {
  max-height: 520px;
  object-fit: contain;
  border-radius: 0.4rem;
  display: block;
  padding: 0.6rem 0rem;
}

.card-img-top {
  object-fit: contain !important;
}

.vw {
  background-color: #1b6499 !important;
}
.nissan {
  background-color: #b01818 !important;
}
.jkseg {
  background-color: #48d1cc !important;
}
a {
  text-decoration: none !important;
}
ul li {
  list-style: none;
}

.accordion-button {
  text-align: center;
  padding: 0 !important;
}


.container-footer {
  display: flex;
  background: var(--custom-footer-bg, #1a1a21);
  justify-content: center;
  align-items: center;
  gap: 100px;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 1rem;
  flex: 0 0 auto;
}
.container-footer img {
  height: 24px;
}

.container-footer a {
  display: block;
}
.container-footer p {
  color: #bebebe;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  padding-top: 14px;
}

.dashboard-content {
  margin-bottom: 0;
}

/* Scroll Config */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #cfcdcf;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #b1afaf;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(62, 65, 62, 0.5);
}

@media (min-width: 992px) {
  .dashboard-app {
    margin-left: 238px;
  }

  .dashboard-compact .dashboard-app {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 15px 0px;
    background-size: 42%;
  }
}

@media (max-width: 992px) {
  .dashboard-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1070;
    height: 100vh;
  }

  .dashboard-nav.mobile-show {
    display: block;
  }
}

@media (max-width: 992px) {
  .dashboard-nav header .menu-toggle {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
}

@media (min-width: 992px) {
  .dashboard-toolbar {
    left: 238px;
  }

  .dashboard-compact .dashboard-toolbar {
    left: 0;
  }
}

@media (max-width: 640px) {
  #dash {
    min-height: 0;
    padding: 0.75rem;
  }

  #dash.dash-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .container-footer {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .dashboard-toolbar {
    padding: 8px 12px;
  }

  .dashboard-toolbar h1 {
    font-size: 1rem;
    padding-left: 0;
    text-align: center;
  }

  #dashboard-button {
    padding: 0.35rem 0.5rem;
  }

  #dashboard-button span {
    display: none;
  }

  .avatar {
    margin-right: 0;
  }

  .dash-device-card {
    border-radius: 14px;
  }

  .dash-device-card .card-header {
    min-height: 56px;
    padding: 0.65rem;
    font-size: 0.9rem;
  }

  .dash-device-media {
    display: none;
  }

  .list-group-item {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
  }

  .status-chip {
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .status-label {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  #dash.dash-layout-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    width: 100%;
  }

  .dashboard-content {
    background-image: none;
  }
}

.monitoring-ack-note-input {
  width: 100%;
  margin: 12px 0 0;
  box-sizing: border-box;
}

.settings-menu-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-menu-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.settings-menu-order-row .settings-menu-order-input {
  max-width: 140px;
}

.settings-unified-config-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-unified-config-shell.is-disabled {
  opacity: 0.68;
}

.settings-unified-disabled-hint {
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #475569;
  font-size: 0.92rem;
}

.settings-unified-company-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-unified-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.settings-unified-preview-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.settings-unified-preview strong {
  color: #0f172a;
}

.settings-unified-preview small {
  color: #475569;
}

.settings-unified-preview-warning {
  margin-top: 0.35rem;
  color: #b91c1c;
  font-weight: 600;
}

.settings-unified-view-row.is-invalid {
  border-color: rgba(220, 38, 38, 0.36) !important;
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.92), rgba(248, 250, 252, 0.98)) !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.settings-unified-view-row.is-invalid .settings-unified-preview {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.settings-unified-company-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-unified-company-search {
  position: relative;
  flex: 1 1 320px;
}

.settings-unified-company-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.settings-unified-company-search input {
  padding-left: 36px;
}

.settings-unified-company-actions,
.settings-unified-company-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-unified-company-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.settings-unified-company-group {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.settings-unified-company-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-unified-company-group-header strong,
.settings-unified-company-item strong {
  display: block;
  color: #0f172a;
}

.settings-unified-company-group-header small,
.settings-unified-company-item small {
  color: #64748b;
}

.settings-unified-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.settings-unified-company-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.settings-unified-company-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.settings-unified-company-item input {
  margin-top: 2px;
}

.settings-unified-company-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.monitoring-summary-card.is-secondary {
  border-color: rgba(59, 130, 246, 0.16);
}

.monitoring-unified-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.monitoring-unified-device-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 34px -28px rgba(15, 23, 42, 0.32);
}

.monitoring-unified-device-card.is-offline {
  border-color: rgba(239, 68, 68, 0.24);
  box-shadow: 0 18px 34px -28px rgba(239, 68, 68, 0.35);
}

.monitoring-unified-device-card.is-attending {
  border-color: rgba(245, 158, 11, 0.24);
}

.monitoring-unified-device-card.is-unstable {
  border-color: rgba(59, 130, 246, 0.22);
}

.monitoring-unified-device-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.monitoring-unified-device-card-head .monitoring-model-thumb {
  flex: 0 0 auto;
}

.monitoring-unified-device-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.monitoring-unified-device-card-title strong {
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.2;
}

.monitoring-unified-device-card-title span {
  color: #64748b;
  font-weight: 600;
}

.monitoring-unified-device-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.monitoring-unified-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
}

.monitoring-unified-meta-chip.is-category {
  background: #eef2ff;
  color: #4338ca;
}

.monitoring-unified-meta-chip.is-mode {
  background: #f8fafc;
  color: #334155;
}

.monitoring-unified-device-card-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}

.monitoring-unified-meta-line {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.monitoring-unified-meta-line span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.monitoring-unified-meta-line strong {
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.monitoring-unified-device-card-status .monitoring-status-stack {
  align-items: flex-start;
}

.monitoring-unified-device-card-status .monitoring-status-stack.is-unified {
  gap: 0.45rem;
}

.monitoring-unified-device-card-status .monitoring-status-meta.is-secondary {
  color: #475569;
  font-weight: 700;
}

.monitoring-unified-device-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  color: #64748b;
  font-size: 0.8rem;
}

.monitoring-unified-device-card-footer strong {
  color: #334155;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .monitoring-unified-device-card-locations {
    grid-template-columns: 1fr;
  }
}

:root[data-theme-mode="dark"] .monitoring-unified-device-card,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card {
  border-color: rgba(51, 65, 85, 0.9);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
}

:root[data-theme-mode="dark"] .monitoring-unified-device-card-title strong,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card-title strong,
:root[data-theme-mode="dark"] .monitoring-unified-meta-line strong,
:root[data-theme-mode="netzor"] .monitoring-unified-meta-line strong,
:root[data-theme-mode="dark"] .monitoring-unified-device-card-footer strong,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card-footer strong {
  color: #f8fafc;
}

:root[data-theme-mode="dark"] .monitoring-unified-device-card-title span,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card-title span,
:root[data-theme-mode="dark"] .monitoring-unified-device-card-footer,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card-footer {
  color: rgba(226, 232, 240, 0.78);
}

:root[data-theme-mode="dark"] .monitoring-unified-meta-chip.is-mode,
:root[data-theme-mode="netzor"] .monitoring-unified-meta-chip.is-mode {
  background: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
}

:root[data-theme-mode="dark"] .monitoring-unified-device-card-status .monitoring-status-meta.is-secondary,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card-status .monitoring-status-meta.is-secondary {
  color: rgba(226, 232, 240, 0.88);
}

:root[data-theme-mode="dark"] .monitoring-unified-device-card-footer,
:root[data-theme-mode="netzor"] .monitoring-unified-device-card-footer {
  border-top-color: rgba(51, 65, 85, 0.9);
}

.monitoring-report-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #f8fafc;
}

.report-hero h2 {
  margin: 8px 0 6px;
  font-size: 1.8rem;
}

.report-hero p {
  margin: 0;
  color: rgba(248, 250, 252, 0.7);
}

.report-eyebrow {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
}

.report-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-export-actions .btn {
  opacity: 1;
}

.report-export-actions .btn-outline-dark {
  background: rgba(248, 250, 252, 0.16);
  border-color: rgba(248, 250, 252, 0.6);
  color: #f8fafc;
}

.report-export-actions .btn-outline-dark:hover,
.report-export-actions .btn-outline-dark:focus {
  background: rgba(248, 250, 252, 0.22);
  border-color: rgba(248, 250, 252, 0.75);
  color: #ffffff;
}

.report-export-actions .btn-dark {
  background: #0ea5a4;
  border-color: #0ea5a4;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(14, 165, 164, 0.25);
}

.report-export-actions .btn-dark:hover,
.report-export-actions .btn-dark:focus {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 3fr);
  gap: 20px;
}

.report-filter-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.report-filter-card h5 {
  margin-bottom: 12px;
}

.report-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.report-company-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.report-company-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: #f8fafc;
  cursor: pointer;
}

.report-company-option input {
  margin-right: 6px;
}

.report-company-option span {
  font-weight: 600;
}

.report-company-option small {
  color: #64748b;
}

.report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.monitoring-report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-summary-card {
  flex: 1 1 160px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.report-summary-card span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
}

.report-summary-card strong {
  display: block;
  font-size: 1.4rem;
}

.report-summary-card.is-online {
  border-color: rgba(34, 197, 94, 0.3);
}

.report-summary-card.is-offline {
  border-color: rgba(239, 68, 68, 0.3);
}

.report-summary-card.is-attending {
  border-color: rgba(234, 179, 8, 0.3);
}

.report-summary-card.is-unstable {
  border-color: rgba(59, 130, 246, 0.3);
}

.report-table-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
}

.report-primary {
  font-weight: 600;
}

.report-secondary {
  color: #64748b;
  font-size: 0.85rem;
}

.report-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.report-status-chip.is-online {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.report-status-chip.is-offline {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.report-status-chip.is-attending {
  background: rgba(234, 179, 8, 0.2);
  color: #92400e;
}

.report-status-chip.is-unstable {
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.report-footer {
  display: flex;
  justify-content: flex-end;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.report-pagination-actions {
  display: inline-flex;
  gap: 10px;
}

@media (max-width: 1100px) {
  .report-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-filter-grid {
    grid-template-columns: 1fr;
  }
}

}
