/* =========================================
   1. Variables & Base Reset
========================================= */
:root {
    --alm-bg-primary: #fafafa; /* پس زمینه اصلی صفحه */
    --alm-bg-secondary: #eaedef; /* پس زمینه کارت‌ها، سایدبار، ... */
    --alm-bg-card: #fafafa; /* پس زمینه کارت‌ها، سایدبار، ... */
    --alm-bg-third: #fbfbfb; /* پس زمینه کارت‌ها، سایدبار، ... */
    --alm-bg-teal: #5867dd; /* پس زمینه کارت‌ها، سایدبار، ... */
    --alm-bg-light: #f1f1f1; /* پس زمینه کارت‌ها، سایدبار، ... */
    --alm-bg-hover: #f1f1f1;
    --alm-bg-body: #e9e9e9;
    --alm-input-font-size: 16px; /* رنگ هاور آیتم‌ها */
    --alm-input-height: 35px; /* رنگ هاور آیتم‌ها */
    --alm-light-primary: #2b42f9;
    --alm-light-text-primary: #5a8dee;
    --alm-light-warning: #fff2e1;
    --alm-light-text-warning: #fdac41;
    --alm-progress-bg: #d0d0d0;
    --alm-label-primary: #0000000d;
    --alm-bg-accent: #5867dd;

    --alm-text-primary: #495057; /* متن اصلی */
    --alm-text-secondary: #6c757d; /* متن ثانویه (کمرنگ‌تر) */
    --alm-text-heading: #212529; /* رنگ تیترها */

    --alm-border-color: #dee2e6; /* رنگ حاشیه‌ها */
    --alm-input-bg: #ffffff; /* پس زمینه اینپوت‌ها */
    --alm-input-border: #ced4da;
    --alm-border-primary: #dfdfdf; /* حاشیه اینپوت‌ها */
    --alm-input-border-accent: #704f3d; /* حاشیه اینپوت‌ها */
    --alm-primary: #5867dd;
    --alm-info: #4E45EFFF;
    --alm-primary-hover: #3b59da;
    --alm-danger: #e04b4b;
    --alm-danger-hover: #bb2d3b;
    --alm-success: #26a86c;
    --alm-text-accent: #f18316;
    --alm-purple: #e9e9e9;
    --alm-text: #515a63;
    --alm-input-text: #373738;
    --alm-radius: 6px;
    --alm-transition: all 0.3s ease-in-out;
}

/* File: alm-framework.css */


/* 2. Override variables for Dark Mode */
.alm-dark-mode {
    --alm-bg-primary: #181b2e;
    --alm-bg-secondary: #04071a;
    --alm-bg-teal: #202235;
    --alm-bg-light: #384165;
    --alm-bg-third: #333333; /* پس زمینه کارت‌ها، سایدبار، ... */
    --alm-bg-card: #283143;
    --alm-bg-hover: #3d4655;
    --alm-bg-body: #212630;
    --alm-light-primary: #7a87ec;
    --alm-light-text-primary: #5a8dee;
    --alm-light-warning: #4a4544;
    --alm-light-text-warning: #ffb14d;
    --alm-progress-bg: #36445d;
    --alm-label-primary: #52525252;
    --alm-bg-accent: rgba(88, 103, 221, 0.06);
    --alm-purple: #2d243e;

    --alm-text-primary: #e0e0e0;
    --alm-text-secondary: #a0a0a0;
    --alm-text-heading: #ffffff;

    --alm-info: #948ff1;
    --alm-border-color: #3c3c3c;
    --alm-border-primary: #202020;
    --alm-input-bg: #272a3d;
    --alm-input-text: #a1b0cb;
    --alm-input-border: #383f53;
}
button {
    outline: none;
    border: none;
}
a, button {
    cursor: pointer;
}
.alm-bold {
    font-weight: bold !important;
}
/* =========================================
   کلاس‌های رنگی وضعیت‌ها (Colors)
========================================= */
.alm-bg-success {
    background-color: #10b981;
}
.alm-bg-secondary {
    background-color: var(--alm-input-bg);
}

/* سبز */
.alm-bg-danger {
    background-color: #e04b4b;
}
.alm-bg-orange {
    background-color: #ec6d3d;
    color: white;
}

/* قرمز */
.alm-bg-warning {
    background-color: #f59e0b;
    color: #fff !important;
}

/* نارنجی */
.alm-bg-primary {
    background-color: #447de9;
}

/* آبی */
.alm-text-success {
    color: #10b981;
}

.alm-text-danger {
    color: #e04b4b;
}

.alm-text-warning {
    color: #f59e0b;
}

.alm-text-dark {
    color: #3a3c3e;
}

.alm-text-white {
    color: #ffffff;
}

/* Reset Box Model */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: var(--alm-text-primary); /* <-- Use variable */
    line-height: 1.5;
    background-color: var(--alm-bg-body); /* <-- Use variable */
}
li {
    list-style: none;
}

/* font size */
.alm-text-xs {
    font-size: 12px !important;
}

.alm-text-sm {
    font-size: 14px !important;
}

.alm-text-md {
    font-size: 16px !important;
}

.alm-text-lg {
    font-size: 18px !important;
}

.alm-text-xl {
    font-size: 20px !important;
}

.alm-text-2xl {
    font-size: 24px !important;
}

/* font weight */
.alm-fw-light {
    font-weight: 300;
}

.alm-fw-normal {
    font-weight: 400;
}

.alm-fw-medium {
    font-weight: 500;
}

.alm-fw-bold {
    font-weight: 700;
}

.alm-fw-black {
    font-weight: 900;
}

/* text align */
.alm-text-right {
    text-align: right;
}

.alm-text-center {
    text-align: center;
}

.alm-text-left {
    text-align: left;
}

/* =========================================
   2. Grid System (Flexbox)
========================================= */
.alm-container {
    width: 100%;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.alm-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.alm-row > * {
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
}

/* ==========================================================================
   ALM Custom Grid System (12 Columns)
   Mobile First Approach
   ========================================================================== */

/* 1. تنظیمات پایه (Base) */
*, *::before, *::after {
    box-sizing: border-box;
}

.alm-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.alm-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* ساختار پایه ستون‌ها */
[class*="alm-col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* ==========================================================================
   2. حالت پیش‌فرض / موبایل (بدون پیشوند سایز - Extra Small)
   کمتر از 576px
   ========================================================================== */
.alm-col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.alm-col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.alm-col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.alm-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.alm-col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.alm-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.alm-col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.alm-col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.alm-col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.alm-col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.alm-col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.alm-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ==========================================================================
   3. موبایل‌های بزرگ و تبلت‌های کوچک (Small)
   بزرگتر یا مساوی 576px
   ========================================================================== */
@media (min-width: 576px) {
    .alm-container {
        max-width: 540px;
    }

    .alm-col-sm-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .alm-col-sm-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .alm-col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .alm-col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .alm-col-sm-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .alm-col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .alm-col-sm-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .alm-col-sm-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .alm-col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .alm-col-sm-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .alm-col-sm-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .alm-col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   4. تبلت‌ها (Medium)
   بزرگتر یا مساوی 768px
   ========================================================================== */
@media (min-width: 768px) {
    .alm-container {
        max-width: 720px;
    }

    .alm-col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .alm-col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .alm-col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .alm-col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .alm-col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .alm-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .alm-col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .alm-col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .alm-col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .alm-col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .alm-col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .alm-col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   5. لپ‌تاپ و دسکتاپ (Large)
   بزرگتر یا مساوی 992px
   ========================================================================== */
@media (min-width: 992px) {
    .alm-container {
        max-width: 960px;
    }

    .alm-col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .alm-col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .alm-col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .alm-col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .alm-col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .alm-col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .alm-col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .alm-col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .alm-col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .alm-col-lg-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .alm-col-lg-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .alm-col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   6. مانیتورهای بزرگ (Extra Large)
   بزرگتر یا مساوی 1200px
   ========================================================================== */
@media (min-width: 1200px) {
    .alm-container {
        max-width: 1140px;
    }

    .alm-col-xl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .alm-col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .alm-col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .alm-col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .alm-col-xl-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .alm-col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .alm-col-xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .alm-col-xl-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .alm-col-xl-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .alm-col-xl-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .alm-col-xl-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .alm-col-xl-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* =========================================
   Input Groups (ترکیب اینپوت و متن)
========================================= */
input::placeholder {
    color: var(--alm-text-primary);
    font-size: 13px;
    opacity: 0.4; /* برای اینکه شفاف نباشه */
}
.alm-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.alm-input-group .alm-form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex: 1 1 auto;
    height: var(--alm-input-height);
}

.alm-input-group .alm-input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--alm-text-primary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--alm-bg-light);
    border-radius: 6px 0 0 6px;
    border-right: none;
    max-height: var(--alm-input-height);
}

/* =========================================
   Badges (نشان‌ها)
========================================= */
.alm-badge {
    display: inline-block;
    font-size: 0.75em;
    line-height: 1;
    color: #fff;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    padding: 4px 8px;
}

.alm-badge-primary {
    background-color: rgba(105, 108, 255, 0.1);
    color: var(--alm-primary);
}
.alm-btn-warning {
    color: #111111 !important;
    background-color: #ffb822 !important;
    border-color: #ffb822 !important;
}
.alm-badge-warning{
    background-color: rgb(226 226 206 / 14%);
    color: #c7c797;
}

.alm-badge-success {
    background-color: rgba(113, 221, 55, 0.1);
    color: #71dd37;
}
.alm-badge-info {
    background-color: rgba(55, 191, 221, 0.1);
    color: #37cfdd;
}
.alm-badge-secondary {
    background-color: var(--alm-bg-secondary);
    color: var(--alm-text-secondary);
}


.alm-badge-danger {
    background-color: rgba(233, 40, 40, 0.07);
    color: #e04b4b;
}

.alm-badge-teal {
    background-color: rgb(78, 69, 239);
    color: #ffffff;
}
.alm-label {
    display: inline-block;
    padding: 4px 16px;
    background: #ffa33a1a;
    border-radius: 6px;
    font-size: 12px;
    transition: 0.15s ease-in;
}
.label-warning {
    background: transparent;
    color: #F5A70D;
    border: 1px solid #F5A70D;
}
.alm-label-primary {
    background: #b6c5e745;
    color: #5a8dee;
}
.alm-text-muted {
    color: #acacac;
}
.label-info {
    background: transparent;
    color: var(--alm-info);
    border: 1px solid var(--alm-info) !important;
}
.label-warning:hover {
    background: #F5A70D;
    color: white;
}
.label-danger {
    background: transparent;
    border: 1px solid #e04b4b;
    color: #e04b4b;
}
.label-danger:hover {
    background: #e04b4b;
    color: white;
}

.alm-w-100 {
    width: 100%;
}
.alm-w-50 {
    width: 50%;
}

/* =========================================
   Utilities
========================================= */
.alm-bg-light {
    background-color: #f8f9fa !important;
}

.alm-text-dark {
    color: #233446 !important;
}

.alm-divider {
    border-top: 1px solid #e1e4e8;
    margin: 1.5rem 0;
    opacity: 0.5;
}

.alm-fw-bold {
    font-weight: 700 !important;
}

.alm-me-2 {
    margin-left: 0.5rem !important;
}

/* Margin End for RTL */


/* =========================================
   3. Form Inputs
========================================= */
.alm-form-control {
    display: block;
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    text-align: right;
    height: var(--alm-input-height);
    border: 1px solid var(--alm-input-border);
    background-color: var(--alm-input-bg);
    color: var(--alm-text-primary);
    border-radius: var(--alm-radius);
    transition: var(--alm-transition);
}
textarea.alm-form-control {
    min-height: 100px!important;
}

.alm-form-control:focus {
    outline: none;
    border-color: var(--alm-primary);
}

.alm-form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.alm-select-dropdown .option-text {
    color: var(--alm-input-text);
}

/* =========================================
   4. Links & Buttons
========================================= */
/* Links (A tag) */
.alm-link {
    color: var(--alm-primary);
    text-decoration: none;
    transition: var(--alm-transition);
}

.alm-link:hover {
    color: var(--alm-primary-hover);
    text-decoration: underline;
}

/* Base Button */
.alm-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 1rem;
    font-size: 0.90rem;
    border-radius: var(--alm-radius);
    transition: var(--alm-transition);
    font-family: inherit;
}
.alm-btn:hover {
    opacity: 0.95;
}

.alm-btn:focus {
    outline: none;
}
.alm-text-primary {
    color: var(--alm-info);
}
/* Primary Button */
.alm-btn-primary {
    color: #fff;
    background-color: var(--alm-primary);
    border-color: var(--alm-primary);
}
.alm-btn-success {
    color: #fff;
    background-color: var(--alm-success);
    border-color: var(--alm-success);
}
.alm-label-danger {
    color: white;
    background-color: var(--alm-danger);
}
.alm-label-success {
    color: white;
    background-color: var(--alm-success);
}

.alm-btn-primary:hover {
    background-color: var(--alm-primary-hover);
}
.alm-btn-action {
    color: white;
    background-color: #5955D1;
}
.alm-btn-action:hover {
    color: white;
    background-color: #4b47be;
}

.alm-btn-reset {
    color: var(--alm-text-primary);
    background-color: rgba(89, 85, 209, 0);
    border: 1px solid var(--alm-text-primary);
}
.alm-btn-reset:hover {
    color:  var(--alm-text-primary);
    background-color: rgba(255, 255, 255, 0.07);
}

/* Danger Button (برای حذف) */
.alm-btn-danger {
    color: #fff;
    background-color: var(--alm-danger);
    border-color: var(--alm-danger);
}

.alm-btn-danger:hover {
    background-color: var(--alm-danger-hover);
}
.alm-no-border {
    border: none !important;
}

/* =========================================
   5. Alerts
========================================= */
.alm-alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--alm-radius);
}

.alm-alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alm-alert-danger {
    color: #b02531;
    background-color: #fff5f2;
    border-color: #ffd5d9;
}

/* =========================================
   6. Cards (کارت‌ها)
========================================= */
.alm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--alm-bg-secondary); /* <-- Use variable */
    background-clip: border-box;
    border-radius: var(--alm-radius);
    /* یک سایه بسیار نرم برای زیبایی بیشتر */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.alm-card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fa; /* خاکستری بسیار روشن */
    border-bottom: 1px solid var(--alm-border-color);
    font-weight: 600;
    font-size: 1.1rem;
    /* برای گرد شدن گوشه‌های بالای هدر */
    border-top-right-radius: calc(var(--alm-radius) - 1px);
    border-top-left-radius: calc(var(--alm-radius) - 1px);
}

.alm-card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.alm-card-footer {
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--alm-border-color);
    /* برای گرد شدن گوشه‌های پایین فوتر */
    border-bottom-right-radius: calc(var(--alm-radius) - 1px);
    border-bottom-left-radius: calc(var(--alm-radius) - 1px);
}
.alm-w-auto {
    width: auto !important;
}
/* =========================================
   7. Tables (جدول‌ها)
========================================= */
/* محفظه رسپانسیو کننده جدول */
/* =========================================
   Modern Tables
========================================= */
/* Wrapper برای رسپانسیو بودن و استایل دادن به بدنه اصلی جدول */
.alm-table-responsive {
    width: 100%;
    overflow-x: auto; /* مهم‌ترین کد برای رسپانسیو شدن (اسکرول افقی) */
    overflow-y: hidden; /* جلوگیری از اسکرول عمودی ناخواسته */
    -webkit-overflow-scrolling: touch; /* اسکرول نرم و روان در دستگاه‌های اپل (iOS) */

    /* استایل‌های ظاهری شما */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* برای اطمینان از اینکه خود جدول عرضش جمع نمی‌شود */
.alm-table-responsive .alm-table {
    width: 100%;
    min-width: 600px; /* حداقل عرضی که بعد از آن جدول اسکرول می‌خورد (بسته به تعداد ستون‌ها تنظیم کنید) */
    border-collapse: collapse;
}


.alm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right; /* راست‌چین برای فارسی */
    font-size: 0.95rem;
    color: #334155; /* رنگ متن خوانا و کمی ملایم‌تر از مشکی مطلق */
}

/* استایل هدر جدول (سرستون‌ها) */
.alm-table thead th {
    color: var(--alm-text-primary);
    font-weight: 600;
    padding: 1.25rem 1rem; /* فضای تنفس زیاد در هدر */
    border-bottom: 2px solid var(--alm-border-color); /* خط جداکننده هدر از بدنه */
    white-space: nowrap;
}

/* استایل سلول‌های بدنه */
.alm-table tbody td {
    padding: 1.25rem 1rem; /* فضای تنفس برای ردیف‌ها */
    border-bottom: 1px solid var(--alm-border-color); /* خطوط بسیار محو بین ردیف‌ها */
    vertical-align: middle; /* وسط‌چین عمودی محتوا */
    transition: background-color 0.2s ease;
    color: var(--alm-text-secondary);
}

/* حذف خط پایین برای آخرین ردیف تا با حاشیه جدول تداخل نکند */
.alm-table tbody tr:last-child td {
    border-bottom: none;
}

/* افکت Hover روی ردیف‌ها */
.alm-table tbody tr:hover td {
    background-color: var(--alm-bg-secondary); /* تغییر رنگ بسیار نامحسوس هنگام هاور */
}

/* در صورت تمایل به جدول راه راه (کلاس alm-table-striped) */
.alm-table-striped tbody tr:nth-of-type(even) td {
    background-color: #fafafa;
}

.alm-table-striped tbody tr:nth-of-type(even):hover td {
    background-color: #f3f4f6;
}

.alm-table tbody tr td{
    background-color: var(--alm-bg-primary);
}
.alm-table thead tr {
    background-color: var(--alm-bg-secondary);

}


/* =========================================
   8. Pagination (صفحه‌بندی)
========================================= */
.alm-pagination {
    flex-wrap: wrap; /* اگر تعداد صفحات زیاد بود در موبایل به خط بعد برود */
    padding-right: 0; /* حذف پدینگ پیش‌فرض ul در راست‌چین */
    list-style: none;
    margin: 1rem 0 0 0;
    gap: 5px; /* فاصله بین دکمه‌های صفحه‌بندی */
}

.alm-page-item {
    margin: 0;
}

.alm-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 0.5rem;
    color: var(--alm-primary);
    background-color: #fff;
    border: 1px solid var(--alm-border);
    border-radius: var(--alm-radius);
    text-decoration: none;
    transition: var(--alm-transition);
    font-weight: 500;
}

.alm-page-link:hover {
    background-color: #e9ecef;
    color: var(--alm-primary-hover);
}

/* صفحه فعال (صفحه فعلی) */
.alm-page-item.active .alm-page-link {
    background-color: var(--alm-primary);
    border-color: var(--alm-primary);
    color: #fff;
    pointer-events: none; /* صفحه فعلی نباید کلیک شود */
}

/* دکمه‌های غیرفعال (مثل دکمه "قبلی" در صفحه اول) */
.alm-page-item.disabled .alm-page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: var(--alm-border);
    opacity: 0.6;
    pointer-events: none;
}

/* =========================================
   9. Utilities (کلاس‌های کمکی)
========================================= */
/* Core Flex */
.alm-d-flex {
    display: flex;
}

.alm-inline-flex {
    display: inline-flex;
}

/* Direction */
.alm-flex-row {
    flex-direction: row;
}

.alm-flex-row-reverse {
    flex-direction: row-reverse;
}

.alm-flex-col {
    flex-direction: column;
}

.alm-flex-col-reverse {
    flex-direction: column-reverse;
}

/* Wrap */
.alm-flex-wrap {
    flex-wrap: wrap;
}

.alm-flex-nowrap {
    flex-wrap: nowrap;
}

.alm-flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

/* Justify Content */
.alm-justify-start {
    justify-content: flex-start;
}

.alm-justify-end {
    justify-content: flex-end;
}

.alm-justify-center {
    justify-content: center;
}

.alm-justify-between {
    justify-content: space-between;
}

.alm-justify-around {
    justify-content: space-around;
}

.alm-justify-evenly {
    justify-content: space-evenly;
}

/* Align Items */
.alm-align-start {
    align-items: flex-start;
}

.alm-align-end {
    align-items: flex-end;
}

.alm-align-center {
    align-items: center;
}

.alm-align-baseline {
    align-items: baseline;
}

.alm-align-stretch {
    align-items: stretch;
}

/* Align Content */
.alm-content-start {
    align-content: flex-start;
}

.alm-content-end {
    align-content: flex-end;
}

.alm-content-center {
    align-content: center;
}

.alm-content-between {
    align-content: space-between;
}

.alm-content-around {
    align-content: space-around;
}

.alm-content-stretch {
    align-content: stretch;
}

/* Gap */
.alm-gap-1 {
    gap: 0.25rem;
}

.alm-gap-2 {
    gap: 0.5rem;
}

.alm-gap-3 {
    gap: 1rem;
}

.alm-gap-4 {
    gap: 1.5rem;
}

.alm-gap-5 {
    gap: 2rem;
}

/* Flex Grow / Shrink */
.alm-flex-grow {
    flex-grow: 1;
}

.alm-flex-grow-0 {
    flex-grow: 0;
}

.alm-flex-shrink {
    flex-shrink: 1;
}

.alm-flex-shrink-0 {
    flex-shrink: 0;
}

/* Flex Basis */
.alm-basis-auto {
    flex-basis: auto;
}

.alm-basis-full {
    flex-basis: 100%;
}

.alm-basis-half {
    flex-basis: 50%;
}

.alm-basis-third {
    flex-basis: 33.33%;
}

.alm-basis-quarter {
    flex-basis: 25%;
}

/* Order */
.alm-order-1 {
    order: 1;
}

.alm-order-2 {
    order: 2;
}

.alm-order-3 {
    order: 3;
}

.alm-order-first {
    order: -1;
}

.alm-order-last {
    order: 999;
}

/* Misc */
.alm-mb-3 {
    margin-bottom: 1rem;
}

.alm-mt-3 {
    margin-top: 1rem;
}

.alm-p-4 {
    padding: 1.5rem;
}

.alm-text-center {
    text-align: center;
}

.alm-divider {
    border-top: 1px solid var(--alm-text-primary);
    margin: 1.5rem 0;
}

/* =========================================
   ALM Tooltip Styles
   ========================================= */

/* =========================================
   ALM Tooltip Styles (Fixed)
   ========================================= */
.alm-tooltip-container {
    position: absolute;
    z-index: 99999;
    background-color: #1e293b;
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.6; /* خوانایی بهتر */
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;

    /* اصلاح برای متن‌های طولانی */
    max-width: 250px;
    white-space: pre-line; /* احترام به اینترهای داخل متن */
    text-align: right;
    direction: rtl;
}

/* فلش (مثلث) تولتیپ */
.alm-tooltip-container::after {
    content: '';
    position: absolute;
    border-style: solid;
}

/* موقعیت بالا (Top) - اصلاح جانمایی */
.alm-tooltip-container[data-alm-pos="top"] {
    /* منفی 100 درصد یعنی به اندازه ارتفاع خودش بره بالا */
    transform: translate(-50%, calc(-100% + 5px));
}
.alm-tooltip-container[data-alm-pos="top"].alm-tooltip-visible {
    transform: translate(-50%, calc(-100% - 8px)); /* 8 پیکسل فاصله از تگ */
    opacity: 1;
    visibility: visible;
}
.alm-tooltip-container[data-alm-pos="top"]::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 5px;
    border-color: #1e293b transparent transparent transparent;
}

/* موقعیت پایین (Bottom) */
.alm-tooltip-container[data-alm-pos="bottom"] {
    transform: translate(-50%, -5px);
}
.alm-tooltip-container[data-alm-pos="bottom"].alm-tooltip-visible {
    transform: translate(-50%, 8px);
    opacity: 1;
    visibility: visible;
}
.alm-tooltip-container[data-alm-pos="bottom"]::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #1e293b transparent;
}


/* =========================================
   10. Form Extras (Select & Checkbox)
========================================= */
.alm-form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.35rem 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--alm-text);
    background-color: var(--alm-input-bg);
    border: 1px solid var(--alm-border-color);
    border-radius: var(--alm-radius);
    appearance: none; /* حذف ظاهر پیش‌فرض مرورگر */
    cursor: pointer;
}

.alm-form-select:focus {
    outline: none;
    border-color: var(--alm-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.alm-form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--alm-border);
    appearance: none;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--alm-transition);
}

.alm-form-check-input:checked {
    background-color: var(--alm-primary);
    border-color: var(--alm-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.alm-form-radio-input {
    width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--alm-text-secondary);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* حالت انتخاب شده */
.alm-form-radio-input:checked {
    border-color: var(--alm-primary, #3b82f6);
    background-color: var(--alm-primary, #3b82f6);
}

/* دایره داخلی */
.alm-form-radio-input:checked::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* =========================================
   11. Badges & Button Sizes
========================================= */


.alm-btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.alm-btn-secondary:hover {
    background-color: #5c636a;
}

.alm-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* =========================================
   12. WordPress Pagination Override
========================================= */
.alm-wp-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 1.5rem;
}

.alm-wp-pagination a,
.alm-wp-pagination span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 0.5rem;
    border: 1px solid var(--alm-border);
    border-radius: var(--alm-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--alm-transition);
}

.alm-wp-pagination a {
    color: var(--alm-primary);
    background-color: #fff;
}

.alm-wp-pagination a:hover {
    background-color: #e9ecef;
    color: var(--alm-primary-hover);
}

.alm-wp-pagination span.current {
    background-color: var(--alm-primary);
    border-color: var(--alm-primary);
    color: #fff;
}

/* =========================================
   Modern Checkboxes
========================================= */
.alm-form-check-input {
    /* ابعاد و ظاهر اولیه */
    width: 16px;
    height: 16px;
    appearance: none; /* حذف استایل قدیمی مرورگر */
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--alm-text-secondary); /* رنگ حاشیه نرم خاکستری/آبی */
    border-radius: 3px; /* گوشه‌های کمی گرد (Squircle) */
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;

    /* تنظیمات انیمیشن و پس‌زمینه (برای تیک) */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0; /* در حالت عادی تیک مخفی است */
}

/* افکت Hover (هاور) */
.alm-form-check-input:hover {
    border-color: #94a3b8;
}

/* حالت انتخاب شده (Checked) */
.alm-form-check-input:checked {
    background-color: var(--alm-primary, #3b82f6); /* استفاده از رنگ اصلی شما */
    border-color: var(--alm-primary, #3b82f6);

    /* استفاده از SVG بدون نیاز به فایل خارجی - تیک سفید زیبا */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 70%; /* اندازه تیک داخل باکس */
}

/* حالت فوکوس (هنگام استفاده از کیبورد یا کلیک) */
.alm-form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* هاله ملایم دور چک‌باکس */
    border-color: var(--alm-primary, #3b82f6);
}

/* استایل برای تراز کردن چک‌باکس وسط سلول جدول */
.alm-table td .alm-form-check-input,
.alm-table th .alm-form-check-input {
    display: block;
    margin: 0 auto;
}

/* =========================================
   Modern Avatars
========================================= */

/* کلاس پایه آواتار */
.alm-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* کاملا گرد */
    overflow: hidden; /* برش تصویر از حاشیه گرد */
    background-color: #f1f5f9; /* رنگ پس‌زمینه در صورت نبود عکس (خاکستری روشن) */
    color: #475569; /* رنگ متن داخلی (برای حروف اول اسم) */
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); /* یک حاشیه بسیار ظریف و محو */
    flex-shrink: 0; /* جلوگیری از جمع شدن آواتار در فلکس‌باکس */
    vertical-align: middle;
    width: 64px;
    border: 2px solid var(--alm-primary);
}

/* تنظیمات تصویر داخل آواتار */
.alm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* حفظ تناسب تصویر و برش بخش‌های اضافی */
    display: block;
}

/* سایزهای مختلف آواتار (ابعاد ریاضی) */
/* سایز کوچک: $32 \times 32$ پیکسل */
.alm-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* سایز متوسط (پیش‌فرض): $48 \times 48$ پیکسل */
.alm-avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

/* سایز بزرگ: $64 \times 64$ پیکسل */
.alm-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

/* استایل برای آواتارهای گروهی (کنار هم با هم‌پوشانی) */
.alm-avatar-group {
    display: inline-flex;
    flex-direction: row-reverse; /* برای زبان فارسی (راست به چپ) تا اولین نفر رو باشد */
}

.alm-avatar-group .alm-avatar {
    border: 2px solid #ffffff; /* حاشیه سفید برای جدا کردن تصاویر از یکدیگر */
    margin-left: -10px; /* ایجاد هم‌پوشانی */
    transition: transform 0.2s ease, z-index 0.2s ease;
}

.alm-avatar-group .alm-avatar:hover {
    transform: translateY(-3px); /* بالا آمدن هنگام هاور */
    z-index: 10; /* قرار گرفتن روی سایر آواتارها */
}

/* برای اینکه اولین آواتار حاشیه اضافی نداشته باشد */
.alm-avatar-group .alm-avatar:last-child {
    margin-left: 0;
}

/* Container توست‌ها - نمایش در پایین سمت چپ (مناسب سایت‌های راست‌چین) */
#alm-toast-container {
    position: fixed;
    top: 20px; /* فاصله از بالا */
    left: 50%; /* قرارگیری در وسط محور افقی */
    transform: translateX(-50%); /* تراز دقیق در مرکز */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط‌چین کردن توست‌ها داخل کانتینر */
    gap: 10px;
}

/* استایل پایه توست */
.alm-toast {
    width: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0; /* در ابتدا نامرئی */
    transform: translateY(-20px); /* کمی پایین‌تر */
    transition: opacity 0.2s ease, transform 0.4s ease;
    font-family: inherit;
}

/* کلاس برای انیمیشن ورود */
.alm-toast.alm-show {
    opacity: 1;
    transform: translateY(0);
}

/* هدر توست */
.alm-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #ffffff;
}

.alm-toast-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* دکمه بستن */
.alm-btn-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}

.alm-btn-close:hover {
    opacity: 1;
}

/* بدنه توست */
.alm-toast-body {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}
.alm-circle {
    display: inline-flex;
    padding: 12px;
    border-radius: 8px;
    font-size: 22px;
}
.alm-light-primary {
    background-color: var(--alm-light-primary);
    color: white;
}
.alm-light-warning {
    background-color: var(--alm-light-warning);
    color: var(--alm-light-text-warning);
}
/* =========================================
   Margin & Padding Utilities
   1rem = 16px
========================================= */

/* --- Margin --- */
.alm-m-0 {
    margin: 0 !important;
}

.alm-m-1 {
    margin: 0.25rem !important;
}

/* 4px */
.alm-m-2 {
    margin: 0.5rem !important;
}

/* 8px */
.alm-m-3 {
    margin: 1rem !important;
}

/* 16px */
.alm-m-4 {
    margin: 1.5rem !important;
}

/* 24px */
.alm-m-5 {
    margin: 3rem !important;
}

/* 48px */
.alm-m-auto {
    margin: auto !important;
}

/* Margin Top */
.alm-mt-0 {
    margin-top: 0 !important;
}

.alm-mt-1 {
    margin-top: 0.25rem !important;
}

.alm-mt-2 {
    margin-top: 0.5rem !important;
}

.alm-mt-3 {
    margin-top: 1rem !important;
}

.alm-mt-4 {
    margin-top: 1.5rem !important;
}

.alm-mt-5 {
    margin-top: 3rem !important;
}

.alm-mt-auto {
    margin-top: auto !important;
}

/* Margin Bottom */
.alm-mb-0 {
    margin-bottom: 0 !important;
}

.alm-mb-1 {
    margin-bottom: 0.25rem !important;
}

.alm-mb-2 {
    margin-bottom: 0.5rem !important;
}

.alm-mb-3 {
    margin-bottom: 1rem !important;
}

.alm-mb-4 {
    margin-bottom: 1.5rem !important;
}

.alm-mb-5 {
    margin-bottom: 3rem !important;
}

.alm-mb-auto {
    margin-bottom: auto !important;
}

/* Margin Start (Right in RTL) */
.alm-mr-0 {
    margin-right: 0 !important;
}

.alm-mr-1 {
    margin-right: 0.25rem !important;
}

.alm-mr-2 {
    margin-right: 0.5rem !important;
}

.alm-mr-3 {
    margin-right: 1rem !important;
}

.alm-mr-4 {
    margin-right: 1.5rem !important;
}

.alm-mr-5 {
    margin-right: 3rem !important;
}

.alm-ms-auto {
    margin-right: auto !important;
}

/* Margin End (Left in RTL) */
.alm-ml-0 {
    margin-left: 0 !important;
}

.alm-ml-1 {
    margin-left: 0.25rem !important;
}

.alm-ml-2 {
    margin-left: 0.5rem !important;
}

.alm-ml-3 {
    margin-left: 1rem !important;
}

.alm-ml-4 {
    margin-left: 1.5rem !important;
}

.alm-ml-5 {
    margin-left: 3rem !important;
}

.alm-me-auto {
    margin-left: auto !important;
}

/* Margin X (Horizontal) */
.alm-mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.alm-mx-1 {
    margin-right: 0.25rem !important;
    margin-left: 0.25rem !important;
}

.alm-mx-2 {
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
}

.alm-mx-3 {
    margin-right: 1rem !important;
    margin-left: 1rem !important;
}

.alm-mx-4 {
    margin-right: 1.5rem !important;
    margin-left: 1.5rem !important;
}

.alm-mx-5 {
    margin-right: 3rem !important;
    margin-left: 3rem !important;
}

.alm-mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Margin Y (Vertical) */
.alm-my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.alm-my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.alm-my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.alm-my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.alm-my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.alm-my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.alm-my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}


/* --- Padding --- */
.alm-p-0 {
    padding: 0 !important;
}

.alm-p-1 {
    padding: 0.25rem !important;
}

.alm-p-2 {
    padding: 0.5rem !important;
}

.alm-p-3 {
    padding: 1rem !important;
}

.alm-p-4 {
    padding: 1.5rem !important;
}

.alm-p-5 {
    padding: 3rem !important;
}

/* Padding Top */
.alm-pt-0 {
    padding-top: 0 !important;
}

.alm-pt-1 {
    padding-top: 0.25rem !important;
}

.alm-pt-2 {
    padding-top: 0.5rem !important;
}

.alm-pt-3 {
    padding-top: 1rem !important;
}

.alm-pt-4 {
    padding-top: 1.5rem !important;
}

.alm-pt-5 {
    padding-top: 3rem !important;
}

/* Padding Bottom */
.alm-pb-0 {
    padding-bottom: 0 !important;
}

.alm-pb-1 {
    padding-bottom: 0.25rem !important;
}

.alm-pb-2 {
    padding-bottom: 0.5rem !important;
}

.alm-pb-3 {
    padding-bottom: 1rem !important;
}

.alm-pb-4 {
    padding-bottom: 1.5rem !important;
}

.alm-pb-5 {
    padding-bottom: 3rem !important;
}

/* Padding Start (Right in RTL) */
.alm-pr-0 {
    padding-right: 0 !important;
}

.alm-pr-1 {
    padding-right: 0.25rem !important;
}

.alm-pr-2 {
    padding-right: 0.5rem !important;
}

.alm-pr-3 {
    padding-right: 1rem !important;
}

.alm-pr-4 {
    padding-right: 1.5rem !important;
}

.alm-pr-5 {
    padding-right: 3rem !important;
}

/* Padding End (Left in RTL) */
.alm-pl-0 {
    padding-left: 0 !important;
}

.alm-pl-1 {
    padding-left: 0.25rem !important;
}

.alm-pl-2 {
    padding-left: 0.5rem !important;
}

.alm-pl-3 {
    padding-left: 1rem !important;
}

.alm-pl-4 {
    padding-left: 1.5rem !important;
}

.alm-pl-5 {
    padding-left: 3rem !important;
}

/* Padding X (Horizontal) */
.alm-px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.alm-px-1 {
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.alm-px-2 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.alm-px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.alm-px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.alm-px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

/* Padding Y (Vertical) */
.alm-py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.alm-py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.alm-py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.alm-py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.alm-py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.alm-py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
/* اضافه کردن به استایل‌های اصلی پنل */
.alm-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 20px !important;
    transition: background-color 0.2s;
}
.alm-sortable:hover {
    background-color: rgba(0,0,0,0.02);
}
.alm-sortable .sort-icon {
    font-size: 10px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}
.alm-sortable.active-asc .sort-icon { content: "\25B2"; color: #007bff; } /* فلش بالا */
.alm-sortable.active-desc .sort-icon { content: "\25BC"; color: #007bff; } /* فلش پایین */

/* استایل‌های تب بندی */
.alm-tabs-nav {
    gap: 15px;
}
.alm-tab-item {
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.alm-tab-item a {
    text-decoration: none;
    color: #6c757d;
}
.alm-tab-item:hover, .alm-tab-item.active {
    border-bottom-color: #0d6efd; /* رنگ اصلی سیستم شما */
}
.alm-tab-item:hover a, .alm-tab-item.active a {
    color: #0d6efd;
}
.alm-position-relative {
    position: relative;
}
.alm-position-absolute {
    position: absolute;
}
.alm-cursor-point {
    cursor: pointer;
}