﻿.order-create-page {
    height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px;
    padding-bottom: 90px;
}

.create-actions {
    margin-top: 18px;
    margin-bottom: 70px;
}

.stock-search-box {
    position: relative;
    z-index: 50;
}

#stockList {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    background: #07111f;
    border: 1px solid rgba(96,165,250,0.45);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
    padding: 8px;
}

    #stockList:empty {
        display: none;
    }

    #stockList .dropdown-item {
        padding: 12px 14px;
        border-radius: 14px;
        color: #dbeafe;
        cursor: pointer;
        border-bottom: 0;
    }

        #stockList .dropdown-item:hover {
            background: rgba(59,130,246,0.22);
        }

.create-lines-wrap {
    max-height: 340px;
    overflow: auto;
}

    .create-lines-wrap .data-table {
        table-layout: fixed;
        min-width: 1250px;
    }

    .create-lines-wrap th:nth-child(1),
    .create-lines-wrap td:nth-child(1) {
        width: 55px !important;
    }

    .create-lines-wrap th:nth-child(2),
    .create-lines-wrap td:nth-child(2) {
        width: 150px !important;
    }

    .create-lines-wrap th:nth-child(3),
    .create-lines-wrap td:nth-child(3) {
        width: 320px !important;
    }

    .create-lines-wrap th:nth-child(4),
    .create-lines-wrap td:nth-child(4) {
        width: 120px !important;
    }

        .create-lines-wrap td:nth-child(4) input {
            width: 90px !important;
        }

    .create-lines-wrap th:nth-child(5),
    .create-lines-wrap td:nth-child(5) {
        width: 70px !important;
        text-align: center;
    }

    .create-lines-wrap th:nth-child(6),
    .create-lines-wrap td:nth-child(6) {
        width: 150px !important;
    }

        .create-lines-wrap td:nth-child(6) input {
            width: 100px !important;
        }

    .create-lines-wrap th:nth-child(7),
    .create-lines-wrap td:nth-child(7) {
        width: 160px !important;
    }

    .create-lines-wrap th:nth-child(8),
    .create-lines-wrap td:nth-child(8) {
        width: 220px !important;
    }

    .create-lines-wrap th:nth-child(9),
    .create-lines-wrap td:nth-child(9) {
        width: 90px !important;
        text-align: center;
    }

    .create-lines-wrap th:last-child,
    .create-lines-wrap td:last-child {
        position: sticky;
        right: 0;
        background: #0f172a;
        z-index: 3;
        width: 90px;
    }

    .create-lines-wrap td:nth-child(3) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .create-lines-wrap td:nth-child(3):hover {
            white-space: normal;
            overflow: visible;
            background: rgba(59,130,246,0.12);
            position: relative;
            z-index: 5;
        }

.line-input {
    width: 100px;
    padding: 8px 10px;
}

.order-total-box {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(59,130,246,0.08);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #c7d2fe;
}

.file-name-text {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testmode-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
}

#btnBackOrders {
    background: #1e293b;
    color: #e5e7eb;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

    #btnBackOrders:hover {
        background: #334155;
        border-color: #38bdf8;
    }

.profit-mini {
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15,23,42,0.75);
    font-size: 12px;
}

.profit-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profit-line {
    margin-top: 4px;
    color: #cbd5e1;
}

    .profit-line b {
        color: #f8fafc;
    }

.profit-ok {
    border-color: rgba(34,197,94,0.35);
}

.profit-low {
    border-color: rgba(250,204,21,0.35);
}

.profit-loss {
    border-color: rgba(239,68,68,0.35);
}