:root {
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --bg-hover: #eef2ff;
    --color-primary: #666cff;
    --color-primary-soft: #e0e7ff;
    --text-main: #1e1b4b;
    --text-soft: #64748b;
    --border-color: #e5e7eb;
}

{
    direction: rtl;
    font-family: Vazirmatn, IRANSans, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

.dataTables_wrapper {
    position: relative;
}

table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

table.dataTable thead th {
    background: var(--bg-soft);
    padding: 14px 16px;
    font-weight: 600;
    text-align: right;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 30px;
    padding-right: 14px;
}

table.dataTable tbody tr {
    transition: background 0.18s ease;
    box-shadow: 0 1px 0 var(--border-color);
}

table.dataTable tbody tr:nth-child(even) {
    background: var(--bg-soft);
}

table.dataTable tbody tr:nth-child(odd) {
    background: var(--bg-main);
}

table.dataTable tbody tr:hover {
    background: var(--bg-hover);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
    position: relative;
    z-index: 2;
}

table.dataTable tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.edit-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
	transition: all 0.2s ease;
}

.edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.dataTables_length,
.dataTables_filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dataTables_length {
    float: right;
}

.dataTables_filter {
    float: left;
}

.dataTables_filter input,
.dataTables_length select {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 14px;
    margin: 0 6px;
    outline: none;
    transition: all 0.2s ease;
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.dataTables_info,
.dataTables_paginate {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
}

.dataTables_info {
    float: right;
    color: var(--text-soft);
}

.dataTables_paginate {
    float: left;
    gap: 10px;
}

.dataTables_paginate .paginate_button {
    background: var(--bg-main);
    color: var(--color-primary) !important;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    min-width: 40px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: var(--bg-hover);
    border-color: var(--color-primary-soft);
}

.dataTables_paginate .paginate_button.current {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.4);
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.35;
    cursor: default;
}

.dataTables_paginate .previous,
.dataTables_paginate .next {
    padding: 8px 18px;
}

.dataTables_wrapper::after {
    content: "";
    display: block;
    clear: both;
}

{
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 16px 10px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.dataTables_wrapper {
    margin-top: 6px;
}

table.dataTable thead th:first-child {
    border-top-right-radius: 12px;
}

table.dataTable thead th:last-child {
    border-top-left-radius: 12px;
}

table.dataTable tbody tr:first-child td {
    padding-top: 18px;
}

table.dataTable tbody tr:last-child td {
    padding-bottom: 18px;
}

.dataTables_info,
.dataTables_paginate {
    background: var(--bg-soft);
    padding: 9px 13px;
    border-radius: 12px;
    margin-top: 16px;
}

.dataTables_info {
    margin-right: 6px;
}

.dataTables_paginate {
    margin-left: 6px;
}



table.dataTable thead th {
    position: relative;
    padding-right: 28px;
}

/* base */
table.dataTable thead th::before,
table.dataTable thead th::after {
    font-family: "Material Design Icons";
    position: absolute;
    right: 6px;
    font-size: 14px;
    color: var(--text-muted);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sorting_disabled::before,
.sorting_disabled::after {
   display: none;
}

/* فلش بالا */
table.dataTable thead th::before {
    content: "\F005D"; /* mdi-arrow-up */
    top: 14%;
}

/* فلش پایین */
table.dataTable thead th::after {
    content: "\F0045"; /* mdi-arrow-down */
    top: 36%;
}

/* حالت عادی */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after {
    opacity: 0.4;
}

/* صعودی */
table.dataTable thead th.sorting_asc::before {
    opacity: 1;
    color: var(--text-main);
    transform: translateY(-7px);
}

table.dataTable thead th.sorting_asc::after {
    opacity: 0.2;
}

/* نزولی */
table.dataTable thead th.sorting_desc::after {
    opacity: 1;
    color: var(--text-main);
    transform: translateY(7px);
}

table.dataTable thead th.sorting_desc::before {
    opacity: 0.2;
}



#dataTableBuilder_processing {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    min-width: 200px;
    max-width: 260px;
    padding: 24px 28px;
    background: rgba(130, 39, 163, 0);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15),
    0 6px 14px rgba(0, 0, 0, .1);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 9999;
}

#dataTableBuilder_processing > div {
    width: 44px;
    height: 44px;
    position: relative;
    transform: translate(-110%, 24%) scale(1.1);
}

#dataTableBuilder_processing > div > div {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, .15);
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

#dataTableBuilder_processing > div > div:not(:first-child) {
    display: none;
}

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


.twitter-typeahead {
    display: block !important
}

.twitter-typeahead .tt-menu {
    float: left;
    position: absolute;
    left: 0;
    top: 100%;
    text-align: left;
    list-style: none;
    background-clip: padding-box;
    display: none
}

[dir=rtl] .twitter-typeahead .tt-menu {
    float: right;
    left: auto !important;
    right: 0 !important;
    text-align: right
}

.twitter-typeahead .tt-menu .tt-suggestion {
    text-align: inherit;
    border: 0;
    width: 100%;
    display: block;
    white-space: nowrap;
    background: none;
    clear: both;
    cursor: pointer
}

.twitter-typeahead .tt-menu .tt-suggestion p {
    margin: 0
}

.twitter-typeahead .tt-hint {
    color: #999
}

[dir=rtl] .twitter-typeahead .tt-input {
    direction: rtl
}

.light-style .twitter-typeahead .tt-menu {
    min-width: 10rem;
    padding: .3125rem 0;
    font-size: .9375rem;
    z-index: 1000;
    margin: .125rem 0;
    color: #677788;
    box-shadow: 0 .25rem 1rem rgba(147, 158, 170, .45);
    background-color: #fff;
    border-radius: .25rem
}

.light-style .twitter-typeahead .tt-hint {
    color: #a8b1bb
}

.light-style .twitter-typeahead .tt-suggestion {
    font-weight: 400;
    color: #677788;
    padding: .5rem 1rem
}

.light-style .twitter-typeahead .tt-suggestion:hover, .light-style .twitter-typeahead .tt-suggestion:focus {
    text-decoration: none;
    color: #677788;
    background-color: rgba(38, 60, 85, .06)
}

.dark-style .twitter-typeahead .tt-menu {
    color: #a1b0cb;
    min-width: 10rem;
    padding: .3125rem 0;
    margin: .125rem 0;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .25);
    font-size: .9375rem;
    background-color: #283144;
    z-index: 1000;
    border-radius: .25rem
}

.dark-style .twitter-typeahead .tt-menu .tt-suggestion {
    font-weight: 400;
    color: #a1b0cb;
    padding: .5rem 1rem
}

.dark-style .twitter-typeahead .tt-menu .tt-suggestion:hover, .dark-style .twitter-typeahead .tt-menu .tt-suggestion:focus {
    text-decoration: none;
    color: #a1b0cb;
    background-color: rgba(99, 123, 169, .08)
}

.dark-style .twitter-typeahead .tt-hint {
    color: #8295ba
}
