/* ==========================================================================
   TRAVELS PRO — CLIENT PORTAL
   Loaded after style.css + storefront.css; matches the public storefront look.
   ========================================================================== */

body.pt-body {
    background: #f4f6fb;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pt-container { max-width: 1180px; margin: 0 auto; padding: 24px 20px 44px; }

/* ------------------------------------------------------------------ Navbar */
.pt-navbar {
    position: sticky; top: 0; z-index: 1030;
    background: linear-gradient(120deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
    color: #fff; padding: 12px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .18);
}
.pt-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; font-size: 17px; letter-spacing: -.01em; }
.pt-brand img { height: 34px; max-width: 130px; object-fit: contain; }
.pt-brand i { font-size: 22px; color: #93c5fd; }
.pt-navlink { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 10px; transition: .18s; display: inline-flex; align-items: center; }
.pt-navlink:hover, .pt-navlink.active { color: #fff; background: rgba(255,255,255,.14); }
.pt-navbar .btn { border-radius: 10px; font-weight: 600; }

/* -------------------------------------------------------------- Page head */
.pt-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.pt-page-head h3 { font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.pt-page-head p { color: #64748b; margin: 0; font-size: 14.5px; }
.pt-avatar {
    width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
    background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; box-shadow: 0 10px 22px rgba(37,99,235,.3);
}

/* ------------------------------------------------------------ Stat cards */
.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.pt-stat {
    position: relative; background: #fff; border: 1px solid #e8ecf1; border-radius: 18px;
    padding: 18px 20px; box-shadow: 0 1px 3px rgba(15,23,42,.05);
    overflow: hidden; transition: .2s;
}
.pt-stat:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,.1); border-color: #dbe3ee; }
.pt-stat .ico { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.pt-stat .lbl { font-size: 12.5px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pt-stat .val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; line-height: 1.15; word-break: break-word; }
.pt-stat .sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.ico-indigo { background: #eef2ff; color: #4338ca; }
.ico-green  { background: #dcfce7; color: #15803d; }
.ico-amber  { background: #fef3c7; color: #b45309; }
.ico-rose   { background: #ffe4e6; color: #be123c; }
.ico-sky    { background: #e0f2fe; color: #0369a1; }
.ico-violet { background: #f3e8ff; color: #7e22ce; }

/* ----------------------------------------------------------------- Panels */
.pt-panel { background: #fff; border: 1px solid #e8ecf1; border-radius: 18px; box-shadow: 0 1px 3px rgba(15,23,42,.05); overflow: hidden; }
.pt-panel + .pt-panel { margin-top: 20px; }
.pt-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 24px; border-bottom: 1px solid #eef1f6;
    background: linear-gradient(180deg, #fbfcfe, #fff);
}
.pt-panel-head .t { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 15.5px; }
.pt-panel-head .t i { color: var(--tp-primary, #2563eb); font-size: 17px; }
.pt-panel-head .sub { color: #64748b; font-size: 12.5px; font-weight: 500; margin-top: 2px; }
.pt-panel-body { padding: 22px 24px 24px; }
.pt-panel-body.tight { padding: 6px 18px 18px; }

.pt-panel-warning { border-color: #fde68a; }
.pt-panel-warning .pt-panel-head { background: linear-gradient(180deg, #fffbeb, #fff); border-bottom-color: #fde68a; }

/* ------------------------------------------------------- Payment requests */
.pt-reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pt-req {
    background: #fff; border: 1.5px solid #fde68a; border-radius: 16px; padding: 18px 20px;
    display: flex; flex-direction: column; gap: 12px; transition: .2s;
}
.pt-req:hover { box-shadow: 0 14px 30px rgba(180,83,9,.12); }
.pt-req .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pt-req .ttl { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.pt-req .ref { font-size: 12px; color: #94a3b8; font-weight: 600; margin-top: 3px; }
.pt-req .amt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #0f172a; white-space: nowrap; }
.pt-req .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-req .note { font-size: 13px; color: #64748b; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; padding: 8px 11px; }
.pt-req .pay { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.pt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pt-chip-due { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.pt-chip-late { background: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }

.pt-btn-pay {
    background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; border: 0;
    border-radius: 11px; font-weight: 700; font-size: 14px; padding: 10px 20px;
    box-shadow: 0 8px 20px rgba(22,163,74,.26); transition: .2s; display: inline-flex; align-items: center; gap: 7px;
}
.pt-btn-pay:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(22,163,74,.34); }
.pt-link { color: var(--tp-primary, #2563eb); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.pt-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- Tables */
.pt-table { width: 100%; margin: 0; border-collapse: collapse; }
.pt-table thead th {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8;
    font-weight: 700; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #eef1f6; white-space: nowrap;
}
.pt-table tbody td { padding: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 14px; }
.pt-table tbody tr:last-child td { border-bottom: 0; }
.pt-table tbody tr:hover { background: #f8fafc; }
.pt-table .num { font-weight: 700; white-space: nowrap; }
.pt-table .t-sub { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }

.pt-empty { text-align: center; padding: 40px 20px; color: #94a3b8; }
.pt-empty i { font-size: 30px; display: block; margin-bottom: 8px; color: #cbd5e1; }

/* --------------------------------------------------------------- Buttons */
.pt-btn {
    border: 0; border-radius: 10px; font-weight: 700; font-size: 13.5px; padding: 9px 16px;
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: .18s;
}
.pt-btn-ghost { background: #eef2ff; color: #4338ca; }
.pt-btn-ghost:hover { background: #e0e7ff; color: #4338ca; }
.pt-btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 8px 18px rgba(37,99,235,.24); }
.pt-btn-primary:hover { color: #fff; transform: translateY(-1px); }

/* ----------------------------------------------------------------- Footer */
.pt-footer { color: #94a3b8; font-size: 13px; text-align: center; padding: 34px 20px 10px; border-top: 1px solid #e8ecf1; margin-top: 44px; }
.pt-footer a { color: #4f46e5; font-weight: 700; text-decoration: none; }
.pt-footer a:hover { color: #2563eb; }

/* --------------------------------- Shared form / card padding (all pages) */
.pt-body .tp-card { border: 1px solid #e8ecf1; border-radius: 18px; box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 22px; }
.pt-body .tp-card.p-4 { padding: 30px; }
.pt-body .tp-card h5.fw-bold, .pt-body .tp-card h6.fw-bold { margin-top: 0; }
.pt-body .form-control, .pt-body .form-select, .pt-body textarea.form-control {
    border: 1.5px solid #e2e8f0; border-radius: 11px; padding: 10px 13px; font-size: 14.5px;
}
.pt-body .form-control:focus, .pt-body .form-select:focus { border-color: var(--tp-primary, #2563eb); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.pt-body .btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); border: 0; border-radius: 11px; font-weight: 700; box-shadow: 0 8px 18px rgba(37,99,235,.24); }
.pt-body .btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #4338ca); transform: translateY(-1px); }
.pt-body .btn-outline-primary { border-radius: 10px; font-weight: 600; border-width: 1.5px; }
.pt-body .btn-outline-secondary { border-radius: 10px; font-weight: 600; border-width: 1.5px; }
.pt-body .auth-logo { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.pt-body .table > :not(caption) > * > * { background: transparent; }
.pt-body .alert { border-radius: 13px; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 991.98px) {
    .pt-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .pt-container { padding: 18px 14px 32px; }
    .pt-panel-head { padding: 15px 16px; }
    .pt-panel-body { padding: 16px; }
    .pt-stat { padding: 15px 16px; }
    .pt-stat .val { font-size: 21px; }
    .pt-table thead th, .pt-table tbody td { padding: 10px; font-size: 13px; }
    .pt-page-head h3 { font-size: 21px; }
}
