/* Manrope, self-hosted (the approved GRADAX client design). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ================================================================
   GRADAX client area. The same system as the marketing pages (service_subscriptions/svc-app.css):
   Manrope, warm ink, quiet neutrals, the brand orange only as a small accent (focus, the unread dot,
   an icon tint), never as a button fill or as text. Primary actions are ink with white text.
   Everything is scoped to body.customers so the admin area never sees it.
   ================================================================ */
body.customers {
    --gx-ink: #15171c;
    --gx-ink-2: #3f444e;
    --gx-ink-3: #646a76;
    --gx-paper: #f6f6f7;
    --gx-surface: #ffffff;
    --gx-rule: #e6e7eb;
    --gx-rule-2: #d5d7dd;
    --gx-rule-3: #b9bdc6;
    --gx-accent: #ea5f0e;
    --gx-tint: #fff1ea;
    --gx-good: #157f3c; --gx-good-bg: #e8f6ee;
    --gx-info: #2552c4; --gx-info-bg: #edf2ff;
    --gx-warn: #a15c07; --gx-warn-bg: #fdf3e2;
    --gx-stop: #b42318; --gx-stop-bg: #fdeceb;
    --gx-r-sm: 8px;
    --gx-r: 12px;
    --gx-r-lg: 18px;
    --gx-lift: 0 1px 0 rgb(28 26 25 / .04), 0 1px 3px rgb(28 26 25 / .06);
    --gx-float: 0 1px 2px rgb(28 26 25 / .06), 0 16px 40px -16px rgb(28 26 25 / .28);
    --gx-ease: cubic-bezier(.16, 1, .3, 1);
    --gx-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gx-bar: 72px;

    background: var(--gx-paper);
    color: var(--gx-ink);
    font: 400 15px/1.55 var(--gx-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.customers :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4) { font-family: var(--gx-font); color: var(--gx-ink); letter-spacing: -0.015em; }
body.customers :is(input, select, textarea, button) { font-family: var(--gx-font); }
body.customers a { color: var(--gx-ink); }
body.customers a:hover, body.customers a:focus { color: #000; }
body.customers .text-muted { color: var(--gx-ink-3) !important; }
body.customers ::selection { background: rgb(234 95 14 / .18); }
body.customers :focus-visible { outline: 2px solid var(--gx-accent); outline-offset: 2px; }
body.customers .gxc-i { width: 18px; height: 18px; flex: none; }
body.customers #wrapper { min-height: calc(100dvh - var(--gx-bar) - 64px); }
body.customers #content { padding-top: 32px; padding-bottom: 56px; }
body.customers .container { width: auto; max-width: 1440px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 767px) {
    body.customers .container { padding-left: 16px; padding-right: 16px; }
    body.customers #content { padding-top: 20px; }
}

/* ================================================================
   Top bar
   ================================================================ */
.gxc-top {
    position: sticky; top: 0; z-index: 1030;
    background: rgb(255 255 255 / .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--gx-rule);
}
.gxc-top-in { max-width: 1440px; margin: 0 auto; height: var(--gx-bar); padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.gxc-brand { display: inline-flex; flex: none; border-radius: 6px; }
.gxc-brand img { display: block; width: 132px; height: auto; }
.gxc-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.gxc-nav ul { flex-wrap: nowrap; }
.gxc-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gxc-nav li { margin: 0; }
.gxc-nav-a {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--gx-ink-2) !important; text-decoration: none !important; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.gxc-nav-a .gxc-i { width: 17px; height: 17px; color: var(--gx-ink-3); transition: color .15s ease; }
.gxc-nav-a:hover { background: rgb(28 26 25 / .05); color: var(--gx-ink) !important; }
.gxc-nav-a:hover .gxc-i { color: var(--gx-ink); }
.gxc-nav-a.is-active { background: var(--gx-ink); color: #fff !important; }
.gxc-nav-a.is-active .gxc-i { color: #fff; }
.gxc-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.gxc-iconbtn {
    position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid transparent; background: transparent; color: var(--gx-ink); cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s var(--gx-ease);
}
.gxc-iconbtn:hover { background: rgb(28 26 25 / .05); }
.gxc-iconbtn:active { transform: translateY(1px); }
.gxc-bell { border-color: var(--gx-rule); background: var(--gx-surface); box-shadow: var(--gx-lift); }
.gxc-bell:hover { border-color: var(--gx-rule-3); background: var(--gx-surface); }
.gxc-badge {
    position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--gx-accent); color: #fff; font: 700 11px/19px var(--gx-font); text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.gxc-burger { display: none; }
.gxc-me {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 5px; border-radius: 12px;
    border: 1px solid var(--gx-rule); background: var(--gx-surface); box-shadow: var(--gx-lift); cursor: pointer;
    font: 600 14px/1 var(--gx-font); color: var(--gx-ink);
}
.gxc-me:hover { border-color: var(--gx-rule-3); }
.gxc-me img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; background: var(--gx-paper); }
.gxc-me-chev { width: 15px !important; height: 15px !important; color: var(--gx-ink-3); transition: transform .2s var(--gx-ease); }
.gxc-me[aria-expanded="true"] .gxc-me-chev { transform: rotate(180deg); }
.gxc-pop { position: relative; }
.gxc-pop-panel {
    position: absolute; right: 0; top: calc(100% + 8px); width: 280px; padding: 6px; border-radius: 14px;
    background: var(--gx-surface); border: 1px solid var(--gx-rule); box-shadow: var(--gx-float);
    transform-origin: top right; animation: gxc-pop .18s var(--gx-ease);
}
@keyframes gxc-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.gxc-pop-head { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--gx-rule); }
.gxc-pop-head b { display: block; font-size: 14px; }
.gxc-pop-head small { display: block; font-size: 12.5px; color: var(--gx-ink-3); }
.gxc-pop-panel a, .gxc-lang summary {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 9px;
    font-size: 14px; font-weight: 500; color: var(--gx-ink-2) !important; text-decoration: none !important; cursor: pointer; list-style: none;
}
.gxc-lang summary::-webkit-details-marker { display: none; }
.gxc-pop-panel a .gxc-i, .gxc-lang summary .gxc-i { width: 17px; height: 17px; color: var(--gx-ink-3); }
.gxc-pop-panel a:hover, .gxc-lang summary:hover { background: var(--gx-paper); color: var(--gx-ink) !important; }
.gxc-pop-panel em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--gx-accent); border-radius: 9px; padding: 1px 7px; }
.gxc-lang summary small { margin-left: auto; color: var(--gx-ink-3); font-size: 12.5px; }
.gxc-lang a { padding-left: 39px; font-size: 13.5px; min-height: 34px; }
.gxc-lang a[aria-current] { color: var(--gx-ink) !important; font-weight: 700; }
.gxc-pop-panel .gxc-out { margin-top: 4px; border-top: 1px solid var(--gx-rule); border-radius: 0 0 9px 9px; }
@media (max-width: 1439px) {
    .gxc-top-in { gap: 16px; }
    .gxc-nav-a { padding: 0 11px; }
    .gxc-nav-a .gxc-i { display: none; }
}
@media (max-width: 1239px) {
    .gxc-nav { display: none; }
    .gxc-burger { display: inline-grid; }
    .gxc-actions { margin-left: auto; }
}
@media (max-width: 767px) {
    body.customers { --gx-bar: 64px; }
    .gxc-top-in { padding: 0 12px 0 16px; gap: 8px; }
    .gxc-brand img { width: 112px; }
    .gxc-me-name, .gxc-me-chev { display: none; }
    .gxc-me { padding: 0 5px; }
    .gxc-actions .gxc-btn-ghost { display: none; }
}

/* ================================================================
   Sheets: the notification panel and the phone menu (native <dialog>)
   ================================================================ */
.gxc-sheet {
    position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
    padding: 0; border: 0; border-left: 1px solid var(--gx-rule); background: var(--gx-surface); color: var(--gx-ink);
    box-shadow: -24px 0 60px -30px rgb(28 26 25 / .35); font-family: var(--gx-font);
    display: flex; flex-direction: column;
}
.gxc-sheet:not([open]) { display: none; }
.gxc-sheet[open] { animation: gxc-sheet .28s var(--gx-ease); }
.gxc-sheet::backdrop { background: rgb(21 23 28 / .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: gxc-fade .2s ease; }
@keyframes gxc-sheet { from { transform: translateX(32px); opacity: 0; } }
@keyframes gxc-fade { from { opacity: 0; } }
.gxc-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.gxc-sheet-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.gxc-sheet-sub { margin: 2px 0 0; font-size: 13px; color: var(--gx-ink-3); }
.gxc-pill-new { font-size: 11.5px; font-weight: 700; color: #9a3d05; background: var(--gx-tint); border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.gxc-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 24px; }
.gxc-chips { display: flex; gap: 6px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--gx-rule); }
.gxc-chips::-webkit-scrollbar { display: none; }
.gxc-chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--gx-rule); background: var(--gx-surface); font: 600 13px/1 var(--gx-font); color: var(--gx-ink-2); cursor: pointer;
}
.gxc-chip span { font-size: 11.5px; color: var(--gx-ink-3); }
.gxc-chip:hover { border-color: var(--gx-rule-3); }
.gxc-chip[aria-pressed="true"] { background: var(--gx-ink); border-color: var(--gx-ink); color: #fff; }
.gxc-chip[aria-pressed="true"] span { color: rgb(255 255 255 / .7); }
.gxc-ntc-day { margin: 18px 8px 6px; font-size: 12px; font-weight: 700; color: var(--gx-ink-3); }
.gxc-ntc-list { margin: 0; padding: 0; list-style: none; }
.gxc-ntc-item {
    position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px; border-radius: 12px;
    color: var(--gx-ink) !important; text-decoration: none !important; transition: background-color .15s ease;
}
.gxc-ntc-item:hover { background: var(--gx-paper); }
.gxc-ntc-item.is-new { background: #fffaf7; }
.gxc-ntc-item.is-new::before { content: ""; position: absolute; left: 3px; top: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--gx-accent); }
.gxc-ntc-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gx-paper); color: var(--gx-ink-2); }
.gxc-ntc-icon .gxc-i { width: 18px; height: 18px; }
.is-good .gxc-ntc-icon { background: var(--gx-good-bg); color: var(--gx-good); }
.is-warn .gxc-ntc-icon { background: var(--gx-warn-bg); color: var(--gx-warn); }
.is-stop .gxc-ntc-icon { background: var(--gx-stop-bg); color: var(--gx-stop); }
.gxc-ntc-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.gxc-ntc-body b { font-size: 14px; font-weight: 700; line-height: 1.35; }
.gxc-ntc-body span { font-size: 13px; color: var(--gx-ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gxc-ntc-body small { font-size: 12px; color: var(--gx-ink-3); }
.gxc-ntc-go { width: 16px !important; height: 16px !important; margin-top: 10px; color: var(--gx-rule-3); transition: transform .2s var(--gx-ease), color .2s ease; }
.gxc-ntc-item:hover .gxc-ntc-go { color: var(--gx-ink); transform: translateX(2px); }
.gxc-ntc-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 32px; text-align: center; }
.gxc-ntc-empty .gxc-ntc-icon { width: 52px; height: 52px; border-radius: 16px; }
.gxc-ntc-empty b { display: block; font-size: 15px; }
.gxc-ntc-empty small { display: block; margin-top: 4px; max-width: 30ch; font-size: 13px; color: var(--gx-ink-3); }
.gxc-ntc-nomatch { padding: 32px 8px; text-align: center; color: var(--gx-ink-3); font-size: 13.5px; }
.gxc-drawer-nav { width: min(360px, 100vw); }
.gxc-drawer-nav .gxc-sheet-head { align-items: center; border-bottom: 1px solid var(--gx-rule); padding: 14px 16px; }
.gxc-drawer-nav .gxc-sheet-body { padding: 10px 10px 24px; }
.gxc-dl {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px;
    font-size: 15px; font-weight: 600; color: var(--gx-ink-2) !important; text-decoration: none !important;
}
.gxc-dl .gxc-i { color: var(--gx-ink-3); }
.gxc-dl:hover { background: var(--gx-paper); color: var(--gx-ink) !important; }
.gxc-dl.is-active { background: var(--gx-ink); color: #fff !important; }
.gxc-dl.is-active .gxc-i { color: #fff; }
.gxc-dl-title { margin: 18px 12px 6px; font-size: 12px; font-weight: 700; color: var(--gx-ink-3); }
@media (max-width: 767px) {
    .gxc-sheet { width: 100vw; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gxc-sheet[open], .gxc-sheet::backdrop, .gxc-pop-panel { animation: none; }
}

/* ================================================================
   Buttons (Bootstrap classes restyled; ink = the main action)
   ================================================================ */
body.customers .btn, .gxc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
    font: 600 14px/1 var(--gx-font); letter-spacing: -0.005em; text-decoration: none !important; white-space: nowrap;
    box-shadow: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s var(--gx-ease);
}
body.customers .btn:active, .gxc-btn:active { transform: translateY(1px); box-shadow: none; }
body.customers .btn-sm, body.customers .btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
body.customers .btn-lg { min-height: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
body.customers .btn-block { display: flex; width: 100%; }
body.customers :is(.btn-primary, .btn-info, .btn-success), .gxc-btn-ink {
    background: var(--gx-ink) !important; border-color: var(--gx-ink) !important; color: #fff !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 1px 2px rgb(28 26 25 / .3);
}
body.customers :is(.btn-primary, .btn-info, .btn-success):is(:hover, :focus), .gxc-btn-ink:hover { background: #000 !important; color: #fff !important; }
body.customers .btn-default, .gxc-btn-ghost {
    background: var(--gx-surface) !important; border-color: var(--gx-rule-2) !important; color: var(--gx-ink) !important; box-shadow: var(--gx-lift);
}
body.customers .btn-default:is(:hover, :focus), .gxc-btn-ghost:hover { border-color: var(--gx-rule-3) !important; background: var(--gx-surface) !important; }
body.customers .btn-danger { background: var(--gx-surface) !important; border-color: rgb(180 35 24 / .35) !important; color: var(--gx-stop) !important; }
body.customers .btn-danger:hover { background: var(--gx-stop-bg) !important; }
body.customers .btn-warning { background: var(--gx-warn-bg) !important; border-color: rgb(161 92 7 / .3) !important; color: var(--gx-warn) !important; }
body.customers .btn .gxc-i { width: 16px; height: 16px; }
body.customers .btn-group > .btn { border-radius: 0; }
body.customers .btn-group > .btn:first-child { border-radius: 10px 0 0 10px; }
body.customers .btn-group > .btn:last-child { border-radius: 0 10px 10px 0; }

/* ================================================================
   Surfaces, headings, tables, forms
   ================================================================ */
body.customers .panel_s, body.customers .panel { border: 1px solid var(--gx-rule); border-radius: var(--gx-r-lg); background: var(--gx-surface); box-shadow: var(--gx-lift); margin-bottom: 20px; }
body.customers .panel_s > .panel-body, body.customers .panel > .panel-body { padding: 22px 24px; border: 0; background: transparent; border-radius: var(--gx-r-lg); }
body.customers .panel-heading { background: transparent !important; border-bottom: 1px solid var(--gx-rule) !important; padding: 16px 24px !important; font-weight: 700; color: var(--gx-ink) !important; border-radius: var(--gx-r-lg) var(--gx-r-lg) 0 0 !important; }
body.customers .panel-footer { background: var(--gx-paper); border-top: 1px solid var(--gx-rule); border-radius: 0 0 var(--gx-r-lg) var(--gx-r-lg); padding: 14px 24px; }
@media (max-width: 767px) { body.customers .panel_s > .panel-body { padding: 18px 16px; } }
body.customers .section-heading, body.customers h4.tw-text-lg {
    font-size: 20px !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--gx-ink) !important; margin-bottom: 14px !important;
}
body.customers .tickets-summary-heading { font-size: 15px !important; color: var(--gx-ink-2) !important; }
body.customers .tw-text-neutral-700, body.customers .tw-text-neutral-800, body.customers .tw-text-neutral-900 { color: var(--gx-ink) !important; }
body.customers .tw-text-neutral-500, body.customers .tw-text-neutral-600 { color: var(--gx-ink-3) !important; }
body.customers hr { border-color: var(--gx-rule); }

body.customers .table { margin-bottom: 0; color: var(--gx-ink); }
body.customers .table > thead > tr > th {
    border-bottom: 1px solid var(--gx-rule) !important; border-top: 0 !important; background: var(--gx-paper);
    font-size: 12.5px; font-weight: 700; color: var(--gx-ink-3); letter-spacing: 0; padding: 11px 14px; white-space: nowrap;
}
body.customers .table > thead > tr > th:first-child { border-radius: 10px 0 0 10px; }
body.customers .table > thead > tr > th:last-child { border-radius: 0 10px 10px 0; }
body.customers .table > tbody > tr > td { border-top: 1px solid var(--gx-rule) !important; padding: 13px 14px; vertical-align: middle; font-size: 14px; }
body.customers .table > tbody > tr:first-child > td { border-top: 0 !important; }
body.customers .table-hover > tbody > tr:hover, body.customers .table > tbody > tr:hover > td { background: #fafafb; }
body.customers .table > tbody > tr > td a:not(.btn) { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gx-rule-3); text-underline-offset: 3px; }
body.customers .table > tbody > tr > td a:not(.btn):hover { text-decoration-color: var(--gx-ink); }
body.customers table.dataTable thead .sorting::after, body.customers table.dataTable thead .sorting_asc::after, body.customers table.dataTable thead .sorting_desc::after { opacity: .45; }
body.customers .dataTables_wrapper .dataTables_length select, body.customers .dataTables_wrapper .dataTables_filter input { border-radius: 10px; }
body.customers .dataTables_wrapper .dataTables_info { color: var(--gx-ink-3); font-size: 13px; padding-top: 16px; }
body.customers .dataTables_wrapper .dataTables_paginate { padding-top: 12px; }
body.customers .pagination > li > a, body.customers .pagination > li > span { border: 0; border-radius: 8px !important; margin: 0 2px; color: var(--gx-ink-2); background: transparent; min-width: 34px; text-align: center; }
body.customers .pagination > .active > a, body.customers .pagination > .active > span { background: var(--gx-ink) !important; color: #fff !important; }
body.customers .table-responsive { border: 0; }

body.customers .bootstrap-select > .dropdown-toggle { display: flex; align-items: center; }
body.customers .form-control, body.customers .bootstrap-select > .dropdown-toggle, body.customers .input-group-addon {
    min-height: 42px; border-radius: 10px; border: 1px solid var(--gx-rule-2); background: var(--gx-surface); color: var(--gx-ink);
    box-shadow: none; font-size: 14.5px; transition: border-color .15s ease, box-shadow .15s ease;
}
body.customers textarea.form-control { min-height: 96px; padding: 10px 12px; }
body.customers .form-control:focus, body.customers .bootstrap-select.open > .dropdown-toggle { border-color: var(--gx-ink) !important; box-shadow: 0 0 0 3px rgb(234 95 14 / .18) !important; outline: none; }
body.customers .form-control::placeholder { color: #8a8f99; }
body.customers .input-group .form-control:not(:last-child) { border-radius: 10px 0 0 10px; }
body.customers .input-group-addon { background: var(--gx-paper); color: var(--gx-ink-3); }
body.customers .input-group-addon:first-child { border-radius: 10px 0 0 10px; }
body.customers .input-group-addon:last-child { border-radius: 0 10px 10px 0; }
body.customers label, body.customers .control-label { font-size: 13.5px; font-weight: 600; color: var(--gx-ink-2); margin-bottom: 6px; }
body.customers .form-group { margin-bottom: 18px; }
body.customers .help-block { color: var(--gx-ink-3); font-size: 12.5px; }
body.customers .has-error .form-control { border-color: var(--gx-stop); }
body.customers .text-danger, body.customers .has-error .help-block { color: var(--gx-stop) !important; }
body.customers .checkbox label::before, body.customers .radio label::before { border-color: var(--gx-rule-3); border-radius: 5px; }
body.customers .checkbox input[type=checkbox]:checked + label::before { background: var(--gx-ink); border-color: var(--gx-ink); }
body.customers .dropdown-menu { border: 1px solid var(--gx-rule); border-radius: 12px; box-shadow: var(--gx-float); padding: 6px; font-size: 14px; }
body.customers .dropdown-menu > li > a { border-radius: 8px; padding: 8px 12px; color: var(--gx-ink-2); }
body.customers .dropdown-menu > li > a:hover, body.customers .dropdown-menu > .active > a { background: var(--gx-paper) !important; color: var(--gx-ink) !important; }

/* Status labels: soft tones, one shape */
body.customers .label, body.customers .badge.label, body.customers span[class*="label-"] {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font: 700 12px/1.2 var(--gx-font); letter-spacing: 0; border: 0; white-space: nowrap; background: #f0f1f3; color: var(--gx-ink-2);
}
body.customers .label-success { background: var(--gx-good-bg) !important; color: var(--gx-good) !important; }
body.customers .label-danger { background: var(--gx-stop-bg) !important; color: var(--gx-stop) !important; }
body.customers .label-warning { background: var(--gx-warn-bg) !important; color: var(--gx-warn) !important; }
body.customers :is(.label-info, .label-primary) { background: var(--gx-info-bg) !important; color: var(--gx-info) !important; }
body.customers .label-default { background: #f0f1f3 !important; color: var(--gx-ink-2) !important; }
body.customers .badge { background: var(--gx-ink); border-radius: 999px; font-weight: 700; }

/* Alerts */
body.customers .alert { border-radius: var(--gx-r); border: 1px solid var(--gx-rule); padding: 14px 16px; font-size: 14px; box-shadow: none; }
body.customers .alert-success { background: var(--gx-good-bg); border-color: rgb(21 127 60 / .2); color: #0f5b2b; }
body.customers .alert-danger { background: var(--gx-stop-bg); border-color: rgb(180 35 24 / .2); color: #8a1b12; }
body.customers .alert-warning { background: var(--gx-warn-bg); border-color: rgb(161 92 7 / .2); color: #6b3d05; }
body.customers .alert-info { background: var(--gx-info-bg); border-color: rgb(37 82 196 / .18); color: #1d3f96; }

/* Tabs (project pages) */
body.customers .nav-tabs { border-bottom: 1px solid var(--gx-rule); display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; }
body.customers .nav-tabs > li { float: none; flex: none; margin-bottom: -1px; }
body.customers .nav-tabs > li > a {
    display: inline-flex; align-items: center; gap: 6px; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0;
    padding: 12px 12px; margin: 0; font-size: 14px; font-weight: 600; color: var(--gx-ink-3) !important; background: transparent !important;
}
body.customers .nav-tabs > li > a:hover { color: var(--gx-ink) !important; }
body.customers .nav-tabs > li.active > a { color: var(--gx-ink) !important; border-bottom-color: var(--gx-accent) !important; }
body.customers .nav-tabs .menu-icon { color: inherit; opacity: .8; }

/* Progress */
body.customers .progress { height: 6px; border-radius: 6px; background: #eceef1; box-shadow: none; margin-bottom: 0; }
body.customers .progress-bar { background: var(--gx-ink); box-shadow: none; font-size: 0; }
body.customers .progress-bar-danger { background: var(--gx-stop); }
body.customers .progress-bar-success { background: var(--gx-good); }
body.customers .progress-bar-warning { background: var(--gx-warn); }

/* The files / calendar sub menu: both live in the account menu now */
body.customers .customer-top-submenu { display: none !important; }
body.customers .section-heading-invoices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
body.customers .section-heading-invoices > span { font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
body.customers .section-heading-invoices > span a { text-decoration: underline; text-decoration-color: var(--gx-rule-3); text-underline-offset: 4px; }
body.customers .customer-top-submenu { display: flex; gap: 6px; margin: 0 0 18px; padding: 0 15px; list-style: none; }
body.customers .customer-top-submenu li a {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--gx-rule); background: var(--gx-surface); font-size: 13px; font-weight: 600; color: var(--gx-ink-2); text-decoration: none;
}
body.customers .customer-top-submenu li a:hover { border-color: var(--gx-rule-3); color: var(--gx-ink); }
body.customers .customer-top-submenu svg { width: 16px; height: 16px; }

/* Summary tiles (projects, invoices, estimates, tickets stats) */
body.customers .stats-status, body.customers .project-summary-block, body.customers [class*="summary"] .tw-rounded-md {
    border-radius: var(--gx-r) !important;
}
body.customers .tw-border-neutral-200, body.customers .tw-border-neutral-300 { border-color: var(--gx-rule) !important; }
body.customers .tw-rounded-lg, body.customers .tw-rounded-md { border-radius: var(--gx-r) !important; }
body.customers .tw-shadow-sm, body.customers .tw-shadow { box-shadow: var(--gx-lift) !important; }
body.customers .tw-text-primary-600, body.customers .text-info, body.customers .text-primary { color: var(--gx-ink) !important; }

/* Modals */
body.customers .modal-content { border: 0; border-radius: var(--gx-r-lg); box-shadow: var(--gx-float); }
body.customers .modal-header { border-bottom: 1px solid var(--gx-rule); padding: 18px 22px; }
body.customers .modal-title { font-weight: 700; font-size: 17px; }
body.customers .modal-footer { border-top: 1px solid var(--gx-rule); padding: 14px 22px; }

/* Footer */
body.customers .footer { background: transparent; border-top: 1px solid var(--gx-rule); padding: 22px 0; margin-top: 0; color: var(--gx-ink-3); font-size: 13px; }
body.customers .footer a { color: var(--gx-ink-2); }

/* Public documents (invoice, offer, contract): the white sheet on paper */
body.customers.viewinvoice, body.customers.viewestimate, body.customers.proposal, body.customers.contract { background: var(--gx-paper); }
body.customers .preview-top-wrapper { border-radius: var(--gx-r-lg); }
body.customers .preview-sticky-header { background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gx-rule); }

body.customers a.logo img, body.customers .navbar-brand.logo img, body.customers #content .logo img { width: 180px; max-width: 100%; height: auto; }

/* Sign-in, register, password pages */
/* Sign-in, forgot and reset password: one centred column, 440px, on every screen. */
body.customers [class*="col-md-offset-"]:is(.col-md-4, .col-md-6) {
    float: none; width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}
body.customers .login-form .panel-body, body.customers [class*="col-md-offset-"] .panel_s > .panel-body { padding: 28px; }
body.customers .login-form .btn-primary { width: 100%; min-height: 46px; }
body.customers .login-form label { white-space: nowrap; }
body.customers .login-heading, body.customers .register-heading, body.customers [class*="col-md-offset-"] > h1, body.customers .forgot-password-heading h1 { text-align: center; font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; margin: 24px 0 20px !important; }

/* ================================================================
   Home
   ================================================================ */
.gxc-home { display: grid; gap: 28px; }
.gxc-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.gxc-hello-co { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--gx-ink-3); }
.gxc-hello h1 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.gxc-hello-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gxc-btn .gxc-i { width: 16px; height: 16px; }
.gxc-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.gxc-tile {
    position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--gx-r-lg);
    background: var(--gx-surface); border: 1px solid var(--gx-rule); box-shadow: var(--gx-lift);
    color: var(--gx-ink) !important; text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--gx-ease);
}
a.gxc-tile:hover { border-color: var(--gx-rule-3); box-shadow: var(--gx-float); transform: translateY(-1px); }
.gxc-tile-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gx-paper); color: var(--gx-ink-2); }
.gxc-tile-icon .gxc-i { width: 20px; height: 20px; }
.gxc-tile.is-warn .gxc-tile-icon { background: var(--gx-tint); color: var(--gx-accent); }
.gxc-tile.is-stop .gxc-tile-icon { background: var(--gx-stop-bg); color: var(--gx-stop); }
.gxc-tile.is-good .gxc-tile-icon, .gxc-tile.is-calm .gxc-tile-icon { background: var(--gx-good-bg); color: var(--gx-good); }
.gxc-tile > div { flex: 1; min-width: 0; }
.gxc-tile-label { display: block; font-size: 13px; font-weight: 600; color: var(--gx-ink-3); }
.gxc-figure { display: block; margin-top: 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gxc-tile p { margin: 4px 0 0; font-size: 13.5px; color: var(--gx-ink-2); }
.gxc-tile p strong { color: var(--gx-stop); }
.gxc-tile.is-calm b { display: block; font-size: 16px; }
.gxc-tile-go { position: absolute; top: 22px; right: 20px; width: 18px !important; height: 18px !important; color: var(--gx-rule-3); transition: transform .2s var(--gx-ease), color .2s ease; }
a.gxc-tile:hover .gxc-tile-go { color: var(--gx-ink); transform: translateX(2px); }
.gxc-tile-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.gxc-tile-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.gxc-tile-list a:hover { background: var(--gx-paper); }
.gxc-tile-list .gxc-i { width: 16px; height: 16px; color: var(--gx-ink-3); }
.gxc-tile-list span { min-width: 0; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.gxc-tile-list small { font-weight: 500; color: var(--gx-ink-3); overflow: hidden; text-overflow: ellipsis; }
.gxc-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 991px) { .gxc-split { grid-template-columns: 1fr; } }
.gxc-card { background: var(--gx-surface); border: 1px solid var(--gx-rule); border-radius: var(--gx-r-lg); box-shadow: var(--gx-lift); padding: 8px 10px 10px; }
.gxc-card-head, .gxc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 10px; }
.gxc-card-head h2, .gxc-sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.gxc-sec-head { padding: 0 0 12px; }
.gxc-sec-head h2 { font-size: 20px; letter-spacing: -0.025em; }
.gxc-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border: 0; background: none; cursor: pointer;
    font: 600 13.5px/1 var(--gx-font); color: var(--gx-ink) !important; text-decoration: none !important;
}
.gxc-link .gxc-i { width: 15px; height: 15px; transition: transform .2s var(--gx-ease); }
.gxc-link:hover .gxc-i { transform: translateX(2px); }
.gxc-empty { margin: 0; padding: 18px 10px 20px; font-size: 14px; color: var(--gx-ink-3); }
.gxc-rows { list-style: none; margin: 0; padding: 0; }
.gxc-rows li + li { border-top: 1px solid var(--gx-rule); }
.gxc-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
    padding: 12px 10px; border-radius: 12px; color: var(--gx-ink) !important; text-decoration: none !important; transition: background-color .15s ease;
}
.gxc-row:hover { background: var(--gx-paper); }
.gxc-row-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gx-paper); color: var(--gx-ink-2); }
.gxc-row-icon .gxc-i { width: 18px; height: 18px; }
.gxc-row-main { display: grid; min-width: 0; }
.gxc-row-main b { font-size: 14px; }
.gxc-row-main small { font-size: 12.5px; color: var(--gx-ink-3); }
.gxc-row-amount { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 575px) {
    .gxc-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .gxc-row-status { grid-column: 2 / -1; }
}
.gxc-feed-mini { padding: 0 0 4px; }
.gxc-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gxc-pcard {
    display: grid; gap: 10px; padding: 18px; border-radius: var(--gx-r-lg); background: var(--gx-surface); border: 1px solid var(--gx-rule);
    box-shadow: var(--gx-lift); color: var(--gx-ink) !important; text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--gx-ease);
}
.gxc-pcard:hover { border-color: var(--gx-rule-3); box-shadow: var(--gx-float); transform: translateY(-1px); }
.gxc-pcard-top { display: flex; align-items: center; justify-content: space-between; }
.gxc-pcard b { font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; }
.gxc-pcard-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gx-ink-3); }
.gxc-pcard-meta .gxc-i { width: 15px; height: 15px; }
.gxc-meter { display: block; height: 6px; border-radius: 6px; background: #eceef1; overflow: hidden; }
.gxc-meter span { display: block; height: 100%; border-radius: 6px; background: var(--gx-ink); }
.gxc-pcard-pct { margin-top: -4px; font-size: 12px; font-weight: 700; color: var(--gx-ink-3); }
@media (prefers-reduced-motion: reduce) { .gxc-tile, .gxc-pcard { transition: none; } a.gxc-tile:hover, .gxc-pcard:hover { transform: none; } }

/* Status summary strips (projects, tickets): compact tiles, two per row on a phone */
body.customers dl.tw-grid:has(> a[href*="/clients/"]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 32px !important; }
@media (max-width: 575px) { body.customers dl.tw-grid:has(> a[href*="/clients/"]) { grid-template-columns: 1fr 1fr; } }
body.customers dl.tw-grid > a[href*="/clients/"] {
    display: block; border: 1px solid var(--gx-rule) !important; border-radius: 14px !important; background: var(--gx-surface) !important;
    box-shadow: var(--gx-lift); text-decoration: none !important; transition: border-color .15s ease, box-shadow .15s ease;
}
body.customers dl.tw-grid > a[href*="/clients/"]:hover { border-color: var(--gx-rule-3) !important; box-shadow: var(--gx-float); }
body.customers dl.tw-grid > a[href*="/clients/"] > div { padding: 14px 16px !important; }
body.customers dl.tw-grid > a[href*="/clients/"] dt { font-size: 13px; font-weight: 600; color: var(--gx-ink-2) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.customers dl.tw-grid > a[href*="/clients/"] dd { margin: 4px 0 0; }
body.customers dl.tw-grid > a[href*="/clients/"] dd > div { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -0.03em; color: var(--gx-ink) !important; font-variant-numeric: tabular-nums; }
body.customers .bootstrap-select > .dropdown-toggle .filter-option { position: static; display: flex; align-items: center; padding: 0 !important; height: auto; }
body.customers .bootstrap-select > .dropdown-toggle .filter-option-inner-inner { line-height: 1.3; }

/* ================================================================
   Page head, pills, list pages
   ================================================================ */
.gxc-page { display: grid; gap: 20px; }
.gxc-phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding-bottom: 4px; }
.gxc-phead h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.gxc-phead p { margin: 8px 0 0; max-width: 62ch; font-size: 15px; color: var(--gx-ink-2); }
.gxc-phead-kicker { margin: 0 0 6px !important; font-size: 13.5px !important; font-weight: 600; color: var(--gx-ink-3) !important; }
.gxc-back { display: inline-flex; align-items: center; gap: 6px; width: max-content; min-height: 36px; font-size: 13.5px; font-weight: 600; color: var(--gx-ink-2) !important; text-decoration: none !important; }
.gxc-back:hover { color: var(--gx-ink) !important; }
.gxc-back .gxc-i { width: 16px; height: 16px; }
.gxc-flip { transform: rotate(180deg); }
.gxc-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
    font: 700 12px/1 var(--gx-font); background: #f0f1f3; color: var(--gx-ink-2);
}
.gxc-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.gxc-pill.is-good { background: var(--gx-good-bg); color: var(--gx-good); }
.gxc-pill.is-warn { background: var(--gx-warn-bg); color: var(--gx-warn); }
.gxc-pill.is-stop { background: var(--gx-stop-bg); color: var(--gx-stop); }
.gxc-pill.is-info { background: var(--gx-info-bg); color: var(--gx-info); }
.gxc-pill.is-info::before { display: none; }

.gxc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.gxc-seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.gxc-seg::-webkit-scrollbar { display: none; }
.gxc-search { position: relative; display: flex; align-items: center; margin: 0; flex: 0 1 300px; }
.gxc-search .gxc-i { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--gx-ink-3); pointer-events: none; }
.gxc-search input {
    width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--gx-rule-2); background: var(--gx-surface);
    font: 500 14.5px var(--gx-font); color: var(--gx-ink); box-shadow: var(--gx-lift); transition: border-color .15s ease, box-shadow .15s ease;
}
.gxc-search input:focus { outline: none; border-color: var(--gx-ink); box-shadow: 0 0 0 3px rgb(234 95 14 / .18); }
@media (max-width: 767px) { .gxc-search { flex: 1 1 100%; } }

.gxc-list { background: var(--gx-surface); border: 1px solid var(--gx-rule); border-radius: var(--gx-r-lg); box-shadow: var(--gx-lift); overflow: hidden; }
.gxc-list ul { list-style: none; margin: 0; padding: 6px; }
.gxc-list li + li { border-top: 1px solid var(--gx-rule); }
.gxc-list li[hidden] + li, .gxc-list li:first-child { border-top: 0; }
.gxc-list-head, .gxc-lrow {
    display: grid; align-items: center; column-gap: 16px;
    grid-template-columns: 40px minmax(0, 2.2fr) repeat(var(--cells), minmax(0, 1fr)) 132px 18px;
}
.gxc-list-head:has(.is-num), .gxc-lrow.has-amount { grid-template-columns: 40px minmax(0, 2.2fr) repeat(var(--cells), minmax(0, 1fr)) minmax(0, 1fr) 132px 18px; }
.gxc-list-head { padding: 12px 18px; border-bottom: 1px solid var(--gx-rule); background: #fafafb; font-size: 12px; font-weight: 700; color: var(--gx-ink-3); }
.gxc-list-head .is-num { text-align: right; }
.gxc-lrow { padding: 12px 12px; border-radius: 12px; color: var(--gx-ink) !important; text-decoration: none !important; transition: background-color .15s ease; }
.gxc-lrow:hover { background: var(--gx-paper); }
.gxc-lrow .gxc-row-icon { width: 40px; height: 40px; border-radius: 11px; }
.gxc-row-icon.is-warn { background: var(--gx-tint); color: var(--gx-accent); }
.gxc-row-icon.is-stop { background: var(--gx-stop-bg); color: var(--gx-stop); }
.gxc-row-icon.is-good { background: var(--gx-good-bg); color: var(--gx-good); }
.gxc-lrow-main { display: grid; min-width: 0; }
.gxc-lrow-main b { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxc-lrow-main small { font-size: 12.5px; color: var(--gx-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxc-lrow-cell { font-size: 13.5px; color: var(--gx-ink-2); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxc-lrow-cell small { display: none; }
.gxc-lrow-cell em { font-style: normal; color: var(--gx-rule-3); }
.gxc-lrow-amount { text-align: right; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gxc-lrow-go { width: 16px !important; height: 16px !important; color: var(--gx-rule-3); transition: transform .2s var(--gx-ease), color .2s ease; }
.gxc-lrow:hover .gxc-lrow-go { color: var(--gx-ink); transform: translateX(2px); }
.gxc-list-none { margin: 0; padding: 28px 18px; text-align: center; color: var(--gx-ink-3); font-size: 14px; }
@media (max-width: 899px) {
    .gxc-list-head { display: none; }
    .gxc-lrow, .gxc-lrow.has-amount { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "i m a" "i c s"; row-gap: 6px; align-items: start; }
    .gxc-lrow .gxc-row-icon { grid-area: i; }
    .gxc-lrow-main { grid-area: m; }
    .gxc-lrow-amount { grid-area: a; }
    .gxc-lrow-status { grid-area: s; justify-self: end; }
    .gxc-lrow-cell { display: none; }
    .gxc-lrow-cell.is-first { display: block; grid-area: c; font-size: 12.5px; color: var(--gx-ink-3); }
    .gxc-lrow-cell.is-first small { display: inline; font-size: inherit; }
    .gxc-lrow-cell.is-first small::after { content: ": "; }
    .gxc-lrow-go { display: none; }
}
.gxc-emptystate { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; text-align: center; background: var(--gx-surface); border: 1px dashed var(--gx-rule-2); border-radius: var(--gx-r-lg); }
.gxc-emptystate b { font-size: 17px; margin-top: 6px; }
.gxc-emptystate p { margin: 0 0 10px; color: var(--gx-ink-3); max-width: 42ch; }

/* ================================================================
   Ticket conversation
   ================================================================ */
.gxc-tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 991px) { .gxc-tk-grid { grid-template-columns: 1fr; } .gxc-facts { order: -1; } }
.gxc-thread { display: grid; gap: 14px; }
.gxc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.gxc-msg-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gx-paper); border: 1px solid var(--gx-rule); font-weight: 700; color: var(--gx-ink-2); }
.gxc-msg.is-team .gxc-msg-avatar { background: var(--gx-ink); border-color: var(--gx-ink); color: #fff; }
.gxc-msg-body { background: var(--gx-surface); border: 1px solid var(--gx-rule); border-radius: 4px 16px 16px 16px; box-shadow: var(--gx-lift); padding: 14px 18px 16px; min-width: 0; }
.gxc-msg.is-team .gxc-msg-body { border-left: 3px solid var(--gx-accent); }
.gxc-msg-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.gxc-msg-body header b { font-size: 14px; }
.gxc-msg-body time { margin-left: auto; font-size: 12.5px; color: var(--gx-ink-3); }
.gxc-msg-text { font-size: 14.5px; line-height: 1.65; color: var(--gx-ink); overflow-wrap: anywhere; }
.gxc-msg-text p { margin: 0 0 10px; }
.gxc-msg-text p:last-child { margin: 0; }
.gxc-msg-text img { max-width: 100%; height: auto; border-radius: 8px; }
.gxc-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gxc-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--gx-rule); background: var(--gx-paper); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.gxc-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 7px; }
.gxc-file .gxc-i { width: 16px; height: 16px; margin-left: 6px; color: var(--gx-ink-3); }
.gxc-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxc-file:hover { border-color: var(--gx-rule-3); }
.gxc-composer { margin-top: 6px; padding: 16px; background: var(--gx-surface); border: 1px solid var(--gx-rule); border-radius: var(--gx-r-lg); box-shadow: var(--gx-float); }
.gxc-composer-label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 10px; color: var(--gx-ink); }
.gxc-composer textarea {
    display: block; width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gx-rule-2); resize: vertical;
    font: 400 15px/1.55 var(--gx-font); color: var(--gx-ink); background: var(--gx-surface);
}
.gxc-composer textarea:focus { outline: none; border-color: var(--gx-ink); box-shadow: 0 0 0 3px rgb(234 95 14 / .18); }
.gxc-composer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.gxc-attach { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; margin: 0; border-radius: 10px; border: 1px dashed var(--gx-rule-3); font-size: 13.5px; font-weight: 600; color: var(--gx-ink-2); cursor: pointer; max-width: 100%; }
.gxc-attach:hover { border-color: var(--gx-ink); color: var(--gx-ink); }
.gxc-attach .gxc-i { width: 16px; height: 16px; }
.gxc-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gxc-attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxc-facts { padding: 18px 20px; position: sticky; top: calc(var(--gx-bar) + 20px); }
.gxc-facts h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.gxc-facts dl { margin: 0; }
.gxc-facts dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gx-rule); font-size: 13.5px; }
.gxc-facts dt { font-weight: 500; color: var(--gx-ink-3); }
.gxc-facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 991px) { .gxc-facts { position: static; } }

/* ================================================================
   Client sign-in pages: brand panel + form, full screen
   ================================================================ */
body.customers:has(.gxc-auth) .gxc-top, body.customers:has(.gxc-auth) .footer { display: none; }
body.customers:has(.gxc-auth) #content { padding: 0; }
body.customers:has(.gxc-auth) #content .container { max-width: none; padding: 0; }
body.customers:has(.gxc-auth) #content .row { margin: 0; }
body.customers:has(.gxc-auth) #wrapper { min-height: 0; }
.gxc-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; background: var(--gx-surface); }
.gxc-auth-brand {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 56px;
    background: #ff5f1f url('img/hero.jpg') center / cover no-repeat; color: #fff; overflow: hidden;
}
.gxc-auth-logo img { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
.gxc-auth-pitch h2 { margin: 0 0 28px; max-width: 15ch; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; color: #fff !important; }
.gxc-auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gxc-auth-pitch li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; }
.gxc-auth-pitch li span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .3); }
.gxc-auth-pitch .gxc-i { width: 19px; height: 19px; color: #fff; }
.gxc-auth-foot { margin: 0; font-size: 13px; font-weight: 500; color: #fff; }
.gxc-auth-main { display: grid; place-items: center; padding: 48px 24px; }
.gxc-auth-box { width: 100%; max-width: 400px; }
.gxc-auth-box h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.gxc-auth-lead { margin: 8px 0 28px; font-size: 15px; color: var(--gx-ink-2); }
.gxc-form { display: grid; gap: 18px; }
.gxc-field { display: grid; gap: 7px; }
.gxc-field label { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--gx-ink); }
.gxc-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gxc-field-row a { font-size: 13px; font-weight: 600; color: var(--gx-ink-2) !important; text-decoration: underline; text-decoration-color: var(--gx-rule-3); text-underline-offset: 3px; }
.gxc-field input, .gxc-lang-pick select {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--gx-rule-2); background: var(--gx-surface);
    font: 500 15.5px var(--gx-font); color: var(--gx-ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.gxc-field input:focus, .gxc-lang-pick select:focus { outline: none; border-color: var(--gx-ink); box-shadow: 0 0 0 3px rgb(234 95 14 / .18); }
.gxc-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--gx-ink); }
.gxc-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 500; color: var(--gx-ink-2); cursor: pointer; }
.gxc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gx-ink); }
.gxc-btn-block { display: flex; width: 100%; min-height: 50px; font-size: 15px; border-radius: 12px; }
.gxc-lang-pick { position: relative; display: flex; align-items: center; margin-top: 8px; }
.gxc-lang-pick .gxc-i { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--gx-ink-3); pointer-events: none; }
.gxc-lang-pick select { height: 42px; padding-left: 40px; font-size: 14px; color: var(--gx-ink-2); background: var(--gx-paper); border-color: transparent; appearance: auto; }
.gxc-auth-alt { justify-self: center; font-size: 14px; font-weight: 600; color: var(--gx-ink-2) !important; text-decoration: underline; text-decoration-color: var(--gx-rule-3); text-underline-offset: 3px; }
.gxc-auth .text-danger, .gxc-auth .form-error { font-size: 13px; color: var(--gx-stop); }
@media (max-width: 899px) {
    .gxc-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .gxc-auth-brand { padding: 24px 20px 28px; gap: 22px; }
    .gxc-auth-logo img { width: 124px; }
    .gxc-auth-pitch h2 { font-size: 26px; margin: 0; max-width: 20ch; }
    .gxc-auth-pitch ul, .gxc-auth-foot { display: none; }
    .gxc-auth-main { place-items: start center; padding: 28px 20px 40px; }
    .gxc-auth-box h1 { font-size: 28px; }
}

/* Summary tiles above a list */
.gxc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gxc-stat { padding: 16px 18px; border-radius: var(--gx-r-lg); background: var(--gx-surface); border: 1px solid var(--gx-rule); box-shadow: var(--gx-lift); }
.gxc-stat span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gx-ink-3); }
.gxc-stat span .gxc-i { width: 16px; height: 16px; }
.gxc-stat b { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gxc-stat.is-stop b { color: var(--gx-stop); }
.gxc-stat.is-warn span .gxc-i { color: var(--gx-accent); }

/* Stock pages still rendered by Perfex (open ticket, profile, company, statement, project): the same page
   title scale as the GRADAX pages. */
body.customers #content :is(h4, h3):is(.section-heading, .customer-statement-heading, .section-heading-company-profile, .section-heading-announcements) { font-size: clamp(26px, 3vw, 34px) !important; font-weight: 700 !important; letter-spacing: -0.035em !important; line-height: 1.1; margin: 0 0 20px !important; }
body.customers #content .project-name, body.customers #content h3.project-name { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.035em; }
body.customers #content h4.section-text:not(.section-heading-company-profile):not(.section-heading-announcements) { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.025em !important; margin: 0 0 14px !important; }

/* Forms built by the module (new ticket) */
.gxc-formcard { padding: 22px; display: grid; gap: 18px; margin: 0; }
.gxc-field small { font-weight: 500; color: var(--gx-ink-3); }
.gxc-field textarea, .gxc-field select {
    width: 100%; border-radius: 12px; border: 1px solid var(--gx-rule-2); background: var(--gx-surface);
    font: 500 15px/1.55 var(--gx-font); color: var(--gx-ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.gxc-field textarea { min-height: 170px; padding: 12px 14px; resize: vertical; font-weight: 400; }
.gxc-field select { height: 46px; padding: 0 12px; }
.gxc-field textarea:focus, .gxc-field select:focus { outline: none; border-color: var(--gx-ink); box-shadow: 0 0 0 3px rgb(234 95 14 / .18); }
.gxc-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
fieldset.gxc-field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.gxc-field legend { margin: 0 0 8px; border: 0; font-size: 13.5px; font-weight: 700; color: var(--gx-ink); width: auto; }
.gxc-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.gxc-radio { position: relative; margin: 0; cursor: pointer; }
.gxc-radio input { position: absolute; opacity: 0; }
.gxc-radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gx-rule-2); background: var(--gx-surface); font-size: 13.5px; font-weight: 600; color: var(--gx-ink-2); transition: all .15s ease; }
.gxc-radio:hover span { border-color: var(--gx-rule-3); }
.gxc-radio input:checked + span { background: var(--gx-ink); border-color: var(--gx-ink); color: #fff; }
.gxc-radio input:focus-visible + span { outline: 2px solid var(--gx-accent); outline-offset: 2px; }
.gxc-formcard .custom-fields:empty { display: none; }
.gxc-howto ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.gxc-howto li { display: flex; gap: 10px; font-size: 14px; color: var(--gx-ink-2); }
.gxc-howto li .gxc-i { width: 18px; height: 18px; margin-top: 1px; color: var(--gx-accent); }
.gxc-howto-urgent { margin: 16px 0 12px; padding-top: 14px; border-top: 1px solid var(--gx-rule); font-size: 13.5px; color: var(--gx-ink-2); }
.gxc-howto .gxc-btn-block { min-height: 44px; font-size: 14px; }

/* Project page: head + stats, then the stock tabs in one card */
.gxc-phead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gxc-pstats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gxc-pstats .gxc-stat b { font-size: 20px; display: flex; align-items: center; min-height: 32px; }
.gxc-pstats .gxc-meter { margin-top: 8px; }
.gxc-team { display: flex !important; }
.gxc-team > span + span { margin-left: -8px; }
.gxc-team img, .gxc-avatar { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; object-fit: cover; }
.gxc-ptabs { padding: 4px 20px 22px; }
.gxc-ptabs .horizontal-scrollable-tabs, .gxc-ptabs .nav-tabs-horizontal { margin: 0 -20px; padding: 0 12px; }
.gxc-ptab-body { padding-top: 18px; }
.gxc-ptabs .panel_s { box-shadow: none; }
.gxc-page, .gxc-page > *, .gxc-tk-grid > *, .gxc-split > * { min-width: 0; }
.gxc-ptabs { overflow: hidden; }
.gxc-ptabs .horizontal-scrollable-tabs, .gxc-ptabs .nav-tabs-horizontal { margin: 0; padding: 0; max-width: 100%; }
@media (max-width: 575px) {
    .gxc-pstats, .gxc-stats { grid-template-columns: 1fr 1fr; }
    .gxc-ptabs { padding: 4px 14px 18px; }
}

/* The marketing pages (service_subscriptions) sit straight in the Bootstrap row, without a column's 15px:
   give them the same edges as every other page, so their content lines up with the logo and the other pages. */
body.customers #content .row > :is(.svc-app, .svc-focus) { padding-left: 15px; padding-right: 15px; }

/* Font Awesome icons redrawn as Lucide by gxc-icons.js: the FA glyph is hidden, the SVG takes its place and size. */
body.customers .gxc-lu { display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; vertical-align: -0.2em; font-style: normal; }
body.customers .gxc-lu::before, body.customers .gxc-lu::after { content: none !important; display: none !important; }
body.customers .gxc-lu > svg { width: 100%; height: 100%; display: block; }

/* reCAPTCHA (on in production) lines up with the fields */
.gxc-form .g-recaptcha { justify-self: start; }
