/* ----------------------------------------------
   ✅ باکس اصلی متاباکس اطلاعات دارویی
   کلاس مرتبط: .rx-custom-box
---------------------------------------------- */
.rx-custom-box {
    background-color: #f5f5f5;
    padding: 20px;
    border: 1px solid #ccc;
}


/* ----------------------------------------------
   ✅ دکمه افزودن ترکیب جدید در متاباکس
   شناسه مرتبط: #add-comp-row
---------------------------------------------- */
#add-comp-row {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
#add-comp-row:hover {
    background-color: #1565c0;
}


/* ----------------------------------------------
   ✅ دکمه حذف ترکیب در متاباکس
   کلاس مرتبط: .remove-comp
---------------------------------------------- */
.remove-comp {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.remove-comp:hover {
    background-color: #c62828;
    transform: scale(1.05);
}


/* ----------------------------------------------
   ✅ باکس تأییدیه حذف ترکیب
   کلاس مرتبط: .confirm-delete
---------------------------------------------- */
.confirm-delete {
    animation: fadeInConfirm 0.3s ease forwards;
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    text-align: center;
    font-family: inherit;
}

.confirm-delete button {
    margin: 5px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-delete .confirm-yes {
    background: #e53935;
    color: #fff;
}

.confirm-delete .confirm-no {
    background: #ccc;
}


/* ----------------------------------------------
   🌟 انیمیشن ظاهر شدن تأییدیه حذف
   keyframes: fadeInConfirm
---------------------------------------------- */
@keyframes fadeInConfirm {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}


/* ----------------------------------------------
   🌟 انیمیشن حذف نرم ردیف ترکیب
   کلاس مرتبط: .fade-out
   keyframes: fadeOutRow
---------------------------------------------- */
.fade-out {
    animation: fadeOutRow 0.3s ease forwards;
}

@keyframes fadeOutRow {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.95); height: 0; margin: 0; padding: 0; }
}


/* ----------------------------------------------
   ✅ نسخه دوم باکس تأییدیه حذف با انیمیشن سه‌بعدی
   کلاس مرتبط: .confirm-delete
   keyframes: showDeleteConfirm
---------------------------------------------- */
.confirm-delete {
    background-color: #fef3f3;
    border: 1px solid #d43f3a;
    padding: 12px 16px;
    border-radius: 6px;
    color: #d43f3a;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(212, 63, 58, 0.3);
    opacity: 0;
    transform: scale(0.9) rotateX(-30deg);
    animation: showDeleteConfirm 0.5s ease-out forwards;
    transform-origin: top center;
}

@keyframes showDeleteConfirm {
    0% {
        opacity: 0;
        transform: scale(0.9) rotateX(-30deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

/* 📄 [تب دارویی] فاصله بالا برای پاراگراف‌ها */
.pharma-tab-contents p {
    padding-top: 17px;
}


/* 🧭 [تب دارویی] لیست عنوان تب‌ها */
.pharma-tab-titles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border-top: 1px solid #49c332;
	WIDTH: MAX-CONTENT;
}


/* 🔘 [تب دارویی] آیتم‌های عنوان تب */
.pharma-tab-titles li {
    cursor: pointer;
    padding: 10px 15px;
    margin: 1px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    transition: background 0.3s ease;
    border-radius: 10px;
}


/* ✅ [تب دارویی] تب فعال */
.pharma-tab-titles li.active {
    background: #fff;
    font-weight: bold;
    border-bottom: 2px solid #49c332;
}


/* 📦 [تب دارویی] محتوای هر تب */
.pharma-tab-content {
    display: none;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #49c332;
    border-radius: 10px;
}


/* 📌 [تب دارویی] نمایش تب فعال */
.pharma-tab-content.active {
    display: block;
}


/* 📊 [تب دارویی] جدول اطلاعات دارویی */
.pharma-tab-contents table th,
.pharma-tab-contents table td {
    padding: 10px !important;
    border: 1px solid #ccc;
    text-align: center;
}


/* 🟩 [تب دارویی] استایل هدر جدول */
.pharma-tab-contents table thead {
    background: #e6f6e6;
    font-weight: bold;
}


/* 🟨 [تب دارویی] استایل بدنه جدول */
.pharma-tab-contents table tbody {
    background: #f5f5f5;
}


/* 🔄 [تب دارویی] جهت چپ‌چین برای ردیف‌ها */
.pharma-tab-contents table tr {
    direction: ltr;
}


/* 🧼 [تب دارویی] حذف بوردر و تنظیم line-height */
.pharma-tab-contents table th,
.pharma-tab-contents table td {
    border: none !important;
    line-height: 1.5 !important;
}


/* 🧈 [تب دارویی] گوشه‌های گرد برای سلول اول و آخر در tbody */
.pharma-tab-contents table tbody tr td:first-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.pharma-tab-contents table tbody tr td:last-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}


/* 🧈 [تب دارویی] گوشه‌های گرد برای سلول اول و آخر در thead */
.pharma-tab-contents table thead tr th:first-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.pharma-tab-contents table thead tr th:last-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}


