:root {
    /* GENERAls */
    --bs-color-theme: #d6af5b;
    --bs-color-theme-hover: #c9a351;
    --bs-color-grey: #69727d;

    --bs-primary-rgb: 214, 175, 91;
    --bs-primary: #d6af5b;
}

.badge {
    --bs-badge-font-size: 0.85em !important;
}

.btn-primary {
    --bs-btn-color: #000;
    --bs-btn-bg: #d6af5b;
    --bs-btn-border-color: #d6af5b;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #c9a351;
    --bs-btn-hover-border-color: #c9a351;
    --bs-btn-focus-shadow-rgb: 101, 167, 247;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #c9a351;
    --bs-btn-active-border-color: #c9a351;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #d6af5b;
    --bs-btn-disabled-border-color: #d6af5b;
}

.btn-outline-primary {
    --bs-btn-color: #d6af5b;
    --bs-btn-border-color: #d6af5b;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d6af5b;
    --bs-btn-hover-border-color: #d6af5b;
    --bs-btn-focus-shadow-rgb: 74, 152, 245;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #d6af5b;
    --bs-btn-active-border-color: #d6af5b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #d6af5b;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #d6af5b;
    --bs-gradient: none;
}

input[readonly]:not(.flatpickr-input) {
    background: #F2F2F2;
    cursor: no-drop;
}

.cursor-pointer {
    cursor: pointer !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.fs-8 {
    font-size: 0.65rem !important;
}

.offcanvas.offcanvas-end {
    width: 650px;
}

@media screen and (max_width: 768px) {
    .offcanvas.offcanvas-end {
        width: 80%;
    }
}

.swal2-styled.swal2-confirm {
    color: #FFF;
}

.topbar-custom {
    z-index: 998 !important;
}

.app-sidebar-menu {
    margin: 5px;
    border-radius: 8px;
    width: calc(260px - 15px);
    padding-top: 100px;
    z-index: 999 !important;
}

.logo-box {
    height: auto;
    position: relative;
    padding: 0 20px 20px;
    width:240px;
}

.page-admin-finances-close-index .topbar-custom {
    position: absolute;
}

.topbar-custom {
    margin: 5px 5px 0 0;
    border-radius: 10px;
}

.content-page {
    margin-top: 100px;
}

.help-block {
    font-size: 0.8rem;
    color: #868686;
}

.select2-result-repository__title {
    color: #001b2f;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #001b2f !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable .select2-result-repository__title {
    color: #FFF !important;
}

.select2-container .select2-selection--single {
    height: auto !important;
    padding: .27rem .665rem;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    appearance: none;
    background-clip: padding-box;
    color: var(--bs-body-color);
    border: var(--bs-border-width) solid var(--bs-gray-400) !important;
    border-radius: .325rem !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.swal2-styled.swal2-confirm {
    background: #d6af5b !important;
}


/* Full Calendar Custom */
.fc-toolbar-title {
    font-size: 1.25em !important;
}

.fc-event {
    cursor: pointer;
    background: none;
    border: 0;
    overflow: hidden;
    box-shadow: none !important;
    padding: 2px;
}

.border-blue {
    border: 0 !important;
    border-left: 5px solid rgba(0, 0, 0, 0.2) !important;
    padding: 5px !important;
    color: #FFF !important;
    background: #3788d8 !important;
    border-radius: 5px !important;
}

.border-blue:hover,
.border-blue:focus {
    background: #3788d8 !important;
}

.border-green {
    border: 0 !important;
    border-left: 5px solid rgba(255, 255, 150, 0.3) !important;
    padding: 5px !important;
    color: #FFF !important;
    background: green !important;
    border-radius: 5px !important;
}

.border-green:hover,
.border-green:focus {
    background: green !important;
}

.fc-daygrid-dot-event.border-available,
.fc-daygrid-dot-event.border-unavailable {
    min-height: 120px !important;
}

.border-available {
    border: 0 !important;
    padding: 5px !important;
    color: rgb(25, 74, 29) !important;
    background-color: rgb(119, 209, 126) !important;
    border-radius: 5px !important;
}

.border-available:hover,
.border-available:focus {
    background-color: rgb(119, 209, 126) !important;
}

.border-unavailable {
    border: 0 !important;
    padding: 5px !important;
    color: rgb(17, 17, 17) !important;
    background-color: rgb(204, 204, 204) !important;
    border-radius: 5px !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.border-unavailable:hover,
.border-unavailable:focus {
    color: rgb(17, 17, 17) !important;
    background-color: rgb(204, 204, 204) !important;
}

.border-red {
    border: 0 !important;
    border-left: 5px solid rgb(0 0 0 / 30%) !important;
    padding: 5px !important;
    color: #FFF !important;
    background: #ff8f00 !important;
    border-radius: 5px !important;
}

.border-red:hover,
.border-red:focus {
    background: #ff8f00 !important;
}

.fc-daygrid-dot-event {
    display: block !important;
}

.fc .fc-list-event-dot {
    height: 20px;
    width: 5px;
}

.fc .fc-button {
    font-size: 0.95em !important;
    line-height: 1.0 !important;
    padding: 0.2em 0.8em !important;
}

.dropZone {
    border: 2px dashed #DDD;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 10px 20px;
    display: block;
    text-align: center;
    cursor: pointer !important;
}

.dropZone:hover {
    border-color: #CCC;
    background-color: #DDD;
}

#file-names ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#file-names li {
    background: #f8f9fa;
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 14px;
    color: #343a40;
}

.profile-dropdown a {
    padding: 7px 20px;
    display: block;
    width: 100%;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
    clear: both;
    font-weight: 400;
    color: var(--bs-dropdown-link-color);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: var(--bs-dropdown-item-border-radius, 0);
}

.profile-dropdown a:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
}

.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9;
}

.fab-button {
    width: 56px;
    height: 56px;
    background: #001b2f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.fab-button:active {
    transform: scale(0.9);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.fab-menu a {
    min-width: 150px;
    text-decoration: none;
    color: #001b2f;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.fab-menu a:hover {
    background: #f1f1f1;
}

.fab-menu.show {
    display: flex;
}

.qrcode-copy {
    word-break: break-all;
    white-space: normal;
}

/* Wizard Progress Bar */
.wizard-progress {
    padding: 0;
}

.progress-bar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar-custom::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    max-width: 80px;
    line-height: 1.2;
}

.step.active .step-number {
    background: var(--bs-primary);
    color: white;
}

.step.active .step-title {
    color: var(--bs-primary);
    font-weight: 600;
}

.step.completed .step-number {
    background: #198754;
    color: white;
}

.step.completed .step-title {
    color: #198754;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-title {
        font-size: 10px;
        max-width: 60px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .progress-bar-custom::before {
        left: 30px;
        right: 30px;
        top: 20px;
    }

    .wizard-navigation .btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .wizard-step h5 {
        font-size: 18px;
    }
}

/* Summary styles */
.summary-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.summary-section h6 {
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.summary-item strong {
    color: #212529;
}

.edit-section-btn {
    font-size: 12px;
    padding: 2px 8px;
}

/* Wizard Navigation */
.wizard-navigation {
    position: relative;
    /* sticky */
    bottom: 0px;
    z-index: 9;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.wizard-navigation .btn {
    min-width: 120px;
}

/* Modality Cards Styles */
.modality-card {
    border: 2px solid transparent;
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.modality-card.selected {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transform: translateY(-3px);
}

.modality-card.selected .card-header {
    position: relative;
}

.modality-card.selected .card-header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #28a745, #20c997);
    z-index: -1;
    border-radius: inherit;
}

.modality-card .card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #6c757d;
}

.modality-card.selected .card-footer {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.modality-card .price-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 0 auto;
    display: inline-block;
}

.modality-card .list-unstyled li {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive adjustments for modality cards */
@media (max-width: 768px) {
    .modality-card {
        margin-bottom: 1rem;
    }

    .modality-card .card-body ul li {
        font-size: 0.85rem;
    }

    .modality-card .price-container .h4 {
        font-size: 1.2rem;
    }
}

/* Styles for automatic discount display */
.price-with-discount,
.price-with-addition {
    line-height: 1.2;
}

.price-with-discount .text-decoration-line-through {
    font-size: 0.8rem;
    opacity: 0.7;
}

.price-with-discount .fw-bold,
.price-with-addition .fw-bold {
    font-size: 1.6rem;
    color: inherit;
}

.price-with-discount small,
.price-with-addition small {
    font-size: 0.7rem;
    margin-top: 2px;
}

/* Summary section styles for discount display */
.summary-item .price-with-discount,
.summary-item .price-with-addition {
    display: inline-block;
    vertical-align: top;
}

.bg-auth-page {
    background: url('../../galerias/background.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.auth-login-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-register-container {
    max-width: 600px;
    margin: 0 auto;
}

.auth-login-container .card,
.auth-login-container .card-body {
    border-radius: 15px !important;
    box-shadow: 2px 5px 20px #00000026;
}

@media screen and (max-width: 768px) {
    .auth-login-container {
        max-width: 84%;
        margin: 0 auto;
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

.auth-login-container .input-group-text {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    padding: 0.45rem 0.75rem;
    min-height: 40px !important;
    max-height: 40px !important;
    min-width: 90px;
}

.auth-login-container .input-group-text i {
    color: #6c757d;
    font-size: 0.7rem;
}

.auth-login-container .input-group input {
    border-radius: 0 5px 5px 0 !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

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

.google-drive-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.google-drive-status-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #28a745;
    animation: none;
}

.status-dot.disconnected {
    background: #dc3545;
    animation: none;
}

.status-dot.warning {
    background: #ffc107;
    animation: pulse 1s infinite;
}

.status-text {
    color: #000;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Tooltip para mostrar detalhes */
.google-drive-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    max-width: 250px;
    white-space: normal;
    display: none;
}

/* Responsive Tables for Mobile */
@media screen and (max-width: 762px) {
    .table-responsive table {
        border: none !important;
    }

    .table-responsive table thead {
        display: none !important;
    }

    .table-responsive table tbody,
    .table-responsive table tr {
        display: block !important;
        width: 100% !important;
    }

    .table-responsive table tr {
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
        padding: 10px !important;
        background: #fff !important;
    }

    .table-responsive table td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 5px 0 !important;
        text-align: left !important;
    }

    .table-responsive table td:first-child {
        font-weight: 600 !important;
        color: var(--bs-primary) !important;
        border-bottom: 1px solid #dee2e6 !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* Garantir que o dropdown do autocomplete apareça */
.ui-autocomplete {
    max-height: 180px;
    overflow-y: auto;
    z-index: 9999 !important;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-autocomplete .ui-menu-item {
    padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background-color: #f5f5f5;
}

.ui-autocomplete .ui-menu-item:last-child .ui-menu-item-wrapper {
    border-bottom: none;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover{
    font-weight: normal !important;
    border:none !important;
}

.ui-menu .ui-state-focus, .ui-menu .ui-state-active{
    margin:0 !important;
}

/* Payment Method Colors */
:root {
    /* Base colors */
    --payment-pix-50: #2ecc71;
    --payment-pix-50-rgb: 46, 204, 113;

    --payment-credit-card-50: #f39c12;
    --payment-credit-card-50-rgb: 243, 156, 18;

    --payment-pix-100: #27ae60;
    --payment-pix-100-rgb: 39, 174, 96;

    --payment-credit-card-100: #8e44ad;
    --payment-credit-card-100-rgb: 142, 68, 173;

    --payment-misto-100: #495057;
    --payment-misto-100-rgb: 73, 80, 87;

    /* Aguardando azul */
    --payment-aguardando: #0d6efd;
    --payment-aguardando-rgb: 13, 110, 253;
}

/* Text color utilities */
.text-payment-pix-50 { color: var(--payment-pix-50) !important; }
.text-payment-credit-card-50 { color: var(--payment-credit-card-50) !important; }
.text-payment-pix-100 { color: var(--payment-pix-100) !important; }
.text-payment-credit-card-100 { color: var(--payment-credit-card-100) !important; }
.text-payment-misto-100 { color: var(--payment-misto-100) !important; }
.text-payment-aguardando { color: var(--payment-aguardando) !important; }

/* Solid background utilities (auto white text) */
.bg-payment-pix-50 { background-color: var(--payment-pix-50) !important; color: #fff !important; }
.bg-payment-credit-card-50 { background-color: var(--payment-credit-card-50) !important; color: #fff !important; }
.bg-payment-pix-100 { background-color: var(--payment-pix-100) !important; color: #fff !important; }
.bg-payment-credit-card-100 { background-color: var(--payment-credit-card-100) !important; color: #fff !important; }
.bg-payment-misto-100 { background-color: var(--payment-misto-100) !important; color: #fff !important; }
.bg-payment-aguardando { background-color: var(--payment-aguardando) !important; color: #fff !important; }

/* Soft background utilities (subtle backgrounds for badges/labels) */
.bg-soft-payment-pix-50 { background-color: rgba(var(--payment-pix-50-rgb), 0.12) !important; color: var(--payment-pix-50) !important; }
.bg-soft-payment-credit-card-50 { background-color: rgba(var(--payment-credit-card-50-rgb), 0.12) !important; color: var(--payment-credit-card-50) !important; }
.bg-soft-payment-pix-100 { background-color: rgba(var(--payment-pix-100-rgb), 0.12) !important; color: var(--payment-pix-100) !important; }
.bg-soft-payment-credit-card-100 { background-color: rgba(var(--payment-credit-card-100-rgb), 0.12) !important; color: var(--payment-credit-card-100) !important; }
.bg-soft-payment-misto-100 { background-color: rgba(var(--payment-misto-100-rgb), 0.12) !important; color: var(--payment-misto-100) !important; }
.bg-soft-payment-aguardando { background-color: rgba(var(--payment-aguardando-rgb), 0.12) !important; color: var(--payment-aguardando) !important; }

/* Badge helpers: keep radius/padding from .badge, only recolor */
.badge-payment-pix-50 { background-color: var(--payment-pix-50) !important; color: #fff !important; }
.badge-payment-credit-card-50 { background-color: var(--payment-credit-card-50) !important; color: #fff !important; }
.badge-payment-pix-100 { background-color: var(--payment-pix-100) !important; color: #fff !important; }
.badge-payment-credit-card-100 { background-color: var(--payment-credit-card-100) !important; color: #fff !important; }
.badge-payment-misto-100 { background-color: var(--payment-misto-100) !important; color: #fff !important; }
.badge-payment-aguardando { background-color: var(--payment-aguardando) !important; color: #fff !important; }