/* Pilat Wide Font Definitions — all weights */
@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-Thin.woff2") format("woff2"),
         url("/fonts/PilatWide-Thin.woff") format("woff"),
         url("/fonts/PilatWide-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-Light.woff2") format("woff2"),
         url("/fonts/PilatWide-Light.woff") format("woff"),
         url("/fonts/PilatWide-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-Regular.woff2") format("woff2"),
         url("/fonts/PilatWide-Regular.woff") format("woff"),
         url("/fonts/PilatWide-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-DemiBold.woff2") format("woff2"),
         url("/fonts/PilatWide-DemiBold.woff") format("woff"),
         url("/fonts/PilatWide-DemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-Bold.woff2") format("woff2"),
         url("/fonts/PilatWide-Bold.woff") format("woff"),
         url("/fonts/PilatWide-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-Heavy.woff2") format("woff2"),
         url("/fonts/PilatWide-Heavy.woff") format("woff"),
         url("/fonts/PilatWide-Heavy.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Pilat Wide";
    src: url("/fonts/PilatWide-Black.woff2") format("woff2"),
         url("/fonts/PilatWide-Black.woff") format("woff"),
         url("/fonts/PilatWide-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

:root {
    --dpw-primary: #002a3a;
    --dpw-secondary: #312A82;
    --dpw-accent: #5154B6;
    --dpw-gradient: linear-gradient(90deg, #1E1343 0%, #312A82 50%, #5154B6 100%);
    --dpw-bg: #f4f6fb;
    --dpw-text: #444444;
    --dpw-border: #e4e6ef;
}

* {
    font-family: "Pilat Wide", sans-serif;
    font-size: 14px;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.clrdpwblue {
    color: rgb(30, 20, 80) !important;
}

.clrdpwred {
    color: rgb(207, 19, 67) !important;
}

.clrdpwgreen {
    color: #1a7a3e !important;
}

/* ─── Alert Modal — Modern Card Design ────────────────────────── */
.alert-modal .modal-dialog {
    max-width: 380px;
}

.alert-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.16), 0 8px 24px rgba(0,0,0,0.10);
    text-align: center;
    position: relative;
}

@@keyframes alertSlideIn {
    from { transform: scale(0.82) translateY(14px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.alert-modal.show .modal-content {
    animation: alertSlideIn 0.3s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

/* Close button — top-right absolute */
.alert-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
    padding: 0;
}

.alert-modal-close:hover {
    background: rgba(0,0,0,0.14);
    color: #333;
}

/* Top section: accent stripe + icon + title */
.alert-modal-top {
    padding: 36px 28px 14px;
    border-top-width: 5px;
    border-top-style: solid;
}

/* Icon circle */
.alert-modal-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.alert-modal-icon-wrap svg {
    width: 34px;
    height: 34px;
}

/* Title */
.alert-modal-title {
    font-family: "Pilat Wide", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Body text */
.alert-modal-body {
    font-size: 13.5px;
    color: #555;
    line-height: 1.7;
    padding: 10px 28px 22px;
    font-weight: 400;
    word-break: break-word;
}

/* Footer */
.alert-modal-footer {
    padding: 0 24px 24px;
}

.alert-modal-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-family: "Pilat Wide", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: white;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.alert-modal-btn:hover  { filter: brightness(1.1); }
.alert-modal-btn:active { transform: scale(0.98); }

/* ── Type colour variants ── */
.alert-type-success .alert-modal-top      { border-top-color: #16a34a; }
.alert-type-success .alert-modal-icon-wrap { background: #dcfce7; }
.alert-type-success .alert-modal-icon-wrap svg { color: #16a34a; }
.alert-type-success .alert-modal-btn      { background: #16a34a; }
.alert-type-success .alert-modal-title    { color: #14532d; }

.alert-type-error .alert-modal-top        { border-top-color: #dc2626; }
.alert-type-error .alert-modal-icon-wrap  { background: #fee2e2; }
.alert-type-error .alert-modal-icon-wrap svg { color: #dc2626; }
.alert-type-error .alert-modal-btn        { background: #dc2626; }
.alert-type-error .alert-modal-title      { color: #7f1d1d; }

.alert-type-warning .alert-modal-top      { border-top-color: #d97706; }
.alert-type-warning .alert-modal-icon-wrap { background: #fef3c7; }
.alert-type-warning .alert-modal-icon-wrap svg { color: #d97706; }
.alert-type-warning .alert-modal-btn      { background: #d97706; }
.alert-type-warning .alert-modal-title    { color: #78350f; }

.alert-type-info .alert-modal-top         { border-top-color: #312A82; }
.alert-type-info .alert-modal-icon-wrap   { background: #eceafc; }
.alert-type-info .alert-modal-icon-wrap svg { color: #312A82; }
.alert-type-info .alert-modal-btn         { background: var(--dpw-gradient); }
.alert-type-info .alert-modal-title       { color: #312A82; }

/* ─── Stage Success Banner (In-Gate → Yard) ───────────────────── */
.stage-success-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.stage-success-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-success-icon-wrap svg {
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.stage-success-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stage-success-title {
    font-family: "Pilat Wide", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #14532d;
    letter-spacing: 0.2px;
}

.stage-success-sub {
    font-size: 12px;
    color: #166534;
    font-weight: 400;
    line-height: 1.5;
}

.infoLabel label {
    font-size: 17px;
}

.dpworld .btn-primary {
    background-color: rgb(30, 20, 80) !important;
    color: #FFF !important;
}

.dpworld .btn-secondary {
    background-color: rgb(207, 19, 67) !important;
    color: #FFF !important;
}

.non-editable {
    background: #e5e5e5;
}
/*.PrintBtn {
    position: relative;
    width: 100%;
    max-width: calc(100% - 140px);
    text-align: right;
}*/
#pdfModal {
    display: none;
}

.mandate {
    color: red;
    font-weight: bold;
}

.trnCntrCardBody, .trnCntrCardHead {
    border: 2px solid #282066;
    margin-top: 3px;
    padding-top: 10px;
}

.error-dropdown {
    border: 2px solid #e53935 !important;
    box-shadow: 0 0 4px rgba(229, 57, 53, 0.4);
}

.dpToast {
    top: 50px !important;
}

    .dpToast .toast-header {
        background: var(--dpw-gradient) !important;
    }
.CheckBox {
    border: 1px solid #282066;
    --bs-form-switch-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%239b95cd'/></svg>");
}

    .CheckBox:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #282066;
        --bs-form-switch-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%23282066'/></svg>")
    }

    .CheckBox:checked {
        --bs-form-switch-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%23fff'/></svg>");
        background-color: #282066;
    }

/* ─────────────────────────────────────────────────────────
   TRANSACTION PAGE — TYPOGRAPHY + TAB LAYOUT + STICKY BAR
   ───────────────────────────────────────────────────────── */

/* Pilat Wide for the main transaction section (bolder + readable) */
.txn-page,
.txn-page .form-label,
.txn-page .form-control,
.txn-page .form-select,
.txn-page .card-header,
.txn-page .nav-link,
.txn-page .btn,
.txn-page label {
    font-family: "Pilat Wide", "Segoe UI", sans-serif;
    letter-spacing: 0.2px;
}

.txn-page-title {
    font-family: "Pilat Wide", "Segoe UI", sans-serif;
    font-weight: 700;
    color: #1E1343;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.txn-page .card-header {
    font-weight: 700;
    letter-spacing: 0.6px;
}

.txn-page .form-label {
    font-weight: 700;
    color: #1E1343;
}

.txn-page .form-control,
.txn-page .form-select {
    font-weight: 500;
}

.txn-page .btn {
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Search section — gives breathing room above tabs */
.search-section {
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--dpw-border);
    margin-bottom: 8px;
}

/* ── Tab navigation ─────────────────────────────────── */
.txn-tabs {
    border-bottom: 2px solid #ddd6f5;
    margin-top: 12px;
    margin-bottom: 0;
    gap: 4px;
}

.txn-tabs .nav-link {
    color: #312A82 !important;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 10px 18px;
    transition: all 0.2s ease;
}

    .txn-tabs .nav-link:hover {
        background-color: rgba(81, 84, 182, 0.08);
        color: #1E1343 !important;
    }

    .txn-tabs .nav-link.active {
        color: #1E1343 !important;
        background-color: transparent;
        border-bottom: 3px solid #312A82;
    }

.txn-badge {
    background: #5154B6;
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}

.txn-tabs .nav-link.active .txn-badge {
    background: #1E1343;
}

/* Tab content panel */
.txn-tab-content {
    background: white;
    padding: 18px 16px 16px 16px;
    border: 1px solid #ddd6f5;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 16px rgba(81, 84, 182, 0.08);
}

/* Banner inside Last Completed pane */
.txn-last-banner label {
    color: #1a7a3e;
    font-weight: 600;
    background-color: #e6f4ea;
    border: 1px solid #b6e0c2;
    padding: 8px 14px;
    border-radius: 8px;
    width: 100%;
}

/* ── Sticky bottom action bar ───────────────────────── */
.txn-sticky-spacer {
    height: 80px;       /* prevents sticky bar from overlapping last card content */
}

.txn-sticky-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #ddd6f5;
    padding: 10px 14px;
    margin: 8px -16px -16px -16px;   /* extends to edges of .txn-tab-content */
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -6px 16px rgba(81, 84, 182, 0.08);
    z-index: 50;
}

    .txn-sticky-actions .lane-select {
        width: 200px;
        min-width: 160px;
        font-weight: 500;
    }

    .txn-sticky-actions .primary-action {
        font-weight: 700;
        padding: 10px 22px;
        font-size: 14px;
    }

    .txn-sticky-actions .btn {
        height: 42px;
        min-width: 42px;
    }

/* Slightly more breathing room inside cards */
.txn-tab-content .card {
    margin-bottom: 10px;
}

.txn-tab-content .card-body.trnCntrCardHead,
.txn-tab-content .card-body.trnCntrCardBody {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Mobile tweaks */
@@media (max-width: 576px) {
    .txn-tabs .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .txn-sticky-actions {
        padding: 8px 10px;
    }

    .txn-sticky-actions .lane-select {
        width: 100%;
        flex: 1 1 auto;
    }
}