/* GO enhanced UI profile -- fonts, hot-keys (p4) panel, booking appearance.
   Loaded only when ttbp_go_ui_profile = enhanced_colors_booking_ui.
   Does not change payment, tax, or settle behavior. */

:root {
    --ttbp-fs-xs: 14px;
    --ttbp-fs-sm: 15px;
    --ttbp-fs-base: 16px;
    --ttbp-fs-lg: 17px;
    --ttbp-fs-xl: 18px;
    --ttbp-fs-2xl: 20px;
    --ttbp-fs-3xl: 24px;
}

/* Enlarged dashboard type. Colors come from tokens + booking.js var(--ttbp-*) _CSS. */
#ttbp_dashboard {
    font-size: 15px !important;
}
#ttbp_topbar .top-btn {
    font-size: 15px;
}

/* Far-right hot-keys / items panel -- was 15% / min 160px */
#ttbp_panels {
    display: flex;
}
#ttbp_p2 {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
#ttbp_p4 {
    width: 300px !important;
    min-width: 300px !important;
    flex: 0 0 300px !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}
#ttbp_p4 .p4-search {
    padding: 8px 10px;
}
#ttbp_p4 .p4-search input {
    padding: 9px 12px 9px 34px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
}
#ttbp_p4 .p4-search i {
    font-size: 14px !important;
}
#ttbp_p4 .cat-tabs {
    gap: 6px;
    padding: 8px 10px;
}
#ttbp_p4 .cat-tab {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
}
#ttbp_p4 .p4-grid {
    min-height: 160px;
    padding: 6px 10px 12px;
}
#ttbp_p4 .p4-tile-wrap {
    gap: 6px;
}
#ttbp_p4 .p4-tile {
    min-height: 48px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
}
#ttbp_p4 .p4-tile-name {
    font-size: 15px !important;
    line-height: 1.25 !important;
}
#ttbp_p4 .p4-tile-cat {
    font-size: 10px !important;
    margin-top: 3px;
}
#ttbp_p4 .p4-tile-star {
    font-size: 14px !important;
    top: 4px;
    right: 6px;
}
#ttbp_p4 .cat-tab.cat-active {
    background: #1e4a8a;
    color: #fff;
    font-weight: 700;
    border-color: #3b82f6;
}

/* F&B register column a bit roomier to match the golf hot-keys size */
#fnb_register {
    flex-basis: 460px !important;
}
#fnb_dash {
    font-size: 15px;
}

/* Booking / sale focus appearance */
#ttbp_dashboard.ttbp-booking-focus #ttbp_topbar,
#ttbp_dashboard.ttbp-booking-focus #ttbp_p1,
#ttbp_dashboard.ttbp-booking-focus:not(.ttbp-sale-focus) #ttbp_p4 {
    filter: var(--ttbp-ios-mute-filter);
    pointer-events: none;
    transition: filter .28s ease;
}
#ttbp_dashboard.ttbp-booking-focus #ttbp_p2 {
    position: relative;
    isolation: isolate;
}
#ttbp_dashboard.ttbp-booking-focus #ttbp_p2 > :not(#ttbp_p3):not(#ttbp_reg) {
    filter: var(--ttbp-ios-mute-filter);
    pointer-events: none;
    transition: filter .28s ease;
}
#ttbp_dashboard.ttbp-booking-focus #ttbp_topbar,
#ttbp_dashboard.ttbp-booking-focus #ttbp_p1,
#ttbp_dashboard.ttbp-booking-focus #ttbp_p2,
#ttbp_dashboard.ttbp-booking-focus:not(.ttbp-sale-focus) #ttbp_p4 {
    position: relative;
}
#ttbp_dashboard.ttbp-booking-focus #ttbp_topbar::after,
#ttbp_dashboard.ttbp-booking-focus #ttbp_p1::after,
#ttbp_dashboard.ttbp-booking-focus #ttbp_p2::before,
#ttbp_dashboard.ttbp-booking-focus:not(.ttbp-sale-focus) #ttbp_p4::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: var(--ttbp-ios-scrim-bg);
}
#ttbp_dashboard.ttbp-booking-focus #ttbp_p3.open {
    opacity: 1;
    filter: none !important;
    pointer-events: auto;
    z-index: 8;
    position: fixed !important;
    top: var(--ttbp-booking-top, 66px) !important;
    left: var(--ttbp-booking-left, 0px) !important;
    right: var(--ttbp-booking-right, 300px) !important;
    bottom: var(--ttbp-booking-bottom, 0px) !important;
    height: auto !important;
    width: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--ttbp-ios-card-shadow);
    overflow: hidden;
}
#ttbp_dashboard.ttbp-sale-focus #ttbp_reg.open {
    opacity: 1;
    filter: none !important;
    pointer-events: auto;
    z-index: 9;
    position: fixed !important;
    top: var(--ttbp-booking-top, 66px) !important;
    bottom: var(--ttbp-booking-bottom, 0px) !important;
    right: var(--ttbp-sale-reg-right, 300px) !important;
    left: auto !important;
    width: var(--ttbp-sale-reg-width, 24%) !important;
    height: auto !important;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--ttbp-ios-card-shadow);
}
#ttbp_dashboard.ttbp-sale-focus #ttbp_p4 {
    opacity: 1;
    filter: none !important;
    pointer-events: auto;
    z-index: 9;
    position: fixed !important;
    top: var(--ttbp-booking-top, 66px) !important;
    bottom: var(--ttbp-booking-bottom, 0px) !important;
    right: var(--ttbp-booking-frame-right, 0px) !important;
    left: auto !important;
    width: var(--ttbp-sale-p4-width, 300px) !important;
    min-width: 0 !important;
    flex: none !important;
    height: auto !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
}
#ttbp_dashboard.ttbp-sale-focus #ttbp_p3.open {
    z-index: 8;
    border-right: none;
    border-radius: 12px 0 0 12px;
}
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_topbar,
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_p1,
#ttbp_dashboard.ttbp-light.ttbp-booking-focus:not(.ttbp-sale-focus) #ttbp_p4,
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_p2 > :not(#ttbp_p3):not(#ttbp_reg) {
    filter: var(--ttbp-ios-mute-filter-light);
}
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_topbar::after,
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_p1::after,
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_p2::before,
#ttbp_dashboard.ttbp-light.ttbp-booking-focus:not(.ttbp-sale-focus) #ttbp_p4::after {
    background: var(--ttbp-ios-scrim-bg-light);
}
#ttbp_dashboard.ttbp-light.ttbp-booking-focus #ttbp_p3.open {
    border: 1px solid rgba(30, 40, 55, 0.12);
    box-shadow: var(--ttbp-ios-card-shadow-light);
}
#ttbp_dashboard.ttbp-light.ttbp-sale-focus #ttbp_p3.open {
    border-radius: 12px 0 0 12px;
}

/* Compact Colors overlay */
.ttbp-colors-ov {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(8, 12, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ttbp-colors-win {
    width: min(720px, 94vw);
    max-height: 88vh;
    overflow: auto;
    background: #0f2340;
    border: 1px solid #1e4a8a;
    border-radius: 12px;
    color: #e5e7eb;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.ttbp-colors-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1e4a8a;
}
.ttbp-colors-hdr h2 {
    margin: 0;
    font-size: 18px;
}
.ttbp-colors-body {
    padding: 16px;
}
.ttbp-colors-schemes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.ttbp-colors-scheme {
    border: 1px solid #1e4a8a;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    background: #12356B;
    text-align: left;
    color: #e5e7eb;
}
.ttbp-colors-scheme.active {
    border-color: #94b8d4;
    box-shadow: 0 0 0 2px rgba(148, 184, 212, 0.35);
}
.ttbp-colors-scheme .nm {
    font-weight: 700;
    font-size: 13px;
    display: block;
}
.ttbp-colors-scheme .bl {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}
.ttbp-colors-swatches {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.ttbp-colors-swatches span {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-block;
}
.ttbp-colors-cores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ttbp-colors-core {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.ttbp-colors-core input[type="color"] {
    width: 42px;
    height: 32px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}
.ttbp-colors-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.ttbp-colors-actions button {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}
.ttbp-colors-save {
    background: #1e4a8a;
    color: #fff;
}
.ttbp-colors-close {
    background: #374151;
    color: #e5e7eb;
}
