/* Base Layout */
.constante_co2_wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Table Wrapper */
.constante_co2_table_wrapper {
    width: 100%;
}

/* Info Wrapper */
.constante_co2_info_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: #0771B1;
    font-size: 0.875rem;
}

/* Form Section */
.constante_co2_form_section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 400px;
    position: sticky;
    top: 1.5rem;
}

/* Form Elements */
.constante_co2_form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.constante_co2_form legend {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.constante_co2_form_group {
    margin-bottom: 1.5rem;
}

.constante_co2_form_group label {
    display: block;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.constante_co2_form_group input {
    width: 100%;
    padding: 0.625rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1a1a1a;
}

/* Table Section */
.constante_co2_table_container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.constante_co2_table {
    width: 100%;
    border-collapse: collapse;
}

.constante_co2_table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
    text-align: left;
    padding: 0.75rem 1rem;
}

.constante_co2_table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Action Buttons */
.constante_co2_action_buttons {
    display: flex;
    justify-content: left;
    gap: 0.5rem;
}

.constante_co2_action_buttons button {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.constante_co2_btn_edit,
.constante_co2_btn_delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.constante_co2_btn_edit {
    color: #0771B1;
}

.constante_co2_btn_delete {
    color: #dc3545;
}


.constante_co2_btn_edit:hover {
    background-color: rgba(7, 113, 177, 0.1);
}

.constante_co2_btn_delete:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Submit Button */
.constante_co2_submit_button {
    margin-top: 1.5rem;
}

/* Icon styles */
.icon-small {
    width: 18px;
    height: 18px;
}

/* SVG icons inside buttons */
.constante_co2_btn_edit svg,
.constante_co2_btn_delete svg {
    width: 20px;
    height: 20px;
}

.constante_co2_submit_button input[type="submit"] {
    width: 100%;
    background: #0771B1;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.constante_co2_submit_button input[type="submit"]:hover {
    background: #065d8f;
}

.constante_co2_table_title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #0771B1;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.constante_co2_table_responsive {
    overflow-x: auto;
}

.constante_co2_cell_center {
    text-align: center;
}

.constante_co2_cell_right {
    text-align: right !important;
}

.constante_co2_cell_left {
    text-align: left !important;
}

.constante_co2_cell_center {
    text-align: center !important;
}

.constante_co2_row_even {
    background-color: #f8f9fa;
}

.constante_co2_row_odd {
    background-color: #ffffff;
}

.constante_co2_row_even:hover,
.constante_co2_row_odd:hover {
    background-color: #e9ecef;
}

/* Pagination Styles */
.constante_co2_pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: #64748b;
}

.constante_co2_page_number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #0771B1;
    color: white;
    border-radius: 0.25rem;
}

.constante_co2_pagination_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0771B1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.constante_co2_pagination_link:hover {
    background: #f8fafc;
    border-color: #0771B1;
    text-decoration: none;
}

.constante_co2_pagination_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #0771B1;
    color: white;
    font-weight: 500;
    border-radius: 4px;
}

.constante_co2_pagination_info {
    color: #0771B1;
    margin-right: auto;
}

/* Alert and Error Messages */
.constante_co2_alert,
.constante_co2_error {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.constante_co2_alert {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    color: #0369A1;
}

.constante_co2_error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

/* Estilos específicos para editar_constante_co2.php */
.constante_co2_editar_wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 300px);
    padding: 2rem;
}

.constante_co2_editar_form_section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.constante_co2_editar_form fieldset {
    border: 1px solid #E1E2E3;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 0;
}

.constante_co2_editar_form legend {
    color: #64748b;
    font-weight: 500;
    padding: 0 0.5rem;
}

.constante_co2_editar_form_group {
    margin-bottom: 1.5rem;
}

.constante_co2_editar_form_group label {
    display: block;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.constante_co2_editar_form_group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.constante_co2_editar_form_group input:focus {
    outline: none;
    border-color: #0771B1;
    box-shadow: 0 0 0 3px rgba(7, 113, 177, 0.1);
}

.constante_co2_editar_form_actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.constante_co2_editar_submit {
    height: 40px;
    background: #0771B1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.constante_co2_editar_submit:hover {
    background: #065d8f;
}

.constante_co2_editar_cancel {
    height: 40px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.constante_co2_editar_cancel:hover {
    background: #c82333;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .constante_co2_wrapper {
        flex-direction: column;
    }

    .constante_co2_form_section {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .constante_co2_wrapper {
        padding: 1rem;
    }

    .constante_co2_form_section,
    .constante_co2_table_container {
        padding: 1rem;
    }

    .constante_co2_table td,
    .constante_co2_table th {
        padding: 0.5rem;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .constante_co2_pagination {
        gap: 0.25rem;
    }

    .constante_co2_pagination_link,
    .constante_co2_pagination_current {
        min-width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .constante_co2_pagination_info {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .constante_co2_wrapper {
        padding: 0.5rem;
    }

    .constante_co2_form_section,
    .constante_co2_table_container {
        padding: 0.75rem;
        border-radius: 4px;
    }

    .constante_co2_form_group label {
        font-size: 13px;
    }

    .constante_co2_form_group input {
        padding: 0.5rem;
    }

    .constante_co2_submit_button input[type="submit"] {
        padding: 0.5rem 1.5rem;
    }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .constante_co2_editar_wrapper {
        padding: 1rem;
    }

    .constante_co2_editar_form_section {
        padding: 1.5rem;
    }

    .constante_co2_editar_form_actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .constante_co2_editar_submit,
    .constante_co2_editar_cancel {
        height: 40px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .constante_co2_editar_wrapper {
        padding: 0.5rem;
    }

    .constante_co2_editar_form_section {
        padding: 1rem;
        border-radius: 4px;
    }

    .constante_co2_editar_form_group label {
        font-size: 13px;
    }
}