/* ==========================================================================
   Portal Theme — customers area
   Brand: JK Software coral (#E9423C) on warm neutrals. Everything is scoped
   under body.pt so the admin area and a disabled module are untouched.
   ========================================================================== */

body.pt {
    --pt-accent: #e9423c;
    --pt-accent-strong: #cf3430;
    --pt-accent-soft: #fdeeed;
    --pt-accent-ring: rgba(233, 66, 60, 0.18);
    --pt-ink: #231f20;
    --pt-text: #3a3433;
    --pt-muted: #7c7270;
    --pt-subtle: #a59c99;
    --pt-bg: #f7f4f1;
    --pt-surface: #ffffff;
    --pt-surface-2: #fbf9f7;
    --pt-hover: #f4f0ec;
    --pt-border: #ece6e1;
    --pt-border-strong: #ddd5ce;
    --pt-success: #15803d;
    --pt-success-soft: #e8f6ec;
    --pt-warning: #b45309;
    --pt-warning-soft: #fdf3e2;
    --pt-danger: #c2410c;
    --pt-danger-soft: #fdecec;
    --pt-info: #1d4ed8;
    --pt-info-soft: #eaf0fd;
    --pt-radius: 14px;
    --pt-radius-sm: 10px;
    --pt-shadow: 0 1px 2px rgba(35, 31, 32, 0.04), 0 6px 20px rgba(35, 31, 32, 0.05);
    --pt-shadow-lg: 0 12px 40px rgba(35, 31, 32, 0.14);
    --pt-sidebar-w: 264px;
    --pt-topbar-h: 68px;

    background: var(--pt-bg);
    color: var(--pt-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
}

/* dark_mode module toggles html.dark */
html.dark body.pt {
    --pt-accent: #f0625c;
    --pt-accent-strong: #f47b76;
    --pt-accent-soft: rgba(240, 98, 92, 0.14);
    --pt-accent-ring: rgba(240, 98, 92, 0.28);
    --pt-ink: #f1ecea;
    --pt-text: #d9d2cf;
    --pt-muted: #a39996;
    --pt-subtle: #7d7472;
    --pt-bg: #1a1817;
    --pt-surface: #242120;
    --pt-surface-2: #2a2726;
    --pt-hover: #302c2b;
    --pt-border: #353130;
    --pt-border-strong: #45403e;
    --pt-success-soft: rgba(21, 128, 61, 0.18);
    --pt-warning-soft: rgba(180, 83, 9, 0.2);
    --pt-danger-soft: rgba(194, 65, 12, 0.2);
    --pt-info-soft: rgba(29, 78, 216, 0.2);
    --pt-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.pt a { color: var(--pt-accent-strong); }
body.pt a:hover, body.pt a:focus { color: var(--pt-accent); }
body.pt h1, body.pt h2, body.pt h3, body.pt h4, body.pt h5 { color: var(--pt-ink); letter-spacing: -0.01em; }
body.pt .text-muted { color: var(--pt-muted) !important; }
body.pt hr { border-color: var(--pt-border); }
body.pt ::selection { background: var(--pt-accent-soft); }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
body.pt-has-shell #wrapper { background: transparent; min-height: 0; }
body.pt-has-shell #content { padding: 0; }

.pt-shell { display: flex; min-height: 100vh; }

.pt-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1040;
    width: var(--pt-sidebar-w);
    display: flex; flex-direction: column;
    background: var(--pt-surface);
    border-right: 1px solid var(--pt-border);
}
.pt-sidebar__brand { padding: 22px 22px 18px; }
.pt-sidebar__brand .pt-logo { display: inline-block; float: none; padding: 0; height: auto; }
.pt-sidebar__brand img { max-height: 38px; width: auto; max-width: 100%; }
.pt-sidebar__brand .logo-text { font-weight: 700; font-size: 18px; color: var(--pt-ink); }

.pt-sidebar__nav { flex: 1; overflow-y: auto; padding: 4px 14px 16px; }
.pt-nav { list-style: none; margin: 0; padding: 0; }
/* the tools list keeps the core .submenu class for module hooks; undo its inline layout */
.pt-nav.submenu { display: block; float: none; margin: 0; }
.pt-nav.submenu li { display: block; margin: 0; }
.pt-nav.submenu li a { font-size: inherit; color: var(--pt-text) !important; }
.pt-nav.submenu li.is-active a { color: var(--pt-accent-strong) !important; }
.pt-nav li a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; margin: 2px 0;
    border-radius: var(--pt-radius-sm);
    color: var(--pt-text); font-weight: 500; text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.pt-nav li a i { width: 18px; text-align: center; font-size: 15px; color: var(--pt-subtle); transition: color .15s ease; }
.pt-nav li a:hover { background: var(--pt-hover); color: var(--pt-ink); }
.pt-nav li a:hover i { color: var(--pt-muted); }
.pt-nav li.is-active a { background: var(--pt-accent-soft); color: var(--pt-accent-strong); font-weight: 600; }
.pt-nav li.is-active a i { color: var(--pt-accent); }
.pt-nav__label {
    margin: 22px 12px 6px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; color: var(--pt-subtle);
}
.pt-sidebar__foot { padding: 16px; border-top: 1px solid var(--pt-border); }

.pt-main { flex: 1; min-width: 0; margin-left: var(--pt-sidebar-w); display: flex; flex-direction: column; }

.pt-topbar {
    position: sticky; top: 0; z-index: 1030;
    height: var(--pt-topbar-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 32px;
    background: color-mix(in srgb, var(--pt-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--pt-border);
}
.pt-topbar__toggle {
    display: none; border: 0; background: transparent; color: var(--pt-ink);
    width: 40px; height: 40px; border-radius: var(--pt-radius-sm); font-size: 18px;
}
.pt-topbar__toggle:hover { background: var(--pt-hover); }
.pt-topbar__title {
    margin: 0; flex: 1; min-width: 0;
    font-size: 19px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pt-topbar__actions { display: flex; align-items: center; gap: 10px; }

.pt-user__toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 5px; border-radius: 999px;
    color: var(--pt-ink) !important; text-decoration: none !important;
    border: 1px solid transparent;
}
.pt-user__toggle:hover, .pt-user.open .pt-user__toggle { background: var(--pt-surface); border-color: var(--pt-border); }
.pt-user__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--pt-hover); }
.pt-user__name { display: flex; flex-direction: column; line-height: 1.2; }
.pt-user__name strong { font-size: 13.5px; font-weight: 600; }
.pt-user__name small { font-size: 12px; color: var(--pt-muted); }
.pt-user__caret { font-size: 11px; color: var(--pt-subtle); }

.pt-content { flex: 1; padding: 28px 32px 40px; }
.pt-content > #content { max-width: 1240px; margin: 0 auto; }
.pt-view > .row:first-child > [class*="col-"]:first-child > h4:first-child,
.pt-view > h4:first-child { margin-top: 0; }

body.pt-has-shell .footer {
    background: transparent; border: 0; padding: 18px 32px 26px;
    color: var(--pt-subtle); font-size: 12.5px;
}

body.pt-has-shell .footer .container, body.pt-has-shell .pt-content .container { width: auto; max-width: 100%; padding: 0; }
body.pt-has-shell .footer .row { margin: 0; }

.pt-backdrop { display: none; }

@media (max-width: 991px) {
    .pt-sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
    body.pt-nav-open .pt-sidebar { transform: none; box-shadow: var(--pt-shadow-lg); }
    body.pt-nav-open .pt-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1035;
        background: rgba(35, 31, 32, 0.35);
    }
    .pt-main { margin-left: 0; }
    .pt-topbar { padding: 0 16px; }
    .pt-topbar__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .pt-content { padding: 20px 16px 32px; }
    body.pt-has-shell .footer { padding: 14px 16px 22px; }
}
@media (max-width: 600px) {
    .pt-user__name, .pt-user__caret { display: none; }
    .pt-user__toggle { padding: 3px; }
    .pt-topbar__title { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.pt .btn, .pt-btn {
    border-radius: var(--pt-radius-sm); font-weight: 600; font-size: 13.5px;
    padding: 8px 15px; line-height: 1.45; box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
body.pt .btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
body.pt .btn-xs { padding: 2px 8px; font-size: 12px; border-radius: 7px; }
body.pt .btn:focus-visible, .pt-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pt-accent-ring); }

body.pt .btn-primary, .pt-btn--primary {
    background: var(--pt-accent); border: 1px solid var(--pt-accent); color: #fff !important;
}
body.pt .btn-primary:hover, body.pt .btn-primary:focus, body.pt .btn-primary:active,
.pt-btn--primary:hover, .pt-btn--primary:focus {
    background: var(--pt-accent-strong); border-color: var(--pt-accent-strong); color: #fff !important;
}
body.pt .btn-default {
    background: var(--pt-surface); border: 1px solid var(--pt-border-strong); color: var(--pt-ink);
}
body.pt .btn-default:hover, body.pt .btn-default:focus { background: var(--pt-hover); border-color: var(--pt-border-strong); color: var(--pt-ink); }
body.pt .btn-success { background: var(--pt-success); border-color: var(--pt-success); }
body.pt .btn-info { background: var(--pt-info); border-color: var(--pt-info); }
body.pt .btn-warning { background: #d97706; border-color: #d97706; color: #fff; }

.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; border: 1px solid transparent; }
.pt-btn--block { display: flex; width: 100%; padding: 10px 15px; }
.pt-btn--ghost { background: var(--pt-surface); border-color: var(--pt-border-strong); color: var(--pt-ink) !important; }
.pt-btn--ghost:hover { background: var(--pt-hover); }

/* --------------------------------------------------------------------------
   Panels, cards, headings
   -------------------------------------------------------------------------- */
body.pt .panel_s, body.pt .panel {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-shadow);
}
body.pt .panel_s > .panel-body, body.pt .panel > .panel-body { padding: 22px 24px; background: transparent; }
body.pt .panel_s .panel-heading, body.pt .panel .panel-heading {
    border-radius: var(--pt-radius) var(--pt-radius) 0 0; border-color: var(--pt-border);
}
body.pt .panel_s .panel-footer, body.pt .panel .panel-footer {
    background: var(--pt-surface-2); border-top: 1px solid var(--pt-border);
    border-radius: 0 0 var(--pt-radius) var(--pt-radius); padding: 14px 24px;
}
body.pt .section-heading, body.pt .pt-view h4.tw-font-semibold, body.pt .pt-view h4.tw-font-bold {
    color: var(--pt-ink); font-weight: 700;
}
body.pt .tw-text-neutral-700 { color: var(--pt-ink) !important; }
body.pt .tw-text-neutral-500, body.pt .tw-text-neutral-600 { color: var(--pt-muted) !important; }
body.pt .tw-border-neutral-200, body.pt .tw-border-neutral-300, body.pt .tw-divide-neutral-100 > * { border-color: var(--pt-border) !important; }
body.pt .tw-bg-white { background-color: var(--pt-surface) !important; }
body.pt .tw-bg-neutral-50 { background-color: var(--pt-surface-2) !important; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
body.pt label, body.pt .control-label { color: var(--pt-ink); font-weight: 600; font-size: 13px; }
body.pt .form-control,
body.pt .bootstrap-select > .dropdown-toggle,
body.pt .input-group-addon {
    border-radius: var(--pt-radius-sm);
    border: 1px solid var(--pt-border-strong);
    background-color: var(--pt-surface);
    color: var(--pt-ink);
    box-shadow: none;
}
body.pt .form-control { min-height: 40px; padding: 8px 12px; }
body.pt textarea.form-control { padding: 12px 14px; line-height: 1.55; }
body.pt .form-control:focus,
body.pt .bootstrap-select.open > .dropdown-toggle,
body.pt .bootstrap-select > .dropdown-toggle:focus {
    border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-ring); outline: none !important;
}
body.pt .form-control::placeholder { color: var(--pt-subtle); }
body.pt .input-group > .form-control:not(:last-child),
body.pt .input-group > .input-group-addon:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.pt .input-group > .form-control:not(:first-child),
body.pt .input-group > .input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.pt .input-group-addon { background: var(--pt-surface-2); color: var(--pt-muted); }
body.pt .help-block { color: var(--pt-muted); font-size: 12.5px; }
body.pt .has-error .form-control { border-color: #dc2626; }
body.pt .text-danger, body.pt .alert-validation { color: #b91c1c; }

body.pt .dropdown-menu {
    border: 1px solid var(--pt-border); border-radius: 12px; padding: 6px;
    background: var(--pt-surface); box-shadow: var(--pt-shadow-lg);
}
body.pt .dropdown-menu > li > a {
    border-radius: 8px; padding: 8px 12px; color: var(--pt-text);
    display: flex; align-items: center; gap: 10px;
}
body.pt .dropdown-menu > li > a > i { width: 16px; text-align: center; color: var(--pt-subtle); }
body.pt .dropdown-menu > li > a:hover, body.pt .dropdown-menu > li > a:focus { background: var(--pt-hover); color: var(--pt-ink); }
body.pt .dropdown-menu > .active > a, body.pt .dropdown-menu > .active > a:hover { background: var(--pt-accent-soft); color: var(--pt-accent-strong); }
body.pt .dropdown-menu .divider { background: var(--pt-border); margin: 6px 4px; }
body.pt .dropdown-header { color: var(--pt-subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px 4px; }

/* --------------------------------------------------------------------------
   Tables & DataTables
   -------------------------------------------------------------------------- */
body.pt .table { color: var(--pt-text); }
body.pt .table > thead > tr > th {
    background: var(--pt-surface-2);
    color: var(--pt-muted); font-size: 11.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--pt-border) !important; border-top: 0 !important;
    padding: 12px 14px;
}
body.pt .table > tbody > tr > td { border-top: 1px solid var(--pt-border); padding: 13px 14px; vertical-align: middle; }
body.pt .table > tbody > tr:hover > td { background: var(--pt-surface-2); }
body.pt .table > tbody > tr > td a { font-weight: 600; }
body.pt .table-responsive { border: 0; }
body.pt .table-tickets .th-ticket-subject { min-width: 260px; }
body.pt .table-tickets .th-ticket-number { width: 80px; }
body.pt .table-tickets .th-ticket-last-reply { min-width: 120px; }
/* client_tickets_enhanced loading skeleton */
body.pt #cte-tickets-loading-placeholder .tw-bg-current { background: var(--pt-border-strong) !important; opacity: .6 !important; }
body.pt #cte-tickets-loading-placeholder > div, body.pt #cte-tickets-loading-placeholder .tw-border { border-color: var(--pt-border) !important; border-radius: 12px; }
body.pt .dataTables_wrapper .dataTables_length select,
body.pt .dataTables_wrapper .dataTables_filter input { border-radius: var(--pt-radius-sm); }
body.pt .dataTables_wrapper .dataTables_info { color: var(--pt-muted); font-size: 12.5px; }
body.pt .pagination > li > a, body.pt .pagination > li > span {
    border-radius: 8px !important; margin: 0 2px; border-color: var(--pt-border); color: var(--pt-text); background: var(--pt-surface);
}
body.pt .pagination > .active > a, body.pt .pagination > .active > a:hover,
body.pt .pagination > .active > span { background: var(--pt-accent); border-color: var(--pt-accent); color: #fff; }

/* --------------------------------------------------------------------------
   Labels, badges, alerts, tabs, progress
   -------------------------------------------------------------------------- */
body.pt .label {
    display: inline-block; border-radius: 999px; padding: 4px 10px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.3;
}
body.pt .badge { border-radius: 999px; font-weight: 600; background: var(--pt-hover); color: var(--pt-muted); }

body.pt .alert {
    border-radius: 12px; border: 1px solid transparent; border-left-width: 1px !important;
    padding: 14px 16px; box-shadow: none;
}
body.pt .alert-danger { background: var(--pt-danger-soft); border-color: #f6cfc9; color: #9f2d1f; }
body.pt .alert-warning { background: var(--pt-warning-soft); border-color: #f3dcb3; color: #8a4a0b; }
body.pt .alert-success { background: var(--pt-success-soft); border-color: #c7e8d1; color: #166534; }
body.pt .alert-info { background: var(--pt-info-soft); border-color: #cfdcf8; color: #1e40af; }
body.pt .alert a:not(.btn) { color: inherit; font-weight: 600; text-decoration: underline; }
html.dark body.pt .alert { border-color: var(--pt-border); color: var(--pt-text); }

body.pt .nav-tabs { border-bottom: 1px solid var(--pt-border); }
body.pt .nav-tabs > li > a {
    border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0;
    color: var(--pt-muted); font-weight: 600; padding: 10px 14px; margin-right: 4px; background: transparent !important;
}
body.pt .nav-tabs > li > a:hover { color: var(--pt-ink); }
body.pt .nav-tabs > li.active > a, body.pt .nav-tabs > li.active > a:hover, body.pt .nav-tabs > li.active > a:focus {
    color: var(--pt-accent-strong); border-bottom-color: var(--pt-accent) !important;
}

body.pt .progress { border-radius: 999px; background: var(--pt-hover); box-shadow: none; }
body.pt .progress-bar { border-radius: 999px; box-shadow: none; }

body.pt .modal-content { border: 0; border-radius: 16px; box-shadow: var(--pt-shadow-lg); background: var(--pt-surface); }
body.pt .modal-header { border-bottom: 1px solid var(--pt-border); padding: 18px 22px; }
body.pt .modal-body { padding: 20px 22px; }
body.pt .modal-footer { border-top: 1px solid var(--pt-border); padding: 14px 22px; }

/* --------------------------------------------------------------------------
   Dashboard (my_home.php)
   -------------------------------------------------------------------------- */
.pt-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 26px 28px; margin-bottom: 22px;
    border-radius: 18px;
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(233, 66, 60, 0.16), transparent 70%),
        linear-gradient(135deg, var(--pt-surface) 0%, var(--pt-surface-2) 100%);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow);
}
.pt-hero h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.pt-hero p { margin: 0; color: var(--pt-muted); font-size: 15px; }
.pt-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 26px; }
.pt-kpi {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px; border-radius: var(--pt-radius);
    background: var(--pt-surface); border: 1px solid var(--pt-border); box-shadow: var(--pt-shadow);
    color: var(--pt-text) !important; text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.pt-kpi:hover { transform: translateY(-2px); border-color: var(--pt-border-strong); box-shadow: 0 10px 28px rgba(35, 31, 32, 0.08); }
.pt-kpi__icon {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
    background: var(--pt-accent-soft); color: var(--pt-accent);
}
.pt-kpi__icon--green { background: var(--pt-success-soft); color: var(--pt-success); }
.pt-kpi__icon--amber { background: var(--pt-warning-soft); color: var(--pt-warning); }
.pt-kpi__icon--blue { background: var(--pt-info-soft); color: var(--pt-info); }
.pt-kpi__label { display: block; font-size: 12.5px; color: var(--pt-muted); font-weight: 500; margin-bottom: 3px; }
.pt-kpi__value { display: block; font-size: 22px; font-weight: 700; color: var(--pt-ink); line-height: 1.2; }
.pt-kpi__hint { display: block; font-size: 12.5px; color: var(--pt-muted); margin-top: 3px; }
.pt-kpi__bar { display: block; height: 6px; border-radius: 999px; background: var(--pt-hover); margin-top: 10px; overflow: hidden; }
.pt-kpi__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--pt-success); }

.pt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.pt-section-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.pt-section-head a { font-size: 13px; font-weight: 600; }

.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list__item a {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 20px; border-top: 1px solid var(--pt-border);
    color: var(--pt-text) !important; text-decoration: none !important;
}
.pt-list__item:first-child a { border-top: 0; }
.pt-list__item a:hover { background: var(--pt-surface-2); }
.pt-list__id { flex: none; font-size: 12.5px; color: var(--pt-subtle); font-variant-numeric: tabular-nums; min-width: 48px; }
.pt-list__title { flex: 1; min-width: 0; font-weight: 600; color: var(--pt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-list__meta { flex: none; font-size: 12.5px; color: var(--pt-muted); }
.pt-list__empty { padding: 26px 20px; text-align: center; color: var(--pt-muted); }
.pt-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pt-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* Status summary tiles used by several core views (projects, tickets, estimates...) */
body.pt dl.tw-grid > a {
    background: var(--pt-surface) !important; border: 1px solid var(--pt-border) !important;
    border-radius: 12px !important; box-shadow: var(--pt-shadow); text-decoration: none !important;
    transition: border-color .15s ease, transform .15s ease;
}
body.pt dl.tw-grid > a:hover { border-color: var(--pt-border-strong) !important; transform: translateY(-1px); }
body.pt dl.tw-grid > a dt { font-size: 12.5px; font-weight: 600; }
body.pt dl.tw-grid > a dd > div { font-size: 20px !important; font-weight: 700; color: var(--pt-ink) !important; }

@media (max-width: 767px) {
    .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pt-kpi { flex-direction: column; gap: 10px; padding: 16px; }
    .pt-kpi__value { font-size: 19px; }
    body.pt dl.tw-grid.tw-grid-cols-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .pt-list__meta { display: none; }
    .pt-hero { padding: 22px 20px; }
    .pt-hero h2 { font-size: 21px; }
}
body.pt .pt-card-flush > .panel-body { padding: 0; }

/* --------------------------------------------------------------------------
   Guests: login, register, password reset, knowledge base
   -------------------------------------------------------------------------- */
body.pt-guest .navbar.header {
    background: var(--pt-surface); border: 0; border-bottom: 1px solid var(--pt-border);
    box-shadow: none; min-height: 68px;
}
body.pt-guest .navbar.header .navbar-brand img { max-height: 36px; width: auto; }
body.pt-guest .navbar-nav > li > a { color: var(--pt-text); font-weight: 600; }
body.pt-guest .navbar-nav > li > a:hover { color: var(--pt-accent-strong); }
body.pt-guest #wrapper { background: transparent; }
body.pt-guest .footer { background: transparent; border: 0; color: var(--pt-subtle); }

/* --------------------------------------------------------------------------
   Page specifics
   -------------------------------------------------------------------------- */
/* knowledge base search */
body.pt .has-feedback-left .form-control { padding-left: 40px; }
body.pt .has-feedback-left .form-control-feedback { color: var(--pt-subtle); z-index: 3; }
body.pt .kb-search-jumbotron {
    background: radial-gradient(600px 220px at 100% 0%, rgba(233, 66, 60, 0.14), transparent 70%), var(--pt-surface);
    border: 1px solid var(--pt-border); border-radius: 18px; box-shadow: var(--pt-shadow);
    padding: 36px 20px; margin-bottom: 24px;
}
body.pt .kb-search-jumbotron .container { width: auto; }
body.pt .kb-search-heading { color: var(--pt-ink); font-size: 24px; }
body.pt .kb-search-input { min-height: 46px; }
body.pt .kb-search-button { min-height: 46px; padding: 0 22px; }

/* FullCalendar */
/* the theme paints these with !important elsewhere, so match it */
body.pt .fc .fc-button-primary {
    background: var(--pt-surface) !important; border: 1px solid var(--pt-border-strong) !important; color: var(--pt-ink) !important;
    border-radius: var(--pt-radius-sm); font-weight: 600; text-transform: none; box-shadow: none !important;
}
body.pt .fc .fc-button-primary:hover { background: var(--pt-hover) !important; }
body.pt .fc .fc-button-primary:not(:disabled).fc-button-active,
body.pt .fc .fc-button-primary:not(:disabled):active { background: var(--pt-accent-soft) !important; border-color: var(--pt-accent) !important; color: var(--pt-accent-strong) !important; }
body.pt .fc .fc-button-primary:disabled { opacity: .55; }
body.pt .fc .fc-toolbar-title { color: var(--pt-ink); font-weight: 700; font-size: 20px; }
body.pt .fc-theme-standard td, body.pt .fc-theme-standard th, body.pt .fc-theme-standard .fc-scrollgrid { border-color: var(--pt-border); }
body.pt .fc .fc-col-header-cell-cushion { color: var(--pt-muted); font-weight: 600; }
body.pt .fc .fc-day-today { background: var(--pt-accent-soft) !important; }

/* customer hours bar (custom_tasks_helper) */
body.pt-has-shell .pt-content > #content > .row > .col-md-12 > .panel_s { overflow: hidden; }

/* bootstrap-select copies .form-control onto its wrapper; keep a single border */
body.pt .bootstrap-select.form-control { border: 0; padding: 0; min-height: 0; box-shadow: none; background: transparent; }
body.pt .bootstrap-select > .dropdown-toggle { min-height: 40px; padding: 8px 12px; }

/* guest pages */
body.pt-guest .navbar-nav > li.customers-nav-item-login > a,
body.pt-guest .navbar-default .navbar-nav > li.customers-nav-item-login > a:hover {
    background: var(--pt-accent) !important; border-radius: var(--pt-radius-sm) !important; font-weight: 600;
}
body.pt-guest .navbar-default .navbar-nav > li.customers-nav-item-login > a:hover { background: var(--pt-accent-strong) !important; }
body.pt-guest .login-heading, body.pt-guest .register-heading { font-size: 26px; color: var(--pt-ink); }
body.pt-guest #content .panel_s { box-shadow: 0 1px 2px rgba(35, 31, 32, 0.04), 0 18px 48px rgba(35, 31, 32, 0.08); }
body.pt-guest #content .panel_s > .panel-body { padding: 26px 28px; }
