.width30{
    width:30%;
}
.float_right{
    float:  right !important;
}
.custom_img{
    width:150px;
    height: 150px;
}
.card_title_center{
    width: 100%;
    text-align: center !important;
}
/* ========================================
   INVOICES PAGE (CSS الخاص بالفواتير)
   ======================================== */

/* ===== الهيدر ===== */
    .invoices-page {
        padding: 0 10px;
    }

    .page-header-invoice {
        background: linear-gradient(135deg, #231047 0%, #3a1a75 100%);
        border-radius: 16px;
        padding: 20px 25px;
        margin-bottom: 25px;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .page-header-invoice::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 60%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,182,0,0.08) 0%, transparent 70%);
        animation: rotate 30s linear infinite;
    }

    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .page-header-invoice h4 {
        color: white;
        font-weight: 700;
        margin: 0;
        font-size: 22px;
        position: relative;
        z-index: 1;
    }

    .page-header-invoice h4 i {
        color: #ffb600;
        margin-left: 10px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 1;
    }

    .btn-edit {
        background: #ffb600;
        color: #231047;
        border-radius: 10px;
        padding: 8px 20px;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 2px solid #ffb600;
    }

    .btn-edit:hover {
        background: #231047;
        border-color: #231047;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(255, 182, 0, 0.3);
    }

    .card-invoice {
        border: 0;
        border-radius: 18px;
        box-shadow: 0 4px 25px rgba(35, 16, 71, 0.08);
        border: 1px solid rgba(255, 182, 0, 0.1);
        overflow: hidden;
        background: white;
    }

    .card-invoice .card-body {
        padding: 30px;
    }

    .form-label {
        color: #231047;
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-label i {
        color: #ffb600;
        margin-left: 6px;
    }

    .form-control-custom {
        border: 2px solid #e8e5f0;
        border-radius: 12px;
        padding: 12px 15px;
        font-size: 14px;
        transition: all 0.3s ease;
        width: 100%;
        background: white;
        color: #231047;
    }

    .form-control-custom:focus {
        border-color: #ffb600;
        box-shadow: 0 0 0 3px rgba(255, 182, 0, 0.12);
        outline: none;
    }

    .form-control-custom::placeholder {
        color: #bbb;
    }

    select.form-control-custom {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23231047' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 15px center;
        padding-left: 40px;
        cursor: pointer;
    }

    .result-box {
        background: linear-gradient(135deg, #f8f5ff 0%, #f0ecf5 100%);
        border-radius: 14px;
        padding: 20px 25px;
        margin-top: 20px;
        border: 2px solid rgba(255, 182, 0, 0.15);
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .result-box:hover {
        border-color: #ffb600;
        box-shadow: 0 4px 20px rgba(255, 182, 0, 0.08);
    }

    .result-box .result-label {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .result-box .result-label i {
        font-size: 28px;
        color: #ffb600;
    }

    .result-box .result-label span {
        color: #666;
        font-size: 14px;
        font-weight: 500;
    }

    .result-box .result-value {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .result-box .result-value strong {
        color: #231047;
        font-size: 28px;
        font-weight: 800;
    }

    .result-box .result-value .currency {
        color: #999;
        font-size: 16px;
        font-weight: 600;
    }

    .result-box.d-none {
        display: none !important;
    }

    @media (max-width: 768px) {
        .page-header-invoice {
            padding: 16px 18px;
        }
        .page-header-invoice h4 {
            font-size: 18px;
        }
        .btn-edit {
            padding: 6px 14px;
            font-size: 13px;
        }
        .card-invoice .card-body {
            padding: 20px;
        }
        .result-box {
            padding: 15px 18px;
        }
        .result-box .result-value strong {
            font-size: 22px;
        }
    }

    @media (max-width: 576px) {
        .page-header-invoice {
            padding: 14px 15px;
            border-radius: 14px;
        }
        .page-header-invoice h4 {
            font-size: 16px;
        }
        .btn-edit {
            padding: 5px 12px;
            font-size: 12px;
        }
        .card-invoice .card-body {
            padding: 16px;
        }
        .result-box {
            padding: 12px 15px;
            flex-direction: column;
            text-align: center;
        }
        .result-box .result-value strong {
            font-size: 20px;
        }
        .form-control-custom {
            padding: 10px 12px;
            font-size: 13px;
        }
        .container-fluid {
            padding-left: 8px;
            padding-right: 8px;
        }
    }