:root {
  --helpdesk-focus: #1a73e8;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.card form .form-label {
  margin-bottom: .45rem;
  color: #344767;
  font-size: .82rem;
  font-weight: 700;
}

.card form .form-control,
.card form .form-select {
  min-height: 2.8rem;
  padding: .65rem .8rem;
  border: 1px solid #c7ccd4 !important;
  border-radius: .5rem;
  background-color: #fff;
  color: #344767;
  font-size: .9rem;
  line-height: 1.35;
}

.card form textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.card form select[multiple] {
  min-height: 10rem;
  padding: .35rem;
}

.card form select[multiple] option {
  padding: .5rem .65rem;
  border-radius: .35rem;
}

.card form .form-control:focus,
.card form .form-select:focus {
  border-color: var(--helpdesk-focus) !important;
  box-shadow: 0 0 0 .2rem rgba(26, 115, 232, .16);
}

.card form .form-control.input-validation-error,
.card form .form-select.input-validation-error {
  border-color: #e91e63 !important;
}

.card form .field-validation-error {
  display: block;
  margin-top: .35rem;
  font-weight: 600;
}

.card form .validation-summary-valid,
.card form .field-validation-valid {
  display: none;
}

.form-hint {
  display: block;
  margin-top: .4rem;
  color: #667085;
  font-size: .75rem;
  line-height: 1.45;
}

.form-check-label {
  color: #344767;
  font-size: .875rem;
  font-weight: 600;
}

.dashboard-stat-card .icon-shape {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  color: #fff;
  line-height: 3rem;
}

.empty-state {
  display: grid;
  min-height: 13rem;
  place-content: center;
  gap: .75rem;
  color: #8392ab;
  text-align: center;
}

.empty-state i {
  font-size: 2rem;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 700;
}

.sidenav .nav-link i {
  min-width: 1.25rem;
  font-size: 1rem;
  text-align: center;
}

.sidenav .avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.icon-shape i {
  top: 0;
  line-height: inherit;
}

.progress {
  height: .45rem;
  overflow: visible;
}

#tickets {
  scroll-margin-top: 1rem;
}

.privacy-item {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  color: #344767;
  font-size: .875rem;
  font-weight: 600;
}

.privacy-item i {
  font-size: 1.15rem;
}

.project-client-option {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.project-client-option:hover,
.project-client-option:has(.form-check-input:checked) {
  border-color: var(--helpdesk-focus);
  background-color: rgba(26, 115, 232, .05);
}

.project-client-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.ticket-title {
  max-width: 22rem;
}

.ticket-badge {
  display: inline-block;
  padding: .4rem .65rem;
  border: 1px solid color-mix(in srgb, var(--ticket-color) 65%, transparent);
  border-radius: .5rem;
  background: color-mix(in srgb, var(--ticket-color) 12%, white);
  color: var(--ticket-color);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}

.ticket-description {
  overflow-wrap: anywhere;
  color: #344767;
}

.ticket-description img,
.ticket-description table {
  max-width: 100%;
}

.ticket-comment {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.ticket-comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ticket-details dt {
  margin-top: .8rem;
  color: #8392ab;
  font-size: .7rem;
  text-transform: uppercase;
}

.ticket-details dt:first-child {
  margin-top: 0;
}

.ticket-details dd {
  margin-bottom: 0;
  color: #344767;
  font-size: .875rem;
}

.ticket-attachment {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.ticket-attachment:last-child {
  border-bottom: 0;
}

.ticket-attachment i {
  flex: 0 0 auto;
  font-size: 1.25rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--helpdesk-focus) 50%, transparent);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  .container-fluid.py-4 {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .table-responsive table {
    min-width: 720px;
  }

  .card-body {
    padding: 1.25rem;
  }

  .card form > .d-flex.justify-content-end,
  .card form .form-actions {
    flex-direction: column-reverse;
  }

  .card form > .d-flex.justify-content-end .btn,
  .card form .form-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
