﻿@import url('/css/fonts/Fontcss.css');

:root {
    --bg-dark: #121212;
    --bg-light: #f5f5f5;
    --text-dark: #eeeeee;
    --text-light: #111111;
    --orange: #ff6500;
    --sky: #00d8ff;
    --danger: #ff5252;
    --font-size: 14px;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Vazirmatn-FD-Regular !important;
    font-size: var(--font-size);
    background: var(--bg-dark) !important;
    color: var(--text-dark) !important;
    direction: rtl !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

option {
    font-family: Vazirmatn-FD-Regular !important;
}

.select2-container {
    z-index: 90;
}

.select2.select2-container {
    width: 100% !important;
}

button {
    font-family: Vazirmatn-FD-Regular,sans-serif;
}

input {
    font-family: Vazirmatn-FD-Regular,sans-serif;
}

main {
    margin-top: 30px;
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}

.header {
    position: fixed;
    top: 0;
    height: 100%;
    max-height: 65px;
    width: 100%;
    z-index: 99;
    background-color: rgb(26 26 47 / 0.80);
    display: flex;
    flex-wrap: wrap;
}

.div-logo-menu img {
    height: 40px;
    margin-right: 80px;
}

.menu-profile {
    position: fixed;
    left: 10px;
    direction: ltr;
    text-align: start;
}

    .menu-profile ul {
        list-style: none;
        padding: 0;
    }

    .menu-profile li {
        padding: 12px;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.3s;
    }

        .menu-profile li:hover {
            background: rgb(255, 255, 255, 0.7);
            color: black;
        }

.prfile {
    font-size: 30px !important;
}

#addCompanyModal {
    padding: 0 15% 0 15%;
    background-color: #141414ac;
    z-index: 850;
}

.changer {
    margin: auto;
    width: 100%;
    background: none !important;
    padding: 0 !important;
}

    .changer select {
        min-width: 150px;
        width: 600px;
    }

header {
    text-align: center;
}

.menu-div {
    position: fixed;
    right: 10px;
}

.d-none {
    display: none;
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #loader span {
        margin-right: 20px;
    }

.spinner {
    width: 48px;
    height: 48px;
    border-top: 4px solid var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner2 {
    width: 36px;
    height: 36px;
    border-top: 4px solid var(--sky);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #1e1e1e;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding: 20px;
    z-index: 100;
}

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li {
        padding: 12px;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.3s;
    }

        .sidebar li:hover {
            background: rgba(255,255,255,0.1);
        }


.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
}

.hide {
    display: none;
}

.has-sub:hover .submenu {
    max-height: 200px;
}

main {
    padding: 20px;
}

.has-sub > .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.has-sub:hover > .submenu {
    max-height: 300px;
}

.submenu li {
    font-size: 0.9em;
    padding-right: 20px;
}

.menu-btn {
    position: fixed;
    right: 15px;
    top: 15px;
    font-size: 22px;
    background: var(--orange);
    color: black;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    z-index: 0;
}

.menu-btn-close {
    position: relative;
    right: 15px;
    top: 8px;
    font-size: 22px;
    background: var(--text-dark);
    color: black;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 0;
}

.btn-login {
    padding: 3px 5px 3px 5px;
    border-radius: 6px;
    margin-top: 10px;
    background: var(--sky);
    border: none;
}

    .btn-login:hover {
        background: #65fba9ec;
    }

form {
    margin: 25px auto auto auto;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: none;
    background: #2a2a2a;
    color: white;
}

.error {
    color: var(--danger);
    margin-top: 10px;
    font-size: 0.9em;
}

.card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.main-menu {
    margin-top: 10px;
}

.operate a {
    cursor: pointer;
    margin: 5px;
    font-size: 20px;
}

.company-selector {
    background: #1e1e2f;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: Vazirmatn-FD-Regular;
}

.top-bar {
    position: fixed;
    direction: ltr;
    text-align: start;
}

    .top-bar form {
        direction: ltr;
        background: none;
        padding-top: 8px;
    }

    .top-bar select {
        max-width: 400px;
        direction: rtl;
        width: 80%;
    }

.force-white {
    color: rgb(255, 255, 255, 0.7) !important;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: .5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border-radius: 2px;
}

.modal.show {
    padding-top: 5%;
    display: block;
    animation: slideIn 0.6s ease;
}

.modal-footer {
    justify-content: flex-start;
}

.back-modal {
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #40404093;
}

td a {
    cursor: pointer;
    font-size: 20px;
}

/* ===== AUTH PAGES (Login & Register) ===== */
.auth-container {
    max-width: 420px;
    margin: 80px auto;
    background: #1c1c1c;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.auth-title {
    text-align: center;
    margin-bottom: 20px;
}

.auth-link {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

    .auth-link a {
        color: var(--orange);
        text-decoration: none;
    }

/* CAPTCHA */
.captcha-box {
    margin-top: 15px;
}

.captcha-text {
    display: inline-block;
    background: #333;
    padding: 8px 14px;
    margin-bottom: 8px;
    letter-spacing: 3px;
    font-weight: bold;
}

/* ===== TOAST ===== */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: grab;
}

.toast-me-error {
    background: #2a0000;
    color: #ffb3b3;
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 10px;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-size: 0.9rem;
}

.toast-me-success {
    background: #092a00;
    color: #b8ffb3;
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 10px;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-size: 0.9rem;
}

.toast-me-error,
.toast-me-success {
    animation: slideIn 0.4s ease;
}

    .toast-me-error.fade-out,
    .toast-me-success.fade-out {
        animation: fadeOut 0.4s ease forwards;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.dashboard {
    padding: 30px;
}

.dashboard-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.dashboard-header .sub {
    font-size: 13px;
    opacity: 0.7;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dash-card {
    background: linear-gradient(145deg, #1c1c2e, #151525);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    animation: fadeUp .6s ease forwards;
    opacity: 0;
    transition: background 1s ease, box-shadow 1s ease, transform 1s ease;
}

    .dash-card .icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
    }

    .dash-card .info span {
        font-size: 26px;
        font-weight: bold;
    }

    .dash-card .info p {
        margin: 0;
        font-size: 13px;
        opacity: 0.8;
    }

    /* رنگ‌ها */
    .dash-card.green .icon {
        background: #16a34a;
        box-shadow: 0 0 25px #16a34a88;
    }

    .dash-card.green::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgb(14, 114, 25, 0.21);
        opacity: 0;
        transition: opacity 1.5s ease;
    }

    .dash-card.green:hover::after {
        opacity: 1;
    }

    .dash-card.green::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 60%);
    }

    .dash-card.green:hover {
        box-shadow: 0 0 30px #16a34aba;
        transform: translateY(-6px);
        transition: background 1s ease, box-shadow 1s ease, transform 1s ease;
    }

    .dash-card.blue .icon {
        background: #2563eb;
        box-shadow: 0 0 25px #2563eb88;
    }

    .dash-card.blue::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgb(14, 71, 114, 0.21);
        opacity: 0;
        transition: opacity 1.5s ease;
    }

    .dash-card.blue:hover::after {
        opacity: 1;
    }

    .dash-card.blue::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 60%);
    }

    .dash-card.blue:hover {
        box-shadow: 0 0 30px #163ba3ba;
        transform: translateY(-6px);
        transition: background 1s ease, box-shadow 1s ease, transform 1s ease;
    }

    .dash-card.purple .icon {
        background: #7c3aed;
        box-shadow: 0 0 25px #7c3aed88;
    }

    .dash-card.purple::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgb(70, 14, 114, 0.21);
        opacity: 0;
        transition: opacity 1.5s ease;
    }

    .dash-card.purple:hover::after {
        opacity: 1;
    }

    .dash-card.purple::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 60%);
    }

    .dash-card.purple:hover {
        box-shadow: 0 0 30px #3a16a3ba;
        transform: translateY(-6px);
        transition: background 1s ease, box-shadow 1s ease, transform 1s ease;
    }

    .dash-card.orange .icon {
        background: #f97316;
        box-shadow: 0 0 25px #f9731688;
    }

    .dash-card.orange::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgb(114, 81, 14, 0.21);
        opacity: 0;
        transition: opacity 1.5s ease;
    }

    .dash-card.orange:hover::after {
        opacity: 1;
    }

    .dash-card.orange::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 60%);
    }

    .dash-card.orange:hover {
        box-shadow: 0 0 30px #a38b16ba;
        transform: translateY(-6px);
        transition: background 1s ease, box-shadow 1s ease, transform 1s ease;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}

    /* موفق */
    .status-badge.success {
        background: rgba(34,197,94,.15);
        color: #22c55e;
        border: 1px solid rgba(34,197,94,.4);
    }

    /* ناموفق */
    .status-badge.failed {
        background: rgba(239,68,68,.15);
        color: #ef4444;
        border: 1px solid rgba(239,68,68,.4);
    }

    /* در حال پردازش */
    .status-badge.progress {
        background: rgba(250,204,21,.15);
        color: #facc15;
        border: 1px solid rgba(250,204,21,.4);
    }

    /* یافت نشد */
    .status-badge.notfound {
        background: rgba(107,114,128,.15);
        color: #9ca3af;
        border: 1px solid rgba(107,114,128,.4);
    }

    /* نامشخص */
    .status-badge.unknown {
        background: rgba(168,85,247,.15);
        color: #a855f7;
        border: 1px solid rgba(168,85,247,.4);
    }

/* ======== Dashboard Table Report ======== */
.invoice-table {
    background: linear-gradient(145deg, #1b1b30, #141427);
    border-radius: 18px;
    padding: 20px;
    animation: fadeUp .6s ease forwards;
    margin-top: 35px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .table-header span {
        font-size: 15px;
        font-weight: 500;
    }

.filters button {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .8s ease;
}

    .filters button.active,
    .filters button:hover {
        background: #7c3aed;
        color: #fff;
    }

.invoice-table table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th {
    font-size: 12px;
    font-weight: 400;
    opacity: .6;
    padding: 10px 0;
    text-align: right;
}

.invoice-table td {
    padding: 12px;
    font-size: 13px;
}

.invoice-table tbody tr {
    border-top: 1px solid rgba(255,255,255,.05);
    transition: background .4s ease;
}

    .invoice-table tbody tr:hover {
        background: rgb(255, 255, 255, 0.1);
        transition: background 1.5s ease, box-shadow 1.5s ease, transform 1.5s ease;
    }

.status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}

/* وضعیت‌ها */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--color) 60%, transparent);
    }

    70% {
        box-shadow: 0 0 9px 13px color-mix(in srgb, var(--color) 0%, transparent);
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.status.approved {
    background: #22c55e;
    --color: #22c55e;
    animation: pulse 1.4s ease-in-out infinite;
}

.status.rejected {
    background: #ef4444;
    --color: #ef4444;
    animation: pulse 1.4s ease-in-out infinite;
}

.status.pending {
    background: #facc15;
    --color: #facc15;
    animation: pulse 1.4s ease-in-out infinite;
}

.status.canceled {
    background: #9ca3af;
    --color: #9ca3af;
    animation: pulse 1.4s ease-in-out infinite;
}

.status.edited {
    background: #38bdf8;
    --color: #38bdf8;
    animation: pulse 1.4s ease-in-out infinite;
}

.status.returned {
    background: #a855f7;
    --color: #a855f7;
    animation: pulse 1.4s ease-in-out infinite;
}

.status.unknown {
    background: #f87171;
    --color: #f87171;
    animation: pulse 1.4s ease-in-out infinite;
}

.form-add-company h4, label {
    color: #f5f5f5;
}

/* ================ Css For Column Visibles ========================*/

td th {
    text-align: center !important;
}

/* کانتینر منوی ستون‌ها */
.dt-button-collection {
    background: #1e1e2f;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #2e2e44;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
    direction: rtl;
    min-width: 220px;
}

    /* هر آیتم */
    .dt-button-collection .dt-button {
        background: transparent;
        color: #000;
        border: none;
        width: 100%;
        text-align: right;
        padding: 8px 12px;
        margin-bottom: 4px;
        border-radius: 8px;
        font-size: 14px;
        transition: 0.2s;
    }
        /* هاور */
        .dt-button-collection .dt-button:hover {
            background: #2a2a3f;
            color: #fff;
        }

        /* ستون فعال */
        .dt-button-collection .dt-button.active {
            background: linear-gradient(135deg, #4ade80, #22c55e);
            color: #052e16;
            font-weight: bold;
        }

            /* آیکن چک */
            .dt-button-collection .dt-button.active::before {
                content: "✓";
                margin-left: 8px;
            }

    .dt-button-collection.fixed {
        direction: ltr;
    }

.dt-button.buttons-columnVisibility span {
    color: black !important;
    margin-right: 15px;
    direction: rtl;
}

.dt-button-active {
    color: black !important;
}


/* کدهای طراحی مدال توضیحات کالای استعلام شده در مدال */
.tax-good-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    z-index: 2000;
}

.tax-good-desc {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    z-index: 2001;
}

.tax-good-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

    .tax-good-header span {
        color: black;
    }

.tax-good-body div {
    display: flex;
    margin-bottom: 6px;
}

.tax-good-body span:first-child {
    color: #555;
    width: 30%;
}

.tax-good-body span {
    color: #0e0e0e;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}


.jdp-time select, option {
    color: black !important;
}

.select2-dropdown {
    background-color: #575757 !important;
}

.header-invoice {
    width: 100%;
    min-height: 110px;
    border-radius: 0.7rem;
    background-color: #2c2c2c;
    align-content: center;
    text-wrap: wrap;
}

    .header-invoice label:first-child {
        font-size: 20px;
    }

    .header-invoice input {
        border: 1px solid;
    }

.header-invoice-div {
    border-style: solid;
    border-radius: 0.3rem;
    border-color: white;
    border-width: 1px;
    height: 40px;
    align-content: center;
    margin-left: 8px;
    margin-right: 8px;
    text-wrap: wrap;
}

.goods-div {
    border: 0.8px solid;
    border-radius: 10px;
    padding: 10px 0 10px 0;
    position: relative;
    padding-top: 55px;
}

.remove-item-float {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    z-index: 5;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

    .remove-item-float:hover {
        filter: brightness(85%);
        transform: scale(1.08);
        cursor: pointer;
    }

    .remove-item-float i {
        line-height: 1;
    }

@media (max-width: 576px) {
    .remove-item-float {
        top: 10px;
        left: 10px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .goods-div {
        padding-top: 50px;
    }
}

.form-province {
    color: black;
    padding: 0.375rem 0.75rem;
}

    .form-province option {
        text-align: center;
    }

.csr-div {
    background-color: #101430;
    border-radius: 10px;
    padding: 20px;
}

    .csr-div a {
        color: #22c55e;
    }


/* New Css For SideBar */

:root {
    --background: #9c88ff;
    --navbar-width: 256px;
    --navbar-width-min: 80px;
    --navbar-dark-primary: #18283b;
    --navbar-dark-secondary: #2c3e50;
    --navbar-light-primary: #f5f6fa;
    --navbar-light-secondary: #8392a5;
}

#nav-toggle:checked ~ #nav-header {
    width: calc(var(--navbar-width-min) - 16px);
}

#nav-toggle:checked ~ #nav-content, #nav-toggle:checked ~ #nav-footer {
    width: var(--navbar-width-min);
}

#nav-toggle:checked ~ #nav-header #nav-title {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

#nav-toggle:checked ~ #nav-header label[for=nav-toggle] {
    left: calc(50% - 8px);
    transform: translate(-50%);
}

#nav-toggle:checked ~ #nav-header #nav-toggle-burger {
    background: var(--navbar-light-primary);
}

    #nav-toggle:checked ~ #nav-header #nav-toggle-burger:before, #nav-toggle:checked ~ #nav-header #nav-toggle-burger::after {
        width: 16px;
        background: var(--navbar-light-secondary);
        transform: translate(0, 0) rotate(0deg);
    }

#nav-toggle:checked ~ #nav-content .nav-button span {
    opacity: 0;
    transition: opacity 0.1s;
}

#nav-toggle:checked ~ #nav-content .nav-button .fas {
    min-width: calc(100% - 16px);
}

#nav-toggle:checked ~ #nav-footer #nav-footer-avatar {
    margin-left: 0;
    left: 50%;
    transform: translate(-50%);
}

#nav-toggle:checked ~ #nav-footer #nav-footer-titlebox, #nav-toggle:checked ~ #nav-footer label[for=nav-footer-toggle] {
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

header:has(#nav-toggle:checked) .mobile-open {
    transform: translateX(110%);
    transition: transform 0.8s, opacity 1s;
}

header:has(#nav-toggle:not(:checked)) .mobile-open {
    transition: transform 0.8s, opacity 1s;
    transform: translateX(0);
}

header input {
    display: none;
}

#nav-bar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    background: var(--navbar-dark-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    color: var(--navbar-light-primary);
    font-family: Vazirmatn-FD-Regular;
    overflow: hidden;
    user-select: none;
    z-index: 101;
    direction: ltr;
}

    #nav-bar hr {
        margin: 0;
        position: relative;
        left: 16px;
        width: calc(100% - 32px);
        border: none;
        border-top: solid 1px var(--navbar-dark-secondary);
    }

    #nav-bar a {
        color: inherit;
        text-decoration: inherit;
    }

    #nav-bar input[type=checkbox] {
        display: none;
    }

#nav-header {
    position: relative;
    width: var(--navbar-width);
    left: 16px;
    width: calc(var(--navbar-width) - 16px);
    min-height: 80px;
    background: var(--navbar-dark-primary);
    border-radius: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: width 0.2s;
}

    #nav-header hr {
        position: absolute;
        bottom: 0;
    }

#nav-title {
    font-size: 1.5rem;
    transition: opacity 1s;
}

label[for=nav-toggle] {
    position: absolute;
    right: 30px;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


#nav-toggle-burger {
    position: relative;
    width: 16px;
    height: 2px;
    background: var(--navbar-dark-primary);
    border-radius: 99px;
    transition: background 0.2s;
}

    #nav-toggle-burger:before, #nav-toggle-burger:after {
        content: "";
        position: absolute;
        top: -6px;
        width: 10px;
        height: 2px;
        background: var(--navbar-light-primary);
        border-radius: 99px;
        transform: translate(2px, 8px) rotate(30deg);
        transition: 0.2s;
    }

    #nav-toggle-burger:after {
        top: 6px;
        transform: translate(2px, -8px) rotate(-30deg);
    }

#nav-content {
    margin: -16px 0;
    padding: 16px 30px 0 0;
    position: relative;
    flex: 1;
    width: var(--navbar-width);
    background: var(--navbar-dark-primary);
    box-shadow: 0 0 0 16px var(--navbar-dark-primary);
    direction: rtl;
    overflow-x: hidden;
    transition: width 0.2s;
}

    #nav-content::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    #nav-content::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background-color: #D62929;
    }

    #nav-content::-webkit-scrollbar-button {
        height: 16px;
    }

#nav-content-highlight {
    position: absolute;
    left: 16px;
    top: -70px;
    width: calc(100% - 16px);
    height: 54px;
    background: var(--background);
    background-attachment: fixed;
    border-radius: 16px 0 0 16px;
    transition: top 0.2s;
}

    #nav-content-highlight:before, #nav-content-highlight:after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        box-shadow: 16px 16px var(--background);
    }

    #nav-content-highlight:after {
        top: 100%;
        box-shadow: 16px -16px var(--background);
    }

.nav-button {
    position: relative;
    margin-left: 16px;
    height: 54px;
    display: flex;
    align-items: center;
    color: var(--navbar-light-secondary);
    direction: rtl;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

    .nav-button span {
        transition: opacity 1s;
    }

    .nav-button .fas {
        transition: min-width 0.2s;
    }

    .nav-button:nth-of-type(1):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(1):hover ~ #nav-content-highlight {
            top: 16px;
        }

    .nav-button:nth-of-type(2):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(2):hover ~ #nav-content-highlight {
            top: 70px;
        }

    .nav-button:nth-of-type(3):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(3):hover ~ #nav-content-highlight {
            top: 124px;
        }

    .nav-button:nth-of-type(4):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(4):hover ~ #nav-content-highlight {
            top: 178px;
        }

    .nav-button:nth-of-type(5):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(5):hover ~ #nav-content-highlight {
            top: 232px;
        }

    .nav-button:nth-of-type(6):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(6):hover ~ #nav-content-highlight {
            top: 286px;
        }

    .nav-button:nth-of-type(7):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(7):hover ~ #nav-content-highlight {
            top: 340px;
        }

    .nav-button:nth-of-type(8):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(8):hover ~ #nav-content-highlight {
            top: 394px;
        }

    .nav-button:nth-of-type(9):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(9):hover ~ #nav-content-highlight {
            top: 448px;
        }

    .nav-button:nth-of-type(10):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(10):hover ~ #nav-content-highlight {
            top: 502px;
        }

    .nav-button:nth-of-type(11):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(11):hover ~ #nav-content-highlight {
            top: 556px;
        }

    .nav-button:nth-of-type(12):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(12):hover ~ #nav-content-highlight {
            top: 610px;
        }

    .nav-button:nth-of-type(13):hover {
        color: var(--navbar-dark-primary);
    }

        .nav-button:nth-of-type(13):hover ~ #nav-content-highlight {
            top: 664px;
        }

.nav-button-div {
    direction: rtl;
    min-height: 30px;
    color: white;
    height: 54px;
    align-content: center;
    margin-top: 5px;
}

    .nav-button-div span {
        font-size: 15px;
        margin-right: 5px;
    }

    .nav-button-div svg {
        font-size: 15px;
    }

    .nav-button-div:hover {
        direction: rtl;
        width: 100%;
        height: 54px;
        background: var(--background);
        background-attachment: fixed;
        border-radius: 16px;
        transition: top 0.2s;
        align-content: center;
        cursor: pointer;
    }

#nav-bar .fas {
    min-width: 3rem;
    text-align: center;
}

#nav-footer {
    position: relative;
    width: var(--navbar-width);
    background: var(--navbar-dark-secondary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: width 0.2s, height 0.2s;
}

#nav-footer-heading {
    position: relative;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
}

#nav-footer-avatar {
    position: relative;
    margin: 11px 0 11px 16px;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    transform: translate(0);
    transition: 0.2s;
}

    #nav-footer-avatar img {
        height: 100%;
    }

#nav-footer-titlebox {
    position: relative;
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    transition: opacity 1s;
}

#nav-footer-subtitle {
    color: var(--navbar-light-secondary);
    font-size: 0.6rem;
}

#nav-toggle:not(:checked) ~ #nav-footer-toggle:checked + #nav-footer {
    height: 13%;
    min-height: 54px;
}

    #nav-toggle:not(:checked) ~ #nav-footer-toggle:checked + #nav-footer label[for=nav-footer-toggle] {
        transform: rotate(180deg);
        padding-right: 5px;
    }

#nav-toggle:not(:checked) ~ #nav-bar {
    transform: translateX(0);
    padding-right: 5px;
}

label[for=nav-footer-toggle] {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

#nav-footer-content {
    margin: 0 16px 16px 16px;
    border-top: solid 1px var(--navbar-light-secondary);
    color: var(--navbar-light-secondary);
    font-size: 0.8rem;
}

    #nav-footer-content::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    #nav-footer-content::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background-color: #D62929;
    }

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 90;
    display: none;
}

/* MOBILE */
@media (max-width:428px) {
    #nav-bar {
        width: 100%;
    }

    #nav-header {
        width: 100% !important;
    }

    #nav-content,
    #nav-footer {
        width: 100% !important;
    }

    #addCompanyModal {
        padding: 0;
    }
}

/* Tablet */
@media (max-width:768px) {
    .changer select {
        min-width: 150px;
        width: 50%;
    }
}

/* From Uiverse.io by Cevorob */
.burger {
    position: relative;
    width: 40px !important;
    height: 30px !important;
    background: transparent;
    cursor: pointer;
    display: block;
    top: 15px;
    right: 15px !important;
}

    .burger input {
        display: none;
    }

    .burger span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: #6366f1;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

        .burger span:nth-of-type(1) {
            top: 0px;
            transform-origin: left center;
        }

        .burger span:nth-of-type(2) {
            top: 50%;
            transform: translateY(-50%);
            transform-origin: left center;
        }

        .burger span:nth-of-type(3) {
            top: 100%;
            transform-origin: left center;
            transform: translateY(-100%);
        }



/* Css For Ticket Messages */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #3b0087;
    border-radius: 10px;
    direction: ltr;
}

.chat-row {
    display: flex;
}

    .chat-row.me {
        justify-content: flex-end;
    }

    .chat-row.admin {
        justify-content: flex-start;
    }

.chat-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    font-size: 14px;
}

.chat-row.me .chat-bubble {
    background: #d1ffe0;
    border-bottom-right-radius: 5px;
}

.chat-row.admin .chat-bubble {
    background: #e4d1ff;
    border-bottom-left-radius: 5px;
}

.chat-row.admin .chat-time {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.6;
    text-align: right;
    color: black;
}

.chat-row .chat-text {
    font-size: 15px;
    margin-top: 5px;
    opacity: 1;
    text-align: right;
    color: #21004a;
    direction: rtl;
}

.chat-row.me .chat-time {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.6;
    text-align: left;
    color: black;
}


/* From Uiverse.io by omar49511 */
.container-btn-file {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-style: none;
    padding: 1em 2em;
    border-radius: 0.5em;
    overflow: hidden;
    z-index: 1;
    box-shadow: 4px 8px 10px -3px rgba(0, 0, 0, 0.356);
    transition: all 250ms;
}

    .container-btn-file input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .container-btn-file > svg {
        margin-left: 1em;
    }

    .container-btn-file > i {
        margin-left: 1em;
    }

    .container-btn-file::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0;
        border-radius: 0.5em;
        z-index: -1;
        transition: all 350ms;
    }

    .container-btn-file.excel::before {
        background-color: #469b61;
    }

    .container-btn-file.customer::before {
        background-color: #46629b;
    }

    .container-btn-file.product::before {
        background-color: #989b46;
    }

    .container-btn-file:hover::before {
        width: 100%;
    }

.form-group {
    margin-top: 10px;
}

.temp {
    text-align: end;
    margin-top: 15px;
}

    .temp a:hover {
        color: #904343;
    }

.excel {
    background-color: #307750;
}

.customer {
    background-color: #305277;
}

.product {
    background-color: #727730;
}

#sendAgain {
    cursor: pointer;
}

.profile-avatar {
    position: fixed;
    left: 15px;
    top: 15px;
    border: 2px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    align-content: center;
}

    .profile-avatar:hover {
        background-color: #27405e;
    }

    .profile-avatar button {
        background: none;
        border: none;
    }

    /* وقتی کاربر پیام دیده‑نشده‌ای دارد، این کلاس به div اضافه می‌شود */
    .profile-avatar.has-unseen::after {
        content: "";
        position: absolute;
        width: 8px; /* سایز نقطه */
        height: 8px;
        border-radius: 50%;
        bottom: 0; /* چسبیده به گوشه‌ی پایین راست */
        right: 0;
        background: #ef4444;
        --color: #ef4444;
        animation: pulse 1.4s ease-in-out infinite;
    }


.dropdown-menu {
    background-color: #858484;
}

    .dropdown-menu a {
        position: relative;
        display: block;
        color: #333;
        text-decoration: none;
        padding: 10px 15px;
        z-index: 1;
        transition: color 0.3s ease;
        overflow: hidden;
    }


        .dropdown-menu a::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            bottom: 0;
            width: 100%;
            background: #6c6c6c;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.9s ease;
            z-index: -1;
        }

        .dropdown-menu a:hover {
            color: white;
        }

            .dropdown-menu a:hover::before {
                transform: scaleX(2);
            }

/* کانتینر اصلی برای مرکز کردن کل لیست کارت‌ها */
.centered-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #575757b6;
}

/* ظرف کارت‌ها - حداکثر ارتفاع و اسکرول عمودی */
.cards-container {
    max-width: 500px; /* پهنای مناسب برای کارت‌ها */
    width: 100%;
    max-height: 90vh; /* حداکثر ارتفاع 90% صفحه */
    overflow-y: auto; /* اسکرول عمودی در صورت زیاد شدن کارت‌ها */
    display: flex;
    flex-direction: column;
    gap: 16px; /* فاصله بین کارت‌ها */
    padding: 8px;
}

.tax-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 12px 16px;
    font-family: Vazirmatn;
    font-size: 0.85rem;
    line-height: 1.5;
    border-right: 4px solid #2a7f6e;
    position: relative;
    transition: all 0.2s;
}

    .tax-card:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

.tax-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #1e3c72;
}

.tax-id {
    font-size: 0.7rem;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    color: #2c5282;
}

.tax-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tax-label {
    width: 100px;
    font-weight: 600;
    color: #4a5568;
}

.tax-value {
    flex: 1;
    color: #2d3748;
    word-break: break-word;
}

.desc-value {
    background: #fef9e6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-taxable {
    background: #c6f6d5;
    color: #22543d;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-block;
}

.tax-footer {
    margin-top: 8px;
    font-size: 0.65rem;
    color: #718096;
    text-align: left;
    border-top: 1px solid #edf2f7;
    padding-top: 6px;
}

@media (max-width: 480px) {
    .tax-card {
        max-width: 100%;
    }
}


.btn-invoice {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: all .2s ease;
}

    .btn-invoice:hover {
        filter: brightness(85%);
        transform: scale(1.08);
        cursor: pointer;
    }

    .btn-invoice i {
        line-height: 1;
    }

.dt-layout-row {
    direction: ltr;
}

.dt-layout-table {
    direction: rtl;
}

.dt-input option {
    color: white !important;
}

.dtcc-list-controls button,
.dtcc-list-controls input {
    color: black !important;
}