/* =========================================================
   Travel CRM ‑ modern UI
   ========================================================= */
:root {
    --tp-primary: #0073aa;
    --tp-primary-dark: #005c87;
    --tp-bg: #f5f7fa;
    --tp-card-bg: #ffffff;
    --tp-card-radius: 16px;
    --tp-shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --tp-shadow-md: 0 2px 5px rgba(0, 0, 0, .1);
    --tp-accent-light: #eaf5fa;
    --tp-danger: #e74c3c;
    --tp-warning: #f39c12;
    --tp-success: #2ecc71;
}

body {
    background: var(--tp-bg);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
}

/* ---------- Layout wrappers ---------- */
.tp-container {
    margin: 20px;
}

.tp-card {
    background: var(--tp-card-bg);
    border-radius: var(--tp-card-radius);
    box-shadow: var(--tp-shadow-md);
    padding: 24px;
    margin-bottom: 24px;
}

.tp-card h2,
.tp-card h3 {
    margin: 0 0 12px 0;
}

.tp-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tp-header-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   DASHBOARD HERO  – White version with animated bubbles
   ────────────────────────────────────────────────────────────*/
   .tp-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:24px;
    margin:0 0 28px;
    padding:26px 24px;
    background:#fff;                       /* white card */
    border:1px solid #e8edf2;
    border-radius:20px;
    box-shadow:var(--tp-shadow-md);
    position:relative;
    overflow:hidden;
}

/* animated pastel bubbles sitting *under* the content */
.tp-hero::before{
    content:'';
    position:absolute;
    top:-15%; left:-15%;
    width:130%; height:130%;
    background:
        radial-gradient(circle at 25% 25% ,
            rgba(0,115,170,.10) 0%, transparent 55%),
        radial-gradient(circle at 78% 65% ,
            rgba(0,152,215,.08) 0%, transparent 60%);
    animation:tpBubbles 24s linear infinite;
    will-change:transform;
}
@keyframes tpBubbles{
    0%   {transform:rotate(0deg)   scale(1);}
    50%  {transform:rotate(180deg) scale(1.18);}
    100% {transform:rotate(360deg) scale(1);}
}

/* content block lives above the bubbles */
.tp-hero > *{z-index:0;}

/* headline & sub‑line */
.tp-hero-title{
    font-size:clamp(1rem,4vw,2rem);
    font-weight:700;
    color:var(--tp-primary);
    margin:0 0 4px;
}
.tp-hero-sub{
    margin:0;
    font-size:clamp(.95rem,1.7vw,1.05rem);
    color:#555;
    opacity:.9;
}

/* action buttons */
.tp-hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}
.tp-button‑ghost{
    background:transparent;
    color:var(--tp-primary);
    border:2px solid var(--tp-primary);
}
.tp-button‑ghost:hover{
    background:var(--tp-primary);
    color:#fff;
}

/* mobile stacking */
@media(max-width:600px){
    .tp-hero{
        flex-direction:column;
        text-align:center;
        padding:30px 18px;
    }
    .tp-hero-actions{justify-content:center;}
}

/* ---------- Customer Info ---------- */


/* ─── Small helpers for new card ───────────────────────────*/
.tp-card-title{font-size:1.25rem;font-weight:700;color:#222}
.tp-card-sub  {font-size:.9rem;color:#666}

.tp-info-head{
    display:flex;justify-content:space-between;align-items:center;
    flex-wrap:wrap;gap:12px;margin-bottom:18px;
}


.tp-dl{
    display:grid;
    grid-template-columns:max-content 1fr;
    gap:6px 24px;             
    margin:0 0 22px;
}


.tp-dl dt{font-weight:600;color:#555;margin:0}
.tp-dl dd{margin:0;font-weight:500;color:#333}

/* re‑use your primary colour as “ghost” button border */
.tp-button-ghost{
    background:#fff;color:var(--tp-primary-dark);
    border:2px solid var(--tp-primary);
}
.tp-button-ghost:hover{
    background:var(--tp-primary);color:#fff;
}

/* two‑column edit grid (inherits .tp-input etc.) */
.tp-form-grid-2{
    display:grid;gap:18px 20px;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.tp-field span{display:block;margin:0 0 4px;font-weight:600;font-size:.87rem;color:#555}

/* last row (Save / Cancel) should span full width */
.tp-span-2{grid-column:1 / -1;text-align:right}

.tp-button-sm        { padding:6px 14px; font-size:.85rem; }
/* meta bar under each customer card */
.tp-meta-bar{
    margin-top:14px; padding-top:10px;
    border-top:1px solid #eee;
    font-size:.85rem; color:#666;
    display:flex; justify-content:space-between; align-items:center;
}


/* === Stats‑grid & status icon tweaks ======================= */
.tp-stats-grid{
    display:grid;
    gap:18px 16px;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    margin:0 0 24px;
}
.tp-stat-card{
    background:var(--tp-accent-light);
    border-radius:12px;
    padding:20px 18px;
    text-align:center;
    box-shadow:var(--tp-shadow-sm);
    position:relative;
}
.tp-stat-card .value{          /* money / dates */
    font-size:1.35rem;
    font-weight:700;
}
.tp-stat-card .label{
    display:block;
    margin-top:6px;
    font-size:.8rem;
    font-weight:600;
    color:#555;
    text-transform:uppercase;
    letter-spacing:.3px;
}
.tp-status-icon{
    display:inline-block;
    font-size:1.6rem;
    line-height:1;
    font-weight:700;
}
.tp-status-icon.success{color:var(--tp-success);}
.tp-status-icon.danger {color:var(--tp-danger);}


@keyframes fadeSlide{
    from{opacity:0;transform:translateY(8px)}
    to  {opacity:1;transform:translateY(0)}
}

/* === Transaction history refinements ====================== */
.tp-card-head{
    display:flex;justify-content:space-between;align-items:center;
    margin-bottom:12px;flex-wrap:wrap;gap:12px;
}
.tp-total-badge{
    background:var(--tp-primary);color:#fff;font-weight:700;
    padding:4px 10px;border-radius:20px;font-size:.8rem;
}
.tp-table-wrapper.scroll-x{
    overflow-x:auto;position:relative;animation:fadeIn .25s ease-in;
}
.tp-table-wrapper.scroll-x::after{/* gentle gradient on overflow */
    content:'';position:absolute;top:0;right:0;width:40px;height:100%;
    pointer-events:none;
}
.tp-table-history th,
.tp-table-history td{white-space:nowrap;}
.tp-table-history td.tp-center{text-align:center;}
.tp-table-btn{
    display:inline-block;font-size:.78rem;font-weight:600;
    padding:6px 10px;border-radius:14px;background:#e8f2f8;color:#0073aa;
    margin:2px 3px;text-decoration:none;white-space:nowrap;
    transition:background .15s;
}
.tp-table-btn:hover{background:#d6e9f4;}
.tp-table-btn.danger{background:#fdeeee;color:#c0392b;}
.tp-table-btn.danger:hover{background:#f9d9d9;}

@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;}}


/* one‑liner helpers reused by several tables */
.tp-table-wrapper      { overflow-x:auto; }
.tp-amount             { text-align:right; }
.tp-center             { text-align:center; }

/* pill‑style outline button (matches history table) */
.tp-button-pill        { padding:6px 16px; border-radius:999px; font-size:.85rem; }
.tp-button-outline     { background:#fff; color:var(--tp-primary); 
                          border:1px solid var(--tp-primary); }
.tp-button-outline:hover { background:var(--tp-primary); color:#fff; }



/* ---------- Action groups & search bar ---------- */


.tp-action-group,
.tp-search-group,
.tp-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tp-search-group form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tp-card-header .tp-add-btn {
    margin-left: auto;
}

.tp-stats-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tp-stat-item {
    flex: 1;
    min-width: 180px;
    background: var(--tp-accent-light);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--tp-shadow-sm);
}

/* ---------- Tables ---------- */
.tp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tp-table th,
.tp-table td {
    border: 1px solid #eee;
    padding: 14px;
}

.tp-table th {
    background: #fafafa;
    font-weight: 600;
    text-align: left;
}

.tp-table.modern-table tbody tr:nth-child(even) {
    background: #fcfcfc;
}

.tp-table.modern-table tbody tr:hover {
    background: #f3f7fa;
}

/* ---------- Badges ---------- */
.tp-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    text-transform: capitalize;
}

.tp-badge-success {
    background: var(--tp-success);
    color: #fff;
}

.tp-badge-warning {
    background: var(--tp-warning);
    color: #fff;
}

.tp-badge-danger {
    background: var(--tp-danger);
    color: #fff;
}

/* ---------- Buttons & inputs ---------- */
.tp-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--tp-primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    border: none;
    font-weight: 600;
}

.tp-button:hover {
    background: var(--tp-primary-dark);
}

.tp-form-field {
    position: relative;
}

.tp-input {
    width: 100%;
    padding: 14px 14px 14px 12px;
    border-radius: 24px;
    border: 1px solid #ccc;
    background: #fff;
    outline: none;
    transition: border .15s, box-shadow .15s;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    width: 100%;
    padding: 14px 14px 14px 12px;
    border-radius: 24px;
    border: 1px solid #ccc;
    background: #fff;
    outline: none;
    transition: border .15s, box-shadow .15s;
}

.tp-input:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, .15);
}

/* floating label */
.tp-input+label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    font-size: .85rem;
    color: #777;
    pointer-events: none;
    transition: .15s;
}

.tp-input:focus+label,
.tp-input:not(:placeholder-shown)+label {
    top: -8px;
    font-size: .75rem;
    color: var(--tp-primary-dark);
}

/* style selects to match inputs */
.tp-select {
    width: 100%;
    padding: 14px;
    margin: 5px;
    border-radius: 24px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: .95rem;
}

/* ⬆ NEW */
/* ---------- Modal ---------- */
.tp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.tp-modal-content {
    background: #fff;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--tp-card-radius);
    padding: 32px 28px;
    position: relative;
    box-shadow: var(--tp-shadow-md);
}

.tp-modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

.tp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    font-weight: bold;
    color: #999;
    font-size: 1.25rem;
}

.tp-modal-close:hover {
    color: #333;
}

/* modal grid */
.tp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
}

@media(max-width:600px) {
    .tp-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* full‑width submit */
.tp-modal-content .tp-submit {
    width: 100%;
    margin-top: 8px;
}

/* ---------- Misc ---------- */
.tp-transaction-preview {
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    font-style: italic;
}

/* timeline */
.tp-timeline{margin:0;padding:0;list-style:none;position:relative}
.tp-timeline:before{content:'';position:absolute;left:9px;top:0;bottom:0;width:2px;background:#e5e7eb}
.tp-timeline>li{position:relative;padding-left:28px;margin:16px 0;font-size:.95rem}
.tp-timeline>li:before{content:'';position:absolute;left:1px;top:4px;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid var(--tp-primary)}
.tp-timeline>li.task:before{background:#fef3c7;border-color:#f59e0b}
.tp-timeline>li.done:before{background:#d1fae5;border-color:#10b981}
.tp-time{display:block;color:#6b7280;font-size:.8rem;margin-bottom:2px}


/* ---------- Elementor override safety ---------- */
.tp-container .tp-button,
.elementor-kit-11 .tp-container .tp-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--tp-primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    border: none;
    font-weight: 600;
}

.tp-container .tp-button:hover {
    background: var(--tp-primary-dark);
}

/* ===== Utility helpers ===== */
.tp-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tp-col {
    flex: 1;
    min-width: 300px;
}

.tp-info-block {
    background: #eaf5fa;
    border-radius: 12px;
    padding: 18px 24px;
    line-height: 1.5;
    font-size: .95rem;
    font-weight: 500;
}

.tp-table-wrapper {
    overflow-x: auto;
}

.tp-status {
    font-weight: 600;
}

.tp-amount {
    text-align: right;
}


.tp-form-grid {
    display: grid;
    gap: 18px 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Only these rows span the whole grid */
#product-row,
#brand-row,
#resort-row {
    grid-column: 1 / -1;      /* full width */
}

/* Custom‑price should behave like a normal field — no span */
#custom-price-row {
    grid-column: auto;        /* default grid behaviour */
}


.tp-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ==================================================================
   SALES-PATH  (stage buttons with duration underneath)
   ================================================================== */
   .tp-status-path{                       /* container / rail */
    display:flex;
    overflow:hidden;                   /* hide overlapping chevrons   */
    border-radius:12px;
    background:#e9ecef;
    box-shadow:var(--tp-shadow-sm);
}
/* all segments same width ----------------------------------------- */
.tp-status-path form{flex:1 1 0;margin:0;}
.tp-status-path form+form{margin-left:-28px;}  /* hide chevron overlap */

/* ------------------------------------------------------------------
   clickable segment
-------------------------------------------------------------------*/
.tp-status-step{
    all:unset;                         
    display:flex;                      
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;                           
    width:100%;
    min-height:28px; 
    padding:18px 20px !important;      
    font:600 .9rem/1 var(--default-font,Helvetica,Arial,sans-serif);
    color:#555!important;
    background:#e9ecef!important;
    text-align:center;
    user-select:none;
    position:relative;
    transition:background .18s,color .18s,box-shadow .18s,transform .18s;
}
/* chevron tip ------------------------------------------------------ */
.tp-status-step::after{
    content:"";
    position:absolute;
    top:0;right:-28px;width:28px;height:100%;
    background:inherit;
    transform:skewX(-45deg);
    transform-origin:0 0;
}
/* completed / current states -------------------------------------- */
.tp-status-step.completed{background:var(--tp-success)!important;color:#fff!important;}
.tp-status-step.is-current{background:var(--tp-primary)!important;color:#fff!important;cursor:default;}
.tp-status-step.completed::after,
.tp-status-step.is-current::after{background:inherit;}
/* hover (up-coming steps only) ------------------------------------ */
.tp-status-step:hover:not(.is-current):not([disabled]){
    background:#d7dbe0!important;
    box-shadow:0 2px 5px rgba(0,0,0,.08);
    transform:translateY(-2px);
}
/* disabled state -------------------------------------------------- */
.tp-status-step:disabled{opacity:.85;cursor:not-allowed;outline:none;}

/* helper spans ---------------------------------------------------- */
.tp-step-label{font-weight:600;}
.tp-step-age  {font-size:.72rem;opacity:.75;}
/* keep age readable on coloured segments */
.tp-status-step.completed .tp-step-age,
.tp-status-step.is-current .tp-step-age{color:#fff;opacity:1;}

/* mobile tweak ---------------------------------------------------- */
@media(max-width:480px){
    .tp-status-path form+form{margin-left:-22px;}
    .tp-status-step{padding:16px 14px!important;font-size:.86rem;}
    .tp-status-step::after{width:22px;right:-22px;}
    .tp-step-age{font-size:.66rem;}
}

/* ----------   DESKTOP default   ---------- */
.tp-status-select-form {        /* <form> that wraps the <select>   */
    display:none;               /* keep it hidden above 800 px      */
}

/* ----------   MOBILE override   ---------- */
@media (max-width:800px){
    .tp-status-path        { display:none !important; }  /* hide rail  */
    .tp-status-select-form { display:block !important; } /* show form  */
}



/* pills / filters */
.tp-pill-group        {display:flex;gap:6px;flex-wrap:wrap}
.tp-pill              {padding:4px 10px;border-radius:20px;
                       background:#f2f3f7;border:none;font-size:.85rem;
                       cursor:pointer}
.tp-pill.is-active    {background:var(--tp-primary);color:#fff}


/* Enhanced Smart Chips for Lead Filters */
.tp-pill-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
  }
  
  .tp-pill {
    background: #f1f5f9;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  
  .tp-pill:hover {
    background: #e2e8f0;
    color:#005c87;
  }
  
  .tp-pill.is-active {
    background: var(--tp-primary);
    color: white;
    border-color: var(--tp-primary);
  }

/* tiny button inside timeline rows */
.tp-link-btn          {background:none;border:none;color:var(--tp-primary);
                       cursor:pointer;font-size:1rem;line-height:1;
                       padding:0 2px}

/* optional – completed task style */
.tp-timeline li.done  {opacity:.55;text-decoration:line-through}

/* BIG date/time input */
.tp-date-big{
    font-size:1.05rem;
    padding:.6rem .9rem;
}

/* quick chips */
.tp-quick-chips{
    display:flex;gap:8px;flex-wrap:wrap
}
.tp-quick-chips button{
    border:none;cursor:pointer;
    background:#f2f3f7;border-radius:20px;
    padding:4px 12px;font-size:.8rem;
    transition:.15s
}
.tp-quick-chips button:hover{
    background:var(--tp-primary);color:#fff
}
.tp-quick-chips button.active{
    background:var(--tp-primary);color:#fff
}

/* lead / customer task table ------------------------------------*/
.tp-detail-task.is-done           { opacity:.55; }
.tp-detail-task.is-done .desc     { text-decoration:line-through; }
.tp-detail-task.is-done .due,
.tp-detail-task.is-done .actions  { display:none; }   /* optional */


/* lead / customer view table ------------------------------------*/
.tp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tp-pagination a {
    padding: 6px 12px;
    border-radius: 8px;
    background: #f1f4f7;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.tp-pagination a:hover {
    background: #dbeaf5;
}

.tp-pagination a.current-page {
    background: #0073aa;
    color: #fff;
}


/* ============================
   Add Note Modal – modern UX
   ============================ */
   .tp-note-modal {
    max-width: 640px;
    padding: 32px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    animation: fadeIn .25s ease-out;
}

.tp-note-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
    text-align: center;
}

.tp-note-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tp-note-field {
    display: flex;
    flex-direction: column;
}

.tp-note-field span {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #555;
}

.tp-note-select,
.tp-note-textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color .2s;
}

.tp-note-select:focus,
.tp-note-textarea:focus {
    border-color: var(--tp-primary);
    background: #fff;
    outline: none;
}

.tp-note-actions {
    text-align: right;
    margin-top: 10px;
}

.tp-note-submit {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
}

/* =====================================
   Modern Interaction Type Button Group
   ===================================== */
   .tp-note-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tp-note-type-group input[type="radio"] {
    display: none;
}

.tp-type-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 2px solid #ddd;
    background: #f7f9fb;
    transition: all 0.2s;
    user-select: none;
}

.tp-type-btn:hover {
    background: var(--tp-primary);
    color: #fff;
    border-color: var(--tp-primary);
}

.tp-note-type-group input[type="radio"]:checked + .tp-type-btn {
    background: var(--tp-primary);
    color: #fff;
    border-color: var(--tp-primary);
}






/* ===== Wizard progress bar ===== */
.tp-wizard-steps{
    display:flex;gap:8px;margin:12px 0 24px;
}
.tp-wizard-step{
    flex:1;min-width:70px;text-align:center;padding:10px 8px;
    border-radius:12px;font-weight:600;font-size:.82rem;
    background:#e0e6ed;color:#555;position:relative;
    box-shadow:var(--tp-shadow-sm);
}
.tp-wizard-step-number{display:block;font-size:1.05rem;margin-bottom:4px;}
.tp-wizard-step.active     {background:var(--tp-primary);color:#fff;}
.tp-wizard-step.completed  {background:var(--tp-success);color:#fff;}
.tp-wizard-step-line{
    width:22px;height:2px;background:#ccc;align-self:center;
}

/* ===== Compact selects / form grid ===== */
.tp-wizard-form      {margin-top:6px;}
.tp-wizard-form .tp-form-grid{display:grid;gap:18px 16px;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));}

.tp-select.auto-width{width:auto;min-width:220px;padding-right:36px;}
.tp-wizard-form .tp-form-actions{display:flex;justify-content:flex-end;margin-top:12px;}


/* simple banners */
.tp-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 600;
}
.tp-alert-warning { background:#fff5e5; color:#d35400; }
.tp-alert-danger  { background:#ffeaea; color:#c0392b; }

/* upgrade selector */
.tp-upgrade-list  { display:flex; flex-wrap:wrap; gap:16px; }
.tp-upgrade-card  {
    display:flex; align-items:center; gap:12px;
    background:#fafafa; border:1px solid #ddd;
    border-radius:16px; padding:16px 20px; cursor:pointer;
    transition:box-shadow .15s, border .15s;
    min-width:260px;
}
.tp-upgrade-card:hover,
.tp-upgrade-card input:checked+span { border-color:var(--tp-primary); box-shadow:0 0 0 2px rgba(0,115,170,.15); }
.tp-upgrade-card input { margin:0; }
/* keep radio invisible but accessible */
.tp-upgrade-card input[type=radio] { width:18px;height:18px; }
.tp-upgrade-info small { color:#666; font-size:.85rem; }

/* make disabled base card look obvious */
.tp-upgrade-disabled { opacity:.55; cursor:not-allowed; }

/* prevent pointer events on the disabled radio */
.tp-upgrade-disabled input[disabled] { pointer-events:none; }
.tp-summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-bottom: 15px;
}

.tp-summary-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.tp-summary-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem
}

.tp-summary-amount {
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: right
}

.tp-summary-total {
    font-size: 1.4rem;
    margin: 10px 0 24px;
    text-align: right
}

.tp-guest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem
}

.tp-guest-table th,
.tp-guest-table td {
    border-bottom: 1px solid #eee;
    padding: 4px 6px
}

.tp-guest-table .tp-right {
    text-align: right
}

.tp-guest-total td {
    font-weight: 600
}

.tp-muted {
    color: #777;
    font-size: .85rem;
    margin: 4px 0 0
}

select option[data-disabled] {
    color: #aaa;
    font-style: italic;
  }
   
.tp-table th:hover {
text-decoration: underline;
}

.tp-table th.sortable {
    position: relative;
    padding-right: 20px;
  }
  
  .tp-table th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.6;
  }
  
  .tp-table th.sortable.asc::after {
    content: '▲';
  }
  
  .tp-table th.sortable.desc::after {
    content: '▼';
  }


@media only screen and (max-width:700px) {
    .tp-card {
        padding: 16px;
    }

    .tp-button {
        padding: 10px 16px;
    }

    .tp-table th,
    .tp-table td {
        padding: 10px;
    }
}