.w-17 {
    width: 17px;
}

.w-14 {
    width: 14px;
}

.h-16 {
    height: 16px;
}

.h-17 {
    height: 17px;
}

.width-50 {
    width: 50px !important;
}

.width-85 {
    width: 85px !important;
}

.indicate-text {
    font-size: 12px;
    color: red;
}

.form-control.error {
    border-color: red;
    padding: 0.375rem 0.75rem;
}

.image-wrapper.error {
    border-color: red;
    padding: 0.375rem 0.75rem;
}

.error-alert {
    font-size: 11px;
    color: red;
}

.error {
    color: red !important;
}

.budget-form .form-control[readonly] {
    background-color: #fff !important;
}

.budget-form ::placeholder {
    font-size: 12px;
}

.avatar {
    background: #292be9;
    border-radius: 50%;
    color: #e3eaef;
    display: inline-block;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    position: relative;
    vertical-align: middle;
    line-height: 1.28;
    height: 45px;
    width: 45px;
}

.avatar.avatar-sm {
    font-size: 12px;
    height: 30px;
    width: 30px;
}

.avatar img {
    border-radius: 50%;
    height: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

.btn-custom-warning {
    background-color: #292be9 !important;
    color: #fff;
}

.btn-custom-warning:hover {
    color: #fff;
}

.custom-warning-color {
    color: #292be9;
}

.roles-permissions table td {
    color: black;
}

.img-preview {
    margin-top: 4px;
    height: auto;
    width: 100px;
}

.side-bar-logo img {
    height: auto;
}

.folders-files tr a {
    font-size: 18px !important;
}

.gradient-row {
    background: linear-gradient(270deg, #dbe4df 0%, #65e4a6 50%, #ffffff 100%);
}

@media print {
    .table-two thead td {
        padding: 0px !important;
    }
}

.order-form-section label {
    left: 10px;
    white-space: nowrap;
}

.table-form-section .responsive-table,
.party-list-folder-table {
    min-height: unset !important;
}

.custom-dropdown-action .dropdown-menu a {
    padding: 6px 15px !important;
}

.table-title-three h5 {
    font-weight: 600 !important;
}

.loss-profit-custom-color1 {
    background-color: rgba(255, 132, 0, 0.15);
}

.loss-profit-custom-color2 {
    background-color: rgba(255, 181, 101, 1);
    font-weight: bold;
}

.production-wrap {
    padding-right: 60px;
}

.print-wrapper .responsive-table {
    min-height: unset;
}

.print-wrapper .table th,
.print-wrapper .table td {
    white-space: nowrap;
}

.print-wrapper {
    min-height: 700px !important;
}

.table-header h3,
.table-header h4 {
    font-weight: 700;
}

.erp-new-invice .invice-detaisl {
    padding: 20px 0;
}

.commercial-invoice {
    margin-bottom: 30px;
}

.invoice-payment-details {
    margin-top: 40px;
}

.erp-new-invice {
    min-height: 650px !important;
}

.dashboard-card-body strong {
    font-size: 16px;
    font-weight: 400;
    color: #7e7e7e;
}

#monthly-statistics {
    width: 100% !important;
    max-height: 290px !important;
    min-height: 210px;
}

#salesRatio {
    width: 100% !important;
    max-height: 290px !important;
    min-height: 210px;
}

#sales-by-country {
    width: 100% !important;
    max-height: 220px !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #292be9;
}

.nav-link {
    color: #292be9;
}

.role-reset-btn {
    font-weight: bold;
    color: #292be9;
    border: 1px solid #292be9;
    padding: 0.2rem 0.5rem !important;
}

.role-reset-btn:hover {
    color: #fff !important;
    background-color: #292be9;
    border: 1px solid transparent;
}

/* ERP control dashboard */
.erp-control-dashboard .erp-dashboard-shell {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.erp-dashboard-header {
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1f4f63 48%, #0f766e 100%);
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    min-height: 96px;
    padding: 22px 24px;
}

.erp-dashboard-header h4,
.erp-dashboard-header p {
    color: #fff;
    margin: 0;
}

.erp-dashboard-header p {
    color: #dbeafe;
    font-size: 14px;
    margin-top: 6px;
}

.erp-dashboard-date {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    padding: 9px 12px;
    white-space: nowrap;
}

.erp-kpi-card {
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    min-height: 126px;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.erp-kpi-card h6 {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    margin: 12px 0 7px;
}

.erp-kpi-card h4 {
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.erp-kpi-icon {
    align-items: center;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.kpi-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.kpi-blue .erp-kpi-icon {
    background: #2563eb;
}

.kpi-slate {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.kpi-slate .erp-kpi-icon {
    background: #475569;
}

.kpi-green {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.kpi-green .erp-kpi-icon {
    background: #16a34a;
}

.kpi-teal {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.kpi-teal .erp-kpi-icon {
    background: #0f766e;
}

.kpi-amber {
    background: #fffbeb;
    border-color: #fde68a;
}

.kpi-amber .erp-kpi-icon {
    background: #d97706;
}

.kpi-red {
    background: #fef2f2;
    border-color: #fecaca;
}

.kpi-red .erp-kpi-icon {
    background: #dc2626;
}

.erp-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    padding: 14px;
}

.erp-panel-header {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.erp-dashboard-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.erp-dashboard-table tbody tr:hover {
    background: #f8fafc;
}

.erp-status-badge,
.erp-mini-pill,
.erp-shortage {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
    white-space: nowrap;
}

.erp-control-dashboard .badge-success,
.erp-control-dashboard .pill-ok {
    background: #dcfce7;
    color: #166534;
}

.erp-control-dashboard .badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.erp-control-dashboard .badge-progress {
    background: #fef3c7;
    color: #92400e;
}

.erp-control-dashboard .badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.erp-control-dashboard .pill-muted {
    background: #e5e7eb;
    color: #475569;
}

.erp-shortage {
    background: #fee2e2;
    color: #b91c1c;
}

.erp-progress {
    background: #e5e7eb;
    border-radius: 999px;
    height: 7px;
    margin-top: 7px;
    min-width: 92px;
    overflow: hidden;
}

.erp-progress span {
    display: block;
    height: 100%;
}

.erp-control-dashboard .ready-bar {
    background: #0d9488;
}

.procurement-workspace {
    color: #1f2937;
}

.procurement-hero {
    align-items: stretch;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 55%, #7c3aed 100%);
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 20px;
}

.procurement-hero h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.procurement-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    margin: 0;
    max-width: 760px;
}

.procurement-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 280px;
}

.procurement-hero-actions .procurement-tab {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 12px;
}

.procurement-hero-actions .procurement-tab.active,
.procurement-hero-actions .procurement-tab:hover {
    background: #fff;
    color: #1d4ed8;
}

.procurement-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.procurement-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 12px;
    min-height: 92px;
    padding: 15px;
}

.procurement-kpi .icon {
    align-items: center;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex: 0 0 46px;
    font-size: 18px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.procurement-kpi .icon.teal {
    background: #0f766e;
}

.procurement-kpi .icon.blue {
    background: #2563eb;
}

.procurement-kpi .icon.amber {
    background: #d97706;
}

.procurement-kpi .icon.violet {
    background: #7c3aed;
}

.procurement-kpi .label {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.procurement-kpi strong {
    color: #0f172a;
    display: block;
    font-size: 24px;
    line-height: 1.1;
    margin-top: 4px;
}

.procurement-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 18px;
    overflow: hidden;
}

.procurement-panel-header {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 15px 16px;
}

.procurement-panel-header h4 {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.procurement-panel-header span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.procurement-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.procurement-filter-pills a {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 11px;
}

.procurement-filter-pills a.active,
.procurement-filter-pills a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.procurement-table {
    margin-bottom: 0;
}

.procurement-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.procurement-table tbody tr:hover {
    background: #f8fafc;
}

.procurement-doc-title {
    color: #111827;
    display: block;
    font-weight: 900;
    margin-bottom: 4px;
}

.procurement-subtext {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.procurement-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 7px 10px;
    white-space: nowrap;
}

.procurement-badge.pending,
.procurement-badge.draft {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.procurement-badge.approved,
.procurement-badge.released,
.procurement-badge.posted,
.procurement-badge.received {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.procurement-badge.rejected,
.procurement-badge.cancelled {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.procurement-badge.ordered,
.procurement-badge.partial {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.procurement-badge.closed {
    background: #e5e7eb !important;
    color: #475569 !important;
}

.procurement-type-chip {
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #0369a1;
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 9px;
    white-space: nowrap;
}

.procurement-item-stack {
    display: grid;
    gap: 5px;
    min-width: 180px;
}

.procurement-item-line {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    padding: 6px 8px;
}

.procurement-item-line span {
    color: #111827;
    font-size: 12px;
    font-weight: 800;
}

.procurement-item-line small {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.procurement-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
}

.procurement-form-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.procurement-form-section h5 {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 12px;
}

.procurement-form-section label {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.procurement-check-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 42px;
}

.procurement-check-strip label {
    align-items: center;
    display: inline-flex !important;
    gap: 7px;
    margin: 0;
    text-transform: none;
}

.procurement-form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 16px 16px;
}

.procurement-empty {
    color: #64748b;
    padding: 34px 15px;
    text-align: center;
}

@media (max-width: 1199px) {
    .procurement-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .procurement-hero {
        display: block;
    }

    .procurement-hero-actions {
        justify-content: flex-start;
        margin-top: 14px;
        min-width: 0;
    }

    .procurement-summary-grid {
        grid-template-columns: 1fr;
    }

    .procurement-panel-header {
        align-items: flex-start;
        display: block;
    }

    .procurement-filter-pills {
        margin-top: 12px;
    }

    .procurement-form-actions {
        display: block;
    }

    .procurement-form-actions .theme-btn {
        margin-top: 8px;
        width: 100%;
    }
}

.erp-control-dashboard .ship-bar {
    background: #2563eb;
}

.erp-wip-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.erp-stage-card {
    border-left: 5px solid #94a3b8;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    min-height: 86px;
    padding: 14px;
}

.erp-stage-card span {
    color: #475569;
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.erp-stage-card strong {
    color: #0f172a;
    display: block;
    font-size: 22px;
    margin-top: 7px;
}

.erp-control-dashboard .stage-cutting {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.erp-control-dashboard .stage-print {
    background: #faf5ff;
    border-left-color: #9333ea;
}

.erp-control-dashboard .stage-sewing {
    background: #fff7ed;
    border-left-color: #ea580c;
}

.erp-control-dashboard .stage-ready {
    background: #ecfdf5;
    border-left-color: #16a34a;
}

.erp-control-dashboard .stage-neutral {
    background: #f8fafc;
    border-left-color: #64748b;
}

@media (max-width: 767px) {
    .erp-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .erp-dashboard-date {
        white-space: normal;
    }
}
