/* ============================================================
   DISPATCH TOOLBAR
   ============================================================ */

.gtr-dispatch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 16px;
}


.gtr-dispatch-filters {
    display: flex;
    align-items: center;

    gap: 6px;

    overflow-x: auto;

    padding-bottom: 3px;
}


.gtr-dispatch-filters button {
    flex: 0 0 auto;

    padding: 7px 10px;

    border: 1px solid #2b313b;
    border-radius: 6px;

    background: #15181e;

    color: #778293;

    font-size: 8px;
    font-weight: 600;

    cursor: pointer;
}


.gtr-dispatch-filters button:hover {
    background: #1b2028;
}


.gtr-dispatch-filters button.active {
    border-color: #3d5f94;

    background: #1c2a40;

    color: #9ebbe7;
}


.gtr-search-clear {
    border: 0;

    background: transparent;

    color: #6f7988;

    font-size: 17px;

    cursor: pointer;
}


/* ============================================================
   TABLE
   ============================================================ */

.gtr-dispatch-table-wrap {
    overflow-x: auto;

    background: #15181e;

    border: 1px solid #252a33;
    border-radius: 10px;
}


.gtr-dispatch-table {
    width: 100%;

    min-width: 1150px;

    border-collapse: collapse;
}


.gtr-dispatch-table th {
    padding: 10px 12px;

    background: #11141a;

    border-bottom: 1px solid #282d36;

    color: #606b7b;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-align: left;
    text-transform: uppercase;
}


.gtr-dispatch-table td {
    padding: 11px 12px;

    border-bottom: 1px solid #222730;

    color: #8994a4;

    font-size: 9px;

    vertical-align: middle;
}


.gtr-dispatch-table tbody tr {
    cursor: pointer;

    transition: background 0.15s ease;
}


.gtr-dispatch-table tbody tr:hover {
    background: #181d24;
}


.gtr-dispatch-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   CELL
   ============================================================ */

.gtr-dispatch-number,
.gtr-dispatch-cell {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.gtr-dispatch-number strong {
    color: #9cb6df;

    font-size: 9px;
}


.gtr-dispatch-number span,
.gtr-dispatch-cell span {
    color: #606b7b;

    font-size: 8px;
}


.gtr-dispatch-cell strong {
    color: #d5dae1;

    font-size: 9px;
    font-weight: 500;
}


/* ============================================================
   ROUTE
   ============================================================ */

.gtr-dispatch-route {
    display: flex;
    align-items: center;

    gap: 6px;

    max-width: 200px;
}


.gtr-dispatch-route span {
    max-width: 80px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.gtr-dispatch-route .pickup {
    color: #8ca4ca;
}


.gtr-dispatch-route i {
    color: #4e5969;

    font-style: normal;
}


/* ============================================================
   STATUS
   ============================================================ */

.gtr-dispatch-status {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 5px;

    font-size: 7px;
    font-weight: 700;

    white-space: nowrap;
}


.gtr-dispatch-status.status-draft {
    background: rgba(130, 140, 155, 0.12);
    color: #8d97a5;
}


.gtr-dispatch-status.status-assigned {
    background: rgba(69, 113, 183, 0.14);
    color: #82a7df;
}


.gtr-dispatch-status.status-accepted {
    background: rgba(57, 134, 186, 0.14);
    color: #73afd5;
}


.gtr-dispatch-status.status-transit_to_pickup,
.gtr-dispatch-status.status-in_delivery {
    background: rgba(220, 157, 45, 0.13);
    color: #d3a34d;
}


.gtr-dispatch-status.status-delivered {
    background: rgba(52, 168, 83, 0.13);
    color: #65b879;
}


.gtr-dispatch-status.status-cancelled {
    background: rgba(205, 65, 65, 0.13);
    color: #d27070;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.gtr-dispatch-actions {
    display: flex;

    gap: 5px;
}


.gtr-dispatch-actions button {
    padding: 5px 7px;

    border: 1px solid #303641;
    border-radius: 5px;

    background: #1b2028;

    color: #8795aa;

    font-size: 8px;

    cursor: pointer;
}


/* ============================================================
   MOBILE DISPATCH
   ============================================================ */

.gtr-dispatch-mobile {
    display: none;
}


.gtr-dispatch-card {
    overflow: hidden;

    background: #15181e;

    border: 1px solid #252a33;
    border-radius: 10px;
}


.gtr-dispatch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 12px 14px;

    border-bottom: 1px solid #252a33;
}


.gtr-dispatch-card-header > div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.gtr-dispatch-card-header strong {
    color: #9db6dd;

    font-size: 10px;
}


.gtr-dispatch-card-header > div span {
    color: #657080;

    font-size: 8px;
}


.gtr-dispatch-card-customer {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 12px 14px;
}


.gtr-dispatch-card-customer > span,
.gtr-dispatch-mobile-route span,
.gtr-dispatch-card-grid span,
.gtr-dispatch-assignment span {
    color: #616c7c;

    font-size: 7px;

    text-transform: uppercase;
}


.gtr-dispatch-card-customer strong {
    color: #dce0e6;

    font-size: 11px;
}


.gtr-dispatch-card-customer small {
    color: #7c8797;

    font-size: 8px;
}


/* ROUTE */

.gtr-dispatch-mobile-route {
    margin: 0 14px 12px;

    padding: 10px;

    background: #11141a;

    border: 1px solid #242932;
    border-radius: 7px;
}


.gtr-dispatch-mobile-route > div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.gtr-dispatch-mobile-route strong {
    color: #aeb6c2;

    font-size: 9px;
}


.gtr-dispatch-mobile-route i {
    display: block;

    margin: 5px 0;

    color: #4e5968;

    font-style: normal;
}


/* INFO GRID */

.gtr-dispatch-card-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    margin: 0 14px 12px;

    overflow: hidden;

    background: #252a32;

    border: 1px solid #252a32;
    border-radius: 7px;
}


.gtr-dispatch-card-grid > div {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 9px;

    background: #11141a;
}


.gtr-dispatch-card-grid strong {
    color: #c7cdd5;

    font-size: 9px;
}


/* ASSIGNMENT */

.gtr-dispatch-assignment {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin: 0 14px 12px;

    padding: 10px;

    background: #181d24;

    border-radius: 7px;
}


.gtr-dispatch-assignment > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.gtr-dispatch-assignment strong {
    color: #b7c0cc;

    font-size: 8px;
}


/* FOOTER */

.gtr-dispatch-card-footer {
    display: flex;
    justify-content: flex-end;

    gap: 7px;

    padding: 9px 14px;

    border-top: 1px solid #252a33;
}


.gtr-dispatch-card-footer button {
    padding: 6px 8px;

    border: 0;

    background: transparent;

    color: #89a5d2;

    font-size: 8px;
    font-weight: 600;

    cursor: pointer;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.gtr-dispatch-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 16px;
}


.gtr-dispatch-pagination span {
    color: #717c8c;

    font-size: 9px;
}


.gtr-dispatch-pagination button {
    padding: 6px 10px;

    background: #171b22;

    border: 1px solid #2c323c;
    border-radius: 6px;

    color: #8793a5;

    font-size: 8px;

    cursor: pointer;
}


.gtr-dispatch-pagination button:disabled {
    opacity: 0.4;

    cursor: default;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    .gtr-dispatch-toolbar {
        align-items: stretch;
        flex-direction: column;
    }


    .gtr-dispatch-toolbar .gtr-master-search {
        width: 100%;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .gtr-dispatch-table-wrap {
        display: none;
    }


    .gtr-dispatch-mobile {
        display: flex;
        flex-direction: column;

        gap: 10px;
    }


    .gtr-dispatch-filters {
        width: 100%;
    }


    .gtr-dispatch-card {
        cursor: pointer;
    }

}



/* ============================================================
   DISPATCH FORM
   ============================================================ */

.gtr-dispatch-form-container {
    max-width: 1180px;
}


.gtr-dispatch-form-section {
    margin-bottom: 16px;
    padding: 18px;

    background: #15181e;

    border: 1px solid #252a33;
    border-radius: 10px;
}


.gtr-dispatch-section-heading {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 17px;
    padding-bottom: 13px;

    border-bottom: 1px solid #252a33;
}


.gtr-dispatch-section-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border-radius: 7px;

    background: #1d2b40;

    color: #8caade;

    font-size: 9px;
    font-weight: 700;
}


.gtr-dispatch-section-heading h2 {
    margin: 0 0 2px;

    color: #d9dde4;

    font-size: 12px;
    font-weight: 600;
}


.gtr-dispatch-section-heading p {
    margin: 0;

    color: #687383;

    font-size: 8px;
}


/* ============================================================
   FORM FIELDS
   ============================================================ */

.gtr-dispatch-form-section
.gtr-master-field label {
    display: block;

    margin-bottom: 6px;

    color: #8d97a6;

    font-size: 8px;
    font-weight: 600;
}


.gtr-dispatch-form-section
.gtr-master-field label span {
    color: #c95f5f;
}


.gtr-dispatch-form-section input,
.gtr-dispatch-form-section select,
.gtr-dispatch-form-section textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    border: 1px solid #2b313b;
    border-radius: 6px;

    outline: none;

    background: #11141a;

    color: #cbd1d9;

    font-size: 9px;
}


.gtr-dispatch-form-section textarea {
    resize: vertical;

    min-height: 80px;
}


.gtr-dispatch-form-section input:focus,
.gtr-dispatch-form-section select:focus,
.gtr-dispatch-form-section textarea:focus {
    border-color: #486a9f;
}


.gtr-dispatch-form-section select:disabled,
.gtr-dispatch-form-section input:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}


.gtr-field-hint {
    display: block;

    margin-top: 5px;

    color: #626e7e;

    font-size: 7px;
}


.gtr-field-error {
    display: block;

    margin-top: 5px;

    color: #cc6d6d;

    font-size: 7px;
}


/* ============================================================
   UNIT INPUT
   ============================================================ */

.gtr-input-unit,
.gtr-input-money {
    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid #2b313b;
    border-radius: 6px;

    background: #11141a;
}


.gtr-input-unit input,
.gtr-input-money input {
    border: 0;

    border-radius: 0;
}


.gtr-input-unit > span {
    padding: 0 10px;

    color: #667282;

    font-size: 8px;
}


.gtr-input-money > span {
    padding-left: 10px;

    color: #75849a;

    font-size: 10px;
}


/* ============================================================
   INFORMATION CARD
   ============================================================ */

.gtr-dispatch-info-card {
    margin-top: 14px;
    padding: 12px;

    background: #11141a;

    border: 1px solid #242a33;
    border-radius: 7px;
}


.gtr-dispatch-info-title {
    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-bottom: 10px;
}


.gtr-dispatch-info-title > span {
    color: #637083;

    font-size: 7px;

    text-transform: uppercase;
}


.gtr-dispatch-info-title strong {
    color: #bfc7d1;

    font-size: 10px;
}


.gtr-dispatch-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}


.gtr-dispatch-info-grid > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.gtr-dispatch-info-grid label {
    color: #5f6a79;

    font-size: 7px;

    text-transform: uppercase;
}


.gtr-dispatch-info-grid span {
    color: #9aa5b4;

    font-size: 8px;
}


/* ============================================================
   EQUIPMENT SELECTION
   ============================================================ */

.gtr-dispatch-selection-card {
    display: flex;
    flex-direction: column;

    gap: 4px;

    margin-top: 12px;
    padding: 10px;

    background: #11141a;

    border: 1px solid #252b34;
    border-radius: 7px;
}


.gtr-dispatch-selection-card strong {
    color: #b9c3d0;

    font-size: 9px;
}


.gtr-dispatch-selection-card span {
    color: #697687;

    font-size: 8px;
}


/* ============================================================
   CHARGE TYPE
   ============================================================ */

.gtr-dispatch-choice-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 14px;
}


.gtr-dispatch-choice-row button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 3px;

    padding: 11px;

    border: 1px solid #2a3039;
    border-radius: 7px;

    background: #11141a;

    cursor: pointer;

    text-align: left;
}


.gtr-dispatch-choice-row button strong {
    color: #a9b3c1;

    font-size: 9px;
}


.gtr-dispatch-choice-row button span {
    color: #5f6b7b;

    font-size: 7px;
}


.gtr-dispatch-choice-row button.active {
    border-color: #426597;

    background: #182338;
}


.gtr-dispatch-choice-row button.active strong {
    color: #96b4e1;
}


/* ============================================================
   FINANCIAL PREVIEW
   ============================================================ */

.gtr-dispatch-financial-preview {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    margin-top: 15px;

    overflow: hidden;

    border: 1px solid #272d36;
    border-radius: 7px;
}


.gtr-dispatch-financial-preview > div {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 11px;

    background: #11141a;

    border-right: 1px solid #272d36;
}


.gtr-dispatch-financial-preview > div:last-child {
    border-right: 0;
}


.gtr-dispatch-financial-preview span {
    color: #626e7e;

    font-size: 7px;

    text-transform: uppercase;
}


.gtr-dispatch-financial-preview strong {
    color: #bbc4cf;

    font-size: 11px;
}


.gtr-dispatch-financial-preview .total {
    background: #162019;
}


.gtr-dispatch-financial-preview .total strong {
    color: #72b883;
}


.gtr-dispatch-preview-note {
    display: block;

    margin-top: 7px;

    color: #596574;

    font-size: 7px;
}


/* ============================================================
   FORM ACTIONS
   ============================================================ */

.gtr-dispatch-form-actions {
    position: sticky;

    bottom: 75px;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    padding: 11px;

    background: rgba(17, 20, 26, 0.96);

    border: 1px solid #282e37;
    border-radius: 9px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    .gtr-dispatch-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .gtr-dispatch-form-section {
        padding: 13px;
    }


    .gtr-dispatch-info-grid {
        grid-template-columns: 1fr;
    }


    .gtr-dispatch-choice-row {
        grid-template-columns: 1fr;
    }


    .gtr-dispatch-financial-preview {
        grid-template-columns: 1fr;
    }


    .gtr-dispatch-financial-preview > div {
        border-right: 0;

        border-bottom:
            1px solid #272d36;
    }


    .gtr-dispatch-financial-preview > div:last-child {
        border-bottom: 0;
    }


    .gtr-dispatch-form-actions {
        bottom: 68px;
    }


    .gtr-dispatch-form-actions button {
        flex: 1;
    }

}