 /* CSS para sticky footer */
    html, body {
      height: 100%;
      margin: 0;
    }
    .wrapper {
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

/* Global container width overrides for better mobile/tablet UX */
/* Use full width on smaller screens for optimal viewing and interaction */
@media (min-width: 576px) and (max-width: 767px) {
    .container, .container-sm {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575px) {
    .container {
        max-width: 100% !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
    .content {
      flex: 1;
    }
    footer {
      background-color: #333;
      color: #fff;
      padding: 1rem;
      text-align: center;
    }

    /* assets/css/custom.css */
.client-area-content {
  min-height: calc(100vh - 200px); /* Ajuste 200px conforme necessário */
  padding: 20px;
}

/* assets/css/custom.css */
.min-height-page {
  /* Adjust 200px as needed (header + footer height) */
  min-height: calc(100vh - 500px);
  padding: 20px;
}



/*CARD INSPECTION VIEW CSS*/


.card-footer {
  transition: background-color 0.3s ease;
}

.card-footer:hover {
  background-color: #f8f9fa !important;
}

.btn-group .btn {
  transition: all 0.2s ease;
}

.btn-group .btn:hover {
  transform: translateY(-1px);
}

.badge {
  padding: 0.5em 0.8em;
}

.dropdown-item {
  padding: 0.5rem 1rem;
}

.dropdown-item i {
  margin-right: 0.5rem;
  width: 1rem;
}

/* Inspection Card Styles */
.inspection-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inspection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

.card-footer {
  transition: background-color 0.3s ease;
}

.card-footer:hover {
  background-color: #f8f9fa !important;
}

.btn-group .btn {
  transition: all 0.2s ease;
}

.btn-group .btn:hover {
  transform: translateY(-1px);
}

.badge {
  padding: 0.5em 0.8em;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item i {
  margin-right: 0.5rem;
  width: 1rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Status badge styles */
.badge i {
  margin-right: 0.25rem;
}

/* Card info styles */
.card-body small.text-muted {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Card footer info styles */
.card-footer .text-muted i {
  margin-right: 0.35rem;
}

/* Button group spacing */
.btn-group .btn:not(:last-child) {
  margin-right: 1px;
}

/* Hover effects for buttons */
.btn-outline-info:hover,
.btn-outline-danger:hover,
.btn-outline-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,.1); }



 .fixfo {
min-height: 80% !important;
margin-bottom: 32px !important;

 }

/* Inspection register tweaks */
.order-lines-table td .btn {
  min-width: 2.25rem;
}

.order-lines-table td .btn i {
  pointer-events: none;
}

@media (max-width: 767.98px) {
  #inspectionForm .card-header {
    text-align: center;
  }

  #inspectionForm #addOrderLineButton span {
    display: none;
  }
}
/* Remove unexpected top spacing */
html, body { margin-top: 0 !important; padding-top: 0 !important; }
.navbar { margin-top: 0 !important; }
/* Ensure toast container never reserves top space */
.toast-container { top: auto !important; }

/* Tag input component */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  min-height: 2.75rem;
  cursor: text;
  background-color: #fff;
}

.tag-input:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.tag-input.tag-input--empty {
  color: #6c757d;
}

.tag-input__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.tag-input__entry {
  flex: 1 0 12rem;
  border: none;
  outline: none;
  min-width: 8rem;
  background: transparent;
}

.tag-input__entry::placeholder {
  color: #adb5bd;
}

.tag-input__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.85rem;
  padding-right: 0.65rem;
}

.tag-input__pill .btn-close {
  width: 0.6rem;
  height: 0.6rem;
  font-size: 0.6rem;
}

.tag-input__pill .btn-close:hover {
  opacity: 0.75;
}

/* Question flagging */
.question-wrapper {
  position: relative;
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.question-wrapper.flagged {
  border: 1px solid rgba(220,53,69,0.4);
  background-color: rgba(220,53,69,0.08);
}

.flag-toggle.btn-outline-danger.active,
.flag-toggle.btn-outline-danger:focus {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.flag-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background-color: rgba(220,53,69,0.1);
  color: #842029;
  font-weight: 500;
}

/* Series input */
.series-input {
  border: 1px dashed #ced4da;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
}

.series-input__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.series-input__chip {
  background-color: #0d6efd;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.series-input__chip button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.9);
  padding: 0;
  line-height: 1;
}

.series-input__chip button:hover {
  color: #fff;
}

.series-input__controls .btn {
  min-width: 4.5rem;
}

.series-input__average {
  font-weight: 600;
  color: #0d6efd;
}

.impression-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 600;
}

.impression-status--good {
  background-color: rgba(25,135,84,0.15);
  color: #198754;
}

.impression-status--warning {
  background-color: rgba(253,126,20,0.15);
  color: #fd7e14;
}

.impression-status--critical {
  background-color: rgba(220,53,69,0.12);
  color: #dc3545;
}

/* Inspection Template Enhancements */
.inspection-template-wrapper {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef1f8 100%);
  min-height: 100vh;
  padding: 32px 0 48px;
}

.inspection-template-wrapper .page-header-card {
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(20, 35, 90, 0.08);
  overflow: hidden;
}

.page-header-card .header-accent {
  background: linear-gradient(135deg, #1f6feb 0%, #0ea5e9 100%);
  padding: 22px 28px;
  color: #fff;
}

.page-header-card .header-accent h4 {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.page-header-card .header-accent .meta {
  font-size: 0.92rem;
  opacity: 0.85;
}

.page-header-card .header-body {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.page-header-card .header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  color: #1849a5;
  font-weight: 600;
  font-size: 0.85rem;
}

.info-card {
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(20, 35, 90, 0.06);
  overflow: hidden;
}

.info-card .card-header {
  border: none;
  background: #fff;
  padding: 22px 28px 0;
}

.info-card .card-header h5 {
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
  color: #1d2746;
}

.info-card .card-body {
  padding: 20px 28px 28px;
}

.general-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 28px;
}

.general-info-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e3e6f0;
}

.general-info-field:last-child {
  border-bottom: none;
}

.general-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c7a99;
  font-weight: 600;
}

.general-info-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #283350;
}

.list-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.list-pill-group .badge {
  background: rgba(31, 111, 235, 0.12);
  color: #1f3a8a;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
}

#inspection-overview-form .form-control,
#inspection-overview-form .form-select,
#inspection-overview-form .tag-input {
  border-radius: 12px;
  border-color: #d7ddea;
  background-color: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#inspection-overview-form .form-control:focus,
#inspection-overview-form .form-select:focus,
.tag-input:focus-within {
  border-color: #1f6feb;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.question-section-card {
  border-radius: 18px;
  background: #fff;
  border: none;
  box-shadow: 0 18px 42px rgba(20, 35, 90, 0.05);
}

.question-section-card .card-header {
  background: #fff;
  border: none;
  padding: 22px 28px 0;
}

.question-section-card .card-body {
  padding: 22px 28px 28px;
}

.question-wrapper {
  background: #f7f9fd;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.question-wrapper:hover {
  border-color: rgba(31, 111, 235, 0.28);
  box-shadow: 0 12px 30px rgba(20, 35, 90, 0.06);
  background: #ffffff;
}

.question-wrapper.flagged {
  border-color: rgba(220, 53, 69, 0.4);
  background-color: rgba(252, 233, 236, 0.55);
}

.question-wrapper.invalid {
  border-color: rgba(220, 53, 69, 0.5);
}

.flag-toggle.btn-outline-danger {
    border-radius: 999px;
    padding: 6px 12px;
}

.series-input {
  background: #fff;
  border: 1px dashed #c5d1eb;
  border-radius: 12px;
  padding: 14px;
}

.series-input__chip {
  background: linear-gradient(135deg, #1f6feb 0%, #0ea5e9 100%);
}

.series-input__controls .btn {
  border-radius: 12px;
}

.impression-card {
  border-radius: 18px;
  border: none;
  background: #fff;
  box-shadow: 0 22px 50px rgba(20, 35, 90, 0.06);
}

.impression-card .card-header {
  border: none;
  background: #fff;
  padding: 22px 28px 0;
}

.impression-card .card-body {
  padding: 24px 28px 30px;
}

.impression-status-options {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.impression-status-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: #f5f7fd;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #425070;
}

.impression-status-option .status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: inset 0 0 0 4px #fff;
}

.impression-status-option[data-status="good"] .status-dot { background: #16a34a; }
.impression-status-option[data-status="monitor"] .status-dot { background: #f97316; }
.impression-status-option[data-status="critical"] .status-dot { background: #dc2626; }

.impression-status-option input[type="radio"] {
  display: none;
}

.impression-status-option.active,
.impression-status-option:hover {
  border-color: rgba(31, 111, 235, 0.45);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(20, 35, 90, 0.08);
}

.impression-status-pill {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.impression-status--good { background: rgba(22, 163, 74, 0.16); color: #166534; }
.impression-status--warning { background: rgba(249, 115, 22, 0.16); color: #9a3412; }
.impression-status--critical { background: rgba(220, 38, 38, 0.16); color: #991b1b; }

.flag-summary-pill {
  background: rgba(220, 53, 69, 0.12);
  border-radius: 999px;
  color: #842029;
  padding: 6px 14px;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .page-header-card .header-body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .inspection-template-wrapper {
    padding: 20px 0 32px;
  }

  .page-header-card .header-body {
    grid-template-columns: 1fr;
  }

  .general-info-grid {
    grid-template-columns: 1fr;
  }

  .impression-status-options {
    flex-direction: column;
    align-items: stretch;
  }

  .impression-status-option {
    justify-content: center;
  }
}

/* ================================================
   NOTIFICATION BELL - TIMELINE STYLE DESIGN
   ================================================ */

/* Bell icon and badge */
.nav-link .bi-bell-fill {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .bi-bell-fill {
    transform: rotate(12deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#notification-badge {
    font-size: 0.625rem;
    padding: 0.2em 0.5em;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -4px;
    margin-top: 9px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.8),
                0 2px 8px rgba(220, 38, 38, 0.6);
    animation: pulse-badge 2.5s ease-in-out infinite;
    border: 2px solid #ffffff;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.8),
                    0 2px 8px rgba(220, 38, 38, 0.6);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.6),
                    0 3px 10px rgba(220, 38, 38, 0.7);
    }
}

/* DESIGN 2 - COMPACT LIST */
/* Notification dropdown container */
.notification-dropdown {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 8px;
    background: #ffffff;
    padding: 0;
    width: 380px;
    max-width: 95vw;
    max-height: 500px;
    overflow-y: auto;
}

.notification-dropdown .dropdown-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.875rem 1rem;
    border-bottom: none;
}

.notification-dropdown .dropdown-header h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

/* Notification list */
#notification-list {
    padding: 0;
    background: #ffffff;
}

/* Individual notification item */
.notification-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

/* Unread indicator dot */
.unread-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Notification header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.notification-title {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 0.5rem;
}

.notification-badge {
    background: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* Notification summary */
.notification-summary {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0.4rem;
}

/* Notification footer */
.notification-footer {
    font-size: 0.75rem;
    color: #94a3b8;
}

.notification-footer i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Mark all read button */
#mark-all-read-btn {
    font-size: 0.8rem;
    color: white;
    background: transparent;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
}

#mark-all-read-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Scrollbar styling */
.notification-dropdown::-webkit-scrollbar {
    width: 8px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}
