/* Pinscher visual system: orange / graphite, shared across the entire application. */
:root {
  --nav:#1d1e21;--nav-soft:#28292c;--nav-line:#393a3d;
  --blue:#fa6b24;--blue-dark:#df5014;--blue-soft:#fff1e9;
  --primary:#fa6b24;--primary-hover:#df5014;
  --bg:#f7f8fa;--surface:#fff;--surface-soft:#fbfbfc;
  --line:#e8e9ed;--line-strong:#d8dce3;--text:#1b2029;--muted:#697385;
  --green:#15845e;--amber:#c47413;--red:#c64236;
  --shadow:0 3px 20px rgba(25,28,36,.035);--sidebar:242px;--radius:13px;
}
html,body {min-width:320px}
body {background:#f7f8fa;font-size:14px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid #ff8c47;outline-offset:2px}
.app-sidebar {background:linear-gradient(165deg,#1c1d20,#232325 67%,#19191b);padding:22px 12px 14px;border-right:0}
.app-sidebar::after {content:"";position:absolute;z-index:-1;pointer-events:none;inset:auto 0 0;height:28%;background:radial-gradient(ellipse at 20% 80%,rgba(250,107,36,.16),transparent 67%)}
.brand {padding:3px 13px 24px;gap:11px}
.brand-mark {width:42px;height:46px;flex:0 0 42px;border-radius:8px;background:transparent url("../img/pinscher-mark.svg") center/contain no-repeat;box-shadow:none;font-size:0;color:transparent}
.brand-copy {color:#ff813d;letter-spacing:1px;font-weight:850}
.brand-copy small {color:#a4a4aa;letter-spacing:1.8px;font-size:9px}
.nav-section {border-top:1px solid rgba(255,255,255,.07);padding:11px 0;gap:3px}
.nav-label {color:#98999e;letter-spacing:1.1px;font-size:10px;padding-left:13px}
.main-nav a {padding:10px 13px;border-radius:10px;color:#d1d1d4;font-weight:560}
.main-nav a>span {color:#b5b6b9}
.main-nav a:hover {background:rgba(255,255,255,.09)}
.main-nav a.active {background:linear-gradient(110deg,#ff7d30,#f76221);box-shadow:0 6px 15px rgba(0,0,0,.17)}
.main-nav a.active>span {color:#fff}
.nav-count {background:#f66e34}
.sidebar-user {border-color:rgba(255,255,255,.1)}
.sidebar-user .avatar {border-radius:50%;background:#414045}
.sidebar-user-profile:hover {background:#ffffff13}
.sidebar-user small {color:#b5b5bb}
.app-main {padding:94px 28px 60px;background:linear-gradient(160deg,#fafbfc,#f7f8fa 35%);max-width:none}
.page-shell {max-width:1660px}
.app-topbar {height:65px;position:fixed;z-index:35;top:0;right:0;left:var(--sidebar);background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 28px;backdrop-filter:blur(12px)}
.global-search {margin:0;flex:1;max-width:780px;position:relative}
.global-search input {height:42px;padding:9px 60px 9px 42px;background:#f5f6f8;border:1px solid #eef0f3}
.global-search input::placeholder {color:#768092}
.global-search:before {content:"⌕";font:30px/1 Arial;position:absolute;top:7px;left:13px;color:#616b7c;pointer-events:none}
.global-search kbd {position:absolute;right:11px;top:11px;background:#e9ecf1;color:#6c7480;border-radius:5px;padding:1px 6px;font:12px/20px inherit}
.topbar-actions {display:flex;align-items:center;gap:12px;min-width:0}
.topbar-link {display:inline-flex;align-items:center;gap:5px;padding:7px 9px;color:#3e4654;border-radius:9px;font-weight:600}
.topbar-link:hover {background:#fff0e9}
.topbar-avatar {display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffebe0;color:#ae4715;font-weight:800}
.topbar-user {display:flex;align-items:center;gap:9px;color:var(--text);font-weight:700}
.topbar-user small {display:block;color:var(--muted);font-size:11px;font-weight:400}
.app-main> .page-shell > header:first-child {margin:0 0 24px}
h1 {font-weight:780;color:#1b2029;letter-spacing:-.65px}
h2,h3 {color:#252a32}
.eyebrow {color:#ef6423}
.primary,button {background:#fa6b24;border-radius:9px;box-shadow:none}
.primary:hover,button:hover {background:#db5116;box-shadow:0 4px 12px rgba(250,107,36,.13)}
header a:not(.primary),.actions>a:not(.primary),.saved-views>a,.saved-view {background:#fff;border-color:var(--line-strong)}
header a:not(.primary):hover,.actions>a:not(.primary):hover {color:#dc5019;background:#fff5f0}
.panel,.stat,.metric {box-shadow:var(--shadow);border:1px solid var(--line)}
.panel {padding:22px 24px}
.stat:hover,.metric-link:hover {border-color:#ffbe9d}
.stat:before,.metric:before {background:#ffb086}
.badge.high,.badge.critical {background:#fff0ea;color:#ba4325}
.badge.low {background:#edf3ff;color:#3c6194}
.badge.resolved {background:#e4f5eb}
input,select,textarea {border-color:#dce0e6;border-radius:9px;max-width:100%;min-width:0}
input:focus,select:focus,textarea:focus {border-color:#f68a4f;box-shadow:0 0 0 3px rgba(250,107,36,.13)}
input[type="checkbox"],input[type="radio"] {width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px;margin:0;accent-color:#fa6b24;vertical-align:middle}
input[type="radio"] {border-radius:50%}
label:has(> input[type="checkbox"]),label:has(> input[type="radio"]) {display:inline-flex;align-items:center;gap:8px}
.permission-grid label {display:flex;align-items:center;gap:8px}
.permission-grid p {min-width:0}
.permission-grid input[type="checkbox"] {margin:0!important}
form p:has(>label>input[type="checkbox"]) {display:block}
form p:has(>input[type="checkbox"]) {display:flex;align-items:center;gap:8px}
table {font-size:13px}
th {background:#fafbfc;color:#7e8794;letter-spacing:.3px;font-size:11px}
th,td {padding:13px 12px}
tbody tr:hover {background:#fff7f2}
.ticket-table-panel {border-radius:13px}
.ticket-table td {vertical-align:middle}
.ticket-tags span {border-radius:5px;background:#eef0f3;color:#555f6d}
.ticket-table tbody tr:hover .ticket-tags span {background:#ffece1}
.ticket-table th:first-child input,.ticket-table td:first-child input {width:17px;height:17px}
.saved-view,.saved-views>a {border-radius:9px}
.saved-views .active {color:#e85e20!important}
.content-tabs a.active {border-color:#f76f29;color:#e65b1c}
.content-tabs a:hover {color:#e65b1c}
.filter-panel {border-radius:12px;background:#fff}
.filter-panel summary {color:#323741}
.hd-combobox-options {border-color:var(--line-strong);border-radius:10px;box-shadow:0 15px 40px #191d2730}
.hd-combobox-option:hover,.hd-combobox-option[aria-selected="true"] {background:#fff0e8!important}
.app-modal {border-radius:16px;box-shadow:0 25px 90px #191d2740}
.app-modal::backdrop {background:#15171b85}
.ticket-gear>summary:hover,.ticket-gear[open]>summary,.ticket-gear-menu>a:hover,.ticket-gear-menu>button:hover {background:#fff1e8}
.auth-main {background:radial-gradient(circle at 14% 75%,#ffeadc,transparent 34%),linear-gradient(135deg,#fafbfc,#f2f3f5)}
.login-card {border-radius:18px;box-shadow:0 24px 80px #241c1719}
.message {background:#fff3eb;border-color:#ffd5bb;color:#9e451b}
.unread {background:#fff7f2;border-color:#ffdcc9}
.timeline>div {border-left-color:#ffd1bb}
.leave-calendar thead th {background:#fafbfc}
@media(max-width:1100px) {.app-main{padding:88px 22px 45px}.app-topbar{padding:0 20px}}
@media(max-width:820px) {.app-topbar{left:0;padding:0 13px 0 64px}.global-search kbd,.topbar-user small{display:none}.topbar-link{padding:7px}.app-main{margin-left:0;padding:84px 16px 38px}.mobile-menu-button{top:11px;box-shadow:none}.app-sidebar{z-index:55}.sidebar-overlay{z-index:53}}
@media(max-width:560px) {.app-topbar{gap:5px;padding-right:8px}.global-search input{font-size:12px;padding-right:8px}.topbar-actions{gap:0}.topbar-user span:last-child{display:none}.app-main{padding-left:11px;padding-right:11px}.panel{padding:16px}.ticket-bulk-toolbar{padding:12px}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important;animation:none!important}}


/* v8.4 component polish — mirrors the approved Pinscher mockup without changing workflows. */
button:not(.primary):not(.text-button):not(.icon-button):not(.hd-combobox-option),
a.button-secondary {
  background:#fff;color:#343b47;border:1px solid var(--line-strong);box-shadow:none;
}
button:not(.primary):not(.text-button):not(.icon-button):not(.hd-combobox-option):hover,
a.button-secondary:hover {background:#fff6f1;color:#d95418;border-color:#ffc6a8;transform:none}
.text-button {background:transparent!important;color:#687384!important;box-shadow:none!important}
.icon-button {background:#ffffff0b!important;border:0!important;color:#bfc0c5!important}
.topbar-link {font-size:18px;min-width:36px;height:36px;justify-content:center;border-radius:10px;position:relative}
.topbar-link .nav-count {position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;font-size:9px;border:2px solid white}
.topbar-user {padding:6px 8px;border-left:1px solid var(--line);margin-left:4px}
.topbar-user:hover {background:#fff5ef;border-radius:10px}
.topbar-user>span:nth-child(2) {max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-search input {font-size:14px}
.app-main header .primary {min-height:40px;padding-inline:17px}
.filters,.ticket-bulk-toolbar {box-shadow:none}
.filters {background:#fff;border-color:var(--line);padding:12px}
.compact-stats {
  display:flex;gap:0;border-bottom:1px solid var(--line);overflow:auto;margin:0 0 16px;
  background:transparent;
}
.compact-stats .stat {
  flex:0 0 auto;border:0;border-radius:0;box-shadow:none;background:transparent;
  padding:12px 16px 11px;display:flex;align-items:center;gap:7px;position:relative;
}
.compact-stats .stat:before {display:none}
.compact-stats .stat span {font-size:13px;color:#303642;font-weight:650}
.compact-stats .stat b {font-size:12px;background:#eef0f3;color:#5e6878;padding:2px 7px;border-radius:999px;letter-spacing:0}
.compact-stats .stat:hover {background:#fff8f4;transform:none}
.compact-stats .stat:hover:after {content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:#f66d2a}
.ticket-toolbar {gap:12px;padding:2px 0 14px;border-bottom:0}
.saved-views {gap:6px}
.saved-views>a,.saved-view {border-color:#eceef1;background:#fff;padding:7px 10px}
.saved-view .text-button {padding:0 1px!important}
.filter-panel {padding:0;border:0;background:transparent}
.filter-panel summary {
  display:inline-flex;align-items:center;gap:6px;padding:8px 12px;background:#fff;border:1px solid var(--line);
  border-radius:9px;list-style:none;
}
.filter-panel summary::-webkit-details-marker{display:none}
.filter-panel[open] summary {margin-bottom:10px;border-color:#ffc7aa;color:#d85519}
.ticket-table-panel {overflow:hidden;background:#fff}
.ticket-table thead th {height:42px}
.ticket-table tbody tr {background:#fff}
.ticket-table tbody tr:nth-child(even){background:#fdfdfd}
.ticket-table tbody tr:hover {background:#fff5ef}
.ticket-table td:first-child,.ticket-table th:first-child {padding-left:18px}
.ticket-table td a {color:#303642}
.ticket-table td a:hover {color:#e55a1a}
.ticket-bulk-toolbar {padding:12px 16px;background:#fff8f4;border-bottom:1px solid #ffe0cf}
.ticket-bulk-toolbar strong {color:#c84f19}
.quick-facts div {border-bottom:1px solid #f0f1f3;padding-bottom:7px}
.quick-facts div:last-child {border-bottom:0}
.comment-form {border-top:1px solid var(--line);padding-top:16px;margin-top:12px}
.comment.internal {background:#fff8ef;border-color:#ffdbac}
.comment.internal em {background:#ffe2b9;color:#8d5511}
.ticket-control {border-top:3px solid #ff7b34}
.ticket-gear>summary {border-color:#e2e5e9}
.app-modal form p {margin-bottom:13px}
.app-modal .modal-header {padding-bottom:13px;border-bottom:1px solid var(--line)}
.app-modal .modal-actions {padding-top:13px;border-top:1px solid var(--line)}
.login-card .brand-mark {background-image:url("../img/pinscher-mark.svg")}
.login-card .brand-copy {color:#ef6423}
.form-card.panel {box-shadow:0 8px 28px rgba(35,38,45,.055)}
.permission-grid {align-items:start}
.permission-grid label {min-height:30px;padding:5px 7px;border-radius:8px}
.permission-grid label:hover {background:#fff6f1}
.permission-grid input[type="checkbox"],.permission-grid input[type="radio"],
.ticket-table input[type="checkbox"],.ticket-bulk-toolbar input[type="checkbox"] {
  position:static!important;transform:none!important;inset:auto!important;
}
input[type="checkbox"],input[type="radio"] {padding:0!important}
.app-sidebar .main-nav::-webkit-scrollbar{width:5px}
.app-sidebar .main-nav::-webkit-scrollbar-thumb{background:#47484c;border-radius:10px}
.app-sidebar .main-nav::-webkit-scrollbar-track{background:transparent}
@media(max-width:1180px){
  .compact-stats{scrollbar-width:thin}
  .topbar-user>span:nth-child(2){display:none}
}
@media(max-width:820px){
  .compact-stats .stat{padding-inline:12px}
  .ticket-toolbar{align-items:flex-start}
}
