/* SJPR FX+ 1.7 – client area, full dark theme (Premium Black / Shiny Gold / Brilliant White / Borrasca grey).
   Loaded only on body.customers pages, after Perfex's own stylesheets. Nothing here changes behaviour, only looks. */
body.customers{
  --sj-bg:#0b0b0c;--sj-surface:#121214;--sj-surface-2:#18181b;--sj-field:#0e0e10;
  --sj-line:rgba(255,255,255,.07);--sj-line-2:rgba(255,255,255,.12);--sj-line-gold:rgba(212,175,55,.30);
  --sj-text:#f5f5f2;--sj-muted:#a9acb2;--sj-dim:#6e7279;
  --sj-gold:#d9b44a;--sj-gold-hi:#f1d88a;
  --sj-shine:linear-gradient(135deg,#fff1c1 0%,#f0d277 22%,#d4af37 48%,#f6e3a1 72%,#b8892c 100%);
  --sj-pos:#3ddc97;--sj-neg:#ff6b5e;--sj-warn:#e8a33a;
  background:var(--sj-bg)!important;color:var(--sj-text);
}
/* a soft gold glow at the top of the page (static – fixed backgrounds make Chrome janky) */
body.customers #wrapper{background-image:radial-gradient(900px 380px at 92% -10%,rgba(212,175,55,.07),transparent 62%)!important}
body.customers #content{background:transparent!important}
body.customers #content{padding-top:18px;min-height:calc(100vh - 150px)}
body.customers,body.customers p,body.customers div,body.customers td,body.customers th,body.customers li{color:var(--sj-text)}
body.customers h1,body.customers h2,body.customers h3,body.customers h4,body.customers h5,body.customers h6{color:#fff}
body.customers .text-muted,body.customers .text-muted *,body.customers small,body.customers .help-block,body.customers .tw-text-neutral-500,body.customers .tw-text-neutral-600{color:var(--sj-muted)!important}
body.customers hr{border-color:var(--sj-line)}
body.customers #wrapper a:not(.btn):not(.label):not(.fxc-btn){color:var(--sj-gold-hi)}
body.customers #wrapper a:not(.btn):not(.label):not(.fxc-btn):hover{color:#fff}

/* page title + the small Files / Calendar submenu */
body.customers #content h4.tw-font-bold,body.customers #content h4.tw-font-semibold,body.customers #content h4.tw-mt-0{font-size:22px;font-weight:600;letter-spacing:-.01em;margin:6px 0 16px}
body.customers .submenu.customer-top-submenu a{color:var(--sj-muted)}
body.customers .submenu.customer-top-submenu a:hover{color:#fff}

/* cards */
body.customers .panel_s,body.customers .panel{background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.008)),var(--sj-surface)!important;border:1px solid var(--sj-line)!important;border-radius:14px;box-shadow:0 20px 40px -24px rgba(0,0,0,.8)}
body.customers .panel_s>.panel-body,body.customers .panel>.panel-body{background:transparent;color:var(--sj-text)}
body.customers .panel-heading{background:transparent!important;border-bottom:1px solid var(--sj-line)!important;color:#fff;border-radius:14px 14px 0 0}
body.customers .panel-footer{background:rgba(255,255,255,.02)!important;border-top:1px solid var(--sj-line)!important;border-radius:0 0 14px 14px}
body.customers .well{background:var(--sj-surface-2);border:1px solid var(--sj-line);color:var(--sj-text);box-shadow:none;border-radius:12px}
body.customers .hr-panel-heading,body.customers .hr-panel-separator{border-color:var(--sj-line)}

/* invoice quick-info strip */
body.customers .invoice-quick-info .stats-status,body.customers .estimate-quick-info .stats-status{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:700}
body.customers .invoices-stats-unpaid .stats-status{color:var(--sj-warn)!important}
body.customers .invoices-stats-paid .stats-status{color:var(--sj-pos)!important}
body.customers .invoices-stats-overdue .stats-status{color:var(--sj-neg)!important}
body.customers .invoices-stats-partially .stats-status,body.customers [class*="stats-partially"] .stats-status{color:var(--sj-gold)!important}
body.customers .progress{background:rgba(255,255,255,.08);box-shadow:none;border-radius:99px;height:6px}
body.customers .progress-bar{background:var(--sj-shine);box-shadow:none}
body.customers .progress-bar-success{background:var(--sj-pos)}
body.customers .progress-bar-danger{background:var(--sj-neg)}
body.customers .progress-bar-warning{background:var(--sj-warn)}

/* tables & DataTables */
body.customers .table{color:var(--sj-text);background:transparent}
body.customers .table>thead>tr>th{color:var(--sj-muted)!important;border-bottom:1px solid var(--sj-line-gold)!important;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;background:transparent!important}
body.customers .table>tbody>tr>td,body.customers .table>tbody>tr>th,body.customers .table>tfoot>tr>td,body.customers .table>tfoot>tr>th,body.customers .table>thead>tr>td{border-top:1px solid var(--sj-line)!important;background:transparent!important;color:var(--sj-text)!important;vertical-align:middle}
body.customers .table-striped>tbody>tr:nth-of-type(odd)>td{background:rgba(255,255,255,.015)!important}
body.customers .table-hover>tbody>tr:hover>td{background:rgba(212,175,55,.05)!important}
body.customers .table>tbody>tr.odd>td,body.customers .table>tbody>tr.even>td{background:transparent!important}
body.customers table.dataTable.no-footer{border-bottom:1px solid var(--sj-line)}
body.customers .dataTables_wrapper .dataTables_length,body.customers .dataTables_wrapper .dataTables_filter,body.customers .dataTables_wrapper .dataTables_info,body.customers .dataTables_wrapper .dataTables_processing,body.customers .dataTables_wrapper .dataTables_paginate{color:var(--sj-muted)}
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button{color:var(--sj-muted)!important;border-color:transparent;border-radius:8px}
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button:hover{background:rgba(212,175,55,.1)!important;border-color:var(--sj-line-gold)!important;color:#fff!important}
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button.current,body.customers .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{background:var(--sj-shine)!important;border-color:transparent!important;color:#0a0a0a!important}
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button.disabled{opacity:.4}
body.customers table.dataTable thead .sorting:before,body.customers table.dataTable thead .sorting:after,body.customers table.dataTable thead .sorting_asc:after,body.customers table.dataTable thead .sorting_desc:after{color:var(--sj-gold)}
body.customers .dataTables_empty{color:var(--sj-muted)!important;padding:26px 8px!important}
body.customers .pagination>li>a,body.customers .pagination>li>span{background:transparent;border-color:var(--sj-line);color:var(--sj-text)}
body.customers .pagination>.active>a,body.customers .pagination>.active>span{background:var(--sj-shine);border-color:transparent;color:#0a0a0a}

/* forms */
body.customers .form-control,body.customers input.form-control,body.customers textarea.form-control,body.customers select.form-control,body.customers .dataTables_filter input,body.customers .dataTables_length select,body.customers .input-group-addon{background:var(--sj-field)!important;border:1px solid var(--sj-line-2)!important;color:var(--sj-text)!important;border-radius:10px;box-shadow:none!important}
body.customers .form-control:focus,body.customers .dataTables_filter input:focus{border-color:var(--sj-gold)!important;box-shadow:0 0 0 3px rgba(212,175,55,.15)!important}
body.customers .form-control::placeholder,body.customers .dataTables_filter input::placeholder{color:var(--sj-dim)}
body.customers .form-control option,body.customers select option{background:#111;color:var(--sj-text)}
body.customers label,body.customers .control-label{color:var(--sj-muted);font-weight:600;font-size:12px;letter-spacing:.04em}
body.customers .bootstrap-select>.dropdown-toggle,body.customers .bootstrap-select>.dropdown-toggle:hover,body.customers .bootstrap-select>.dropdown-toggle:focus{background:var(--sj-field)!important;border:1px solid var(--sj-line-2)!important;color:var(--sj-text)!important;border-radius:10px;box-shadow:none!important}
body.customers .bootstrap-select .dropdown-menu,body.customers .dropdown-menu{background:#141417;border:1px solid var(--sj-line-gold);border-radius:12px;box-shadow:0 24px 48px -16px rgba(0,0,0,.9);padding:6px}
body.customers .dropdown-menu>li>a,body.customers .bootstrap-select .dropdown-menu li a{color:var(--sj-text)!important;border-radius:8px}
body.customers .dropdown-menu>li>a:hover,body.customers .bootstrap-select .dropdown-menu li a:hover,body.customers .bootstrap-select .dropdown-menu li.selected a{background:rgba(212,175,55,.12)!important;color:#fff!important}
body.customers .bootstrap-select .bs-searchbox .form-control{background:var(--sj-field)!important}
body.customers .checkbox label,body.customers .radio label{color:var(--sj-text)}
body.customers .input-group-addon{border-radius:10px 0 0 10px}
body.customers .datetimepicker,body.customers .xdsoft_datetimepicker{background:#141417;border-color:var(--sj-line-gold);color:var(--sj-text)}

/* buttons */
body.customers .btn{border-radius:10px;font-weight:600;letter-spacing:.02em;transition:filter .15s,background .15s}
body.customers .btn-primary,body.customers .btn-info,body.customers .btn-success{background:var(--sj-shine)!important;border:0!important;color:#0a0a0a!important;box-shadow:inset 0 0 0 1px rgba(255,240,190,.45),0 10px 26px -10px rgba(212,175,55,.55)}
body.customers .btn-primary:hover,body.customers .btn-primary:focus,body.customers .btn-info:hover,body.customers .btn-success:hover{filter:brightness(1.07);color:#000!important}
body.customers .btn-default{background:transparent!important;border:1px solid rgba(212,175,55,.42)!important;color:var(--sj-text)!important}
body.customers .btn-default:hover,body.customers .btn-default:focus{background:rgba(212,175,55,.09)!important;color:#fff!important;border-color:var(--sj-gold)!important}
body.customers .btn-danger{background:transparent!important;border:1px solid rgba(255,107,94,.5)!important;color:var(--sj-neg)!important}
body.customers .btn-danger:hover{background:rgba(255,107,94,.12)!important}
body.customers .btn-link{color:var(--sj-gold-hi)}
body.customers .btn[disabled],body.customers .btn.disabled{filter:grayscale(.5) brightness(.75)}

/* status labels & badges */
body.customers .label{border-radius:99px;font-weight:700;letter-spacing:.06em;font-size:10.5px;padding:4px 10px;text-transform:uppercase}
body.customers .label-default{background:rgba(255,255,255,.1);color:var(--sj-text)}
body.customers .label-success{background:rgba(61,220,151,.16);color:var(--sj-pos)}
body.customers .label-danger{background:rgba(255,107,94,.16);color:var(--sj-neg)}
body.customers .label-warning{background:rgba(232,163,58,.16);color:var(--sj-warn)}
body.customers .label-info,body.customers .label-primary{background:rgba(212,175,55,.16);color:var(--sj-gold-hi)}
body.customers .badge{background:rgba(212,175,55,.16);color:var(--sj-gold-hi)}

/* alerts */
body.customers .alert{border-radius:12px;border:1px solid var(--sj-line-gold);background:rgba(212,175,55,.06);color:var(--sj-text)}
body.customers .alert-success{border-color:rgba(61,220,151,.35);background:rgba(61,220,151,.08)}
body.customers .alert-danger,body.customers .alert-warning{border-color:rgba(255,107,94,.35);background:rgba(255,107,94,.08)}
body.customers .alert .close{color:#fff;opacity:.6;text-shadow:none}

/* support: ticket list, new ticket, ticket thread */
body.customers .ticket-reply,body.customers .ticket-reply-content,body.customers .ticket-reply-wrapper{background:var(--sj-surface-2)!important;border:1px solid var(--sj-line)!important;border-radius:12px;color:var(--sj-text)}
body.customers .ticket-reply.ticket-reply-staff,body.customers .ticket-reply[class*="staff"]{border-color:var(--sj-line-gold)!important;background:rgba(212,175,55,.05)!important}
body.customers .ticket-reply .text-muted,body.customers .ticket-reply small{color:var(--sj-muted)!important}
body.customers .ticket-reply hr{border-color:var(--sj-line)}
body.customers .attachments_area,body.customers .attachments,body.customers .attachment{background:transparent}
body.customers .attachment,body.customers .attachments .attachment-wrapper{border:1px dashed var(--sj-line-2);border-radius:10px;background:var(--sj-field)}
body.customers .dropzone,body.customers .dz-message{background:var(--sj-field)!important;border:1px dashed var(--sj-line-gold)!important;color:var(--sj-muted)!important;border-radius:12px}
body.customers .ticket-status,body.customers .ticket-priority{font-weight:600}
body.customers .media,body.customers .media-body{color:var(--sj-text)}
body.customers blockquote{border-left:3px solid var(--sj-gold);background:rgba(255,255,255,.02);color:var(--sj-muted)}
body.customers .nav-tabs{border-bottom:1px solid var(--sj-line)}
body.customers .nav-tabs>li>a{color:var(--sj-muted);border:0;border-radius:8px 8px 0 0}
body.customers .nav-tabs>li>a:hover{background:rgba(212,175,55,.08);color:#fff;border-color:transparent}
body.customers .nav-tabs>li.active>a,body.customers .nav-tabs>li.active>a:focus,body.customers .nav-tabs>li.active>a:hover{background:transparent;color:var(--sj-gold-hi);border:0;border-bottom:2px solid var(--sj-gold)}
body.customers .list-group-item{background:var(--sj-surface);border-color:var(--sj-line);color:var(--sj-text)}
body.customers .list-group-item:hover{background:rgba(212,175,55,.05)}

/* knowledge base, modals, misc */
body.customers .kb-group,body.customers .kb-article,body.customers .modal-content{background:var(--sj-surface);border:1px solid var(--sj-line-gold);color:var(--sj-text);border-radius:14px;box-shadow:0 30px 60px -20px rgba(0,0,0,.9)}
body.customers .modal-header,body.customers .modal-footer{border-color:var(--sj-line)}
body.customers .modal-header .close{color:#fff;opacity:.6;text-shadow:none}
body.customers .modal-backdrop{background:#000}
body.customers .announcement,body.customers .announcement-body{color:var(--sj-text)}
body.customers .lightbox .lb-dataContainer{background:#000}
body.customers .popover{background:#141417;border-color:var(--sj-line-gold);color:var(--sj-text)}
body.customers .tooltip-inner{background:#141417;border:1px solid var(--sj-line-gold);color:var(--sj-text)}

/* profile / settings forms */
body.customers .profile-image,body.customers .client-profile-image-small{border:1px solid var(--sj-line-gold)}

/* footer */
body.customers .footer,body.customers footer.footer{background:var(--sj-bg)!important;border-top:1px solid var(--sj-line)!important;color:var(--sj-dim)!important;box-shadow:none}
body.customers .footer a,body.customers footer.footer a{color:var(--sj-muted)}

/* invoice / estimate HTML preview stays a readable document, framed in the dark theme */
body.customers .invoice-html,body.customers #invoice-html,body.customers .estimate-html,body.customers .proposal-html,body.customers .contract-html{background:#fff;color:#111;border-radius:12px;padding:24px}
body.customers .invoice-html *,body.customers #invoice-html *{color:#111}
body.customers .invoice-html .table>thead>tr>th,body.customers #invoice-html .table>thead>tr>th{color:#444!important;border-bottom-color:#ddd!important}
body.customers .invoice-html .table>tbody>tr>td,body.customers #invoice-html .table>tbody>tr>td{color:#111!important;border-top-color:#eee!important}

/* scrollbars */
body.customers ::-webkit-scrollbar{width:10px;height:10px}
body.customers ::-webkit-scrollbar-track{background:#0e0e10}
body.customers ::-webkit-scrollbar-thumb{background:#2a2b30;border-radius:99px;border:2px solid #0e0e10}
body.customers ::-webkit-scrollbar-thumb:hover{background:#3a3b40}

/* phone */
@media (max-width:767px){
  body.customers #content{padding-top:10px}
  body.customers .panel_s{border-radius:16px}
  body.customers .invoice-quick-info>div{margin-bottom:12px}
  body.customers .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  body.customers .navbar-collapse{background:#0b0b0c;border-top:1px solid var(--sj-line)}
}

body.customers .invoice-quick-info .stats-status,body.customers .invoice-quick-info .stats-status *{color:inherit}
body.customers .invoices-stats-unpaid .stats-status *{color:var(--sj-warn)!important}
body.customers .invoices-stats-paid .stats-status *{color:var(--sj-pos)!important}
body.customers .invoices-stats-overdue .stats-status *{color:var(--sj-neg)!important}

/* full-width client area: the cockpit and every other page use the whole screen */
body.customers .navbar>.container,body.customers #content>.container,body.customers #content .container{width:auto!important;max-width:none!important;padding-left:28px;padding-right:28px}
body.customers .fx-wrap.fxc{margin:0}
@media (max-width:767px){body.customers .navbar>.container,body.customers #content .container{padding-left:12px;padding-right:12px}}

/* cockpit controls keep their own colours (the gold link rule above must not win) */
body.customers #wrapper .fxc .fxc-seg a.on,body.customers #wrapper .fxc .fxc-btn.p{color:#0a0a0a!important}
body.customers #wrapper .fxc .fxc-seg a:not(.on){color:var(--sj-muted)!important}
body.customers #wrapper .fxc .fxc-seg a:not(.on):hover,body.customers #wrapper .fxc .fxc-btn.o{color:#fff!important}
body.customers #wrapper .fxc .fxc-tabs a{color:var(--sj-muted)!important}
body.customers #wrapper .fxc .fxc-tabs a.on{color:var(--sj-gold-hi)!important}
body.customers #content{padding-top:8px}

body.customers nav.navbar.header{margin-bottom:6px}
body.customers .submenu.customer-top-submenu{display:none}

body.customers{overflow-x:hidden}
body.customers #content h4.tw-mt-0,body.customers #content h4.tw-font-bold,body.customers #content h4.tw-font-semibold{padding-left:4px}

/* smaller type across the client area */
body.customers{font-size:13px}
body.customers .navbar-default .navbar-nav>li>a{font-size:13px;padding-top:14px;padding-bottom:14px}
body.customers nav.navbar.header .navbar-brand img,body.customers nav.navbar.header .sj-wordmark{height:34px!important;width:auto}
body.customers nav.navbar.header{min-height:60px}
body.customers #content h4.tw-font-bold,body.customers #content h4.tw-font-semibold,body.customers #content h4.tw-mt-0{font-size:17px;margin:4px 0 12px}
body.customers .table>tbody>tr>td{font-size:12.5px;padding:8px}
body.customers .table>thead>tr>th{font-size:10px}
body.customers .form-control,body.customers .btn{font-size:12.5px}
body.customers label,body.customers .control-label{font-size:11.5px}
body.customers .invoice-quick-info .stats-numbers,body.customers .invoice-quick-info .tw-font-medium{font-size:13px}
/* cockpit */
body.customers .fxc{font-size:12.5px}
body.customers .fxc .fxc-head .fxc-who b{font-size:15px}
body.customers .fxc .fxc-head .fxc-who span,body.customers .fxc .fxc-live{font-size:11.5px}
body.customers .fxc .fxc-head img{height:36px}
body.customers .fxc .fxc-seg a{font-size:11px;padding:6px 10px;min-height:28px}
body.customers .fxc .fxc-kpi .l{font-size:9.5px}
body.customers .fxc .fxc-kpi .v{font-size:18px!important}
body.customers .fxc .fxc-kpi .s{font-size:11px}
body.customers .fxc .fxc-card h4{font-size:10px}
body.customers .fxc .fxc-card .fxc-sub,body.customers .fxc .fxc-legend,body.customers .fxc ul.fxc-list li,body.customers .fxc .fxc-rows,body.customers .fxc .fxc-moves{font-size:11.5px}
body.customers .fxc .fxc-btn{font-size:12px;min-height:36px}
body.customers .fxc .fxc-foot{font-size:10.5px}
body.customers .fxc table.fx-table td,body.customers .fxc table.fx-table th{font-size:11.5px}
@media (max-width:767px){body.customers .fxc .fxc-kpi.hero .v{font-size:28px!important}body.customers .fxc .fxc-btn{min-height:44px}}
