﻿/* GPE Booking Manager — Public Styles */

.gpe-bm-public {
    font-family: inherit;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------
   Generic notice
------------------------------------------------------------------------ */
.gpe-bm-notice {
    background: #f0f6fc;
    border-left: 4px solid #003366;
    padding: 12px 16px;
    border-radius: 3px;
    margin: 12px 0;
}

.gpe-bm-error {
    background: #fdf0f0;
    border-left: 4px solid #d63638;
    padding: 12px 16px;
    border-radius: 3px;
    margin: 12px 0;
    color: #721c24;
}

/* -----------------------------------------------------------------------
   Buttons
------------------------------------------------------------------------ */
.gpe-bm-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease;
}

.gpe-bm-btn--primary {
    background: #003366;
    color: #fff;
    border-color: #003366;
}
button.gpe-bm-btn.gpe-bm-btn--primary{
	border: 1px solid #c3c4c7;
	color: #363636;
}
button.gpe-bm-btn.gpe-bm-btn--primary:hover{
	background: #c3c4c7;
}
.gpe-bm-btn--primary:hover {
    background: #363636;
    border-color: #fff;
    color: #fff;
}

/* -----------------------------------------------------------------------
   Status lookup form
------------------------------------------------------------------------ */
.gpe-bm-status-form {
    margin-bottom: 20px;
}

.gpe-bm-status-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.gpe-bm-status-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.gpe-bm-status-input-row input[type="text"] {
    flex: 1 1 240px;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 1rem;
}

/* -----------------------------------------------------------------------
   Status badges (mirrors admin)
------------------------------------------------------------------------ */
.gpe-bm-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.gpe-bm-status--booked           { background: #e8f5e8; color: #155724; }
.gpe-bm-status--picked_up        { background: #fff3cd; color: #856404; }
.gpe-bm-status--at_facility      { background: #ffecd0; color: #7c3a00; }
.gpe-bm-status--manifested       { background: #dbeafe; color: #1e40af; }
.gpe-bm-status--departed         { background: #cce5ff; color: #004085; }
.gpe-bm-status--in_transit       { background: #d1ecf1; color: #0c5460; }
.gpe-bm-status--arrived          { background: #ede9fe; color: #5b21b6; }
.gpe-bm-status--out_for_delivery { background: #fed7aa; color: #7c2d12; }
.gpe-bm-status--delivered        { background: #d4edda; color: #155724; }
.gpe-bm-status--cancelled        { background: #f8d7da; color: #721c24; }
.gpe-bm-status--returned         { background: #e2e3e5; color: #383d41; }

/* -----------------------------------------------------------------------
   Status result / history
------------------------------------------------------------------------ */
.gpe-bm-status-result {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 20px 24px;
    margin-top: 16px;
}

.gpe-bm-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpe-bm-log-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gpe-bm-log-list li:last-child {
    border-bottom: none;
}

.gpe-bm-log-date {
    color: #646970;
    font-size: 0.85rem;
    min-width: 160px;
}

.gpe-bm-log-notes {
    color: #646970;
    font-style: italic;
    font-size: 0.9rem;
}

/* =======================================================================
   BOOKING FORM  (.gpe-bm-form)
   All rules scoped to avoid conflicts with any theme or admin styles.
======================================================================= */

/* -----------------------------------------------------------------------
   Tab navigation
------------------------------------------------------------------------ */
.gpe-bm-form-tabs {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    border-bottom: 2px solid #003366;
}

.gpe-bm-tab-btn {
    padding: 8px 18px;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #f6f7f7;
    color: #50575e;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.gpe-bm-tab-btn:hover {
    background: #e0e0e0;
    color: #1d2327;
}

.gpe-bm-tab-btn--active {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

/* -----------------------------------------------------------------------
   Tab panels
------------------------------------------------------------------------ */
.gpe-bm-tab-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-top: none;
    padding: 20px 20px 16px;
}

.gpe-bm-tab-panel[hidden] { display: none; }

/* -----------------------------------------------------------------------
   Section headings (SHIPPER/SENDER, etc.)
------------------------------------------------------------------------ */
.gpe-bm-section-head {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    background: #003366;
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.gpe-bm-section-head--mt { margin-top: 20px; }

/* -----------------------------------------------------------------------
   Form grid
------------------------------------------------------------------------ */
.gpe-bm-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    align-items: flex-end;
}

.gpe-bm-form-row--cols {
    align-items: flex-start;
    gap: 24px;
}

.gpe-bm-form-col {
    flex: 1 1 130px;
    min-width: 0;
}

.gpe-bm-form-col--half {
    flex: 1 1 calc(50% - 12px);
    min-width: 280px;
}

.gpe-bm-form-col--narrow {
    flex: 0 0 auto;
    min-width: 150px;
}

/* -----------------------------------------------------------------------
   Labels
------------------------------------------------------------------------ */
.gpe-bm-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}

.gpe-bm-req { color: #d63638; }

.gpe-bm-hint-inline {
    font-weight: 400;
    color: #646970;
    font-size: 0.78rem;
}

/* -----------------------------------------------------------------------
   Inputs, selects, textareas
------------------------------------------------------------------------ */
.gpe-bm-form .gpe-bm-input,
.gpe-bm-form .gpe-bm-select,
.gpe-bm-form .gpe-bm-textarea {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #fff;
    color: #1d2327;
    box-sizing: border-box;
    line-height: 1.4;
    text-transform: uppercase;
}

.gpe-bm-form .gpe-bm-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23646970' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.gpe-bm-select--bold { font-size: 1rem; font-weight: 700; }

.gpe-bm-form .gpe-bm-textarea {
    resize: vertical;
    min-height: 72px;
}

.gpe-bm-form .gpe-bm-input:focus,
.gpe-bm-form .gpe-bm-select:focus,
.gpe-bm-form .gpe-bm-textarea:focus {
    border-color: #003366;
    outline: 2px solid rgba(0,51,102,.18);
    outline-offset: 0;
}

.gpe-bm-form .gpe-bm-input[readonly] {
    background: #f6f7f7;
    color: #50575e;
    cursor: default;
}

.gpe-bm-input--num  { text-align: right; }
.gpe-bm-input--sm   { padding: 4px 6px; font-size: 0.8rem; min-width: 50px; }
.gpe-bm-input--desc { min-width: 140px; }

.gpe-bm-input--total {
    background: #e8f0e8 !important;
    font-weight: 700;
    text-align: right;
    min-width: 100px;
}

.gpe-bm-input--error {
    border-color: #d63638 !important;
    background: #fdf0f0 !important;
}

/* -----------------------------------------------------------------------
   Divider
------------------------------------------------------------------------ */
.gpe-bm-divider {
    border: none;
    border-top: 1px solid #dcdcde;
    margin: 12px 0 16px;
}

/* -----------------------------------------------------------------------
   Tables (Weights & Dimensions, Commercial Invoice)
------------------------------------------------------------------------ */
.gpe-bm-table-scroll {
    overflow-x: auto;
    margin-top: 8px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.gpe-bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 480px;
}

.gpe-bm-table thead th {
    background: #003366;
    color: #fff;
    padding: 7px 7px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
}

.gpe-bm-table thead th:first-child { width: 36px; }

.gpe-bm-table tbody tr:nth-child(even) { background: #f6f7f7; }

.gpe-bm-table td {
    padding: 5px 5px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f1;
}

.gpe-bm-table tfoot td {
    padding: 8px 6px;
    border-top: 2px solid #dcdcde;
    background: #f6f7f7;
}

.gpe-bm-table--inv .gpe-bm-col-rate,
.gpe-bm-table--inv .gpe-bm-col-amt { min-width: 100px; }

/* -----------------------------------------------------------------------
   Buttons (extends existing .gpe-bm-btn from above)
------------------------------------------------------------------------ */
.gpe-bm-btn--xs {
    padding: 2px 8px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.gpe-bm-btn--sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.gpe-bm-btn--outline {
    background: transparent;
    color: #003366;
    border: 1px dashed #003366;
}

.gpe-bm-btn--outline:hover {
    background: #003366;
    color: #fff;
    border-style: solid;
}

.gpe-bm-btn--secondary {
    background: #f0f6fc;
    color: #003366;
    border: 1px solid #003366;
}

.gpe-bm-btn--secondary:hover {
    background: #003366;
    color: #fff;
}

.gpe-bm-btn--danger {
    background: #fdf0f0;
    color: #d63638;
    border: 1px solid #d63638;
}

.gpe-bm-btn--danger:hover {
    background: #d63638;
    color: #fff;
}

.gpe-bm-btn--submit {
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 700;
}

/* -----------------------------------------------------------------------
   Form footer
------------------------------------------------------------------------ */
.gpe-bm-form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-top: none;
}

.gpe-bm-form-msg {
    flex: 1 1 200px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.gpe-bm-form-msg--hidden { display: none; }

.gpe-bm-form-msg--success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #46b450;
}

.gpe-bm-form-msg--error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #d63638;
}

.gpe-bm-spinner {
    color: #646970;
    font-style: italic;
    font-size: 0.88rem;
}

/* -----------------------------------------------------------------------
   Document attachments
------------------------------------------------------------------------ */
.gpe-bm-docs-list { margin-bottom: 16px; }

.gpe-bm-doc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #f6f7f7;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gpe-bm-doc-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #003366;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.gpe-bm-doc-link {
    flex: 1;
    font-size: 0.88rem;
    word-break: break-all;
}

.gpe-bm-doc-upload {
    border-top: 1px solid #dcdcde;
    padding-top: 16px;
    margin-top: 4px;
}

.gpe-bm-upload-msg {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.gpe-bm-upload-msg--ok  { color: #155724; }
.gpe-bm-upload-msg--err { color: #721c24; }
.gpe-bm-upload-msg--inf { color: #004085; }

/* -----------------------------------------------------------------------
   Helpers
------------------------------------------------------------------------ */
.gpe-bm-hint {
    font-size: 0.8rem;
    color: #646970;
    margin: 4px 0 0;
    display: block;
}

.gpe-bm-docs-empty { font-style: italic; }

.gpe-bm-text-r  { text-align: right !important; }
.gpe-bm-fw-bold { font-weight: 700; }

/* =======================================================================
   TRACKING FORM  (.gpe-bm-tracking-page)
======================================================================= */

/* -----------------------------------------------------------------------
   Header — logo + title
------------------------------------------------------------------------ */
.gpe-bm-tracking-page {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.6;
}

.gpe-bm-tracking-header {
    text-align: center;
    margin-bottom: 24px;
}

.gpe-bm-tracking-logo img {
    max-height: 72px;
    max-width: 260px;
    width: auto;
    display: inline-block;
    margin-bottom: 12px;
}

.gpe-bm-tracking-company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}

.gpe-bm-tracking-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 4px;
}

/* -----------------------------------------------------------------------
   Search form
------------------------------------------------------------------------ */
.gpe-bm-tracking-search-wrap {
    margin-bottom: 20px;
}

.gpe-bm-tracking-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.gpe-bm-tracking-input {
    flex: 1 1 260px;
    padding: 10px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-sizing: border-box;
}

.gpe-bm-tracking-input:focus {
    border-color: #003366;
    outline: 2px solid rgba(0,51,102,.18);
    outline-offset: 0;
}

.gpe-bm-tracking-btn {
    white-space: nowrap;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
}

/* -----------------------------------------------------------------------
   Alerts (found / not found)
------------------------------------------------------------------------ */
.gpe-bm-tracking-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 4px solid transparent;
}

.gpe-bm-tracking-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.gpe-bm-tracking-alert--success {
    background: #d4edda;
    color: #155724;
    border-color: #46b450;
}

.gpe-bm-tracking-alert--error {
    background: #f8d7da;
    color: #721c24;
    border-color: #d63638;
}

/* -----------------------------------------------------------------------
   Shipment details card
------------------------------------------------------------------------ */
.gpe-bm-tracking-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.gpe-bm-tracking-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    background: #003366;
    color: #fff;
}

.gpe-bm-tracking-card-id {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.gpe-bm-tracking-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.gpe-bm-tracking-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f1;
    border-right: 1px solid #f0f0f1;
}

.gpe-bm-tracking-detail-item:nth-child(even) {
    border-right: none;
}

.gpe-bm-tracking-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #646970;
}

.gpe-bm-tracking-detail-value {
    font-size: 0.92rem;
    color: #1d2327;
    font-weight: 600;
    word-break: break-word;
}

/* -----------------------------------------------------------------------
   Tracking history table
------------------------------------------------------------------------ */
.gpe-bm-tracking-history {
    margin-bottom: 24px;
}

.gpe-bm-tracking-history-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #003366;
}

.gpe-bm-tracking-table thead th {
    text-align: left;
}

.gpe-bm-tracking-no-events {
    color: #646970;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* -----------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------ */
@media screen and (max-width: 782px) {
    .gpe-bm-tracking-details-grid {
        grid-template-columns: 1fr;
    }

    .gpe-bm-tracking-detail-item {
        border-right: none;
    }

    .gpe-bm-tracking-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gpe-bm-tracking-btn {
        width: 100%;
        text-align: center;
    }
}

/* -----------------------------------------------------------------------
   Responsive (existing form rules)
------------------------------------------------------------------------ */
@media screen and (max-width: 782px) {
    .gpe-bm-form-col--half { flex: 1 1 100%; }

    .gpe-bm-tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .gpe-bm-form-footer { flex-direction: column; align-items: flex-start; }
}

/* =======================================================================
   BOOKING DASHBOARD  (.gpe-bm-dashboard-wrap)
   Styles for [gpe_booking_dashboard] shortcode list/detail views.
======================================================================= */
.gpe-bm-dashboard-wrap { max-width: 1100px; }

.gpe-bm-dash-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gpe-bm-dash-back {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.88rem;
}

.gpe-bm-dash-back:hover { text-decoration: underline; }

.gpe-bm-dash-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gpe-bm-dash-count {
    font-size: 0.82rem;
    color: #646970;
    font-weight: 400;
}

.gpe-bm-dash-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 16px 20px 20px;
    margin-bottom: 16px;
}

.gpe-bm-dash-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: #003366;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 0 0 14px;
    display: inline-block;
}

.gpe-bm-dash-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 20px;
}

.gpe-bm-dash-info-pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gpe-bm-dash-info-pair--wide { grid-column: 1 / -1; }

.gpe-bm-dash-key {
    font-size: 0.72rem;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.gpe-bm-dash-info-pair .gpe-bm-dash-val {
    font-size: 0.9rem;
    color: #1d2327;
}

.gpe-bm-dash-table-scroll {
    overflow-x: auto;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-top: 6px;
}

.gpe-bm-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.gpe-bm-dash-table thead th {
    background: #003366;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.78rem;
}

.gpe-bm-dash-table tbody tr:nth-child(even) { background: #f6f7f7; }

.gpe-bm-dash-table td {
    padding: 7px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f1;
}

.gpe-bm-dash-table tbody tr:last-child td { border-bottom: none; }

.gpe-bm-dash-list-table td:first-child { font-weight: 600; }

.gpe-bm-dash-num { text-align: right; white-space: nowrap; }

.gpe-bm-dash-empty {
    color: #646970;
    font-style: italic;
    margin: 0;
}

.gpe-bm-dash-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.gpe-bm-dash-page-info {
    font-size: 0.85rem;
    color: #646970;
}

/* =======================================================================
   ACTIVITY SUMMARY DASHBOARD  (.gpe-bm-dash-summary)
   Styles for [gpe_booking_dashboard_summary] shortcode.
   Also used by admin/views/dashboard.php (loaded via admin.css).
======================================================================= */
.gpe-bm-dash-summary { max-width: 1400px; }

.gpe-bm-dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #003366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px 4px 0 0;
}

.gpe-bm-dash-account {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.gpe-bm-dash-today { font-size: 0.88rem; opacity: 0.9; }
.gpe-bm-dash-today strong { font-weight: 700; }

/* Filter form */
.gpe-bm-dash-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-top: none;
    padding: 10px 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gpe-bm-dash-presets {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.gpe-bm-dash-preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
}

.gpe-bm-dash-preset:hover { background: #004d99; color: #fff; }

.gpe-bm-dash-preset .dashicons { font-size: 14px; width: 14px; height: 14px; }

.gpe-bm-dash-filter-center { flex: 1; text-align: center; min-width: 120px; }

.gpe-bm-dash-section-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gpe-bm-dash-filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.gpe-bm-dash-filter-label { font-size: 0.82rem; color: #50575e; white-space: nowrap; }

.gpe-bm-dash-date-input {
    padding: 4px 7px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Stat groups */
.gpe-bm-dash-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.gpe-bm-dash-stats-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.gpe-bm-dash-group {
    flex: 1;
    border-radius: 6px;
    padding: 14px 16px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.gpe-bm-dash-group--red    { background: #c0392b; }
.gpe-bm-dash-group--teal   { background: #16a085; }
.gpe-bm-dash-group--blue   { background: #2980b9; }
.gpe-bm-dash-group--gold   { background: #d4ac0d; }
.gpe-bm-dash-group--purple { background: #8e44ad; }

.gpe-bm-dash-group-meta {
    font-size: 0.72rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 8px;
}

.gpe-bm-dash-cells { display: flex; }

.gpe-bm-dash-cell { flex: 1; text-align: center; padding: 0 8px; }

.gpe-bm-dash-cell + .gpe-bm-dash-cell {
    border-left: 1px solid rgba(255,255,255,.25);
}

.gpe-bm-dash-group .gpe-bm-dash-val {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.01em;
    word-break: break-all;
}

.gpe-bm-dash-group .gpe-bm-dash-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,.82);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.gpe-bm-dash-group-spacer { flex: 1; }

/* Table panels */
.gpe-bm-dash-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gpe-bm-dash-table-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.gpe-bm-dash-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #003366;
    color: #fff;
    padding: 9px 14px;
}

.gpe-bm-dash-panel-title { font-weight: 700; font-size: 0.88rem; flex: 1; }

.gpe-bm-dash-panel-range { font-size: 0.78rem; opacity: 0.8; }

.gpe-bm-dash-panel-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gpe-bm-dash-panel-toggle:hover { background: rgba(255,255,255,.15); }

.gpe-bm-dash-tbl-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f1;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: #50575e;
}

.gpe-bm-dash-tbl-show select,
.gpe-bm-dash-search-input {
    padding: 3px 6px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 0.82rem;
}

.gpe-bm-dash-tbl-wrap { overflow-x: auto; }

.gpe-bm-dash-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.gpe-bm-dash-tbl th {
    background: #f6f7f7;
    font-size: 0.78rem;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #dcdcde;
}

.gpe-bm-dash-tbl td {
    padding: 5px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f1;
}

.gpe-bm-dash-tbl tbody tr:last-child td { border-bottom: none; }

.gpe-bm-dash-no-data td {
    color: #646970;
    font-style: italic;
    text-align: center;
    padding: 16px;
}

.gpe-bm-dash-tbl-footer {
    padding: 6px 12px;
    border-top: 1px solid #f0f0f1;
    font-size: 0.78rem;
    color: #646970;
}

.gpe-bm-dash-eye-btn {
    color: #0073aa;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.gpe-bm-dash-eye-btn:hover { color: #005177; }

.gpe-bm-dash-eye-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

.gpe-bm-dash-cn-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.gpe-bm-dash-cn-link:hover { color: #005177; text-decoration: underline; }

/* Activity summary responsive */
@media screen and (max-width: 1100px) {
    .gpe-bm-dash-tables { grid-template-columns: 1fr; }
}

@media screen and (max-width: 900px) {
    .gpe-bm-dash-stats-row { flex-wrap: wrap; }
    .gpe-bm-dash-group { flex: 1 1 calc(50% - 5px); min-width: 180px; }
    .gpe-bm-dash-group-spacer { display: none; }
}

@media screen and (max-width: 600px) {
    .gpe-bm-dash-topbar { flex-direction: column; align-items: flex-start; gap: 4px; }
    .gpe-bm-dash-filter { flex-direction: column; align-items: flex-start; }
    .gpe-bm-dash-filter-inputs { flex-wrap: wrap; }
    .gpe-bm-dash-group { flex: 1 1 100%; }
    .gpe-bm-dash-group .gpe-bm-dash-val { font-size: 1.3rem; }
	
	/* MOBILE SCROLL TABLE	 */
	.gpe-bm-status-result{
		overflow-x: scroll;
	}
}

/* -----------------------------------------------------------------------
   Public Navigation Bar
------------------------------------------------------------------------ */
.gpe-bm-public-nav {
    background: #1a2744;
    border-bottom: 3px solid #2271b1;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.gpe-bm-public-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 56px;
}

.gpe-bm-public-nav-brand {
    flex-shrink: 0;
    text-decoration: none;
}

.gpe-bm-public-nav-logo {
    height: 36px;
    width: auto;
    display: block;
}

.gpe-bm-public-nav-brand--text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.gpe-bm-public-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.gpe-bm-public-nav-link {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.gpe-bm-public-nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.gpe-bm-public-nav-link--active {
    background: #2271b1;
    color: #fff;
}

@media (max-width: 600px) {
    .gpe-bm-public-nav-inner { gap: 12px; padding: 0 12px; }
    .gpe-bm-public-nav-link  { padding: 6px 10px; font-size: 0.8rem; }
}

/* -----------------------------------------------------------------------
   Tab navigation row (Next / Back buttons in tab panels)
------------------------------------------------------------------------ */
.gpe-bm-tab-nav-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 0 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 24px;
}

/* -----------------------------------------------------------------------
   HAWB form
------------------------------------------------------------------------ */
.gpe-bm-hawb-wrap {
    padding: 8px 0;
}

.gpe-bm-hawb-masterref {
    display: inline-block;
    background: #eef4fc;
    border: 1px solid #b8d4f0;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: #1a2744;
    margin-bottom: 20px;
}

.gpe-bm-input--mt {
    margin-top: 6px;
}

/* -----------------------------------------------------------------------
   Frontend page wrapper — extra breathing room & card feel
------------------------------------------------------------------------ */
.gpe-bm-public {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2327;
}

/* Form card shadow */
.gpe-bm-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    overflow: hidden;
}

/* Tab strip */
.gpe-bm-form-tabs {
    display: flex;
    background: #1a2744;
    padding: 0;
    gap: 0;
    overflow-x: auto;
}

.gpe-bm-tab-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.70);
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.gpe-bm-tab-btn:hover {
    color: #fff;
}

.gpe-bm-tab-btn--active {
    color: #fff;
    border-bottom-color: #4a9eff;
    background: rgba(255,255,255,0.07);
}

/* Tab panels */
.gpe-bm-tab-panel {
    padding: 28px 28px 8px;
}

@media (max-width: 600px) {
    .gpe-bm-tab-panel { padding: 16px 14px 8px; }
	form.gpe-bm-status-form{
		width: 100% !important;
	}
}

/* Section headers */
.gpe-bm-section-head {
    background: #2271b1;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    border-radius: 4px;
    margin: 16px 0 12px;
    text-transform: uppercase;
}

/* Form footer */
.gpe-bm-form-footer {
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* -----------------------------------------------------------------------
   Modals (Change Status / Add Tracking Event) — shared with admin
------------------------------------------------------------------------ */
.gpe-bm-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gpe-bm-modal[hidden] { display: none; }
.gpe-bm-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}
.gpe-bm-modal-box {
    position: relative;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.gpe-bm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #1a2744;
    border-radius: 6px 6px 0 0;
}
.gpe-bm-modal-header h3 { margin: 0; font-size: 1rem; font-weight: 600; color: #fff; }
.gpe-bm-modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: rgba(255,255,255,0.7); line-height: 1; padding: 0 2px;
}
.gpe-bm-modal-close:hover { color: #fff; }
.gpe-bm-modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.gpe-bm-modal-field { margin-bottom: 14px; }
.gpe-bm-modal-field label { display: block; margin-bottom: 4px; font-size: 0.88rem; }
.gpe-bm-modal-footer {
    padding: 12px 20px; border-top: 1px solid #e2e8f0;
    display: flex; gap: 8px; align-items: center;
}
.gpe-bm-modal-msg { padding: 8px 12px; border-radius: 4px; font-size: 0.88rem; margin-top: 10px; }
.gpe-bm-modal-msg--ok    { background: #d4edda; color: #155724; border-left: 3px solid #46b450; }
.gpe-bm-modal-msg--error { background: #f8d7da; color: #721c24; border-left: 3px solid #d63638; }
.gpe-bm-modal-warning {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 12px; border-radius: 4px; font-size: 0.88rem; margin-bottom: 14px;
}
.gpe-bm-modal-warning .dashicons { flex-shrink: 0; font-size: 16px; width: 16px; height: 16px; margin-top: 1px; }
.gpe-bm-modal-warning--locked  { background: #f8d7da; color: #721c24; border-left: 3px solid #d63638; }
.gpe-bm-modal-warning--locked .dashicons  { color: #d63638; }
.gpe-bm-modal-warning--caution { background: #fff3cd; color: #856404; border-left: 3px solid #f0ad4e; }
.gpe-bm-modal-warning--caution .dashicons { color: #f0ad4e; }
.gpe-bm-modal-checkbox-label {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 0.88rem; font-weight: 600;
}
.gpe-bm-modal-checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: #1a2744; cursor: pointer; flex-shrink: 0;
}
.gpe-bm-modal-current-status { margin: 0 0 14px; font-size: 0.88rem; }
