/* === ESTILOS PARA PÁGINA DE FATURAS DO DOKAN === */
/* Usar as mesmas classes e estilos da página de orders do Dokan */

/* Personalização específica para filtros de faturas */
.dokan-orders-content .order-statuses-filter {
    margin-bottom: 20px;
}

.dokan-orders-content .order-statuses-filter li {
    margin-right: 10px;
}

.dokan-orders-content .order-statuses-filter li a {
    color: #777;
    text-decoration: none;
    padding: 5px 0;
}

.dokan-orders-content .order-statuses-filter li.active a,
.dokan-orders-content .order-statuses-filter li a:hover {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

/* Container do filtro de busca */
.dokan-order-filter-serach {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dokan-order-filter-serach .dokan-left {
    float: left;
    width: 70%;
}

.dokan-order-filter-serach .dokan-right {
    float: right;
    width: 28%;
    text-align: right;
}

.dokan-order-filter-serach .dokan-form-group input,
.dokan-order-filter-serach .dokan-form-group select {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Responsivo para filtros */
@media (max-width: 768px) {
    .dokan-order-filter-serach .dokan-left,
    .dokan-order-filter-serach .dokan-right {
        float: none;
        width: 100%;
        text-align: left;
    }
    
    .dokan-order-filter-serach .dokan-right {
        margin-top: 15px;
    }
}

/* Personalização para tabela usando classes existentes do Dokan */
.dokan-table.dokan-table-striped {
    margin-top: 0;
}

.dokan-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.dokan-table td.dokan-order-id a {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}

.dokan-table td.dokan-order-id a:hover {
    color: #005a87;
}

/* Labels de status personalizados */
.dokan-label {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    color: #fff;
}

.dokan-label-warning {
    background-color: #f39c12;
}

.dokan-label-info {
    background-color: #3498db;
}

.dokan-label-success {
    background-color: #27ae60;
}

.dokan-label-danger {
    background-color: #e74c3c;
}

.dokan-label-default {
    background-color: #95a5a6;
}

/* === ESTILOS PARA PÁGINA DE NOVA FATURA === */

/* Formulário da nova fatura usando classes do Dokan */
.dokan-invoice-form .wcip-invoice-data {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.dokan-invoice-form .wcip-invoice-data h3.title {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-weight: 600;
}

.dokan-invoice-form #wcPaymentInvoiceTitles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.dokan-invoice-form .invoice-row-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dokan-invoice-form .invoice-column-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dokan-invoice-form .input-row-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dokan-invoice-form .input-row-wrap label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.dokan-invoice-form .regular-text {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.dokan-invoice-form .regular-text:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Seção de preços */
.dokan-invoice-form .price-row-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Botões */
.dokan-invoice-form .btn {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dokan-invoice-form .btn-add-line {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    margin-top: 10px;
}

.dokan-invoice-form .btn-add-line:hover {
    background: #005a87;
    border-color: #005a87;
}

.dokan-invoice-form .btn-delete {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dokan-invoice-form .btn-delete:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Ações da fatura */
.dokan-invoice-form .wcip-invoice-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 992px) {
    .dokan-invoice-form .invoice-row-wrap,
    .dokan-invoice-form #wcPaymentInvoiceTitles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dokan-invoice-form .price-row-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* === ESTILOS PARA BOTÕES DE FATURA NA PÁGINA DE DETALHES DO PEDIDO === */
.lkn-wcip-invoice-actions {
    margin-top: 20px;
}

.lkn-wcip-invoice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.lkn-wcip-invoice-buttons .dokan-btn {
    margin: 0;
}

.lkn-wcip-invoice-buttons .dokan-btn i {
    margin-right: 5px;
}

/* Modal de compartilhamento */
#lkn-wcip-share-modal {
    position: fixed;
    z-index: 999999;
    left: 0px;
    display: flex;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Modal específico do Dokan para evitar conflitos */
#lkn-wcip-dokan-share-modal {
    position: fixed;
    z-index: 999999;
    left: 0px;
    display: none;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#lkn-wcip-share-modal-content,
#lkn-wcip-dokan-share-modal-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    position: relative;
    text-align: center;
    border-radius: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1vh;
}

#lkn-wcip-share-title {
    margin-bottom: 0;
    color: #333;
    font-size: 18px;
    margin-top: 0;
}

#lkn-wcip-share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

#lkn-wcip-share-buttons a{
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 24px;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lkn-wcip-share-icon.dashicons.dashicons-whatsapp{
    background-color: #25D366;
}

.lkn-wcip-share-icon.dashicons.dashicons-twitter{
    background-color: #1DA1F2;
}

.lkn-wcip-share-icon.dashicons.dashicons-email-alt{
    background-color: #0072b1;
}


.lkn-wcip-share-icon {
    font-size: 32px;
    text-decoration: none;
    transition: transform 0.2s;
}

.lkn-wcip-share-icon:hover {
    transform: scale(1.1);
}

.lkn-wcip-share-icon.dashicons-whatsapp {
    color: #25D366;
}

.lkn-wcip-share-icon.dashicons-twitter {
    color: #1DA1F2;
}

.lkn-wcip-share-icon.dashicons-email-alt {
    color: #34495e;
}

#lkn-wcip-copy-link-div {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 10px;
}

#lkn-wcip-copy-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.lkn-wcip-copy-button {
    cursor: pointer;
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    display: flex;
    height: 100%;
    border: none;
    align-items: center;
    transition: background-color 0.2s;
}

.lkn-wcip-copy-button:hover {
    background: #005a87;
}

.lkn-wcip-copy-button .dashicons {
    color: white;
    font-size: 16px;
}

#lkn-wcip-close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    text-decoration: none;
    line-height: 1;
}

#lkn-wcip-close-modal-btn:hover {
    color: #000;
}

/* Responsividade */
@media (max-width: 768px) {
    .lkn-wcip-invoice-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lkn-wcip-invoice-buttons .dokan-btn {
        width: 100%;
        justify-content: center;
    }
    
    #lkn-wcip-share-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    #lkn-wcip-share-buttons {
        gap: 20px;
    }
    
    .lkn-wcip-share-icon {
        font-size: 28px;
    }
}