:root {
  --gs-primary: #204986;
  --gs-primary-dark: #16345f;
  --gs-primary-soft: #eaf1fb;
  --gs-accent: #148a78;
  --gs-page: #f5f7fa;
  --gs-surface: #ffffff;
  --gs-surface-soft: #f8fafc;
  --gs-text: #182230;
  --gs-muted: #667085;
  --gs-border: #dbe3ed;
  --gs-success: #16794e;
  --gs-success-soft: #e8f6ef;
  --gs-warning: #9a5b00;
  --gs-warning-soft: #fff4dc;
  --gs-danger: #b42318;
  --gs-danger-soft: #fdecea;
  --gs-info: #1769aa;
  --gs-info-soft: #e7f3fb;
  --gs-shadow: 0 8px 24px rgba(24, 34, 48, .07);
  --gs-shadow-lg: 0 16px 42px rgba(24, 34, 48, .1);
}

html {
  scroll-behavior: smooth;
}

body.serviceplus {
  background: var(--gs-page);
  color: var(--gs-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.serviceplus #content {
  min-height: calc(100vh - 238px);
}

body.serviceplus a {
  color: var(--gs-primary);
}

body.serviceplus .container {
  width: min(100% - 30px, 1240px);
  max-width: 1240px;
}

body.serviceplus .navbar-main {
  min-height: 76px;
  border: 0;
  border-bottom: 1px solid var(--gs-border);
  background: var(--gs-surface);
}

body.serviceplus .navbar-main .navbar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
}

body.serviceplus .navbar-main .navbar-brand img {
  max-width: 132px;
  max-height: 52px;
  object-fit: contain;
}

.sp-brand-context {
  display: none;
  margin-left: 17px;
  padding-left: 17px;
  border-left: 1px solid var(--gs-border);
  line-height: 1.25;
}

.sp-brand-context span,
.sp-brand-context strong {
  display: block;
}

.sp-brand-context span {
  margin-bottom: 2px;
  color: var(--gs-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sp-brand-context strong {
  max-width: 250px;
  overflow: hidden;
  color: var(--gs-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 10px !important;
  color: var(--gs-text) !important;
}

.sp-user-trigger:hover,
.sp-user-trigger:focus {
  border-color: var(--gs-border) !important;
  background: var(--gs-surface-soft);
}

.sp-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--gs-primary-soft);
  color: var(--gs-primary);
  font-size: 13px;
  font-weight: 800;
}

.sp-user-copy {
  display: block;
  max-width: 230px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-user-copy small {
  color: var(--gs-muted);
  font-size: 11px;
  font-weight: 500;
}

body.serviceplus .navbar-main .user {
  padding: 10px 0 !important;
  margin: 0 !important;
}

body.serviceplus .navbar-main .user .dropdown-menu {
  top: 55px !important;
  left: auto !important;
  right: 0;
  min-width: 220px;
  border: 1px solid var(--gs-border);
  border-radius: 7px;
  box-shadow: var(--gs-shadow-lg);
  overflow: hidden;
}

body.serviceplus .dropdown-item {
  padding: 10px 14px;
  color: var(--gs-text);
  font-size: 13px;
}

body.serviceplus .dropdown-item:hover,
body.serviceplus .dropdown-item:focus {
  background: var(--gs-primary-soft);
  color: var(--gs-primary);
}

body.serviceplus .nav-scroller {
  border-bottom: 1px solid var(--gs-border);
  box-shadow: 0 4px 14px rgba(24, 34, 48, .04) !important;
}

body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link {
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link i {
  color: #7b8ca4;
  font-size: 13px;
}

body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link:hover {
  color: var(--gs-primary);
}

body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link.active {
  color: var(--gs-primary);
  font-weight: 750;
}

body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link.active i {
  color: var(--gs-primary);
}

body.serviceplus .page-name {
  margin-bottom: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--gs-border);
  background: #eef3f8;
  color: var(--gs-text);
}

body.serviceplus .page-name h1 {
  color: var(--gs-text);
  font-size: 28px;
  font-weight: 750;
}

body.serviceplus .page-name p {
  margin-top: 6px;
  color: var(--gs-muted) !important;
  font-size: 14px;
}

.sp-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sp-page-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--gs-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sp-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--gs-primary);
  font-size: 13px;
  font-weight: 700;
}

body.serviceplus .page-name + .container,
body.serviceplus .page-name + .container-fluid {
  padding-top: 30px;
}

body.serviceplus h2.title-color,
body.serviceplus .title-color {
  color: var(--gs-text);
}

body.serviceplus h2.title-color {
  font-size: 21px;
  font-weight: 750;
}

body.serviceplus .card {
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  box-shadow: var(--gs-shadow);
}

body.serviceplus .card-body {
  padding: 20px;
}

body.serviceplus .shadown {
  box-shadow: var(--gs-shadow);
}

body.serviceplus .table-responsive {
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
  box-shadow: 0 4px 16px rgba(24, 34, 48, .04);
}

body.serviceplus .table {
  margin-bottom: 0;
  background: var(--gs-surface);
}

body.serviceplus .table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--gs-border);
  background: var(--gs-surface-soft);
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

body.serviceplus .table td,
body.serviceplus .table th {
  padding: 13px 14px;
}

body.serviceplus .table tbody td {
  border-top: 1px solid #edf1f5;
  color: #344054;
  font-size: 13px;
}

body.serviceplus .table-hover tbody tr:hover {
  background: #f7f9fc;
}

body.serviceplus .table small {
  margin-top: 2px;
  color: var(--gs-muted);
}

body.serviceplus .form-control,
body.serviceplus .custom-select,
body.serviceplus .bootstrap-select > .dropdown-toggle {
  min-height: 40px;
  border-color: #cfd8e4;
  border-radius: 6px;
  color: var(--gs-text);
  font-size: 13px;
}

body.serviceplus textarea.form-control {
  min-height: 96px;
}

body.serviceplus .form-control:focus,
body.serviceplus .custom-select:focus,
body.serviceplus .bootstrap-select > .dropdown-toggle:focus {
  border-color: #6e91c2;
  box-shadow: 0 0 0 3px rgba(32, 73, 134, .12);
}

body.serviceplus label {
  margin-bottom: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

body.serviceplus .input-group-text {
  border-color: #cfd8e4;
  background: var(--gs-surface-soft);
  color: var(--gs-muted);
}

body.serviceplus .btn {
  min-height: 38px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

body.serviceplus .btn-sm {
  min-height: 34px;
  padding: 6px 10px;
}

body.serviceplus .btn-primary,
body.serviceplus .btn-blue,
body.serviceplus .pill.pill-blue {
  border-color: var(--gs-primary);
  background: var(--gs-primary);
  color: #fff;
}

body.serviceplus .btn-primary:hover,
body.serviceplus .btn-primary:focus,
body.serviceplus .btn-blue:hover,
body.serviceplus .btn-blue:focus,
body.serviceplus .pill.pill-blue:hover {
  border-color: var(--gs-primary-dark);
  background: var(--gs-primary-dark);
  color: #fff;
  box-shadow: none;
}

body.serviceplus .btn-light,
body.serviceplus .btn-secondary,
body.serviceplus .btn-outline-secondary {
  border-color: #cfd8e4;
  background: #fff;
  color: #475467;
}

body.serviceplus .btn-light:hover,
body.serviceplus .btn-secondary:hover,
body.serviceplus .btn-outline-secondary:hover {
  border-color: #9eacbe;
  background: var(--gs-surface-soft);
  color: var(--gs-text);
}

body.serviceplus .pill {
  min-height: 36px;
  border-radius: 6px;
  padding: 7px 13px;
}

body.serviceplus .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--gs-shadow-lg);
  overflow: hidden;
}

body.serviceplus .modal-header,
body.serviceplus .modal-footer {
  border-color: var(--gs-border);
}

body.serviceplus .modal-header:not(.bg-danger):not(.bg-primary) {
  background: var(--gs-surface-soft);
}

body.serviceplus .alert {
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
}

.sp-status,
.sp-asset-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef2f6;
  color: #475467;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.sp-status.aberta,
.sp-status.em_validacao {
  background: var(--gs-primary-soft);
  color: var(--gs-primary);
}

.sp-status.aguardando_estoque,
.sp-asset-reserved {
  background: var(--gs-warning-soft);
  color: var(--gs-warning);
}

.sp-status.entregue,
.sp-status.concluido,
.sp-asset-free {
  background: var(--gs-success-soft);
  color: var(--gs-success);
}

.sp-status.cancelado,
.sp-asset-unavailable {
  background: var(--gs-danger-soft);
  color: var(--gs-danger);
}

.sp-status.em_envio,
.sp-status.disponivel_retirada,
.sp-asset-busy {
  background: var(--gs-info-soft);
  color: var(--gs-info);
}

.sp-flow {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
}

.sp-flow-step {
  flex: 1 1 130px;
  min-height: 88px;
  margin: 4px;
  border: 1px solid var(--gs-border);
  border-radius: 7px;
  padding: 13px 11px;
  background: var(--gs-surface);
  color: var(--gs-muted);
}

.sp-flow-step i {
  color: #8fa1b8;
  font-size: 15px;
}

.sp-flow-step strong {
  display: block;
  margin-top: 9px;
  color: #344054;
  font-size: 12px;
}

.sp-flow-step small {
  display: block;
  margin-top: 3px;
  color: var(--gs-muted);
  font-size: 11px;
}

.sp-flow-step.is-done {
  border-color: #b9dfcc;
  background: var(--gs-success-soft);
  color: var(--gs-success);
}

.sp-flow-step.is-done i,
.sp-flow-step.is-done strong {
  color: var(--gs-success);
}

.sp-flow-step.is-current {
  border-color: #6d91c4;
  background: var(--gs-primary-soft);
  box-shadow: inset 0 0 0 1px var(--gs-primary);
}

.sp-flow-step.is-current i,
.sp-flow-step.is-current strong {
  color: var(--gs-primary);
}

.sp-flow-step.is-muted {
  opacity: .56;
}

.sp-kpi {
  border-left: 3px solid var(--gs-primary) !important;
}

.sp-kpi .h4 {
  color: var(--gs-text);
  font-weight: 750;
}

#filter-admissoes,
#filter-home,
#filter-equipamentos {
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  padding: 15px;
  background: var(--gs-surface);
}

#filter-admissoes > .row,
#filter-home > form > .row,
#filter-equipamentos > form > .row {
  margin-bottom: -8px;
}

.sp-flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-flow-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid #edf1f5;
  padding: 8px 0;
}

.sp-flow-list li:last-child {
  border-bottom: 0;
}

.sp-flow-list i {
  width: 26px;
  color: var(--gs-primary);
  text-align: center;
}

.sp-source,
.sp-stock-preview {
  border: 1px solid var(--gs-border);
  border-radius: 7px;
  padding: 14px;
  background: var(--gs-surface-soft);
}

.sp-stock-preview.is-ok {
  border-color: #b9dfcc;
  background: var(--gs-success-soft);
}

.sp-stock-preview.is-missing {
  border-color: #f0ce8f;
  background: var(--gs-warning-soft);
}

.timeline-item {
  position: relative;
  margin-left: 8px;
  border-left: 2px solid var(--gs-border);
  padding: 0 0 18px 18px;
}

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--gs-primary);
  box-shadow: 0 0 0 1px var(--gs-primary);
  content: "";
}

#top-equipamentos .slick-track {
  display: flex;
  align-items: stretch;
}

#top-equipamentos .slick-slide,
#top-equipamentos .slick-slide > div,
#top-equipamentos .equipamento {
  height: auto;
}

#top-equipamentos .equipamento {
  height: 100%;
  padding: 8px;
}

#top-equipamentos .equipamento .card {
  height: 100%;
  min-height: 360px;
}

#top-equipamentos .equipamento .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#top-equipamentos .equipamento .foto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  border-radius: 6px;
  background: var(--gs-surface-soft);
}

#top-equipamentos .equipamento .foto img {
  width: auto !important;
  max-height: 100px;
  object-fit: contain;
}

#top-equipamentos .equipamento .name {
  min-height: 42px;
  color: var(--gs-text);
  font-size: 14px;
  font-weight: 750;
}

#top-equipamentos .equipamento .buttons {
  margin-top: auto !important;
}

body.serviceplus footer {
  margin-top: 64px;
  border-top: 1px solid #2e568e;
  background: var(--gs-primary-dark);
}

body.serviceplus footer .copy {
  color: #dce7f6;
}

body.serviceplus .scroll-to-top {
  border-radius: 6px !important;
  background: var(--gs-primary);
}

/* Login */
body.serviceplus:has(.login) {
  background-color: #17355f;
  background-position: left center;
  background-size: cover;
}

body.serviceplus:has(.login)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 38, 70, .4);
  content: "";
}

body.serviceplus .bdam {
  background: rgba(255, 255, 255, .98);
}

body.serviceplus .bdam #content {
  display: flex;
  align-items: center;
  min-height: 100vh;
  height: auto;
  background: transparent;
}

body.serviceplus .login {
  width: min(100%, 410px);
  padding: 28px 30px;
}

body.serviceplus .login .logo img {
  max-width: 210px;
  max-height: 96px !important;
  object-fit: contain;
}

body.serviceplus .login h3 {
  color: var(--gs-text) !important;
  font-size: 22px;
  font-weight: 750;
}

body.serviceplus .login-tabs {
  gap: 5px;
  border-bottom: 1px solid var(--gs-border);
}

body.serviceplus .login-tabs .tab-btn {
  min-height: 44px;
  border-radius: 6px 6px 0 0;
  color: var(--gs-muted);
  font-size: 13px;
  font-weight: 700;
}

body.serviceplus .login-tabs .tab-btn:hover,
body.serviceplus .login-tabs .tab-btn.active {
  color: var(--gs-primary);
}

body.serviceplus .login-tabs .tab-btn.active {
  border-bottom-color: var(--gs-primary);
  background: var(--gs-primary-soft);
}

body.serviceplus .login .input-group .form-control,
body.serviceplus .login .input-group-text {
  min-height: 44px;
}

body.serviceplus .about {
  left: 32px;
  bottom: 28px;
}

@media (min-width: 768px) {
  .sp-brand-context {
    display: block;
  }
}

@media (min-width: 992px) {
  body.serviceplus .nav-scroller {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .98);
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item {
    padding: 0 9px;
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link {
    position: relative;
    min-height: 48px;
    padding: 0 4px;
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link.active::after {
    position: absolute;
    right: 3px;
    bottom: 0;
    left: 3px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--gs-primary);
    content: "";
  }
}

@media (max-width: 991.98px) {
  body.serviceplus .navbar-main {
    min-height: 68px;
  }

  body.serviceplus .navbar-main .navbar-toggler {
    color: var(--gs-primary);
    font-size: 24px;
  }

  body.serviceplus .nav-scroller {
    padding: 68px 24px 24px;
    background: var(--gs-primary-dark);
  }

  body.serviceplus .nav-scroller .navbar-toggler-close {
    top: 16px;
    right: 18px;
    color: #fff;
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item {
    padding: 0;
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link {
    min-height: 48px;
    color: #dce7f6;
    font-size: 14px;
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link i {
    width: 22px;
    color: #b9cbe4;
  }

  body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link.active,
  body.serviceplus .nav-scroller .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
  }

  .sp-flow-step {
    flex-basis: calc(50% - 8px);
  }
}

@media (max-width: 767.98px) {
  body.serviceplus .container {
    width: min(100% - 22px, 1240px);
  }

  body.serviceplus .page-name {
    padding: 22px 0;
  }

  body.serviceplus .page-name h1 {
    font-size: 23px;
  }

  .sp-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .sp-page-actions,
  .sp-page-actions .btn {
    width: 100%;
  }

  body.serviceplus .page-name + .container,
  body.serviceplus .page-name + .container-fluid {
    padding-top: 20px;
  }

  body.serviceplus .card-body {
    padding: 16px;
  }

  #filter-admissoes.d-none,
  #filter-home.d-none,
  #filter-equipamentos.d-none {
    display: block !important;
  }

  body.serviceplus .table-responsive {
    box-shadow: none;
  }

  body.serviceplus footer {
    margin-top: 42px;
    text-align: center;
  }

  body.serviceplus footer .copy {
    margin-top: 10px;
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .sp-flow-step {
    flex-basis: calc(100% - 8px);
    min-height: 70px;
  }

  body.serviceplus .login {
    padding: 24px 8px;
  }

  body.serviceplus .bdam {
    min-height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
