header, .bottom-panel {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    height: 60px;
}

header {
    top: 0;
    border-bottom: 1px solid #dee2e6;
}

.bottom-panel {
    bottom: 0;
    border-top: 1px solid #dee2e6;
}

.content-wrapper {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Nuevo registro button consistent styling across all pages */
#new-registry {
    font-size: 14px !important;
    padding: 8px 12px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-left: auto !important;
    margin-right: 8px !important;
}

@media (max-width: 768px) {
    header .nav, .bottom-panel {
        font-size: 0.8rem;
    }
    header .nav-link {
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobile: Icon-only nuevo registro button */
    #new-registry {
        font-size: 14px !important;
        padding: 8px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }
    
    /* Hide text on mobile */
    #new-registry .btn-text-mobile-hide,
    #new-registry span:not(.badge) {
        display: none !important;
    }
    
    /* Center icon on mobile */
    #new-registry svg,
    #new-registry i {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    header .nav, .bottom-panel {
        font-size: 0.7rem;
    }
    
    /* Extra small mobile: Keep same button styling */
    #new-registry {
        font-size: 14px !important;
        padding: 8px !important;
        width: 44px !important;
        height: 44px !important;
    }
    
    #new-registry svg,
    #new-registry i {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }
}

.summary-row .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.summary-row .card-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}
.summary-row .icon-container {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .summary-row .card-title {
        font-size: 0.8rem;
    }
    .summary-row .card-text {
        font-size: 1.2rem;
    }
    .summary-row .icon-container {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .summary-row .card-title {
        font-size: 0.7rem;
    }
    .summary-row .card-text {
        font-size: 1rem;
    }
    .summary-row .icon-container {
        font-size: 1.2rem;
    }
}

#table_detail {
    min-height: 200px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#table_detail table {
    margin: 0 auto;
}

#large-new-registry {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

#large-new-registry svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    #large-new-registry {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    #large-new-registry svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    #large-new-registry {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    #large-new-registry svg {
        width: 18px;
        height: 18px;
    }
}

.button-row {
    margin-bottom: 1rem !important;
}

hr {
    margin-top: 0;
    margin-bottom: 1rem !important;
}

#table_detail {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .button-row, #large-new-registry, hr {
        margin-bottom: 0.75rem !important;
    }

    #large-new-registry {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    #large-new-registry svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .button-row, #large-new-registry, hr {
        margin-bottom: 0.5rem !important;
    }

    #large-new-registry {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    #large-new-registry svg {
        width: 18px;
        height: 18px;
    }
}

.table-component {
    margin-top: 1rem;
}

.table-component .btn {
    margin-bottom: 0.5rem;
}

.table-component table {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .table-component {
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .table-component {
        margin-top: 0.5rem;
    }
}