/* Basic layout for the dispatch form */
.dispatch-form-container {
    max-width: 520px;
    margin: 12px auto;
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.dispatch-form-container label {
    display: block;
    margin: 6px 0 4px;
    font-weight: 600;
    font-size: 13px;
}

.dispatch-form-container input[type="text"],
.dispatch-form-container input[type="date"],
.dispatch-form-container input[type="number"],
.dispatch-form-container select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#updateButton {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

/* Modal styles (basic) */
.dc-modal-overlay {
    position: fixed;
    left: 0;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    max-width: unset !important;
}

.dc-modal {
    background: #fff;
    padding: 18px;
    max-width: 520px;
    width: 90%;
    border-radius: 6px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.dc-modal p {
    margin-bottom: 12px;
}

.dc-modal-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.dc-modal .button {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}







/* Parcels tooltip */
.parcels-tooltip {
    background: #f8d7da;               /* light red/pinkish background for error */
    color: #721c24;                    /* dark red text */
    border: 1px solid #f5c6cb;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 10000;
    white-space: nowrap;
    position: absolute;
    right: 30%;                      /* align to the right of the input */
}

/* small arrow */
.parcels-tooltip::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #f8d7da;
    bottom: -6px;
    right: 50%;
    transform: translateX(-50%);
    display: block;
}

/* If you place the tooltip below the input (script does this automatically in tight spaces),
   you might want a flipped arrow — optional */
.parcels-tooltip[data-placement="below"]::after {
    border-top: none;
    border-bottom: 6px solid #f8d7da;
    top: -6px;
    bottom: auto;
}




/* Non-blocking success banner container --- pointer-events none so page stays interactive */
#dispatch-capture-modal-root .dc-simple-root {
    position: fixed;
    top: 3px;
    right: 0;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    max-width: 90%;
    pointer-events: none; /* allow clicks to pass through except inner banner */
}

/* Inner banner accepts pointer events so the OK button works */
#dispatch-capture-modal-root .dc-simple-banner {
    display: inline-block;
    pointer-events: auto; /* allow interacting with the banner (button) only */
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    font-size: 14px;
}

/* Message text style */
#dispatch-capture-modal-root .dc-simple-message {
    line-height: 1.2;
}

/* Small spacing for the button(s) */
#dispatch-capture-modal-root .dc-modal-buttons {
    margin-top: 6px;
}


.dc-tooltip {
    display: inline-block;
}