/* ============================= */
/* ÍCONES SOCIAIS – P7CO CUSTOM  */
/* ============================= */

/* Estado normal: fundo neutro, ícone a cinzento */
.social-icon.social-microsoft,
.social-icon.social-sso {
    background-color: #f2f2f2 !important; /* fundo neutro */
    color: #555 !important;               /* ícone cinzento */
    border-color: #f2f2f2 !important;
    transition: all 0.25s ease-in-out;
}

/* Hover: aplica cor corporativa */
.social-icon.social-microsoft:hover {
    background-color: #6da1e6 !important; /* azul Microsoft */
    color: #fff !important;
    border-color: #6da1e6 !important;
}

.social-icon.social-sso:hover {
    background-color: #1aa081 !important; /* verde P7CO */
    color: #fff !important;
    border-color: #1aa081 !important;
}


/* ======== TOASTS GLOBAIS P7CO ======== */

#p7co-toast-holder {
    position: fixed;
    top: 120px;               /* ajusta conforme o header */
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.p7co-toast {
    width: min(960px, 90%);
    transition: all .3s ease;
    pointer-events: auto;
}

/* estilo base dos alerts */
.p7co-toast .alert {
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1.5rem;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    gap: .75rem;
}

/* wrapper para ícone com alinhamento centrado */
.p7co-toast-ico {
    width: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.4rem;
    font-size: 1.2rem;
    line-height: 1;
}

.p7co-toast-ico i {
    display: block;
    width: 100%;
    line-height: 1;
}

/* alinhamento vertical do texto */
.p7co-toast .alert span {
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* botão com estilo outline mais discreto */
.p7co-toast .btn-outline-dark {
    color: inherit;
    border-color: currentColor;
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;
}

.p7co-toast .btn-outline-dark:hover {
    background-color: currentColor;
    color: #fff;
    opacity: 1;
}

/* cores suaves */
.alert-success {
    background-color: #dbf8ec !important;
    color: #165d43 !important;
}

.alert-danger {
    background-color: #fde4e6 !important;
    color: #7b1424 !important;
}

.alert-warning {
    background-color: #fff4dd !important;
    color: #8b5a0b !important;
}

/* animações entrada/saída */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.p7co-toast-hide {
    opacity: 0;
    transform: translateY(-10px);
}

/* mobile */
@media (max-width: 767.98px) {
    #p7co-toast-holder {
        top: 90px;
        gap: 8px;
    }
    .p7co-toast {
        width: calc(100% - 24px);
    }
    .p7co-toast .alert {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .p7co-toast-ico {
        width: 1.2rem;
        font-size: 1rem;
    }
}
/* ============================= */

/* Flatpickr theme – P7CO (overrides only) */
.flatpickr-calendar {
  font-family: inherit !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.08) !important;
}

.flatpickr-months,
.flatpickr-weekdays {
  background: #fff !important;
}

.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.flatpickr-weekday {
  color: #111827 !important;
  font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: #21b995 !important;
}

.flatpickr-day {
  color: #111827 !important;
  border-radius: 8px !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #f3f4f6 !important;
  border-color: transparent !important;
  color: #111827 !important;
}

.flatpickr-day.today {
  border-color: #21b995 !important;
  box-shadow: 0 0 0 1px #21b995 inset !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #21b995 !important;
  color: #fff !important;
  border-color: #21b995 !important;
}

.flatpickr-day.inRange {
  background: rgba(33,185,149,.14) !important;
  border-color: transparent !important;
  color: #111827 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
  color: #9ca3af !important;
  background: transparent !important;
  cursor: not-allowed !important;
}

    /* Tabelas legais (Privacy) – bordas suaves e mais espaçamento */
    .p7co-table-soft {
        border: 1px solid #e6e8ec;
        border-radius: 10px;
        overflow: hidden;
    }

    .p7co-table-soft thead th {
        border-bottom: 1px solid #e6e8ec;
        border-right: 1px solid #e6e8ec;
        line-height: 1.35;
        padding: 12px 14px;
        vertical-align: middle;
    }

    .p7co-table-soft thead th:last-child {
        border-right: none;
    }

    .p7co-table-soft tbody td {
        border-bottom: 1px solid #eef0f3;
        border-right: 1px solid #eef0f3;
        line-height: 1.45;
        padding: 14px 16px;
        vertical-align: top;
        white-space: normal;
        word-break: break-word;
    }

    .p7co-table-soft tbody td:last-child {
        border-right: none;
    }

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

/* ============================= */
/* COOKIE SCRIPT – P7CO / WOLMART */
/* ============================= */

/* Wrapper (the report is injected inside #cookiescript_report) */
#cookiescript_report {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.5rem!important;
    line-height: 1.55;
    color: #222;
    max-width: 100%;
}

/* Headings injected by CookieScript */
#cookiescript_report h4,
#cookiescript_report h3,
#cookiescript_report h2 {
    margin: 22px 0 10px 0;
    font-size: 1.5rem!important;
    color: #111827;
    letter-spacing: -0.01em;
}

#cookiescript_report h4 {
    font-size: 1.5rem!important;
}

/* Checkbox row (categories) */
#cookiescript_report ._CookieScriptReportPageCheckboxes {
    margin: 16px 0 10px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 14px !important;
     font-size: 1.5rem!important;
}

#cookiescript_report ._CookieScriptReportPageCheckbox {
    margin: 0 !important;
     font-size: 1.5rem!important;
}

#cookiescript_report ._CookieScriptReportPageCheckboxLabel {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    cursor: pointer !important;
     font-size: 1.5rem!important;
}

#cookiescript_report ._CookieScriptReportPageCheckboxInput {
    width: 16px !important;
    height: 16px !important;
    transform: none !important; /* overrides the injected transform: scale(1.5) */
    accent-color: #21b995;
    margin: 0 !important;
     font-size: 1.5rem!important;
}

#cookiescript_report ._CookieScriptReportPageCheckboxText {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
     font-size: 1.5rem!important;
}

/* Save button */
#cookiescript_report ._CookieScriptReportPageSaveSettingButton {
    /* border-radius: 999px !important; */
    border: 1px solid #e6e8ec !important;
    background: #21b995 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    line-height: 1 !important;
     font-size: 1.5rem!important;
}

#cookiescript_report ._CookieScriptReportPageSaveSettingButton:hover {
    background: #189578 !important;
    border-color: #189578 !important;
}

/* Consent key box */
#cookiescript_report ._CookieScriptReportPageConsentKey {
    border: 1px solid #e6e8ec;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0 14px 0;
    color: #111827;
     font-size: 1.5rem!important;
}

/* Tables (Cookie report + storage declaration) */
#cookiescript_report ._CookieScriptReportPageTable {
    width: 100% !important;
     font-size: 1.5rem!important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    margin: 10px 0 18px 0 !important;
    font-family: inherit !important; /* overrides injected arial */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

#cookiescript_report ._CookieScriptReportPageTable caption {
    display: table-caption;
     font-size: 1.5rem!important;
    caption-side: top;
    padding: 10px 12px !important;
  
    color: #6b7280 !important;
}

#cookiescript_report ._CookieScriptReportPageTableTh {
    background: #f8f9fb !important;
    font-size: 1.3rem!important;
    color: #111827 !important;
    border-bottom: 1px solid #e6e8ec !important;
    border-right: 1px solid #e6e8ec !important;
    padding: 10px 12px !important;
    vertical-align: middle !important;
    text-align: left !important;
}

#cookiescript_report ._CookieScriptReportPageTableTh:last-child {
    border-right: none !important;
     font-size: 1.3rem!important;
}

#cookiescript_report ._CookieScriptReportPageTableTd {
    border-bottom: 1px solid #eef0f3 !important;
    border-right: 1px solid #eef0f3 !important;
     font-size: 1.3rem!important;
    padding: 10px 12px !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: break-word !important;
    color: #111827 !important;
    background: #fff !important;
    text-align: left !important;
}

#cookiescript_report tr:nth-child(even) ._CookieScriptReportPageTableTd {
    background: #fcfcfd !important;
}

#cookiescript_report ._CookieScriptReportPageTableTd:last-child {
    border-right: none !important;
}

#cookiescript_report tr:last-child ._CookieScriptReportPageTableTd {
    border-bottom: none !important;
}

/* Vendor links */
#cookiescript_report ._CookieScriptReportVendorName a,
#cookiescript_report a {
    color: #21b995 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

#cookiescript_report a:hover {
    color: #189578 !important;
}

/* Mobile: allow horizontal scroll for wide tables */
@media (max-width: 767.98px) {
    #cookiescript_report {
         font-size: 1.5rem!important;
    }

    #cookiescript_report ._CookieScriptReportPageTable {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #cookiescript_report ._CookieScriptReportPageTableTh,
    #cookiescript_report ._CookieScriptReportPageTableTd {
         font-size: 1.5rem!important;
    }
}

/* ============================= */
/* SELECT2 STYLING – MYADS-UX-006 */
/* ============================= */

/* WHY: Custom Select2 styling to match Wolmart design */
.p7co-ler-select2 {
    width: 100% !important;
    min-height: 40px !important;
}

.p7co-ler-select2 + .select2-container {
    width: 100% !important;
}

.p7co-ler-select2 + .select2-container .select2-selection--single {
    height: 40px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 0 !important;
    background-color: #fff !important;
}

.p7co-ler-select2 + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding: 0 12px !important;
    color: #333 !important;
    font-size: 14px !important;
}

.p7co-ler-select2 + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    width: 36px !important;
    right: 0 !important;
}

.p7co-ler-select2 + .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #999 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-top: 12px !important;
}

.p7co-ler-select2 + .select2-container.select2-container--focus .select2-selection--single {
    border-color: #1aa081 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
}

.p7co-ler-select2 + .select2-container.select2-container--open .select2-selection--single {
    border-color: #1aa081 !important;
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Dropdown panel styling */
.p7co-ler-select2 + .select2-container .select2-dropdown {
    border-color: #1aa081 !important;
    border-top: none !important;
    background-color: #fff !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.p7co-ler-select2 + .select2-container .select2-dropdown--below {
    border-top: none !important;
}

.p7co-ler-select2 + .select2-container .select2-results__options {
    max-height: 300px !important;
}

/* Option styling */
.p7co-ler-select2 + .select2-container .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #333 !important;
}

.p7co-ler-select2 + .select2-container .select2-results__option--highlighted {
    background-color: #1aa081 !important;
    color: #fff !important;
}

.p7co-ler-select2 + .select2-container .select2-results__option--selected {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* Placeholder styling */
.p7co-ler-select2 + .select2-container .select2-selection__placeholder {
    color: #999 !important;
}

/* Search input styling */
.p7co-ler-select2 + .select2-container .select2-search__field {
    padding: 6px 12px !important;
    font-size: 14px !important;
}

/* ======== SELECT2 ENGINEERING FILTERS - WOLMART STYLE ======== */

/* Remove blue from active state, use wolmart neutral colors */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    height: 40px !important;
    padding: 6px 12px !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease !important;
}

/* Focus and active states - grey not blue */
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #999 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Rendered text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    padding-left: 0 !important;
    color: #333 !important;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px !important;
}

/* Dropdown container */
.select2-container--default .select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Dropdown options */
.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #333 !important;
}

/* Hover state - light grey (wolmart style) NOT blue */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

/* Selected item - darker grey */
.select2-container--default .select2-results__option--selected {
    background-color: #e9e9e9 !important;
    color: #333 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e9e9e9 !important;
}

/* Search input in dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #999 !important;
    outline: none !important;
}

/* Multiple selection (if used) */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #999 !important;
}

/* Clear button */
.select2-container--default .select2-selection__clear {
    color: #999 !important;
    font-size: 18px !important;
    margin-right: 10px !important;
}

.select2-container--default .select2-selection__clear:hover {
    color: #666 !important;
}

.p7co-toast {
    margin-bottom: .75rem;
}

.p7co-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.08);
}

.p7co-toast .alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.p7co-toast-text {
    line-height: 1.4;
}

.p7co-toast-hide {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;
}

/* ============================= */
/* COMPLAINT STATUS BADGES       */
/* ============================= */

/* Base status badge styling */
.status-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* StatusId 10 - SUBMITTED (reserved, não usado normalmente) */
.status-submitted {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* StatusId 11 - UNDER_REVIEW (em análise) */
.status-under_review {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* StatusId 12 - VALIDATED (validada) */
.status-validated {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

/* StatusId 13 - REPORTED → agora "Publicada" (público) */
.status-reported {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* StatusId 14 - REJECTED (rejeitada) */
.status-rejected {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* StatusId 15 - RESOLVED (resolvida, público) */
.status-resolved {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Fallback for unknown status */
.status-unknown {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

/* ======================================== */
/* LEAFLET MAP ATTRIBUTION - LEGAL/VISIBLE  */
/* ======================================== */
/* Per OSM ODbL & CARTO terms: visible, in-map, not hidden */
.leaflet-control-attribution {
    background: rgba(17, 24, 39, 0.88) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    padding: 6px 12px !important;
    margin: 0 10px 10px 0 !important;
    line-height: 1.4 !important;
}
.leaflet-control-attribution a {
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
    color: #a5f3fc !important;
}
/* Hide Leaflet logo prefix for cleaner look */
.leaflet-control-attribution .leaflet-attribution-flag {
    display: none !important;
}

/* Mapa Circular (/Home/Mapa) - attribution à esquerda por causa da legenda */
#p7co-circular-map .leaflet-control-attribution {
    left: 10px !important;
    right: auto !important;
}
#p7co-circular-map .leaflet-bottom.leaflet-right {
    left: 0 !important;
    right: auto !important;
}

/* ======================================== */
/* FAQ PAGE - NO BLUE HOVER ON LINKS        */
/* ======================================== */
/* Override demo3 blue hover - use P7CO green */
.faq .icon-box-title a,
.faq .icon-box-title a:hover,
.faq .icon-box-title a:focus,
.faq .icon-box-content a,
.faq .icon-box-content a:hover,
.faq .icon-box-content a:focus {
    color: inherit !important;
    text-decoration: none !important;
}
.faq .icon-box-title a:hover,
.faq .icon-box-content a:hover {
    color: #1aa081 !important;
}
.faq .accordion .card-header a,
.faq .accordion .card-header a:hover,
.faq .accordion .card-header a:focus {
    color: inherit !important;
}
.faq .accordion .card-body a:hover {
    color: #1aa081 !important;
}

/* ======================================== */
/* HELP LINKS - NO BLUE HOVER              */
/* ======================================== */
/* Ajuda links in forms and pages */
a.text-muted:hover,
a.text-muted:focus {
    color: #1aa081 !important;
}