/* New look (html.pie-premium) — booking-confirmations page.
   Owned by one session at a time; see .claude/skills/pie-new-ui/SKILL.md.
   Every selector starts with: html.pie-premium .pp-shell <this page's root class> */

/* ==========================================================================
   Booking Flow Confirmations (BookingConfirmation.vue, .booking-conf-dpage:has(.booking-lists)) — the design's
   P.bfc screen (sections.js): page head with eyebrow and subtitle, then one list card with the
   search bar, the table and the footer. Same recipe as the Trips and Profiles lists.
   ========================================================================== */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .crm-page-content {
    margin: 0;
    padding: 0;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .crm-page-content > .container-fluid {
    padding: 0 32px 32px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #full-screen-booking-confir {
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Full screen (maximize icon): the page background, not a white sheet */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #full-screen-booking-confir.toggle-full-screen {
    padding: 0 32px 32px;
    background: var(--pp-bg);
}

/* Page head: eyebrow, 30px title, subtitle; the maximize button on the right */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 0 !important;
    padding: 18px 0 22px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1 {
    margin: 0;
    color: var(--pp-ink);
    font: 30px/1.15 var(--pp-bold);
    letter-spacing: -.015em;
    text-transform: none;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1::before {
    content: "Workspace";
    display: block;
    margin-bottom: 6px;
    color: var(--pp-acc);
    font: 11.5px var(--pp-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1::after {
    content: "Bookings your clients completed from a proposal or a booking page";
    display: block;
    margin-top: 4px;
    color: var(--pp-ink-3);
    font: 14px var(--pp-sans);
    letter-spacing: 0;
}

/* Info tooltip next to the title: a quiet 18px icon */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1 .my-tool-tip {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1 .my-tool-tip i {
    margin: 0 !important;
    color: var(--pp-ink-3) !important;
    font-size: 18px !important;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1 .my-tool-tip:hover i {
    color: var(--pp-acc) !important;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title .full-screen.pie-icon-maximize {
    flex: none;
    float: none !important;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 38, 32, .05), 0 6px 16px -10px rgba(30, 40, 32, .25);
    color: var(--pp-ink-2);
    font-size: 16px !important;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title .full-screen.pie-icon-maximize:hover {
    background: color-mix(in srgb, var(--pp-acc) 8%, #fff);
}

/* List card */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap {
    border-radius: var(--pp-r-card);
    background: var(--pp-panel);
    box-shadow: var(--pp-shadow);
    overflow: hidden;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-inner-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Search bar across the top of the card (template1.css made it an inline block) */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-global-search {
    display: flex;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    border-radius: 0;
    background: var(--pp-panel) !important;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-global-search .vgt-global-search__input {
    flex: 0 1 420px;
    width: min(420px, 100%);
    padding-left: 0;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-global-search form {
    display: block;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-global-search .vgt-global-search__input input.vgt-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--pp-line);
    border-radius: 10px;
    background: var(--pp-panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa2' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 14px center / 16px no-repeat;
    color: var(--pp-ink);
    font: 13.5px var(--pp-sans);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-global-search .vgt-global-search__input input.vgt-input::placeholder {
    color: var(--pp-muted) !important;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table .vgt-global-search .vgt-global-search__input input.vgt-input:focus {
    border-color: var(--pp-acc-line);
    box-shadow: 0 0 0 3px var(--pp-acc-soft);
    outline: 0;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-global-search .input__icon {
    display: none;
}

/* The table's scrollbars (its own and the top one BookingConfirmation.vue adds): thin and light */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-responsive {
    scrollbar-width: thin;
    scrollbar-color: var(--pp-line-2) transparent;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom_top_scrollbar {
    height: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--pp-line-2) transparent;
}

/* Table */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table {
    border: 0;
    background: var(--pp-panel);
    font-family: var(--pp-sans);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table table.vgt-table thead th {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    background: var(--pp-panel) !important;
    color: var(--pp-ink-3);
    font: 13px var(--pp-sans);
    -webkit-text-stroke: .2px currentColor;
    white-space: nowrap;
    vertical-align: middle;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table thead th:is(.sorting-asc, .sorting-desc) {
    color: var(--pp-acc);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table thead th.sortable {
    padding-right: 30px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table thead th.sortable button {
    opacity: 0;
    transition: opacity .12s;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table thead th.sortable:is(:hover, .sorting-asc, .sorting-desc) button {
    opacity: 1;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table thead tr:has(> th.filter-th):not(:has(.vgt-input:not(:placeholder-shown))) {
    display: none;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .custom-table table.vgt-table tbody td {
    height: 56px;
    padding: 0 14px !important;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    background: transparent;
    color: var(--pp-ink-2);
    font-size: 13.5px;
    vertical-align: middle !important;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table.striped tbody tr:nth-of-type(odd) {
    background: transparent;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody tr:hover td {
    background: var(--pp-hover);
}

/* Columns (fixed set, no checkbox column — config.js booking_flow_confirmation):
   1 Action · 4 Order Id · 5 Trip Name · 9 PAX · 10 Paid Amount · 11 Total Amount · 12 Invoice */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(1) a {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--pp-ink-2);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(1) a:hover {
    background: color-mix(in srgb, var(--pp-acc) 8%, #fff);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(1) a i {
    color: inherit !important;
    font-size: 16px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(4) > div > div {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    background: #fafaf8;
    box-shadow: inset 0 0 0 1px var(--pp-line);
    color: var(--pp-ink);
    font: 12px var(--pp-bold);
    letter-spacing: .03em;
    white-space: nowrap;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(5) {
    color: var(--pp-ink);
    font-family: var(--pp-bold);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:is(:nth-child(9), :nth-child(10), :nth-child(11)) {
    font-variant-numeric: tabular-nums;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(12) a {
    margin: 0 !important;
    color: var(--pp-acc) !important;
    font-family: var(--pp-bold);
    text-decoration: none;
    white-space: nowrap;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table tbody td:nth-child(12) a:hover {
    text-decoration: underline;
}

/* "No data for table" */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) table.vgt-table .vgt-text-disabled {
    color: var(--pp-muted);
    font: 13.5px var(--pp-sans);
}

/* Footer: rows per page as a small field, pager as quiet buttons */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--pp-line);
    border-radius: 0;
    background: var(--pp-panel) !important;
    color: var(--pp-muted);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer::before,
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer::after {
    display: none;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer .footer__row-count {
    display: flex;
    align-items: center;
    padding: 0;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .footer__row-count__label {
    margin: 0 8px 0 0;
    color: var(--pp-muted);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .footer__row-count__select {
    height: 30px;
    padding: 0 26px 0 10px;
    border: 1px solid var(--pp-line);
    border-radius: 8px;
    background-color: var(--pp-panel);
    color: var(--pp-ink);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .footer__navigation {
    display: flex;
    align-items: center;
    gap: 4px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .footer__navigation__page-info {
    margin-right: 8px;
    white-space: nowrap;
    color: var(--pp-muted);
    font-size: 12.5px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer .footer__navigation__page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--pp-ink-2);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer .footer__navigation__page-btn:hover {
    background: var(--pp-hover);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer .footer__navigation__page-btn.disabled {
    color: var(--pp-line-2);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .vgt-wrap__footer .chevron {
    transform: scale(.7);
}

/* Summary popup (#booking_conf_summary): the design's dialog frame — 20px title, round × */
html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #booking_conf_summary .modal-content {
    border: 0;
    border-radius: var(--pp-r-card);
    background: var(--pp-panel);
    box-shadow: 0 30px 80px -30px rgba(20, 24, 20, .45);
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #booking_conf_summary .modal-header {
    padding: 20px 24px 12px;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #booking_conf_summary .modal-title {
    color: var(--pp-ink);
    font: 20px/1.2 var(--pp-bold);
    letter-spacing: -.01em;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #booking_conf_summary .btn-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    background-color: var(--pp-panel-2);
    background-size: 10px;
    opacity: .8;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #booking_conf_summary .btn-close:hover {
    opacity: 1;
}

html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #booking_conf_summary .modal-body {
    padding: 4px 24px 24px;
}

/* Gear menu (View Summary): b-popover is mounted on <body>, outside .pp-shell, so it is scoped to
   this page being open instead */
html.pie-premium:has(.pp-shell .booking-conf-dpage #full-screen-booking-confir.booking-lists) .popover.popover-reservation-settings {
    border: 0 !important;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(30, 38, 32, .06), 0 16px 36px -14px rgba(30, 40, 32, .35);
    font-family: var(--pp-sans);
}

html.pie-premium:has(.pp-shell .booking-conf-dpage #full-screen-booking-confir.booking-lists) .popover.popover-reservation-settings .popover-body {
    padding: 6px !important;
}

html.pie-premium:has(.pp-shell .booking-conf-dpage #full-screen-booking-confir.booking-lists) .popover.popover-reservation-settings .popover-body a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin: 0 !important;
    padding: 0 12px 0 8px;
    border-radius: 8px;
    color: var(--pp-ink) !important;
    font-size: 13.5px;
    white-space: nowrap;
}

html.pie-premium:has(.pp-shell .booking-conf-dpage #full-screen-booking-confir.booking-lists) .popover.popover-reservation-settings .popover-body a:hover {
    background: var(--pp-hover);
}

html.pie-premium:has(.pp-shell .booking-conf-dpage #full-screen-booking-confir.booking-lists) .popover.popover-reservation-settings .popover-body a i {
    padding: 0 !important;
    color: var(--pp-ink-3);
    font-size: 15px;
}

/* Narrow screens: tighter page gutter */
@media (max-width: 1000px) {
    html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .crm-page-content > .container-fluid,
    html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) #full-screen-booking-confir.toggle-full-screen {
        padding: 0 16px 24px;
    }

    html.pie-premium .pp-shell .booking-conf-dpage:has(.booking-lists) .booking-title.dashboard-titles > h1 {
        font-size: 24px;
    }
}
