:root {
    --branco: #fff;
    --primary-color: #7323a9;
    --dark-color: #121212;
    --text-color: #e0e0e0;
    --secondary-color: #333333;
    --accent-color: #fd18f0;
    --header-height: 3rem;
    --nav-width: 68px;
    --z-fixed: 100;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
}

body {
    transition: .5s;
}

.roxo {
    color: var(--primary-color);
}

.bgDegrade {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/*BOTÕES*/
.btn-roxo {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--branco);
    font-weight: 600;
    transition: .3s;
    display: block;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
}

.btn-roxo:hover,
.btn-roxo:focus,
.btn-roxo:active {
    background-color: var(--accent-color);
    color: var(--branco) !important;
}

.btn-roxo:disabled {
    color: var(--text-color);
}

.btn-outline-secondary-custom {
    background: #fff;
    border: 2px solid #E5E7EB;
    color: #6b7280;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-outline-secondary-custom:hover {
    border-color: #6b7280;
    color: var(--dark-color);
}

/*LOGIN*/

.container-login {
    width: 100dvw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

.logo-login {
    width: 150px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.form button {
    align-self: flex-end;
}

.flex-column>label {
    color: #151717;
    font-weight: 600;
}

.inputForm {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    transition: 0.2s ease-in-out;
    gap: .2rem;
}

.inputForm i {
    color: var(--primary-color);
}

.input {
    border-radius: 10px;
    border: none;
    width: 85%;
    height: 100%;
}

.input:focus {
    outline: none;
}

.inputForm:focus-within {
    border: 1.5px solid var(--primary-color);
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.flex-row>div>label {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.esqueci-minha-senha {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.button-submit {
    margin: 20px 0 10px 0;
    background-color: #151717;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
}

.button-submit:hover {
    background-color: #252727;
}

.p {
    text-align: center;
    color: black;
    font-size: 14px;
    margin: 5px 0;
}

/* NAVBAR */
.header {
    width: 100vw;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: var(--z-fixed);
    transition: .5s
}

.header_toggle {
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer
}

.header_login {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.header_login img {
    width: 40px;
}

.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--primary-color);
    color: var(--branco);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed);
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Container interno (logo + lista) ocupa todo o espaço disponível */
.nav>div:first-child {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.nav_list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.nav_list::-webkit-scrollbar {
    width: 4px;
}

.nav_list::-webkit-scrollbar-track {
    background: transparent;
}

.nav_list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 4px;
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem;
    text-decoration: none;
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--branco)
}

.nav_logo-name {
    color: var(--branco);
    font-weight: 700
}

.nav_link {
    position: relative;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    transition: .3s;
    text-decoration: none;
}

.nav_link:hover {
    color: var(--branco)
}

.nav_icon {
    font-size: 1.25rem
}

.show-navbar {
    left: 0
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem);
}

.activeNav {
    color: var(--branco)
}

.activeNav::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--branco)
}

.height-100 {
    height: 100vh
}

@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_login {
        width: 40px;
        height: 40px
    }

    .header_login img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .show-navbar {
        width: calc(var(--nav-width) + 156px)
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 160px);
    }
}

/*MENU CONFIGURAÇÕES*/
.container-menu-configuracoes {
    color: var(--dark-color);
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    text-decoration: none;
    border-left: 2px solid transparent;
}

.container-menu-configuracoes:hover {
    border-left: 2px solid var(--accent-color);
}

.container-icone-menu-configuracao {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: .8rem;
    background-color: var(--primary-color);
    color: var(--branco);
    border-radius: 999px;
}

.container-icone-menu-configuracao.em-desenvolvimento {
    background-color: var(--text-color) !important;
}

/* MEU PLANO */
.containerInfoPagamento {
    background-color: #F3F4F6;
    border-radius: 10px;
    padding: 1rem;
}

.containerInfoPagamento i {
    color: var(--primary-color);
}

.containerInfoPagamento>div>span {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.containerInfoPagamento span {
    font-size: .5rem;
}

/*PARAMETRO SISTEMA*/
.prev-horarios-reserva {
    background-color: var(--branco);
    border: 1px solid #E5E7EB;
    padding: 1rem;
    border-radius: 10px;
}

.time-slot {
    background-color: var(--primary-color);
    border: none;
    color: var(--branco);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.info-box {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.08), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(107, 33, 168, 0.2);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(#E5E7EB);
}

.future-settings {
    background: #fff;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    color: #6b7280;
}

.future-settings i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.future-settings h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #6b7280;
}

.future-settings p {
    font-size: 0.85rem;
    margin: 0;
}

.time-slot.more {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px dashed #E5E7EB;
}

/* PAINEL INICIO */
.containerCardRelatorio {

    position: relative;
    border: 1px solid var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
    border-radius: 15px;
    padding: 1rem;
    overflow: hidden;
}

.containerCardRelatorio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.containerCardRelatorio span {
    font-size: 1.5rem;
    font-weight: 700;
}

.containerCardRelatorio p {
    margin: 0;
}

.iconeRelatorio {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    color: var(--branco);
    font-size: 1.5rem;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
}

.instagram-link {
    color: #E4405F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.instagram-link:hover {
    color: #C13584;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* GERENCIAMENTO AGENDAMENTO */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.barbeiro-filter-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.barbeiro-filter-item.active .barbeiro-filter-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}

.barbeiro-filter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barbeiro-filter-avatar.all-filter {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--branco);
    font-size: 24px;
}

.barbeiros-filter-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    overflow-x: auto;
    padding: .8rem 0;
}

.barbeiro-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--text-color);
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
}

.barbeiro-filter-item:hover {
    background-color: rgba(106, 13, 173, 0.1);
    border-color: rgba(106, 13, 173, 0.3);
    transform: translateY(-2px);
}

.barbeiro-filter-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.barbeiro-filter-item.active::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--success-color);
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.barbeiro-filter-name {
    font-size: 12px;
    color: var(--dark-color);
    text-align: center;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.barbeiro-filter-item.active .barbeiro-filter-name {
    color: var(--primary-color);
    font-weight: 600;
}

.loading-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    padding: 20px;
}

.loading-filter i {
    color: var(--primary-color);
    font-size: 18px;
}

.loading-filter span {
    font-size: 14px;
    color: #aaa;
}

.empty-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    padding: 20px;
    font-size: 14px;
}

.empty-filter i {
    font-size: 18px;
}

.fc-col-header-cell-cushion {
    color: var(--primary-color);
    text-decoration: none;
}

.fc-daygrid-day-number {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.fc-v-event .fc-event-main-frame {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: .5rem;
    width: 100% !important;
    align-items: center;
    justify-content: center;
}

.fc-timegrid-event .fc-event-time {
    font-weight: 700;
}

.fc-timegrid-col-events {
    display: flex !important;
    flex-direction: column !important;
    gap: .5rem !important;
}

.fc .fc-button-primary,
.fc .fc-button-primary:active,
.fc .fc-button-primary:focus {
    background-color: var(--primary-color) !important;
    color: var(--branco) !important;
    border-color: var(--branco) !important;
    box-shadow: none !important;
}

.fc .fc-button-primary:hover {
    background-color: rgba(106, 13, 173, 0.808);
    border-color: var(--branco);
}

.fc .fc-button-primary:disabled {
    background-color: rgba(106, 13, 173, 0.5);
    border-color: var(--branco);
}

/* FUNCIONARIOS */
.cargo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cargo-input-group input {
    flex: 1;
}

.cargo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cargo-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--branco);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cargo-tag .remove-cargo {
    background: none;
    border: none;
    color: var(--branco);
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cargo-tag .remove-cargo:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#searchInput {
    max-width: 350px;
}

.image-upload-container {
    position: relative;
}

.image-upload-label {
    display: block;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.banner-upload {
    aspect-ratio: 16/9;
    max-height: 120px;
}

.avatar-upload {
    aspect-ratio: 1;
    max-height: 120px;
    border-radius: 50%;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-preview {
    border-radius: 50%;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #7323a963;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 8px;
}

.image-upload-label:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 24px;
}

.upload-overlay span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*GALERIA*/
.gallery-card-info {
    padding: .5rem .8rem;
    display: flex;
    justify-content: space-between;
}

.container-foto-galeria {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary-color);
    border-radius: .8rem;
}

.gallery-image {
    border-radius: .8rem .8rem 0 0;
}


.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-description {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.file-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    border: 2px dashed #444;
    border-radius: 10px;
    background-color: #fd18f228;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.file-upload-label:hover,
.file-upload-label.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(106, 13, 173, 0.1);
    color: var(--primary-color);
}

.file-upload-label i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}

.file-upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.file-upload-info {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
}

#imagePreviewContainer {
    text-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Image Preview */
.image-preview-container {
    margin-top: 20px;
}

.image-preview {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(106, 13, 173, 0.3);
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
}

.remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--danger-color), #EF5350);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-preview:hover {
    background: linear-gradient(135deg, #EF5350, var(--danger-color));
    transform: scale(1.1);
}

/* PERFIL PROFISSIONAL */
.profile-banner {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 30px #fd18f22c;
}

.profile-name {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item.full-width {
    flex-direction: column;
    gap: 10px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    min-width: 120px;
}

.info-label i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
}

.info-value {
    font-size: 14px;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.info-item.full-width .info-value {
    text-align: left;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.hours-item:hover {
    background-color: rgba(106, 13, 173, 0.1);
}

.hours-item.closed {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.hours-item .day {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.hours-item .time {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.hours-item.closed .time {
    color: var(--danger-color);
}

@media screen and (max-width: 767px) {

    .containerCardRelatorio {
        justify-content: center;
        align-items: center;
        height: 100%;
        text-align: center;
        gap: .5rem;
    }

    .iconeRelatorio {
        width: 35px;
        height: 35px;
        font-size: .8rem;
    }

    .containerCardRelatorio span {
        font-size: 1.1rem;
    }

    .containerCardRelatorio p {
        font-size: .7rem;
    }

    .fc .fc-toolbar {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .fc-toolbar-title {
        font-size: 1.3rem !important;
    }

    .profile-banner {
        height: 200px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-description {
        font-size: .8rem;
    }

    .profile-basic-info {
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: .3rem;
    }

    .info-value {
        text-align: left;
    }

    .actions-row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .actions-row button {
        width: 100%;
    }

}

@media screen and (max-width: 991px) {

    .profile-basic-info {
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: .3rem;
    }

    .info-value {
        text-align: left;
    }

}

/* CARDS CLIENTES DO DIA */
.client-card {
    border: 1px solid var(--text-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 35, 169, 0.12);
}

.client-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem .6rem;
}

.client-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.client-card-identity {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.client-card-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-card-body {
    padding: .4rem 1rem .8rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.client-card-info-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #555;
}

.client-card-info-row i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.client-card-footer {
    padding: .7rem 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.client-card-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

/* BOTÃO FILTRO */
.btn-filtro {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid var(--text-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s ease;
}

.btn-filtro:hover {
    border-color: var(--primary-color);
    background: rgba(115, 35, 169, .06);
}

.btn-filtro.ativo {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: transparent;
    color: #fff;
}

.filtro-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* MODAL FILTROS */
.modal-filtros-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-filtros-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-filtros-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.btn-close-filtros {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.btn-close-filtros:hover {
    background: #e5e7eb;
}

.modal-filtros-body {
    padding: 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-filtros-footer {
    padding: 1rem 1.3rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: .7rem;
}

/* Seções do modal */
.filtro-secao {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.filtro-secao-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary-color);
}

/* Status pills */
.filtro-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.filtro-status-pill {
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 10px;
    padding: .65rem .5rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.filtro-status-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(115, 35, 169, .05);
}

.filtro-status-pill.active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: transparent;
    color: #fff;
}

.filtro-status-pill.pendente.active {
    background: rgba(255, 152, 0, .15);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.filtro-status-pill.pendente:hover {
    background: rgba(255, 152, 0, .1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.filtro-status-pill.concluido.active {
    background: rgba(76, 175, 80, .15);
    border-color: var(--success-color);
    color: var(--success-color);
}

.filtro-status-pill.concluido:hover {
    background: rgba(76, 175, 80, .1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.filtro-status-pill.cancelado.active {
    background: rgba(244, 67, 54, .15);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.filtro-status-pill.cancelado:hover {
    background: rgba(244, 67, 54, .1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Horário */
.filtro-hora-row {
    display: flex;
    align-items: flex-end;
    gap: .6rem;
}

.filtro-hora-campo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.filtro-hora-label {
    font-size: .75rem;
    font-weight: 600;
    color: #777;
}

.filtro-hora-separador {
    color: #aaa;
    padding-bottom: .7rem;
    font-size: .85rem;
}

/* Funcionários */
.filtro-func-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .6rem;
}

.filtro-func-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: .6rem .4rem;
    cursor: pointer;
    transition: all .2s ease;
    font-size: .72rem;
    font-weight: 600;
    color: #555;
}

.filtro-func-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(115, 35, 169, .05);
}

.filtro-func-card.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(115, 35, 169, .1);
    box-shadow: 0 2px 8px rgba(115, 35, 169, .15);
}

.filtro-func-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
}

.filtro-func-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* FAIXA DE DIAS (mobile) */
.day-strip-scroll {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding: .3rem .1rem .6rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.day-strip-scroll::-webkit-scrollbar {
    display: none;
}

.day-strip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    min-width: 52px;
    padding: .55rem .3rem .45rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    scroll-snap-align: center;
    position: relative;
    flex-shrink: 0;
}

.day-strip-btn:hover {
    border-color: var(--primary-color);
    background: rgba(115, 35, 169, .05);
}

.day-strip-btn.hoje {
    border-color: rgba(115, 35, 169, .35);
}

.day-strip-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(115, 35, 169, .35);
}

.day-strip-weekday {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #999;
}

.day-strip-btn.active .day-strip-weekday {
    color: rgba(255, 255, 255, .8);
}

.day-strip-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.day-strip-btn.active .day-strip-num {
    color: #fff;
}

.day-strip-month {
    font-size: .62rem;
    font-weight: 600;
    color: #aaa;
    text-transform: lowercase;
}

.day-strip-btn.active .day-strip-month {
    color: rgba(255, 255, 255, .75);
}

/* Ponto indicador de agendamentos */
.day-strip-btn.tem-agendamento::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
}

.day-strip-btn.active.tem-agendamento::after {
    background: #fff;
}

/* Oculta a faixa no desktop */
@media (min-width: 768px) {
    #dayStripWrapper {
        display: none !important;
    }
}

/* GRADE DE AGENDAMENTOS */
.ag-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 576px) {
    .ag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ag-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .ag-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ag-grid-loading,
.ag-grid-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 3rem 1rem;
    color: #bbb;
}

.ag-grid-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

.ag-grid-empty i {
    font-size: 2.5rem;
    color: #ddd;
}

.ag-grid-empty span {
    font-size: .9rem;
    font-weight: 500;
}

/* Card individual */
.ag-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.ag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 35, 169, .13);
}

.ag-card:active {
    transform: scale(.98);
}

/* Topo: avatar + hora */
.ag-card__top {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 1.1rem 1rem .9rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ag-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .6);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-card__avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    font-size: 1.3rem;
}

.ag-card__hora {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

/* Corpo */
.ag-card__body {
    padding: .75rem 1rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}

.ag-card__nome {
    font-size: .92rem;
    font-weight: 700;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ag-card__servico {
    font-size: .78rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ag-card__servico i {
    color: var(--primary-color);
    font-size: .72rem;
}

.ag-card__sessoes {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: #777;
    margin-top: .15rem;
}

.ag-card__sessoes i {
    color: var(--primary-color);
    font-size: .72rem;
}

.ag-card__sessoes strong {
    color: #1f2937;
}

.ag-card__barbeiro {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: #888;
    margin-top: .1rem;
}

.ag-card__barbeiro-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .6rem;
    flex-shrink: 0;
}

.ag-card__barbeiro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rodapé */
.ag-card__footer {
    padding: .5rem 1rem .75rem;
    display: flex;
    justify-content: flex-start;
}

/* Botão flutuante novo agendamento */
.ag-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(115, 35, 169, .4);
    z-index: 50;
    padding: 0;
}

/* No mobile, sobe o botão acima do navbar inferior */
@media (max-width: 767.98px) {
    .ag-fab {
        bottom: calc(var(--mobile-nav-height, 68px) + 0.75rem);
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

/* Faixa de dias — visível em todos os tamanhos */
#dayStripWrapper {
    display: block !important;
}

/* GRID DE COMANDAS */
.comanda-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 576px) {
    .comanda-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .comanda-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .comanda-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.comanda-grid-loading,
.comanda-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 3rem 1rem;
    color: #bbb;
}

.comanda-grid-empty i {
    font-size: 2.5rem;
    color: #ddd;
}

.comanda-grid-empty span,
.comanda-grid-loading span {
    font-size: .9rem;
    font-weight: 500;
}

/* Card */
.comanda-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.comanda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 35, 169, .13);
}

.comanda-card:active {
    transform: scale(.98);
}

/* Destaque visual para comandas abertas */
.comanda-card--aberta {
    border-color: rgba(115, 35, 169, .3);
}

.comanda-card--aberta::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* Header */
.comanda-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem .5rem;
}

.comanda-card__codigo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: .03em;
}

/* Body */
.comanda-card__body {
    padding: .25rem 1rem .6rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.comanda-card__info-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comanda-card__info-row i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-size: .75rem;
}

/* Footer */
.comanda-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem .75rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.comanda-card__total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark-color);
}

.comanda-card__btn {
    font-size: .78rem;
    padding: .3rem .75rem;
}

/* DETALHE DA COMANDA */

/* Hero do cliente */
.comanda-detalhe__hero {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 14px;
    margin-bottom: 1rem;
}

.comanda-detalhe__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .6);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comanda-detalhe__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comanda-detalhe__avatar-placeholder {
    color: rgba(255, 255, 255, .85);
    font-size: 1.4rem;
}

.comanda-detalhe__cliente-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.comanda-detalhe__cliente-nome {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comanda-detalhe__tel {
    font-size: .78rem;
    color: rgba(255, 255, 255, .85) !important;
}

.comanda-detalhe__codigo {
    font-size: .75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .05em;
}

/* Meta (profissional, datas, pagamento) */
.comanda-detalhe__meta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .8rem 1rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.comanda-detalhe__meta-item {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.comanda-detalhe__func-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.comanda-detalhe__func-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comanda-detalhe__func-placeholder {
    color: #fff;
    font-size: .85rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comanda-detalhe__meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(115, 35, 169, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: .8rem;
    flex-shrink: 0;
}

.comanda-detalhe__meta-label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #aaa;
    line-height: 1;
}

.comanda-detalhe__meta-value {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Itens */
.comanda-detalhe__itens-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary-color);
    margin-bottom: .5rem;
}

.comanda-detalhe__itens {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: .75rem;
}

.comanda-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .8rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
}

.comanda-item-row__info {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    flex: 1;
}

.comanda-item-badge {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .2rem .5rem;
    border-radius: 20px;
    flex-shrink: 0;
}

.comanda-item-badge--servico {
    background: rgba(115, 35, 169, .12);
    color: var(--primary-color);
}

.comanda-item-badge--produto {
    background: rgba(76, 175, 80, .12);
    color: var(--success-color);
}

.comanda-item-row__desc {
    font-size: .83rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comanda-item-row__valores {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.comanda-item-row__qtd {
    font-size: .75rem;
    color: #aaa;
    font-weight: 600;
}

.comanda-item-row__unit {
    font-size: .75rem;
}

.comanda-item-row__total {
    font-size: .85rem;
    font-weight: 700;
    color: var(--dark-color);
    min-width: 56px;
    text-align: right;
}

.comanda-item-row__del {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: .2rem .3rem;
    border-radius: 6px;
    font-size: .8rem;
    transition: background .15s;
}

.comanda-item-row__del:hover {
    background: rgba(244, 67, 54, .1);
}

.comanda-itens-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.5rem;
    color: #ccc;
    font-size: .85rem;
}

.comanda-itens-empty i {
    font-size: 1.8rem;
}

/* Total */
.comanda-detalhe__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
}

.comanda-detalhe__total span:first-child {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #aaa;
}

.comanda-detalhe__total-valor {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* MODAL ADICIONAR ITEM — ABAS */
.add-item-tabs {
    display: flex;
    border-bottom: 1.5px solid #e5e7eb;
    background: #f9fafb;
}

.add-item-tab {
    flex: 1;
    padding: .75rem .5rem;
    border: none;
    background: transparent;
    font-size: .82rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
}

.add-item-tab:hover {
    color: var(--primary-color);
}

.add-item-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #fff;
}

/* Painel de lista */
.add-item-panel {
    min-height: 180px;
}

.add-item-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .75rem;
    max-height: 320px;
    overflow-y: auto;
}

/* Card de item */
.add-item-card {
    position: relative; /* necessário para o qty-badge se posicionar sobre o card */
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .18s ease;
}

.add-item-card:hover {
    border-color: var(--primary-color);
    background: rgba(115, 35, 169, .04);
}

.add-item-card.selected {
    border-color: var(--primary-color);
    background: rgba(115, 35, 169, .08);
    box-shadow: 0 2px 8px rgba(115, 35, 169, .15);
}

.add-item-card--esgotado {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Badge de quantidade sobreposto ao card ────────────────────────────────── */
.qty-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--primary-color, #7323a9);
    border-radius: 999px;
    padding: 2px 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    z-index: 2;
    pointer-events: auto;
}

.qty-badge__btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .14s;
    padding: 0;
}

.qty-badge__btn:hover:not(:disabled) {
    background: rgba(255,255,255,.32);
}

.qty-badge__btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.qty-badge__count {
    min-width: 20px;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
}

/* Variante para pacotes: oculta os botões +/− */
.qty-badge--pacote .qty-badge__btn {
    display: none;
}

/* Aviso de estoque exibido adjacente (após) ao card */
.qty-badge__stock-warn {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--warning-color, #e67e00);
    background: rgba(230, 126, 0, .08);
    border: 1px solid rgba(230, 126, 0, .25);
    border-radius: 8px;
    padding: .25rem .6rem;
    margin-top: .3rem;
}

.add-item-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.add-item-card__icon--servico {
    background: rgba(115, 35, 169, .12);
    color: var(--primary-color);
}

.add-item-card__icon--produto {
    background: rgba(76, 175, 80, .12);
    color: var(--success-color);
}

.add-item-card__icon--pacote {
    background: rgba(115, 35, 169, .1);
    color: var(--primary-color, #7323a9);
}

.add-item-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.add-item-card__nome {
    font-size: .87rem;
    font-weight: 700;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-item-card__desc,
.add-item-card__estoque {
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-item-card__preco {
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Estado vazio */
.add-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem;
    color: #ccc;
    font-size: .85rem;
}

.add-item-empty i {
    font-size: 2rem;
}

/* Rodapé fixo */
.add-item-footer {
    border-top: 1.5px solid #e5e7eb;
    background: #f9fafb;
    padding-top: .75rem;
}

.add-item-selecionado {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem .6rem;
    font-size: .83rem;
    flex-wrap: wrap;
}

/* STEPPER DE QUANTIDADE */
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    height: 42px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: #f3f4f6;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    line-height: 1;
}

.qty-btn:hover {
    background: rgba(115, 35, 169, .12);
}

.qty-btn:active {
    background: rgba(115, 35, 169, .2);
}

.qty-input {
    width: 48px;
    border: none;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark-color);
    height: 100%;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.qty-input:focus {
    outline: none;
}

/* PAGINAÇÃO COMANDAS */
.comanda-paginacao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 .5rem;
}

.comanda-pag-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--primary-color);
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.comanda-pag-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: transparent;
    color: #fff;
}

.comanda-pag-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.comanda-pag-info {
    font-size: .85rem;
    font-weight: 600;
    color: #777;
    min-width: 60px;
    text-align: center;
}

/* GRID DE FUNCIONÁRIOS */
.func-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 480px) {
    .func-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .func-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .func-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.func-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 3rem 1rem;
    color: #bbb;
}

.func-grid-empty i {
    font-size: 2.5rem;
    color: #ddd;
}

.func-grid-empty span {
    font-size: .9rem;
    font-weight: 500;
}

/* Card */
.func-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.func-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 35, 169, .12);
}

/* Topo com gradiente */
.func-card__top {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 1.2rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.func-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255, 255, 255, .65);
    flex-shrink: 0;
    background: rgba(255, 255, 255, .2);
}

.func-card__identity {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.func-card__nome {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.func-card__cargo {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .18);
    padding: .15rem .55rem;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Corpo */
.func-card__body {
    padding: .7rem 1rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.func-card__info-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.func-card__info-row i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-size: .75rem;
}

/* Rodapé */
.func-card__footer {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem .75rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.func-card__btn-edit {
    flex: 1;
    font-size: .78rem;
}

.func-card__btn-del {
    font-size: .78rem;
    padding: .3rem .6rem;
}

/* ── PACOTE-CLIENTE CARDS ─────────────────────────────────────────────────── */

.pac-cli-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: 1rem;
}

@media (min-width: 576px) {
    .pac-cli-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .pac-cli-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
    .pac-cli-grid { grid-template-columns: repeat(4, 1fr); }
}

.pac-cli-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.1rem 1rem .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.pac-cli-card:hover {
    box-shadow: 0 4px 18px rgba(115, 35, 169, .12);
    transform: translateY(-2px);
}

.pac-cli-card__avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, var(--accent-color, #fd18f0), var(--primary-color, #7323a9)) border-box;
}

.pac-cli-card__avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pac-cli-card__nome {
    font-size: .95rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pac-cli-card__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.pac-cli-card__sessoes {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: #555;
}

.pac-cli-card__sessoes strong {
    color: var(--primary-color, #7323a9);
}

.pac-cli-card__progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: #888;
    margin-bottom: .2rem;
}

.pac-cli-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: #888;
}

.pac-cli-card__footer {
    width: 100%;
    border-top: 1px solid #e5e7eb;
    padding-top: .65rem;
    display: flex;
    gap: .4rem;
}

.pac-cli-card__footer .btn {
    font-size: .78rem;
    flex: 1;
}

.pac-cli-card__footer .btn-renovar {
    flex: 0 0 auto;
}

/* ── FIM PACOTE-CLIENTE CARDS ─────────────────────────────────────────────── */

/* ── PACOTE INFO STRIP (detalhe do pacote) ────────────────────────────────── */

.pacote-info-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 0;
    padding: .25rem 0;
}

.pacote-info-stat {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 0 1.25rem;
}

.pacote-info-stat:first-child {
    padding-left: 0;
}

.pacote-info-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(115, 35, 169, .1);
    color: var(--primary-color, #7323a9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.pacote-info-stat__icon--green {
    background: rgba(22, 163, 74, .1);
    color: #16a34a;
}

.pacote-info-stat__label {
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: .2rem;
}

.pacote-info-stat__value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.pacote-info-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
    flex-shrink: 0;
    align-self: center;
}

.pacote-info-group {
    padding: 0 1.25rem;
    flex: 1;
    min-width: 180px;
}

@media (max-width: 767px) {
    .pacote-info-divider { display: none; }
    .pacote-info-stat,
    .pacote-info-group  { padding: 0; width: 100%; }
}

/* ── FIM PACOTE INFO STRIP ────────────────────────────────────────────────── */

/* ── PACOTE CARDS (listagem de pacotes) ───────────────────────────────────── */

.pacote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 576px) {
    .pacote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .pacote-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
    .pacote-grid { grid-template-columns: repeat(4, 1fr); }
}

.pacote-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.1rem 1rem .8rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.pacote-card:hover {
    box-shadow: 0 4px 18px rgba(115, 35, 169, .12);
    transform: translateY(-2px);
}

.pacote-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

.pacote-card__nome {
    font-size: .95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    word-break: break-word;
}

.pacote-card__body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.pacote-card__info-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    color: #555;
}

.pacote-card__info-row i {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    color: var(--primary-color, #7323a9);
    font-size: .78rem;
}

.pacote-card__valor {
    font-size: .95rem;
    font-weight: 700;
    color: #1f2937;
}

.pacote-card__footer {
    border-top: 1px solid #e5e7eb;
    padding-top: .65rem;
    display: flex;
    gap: .4rem;
}

.pacote-card__footer .btn {
    font-size: .78rem;
    flex: 1;
}

.pacote-card__footer .btn-icon {
    flex: 0 0 auto;
    padding: .3rem .55rem;
}

/* ── FIM PACOTE CARDS ─────────────────────────────────────────────────────── */

/* ── SELECTOR CARDS (serviços / funcionários no modal de pacote) ──────────── */

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .5rem;
}

.selector-card {
    position: relative;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: .65rem .6rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    user-select: none;
}

.selector-card:hover {
    border-color: var(--primary-color, #7323a9);
    box-shadow: 0 0 0 3px rgba(115, 35, 169, .08);
}

.selector-card.selected {
    border-color: var(--primary-color, #7323a9);
    background: rgba(115, 35, 169, .06);
    box-shadow: 0 0 0 3px rgba(115, 35, 169, .12);
}

.selector-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Ícone de check no canto superior direito quando selecionado */
.selector-card__check {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color, #7323a9);
    color: #fff;
    font-size: .55rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.selector-card.selected .selector-card__check {
    display: flex;
}

/* Avatar para funcionários */
.selector-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, var(--accent-color, #fd18f0), var(--primary-color, #7323a9)) border-box;
    flex-shrink: 0;
}

/* Ícone para serviços */
.selector-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color, #7323a9);
    flex-shrink: 0;
    transition: background .15s ease;
}

.selector-card.selected .selector-card__icon {
    background: rgba(115, 35, 169, .12);
}

.selector-card__label {
    font-size: .75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    word-break: break-word;
}

.selector-card.selected .selector-card__label {
    color: var(--primary-color, #7323a9);
}

.selector-card__sub {
    font-size: .68rem;
    color: #9ca3af;
    line-height: 1.1;
}

/* ── FIM SELECTOR CARDS ───────────────────────────────────────────────────── */

/* MODAL FUNCIONÁRIO — AVATAR NO TOPO */
.func-modal-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 1rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.func-modal-avatar-label {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
}

.func-modal-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .7);
    display: block;
}

.func-modal-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.func-modal-avatar-overlay i {
    font-size: 1.2rem;
}

.func-modal-avatar-label:hover .func-modal-avatar-overlay {
    opacity: 1;
}

.func-modal-avatar-area small {
    color: rgba(255, 255, 255, .75);
}

/* GRID DE FECHAMENTOS / FOLGAS */
.fechamento-grid {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.fechamento-grid-loading,
.fechamento-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 2.5rem 1rem;
    color: #bbb;
}

.fechamento-grid-empty i {
    font-size: 2rem;
    color: #ddd;
}

.fechamento-grid-empty span,
.fechamento-grid-loading span {
    font-size: .85rem;
    font-weight: 500;
}

.fechamento-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: box-shadow .2s ease;
}

.fechamento-card:hover {
    box-shadow: 0 4px 14px rgba(115, 35, 169, .1);
}

.fechamento-card__left {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.fechamento-card__data,
.fechamento-card__horario,
.fechamento-card__escopo {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .83rem;
    color: #444;
}

.fechamento-card__data i {
    color: var(--danger-color);
    font-size: .8rem;
}

.fechamento-card__horario i {
    color: var(--primary-color);
    font-size: .8rem;
}

.fechamento-card__escopo i {
    font-size: .78rem;
}

.fechamento-card__data span {
    font-weight: 700;
    color: var(--dark-color);
}

.fechamento-card__horario span {
    font-weight: 600;
}

.fechamento-card__escopo-todos {
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(115, 35, 169, .08);
    padding: .15rem .55rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.fechamento-card__escopo-func {
    font-size: .75rem;
    font-weight: 600;
    color: #555;
    background: #f3f4f6;
    padding: .15rem .55rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.fechamento-card__del {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid rgba(244, 67, 54, .3);
    background: rgba(244, 67, 54, .06);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    flex-shrink: 0;
    transition: all .15s ease;
}

.fechamento-card__del:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

/* FORMULÁRIO DE FECHAMENTO */
.fechamento-form-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.fechamento-form-header {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.fechamento-form-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.fechamento-form-group {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.fechamento-form-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary-color);
}

/* Pills de escopo */
.fechamento-escopo-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.fechamento-escopo-pill {
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 10px;
    padding: .65rem .5rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.fechamento-escopo-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(115, 35, 169, .05);
}

.fechamento-escopo-pill.active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: transparent;
    color: #fff;
}

/* Grid de funcionários */
.fechamento-func-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .6rem;
}

.fechamento-func-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: .6rem .4rem;
    cursor: pointer;
    transition: all .2s ease;
    font-size: .72rem;
    font-weight: 600;
    color: #555;
}

.fechamento-func-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(115, 35, 169, .05);
}

.fechamento-func-card.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(115, 35, 169, .1);
    box-shadow: 0 2px 8px rgba(115, 35, 169, .2);
}

.fechamento-func-card__img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: border-color .2s;
}

.fechamento-func-card.active .fechamento-func-card__img {
    border-color: var(--primary-color);
}

.fechamento-func-card__nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
    text-align: center;
}

/* GRID DE SERVIÇOS */
.servico-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 480px) {
    .servico-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .servico-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .servico-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.servico-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 3rem 1rem;
    color: #bbb;
}

.servico-grid-empty i {
    font-size: 2.5rem;
    color: #ddd;
}

.servico-grid-empty span {
    font-size: .9rem;
    font-weight: 500;
}

/* Card */
.servico-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.servico-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 35, 169, .12);
}

/* Topo */
.servico-card__top {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 1rem 1rem .9rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.servico-card__icone {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    border: 1.5px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.servico-card__identity {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 0;
}

.servico-card__titulo {
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.servico-card__tempo {
    font-size: .72rem;
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.servico-card__preco {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Corpo */
.servico-card__body {
    padding: .7rem 1rem .5rem;
    flex: 1;
}

.servico-card__desc {
    font-size: .8rem;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Rodapé */
.servico-card__footer {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem .75rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.servico-card__btn-edit {
    flex: 1;
    font-size: .78rem;
}

.servico-card__btn-del {
    font-size: .78rem;
    padding: .3rem .6rem;
}

/* UPLOAD DE IMAGEM DO SERVIÇO */
.servico-img-upload-area {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: .3rem;
}

.servico-img-upload-label {
    display: block;
    position: relative;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px dashed #e5e7eb;
    transition: border-color .2s;
}

.servico-img-upload-label:hover {
    border-color: var(--primary-color);
}

.servico-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.servico-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.servico-img-overlay i {
    font-size: 1.5rem;
}

.servico-img-upload-label:hover .servico-img-overlay {
    opacity: 1;
}

/* Imagem no card do serviço */
.servico-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* FOTO QUADRADA NO MODAL DE SERVIÇO */
.servico-modal-foto-label {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.servico-modal-foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, .7);
    display: block;
}

.servico-modal-foto-label:hover .func-modal-avatar-overlay {
    opacity: 1;
}

/* Imagem substituindo ícone no card de serviço */
.servico-card__icone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* GRID DE PRODUTOS */
.produto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 480px) {
    .produto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .produto-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .produto-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.produto-grid-loading,
.produto-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 3rem 1rem;
    color: #bbb;
}

.produto-grid-empty i {
    font-size: 2.5rem;
    color: #ddd;
}

.produto-grid-empty span,
.produto-grid-loading span {
    font-size: .9rem;
    font-weight: 500;
}

/* Card */
.produto-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 35, 169, .12);
}

.produto-card--inativo {
    opacity: .65;
}

/* Topo */
.produto-card__top {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 1rem 1rem .9rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.produto-card__icone {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    border: 1.5px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.produto-card__identity {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
    min-width: 0;
}

.produto-card__titulo {
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.produto-card__preco {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
}

/* Corpo */
.produto-card__body {
    padding: .65rem 1rem .4rem;
}

.produto-card__desc {
    font-size: .8rem;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Estoque */
.produto-card__estoque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.produto-card__estoque-info {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .83rem;
    color: #555;
}

.produto-card__estoque-info i {
    color: var(--primary-color);
    font-size: .78rem;
}

.produto-card__btn-menos {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    transition: all .15s ease;
    flex-shrink: 0;
}

.produto-card__btn-menos:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.produto-card__btn-menos:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Rodapé */
.produto-card__footer {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1rem .75rem;
}

/* ── LINK PERSONALIZADO ──────────────────────────────────────────────────── */

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.page-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.config-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    margin-bottom: 24px;
}

.config-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    height: 6px;
}

.config-card-body {
    padding: 24px;
}

.config-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-card-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.config-card-description {
    color: #6b7280;
    font-size: .9rem;
    margin-bottom: 24px;
}

.link-input-container {
    display: flex;
    align-items: stretch;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s ease;
    background: white;
}

.link-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(115, 35, 169, .1);
}

.link-input-container.is-valid {
    border-color: var(--success-color);
}

.link-input-container.is-valid:focus-within {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .1);
}

.link-input-container.is-invalid {
    border-color: var(--danger-color);
}

.link-input-container.is-invalid:focus-within {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.link-prefix {
    background: #f3f4f6;
    padding: 12px 16px;
    font-size: .95rem;
    color: #6b7280;
    border-right: 2px solid #e5e7eb;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-family: 'Consolas', 'Monaco', monospace;
}

.link-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: .95rem;
    outline: none;
    font-family: 'Consolas', 'Monaco', monospace;
    min-width: 150px;
}

.link-input::placeholder {
    color: #c4c4c4;
}

.validation-message {
    margin-top: 8px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.validation-message.success {
    color: var(--success-color);
}

.validation-message.error {
    color: var(--danger-color);
}

.validation-message.warning {
    color: var(--warning-color);
}

.validation-message.loading {
    color: #6b7280;
}

.preview-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    border-radius: 10px;
    border: 1px solid #e9d5ff;
}

.preview-label {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
}

.preview-link-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-link {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.preview-link .slug-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.btn-copy {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-copy.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.qr-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9d5ff;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qr-code-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.qr-code-placeholder i {
    font-size: 2rem;
    color: #6b7280;
}

.qr-code-placeholder span {
    font-size: .7rem;
    color: #6b7280;
}

.qr-info {
    flex: 1;
}

.qr-info h4 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.qr-info p {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
}

.btn-download-qr {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download-qr:hover {
    background: var(--primary-color);
    color: white;
}

.btn-download-qr:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tips-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    margin-bottom: 24px;
}

.tips-card-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    height: 6px;
}

.tips-card-body {
    padding: 24px;
}

.tips-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-title i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: #6b7280;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li i {
    color: var(--primary-color);
    margin-top: 2px;
}

.tips-list li strong {
    color: var(--dark-color);
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    background: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-cancel:hover {
    background: #f8f9fa;
    color: var(--dark-color);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-save:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-save .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.current-link-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-link-info i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.current-link-info .info-text {
    flex: 1;
}

.current-link-info .info-text span {
    display: block;
    font-size: .85rem;
    color: #6b7280;
}

.current-link-info .info-text strong {
    color: var(--dark-color);
    font-family: 'Consolas', 'Monaco', monospace;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.character-count {
    font-size: .8rem;
    color: #6b7280;
    text-align: right;
    margin-top: 6px;
}

.character-count.limit {
    color: var(--warning-color);
}

.character-count.exceeded {
    color: var(--danger-color);
}

.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-share {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--dark-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.btn-share:hover {
    background: #f8f9fa;
}

.btn-share.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.btn-share.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.btn-share.email:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .link-input-container {
        flex-direction: column;
    }

    .link-prefix {
        font-size: .72rem;
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }

    .preview-link-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .qr-section {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
        justify-content: center;
    }

    .btn-share-label {
        display: none;
    }
}

/* ===================== COMISSÕES ===================== */
.comissoes-employees-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.comissoes-employee-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    position: relative;
}

.comissoes-employee-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 35, 169, 0.15);
}

.comissoes-employee-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(115, 35, 169, 0.05) 0%, rgba(253, 24, 240, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(253, 24, 240, 0.2);
}

.comissoes-employee-card .selected-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.comissoes-employee-card .selected-indicator i {
    color: #fff;
    font-size: 0.6rem;
}

.comissoes-employee-card.selected .selected-indicator {
    opacity: 1;
    transform: scale(1);
}

.comissoes-employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.comissoes-employee-card.selected .comissoes-employee-avatar {
    border-color: var(--accent-color);
}

.comissoes-employee-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 3px solid #e5e7eb;
}

.comissoes-employee-avatar-placeholder i {
    font-size: 1.4rem;
    color: #fff;
}

.comissoes-employee-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

.comissoes-employee-role {
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
}

/* Filtros período */
.comissoes-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.comissoes-filter-group {
    flex: 1;
    min-width: 180px;
}

.comissoes-filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
}

/* Resultados */
.comissoes-results-section {
    display: none;
}

.comissoes-results-section.show {
    display: block;
    animation: comissoesSlideUp 0.4s ease;
}

@keyframes comissoesSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.comissoes-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(115, 35, 169, 0.07) 0%, rgba(253, 24, 240, 0.07) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.comissoes-result-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.comissoes-result-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 3px 0;
}

.comissoes-result-info p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.comissoes-result-period {
    margin-left: auto;
    text-align: right;
}

.comissoes-result-period-label {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comissoes-result-period-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Métricas */
.comissoes-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.comissoes-metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.comissoes-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.comissoes-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.comissoes-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(115, 35, 169, 0.1), rgba(253, 24, 240, 0.1));
    color: var(--primary-color);
    font-size: 1.2rem;
}

.comissoes-metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3px;
    line-height: 1.2;
}

.comissoes-metric-label {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Total */
.comissoes-total-bar {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.comissoes-total-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.comissoes-total-value {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
}

/* Tabela serviços */
.comissoes-table {
    width: 100%;
    border-collapse: collapse;
}

.comissoes-table thead th {
    background: #f8f9fa;
    padding: 12px 14px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 2px solid #e5e7eb;
}

.comissoes-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.88rem;
    color: var(--dark-color);
}

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

.comissoes-table tbody tr:hover {
    background: rgba(115, 35, 169, 0.03);
}

.comissoes-service-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(115, 35, 169, 0.1), rgba(253, 24, 240, 0.1));
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Empty state */
.comissoes-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.comissoes-empty i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 12px;
    display: block;
}

.comissoes-empty p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .comissoes-filters-row {
        flex-direction: column;
    }

    .comissoes-filter-group {
        width: 100%;
    }

    .comissoes-result-period {
        margin-left: 0;
        text-align: left;
    }

    .comissoes-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comissoes-total-bar {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .comissoes-metrics-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================================================
   ADMIN NAVBAR — SIDEBAR DESKTOP + BOTTOM NAV MOBILE
   =================================================================== */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --sidebar-bg: #ffffff;
    --sidebar-border: #f0f0f0;
    --sidebar-active-bg: rgba(115, 35, 169, 0.07);
    --sidebar-active-color: var(--primary-color);
    --sidebar-hover-bg: rgba(115, 35, 169, 0.04);
    --sidebar-section-color: #b0b0b0;
    --sidebar-link-color: #555;
    --sidebar-transition: 0.25s ease;
    --mobile-nav-height: 68px;
}

/* ── SIDEBAR DESKTOP ──────────────────────────────────────────────── */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: width var(--sidebar-transition);
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 64px;
    flex-shrink: 0;
}

.admin-sidebar-logo {
    width: 120px;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    transition: opacity var(--sidebar-transition), width var(--sidebar-transition);
    overflow: hidden;
}

.admin-sidebar.collapsed .admin-sidebar-brand {
    opacity: 0;
    width: 0;
}

.admin-sidebar-toggle-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    font-size: 12px;
}

.admin-sidebar-toggle-btn:hover {
    color: var(--primary-color);
    background: var(--sidebar-hover-bg);
}

/* No modo colapsado, o header vira só o botão centralizado */
.admin-sidebar.collapsed .admin-sidebar-header {
    justify-content: center;
    padding: 18px 0;
}

.admin-sidebar.collapsed .admin-sidebar-logo {
    display: none;
}

.admin-sidebar.collapsed .admin-sidebar-toggle-btn {
    margin-left: 0;
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: #e8e8e8 transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: #e8e8e8;
    border-radius: 4px;
}

.admin-nav-section {
    margin-bottom: 2px;
}

.admin-nav-section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dark-color);
    padding: 12px 18px 4px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--sidebar-transition);
}

.admin-sidebar.collapsed .admin-nav-section-label {
    opacity: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    color: var(--sidebar-link-color);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    margin-right: 10px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 500;
}

.admin-nav-link i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: #aaa;
    transition: color 0.18s;
}

.admin-nav-link-text {
    overflow: hidden;
    transition: opacity var(--sidebar-transition), width var(--sidebar-transition);
}

.admin-sidebar.collapsed .admin-nav-link-text {
    opacity: 0;
    width: 0;
}

.admin-nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--primary-color);
}

.admin-nav-link:hover i {
    color: var(--primary-color);
}

.admin-nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.admin-nav-link.active i {
    color: var(--primary-color);
}

.admin-nav-link-sair {
    color: #aaa;
}

.admin-nav-link-sair i {
    color: #ccc;
}

.admin-nav-link-sair:hover {
    background: rgba(244, 67, 54, 0.05);
    color: #F44336;
}

.admin-nav-link-sair:hover i {
    color: #F44336;
}

/* Tooltip no modo colapsado */
.admin-sidebar.collapsed .admin-nav-link {
    justify-content: center;
    padding: 10px 0;
    border-left: none;
    border-radius: 0;
    margin-right: 0;
    position: relative;
}

.admin-sidebar.collapsed .admin-nav-link:hover::after {
    content: attr(title);
    position: absolute;
    left: calc(var(--sidebar-collapsed-width) + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border: 1px solid #f0f0f0;
}

/* ── MOBILE BOTTOM NAVBAR ─────────────────────────────────────────── */
.admin-navbar-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 10px 8px 18px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1020;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .admin-navbar-mobile {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
}

.admin-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
    padding: 6px 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-nav-icon i {
    font-size: 19px;
    color: #c0c0c0;
    transition: color 0.2s ease;
}

.admin-nav-label {
    font-size: 11px;
    font-weight: 500;
    color: #c0c0c0;
    white-space: nowrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.admin-nav-item.navActive .admin-nav-icon i {
    color: var(--primary-color);
}

.admin-nav-item.navActive .admin-nav-label {
    color: var(--primary-color);
    opacity: 1;
    max-height: 20px;
}

/* ── MOBILE OFFCANVAS ─────────────────────────────────────────────── */
#adminOffcanvas {
    background: #ffffff;
    color: #333;
    max-width: 290px;
    border-left: 1px solid #f0f0f0;
}

#adminOffcanvas .offcanvas-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
}

#adminOffcanvas .offcanvas-title {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
}

#adminOffcanvas .btn-close {
    filter: none;
    opacity: 0.4;
}

.admin-offcanvas-perfil {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}

.admin-offcanvas-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.admin-offcanvas-nome {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.admin-offcanvas-menu {
    padding: 6px 0 80px;
}

.admin-offcanvas-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dark-color);
    padding: 14px 20px 4px;
    margin: 0;
}

.admin-offcanvas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-offcanvas-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    border-left: 3px solid transparent;
}

.admin-offcanvas-link i {
    width: 17px;
    text-align: center;
    font-size: 13px;
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.18s;
}

.admin-offcanvas-link:hover {
    background: rgba(115, 35, 169, 0.04);
    color: var(--primary-color);
}

.admin-offcanvas-link:hover i {
    color: var(--primary-color);
}

.admin-offcanvas-link.active {
    background: rgba(115, 35, 169, 0.07);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.admin-offcanvas-link.active i {
    color: var(--primary-color);
}

.admin-offcanvas-link-sair {
    color: #aaa;
}

.admin-offcanvas-link-sair i {
    color: #ccc;
}

.admin-offcanvas-link-sair:hover {
    background: rgba(244, 67, 54, 0.05);
    color: #F44336;
}

.admin-offcanvas-link-sair:hover i {
    color: #F44336;
}

/* ── Responsividade ───────────────────────────────────────────────── */
@media (max-width: 767px) {
    .admin-sidebar {
        display: none;
    }

    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        padding-bottom: calc(var(--mobile-nav-height) + 16px) !important;
    }

    .pt-5 {
        padding-top: 1rem !important;
    }
}

@media (min-width: 768px) {
    .admin-navbar-mobile {
        display: none !important;
    }

    .l-navbar,
    .header {
        display: none !important;
    }

    body {
        padding-left: var(--sidebar-width) !important;
        margin: 0 !important;
        transition: padding-left var(--sidebar-transition);
    }

    body:has(.admin-sidebar.collapsed) {
        padding-left: var(--sidebar-collapsed-width) !important;
    }

    .container-fluid.pt-5 {
        padding-top: 1.5rem !important;
    }
}

/* ===== Seletor de funcionários (service-employee-link) ===== */
.funcionarios-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
    max-height: 260px;
    overflow-y: auto;
}

.funcionario-selector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 12px;
    border: 2px solid var(--text-color);
    transition: all 0.2s ease;
    min-width: 72px;
    max-width: 80px;
    position: relative;
    user-select: none;
}

.funcionario-selector-item:hover {
    background-color: rgba(115, 35, 169, 0.08);
    border-color: rgba(115, 35, 169, 0.35);
    transform: translateY(-2px);
}

.funcionario-selector-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(115, 35, 169, 0.25);
}

.funcionario-selector-item.selected::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 1.5px solid #fff;
}

.funcionario-selector-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.funcionario-selector-item.selected img {
    border-color: var(--primary-color);
}

.funcionario-selector-item .func-nome {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dark-color);
}

.funcionario-selector-item.selected .func-nome {
    color: var(--primary-color);
    font-weight: 600;
}

/* Ícone "Todos" — substitui a foto */
.funcionario-selector-item .func-todos-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Checkbox oculto — mantido no DOM para compatibilidade com getSelectedFuncionarios() */
.funcionario-selector-item input[type="checkbox"] {
    display: none;
}

.funcionarios-selector-empty {
    font-size: 0.85rem;
    color: #888;
    padding: 8px 0;
}
