.trp-wrap {
    max-width: 1180px;
    margin: 20px 0;
}

.trp-card,
.trp-request-box,
.trp-proposal-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 18px;
    margin: 16px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.trp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.trp-card h3,
.trp-card h4,
.trp-card h5 {
    margin-top: 0;
}

.trp-grid {
    display: grid;
    gap: 14px;
    align-items: start;
}

.trp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trp-span-3 { grid-column: span 3; }
.trp-span-4 { grid-column: span 4; }

.trp-wrap label {
    display: block;
    font-weight: 600;
}

.trp-wrap input[type="text"],
.trp-wrap input[type="email"],
.trp-wrap input[type="number"],
.trp-wrap input[type="datetime-local"],
.trp-wrap select,
.trp-wrap textarea {
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    font-weight: 400;
    box-sizing: border-box;
}

.trp-fieldset {
    border: 1px solid #dcdcde;
    padding: 12px;
    margin: 14px 0;
}

.trp-checkbox {
    display: block;
    margin: 8px 0;
    font-weight: 400;
}

.trp-button {
    display: inline-block;
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.trp-button:hover,
.trp-button:focus {
    background: #135e96;
    color: #fff;
}

.trp-button-small {
    padding: 5px 10px;
    font-size: 13px;
}

.trp-button-danger {
    background: #b32d2e;
}

.trp-button-danger:hover,
.trp-button-danger:focus {
    background: #8a2424;
}

.trp-notice {
    border-left: 4px solid #00a32a;
    padding: 12px;
    margin: 12px 0;
    background: #f6fff7;
}

.trp-notice-error {
    border-left-color: #d63638;
    background: #fff7f7;
}

.trp-warning {
    border-left: 4px solid #dba617;
    background: #fff8e5;
    padding: 10px;
}

.trp-muted {
    color: #646970;
    font-size: .95em;
}

.trp-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f0f0f1;
    font-size: 12px;
    font-weight: 700;
}

.trp-status-open { background: #e7f5ff; }
.trp-status-accepted { background: #e8f6ef; }
.trp-status-cancelled { background: #fbeaea; }
.trp-status-cancellation_requested { background: #fff4d6; }


.trp-notes {
    background: #f6f7f7;
}

.trp-inline-form {
    display: inline-block;
    margin-left: 6px;
}

.trp-cancel-box,
.trp-add-box,
.trp-proposal-box details {
    margin-top: 12px;
}

.trp-request-box {
    background: #fbfbfc;
}

@media (max-width: 900px) {
    .trp-grid-2,
    .trp-grid-3,
    .trp-grid-4 {
        grid-template-columns: 1fr;
    }
    .trp-span-3,
    .trp-span-4 {
        grid-column: span 1;
    }
    .trp-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.trp-subcard,
.trp-vehicle-card,
.trp-rating-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0;
    background: #fbfbfc;
}

.trp-vehicle-gallery,
.trp-photo-remove-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 10px 0;
}

.trp-vehicle-photo img,
.trp-photo-remove img {
    display: block;
    max-width: 140px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.trp-photo-remove {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 400;
}

.trp-inline-delete {
    margin-top: 8px;
    margin-left: 0;
}

.trp-wrap input[type="file"] {
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    font-weight: 400;
    box-sizing: border-box;
}

/* v1.2.0 responsive card presentation */
.trp-wrap,
.trp-wrap * {
    text-align: left;
    box-sizing: border-box;
}

.trp-form-card {
    border-radius: 14px;
}

.trp-card-list,
.trp-proposal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.trp-trip-card,
.trp-proposal-card,
.trp-admin-card {
    border-radius: 14px;
}

.trp-proposal-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.trp-proposal-status-accepted {
    border-left: 5px solid #00a32a;
}

.trp-proposal-status-active {
    border-left: 5px solid #2271b1;
}

.trp-proposal-status-invalidated,
.trp-proposal-status-cancelled {
    opacity: .78;
}

.trp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.trp-info-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.trp-info-item {
    background: #f6f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px;
    min-height: 72px;
}

.trp-info-item span {
    display: block;
    color: #646970;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.trp-info-item strong,
.trp-info-item small {
    display: block;
    line-height: 1.45;
}

.trp-price-total {
    font-size: 1.2em;
    white-space: nowrap;
}

.trp-extra-summary {
    border-top: 1px solid #ececec;
    margin-top: 12px;
    padding-top: 12px;
}

.trp-extra-line {
    margin: 8px 0;
}

.trp-stop-list {
    margin: 8px 0 0 20px;
}

.trp-additional-stops-panel {
    background: #f8fbff;
    border-color: #cfe7ff;
}

.trp-extra-editor {
    display: grid;
    gap: 12px;
}

.trp-extra-editor-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(130px, 1fr);
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fbfbfc;
}

.trp-card-action {
    margin-top: 12px;
}

@media (max-width: 700px) {
    .trp-card,
    .trp-request-box,
    .trp-proposal-box,
    .trp-proposal-card {
        padding: 14px;
        margin: 12px 0;
    }

    .trp-card-list,
    .trp-proposal-grid,
    .trp-info-grid,
    .trp-extra-editor-row {
        grid-template-columns: 1fr;
    }

    .trp-price-total {
        white-space: normal;
    }

    .trp-vehicle-photo img,
    .trp-photo-remove img {
        max-width: 100%;
    }
}

/* v1.3.0 partner profiles, panel navigation and friendlier cards */
.trp-dashboard-hero {
    border-radius: 18px;
    padding: 24px;
    margin: 16px 0;
    background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 100%);
    border: 1px solid #d8e8ff;
    box-shadow: 0 8px 28px rgba(34, 113, 177, .08);
}

.trp-dashboard-hero h3,
.trp-section-heading h4 {
    margin: 0 0 6px;
}

.trp-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2271b1;
}

.trp-panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.trp-panel-nav a,
.trp-summary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #c3d8ef;
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff;
    color: #135e96;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.trp-panel-nav a:hover,
.trp-panel-nav a:focus,
.trp-summary-button:hover,
.trp-summary-button:focus {
    background: #f0f7ff;
    color: #0a4b78;
}

.trp-summary-danger {
    border-color: #f0c0c0;
    color: #8a2424;
}

.trp-summary-danger:hover,
.trp-summary-danger:focus {
    background: #fff4f4;
    color: #8a2424;
}

details > .trp-summary-button {
    list-style: none;
    width: fit-content;
}

details > .trp-summary-button::-webkit-details-marker {
    display: none;
}

.trp-section-card {
    border-radius: 18px;
    padding: 22px;
}

.trp-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.trp-friendly-form {
    padding: 14px;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    background: #fbfcfd;
}

.trp-card-list.trp-driver-list,
.trp-card-list.trp-vehicle-list,
.trp-user-profile-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.trp-person-card,
.trp-user-profile-card,
.trp-vehicle-card,
.trp-request-box,
.trp-proposal-box {
    border-radius: 16px;
    transition: box-shadow .18s ease, transform .18s ease;
}

.trp-person-card:hover,
.trp-user-profile-card:hover,
.trp-vehicle-card:hover,
.trp-request-box:hover,
.trp-proposal-box:hover,
.trp-trip-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
    transform: translateY(-1px);
}

.trp-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.trp-price-block small,
.trp-total-reference {
    color: #646970;
}

.trp-info-request-box {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
}

.trp-cancel-box form,
.trp-add-box form,
.trp-info-request-box form,
.trp-rating-box form {
    margin-top: 12px;
}

.trp-admin-card h2,
.trp-user-profile-card h2 {
    font-size: 1.15rem;
    margin: 0 0 4px;
}

@media (max-width: 700px) {
    .trp-dashboard-hero,
    .trp-section-card {
        padding: 16px;
    }

    .trp-panel-nav a,
    .trp-summary-button {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
    }

    .trp-price-block {
        align-items: flex-start;
    }

    .trp-card-list.trp-driver-list,
    .trp-card-list.trp-vehicle-list,
    .trp-user-profile-list {
        grid-template-columns: 1fr;
    }
}

/* v1.4.0 shortcode context fallback and collapsed proposals */
.trp-admin-partner-selector {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.trp-proposal-status-expired {
    border-left: 5px solid #8c8f94;
    opacity: .82;
}

.trp-proposal-collapsed {
    padding: 0;
    overflow: hidden;
}

.trp-proposal-collapsed[open] {
    padding: 0;
}

.trp-collapsed-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    background: #f6f7f7;
}

.trp-collapsed-summary::-webkit-details-marker {
    display: none;
}

.trp-collapsed-summary span,
.trp-collapsed-summary strong,
.trp-collapsed-summary small {
    display: block;
    text-align: left;
}

.trp-collapsed-summary small {
    color: #646970;
    margin-top: 3px;
}

.trp-expand-label {
    border: 1px solid #c3d8ef;
    border-radius: 999px;
    padding: 6px 10px;
    color: #135e96;
    background: #fff;
    font-size: 0;
    font-weight: 800;
    white-space: nowrap;
}

.trp-expand-label::before {
    content: 'Expandir';
    font-size: 12px;
}

details[open] > summary .trp-expand-label::before {
    content: 'Ocultar';
}

.trp-collapsed-body {
    padding: 16px 18px 18px;
}

.trp-proposal-collapsed .trp-card-head {
    margin-top: 0;
}

@media (max-width: 700px) {
    .trp-collapsed-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .trp-expand-label {
        width: 100%;
        border-radius: 12px;
    }
}

/* v1.5.0 seguros e administração */
.trp-insurance-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f6f7f7;
    color: #1d2327;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.trp-insurance-approved {
    background: #edf7ed;
    color: #0a5c18;
}

.trp-insurance-pending_admin,
.trp-insurance-missing_file,
.trp-insurance-missing_date {
    background: #fff8e5;
    color: #7a4b00;
}

.trp-insurance-expired,
.trp-insurance-invalid {
    background: #fcf0f1;
    color: #8a2424;
}

.trp-button-light {
    background: #fff;
    color: #135e96;
    border: 1px solid #c3d8ef;
}

.trp-admin-card .button-link-delete {
    color: #b32d2e;
}

.trp-admin-card .button-link-delete:hover,
.trp-admin-card .button-link-delete:focus {
    color: #8a2424;
}

/* v1.6.0 propostas, motoristas e pedidos ignorados */
.trp-change-history {
    margin: 14px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
}

.trp-change-history > summary {
    margin: 0;
    border-radius: 0;
    background: #f8fafc;
}

.trp-change-list {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.trp-change-item {
    padding: 12px;
    border: 1px solid #e5edf5;
    border-radius: 10px;
    background: #fff;
    text-align: left;
}

.trp-change-item strong,
.trp-change-item small,
.trp-change-item p {
    display: block;
    text-align: left;
}

.trp-change-item small {
    margin-top: 2px;
    color: #646970;
}

.trp-change-item p {
    margin: 8px 0 0;
}

.trp-ignore-action {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trp-button-secondary {
    background: #f6f7f7;
    border-color: #c3c4c7;
    color: #1d2327;
}

.trp-button-secondary:hover,
.trp-button-secondary:focus {
    background: #fff;
    color: #135e96;
}

.trp-ignored-requests {
    margin-top: 18px;
}

.trp-request-ignored {
    background: #f8fafc;
    border-style: dashed;
}

.trp-driver-assign-box {
    margin-top: 12px;
}

/* v1.7.0 empresas, seguros pendentes e viaturas minimizadas */
.trp-collapsible-list {
    gap: 14px;
}

.trp-vehicle-collapsed {
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    text-align: left;
}

.trp-vehicle-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    text-align: left;
}

.trp-vehicle-summary strong,
.trp-vehicle-summary small {
    display: block;
    text-align: left;
}

.trp-vehicle-summary small {
    margin-top: 4px;
    color: #646970;
}

.trp-vehicle-details {
    padding: 16px 18px 18px;
    text-align: left;
}

.trp-pending-insurance {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px dashed #dba617;
    border-radius: 12px;
    background: #fff8e5;
    color: #1d2327;
    text-align: left;
}

.trp-pending-insurance p {
    margin: 6px 0 0;
    text-align: left;
}

.trp-success-inline {
    color: #0a5c18;
    font-weight: 700;
}

@media (max-width: 700px) {
    .trp-vehicle-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

.trp-vehicle-collapsible-list {
    gap: 14px;
}

.trp-collapsible-card {
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    text-align: left;
}

.trp-collapsible-card .trp-collapsed-body {
    padding: 16px 18px 18px;
}

.trp-vehicle-summary {
    list-style: none;
}

.trp-vehicle-summary::-webkit-details-marker {
    display: none;
}

.trp-collapsible-card[open] .trp-expand-label {
    background: #f0f6fc;
}


/* v1.9.0 movimentos operacionais e viaturas uma por linha */
.trp-card-list.trp-vehicle-list,
.trp-card-list.trp-vehicle-collapsible-list {
    grid-template-columns: 1fr !important;
}

.trp-vehicle-card,
.trp-vehicle-admin-card,
.trp-collapsible-card.trp-vehicle-admin-card {
    width: 100%;
}

.trp-trip-operations,
.trp-movement-history {
    margin-top: 14px;
}

.trp-movement-history {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fbfdff;
    overflow: hidden;
}

.trp-movement-history > summary {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #f0f7ff;
    width: 100%;
    justify-content: flex-start;
}

.trp-movement-list {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.trp-movement-item {
    border: 1px solid #e5edf5;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    text-align: left;
}

.trp-movement-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.trp-movement-title strong,
.trp-movement-title small,
.trp-movement-item p {
    display: block;
    text-align: left;
}

.trp-movement-title small {
    color: #646970;
}

.trp-movement-pickup_confirmed {
    border-left: 5px solid #2271b1;
}

.trp-movement-trip_completed {
    border-left: 5px solid #00a32a;
}

.trp-movement-no_show {
    border-left: 5px solid #b32d2e;
}

.trp-movement-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.trp-movement-photo img {
    display: block;
    max-width: 150px;
    height: auto;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.trp-operation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    margin-top: 12px;
}

.trp-no-show-box {
    margin-top: 0;
}

@media (max-width: 700px) {
    .trp-movement-title,
    .trp-operation-actions {
        flex-direction: column;
    }

    .trp-movement-photo img {
        max-width: 100%;
    }
}

.trp-status-no_show { background: #fcf0f1; }
.trp-movement-history > p { padding: 12px 14px; margin: 0; }

.trp-status-external {
    background: #eef2ff;
}

.trp-external-trip-box {
    border-left: 5px solid #3858e9;
}

.trp-compact-list {
    margin: 8px 0 0 18px;
    padding: 0;
    text-align: left;
}

.trp-compact-list li {
    margin: 4px 0;
}

/* v2.1.0-2.2.0 calendário / planilha operacional */
.trp-schedule-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.trp-schedule-day {
    border-left: 5px solid #2271b1;
}

.trp-schedule-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    background: #fbfdff;
    margin-top: 14px;
    text-align: left;
}

.trp-schedule-time {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
}

.trp-schedule-time strong {
    font-size: 22px;
    line-height: 1.1;
}

.trp-schedule-main {
    min-width: 0;
    text-align: left;
}

.trp-schedule-main .trp-card-head {
    margin-bottom: 8px;
}

@media (max-width: 720px) {
    .trp-schedule-item {
        grid-template-columns: 1fr;
    }

    .trp-schedule-time {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

/* v2.2.0 planilha operacional no site */
.trp-public-schedule-list .trp-public-schedule-item {
    grid-template-columns: 110px minmax(0, 1fr);
}

.trp-public-schedule-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.trp-public-schedule-day .trp-section-heading h5 {
    margin: 0;
    font-size: 20px;
}

@media (max-width: 720px) {
    .trp-public-schedule-list .trp-public-schedule-item {
        grid-template-columns: 1fr;
    }
}

/* v2.3.0 linhas compactas e expansíveis para viagens */
.trp-trip-row,
.trp-schedule-item.trp-trip-row,
.trp-public-schedule-list .trp-public-schedule-item,
.trp-vehicle-list .trp-vehicle-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.trp-trip-row-summary {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    list-style: none;
}

.trp-trip-row-summary::-webkit-details-marker {
    display: none;
}

.trp-trip-row-time {
    font-weight: 700;
    white-space: nowrap;
}

.trp-trip-row-route {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    text-align: left;
}

.trp-trip-row-route strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trp-trip-row-body,
.trp-collapsed-body {
    padding: 0 16px 16px;
    text-align: left;
}

.trp-schedule-list > .trp-trip-row,
.trp-schedule-day > .trp-trip-row,
.trp-card-list > .trp-trip-row {
    margin-top: 12px;
}

.trp-schedule-day .trp-trip-row + .trp-trip-row,
.trp-card-list .trp-trip-row + .trp-trip-row {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .trp-trip-row-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trp-trip-row-time {
        white-space: normal;
    }

    .trp-trip-row-route {
        align-items: flex-start;
    }

    .trp-trip-row-route strong {
        white-space: normal;
    }
}


/* v2.4.0: pedidos e páginas administrativas em linhas compactas, uma por linha */
.trp-customer-trip-row,
.trp-available-request-row,
.trp-request-ignored,
.trp-admin-partner-row,
.trp-admin-driver-row,
.trp-admin-vehicle-row,
.trp-one-column-list > .trp-card {
    display: block;
    width: 100%;
    margin: 12px 0;
    box-sizing: border-box;
}

.trp-customer-trip-row > summary,
.trp-available-request-row > summary,
.trp-request-ignored > summary,
.trp-admin-partner-row > summary,
.trp-admin-driver-row > summary,
.trp-admin-vehicle-row > summary {
    text-align: left;
}

.trp-customer-trip-row .trp-trip-row-body,
.trp-available-request-row .trp-trip-row-body,
.trp-admin-partner-row .trp-trip-row-body,
.trp-admin-driver-row .trp-trip-row-body,
.trp-admin-vehicle-row .trp-trip-row-body {
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 0;
    padding-top: 16px;
}

/* v2.6.0: linha vertical de proposta existente e listas administrativas compactas */

.trp-has-partner-proposal > .trp-trip-row-summary {
    border-left: 4px solid #168a3a;
}

.trp-admin-partner-row,
.trp-admin-driver-row,
.trp-admin-vehicle-row {
    display: block;
    width: 100%;
}

@media (max-width: 720px) {
    .trp-trip-row-summary {
        grid-template-columns: 1fr auto;
    }
    .trp-trip-row-route {
        grid-column: 1 / -1;
    }
}

/* v2.7.0: filtros e linhas administrativas/operacionais compactas */
.trp-admin-filter-form,
.trp-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 16px 0;
    padding: 16px;
}
.trp-admin-filter-form label,
.trp-filter-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    text-align: left;
}
.trp-admin-trip-row,
.trp-available-proposal-row {
    display: block;
    width: 100%;
    margin: 12px 0;
}
.trp-admin-trip-row > summary,
.trp-available-proposal-row > summary {
    text-align: left;
}
.trp-available-proposal-row .trp-proposal-box {
    margin: 0;
}
.trp-available-proposal-row .trp-trip-row-body {
    padding-top: 14px;
}

/* v3.5.0: propostas ao cliente minimizadas, uma por linha e melhor contraste branco/azul */
.trp-customer-proposal-list,
.trp-proposal-list {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin: 12px 0 18px;
}

.trp-customer-proposal-row {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #bfd7f2;
    border-left: 5px solid #2271b1;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(34, 113, 177, .07);
}

.trp-customer-proposal-row:nth-of-type(even) {
    border-color: #d8e8ff;
    border-left-color: #135e96;
}

.trp-customer-proposal-row.trp-proposal-status-accepted {
    border-left-color: #00a32a;
}

.trp-proposal-row-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    border-bottom: 1px solid transparent;
}

.trp-customer-proposal-row[open] > .trp-proposal-row-summary {
    border-bottom-color: #d8e8ff;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
}

.trp-proposal-row-vehicle strong,
.trp-proposal-row-vehicle small,
.trp-proposal-row-price strong,
.trp-proposal-row-price small {
    display: block;
    text-align: left;
}

.trp-proposal-row-vehicle strong {
    color: #0a4b78;
}

.trp-proposal-row-vehicle small,
.trp-proposal-row-price small {
    color: #646970;
    margin-top: 3px;
}

.trp-proposal-row-price {
    min-width: 120px;
    text-align: right;
}

.trp-proposal-row-price strong {
    color: #135e96;
    font-size: 1.08rem;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .trp-proposal-row-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trp-proposal-row-price,
    .trp-proposal-row-price strong,
    .trp-proposal-row-price small {
        min-width: 0;
        text-align: left;
    }
}

/* v3.6.0: ocultar o rótulo de estado para propostas válidas e trocar etiqueta ao expandir */
.trp-proposal-row-price small:empty { display: none; }

/* v3.7.0: mensagens da viagem e extras personalizados */
.trp-message-thread {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #d6e6ff;
    border-radius: 14px;
    background: #f8fbff;
}

.trp-message-item {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border-left: 4px solid #2b6cb0;
}

.trp-message-partner_message { border-left-color: #174ea6; }
.trp-message-customer_message { border-left-color: #0f9d58; }

.trp-message-meta {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    color: #35506b;
    font-size: 13px;
}

.trp-message-item p {
    margin: .5em 0 0;
}

.trp-extra-editor-custom {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d6e6ff;
}


/* v3.8.0 mensagens, shortcodes e listagem global */
.trp-info-request-box[open] ~ .trp-accept-proposal-action,
.trp-message-form-box[open] ~ .trp-accept-proposal-action {
    display: none !important;
}

.trp-date-group-heading {
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f0f6fc;
    color: #0a4b78;
    text-align: left;
    border: 1px solid #c3d8ef;
}

.trp-shortcode-admin-card code {
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f0f6fc;
    color: #0a4b78;
}


/* v3.9.0: pedidos cancelados e listagem publica/global em coluna unica */
.trp-trip-cancelled > .trp-trip-row-summary {
    border-left: 4px solid #b32d2e;
}

.trp-global-upcoming-list,
.trp-public-schedule-list {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
}

.trp-global-upcoming-list > .trp-global-upcoming-row,
.trp-public-schedule-list > .trp-public-schedule-item {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    flex: 0 0 100% !important;
    box-sizing: border-box;
}

.trp-global-upcoming-summary {
    display: grid !important;
    grid-template-columns: minmax(130px, .8fr) minmax(130px, .8fr) minmax(220px, 1.8fr) minmax(140px, .9fr);
    align-items: center;
    gap: 12px;
    width: 100%;
}

.trp-global-upcoming-summary .trp-trip-row-route {
    justify-content: flex-start;
}

@media (max-width: 760px) {
    .trp-global-upcoming-summary {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}


/* v4.0.0: origem/destino em linhas separadas e validação visual de obrigatórios */
.trp-global-upcoming-summary .trp-route-stacked,
.trp-public-schedule-item .trp-route-stacked {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px;
    min-width: 0;
}

.trp-route-stacked .trp-route-origin,
.trp-route-stacked .trp-route-destination {
    display: block;
    text-align: left;
    line-height: 1.35;
    min-width: 0;
}

.trp-route-stacked small {
    display: block;
    color: #646970;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2px;
}

.trp-route-stacked strong {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.trp-required-star {
    color: #d63638;
    font-weight: 800;
    margin-left: 4px;
}

.trp-required-note {
    color: #646970;
    font-size: 12px;
    margin: 4px 0 12px;
}

.trp-button:disabled,
.trp-button[disabled],
button:disabled,
input[type="submit"]:disabled {
    opacity: .52;
    cursor: not-allowed !important;
    filter: grayscale(.15);
}

.trp-wrap input:required:invalid,
.trp-wrap select:required:invalid,
.trp-wrap textarea:required:invalid {
    border-color: #d63638;
    box-shadow: 0 0 0 1px rgba(214,54,56,.12);
}

.trp-wrap input:required:valid,
.trp-wrap select:required:valid,
.trp-wrap textarea:required:valid {
    border-color: #8fcf9f;
}


/* v4.2.0: viagens externas em uma linha e mapa publico de destinos */
.trp-admin-external-trip-list {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
}

.trp-admin-external-trip-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.trp-admin-external-trip-summary {
    display: grid !important;
    grid-template-columns: minmax(110px, .7fr) minmax(140px, .8fr) minmax(260px, 2fr) minmax(110px, .7fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.trp-destination-map-card {
    margin: 14px 0 18px;
}

.trp-destination-map {
    width: 100%;
    min-height: 360px;
    border: 1px solid #d7e8f7;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f8fd;
}

.trp-destination-map .leaflet-container,
.trp-destination-map.leaflet-container {
    min-height: 360px;
}

.trp-map-note {
    margin-top: 8px;
}

.trp-map-fallback-list {
    margin: 10px 0 0 18px;
}

@media (max-width: 900px) {
    .trp-admin-external-trip-summary {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

/* v4.3.0: mapa publico recolhido e corrigido */
details.trp-destination-map-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0;
    box-sizing: border-box;
}

.trp-destination-map-card > summary.trp-map-summary {
    cursor: pointer;
    list-style: none;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #135e96;
}

.trp-destination-map-card > summary.trp-map-summary::-webkit-details-marker {
    display: none;
}

.trp-map-summary span:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    min-width: 0;
}

.trp-map-summary small {
    color: #646970;
    font-weight: 500;
}

.trp-destination-map-wrap {
    margin-top: 12px;
}

.trp-destination-map {
    position: relative;
    display: block;
    width: 100% !important;
    height: 380px;
    min-height: 380px;
    border: 1px solid #d7e8f7;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f8fd !important;
}

.trp-destination-map .leaflet-container,
.trp-destination-map.leaflet-container {
    width: 100% !important;
    height: 380px !important;
    min-height: 380px !important;
    background: #eef6fc !important;
}

.trp-destination-map .leaflet-tile-container img,
.trp-destination-map .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

@media (max-width: 720px) {
    .trp-destination-map-card > summary.trp-map-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .trp-destination-map,
    .trp-destination-map .leaflet-container,
    .trp-destination-map.leaflet-container {
        height: 320px !important;
        min-height: 320px !important;
    }
}

/* v4.4.0: mapa isolado em iframe para evitar conflitos com temas */
.trp-destination-map-frame {
    display: block !important;
    width: 100% !important;
    height: 380px !important;
    min-height: 380px !important;
    border: 0 !important;
    border-radius: 16px;
    background: #eef6fc;
}

.trp-map-fallback {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #d7e8f7;
    border-radius: 14px;
    background: #f8fbff;
}

.trp-map-fallback-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    text-align: left;
}

.trp-map-fallback-list small {
    color: #646970;
}

@media (max-width: 720px) {
    .trp-destination-map-frame {
        height: 320px !important;
        min-height: 320px !important;
    }
}

/* v4.5.0: mapa visual estatico sem tiles externos */
.trp-destination-map {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.trp-static-map {
    position: relative;
    width: 100%;
    min-height: 360px;
    border: 1px solid #d7e8f7;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 28%, rgba(19, 94, 150, .13) 0 11%, transparent 12%),
        radial-gradient(circle at 78% 20%, rgba(19, 94, 150, .10) 0 10%, transparent 11%),
        radial-gradient(circle at 70% 76%, rgba(19, 94, 150, .12) 0 16%, transparent 17%),
        linear-gradient(135deg, #f8fbff 0%, #edf6fd 48%, #ffffff 100%);
    box-shadow: inset 0 0 0 1px rgba(19, 94, 150, .04);
}

.trp-static-map::before {
    content: '';
    position: absolute;
    inset: 26px 32px;
    border: 2px dashed rgba(19, 94, 150, .18);
    border-radius: 46% 54% 50% 50%;
    transform: rotate(-8deg);
}

.trp-static-map::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 1px;
    background: rgba(19, 94, 150, .12);
}

.trp-static-map-watermark {
    position: absolute;
    left: 18px;
    top: 14px;
    z-index: 1;
    color: #135e96;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    opacity: .72;
}

.trp-static-map-axis {
    position: absolute;
    left: 50%;
    width: 1px;
    height: 72%;
    top: 14%;
    background: rgba(19, 94, 150, .10);
}

.trp-static-map-pin {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -100%);
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #135e96;
    color: #fff !important;
    text-decoration: none !important;
    rotate: -45deg;
    box-shadow: 0 8px 18px rgba(19, 94, 150, .24);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trp-static-map-pin span {
    rotate: 45deg;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.trp-static-map-pin:hover,
.trp-static-map-pin:focus {
    background: #0f3d66;
    outline: 3px solid rgba(19, 94, 150, .22);
    outline-offset: 2px;
}

.trp-map-fallback-list {
    margin-left: 20px;
}

.trp-map-fallback-list li {
    border-bottom: 1px solid #e4eef8;
    padding: 8px 0;
}

.trp-map-fallback-list li:last-child {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .trp-static-map {
        min-height: 280px;
    }
    .trp-static-map-pin {
        width: 26px;
        height: 26px;
    }
}

/* v4.9.0 - popup confirmation after successful operations */
.trp-success-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 34, 68, .42);
    backdrop-filter: blur(2px);
}

.trp-success-popup-box {
    width: min(460px, 100%);
    border-radius: 18px;
    border: 1px solid #d8e8f5;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 34, 68, .24);
    padding: 26px;
    text-align: left;
}

.trp-success-popup-box h3 {
    margin: 0 0 10px;
    color: #0f4f85;
    font-size: 22px;
}

.trp-success-popup-box p {
    margin: 0 0 10px;
}

.trp-success-popup-box p:last-child {
    margin-bottom: 0;
}

.trp-success-skip {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
