body {
  font-family: "Source Sans 3", Arial, sans-serif;
}

.nav-link,
.brand-link,
.sidebar-menu .nav-link,
.user-menu .nav-link,
.btn,
button,
summary,
label,
[role="button"] {
  cursor: pointer !important;
  user-select: none;
}

.app-brand-mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(13, 110, 253, .32);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .12);
  color: #0d6efd;
  font-size: 1.2rem;
}

.user-avatar-lg {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 2rem;
}

.app-sidebar .sidebar-wrapper {
  overflow-y: auto;
}

.sidebar-menu .nav-link {
  border-radius: .75rem;
  margin: 0 .35rem .2rem;
  min-height: 2.7rem;
}

.sidebar-menu .nav-treeview {
  padding-left: .6rem;
  display: none;
}

.sidebar-menu .menu-open > .nav-treeview {
  display: block;
}

.sidebar-menu .menu-open > .nav-link .nav-arrow {
  transform: rotate(90deg);
}

.sidebar-menu .nav-arrow {
  transition: transform .18s ease;
}

.sidebar-menu .nav-link.active {
  background: rgba(13, 110, 253, .14);
  color: #fff;
}

.sidebar-menu .nav-treeview .nav-link.active {
  background: rgba(255,255,255,.08);
}

.app-content-header {
  padding: 1rem 1rem 0;
}

.app-content .container-fluid {
  position: relative;
  padding-bottom: 1rem;
}

.content-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: start;
  justify-content: end;
  pointer-events: none;
  padding: .5rem 1rem;
}

.ajax-fragment,
#appContent {
  min-height: 60vh;
}

.card-box,
.soft-card,
.install-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-box > h3,
.soft-card > h3 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

.row-head,
.hero-actions,
.form-actions,
.stat-strip,
.grid-2,
.grid-3,
.grid-4,
.form-grid {
  display: grid;
  gap: 1rem;
}

.row-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.hero-actions {
  grid-auto-flow: column;
  align-items: start;
}

.stat-strip,
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.form-grid > * {
  grid-column: span 4;
}

.form-grid > .span-6,
.form-grid.form-one > * {
  grid-column: span 6;
}

.form-grid > .span-12,
.form-grid .full,
.form-grid.form-single > * {
  grid-column: 1 / -1;
}

.card-kpi strong,
.soft-card strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

.card-copy,
.mini-note,
.kpi-copy,
.form-label,
.rp-label {
  color: #6c757d;
}

.mini-note {
  margin-bottom: .45rem;
  font-size: .95rem;
  font-weight: 600;
}

.table-link {
  color: #0d6efd;
  font-weight: 600;
}

.badge-aberto,
.badge-vencido,
.badge-suspenso,
.badge-erro,
.badge-alerta {
  background: #dc3545;
  color: #fff;
}

.badge-ativo,
.badge-pago,
.badge-ok,
.badge-processado,
.badge-fechado,
.badge-finalizada {
  background: #198754;
  color: #fff;
}

.badge-pendente,
.badge-media,
.badge-em_andamento {
  background: #ffc107;
  color: #212529;
}

.badge-baixa,
.badge-rascunho {
  background: #6c757d;
  color: #fff;
}

.btn-main,
.btn-sec,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.btn-main {
  background: #0d6efd;
  color: #fff;
}

.btn-main:hover {
  background: #0b5ed7;
  color: #fff;
}

.btn-sec,
.btn-link {
  background: #fff;
  color: #495057;
  border-color: rgba(0,0,0,.12);
}

.btn-sec:hover,
.btn-link:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.25rem;
}

.service-meta,
.service-meta-profile {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.service-meta span {
  display: block;
  color: #6c757d;
  font-size: .9rem;
  margin-bottom: .2rem;
}

.table-responsive {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
}

.table-responsive table,
table {
  width: 100%;
  margin-bottom: 0;
}

table thead th {
  white-space: nowrap;
  font-size: .9rem;
  color: #6c757d;
}

table tbody td {
  vertical-align: middle;
}

.table-actions,
td:last-child {
  white-space: nowrap;
}

.table-actions .btn,
td:last-child a.btn,
td:last-child .btn-link,
td:last-child .btn-sec {
  min-height: 2rem;
  padding: .42rem .8rem;
  border-radius: .6rem;
  font-size: .88rem;
}

.rp-form .input-group-text {
  min-width: 2.8rem;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.rp-form .form-control,
.rp-form .form-select,
.rp-form textarea {
  min-height: 2.85rem;
  border-radius: 0 .75rem .75rem 0;
}

.rp-form .input-group > .form-control:first-child,
.rp-form .input-group > .form-select:first-child,
.rp-form .input-group > textarea:first-child {
  border-radius: .75rem;
}

.rp-form .input-group > .input-group-text:first-child + .form-control,
.rp-form .input-group > .input-group-text:first-child + .form-select,
.rp-form .input-group > .input-group-text:first-child + textarea {
  border-radius: 0 .75rem .75rem 0;
}

.rp-form .input-group > .input-group-text:first-child {
  border-radius: .75rem 0 0 .75rem;
}

.rp-form .input-group > .pass-switch {
  cursor: pointer !important;
}

.rp-form .input-group > .pass-switch .btn {
  color: inherit;
  box-shadow: none;
}

.rp-form .rp-field {
  min-width: 0;
}

.rp-form .rp-field.full {
  grid-column: 1 / -1 !important;
}

.install-page {
  min-height: 100vh;
  padding: 2rem 0;
}

.install-page .login-box {
  width: min(1120px, calc(100% - 2rem));
}

.install-page .card {
  border-radius: 1rem;
  overflow: hidden;
}

.install-side {
  background: linear-gradient(160deg, #111827, #0d6efd);
  color: #fff;
  padding: 2rem;
}

.install-side h1 {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.install-side p {
  color: rgba(255,255,255,.86);
}

.install-side .check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.install-side .check-list li {
  display: flex;
  align-items: start;
  gap: .6rem;
  margin-bottom: .8rem;
}

.install-main {
  padding: 1.75rem;
}

.install-main .form-grid > * {
  grid-column: span 6;
}

.install-main .form-grid > .full {
  grid-column: 1 / -1;
}

.login-meta-box {
  margin-top: 1rem;
}

@media (max-width: 1199px) {
  .form-grid > * {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .row-head {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-auto-flow: row;
  }

  .form-grid > *,
  .install-main .form-grid > * {
    grid-column: 1 / -1;
  }

  .card-box,
  .soft-card,
  .install-card {
    padding: 1rem;
  }

  .install-page {
    padding: 1rem 0;
  }

  .install-side,
  .install-main {
    padding: 1.25rem;
  }
}
