/* Write your custom CSS here */

body{
    font-size: 11px;
}

.table td,
.table th {
    vertical-align: middle !important;
}

.form-control {
    padding: 6px 12px 6px 12px !important;
}

/* Gutters - Espaçamento entre colunas */

/* Gutters 0 */
.g-0,
.gx-0 {
    --bs-gutter-x: 0;
}

.g-0,
.gy-0 {
    --bs-gutter-y: 0;
}

/* Gutters 1 */
.g-1,
.gx-1 {
    /* --bs-gutter-x: 0.25rem; */
}

.g-1,
.gy-1 {
    --bs-gutter-y: 0.25rem;
}

/* Gutters 2 */
.g-2,
.gx-2 {
    /* --bs-gutter-x: 0.5rem; */
}

.g-2,
.gy-2 {
    --bs-gutter-y: 0.5rem;
}

/* Gutters 3 */
.g-3,
.gx-3 {
    /* --bs-gutter-x: 1rem; */
}

.g-3,
.gy-3 {
    --bs-gutter-y: 1rem;
}

/* Gutters 4 */
.g-4,
.gx-4 {
    /* --bs-gutter-x: 1.5rem; */
}

.g-4,
.gy-4 {
    --bs-gutter-y: 1.5rem;
}

/* Gutters 5 */
.g-5,
.gx-5 {
    /* --bs-gutter-x: 3rem; */
}

.g-5,
.gy-5 {
    --bs-gutter-y: 3rem;
}

/* Aplicando os valores das variáveis para espaçamento entre colunas */
.g-0,
.gx-0,
.g-1,
.gx-1,
.g-2,
.gx-2,
.g-3,
.gx-3,
.g-4,
.gx-4,
.g-5,
.gx-5 {
    column-gap: var(--bs-gutter-x);
}

.g-0,
.gy-0,
.g-1,
.gy-1,
.g-2,
.gy-2,
.g-3,
.gy-3,
.g-4,
.gy-4,
.g-5,
.gy-5 {
    row-gap: var(--bs-gutter-y);
}



.fw-500{
    font-weight: 500!important;
}

.fw-600{
    font-weight: 600!important;
}

.fw-700{
    font-weight: 700!important;
}   

.fw-800{
    font-weight: 800!important;
} 

.fw-900{
    font-weight: 900!important;
} 


.sub-titulo-nav{
    font-size: 10px;
    margin-left: 48px;
    opacity: 0.5;
}

.page-content,
.page-content *,
.page-header,
tr, td{
    text-transform: uppercase!important;
}

.modal-content,
.form-control {
    text-transform: uppercase!important;
}

.btn-info{
    color: #fff!important;
    background: #568f79!important;
}

.btn-info:hover, 
.btn-info:active{
    color: #fff!important;
    background: #43705f!important;
}

.material-icons{
    vertical-align: middle;
}

/* Exceções: permitir maiúsculas e minúsculas */
input[type="password"],
input[type="email"] {
    text-transform: none !important;
}

.modal-xxxl {
    max-width: 95vw !important;
}

.loader{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}
.loader-text{
    font-size: 12px;
    color: #568f79;
    text-align: center;
    /* margin-left: 110px; */
    margin-top: 80px;

}


.page-header .navbar ul li.nav-profile .dropdown-menu {
    width: 350px!important;

}

/*deletar*/
form button.btn.btn-danger {
    border-radius: 0 5px 5px 0;
}

label {
    font-weight: 900;
}

.product-item {
    align-items: baseline;
}

.product-item:hover {
    background-color: #b2e0bc!important;
    cursor: pointer;
}

/*INSIRA SEU CÓDIGO */
.product-item:nth-child(even) {
    background-color: #ececec;
}
.page-container {
    overflow-x: auto;
}

/* Material Icons */
.material {
    vertical-align: middle;
}

/* Dashboard */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

.location-card {
    background: linear-gradient(135deg, #5FD0A5 0%, #337c60 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 30px #5fd0a56b;
    border: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px #5FD0A5;
}

.location-card h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.location-card h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-start), var(--card-color-end));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.orders {
    --card-color-start: #667eea;
    --card-color-end: #764ba2;
}

.stat-card.patients {
    --card-color-start: #e09407;
    --card-color-end: #efbe38;
}

.stat-card.medicines {
    --card-color-start: #f093fb;
    --card-color-end: #f5576c;
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #2d3748;
}

.stat-info p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.stat-change.success {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
}

.stat-change.danger {
    background: rgba(245, 87, 108, 0.1);
    color: #e53e3e;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--card-color-start), var(--card-color-end));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-actions h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: linear-gradient(135deg, #5FD0A5 0%, #388165 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.action-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0;
    }
    
    .page-header {
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .location-card {
        padding: 1.5rem;
    }
    
    .location-card h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.page-item.active .page-link {
    background: linear-gradient(90deg, #55c3b7 0, #5fd0a5 48%, #66da90 100%);
    color: #fff !important;
    border-color: #5fd0a5 !important;
    padding: 9px 15px;
}

.pagination li a {
    padding: 9px 15px;
    background: #fafafa;
    color: #5c6662;
    border-color: #e8e8e8;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px
}

.pagination li a:hover {
    color: #429676;
    background: #fafafa;
    border-color: #e8e8e8
}

.pagination li a:focus {
    box-shadow: none!important
}

.pagination li.active a {
    background: linear-gradient(90deg,#55c3b7 0,#5fd0a5 48%,#66da90 100%);
    color: #fff!important;
    border-color: #5fd0a5!important
}

.pagination-circle .page-link {
    border-radius: 20px!important;
    margin-right: 5px
}

/* Classes de tamanho de fonte personalizadas */
.font-9 {
    font-size: 9px !important;
}

.font-10 {
    font-size: 10px !important;
}

.font-11 {
    font-size: 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

.font-13 {
    font-size: 13px !important;
}

.font-14 {
    font-size: 14px !important;
}

.font-15 {
    font-size: 15px !important;
}

.font-16 {
    font-size: 16px !important;
}

.font-18 {
    font-size: 18px !important;
}

.font-20 {
    font-size: 20px !important;
}

.font-22 {
    font-size: 22px !important;
}

/* Versões mais específicas para badges */
.badge.font-14 {
    font-size: 14px !important;
}

.badge.font-15 {
    font-size: 15px !important;
}

.badge.font-16 {
    font-size: 16px !important;
}

.badge.font-18 {
    font-size: 18px !important;
}

.badge.font-20 {
    font-size: 20px !important;
}

.badge.font-22 {
    font-size: 22px !important;
}

.h-974 {
    height: 97.4% !important;
}

.receita-upload-wrapper .upload-progress {
    height: 1.75rem!important;
}

.receita-upload-wrapper .file-name {
    text-align: center!important;
    margin: 10px 0!important;
    background: #ccc!important;
    border-radius: 41px!important;
    padding: 5px 2px!important;
}

.text-ellipsis {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

.patient-section {
    margin-bottom: 1.25rem;
}

.patient-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-divider {
    margin: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.info-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: .05em;
}

.info-value {
    margin: .25rem 0 0;
    font-size: .95rem;
    color: #2d3748;
    word-break: break-word;
}

.comorbidade-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.comorbidade-tag {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    background-color: #edf2f7;
    color: #2d3748;
    font-size: .85rem;
    font-weight: 500;
}