/* ============================================================
   Consulting Tracker — Custom overrides on Bootstrap 5
   ============================================================ */

/* --- Base ------------------------------------------------ */
body {
    font-family: 'Open Sans', 'Aptos Display', sans-serif;
    background-color: #f2f3f5;
    color: #222;
}

/* --- Layout container ------------------------------------ */
.ct-content {
    max-width: 3800px;
    margin: 0 auto;
    padding: 28px 100px;
}

/* --- Header Banner --------------------------------------- */
.ct-header {
    width: 100%;
    height: 150px;
    background: #c89a2a url('head-background.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-header h1 {
    margin: 0;
    font-size: 3.6rem;
    font-weight: 400;
    color: #0D2A75;
    letter-spacing: 0.06em;
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.35);
}

/* --- Navigation ------------------------------------------ */
.ct-nav {
    background-color: #0D2A75;
}

.ct-nav-inner {
    max-width: 3800px;
    margin: 0 auto;
    padding: 0 100px;
}

.ct-nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.ct-nav-links > li {
    position: relative;
}

.ct-nav-links > li > a {
    display: block;
    padding: 14px 28px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.ct-nav-links > li > a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Dropdown */
.ct-nav-links .dropdown-menu {
    background-color: #0D2A75;
    border: none;
    border-top: 2px solid #c89a2a;
    border-radius: 0;
    margin-top: 0;
    min-width: 200px;
    padding: 4px 0;
}

.ct-nav-links .dropdown-item {
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.ct-nav-links .dropdown-item:hover,
.ct-nav-links .dropdown-item:focus {
    background-color: #243d63;
    color: #fff;
}

/* --- Section Headings ------------------------------------ */
.ct-section {
    margin-bottom: 40px;
}

.ct-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0D2A75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #c89a2a;
}

.ct-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0D2A75;
    margin: 20px 0 6px 0;
}

/* --- Tables ---------------------------------------------- */
.ct-table thead th {
    background-color: #dde8f4;
    color: #0D2A75;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid #b4cde0 !important;
}

.ct-table tbody tr:hover > td {
    background-color: #f5f9ff;
}

.ct-table td,
.ct-table th {
    padding: 7px 12px;
    vertical-align: middle;
}

/* --- Table links ----------------------------------------- */
.ct-table a {
    color: #0D2A75;
    font-weight: 600;
    text-decoration: none;
}

.ct-table a:hover {
    color: #c89a2a;
    text-decoration: underline;
}

/* --- Empty state ----------------------------------------- */
.ct-empty {
    color: #999;
    font-style: italic;
    margin: 4px 0 0 2px;
}

/* --- Client detail: info grid ---------------------------- */
.ct-info-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4px 16px;
    max-width: 700px;
}

.ct-info-label {
    font-weight: 700;
    color: #0D2A75;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Collapse toggle chevron ----------------------------- */
.ct-collapse-btn .bi-chevron-down { transition: transform 0.2s ease; }
.ct-collapse-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

/* --- Date cells ------------------------------------------ */
.ct-date { white-space: nowrap; }

/* --- Record ID cells ------------------------------------- */
.ct-id { white-space: nowrap; color: #999; font-variant-numeric: tabular-nums; width: 1%; }

/* --- Client name cells: never wrap ----------------------- */
/* Every client name in a table is a link to its detail page, so this single
   rule keeps all of them on one line (covers current and future tables). */
.ct-table td a[href^="client.php?id="] { white-space: nowrap; }

/* --- Utility --------------------------------------------- */
.text-navy   { color: #0D2A75 !important; }
.text-gold   { color: #c89a2a !important; }
.text-rust   { color: #c0532a !important; }
.text-sage   { color: #6b9e6b !important; }
.text-alert  { color: #cc2222 !important; }
.text-muted  { color: #999 !important; }
