﻿
/* =========================================================
   SUVIT TRANSPORT - DISPATCH ORDERS
   Enterprise UI Theme
========================================================= */

.dispatch-page {
    --dispatch-primary: #2563eb;
    --dispatch-primary-dark: #1d4ed8;
    --dispatch-navy: #172554;
    --dispatch-text: #263445;
    --dispatch-muted: #7b8798;
    --dispatch-border: #e7ecf3;
    --dispatch-background: #f4f7fb;
    width: 100%;
    min-width: 0;
    padding: 28px;
    color: var(--dispatch-text);
    font-family: inherit;
}

/* =========================================================
   PAGE HEADER
========================================================= */

.dispatch-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.dispatch-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dispatch-heading-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #eaf1ff;
    color: var(--dispatch-primary);
    font-size: 25px;
    font-weight: 700;
}

.dispatch-heading h2 {
    margin: 0 0 5px;
    color: var(--dispatch-navy);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.dispatch-heading p {
    margin: 0;
    color: var(--dispatch-muted);
    font-size: 13px;
}

.dispatch-primary-btn {
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 0 19px;
    border: 1px solid var(--dispatch-primary);
    border-radius: 7px;
    background: var(--dispatch-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .dispatch-primary-btn:hover {
        background: var(--dispatch-primary-dark);
        border-color: var(--dispatch-primary-dark);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        transform: translateY(-1px);
    }

.btn-icon {
    font-size: 20px;
    line-height: 1;
}

/* =========================================================
   ALERT
========================================================= */

.dispatch-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

    .dispatch-alert > span {
        width: 21px;
        height: 21px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: #fee2e2;
        font-weight: 700;
    }

/* =========================================================
   SUMMARY CARDS
========================================================= */

.dispatch-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.dispatch-summary-card {
    min-width: 0;
    padding: 22px 23px;
    border: 1px solid var(--dispatch-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .dispatch-summary-card:hover {
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
        transform: translateY(-2px);
    }

.summary-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.summary-label {
    display: block;
    margin-bottom: 9px;
    color: var(--dispatch-muted);
    font-size: 12px;
    font-weight: 500;
}

.dispatch-summary-card h3 {
    margin: 0;
    color: var(--dispatch-navy);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

    .dispatch-summary-card h3 small {
        color: #9aa5b5;
        font-size: 14px;
        font-weight: 500;
    }

.summary-description {
    display: block;
    margin-top: 7px;
    color: #9aa5b5;
    font-size: 11px;
}

.summary-icon {
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 11px;
    font-size: 22px;
    font-weight: 600;
}

.summary-icon-blue {
    color: #2563eb;
    background: #eaf1ff;
}

.summary-icon-purple {
    color: #7c3aed;
    background: #f2eaff;
}

.summary-icon-green {
    color: #059669;
    background: #e6f8f0;
}

/* =========================================================
   MAIN CONTENT CARD
========================================================= */

.dispatch-content-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--dispatch-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

/* =========================================================
   TOOLBAR
========================================================= */

.dispatch-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 21px 23px;
    border-bottom: 1px solid #edf0f5;
}

.dispatch-toolbar-left,
.dispatch-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dispatch-search-box {
    width: 310px;
    max-width: 100%;
    height: 41px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .dispatch-search-box:focus-within {
        border-color: #8bb3ff;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
    }

.search-icon {
    color: #8a98aa;
    font-size: 23px;
    line-height: 1;
}

.dispatch-search-box input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--dispatch-text);
    font-family: inherit;
    font-size: 12px;
}

    .dispatch-search-box input::placeholder {
        color: #a1aab8;
    }

.search-clear-btn {
    border: none;
    background: transparent;
    color: #8995a5;
    font-size: 20px;
    cursor: pointer;
}

.dispatch-filter-box select {
    width: 185px;
    height: 41px;
    padding: 0 12px;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #475569;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

    .dispatch-filter-box select:focus {
        border-color: #8bb3ff;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
    }

.dispatch-search-btn,
.dispatch-reset-btn {
    height: 41px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 0 17px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dispatch-search-btn {
    border: 1px solid var(--dispatch-primary);
    background: var(--dispatch-primary);
    color: #fff;
}

    .dispatch-search-btn:hover {
        background: var(--dispatch-primary-dark);
    }

    .dispatch-search-btn span {
        font-size: 17px;
    }

.dispatch-reset-btn {
    border: 1px solid #dce3ed;
    background: #fff;
    color: #536174;
}

    .dispatch-reset-btn:hover {
        background: #f5f7fa;
        border-color: #cbd5e1;
    }

/* =========================================================
   TABLE HEADING
========================================================= */

.dispatch-table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 21px 23px 17px;
}

    .dispatch-table-heading h4 {
        margin: 0 0 5px;
        color: #263445;
        font-size: 14px;
        font-weight: 700;
    }

    .dispatch-table-heading p {
        margin: 0;
        color: #8a96a7;
        font-size: 11px;
    }

.dispatch-record-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #e6edf7;
    border-radius: 20px;
    background: #f8faff;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.record-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
}

/* =========================================================
   DATA TABLE
========================================================= */

.dispatch-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0 22px;
}

.dispatch-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0;
    white-space: nowrap;
}

    .dispatch-table thead th {
        height: 47px;
        padding: 0 13px;
        border-top: 1px solid #edf0f5;
        border-bottom: 1px solid #e8edf4;
        background: #f7f9fc;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
        text-align: left;
    }

        .dispatch-table thead th:first-child {
            border-left: 1px solid #edf0f5;
            border-radius: 7px 0 0 0;
        }

        .dispatch-table thead th:last-child {
            border-right: 1px solid #edf0f5;
            border-radius: 0 7px 0 0;
        }

    .dispatch-table tbody td {
        height: 65px;
        padding: 10px 13px;
        border-bottom: 1px solid #edf0f5;
        background: #fff;
        color: #536174;
        font-size: 12px;
        vertical-align: middle;
        transition: background 0.15s ease;
    }

    .dispatch-table tbody tr:hover td {
        background: #f8faff;
    }

    .dispatch-table tbody tr:last-child td {
        border-bottom: none;
    }

    .dispatch-table .text-right {
        text-align: right;
    }

    .dispatch-table .text-center {
        text-align: center;
    }

.dispatch-do-number {
    color: #2563eb;
    font-size: 12px;
    font-weight: 650;
}

.dispatch-date {
    color: #64748b;
}

.dispatch-party {
    color: #37465a;
    font-weight: 500;
}

.dispatch-location {
    color: #59677a;
}

.dispatch-quantity {
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   STATUS BADGES
========================================================= */

.dispatch-status {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
}

.status-open {
    background: #eaf1ff;
    color: #2458c5;
}

    .status-open .status-dot {
        background: #2563eb;
    }

.status-partial {
    background: #fff5df;
    color: #a16207;
}

    .status-partial .status-dot {
        background: #e6a008;
    }

.status-completed {
    background: #e7f8ef;
    color: #15803d;
}

    .status-completed .status-dot {
        background: #16a34a;
    }

.status-closed {
    background: #eef1f5;
    color: #64748b;
}

    .status-closed .status-dot {
        background: #94a3b8;
    }

.status-unknown {
    background: #f1f5f9;
    color: #64748b;
}

    .status-unknown .status-dot {
        background: #94a3b8;
    }

/* =========================================================
   ACTION BUTTONS
========================================================= */

.dispatch-action-btn {
    width: 33px;
    height: 33px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dce5f1;
    border-radius: 7px;
    background: #fff;
    color: #536174;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .dispatch-action-btn:hover {
        border-color: #b7ceff;
        background: #eff5ff;
        color: #2563eb;
    }

/* =========================================================
   PAGINATION
========================================================= */

/*.dispatch-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 22px;
    padding: 19px 0;
    border-top: 1px solid #edf0f5;
}

.pagination-info {
    color: #8491a3;
    font-size: 11px;
}

    .pagination-info strong {
        color: #475569;
        font-weight: 600;
    }

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 13px;
}

.pagination-current {
    color: #7b8798;
    font-size: 11px;
}

    .pagination-current strong {
        color: #334155;
    }

.pagination-btn {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dce3ed;
    border-radius: 6px;
    background: #fff;
    color: #536174;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pagination-btn:hover:not(:disabled) {
        border-color: #a9c5ff;
        background: #f1f6ff;
        color: #2563eb;
    }

    .pagination-btn:disabled {
        background: #f8fafc;
        color: #b0bac8;
        cursor: not-allowed;
    }*/



/* =========================================================
   ENTERPRISE PAGINATION
========================================================= */

.dispatch-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 22px;
    padding: 20px 0;
    border-top: 1px solid #edf0f5;
}

.pagination-info {
    color: #8491a3;
    font-size: 12px;
}

    .pagination-info strong {
        color: #475569;
        font-weight: 600;
    }

.pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.pagination-btn {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dce3ed;
    border-radius: 6px;
    background: #fff;
    color: #536174;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pagination-btn:hover:not(:disabled) {
        border-color: #a9c5ff;
        background: #f1f6ff;
        color: #2563eb;
    }

    .pagination-btn:disabled {
        background: #f8fafc;
        color: #b0bac8;
        cursor: not-allowed;
    }

.pagination-edge-btn {
    min-width: 36px;
    font-size: 17px;
    font-weight: 600;
}

.pagination-goto {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 5px;
    color: #64748b;
    font-size: 12px;
}

    .pagination-goto input {
        width: 52px;
        height: 36px;
        padding: 0 7px;
        border: 1px solid #dce3ed;
        border-radius: 6px;
        outline: none;
        color: #334155;
        font-family: inherit;
        font-size: 12px;
        text-align: center;
    }

        .pagination-goto input:focus {
            border-color: #8bb3ff;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
        }

    .pagination-goto strong {
        color: #334155;
    }

.pagination-go-btn {
    height: 36px;
    padding: 0 13px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .pagination-go-btn:hover {
        background: #1d4ed8;
    }

@media (max-width: 768px) {
    .dispatch-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-controls {
        width: 100%;
        gap: 5px;
    }

    .pagination-goto {
        margin: 0;
    }
}


/* =========================================================
   EMPTY AND LOADING STATES
========================================================= */

.dispatch-state {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

    .dispatch-state h4 {
        margin: 14px 0 7px;
        color: #334155;
        font-size: 15px;
        font-weight: 650;
    }

    .dispatch-state p {
        max-width: 420px;
        margin: 0;
        color: #8793a5;
        font-size: 12px;
        line-height: 1.7;
    }

.empty-state-icon {
    width: 62px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    background: #eff4ff;
    color: #4778dc;
    font-size: 30px;
}

.dispatch-loader {
    width: 34px;
    height: 34px;
    border: 3px solid #e3ebf8;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: dispatch-spin 0.8s linear infinite;
}

@keyframes dispatch-spin {
    to {
        transform: rotate(360deg);
    }
}

.dispatch-empty-btn {
    margin-top: 19px;
    padding: 10px 16px;
    border: 1px solid #2563eb;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .dispatch-empty-btn:hover {
        background: #1d4ed8;
    }

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1100px) {
    .dispatch-page {
        padding: 22px;
    }

    .dispatch-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .dispatch-toolbar-left,
    .dispatch-toolbar-right {
        width: 100%;
    }

    .dispatch-search-box {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dispatch-page {
        padding: 16px;
    }

    .dispatch-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dispatch-primary-btn {
        width: 100%;
    }

    .dispatch-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dispatch-summary-card {
        padding: 18px;
    }

    .dispatch-toolbar-left,
    .dispatch-toolbar-right {
        align-items: stretch;
        flex-direction: column;
    }

    .dispatch-search-box,
    .dispatch-filter-box select {
        width: 100%;
    }

    .dispatch-search-btn,
    .dispatch-reset-btn {
        width: 100%;
    }

    .dispatch-table-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dispatch-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 420px) {
    .dispatch-page {
        padding: 12px;
    }

    .dispatch-heading h2 {
        font-size: 19px;
    }

    .dispatch-heading-icon {
        width: 42px;
        height: 42px;
    }

    .dispatch-summary-card h3 {
        font-size: 23px;
    }
}

.dispatch-date-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 135px;
}

    .dispatch-date-filter label {
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
    }

    .dispatch-date-filter input {
        height: 40px;
        padding: 0 10px;
        border: 1px solid #dce2ea;
        border-radius: 7px;
        background: #fff;
        color: #334155;
        font-size: 13px;
        outline: none;
    }

        .dispatch-date-filter input:focus {
            border-color: #3b82f6;
        }

.dispatch-trip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 9px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   DISPATCH ORDER MODALS
========================================= */

.dispatch-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.dispatch-modal {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dispatch-location-backdrop {
    z-index: 1010;
}

.dispatch-location-modal {
    max-width: 550px;
}

.dispatch-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #e8edf3;
}

    .dispatch-modal-header h3 {
        margin: 0;
        font-size: 19px;
        font-weight: 700;
        color: #1e293b;
    }

    .dispatch-modal-header p {
        margin: 6px 0 0;
        font-size: 13px;
        color: #64748b;
    }

.dispatch-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 7px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    cursor: pointer;
}

    .dispatch-modal-close:hover {
        background: #e2e8f0;
        color: #1e293b;
    }

.dispatch-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
}

.dispatch-form-section {
    margin-bottom: 24px;
}

    .dispatch-form-section:last-child {
        margin-bottom: 0;
    }

    .dispatch-form-section h4 {
        margin: 0 0 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid #edf0f4;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
    }

.dispatch-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}

.dispatch-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
}

    .dispatch-form-group.full-width {
        grid-column: 1 / -1;
    }

    .dispatch-form-group label {
        color: #475569;
        font-size: 12px;
        font-weight: 600;
    }

        .dispatch-form-group label span {
            color: #dc2626;
        }

    .dispatch-form-group input,
    .dispatch-form-group select,
    .dispatch-form-group textarea {
        width: 100%;
        min-height: 41px;
        padding: 9px 11px;
        border: 1px solid #dce2ea;
        border-radius: 7px;
        background: #ffffff;
        color: #334155;
        font-family: inherit;
        font-size: 13px;
        outline: none;
        box-sizing: border-box;
    }

    .dispatch-form-group textarea {
        resize: vertical;
        min-height: 75px;
    }

        .dispatch-form-group input:focus,
        .dispatch-form-group select:focus,
        .dispatch-form-group textarea:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .dispatch-form-group input:disabled,
        .dispatch-form-group select:disabled,
        .dispatch-form-group textarea:disabled {
            background: #f8fafc;
            cursor: not-allowed;
        }

.dispatch-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dispatch-inline-add {
    padding: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .dispatch-inline-add:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

    .dispatch-inline-add:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.dispatch-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e8edf3;
    background: #ffffff;
}

.dispatch-secondary-btn {
    min-height: 39px;
    padding: 0 17px;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .dispatch-secondary-btn:hover {
        background: #f8fafc;
    }

.dispatch-modal-footer .dispatch-primary-btn {
    min-height: 39px;
    padding: 0 18px;
}

.dispatch-modal-footer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */

@media (max-width: 600px) {
    .dispatch-modal-backdrop {
        padding: 10px;
        align-items: center;
    }

    .dispatch-modal {
        max-height: 95vh;
    }

    .dispatch-modal-header,
    .dispatch-modal-body,
    .dispatch-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dispatch-form-grid {
        grid-template-columns: 1fr;
    }

    .dispatch-form-group.full-width {
        grid-column: auto;
    }

    .dispatch-modal-footer {
        flex-wrap: wrap;
    }
}

/* Fix modal action buttons */
.dispatch-modal-footer .dispatch-primary-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 195px;
    min-height: 44px;
    padding: 0 20px !important;
    border: 1px solid #2563eb !important;
    border-radius: 8px;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    opacity: 1;
    cursor: pointer;
}

    .dispatch-modal-footer .dispatch-primary-btn:hover:not(:disabled) {
        background-color: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
    }

    .dispatch-modal-footer .dispatch-primary-btn:disabled {
        background-color: #93b4f5 !important;
        border-color: #93b4f5 !important;
        color: #ffffff !important;
        opacity: 0.7;
        cursor: not-allowed;
    }


