html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
}

* {
    box-sizing: border-box;
}

.app {
    min-height: 100vh;
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-bottom: 3px solid #000;
    background: #fff;
    position: relative;
}

.topbar .logo {
    position: absolute;
    left: 16px;
    font-weight: bold;
    font-size: 20px;
}

.topbar .title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dispatch-body {
    display: grid;
    grid-template-columns: minmax(310px, 380px) 1fr;
    gap: 24px;
    padding: 22px;
    flex: 1;
    min-height: 0;
}

.dispatch-form {
    border: 2px solid #000;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 10px;
}

.row label {
    font-weight: 600;
}

.row input {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 5px 8px;
}

.loading-btn {
    margin-top: 4px;
    align-self: flex-start;
    height: 35px;
    min-width: 120px;
    border: 1px solid #000;
    background: #eaeaea;
    font-weight: 600;
    cursor: pointer;
}

.transfer-area {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 58px minmax(260px, 1fr);
    align-items: stretch;
    gap: 14px;
    min-height: 0;
}

.list-panel {
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.list-panel h3 {
    margin: 0;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #000;
    font-size: 16px;
}

.list-box {
    padding: 8px;
    flex: 1;
    min-height: 0;
}

.list-box select {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 1px solid #000;
}

.arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.arrows button {
    width: 100%;
    height: 34px;
    border: 1px solid #000;
    background: #efefef;
    font-weight: 700;
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px 24px;
    border-top: 2px solid #000;
}

.actions button {
    width: 110px;
    height: 35px;
    border: 1px solid #000;
    background: #eaeaea;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .dispatch-body {
        grid-template-columns: 1fr;
    }

    .transfer-area {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .arrows {
        flex-direction: row;
        justify-content: center;
    }

    .arrows button {
        width: 90px;
    }

    .list-box select {
        min-height: 220px;
    }
}

.back-arrow{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    font-size:22px;
    text-decoration:none;
    color:black;
    font-weight:bold;
}
.actions button:disabled,
.loading-btn:disabled,
.arrows button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dispatch-find-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.dispatch-find-popup {
    width: min(460px, 92vw);
    background: #fff;
    border: 2px solid #000;
    padding: 16px;
}

.dispatch-find-popup h3 {
    margin: 0 0 14px;
}

.find-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.find-row input,
.find-row select {
    width: 100%;
    border: 1px solid #000;
    padding: 6px;
}

.find-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.find-actions button {
    min-width: 90px;
    height: 34px;
    border: 1px solid #000;
    background: #ececec;
    cursor: pointer;
}