/* ============================================================
   DISPATCH PLANNING - FINAL CLEAN FULL CSS
   13 TABLE COLUMNS VERSION
============================================================ */

:root {
    --primary: #108082;
    --primary-dark: #0c6668;
    --primary-soft: #e8f6f6;

    --green: #16a34a;
    --green-dark: #15803d;
    --green-soft: #dcfce7;

    --red: #dc2626;
    --red-soft: #fef2f2;
    --red-border: #fca5a5;

    --orange: #ea580c;
    --orange-soft: #fff7ed;
    --orange-border: #fdba74;

    --blue-soft: #e0f2fe;
    --blue-text: #075985;
    --blue-border: #7dd3fc;

    --bg: #f4f7fb;
    --card: #ffffff;

    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;

    --radius: 16px;
    --radius-sm: 10px;

    --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.24);
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* MAIN */
.main-content {
    width: 100%;
    padding: 22px;
}

/* TOPBAR */
.topbar {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1 {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.topbar p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}

/* SECTION */
.section-card {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* FILTER */
.filter-bar,
.dispatch-filter-bar {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(300px, 1.8fr)
        minmax(150px, 0.8fr)
        minmax(160px, 0.9fr)
        minmax(180px, 1fr)
        minmax(190px, 1fr)
        minmax(150px, 0.8fr)
        minmax(150px, 0.8fr)
        minmax(120px, 0.55fr)
        minmax(120px, 0.55fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select,
.dispatch-filter-bar input,
.dispatch-filter-bar select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--gray-300);
    border-radius: 11px;
    background: #ffffff;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 650;
    outline: none;
    transition: 0.18s ease;
}

.filter-bar input::placeholder,
.dispatch-filter-bar input::placeholder {
    color: var(--gray-400);
    font-weight: 650;
}

.filter-bar input:focus,
.filter-bar select:focus,
.dispatch-filter-bar input:focus,
.dispatch-filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.12);
}

.filter-bar input[type="date"],
.dispatch-filter-bar input[type="date"] {
    color: var(--gray-900);
    cursor: pointer;
}

.filter-bar .btn,
.dispatch-filter-bar .btn {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 13px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--primary);
    color: #ffffff;
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.success {
    background: var(--green);
    color: #ffffff;
}

.btn.success:hover {
    background: var(--green-dark);
}

.btn.secondary {
    background: #f3f4f6;
    color: #111827;
}

.btn.secondary:hover {
    background: #e5e7eb;
}

/* TABLE SUMMARY */
.table-summary {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--gray-700);
    font-size: 13.5px;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.table-summary strong {
    color: var(--gray-900);
    font-weight: 900;
}

.table-summary span {
    color: var(--primary);
    font-weight: 900;
}

/* TABLE WRAPPER */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.table-wrap::-webkit-scrollbar {
    height: 9px;
}

.table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* TABLE */
table {
    width: 100%;
    min-width: 1760px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
}

tbody td {
    padding: 13px;
    border-bottom: 1px solid #edf2f7;
    color: var(--gray-900);
    font-size: 13.2px;
    font-weight: 600;
    vertical-align: middle;
    background: #ffffff;
}

tbody tr:hover td {
    background: #f9fdfd;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody td:first-child {
    font-weight: 850;
    color: #020617;
    line-height: 1.35;
}

/* 13 TABLE COLUMN WIDTHS */
table th:nth-child(1),
table td:nth-child(1) {
    width: 70px;
}

table th:nth-child(2),
table td:nth-child(2) {
    width: 145px;
}

table th:nth-child(3),
table td:nth-child(3) {
    width: 125px;
}

table th:nth-child(4),
table td:nth-child(4) {
    width: 245px;
    white-space: normal;
    line-height: 1.35;
}

table th:nth-child(5),
table td:nth-child(5) {
    width: 125px;
}

table th:nth-child(6),
table td:nth-child(6) {
    width: 125px;
}

table th:nth-child(7),
table td:nth-child(7) {
    width: 135px;
}

table th:nth-child(8),
table td:nth-child(8) {
    width: 155px;
}

table th:nth-child(9),
table td:nth-child(9) {
    width: 160px;
}

table th:nth-child(10),
table td:nth-child(10) {
    width: 150px;
}

table th:nth-child(11),
table td:nth-child(11) {
    width: 185px;
}

table th:nth-child(12),
table td:nth-child(12) {
    width: 200px;
}

table th:nth-child(13),
table td:nth-child(13) {
    width: 170px;
}

/* EMPTY ROW */
tbody td[colspan] {
    text-align: center !important;
    padding: 34px 20px !important;
    color: var(--gray-500) !important;
    font-weight: 800;
}

/* TABLE INPUTS */
input,
select,
textarea {
    font-family: inherit;
}

.table-wrap input[type="date"],
.table-wrap select,
.table-wrap textarea {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #dbe3ea;
    border-radius: 9px;
    background: #ffffff;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    transition: 0.18s ease;
}

.table-wrap input[type="date"]:focus,
.table-wrap select:focus,
.table-wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.10);
}

.table-wrap textarea {
    padding-top: 9px;
    resize: none;
    overflow: hidden;
    line-height: 1.3;
}

.status-dropdown {
    cursor: pointer;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
}

.action-buttons .btn {
    min-width: 66px;
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 12.5px;
}

/* PAGINATION */
.pagination-bar {
    width: 100%;
    margin-top: 18px;
    padding: 12px 0 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.pagination-bar .btn {
    min-width: 90px;
    height: 38px;
}

#pageInfo {
    min-width: 95px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* BADGES */
.table-wrap td span {
    line-height: 1.2;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 118px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.payment-badge.received {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid #86efac;
}

.payment-badge.partial {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.normal-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 128px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-text);
    border: 1px solid var(--blue-border);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.special-request-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 128px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange);
    border: 1px solid var(--orange-border);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* INLINE BADGE SUPPORT */
.table-wrap td span[style*="Received"],
.table-wrap td span[style*="Partial"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    min-width: 118px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.table-wrap td span[title],
.table-wrap td span[style*="Normal Order"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    min-width: 128px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* MODALS COMMON */
.order-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
}

.order-modal.show {
    display: flex;
}

.order-modal-box {
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    animation: modalScale 0.22s ease;
}

.modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modal-head h2 {
    font-size: 18px;
    font-weight: 850;
    color: var(--gray-900);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
}

.modal-close:hover {
    background: var(--red-soft);
    color: var(--red);
}

/* DETAILS MODAL */
.modal-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.detail-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 14px;
}

.detail-label {
    color: var(--gray-500);
    font-size: 11.5px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.detail-value {
    color: var(--gray-900);
    font-size: 14px;
    font-weight: 750;
    word-break: break-word;
}

.reject-highlight {
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 13px;
    background: var(--red-soft);
    border: 1px solid var(--red-border);
}

.reject-highlight .detail-label {
    color: var(--red);
}

/* STATUS POPUP */
.status-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100000;
}

.status-popup.show {
    display: flex;
}

.status-box {
    width: 100%;
    max-width: 370px;
    padding: 32px 28px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: popupSlide 0.22s ease;
}

.status-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.status-text {
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
}

.status-box.is-success .status-icon {
    background: var(--green-soft);
    color: var(--green);
}

.status-box.is-warning {
    border-top: 4px solid #f59e0b;
}

.status-box.is-warning .status-icon {
    background: #fffbeb;
    color: #d97706;
}

.status-box.is-error {
    border-top: 4px solid var(--red);
}

.status-box.is-error .status-icon {
    background: var(--red-soft);
    color: var(--red);
}

.status-box .btn {
    min-width: 110px;
    height: 42px;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100001;
}

.loading-overlay.show {
    display: flex;
}

.loading-box {
    width: 240px;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popupSlide 0.24s ease;
}

.spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 800;
}

/* PAYMENT BLOCKED POPUP */
.payment-block-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.payment-block-overlay.show {
    opacity: 1;
    visibility: visible;
}

.payment-block-card {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    border-radius: 24px;
    padding: 34px 32px 30px;
    position: relative;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.85);
    transform: translateY(18px) scale(0.96);
    transition: 0.25s ease;
}

.payment-block-overlay.show .payment-block-card {
    transform: translateY(0) scale(1);
}

.payment-block-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d9dee8;
    background: #ffffff;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.payment-block-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.payment-warning-icon {
    width: 92px;
    height: 92px;
    margin: 4px auto 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffedd5 0%, #fff7ed 60%, transparent 62%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.payment-warning-icon::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(251, 146, 60, 0.28);
    animation: paymentPulse 1.8s infinite;
}

.payment-warning-icon i {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

.payment-block-card h2 {
    text-align: center;
    font-size: 31px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #111827;
    font-weight: 900;
}

.payment-block-subtitle {
    text-align: center;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.65;
    max-width: 430px;
    margin: 0 auto 28px;
}

.payment-info-card {
    background: #fffaf4;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 16px;
}

.payment-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 14px;
}

.payment-info-row:last-child {
    border-bottom: 0;
}

.payment-info-row span {
    color: #64748b;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-info-row span i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #ffffff;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-info-row b {
    color: #111827;
    font-weight: 900;
    text-align: right;
}

.payment-danger {
    color: #dc2626 !important;
}

.payment-status-pill {
    background: #e0f2fe;
    color: #0369a1 !important;
    padding: 8px 14px;
    border-radius: 999px;
}

.payment-warning-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 15px;
    padding: 15px 16px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.payment-warning-note i {
    color: #f97316;
    font-size: 22px;
    margin-top: 2px;
}

.payment-warning-note b {
    color: #ea580c;
}

.payment-actions {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 12px;
}

.payment-btn {
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
}

.payment-btn-light {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d9dee8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.payment-btn-light:hover {
    background: #f8fafc;
}

.payment-btn-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.28);
}

.payment-btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.34);
}

/* FOOTER */
.footer {
    margin-top: 28px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 650;
}

/* ANIMATIONS */
@keyframes modalScale {
    from {
        transform: scale(0.94);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popupSlide {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes paymentPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 1500px) {
    .filter-bar,
    .dispatch-filter-bar {
        grid-template-columns:
            minmax(280px, 2fr)
            repeat(4, minmax(160px, 1fr));
    }

    .filter-bar input[type="date"],
    .dispatch-filter-bar input[type="date"] {
        min-width: 0;
    }
}

@media (max-width: 1100px) {
    .filter-bar,
    .dispatch-filter-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    table {
        min-width: 1760px;
    }

    .modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 14px;
    }

    .topbar {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar .btn {
        width: 100%;
    }

    .section-card {
        padding: 16px;
    }

    .filter-bar,
    .dispatch-filter-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-bar .btn,
    .dispatch-filter-bar .btn {
        width: 100%;
    }

    table {
        min-width: 1760px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .table-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-bar {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .payment-block-card {
        padding: 30px 20px 22px;
        border-radius: 20px;
    }

    .payment-block-card h2 {
        font-size: 25px;
    }

    .payment-block-subtitle {
        font-size: 14px;
    }

    .payment-info-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .payment-info-row b {
        text-align: left;
    }

    .payment-actions {
        grid-template-columns: 1fr;
    }
}