html,
body {
    height: 100%;
    margin: 0;
}

body {
    overflow-y: auto;
}

.nexa-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--nexa-bg);
}

.nexa-header {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--nexa-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nexa-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
}

.nexa-header-logo {
    height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.nexa-logo {
    width: 42px;
    height: 42px;
    max-width: 150px;
    object-fit: contain;
    border-radius: 14px;
    background: var(--nexa-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    background-image: url(../images/logo.png);
}

.nexa-brand-title {
    font-weight: 800;
    font-size: 17px;
    color: var(--nexa-dark);
}

.nexa-brand-subtitle {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.nexa-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
}

.nexa-header-center {
    order: 2;
    margin-inline: auto;
}

.nexa-header-chip {
    background: #f6f6f6;
    border: 1px solid var(--nexa-border);
    border-radius: 12px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.nexa-header-chip span {
    color: #777;
}

.nexa-header-chip strong {
    color: var(--nexa-dark);
    font-weight: 700;
}

.nexa-header-time {
    min-width: 62px;
    text-align: center;
    color: #0f766e !important;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 800;
    direction: ltr;
}

.nexa-logout {
    text-decoration: none;
    color: var(--nexa-danger);
    border: 2px solid var(--nexa-danger);
    border-radius: 12px;
    padding: 8px 13px;
    font-weight: 700;
}

.nexa-shell-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.nexa-menu-divider {
    height: 1px;
    background: var(--nexa-border);
    margin: 8px 6px;
}

.nexa-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 72px);
}

.nexa-footer {
    height: 36px;
    background: #fff;
    border-top: 1px solid var(--nexa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    font-size: 12px;
    color: #777;
    padding-top: 10px;
}

.nexa-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(199, 161, 58, 0.18), transparent 34%), var(--nexa-bg);
    padding: 24px;
}

.nexa-login-card {
    width: 380px;
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.nexa-login-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--nexa-gold);
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.nexa-login-card h1 {
    margin: 0;
    font-size: 24px;
    color: var(--nexa-dark);
}

.nexa-login-card p {
    margin: 6px 0 22px;
    color: #777;
}

.nexa-login-card label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 700;
    color: var(--nexa-dark);
}

.nexa-login-button {
    width: 100%;
    height: 42px;
    margin-top: 20px;
    border: none;
    border-radius: 14px;
    background: var(--nexa-gold);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.nexa-login-error {
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: var(--nexa-danger);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 16px 0;
    font-weight: 700;
}

.nexa-page-card {
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 18px;
    padding: 24px;
}

.nexa-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nexa-alert {
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
}

.nexa-alert-success {
    background: #edf7ee;
    border: 1px solid #c9e8cc;
    color: var(--nexa-success);
}

.nexa-alert-danger {
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: var(--nexa-danger);
}

.nexa-price-row,
.nexa-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nexa-price-card,
.nexa-list-card {
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.nexa-buy-price {
    border-right: 5px solid var(--nexa-success);
}

.nexa-sell-price {
    border-right: 5px solid var(--nexa-danger);
}

.nexa-price-title {
    font-weight: 800;
    color: #777;
}

.nexa-price-value {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 900;
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.nexa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.nexa-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--nexa-dark);
}

.nexa-card-badge {
    border-radius: 999px;
    padding: 5px 12px;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.nexa-badge-success {
    background: var(--nexa-success);
}

.nexa-badge-danger {
    background: var(--nexa-danger);
}

.nexa-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nexa-form-grid label {
    font-weight: 800;
    margin-bottom: 7px;
    color: var(--nexa-dark);
}

.nexa-readonly-number {
    min-height: 38px;
    border: 1px solid var(--nexa-border);
    border-radius: 10px;
    background: #fafafa;
    padding: 8px 12px;
    direction: ltr;
    text-align: left;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.nexa-card-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
}

.nexa-table-wrap {
    overflow: auto;
}

.nexa-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.nexa-table th {
    background: #fafafa;
    color: #666;
    font-weight: 900;
    padding: 10px;
    border-bottom: 1px solid var(--nexa-border);
    text-align: right;
    white-space: nowrap;
}

.nexa-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    text-align: right;
    white-space: nowrap;
}

.nexa-table tbody tr:hover {
    background: #fffaf0;
}

@media (max-width: 1100px) {
    .nexa-price-row,
    .nexa-dashboard-row {
        grid-template-columns: 1fr;
    }
}

.nexa-grid-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nexa-inline-panel {
    background: #fafafa;
    border: 1px solid var(--nexa-border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
}

.nexa-inline-panel label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.nexa-inline-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.nexa-quick-quantity-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.nexa-quick-quantity {
    border: 1px solid var(--nexa-border);
    background: #fff;
    border-radius: 999px;
    height: 36px;
    min-width: 64px;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
}

.nexa-quick-quantity:hover {
    background: #fff7df;
    border-color: var(--nexa-gold);
}

.nexa-order-preview {
    margin-top: 18px;
    background: #fafafa;
    border: 1px solid var(--nexa-border);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 900;
}

.nexa-order-preview strong {
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.nexa-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.nexa-status-warning {
    background: #fff7df;
    color: #9a6500;
    border: 1px solid #f59f00;
}

.nexa-status-success {
    background: #e8f8ee;
    color: #0f7f3a;
    border: 1px solid #22a559;
}

.nexa-status-danger {
    background: #fdecec;
    color: #b42323;
    border: 1px solid #d64545;
}

.nexa-status-info {
    background: #eaf4ff;
    color: #1c64f2;
    border: 1px solid #1c64f2;
}

.nexa-status-dark {
    background: #f1f3f5;
    color: #343a40;
    border: 1px solid #adb5bd;
}

.nexa-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fafafa;
    border: 1px solid var(--nexa-border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.nexa-detail-header div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nexa-detail-header span,
.nexa-detail-grid span,
.nexa-detail-note span {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.nexa-detail-header strong {
    font-size: 22px;
    font-weight: 900;
}

.nexa-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 12px;
}

.nexa-detail-grid div {
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nexa-detail-grid strong {
    font-size: 14px;
    font-weight: 900;
}

.nexa-detail-note {
    margin-top: 14px;
    background: #fafafa;
    border: 1px solid var(--nexa-border);
    border-radius: 16px;
    padding: 14px;
}

.nexa-detail-note p {
    margin: 8px 0 0;
    line-height: 1.9;
}

.nexa-detail-note-danger {
    background: #fff0f0;
    border-color: #ffd0d0;
}

.nexa-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.nexa-ltr {
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.nexa-empty-state {
    background: #fafafa;
    border: 1px dashed var(--nexa-border);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    color: #777;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .nexa-detail-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }
}

@media (max-width: 700px) {
    .nexa-detail-grid {
        grid-template-columns: 1fr;
    }
}

.nexa-print-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.nexa-print-page {
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 18px;
    padding: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.nexa-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--nexa-dark);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.nexa-print-header h1 {
    margin: 0;
    font-size: 28px;
    color: var(--nexa-dark);
}

.nexa-print-header span,
.nexa-print-section span,
.nexa-print-number span,
.nexa-print-note span,
.nexa-print-footer span {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.nexa-print-number {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.nexa-print-number strong {
    font-size: 20px;
    direction: ltr;
}

.nexa-print-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.nexa-print-section div {
    border: 1px solid var(--nexa-border);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nexa-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.nexa-print-table th,
.nexa-print-table td {
    border: 1px solid var(--nexa-border);
    padding: 10px;
    text-align: right;
}

.nexa-print-table th {
    background: #fafafa;
    font-weight: 900;
}

.nexa-print-note {
    margin-top: 18px;
    border: 1px solid var(--nexa-border);
    border-radius: 12px;
    padding: 12px;
}

.nexa-print-note p {
    margin: 8px 0 0;
}

.nexa-print-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.nexa-print-footer div div {
    height: 48px;
    border-bottom: 1px solid var(--nexa-dark);
}

@media print {
    .nexa-header,
    .nexa-footer,
    .nexa-print-toolbar {
        display: none !important;
    }

    .nexa-main {
        padding: 0 !important;
    }

    .nexa-print-page {
        border: none;
        border-radius: 0;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

.nexa-grid-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: white;
}

.nexa-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fafafa;
    border: 1px solid var(--nexa-border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
}

.nexa-list-search {
    min-width: 280px;
    flex: 1;
}

.nexa-list-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nexa-filter-button {
    border: 1px solid var(--nexa-border);
    background: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 900;
    cursor: pointer;
}

.nexa-filter-button.active {
    background: var(--nexa-gold);
    border-color: var(--nexa-gold);
    color: #fff;
}

.nexa-list-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.nexa-list-summary div {
    border: 1px solid var(--nexa-border);
    border-radius: 16px;
    background: #fafafa;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nexa-list-summary span {
    color: #777;
    font-weight: 800;
}

.nexa-list-summary strong {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    font-weight: 900;
}

@media (max-width: 800px) {
    .nexa-list-toolbar,
    .nexa-list-summary {
        grid-template-columns: 1fr;
    }

    .nexa-list-toolbar {
        display: grid;
    }
}

.nexa-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.nexa-kpi-card {
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.nexa-kpi-card span {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.nexa-kpi-card strong {
    font-size: 16px;
    font-weight: 900;
    direction: ltr;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
    .nexa-kpi-row {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 700px) {
    .nexa-kpi-row {
        grid-template-columns: 1fr;
    }
}

html,
body,
button,
input,
textarea,
select,
.dxbl,
.dxbl * {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.nexa-grid-number,
.nexa-kpi-card strong {
    font-variant-numeric: tabular-nums;
}

.dxbl-grid {
    direction: ltr;
}

.dxbl-grid table,
.dxbl-grid td,
.dxbl-grid th,
.dxbl-grid .dxbl-text {
    direction: rtl;
    text-align: right;
}

.nexa-grid-container {
    overflow-x: auto;
}

.nexa-trade-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 980px !important;
    margin-inline: auto !important;
}

.nexa-trade-card {
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nexa-trade-buy {
    background: linear-gradient(180deg, #f1fbf5 0%, #ffffff 100%);
    border: 2px solid #22a559;
}

.nexa-trade-sell {
    background: linear-gradient(180deg, #fff2f2 0%, #ffffff 100%);
    border: 2px solid #d64545;
}

.nexa-trade-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nexa-trade-head span {
    font-size: 14px;
    font-weight: 900;
    color: #666;
}

.nexa-trade-head strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    font-weight: 950;
    direction: ltr;
}

.nexa-trade-buy .nexa-trade-head strong {
    color: #0f7f3a;
}

.nexa-trade-sell .nexa-trade-head strong {
    color: #b42323;
}

.nexa-trade-head b {
    border-radius: 999px;
    padding: 9px 18px;
    color: #fff;
    font-weight: 950;
}

.nexa-trade-head button {
    border-radius: 999px;
    padding: 9px 18px;
    color: #fff;
    font-weight: 950;
}

.nexa-trade-buy .nexa-trade-head b {
    background: #16833a;
}

.nexa-trade-sell .nexa-trade-head b {
    background: #c92a2a;
}

.nexa-trade-buy .nexa-trade-head button {
    background: #16833a;
}

.nexa-trade-sell .nexa-trade-head button {
    background: #c92a2a;
}

.nexa-trade-form {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: center;
}

.nexa-trade-form label {
    margin: 0;
    font-weight: 900;
    color: #333;
}

.nexa-trade-total {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 950;
    direction: ltr;
}

.nexa-trade-card .nexa-action-button,
.nexa-trade-card button {
    width: 100%;
    min-height: 46px;
    font-weight: 950;
    font-size: 15px;
}

@media (max-width: 1000px) {
    .nexa-trade-board {
        grid-template-columns: 1fr;
    }
}
/* DevExpress Grid RTL horizontal scroll fix */
.nexa-dashboard-grid,
.nexa-dashboard-grid .dxbl-grid {
    direction: ltr;
}

.nexa-dashboard-grid table,
.nexa-dashboard-grid th,
.nexa-dashboard-grid td,
.nexa-dashboard-grid .dxbl-text {
    direction: rtl;
    text-align: right;
}

.nexa-grid-number {
    direction: ltr !important;
    text-align: left !important;
    font-variant-numeric: tabular-nums;
}

/* validation */
.nexa-invalid,
.nexa-invalid input,
.nexa-invalid .dxbl-text-edit,
.nexa-invalid .dxbl-spin-edit {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12) !important;
}

.nexa-field-error {
    color: #c92a2a;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

/* compact operation buttons */
.nexa-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 16px;
    padding: 10px;
}

.nexa-icon-action {
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    font-weight: 900;
}

.nexa-action-button {
    border-radius: 12px !important;
    font-weight: 900 !important;
    min-height: 38px;
    margin: 5px;
}

.nexa-btn-success {
    background: #16833a !important;
    color: #fff !important;
}

.nexa-btn-danger {
    background: #c92a2a !important;
    color: #fff !important;
}

.nexa-btn-warning {
    background: #f59f00 !important;
    color: #111 !important;
}

.nexa-btn-secondary {
    background: #f1f3f5 !important;
    color: #222 !important;
}

.nexa-btn-primary,
.nexa-btn-add,
.nexa-btn-edit,
.nexa-btn-view {
    background: #1c64f2 !important;
    color: #fff !important;
}

.nexa-field-invalid,
.nexa-field-invalid input,
.nexa-field-invalid .dxbl-text-edit,
.nexa-field-invalid .dxbl-spin-edit,
.nexa-field-invalid .dxbl-combobox,
.nexa-field-invalid .dxbl-edit {
    border-color: #c92a2a !important;
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.14) !important;
}

.nexa-validation-text {
    color: #c92a2a;
    font-size: 12px;
    font-weight: 900;
    margin-top: 4px;
}

html,
body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body {
    margin: 0;
}

.nexa-shell {
    min-height: 100vh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

.nexa-shell-body {
    flex: 1 0 auto !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
    min-height: 0 !important;
}

.nexa-main {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100vh - 140px) !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    padding: 20px !important;
}

.nexa-page-card,
.nexa-dashboard-grid,
.dxbl-grid {
    max-height: none !important;
}

.nexa-footer,
footer {
    flex-shrink: 0 !important;
    display: block !important;
}

html,
body {
    height: 100% !important;
    overflow: hidden !important;
}

.nexa-shell {
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.nexa-header {
    direction: rtl;
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.nexa-shell-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    overflow: hidden !important;
}

.nexa-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
}

.nexa-footer,
footer {
    flex: 0 0 auto !important;
}

.nexa-side-menu {
    --menu-expanded: 260px;
    --menu-collapsed: 78px;
    width: var(--menu-expanded) !important;
    flex: 0 0 var(--menu-expanded) !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transition:
        width 0.18s ease,
        flex-basis 0.18s ease;
}

.nexa-side-menu.is-collapsed {
    width: var(--menu-collapsed) !important;
    flex: 0 0 var(--menu-collapsed) !important;
}

.nexa-menu-toggle {
    width: 44px;
    height: 44px;
    margin: 10px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 950;
    background: rgba(255, 255, 255, 0.18);
}

.nexa-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 54px;
    padding: 10px 16px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    border-radius: 16px;
    margin: 0px;
}

.nexa-menu-item.active {
    background: #d1aa34 !important;
    color: #fff !important;
}

.nexa-menu-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    text-align: center;
    font-size: 23px;
    line-height: 1;
}

.nexa-menu-text {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nexa-side-menu.is-collapsed .nexa-menu-item {
    justify-content: center !important;
    padding: 10px 0 !important;
    margin: 0px;
    gap: 0 !important;
}

.nexa-side-menu.is-collapsed .nexa-menu-icon {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    font-size: 27px;
}

/* Responsive */
@media (max-width: 900px) {
    .nexa-side-menu {
        width: var(--menu-collapsed) !important;
        flex: 0 0 var(--menu-collapsed) !important;
    }

    .nexa-side-menu .nexa-menu-item {
        justify-content: center !important;
        padding: 10px 0 !important;
        margin: 5px 9px;
        gap: 0 !important;
    }

    .nexa-side-menu .nexa-menu-icon {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        font-size: 27px;
    }

    .nexa-side-menu .nexa-menu-text {
        display: none !important;
    }
}

.nexa-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.nexa-kpi-card {
    background: #fff;
    border: 1px solid var(--nexa-border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.nexa-kpi-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #d1aa34;
}

.nexa-kpi-card span {
    display: block;
    color: #777;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.nexa-kpi-card strong {
    display: block;
    font-size: 26px;
    font-weight: 950;
    direction: ltr;
    text-align: right;
}

.nexa-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-weight: 800;
    font-size: 12px;
}

@media (max-width: 1300px) {
    .nexa-kpi-row {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 700px) {
    .nexa-kpi-row {
        grid-template-columns: 1fr;
    }
}

.nexa-menu-dashboard .nexa-menu-icon {
    color: #2563eb;
}

.nexa-menu-order .nexa-menu-icon {
    color: #16a34a;
}

.nexa-menu-orders .nexa-menu-icon {
    color: #0891b2;
}

.nexa-menu-supply .nexa-menu-icon {
    color: #7c3aed;
}

.nexa-menu-delivery .nexa-menu-icon {
    color: #ea580c;
}

.nexa-menu-bank .nexa-menu-icon {
    color: #15803d;
}

.nexa-menu-products .nexa-menu-icon {
    color: #0ea5e9;
}

.nexa-menu-price .nexa-menu-icon {
    color: #d4a017;
}

.nexa-menu-org .nexa-menu-icon {
    color: #475569;
}

.nexa-menu-users .nexa-menu-icon {
    color: #8b5cf6;
}

.nexa-menu-roles .nexa-menu-icon {
    color: #dc2626;
}

.nexa-menu-audit .nexa-menu-icon {
    color: #64748b;
}

.nexa-menu-item {
    color: #263238 !important;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.nexa-menu-item:hover {
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.nexa-menu-item:hover i {
    transform: scale(1.16);
}

.nexa-menu-item.active {
    background: linear-gradient(90deg, #fff8e8, #ffffff) !important;
    border-right: 5px solid #d4a017;
    color: #222 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.nexa-menu-item.active i {
    transform: scale(1.16);
}

.dxbl-grid th,
.dxbl-grid td {
    border-inline-start: 1px solid #ececec !important;
}

.dxbl-grid th:last-child,
.dxbl-grid td:last-child {
    border-inline-end: 1px solid #ececec !important;
}

.nexa-grid-actions .nexa-action-button {
    min-height: 30px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

.nexa-auth-main {
    height: calc(100vh - 100px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
}

.nexa-login-page {
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.nexa-login-card {
    margin: 0 !important;
}

.nexa-kpi-row {
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.nexa-kpi-card {
    padding: 10px 12px !important;
    border-radius: 16px !important;
    gap: 4px !important;
}

.nexa-kpi-card span {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}

.nexa-kpi-card strong {
    font-size: 20px !important;
}

.nexa-kpi-card small {
    margin-top: 2px !important;
    font-size: 11px !important;
}

.nexa-price-online {
    color: #16833a;
    font-weight: 900;
}

.nexa-price-offline {
    color: #c92a2a;
    font-weight: 900;
}
