.certificados-breadcrumb {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    color: #6c757d;
}

.certificados-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.35rem 0.35rem 0 0;
    padding: 1rem 1.25rem;
    border-bottom: none;
    min-height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certificados-header-gradient h6 {
    color: white;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.certificados-nuevo-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto;
}

.certificados-nuevo-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2) !important;
}

.certificados-nuevo-btn i {
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .certificados-nuevo-btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .certificados-header-gradient {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .certificados-nuevo-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

.column-filter {
    font-size: 0.875rem !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 0.35rem !important;
    padding: 0.375rem 0.75rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.column-filter:focus {
    border-color: #4e73df !important;
    box-shadow: 0 0 0 0.1rem rgba(78, 115, 223, 0.25) !important;
    outline: 0 !important;
}

.form-label {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
    color: #5a5c69 !important;
    font-weight: 600 !important;
}

.form-label i {
    color: #858796 !important;
    width: 14px !important;
    margin-right: 0.25rem !important;
}

@media (max-width: 768px) {
    .column-filter {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.125rem !important;
    }
    
    .form-label i {
        font-size: 0.7rem !important;
    }
}


.clear-input-btn {
    position: absolute !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #858796 !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 5 !important;
}

.input-with-clear.has-content .clear-input-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

.clear-input-btn:hover {
    background-color: #e74a3b !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.clear-input-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.15rem rgba(231, 74, 59, 0.25) !important;
}

.input-with-clear {
    position: relative !important;
    display: block !important;
}

.input-with-clear input {
    padding-right: 2.5rem !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .input-with-clear input {
        padding-right: 2rem !important;
    }
    
    .clear-input-btn {
        right: 0.25rem !important;
        font-size: 0.75rem !important;
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

#myTable {
    width: 100% !important;
    table-layout: fixed !important;
}

#myTable th,
#myTable td {
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 1rem !important;
    vertical-align: middle !important;
}

#myTable th:nth-child(1),
#myTable td:nth-child(1) {
    width: 3% !important;
    text-align: center !important;
}

#myTable th:nth-child(2),
#myTable td:nth-child(2) {
    width: 18.5% !important;
    word-break: break-word !important;
    white-space: normal !important;
}

#myTable th:nth-child(3),
#myTable td:nth-child(3) { 
    width: 18.5% !important;
    word-break: break-word !important;
    white-space: normal !important;
}

#myTable th:nth-child(4),
#myTable td:nth-child(4) {
    width: 7% !important;
    white-space: normal !important;
    word-break: break-word !important;
}

#myTable td:nth-child(4) {
    word-spacing: -0.05em !important;
}

#myTable th:nth-child(5),
#myTable td:nth-child(5) { 
    width: 10.5% !important;
    word-break: break-all !important;
    white-space: normal !important;
    text-align: center !important;
}

#myTable th:nth-child(6),
#myTable td:nth-child(6) {
    width: 22% !important;
    word-break: break-word !important;
    white-space: normal !important;
}

#myTable th:nth-child(7),
#myTable td:nth-child(7) { 
    width: 7.5% !important;
    white-space: normal !important;
    text-align: center !important;
}

#myTable th:nth-child(8),
#myTable td:nth-child(8) { 
    width: 7.5% !important;
    white-space: normal !important;
    text-align: center !important;
}

#myTable th:nth-child(9),
#myTable td:nth-child(9) {
    width: 4.5% !important;
    text-align: center !important;
}

#myTable th:nth-child(5),
#myTable th:nth-child(7),
#myTable th:nth-child(8),
#myTable th:nth-child(9) {
    text-align: center !important;
}

.scrollable-cell {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
}

@media (max-width: 1400px) {
    #myTable th,
    #myTable td {
        font-size: 0.95rem !important;
        padding: 0.625rem 0.4rem !important;
    }
}

@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto !important;
    }
    
    #myTable {
        table-layout: auto !important;
        min-width: 100% !important;
    }
}

.action-buttons-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.3rem 0.3rem !important;
    row-gap: 0.5rem !important;
    padding: 0.2rem !important;
    justify-items: center !important;
    align-items: center !important;
}

.action-buttons-grid a {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    color: #4e73df !important;
    font-size: 0.95rem !important;
}

.action-buttons-grid a:hover {
    color: #2e59d9 !important;
    transform: scale(1.2) !important;
}
