@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

body {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  box-sizing: border-box;
  background: #f9fafb;
  margin: 0;
}

a {
  color: color-mix(in srgb, #0e6fd0 80%, white );
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  box-sizing: border-box;
}

a:hover {
  color: #0e6fd0;
  text-decoration: underline;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  box-sizing: border-box;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-layout__form {
  flex: 0 0 46%;
  max-width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.auth-layout__visual {
  flex: 1 1 54%;
  min-width: 0;
  background-color: #f3f6fb;
  background-image: var(--auth-visual);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(72%, 34rem);
}

.auth-panel {
  width: 100%;
  max-width: 460px;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-logo {
  display: block;
  max-height: 3rem;
  width: auto;
  animation: auth-logo-float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(21, 110, 253, 0.14));
  will-change: transform, filter;
}

@keyframes auth-logo-float {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 6px 8px rgba(21, 110, 253, 0.12));
  }

  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 16px 16px rgba(21, 110, 253, 0.2));
  }
}

.card {
  border: none;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374255;
  margin-bottom: 0.5rem;
  display: block;
  text-align: left;
  letter-spacing: 0.01em;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-control {
  font-size: 1rem;
  font-weight: 400;
  color: #374255;
  border: 1px solid #cfd4dc;
  border-radius: 0.5rem;
  margin-bottom: 0;
  display: block;
  text-align: left;
  letter-spacing: 0.01em;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, #0e6fd0 80%, white )!important;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #0e6fd0;
  outline: none;
}

.mb-3:has(.error-message:not(:empty)) .password-toggle {
  color: #df5053;
}

.error-message {
  display: block;
  font-size: 0.8125rem;
  color: #df5053;
  margin-top: 0.35rem;
  min-height: 1.15em;
}

.mb-3:has(.error-message:not(:empty)) .form-control {
  border-color: #df5053;
}

.mb-3:has(.error-message:not(:empty)) .form-control:focus {
  border-color: #df5053;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: auto;
  padding-left: 1.40rem;
}

.form-check-input:focus {
  box-shadow: none;
}

.form-check-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374255;
  cursor: pointer;
  letter-spacing: 0.01em;
  padding-top: 0.125rem;
}

.btn-primary {
  background-color: #0e6fd0;
  color: #fff;
  border-color: #0e6fd0;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(14, 111, 208, 0.1);
  will-change: box-shadow;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 0;
  outline: none;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: color-mix(in srgb, #0e6fd0 80%, white) !important;
  color: #fff !important;
  border-color: color-mix(in srgb, #0e6fd0 80%, white) !important;
  text-decoration: none !important;
  outline: none;
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none !important;
  font-size: inherit;
}

.alert-danger {
  background-color: #fcefef;
  border-color: #f6d6d6;
  color: #df5053;
}
.alert-danger .btn-close {
  width: 1em;
  height: 1em;

  background-color: #eca7a7;
  background-image: none;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 1em auto no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 2em auto no-repeat;

  opacity: 1;
  outline: none;
  box-shadow: none;
}

.alert-success {
  background-color: #eef9f0;
  border-color: #d4efd9;
  color: #63b861;
}

.alert-success .btn-close {
  width: 1em;
  height: 1em;

  background-color: #a7eca7;
  background-image: none;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 1em auto no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 2em auto no-repeat;

  opacity: 1;
  outline: none;
  box-shadow: none;
}

.alert-warning {
  background-color: #fef7ea;
  border-color: #fdebcb;
  color: #f59e00;
}

.alert-warning .btn-close {
  width: 1em;
  height: 1em;

  background-color: #f59e00;
  background-image: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 1em auto no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 2em auto no-repeat;

  opacity: 1;
  outline: none;
  box-shadow: none;
}

.alert-info {
  background-color: #eff7fd;
  border-color: #d8eaf9;
  color: #5a9fe7;
}

.alert-info .btn-close {
  width: 1em;
  height: 1em;

  background-color: #5a9fe7;
  background-image: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 1em auto no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E")
    center / 2em auto no-repeat;

  opacity: 1;
  outline: none;
  box-shadow: none;
}
@media (max-width: 991.98px) {
  .auth-layout__visual {
    display: none;
  }

  .auth-layout__form {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-logo,
  .app-sidebar__logo {
    animation: none;
    filter: none;
  }
}

/* App shell + compact sidebar */
:root {
  --app-sidebar-width: 4.5rem;
  --app-primary: #0e6fd0;
  --app-primary-soft: color-mix(in srgb, #0e6fd0 12%, white);
  --app-text: #374255;
  --app-muted: #6b7280;
  --app-border: #e8ecf1;
  --app-surface: #ffffff;
  --app-bg: #f9fafb;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--app-bg);
}

.app-mobile-bar {
  display: none;
}

.app-sidebar-backdrop {
  display: none;
}

.app-sidebar-close {
  display: none;
}

.app-sidebar-drawer {
  display: flex;
  flex-shrink: 0;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--app-sidebar-width);
  min-width: var(--app-sidebar-width);
  height: 100vh;
  padding: 1rem 0.65rem 1.1rem;
  background: var(--app-surface);
  border-right: 1px solid var(--app-border);
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.03);
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.35rem;
  text-decoration: none;
}

.app-sidebar__brand:hover {
  text-decoration: none;
}

.app-sidebar__logo {
  display: block;
  width: 2.15rem;
  height: auto;
  max-height: 2.15rem;
  animation: auth-logo-float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(21, 110, 253, 0.14));
  will-change: transform, filter;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.app-sidebar__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.85rem;
}

.app-sidebar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--app-muted);
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-sidebar__link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.05rem;
  line-height: 1;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus-visible,
.app-sidebar__link:active,
.app-sidebar__link.is-active,
.app-sidebar__link.is-active:hover,
.app-sidebar__link.is-active:focus-visible {
  font-size: 1.05rem;
  text-decoration: none;
  outline: none;
}

.app-sidebar__link:hover i,
.app-sidebar__link:focus-visible i,
.app-sidebar__link:active i,
.app-sidebar__link.is-active i,
.app-sidebar__link.is-active:hover i,
.app-sidebar__link.is-active:focus-visible i {
  font-size: 1.05rem;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus-visible {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.app-sidebar__link.is-active,
.app-sidebar__link.is-active:hover,
.app-sidebar__link.is-active:focus-visible {
  background: var(--app-primary-soft);
  color: var(--app-primary);
  box-shadow: none;
}

.app-sidebar .tooltip {
  --bs-tooltip-bg: #374255;
  --bs-tooltip-color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.app-sidebar__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 2px solid color-mix(in srgb, #0e6fd0 28%, white);
  border-radius: 50%;
  background: linear-gradient(145deg, #0e6fd0, color-mix(in srgb, #0e6fd0 72%, #1d4ed8));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(14, 111, 208, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-sidebar__avatar:hover,
.app-sidebar__avatar:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(14, 111, 208, 0.22);
  outline: none;
}

.app-sidebar__avatar-initials {
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.app-sidebar__dropdown {
  min-width: 13.5rem;
  margin-left: 0.45rem !important;
  padding: 0.4rem;
  border: 1px solid var(--app-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(55, 66, 85, 0.12);
  font-family: "Nunito", sans-serif;
}

.app-sidebar__dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.app-sidebar__dropdown .dropdown-item i {
  width: 1rem;
  color: var(--app-muted);
  text-align: center;
}

.app-sidebar__dropdown .dropdown-item:hover,
.app-sidebar__dropdown .dropdown-item:focus {
  background: var(--app-primary-soft);
  color: var(--app-primary);
  text-decoration: none;
}

.app-sidebar__dropdown .dropdown-item:hover i,
.app-sidebar__dropdown .dropdown-item:focus i {
  color: var(--app-primary);
}

.app-sidebar__dropdown .dropdown-divider {
  margin: 0.35rem 0.25rem;
  border-color: var(--app-border);
  opacity: 1;
}

.app-sidebar__user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem 0.35rem;
}

.app-sidebar__user-name {
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.app-sidebar__user-email {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-all;
}

.app-sidebar__logout {
  color: #df5053 !important;
}

.app-sidebar__logout i {
  color: #df5053 !important;
}

.app-sidebar__logout:hover,
.app-sidebar__logout:focus {
  background: #fcefef !important;
  color: #df5053 !important;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  padding: 1.5rem;
}

.app-page {
  width: 100%;
  max-width: 40rem;
}

.app-page__header {
  margin-bottom: 1.25rem;
}

.app-page__title {
  margin: 0 0 0.35rem;
  color: #374255;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.app-page__subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.app-page .card {
  max-width: none;
  margin: 0;
}

.app-page select.form-control {
  appearance: auto;
  cursor: pointer;
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
  background-color: #0e6fd0;
  border-color: #0e6fd0;
  color: #fff;
}

.logo-upload,
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-upload__drop,
.file-upload__drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border: 1.5px dashed #cfd4dc;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #374255;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-upload__drop:hover,
.logo-upload__drop:focus-within,
.file-upload__drop:hover,
.file-upload__drop:focus-within {
  border-color: color-mix(in srgb, #0e6fd0 70%, white);
  background: #f3f8fe;
  box-shadow: 0 0 0 3px rgba(14, 111, 208, 0.08);
}

.logo-upload__input,
.file-upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.logo-upload__icon,
.file-upload__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(14, 111, 208, 0.1);
  color: #0e6fd0;
  font-size: 1.15rem;
}

.logo-upload__text,
.file-upload__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.logo-upload__text strong,
.file-upload__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.logo-upload__text small,
.file-upload__text small {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.logo-upload__hint,
.file-upload__hint {
  display: block;
  margin-top: 0.4rem;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
}

.logo-upload__preview,
.file-upload__preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid #cfd4dc;
  border-radius: 0.75rem;
  background: #fff;
}

.logo-upload__image,
.file-upload__image {
  display: block;
  max-width: 9rem;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.4rem;
  background: #f8fafc;
}

.file-upload__doc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.file-upload__doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(14, 111, 208, 0.1);
  color: #0e6fd0;
  font-size: 1.25rem;
}

.file-upload__doc-icon.is-pdf {
  background: rgba(223, 80, 83, 0.12);
  color: #df5053;
}

.file-upload__doc-icon.is-word {
  background: rgba(46, 116, 181, 0.12);
  color: #2e74b5;
}

.file-upload__doc-icon.is-excel {
  background: rgba(33, 115, 70, 0.12);
  color: #217346;
}

.file-upload__doc-icon.is-archive {
  background: rgba(146, 64, 14, 0.12);
  color: #92400e;
}

.file-upload__doc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.file-upload__doc-name {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  color: #374255;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload__doc-ext {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo-upload__actions,
.file-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.logo-upload__change,
.logo-upload__remove,
.file-upload__change,
.file-upload__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #cfd4dc;
  border-radius: 0.5rem;
  background: #fff;
  color: #374255;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.logo-upload__change:hover,
.logo-upload__change:focus-visible,
.file-upload__change:hover,
.file-upload__change:focus-visible {
  border-color: color-mix(in srgb, #0e6fd0 70%, white);
  background: #f3f8fe;
  color: #0e6fd0;
  outline: none;
}

.logo-upload__remove,
.file-upload__remove {
  border-color: #f6d6d6;
  color: #df5053;
}

.logo-upload__remove:hover,
.logo-upload__remove:focus-visible,
.file-upload__remove:hover,
.file-upload__remove:focus-visible {
  background: #fcefef;
  border-color: #eca7a7;
  color: #df5053;
  outline: none;
}

.mb-3:has(#error-logo:not(:empty)) .logo-upload__drop,
.mb-3:has(#error-attachment:not(:empty)) .file-upload__drop {
  border-color: #df5053;
  background: #fcefef;
}



@media (max-width: 991.98px) {
  :root {
    --app-sidebar-width: 4.25rem;
  }

  body.is-sidebar-open {
    overflow: hidden;
  }

  .app-shell {
    flex-direction: column;
  }

  .app-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.65rem 1rem;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.03);
  }

  .app-sidebar-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--app-text);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .app-sidebar-open:hover,
  .app-sidebar-open:focus-visible {
    background: var(--app-primary-soft);
    color: var(--app-primary);
    outline: none;
  }

  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .app-sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: var(--app-sidebar-width);
    height: 100vh;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  .app-sidebar {
    position: relative;
    top: auto;
    z-index: 1;
    height: 100%;
    border-right: 0;
    box-shadow: 4px 0 24px rgba(55, 66, 85, 0.12);
  }

  .app-sidebar-close {
    position: absolute;
    top: 1rem;
    left: 100%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .app-sidebar-close:hover,
  .app-sidebar-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
    transform: scale(1.05);
  }

  .app-shell.is-sidebar-open .app-sidebar-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .app-shell.is-sidebar-open .app-sidebar-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-shell.is-sidebar-open .app-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-main {
    min-height: calc(100vh - 3.5rem);
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar-drawer,
  .app-sidebar-backdrop,
  .app-sidebar-close {
    transition: none;
  }
}

.app-page--wide {
  width: 100%;
  max-width: 100%;
}

.app-page--wide .card {
  width: 100%;
  max-width: 100%;
}

.app-page--wide > form,
.app-page--wide .row,
.app-page--wide .ticket-form-layout {
  width: 100%;
  max-width: 100%;
}

.app-page--wide .data-table {
  width: auto;
}

.app-page--wide .table-responsive {
  max-width: 100%;
  overflow-x: auto;
}

.ticket-form-layout .selectize-control {
  margin-bottom: 0;
}

.ticket-form-layout .note-editor.note-frame {
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ticket-form-layout .note-editor.note-frame .note-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.ticket-form-layout .note-editor.note-frame .note-statusbar {
  background: #f8fafc;
}

.ticket-message-body {
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticket-message-body p:last-child {
  margin-bottom: 0;
}

.ticket-message-body ul,
.ticket-message-body ol {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}

.app-page__header--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-page__header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  box-sizing: border-box;
}

.app-page__header-icon-btn.is-filtered {
  background: #f3f8fe;
  color: #0e6fd0;
  border-color: #0e6fd0;
}

.app-page__header-icon-btn.is-filtered:hover,
.app-page__header-icon-btn.is-filtered:focus {
  background: #e8f1fc;
  color: #0e6fd0;
  border-color: #0e6fd0;
}

.app-page__header-icon-btn.is-filtered::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #0e6fd0;
}

.app-page__breadcrumb {
  margin: 0 0 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.app-page__breadcrumb a {
  font-size: inherit;
  font-weight: 600;
}

.app-page__breadcrumb span {
  margin: 0 0.35rem;
  color: #9ca3af;
}

.app-page__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.app-page__filter {
  position: relative;
  flex: 1 1 auto;
  max-width: 22rem;
}

.app-page__filter-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
  pointer-events: none;
}

.app-page__filter .form-control {
  padding-left: 2.35rem;
}

.app-page__filter-select {
  width: auto;
  min-width: 9.5rem;
  flex: 0 0 auto;
}

.app-page__loading {
  color: #0e6fd0;
  font-size: 1rem;
  line-height: 1;
}

.app-page__form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.app-page__tabs {
  margin-bottom: 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.app-page__tabs .nav-link {
  color: var(--app-muted, #6c757d);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1rem;
}

.app-page__tabs .nav-link:hover,
.app-page__tabs .nav-link:focus {
  color: var(--app-text, #212529);
  border-color: transparent;
}

.app-page__tabs .nav-link.active {
  color: var(--app-primary, #0d6efd);
  background: transparent;
  border-bottom-color: var(--app-primary, #0d6efd);
}

.app-page__tab-content {
  padding-top: 1.25rem;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.875rem;
}

a.btn-sm,
a.btn-sm:hover,
a.btn-sm:focus,
a.btn-sm:active {
  font-size: 0.875rem;
}

.btn-outline-primary {
  background: #fff;
  color: #0e6fd0;
  border: 1px solid color-mix(in srgb, #0e6fd0 45%, white);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #f3f8fe;
  color: #0e6fd0;
  border-color: #0e6fd0;
  text-decoration: none !important;
}

.btn-outline-secondary {
  background: #fff;
  color: #4b5563;
  border: 1px solid #cfd4dc;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #f8fafc;
  color: #374255;
  border-color: #9ca3af;
  text-decoration: none !important;
}

.btn-outline-danger {
  background: #fff;
  color: #df5053;
  border: 1px solid color-mix(in srgb, #df5053 45%, white);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: #fcefef;
  color: #df5053;
  border-color: #df5053;
  text-decoration: none !important;
}

.btn-danger {
  background: #df5053;
  color: #fff;
  border: 1px solid #df5053;
}

.btn-danger:hover,
.btn-danger:focus {
  background: color-mix(in srgb, #df5053 85%, black);
  color: #fff;
  border-color: color-mix(in srgb, #df5053 85%, black);
  text-decoration: none !important;
}

.data-table__action-group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  white-space: nowrap;
}

.data-table__action-group .btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #374255;
  font-size: 0.9375rem;
}

.data-table thead th {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table thead th a,
.data-table thead th a:hover,
.data-table thead th a:focus {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
}

.data-table tbody td {
  padding: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table__empty {
  color: #6b7280;
  text-align: center;
  padding: 1.75rem 0.85rem !important;
}

.data-table__actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.data-table__pager {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.data-table__pager .pagination {
  gap: 0.25rem;
}

.data-table__pager .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  color: #374255;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.data-table__pager .page-link:hover {
  background: #f3f8fe;
  border-color: color-mix(in srgb, #0e6fd0 35%, white);
  color: #0e6fd0;
  text-decoration: none;
}

.data-table__pager .page-item.active .page-link {
  background: #0e6fd0;
  border-color: #0e6fd0;
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.badge--public {
  background: #ecfdf3;
  color: #067647;
}

.badge--private {
  background: #f3f4f6;
  color: #4b5563;
}

.badge--admin {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge--agent,
.badge--member {
  background: #f3f4f6;
  color: #4b5563;
}

.badge--client {
  background: #fdf4ff;
  color: #86198f;
}

.badge--internal {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge--external {
  background: #fff7ed;
  color: #c2410c;
}

.badge--active {
  background: #ecfdf3;
  color: #067647;
}

.badge--inactive {
  background: #fef3c7;
  color: #b45309;
}

.badge--session {
  background: #e0e7ff;
  color: #3730a3;
}

/* Selectize alinhado ao .form-control do sistema */
/* Esconde o <select> nativo sempre que o Selectize já criou o wrapper ao lado */
select.selectized,
select:has(+ .selectize-control) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none !important;
}

/* Evita que classes copiadas do <select> (ex.: .form-select) estilizem o wrapper */
.selectize-control.form-select {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.selectize-control {
  position: relative;
}

.selectize-control .selectize-input,
.selectize-control.multi .selectize-input,
.ticket-form-layout .selectize-input {
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #374255;
  border: 1px solid #cfd4dc;
  border-radius: 0.5rem;
  box-shadow: none !important;
  outline: none !important;
  /* Seta no próprio input (multi cobre o :after do control) */
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 0.75rem 0.75rem !important;
}

.selectize-control .selectize-input.focus,
.selectize-control.multi .selectize-input.focus,
.ticket-form-layout .selectize-input.focus,
.selectize-control .selectize-input.dropdown-active,
.selectize-control.multi .selectize-input.dropdown-active {
  border-color: color-mix(in srgb, #0e6fd0 80%, white) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Esconde o triângulo padrão do Selectize single */
.selectize-control.single .selectize-input:after {
  display: none !important;
}

.selectize-control.multi .selectize-input > div {
  background: #eff6ff;
  color: #1d4ed8;
  border: 0;
  border-radius: 0.35rem;
}

.selectize-dropdown,
.selectize-dropdown.form-control {
  border: 1px solid #cfd4dc;
  border-radius: 0.5rem;
  box-shadow: none;
  z-index: 1060;
}

.selectize-dropdown .option.active,
.selectize-dropdown .active {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* Catálogo de serviços — árvore / mind-map */
.service-tree {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-tree__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
}

.service-tree__dept {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 48%);
  overflow: hidden;
}

.service-tree__dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #e5e7eb;
  background: color-mix(in srgb, #0e6fd0 6%, white);
}

.service-tree__dept-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.service-tree__dept-title i {
  color: #0e6fd0;
  font-size: 0.95rem;
}

.service-tree__dept-title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.service-tree__dept-count {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.service-tree__roots {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  overflow-x: auto;
}

.service-node {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-node__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 14.5rem;
  max-width: 18rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-node__card:hover {
  border-color: color-mix(in srgb, #0e6fd0 35%, white);
  box-shadow: 0 4px 12px rgba(14, 111, 208, 0.08);
}

.service-node__card--inactive {
  background: #f9fafb;
  opacity: 0.92;
}

.service-node__main {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.service-node__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.service-node__toggle:hover {
  border-color: #0e6fd0;
  color: #0e6fd0;
  background: #eff6ff;
}

.service-node.is-expanded > .service-node__card .service-node__toggle {
  transform: rotate(90deg);
  border-color: #0e6fd0;
  color: #0e6fd0;
  background: #eff6ff;
}

.service-node__toggle--spacer {
  border: 0;
  background: transparent;
  cursor: default;
  visibility: hidden;
  pointer-events: none;
}

.service-node__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
}

.service-node__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  word-break: break-word;
}

.service-node__actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.service-node__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.7rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.service-node__action:hover {
  text-decoration: none;
}

.service-node__action--add:hover {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #067647;
}

.service-node__action--edit:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.service-node__action--delete {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

.service-node__action--delete:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

.service-node__children {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  padding-left: 0.85rem;
  margin-left: 0.15rem;
}

.service-node__children::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: color-mix(in srgb, #0e6fd0 22%, #e5e7eb);
  border-radius: 999px;
}

.service-node.is-expanded > .service-node__children {
  display: flex;
}

@media (max-width: 767.98px) {
  .service-node {
    flex-direction: column;
  }

  .service-node__card {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .service-node__children {
    padding-left: 1rem;
    margin-left: 0.55rem;
  }
}

/* Dashboard — visão do dia (chamados) */
.dash-section {
  margin-bottom: 1.5rem;
}

.dash-section__title {
  margin: 0 0 0.75rem;
  color: var(--app-text);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dash-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 6.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.85rem;
  background: var(--app-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(55, 66, 85, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dash-card--link {
  cursor: pointer;
}

.dash-card--link:hover,
.dash-card--link:focus {
  text-decoration: none;
  color: inherit;
  border-color: color-mix(in srgb, var(--app-primary) 35%, var(--app-border));
  box-shadow: 0 6px 16px rgba(14, 111, 208, 0.08);
  transform: translateY(-1px);
}

.dash-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 1rem;
}

.dash-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dash-card__label {
  color: var(--app-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.dash-card__value {
  color: var(--app-text);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dash-card__hint {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.dash-card--primary .dash-card__icon {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.dash-card--success .dash-card__icon {
  background: #ecfdf3;
  color: #067647;
}

.dash-card--info .dash-card__icon {
  background: #eff6ff;
  color: #1d4ed8;
}

.dash-card--warning .dash-card__icon {
  background: #fffbeb;
  color: #b45309;
}

.dash-card--danger .dash-card__icon {
  background: #fef2f2;
  color: #b91c1c;
}

.dash-card--neutral .dash-card__icon {
  background: #f3f4f6;
  color: #4b5563;
}

.dash-card--danger {
  border-color: color-mix(in srgb, #ef4444 28%, var(--app-border));
}

.dash-card--warning {
  border-color: color-mix(in srgb, #f59e0b 28%, var(--app-border));
}

.dash-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.dash-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.dash-panel__title {
  margin: 0;
  color: var(--app-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 700;
}

.dash-panel__subtitle {
  margin: 0 0 1rem;
  color: var(--app-muted);
  font-size: 0.875rem;
}

@media (max-width: 1199.98px) {
  .dash-grid,
  .dash-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .dash-grid,
  .dash-grid--dense {
    grid-template-columns: 1fr;
  }
}

/* Reports */
.report-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.report-catalog__card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 6.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--app-border);
  border-radius: 0.85rem;
  background: var(--app-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(55, 66, 85, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.report-catalog__card:hover,
.report-catalog__card:focus {
  text-decoration: none;
  color: inherit;
  border-color: color-mix(in srgb, var(--app-primary) 35%, var(--app-border));
  box-shadow: 0 6px 16px rgba(14, 111, 208, 0.08);
  transform: translateY(-1px);
}

.report-catalog__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 1.05rem;
}

.report-catalog__card--primary .report-catalog__icon {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.report-catalog__card--info .report-catalog__icon {
  background: #eff6ff;
  color: #1d4ed8;
}

.report-catalog__card--success .report-catalog__icon {
  background: #ecfdf3;
  color: #067647;
}

.report-catalog__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.report-catalog__title {
  color: var(--app-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.report-catalog__desc {
  color: var(--app-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.report-catalog__arrow {
  color: #9ca3af;
  font-size: 0.85rem;
}

.report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem;
}

.report-filters__field {
  min-width: 10rem;
  flex: 1 1 10rem;
}

.report-filters__field .form-label {
  margin-bottom: 0.35rem;
  color: var(--app-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.report-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.report-filters__hint {
  margin-top: 0.85rem;
  color: #9ca3af;
  font-size: 0.8125rem;
}

.report-summary__label {
  color: var(--app-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.report-summary__value {
  color: var(--app-text);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.report-summary__meta {
  color: var(--app-muted);
  font-size: 0.875rem;
}

.report-dept__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--app-border);
}

.report-dept__title {
  margin: 0;
  color: var(--app-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.report-dept__subtitle {
  color: var(--app-muted);
  font-size: 0.8125rem;
}

.report-dept__total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 0.9375rem;
  font-weight: 800;
}

.report-row__label {
  color: var(--app-text);
  font-weight: 600;
}

.report-row__meta {
  color: #9ca3af;
  font-size: 0.8125rem;
}

.report-dept tfoot th {
  background: #f9fafb;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .report-catalog {
    grid-template-columns: 1fr;
  }
}

/* Account / Meu perfil */
.app-sidebar__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--app-border);
}

.profile-hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, #0e6fd0 28%, white);
  background: linear-gradient(145deg, #0e6fd0, color-mix(in srgb, #0e6fd0 72%, #1d4ed8));
  color: #fff;
  overflow: hidden;
}

.profile-hero__avatar.has-image {
  background: #f8fafc;
}

.profile-hero__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero__avatar-initials {
  font-family: "Nunito", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.profile-hero__meta {
  min-width: 0;
  flex: 1;
}

.profile-hero__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.75rem;
  margin: 0;
  color: var(--app-text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-hero__tickets {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.3;
}

.profile-hero__email {
  margin: 0.25rem 0 0;
  color: var(--app-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.profile-badge--muted {
  background: #f3f4f6;
  color: #4b5563;
}

.profile-depts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-depts__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: #f8fafc;
  color: var(--app-text);
  font-size: 0.875rem;
  font-weight: 650;
}

.profile-depts__item i {
  color: var(--app-muted);
  font-size: 0.8rem;
}

.profile-empty {
  color: var(--app-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.logo-upload__preview--avatar {
  justify-content: flex-start;
}

.logo-upload__image--avatar {
  width: 4.5rem;
  height: 4.5rem;
  max-width: 4.5rem;
  max-height: 4.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--app-border);
}

.mb-3:has(#error-avatar:not(:empty)) .logo-upload__drop {
  border-color: #df5053;
  background: #fcefef;
}

.profile-stats .dash-section__title {
  margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
  .profile-hero {
    align-items: flex-start;
  }
}
