/* Scoped Help Desk layout: inherits both Portal themes. */
#page-technical{--hd-surface:var(--navy-light);--hd-border:var(--navy-border);--hd-text:var(--text-primary);--hd-muted:var(--text-muted);width:100%;min-width:0}
#page-technical .page-title{letter-spacing:-.035em}
#page-technical .page-subtitle{line-height:1.5}
#page-technical .panel{border:1px solid var(--hd-border);border-radius:14px;overflow:hidden;background:var(--hd-surface)}
#page-technical .panel-header{min-height:64px;gap:16px;align-items:center;padding:16px 24px;border-bottom:1px solid var(--hd-border)}
#page-technical .panel-title{font-size:18px;margin:0}
#page-technical .panel-action{cursor:pointer;font-size:14px;color:var(--hd-text);text-decoration:underline;text-underline-offset:3px}
#page-technical .department-it-layout{grid-template-columns:minmax(0,1fr)!important}
#page-technical #my-tickets-list{max-height:none!important;overflow:visible!important;padding:20px 24px!important}
#page-technical #it-ticket-form,#page-technical #it-chat-view>.panel{max-width:none!important}
#page-technical #it-ticket-form{width:100%;max-width:900px!important;margin:auto}
#page-technical #native-it-banner{font-size:13px;margin:16px 0;color:var(--hd-muted)}
#page-technical .it-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}
#page-technical .it-toolbar input[type=search]{flex:1;min-width:180px}
#page-technical input,#page-technical select,#page-technical textarea{box-sizing:border-box;font:inherit;line-height:1.4;color:var(--hd-text);background:var(--hd-surface);border:1px solid var(--hd-border);border-radius:8px;padding:10px 12px;min-height:42px;max-width:100%}
#page-technical input:focus-visible,#page-technical select:focus-visible,#page-technical textarea:focus-visible,#page-technical button:focus-visible,#page-technical summary:focus-visible{outline:2px solid #c41522;outline-offset:3px}
#page-technical button.btn,#page-technical .btn{font:inherit;font-size:14px;min-height:40px;padding:9px 14px;border:1px solid var(--hd-border);border-radius:8px;line-height:1.3;color:var(--hd-text);background:var(--hd-surface);cursor:pointer;box-shadow:none}
#page-technical button.hd-primary,#page-technical #ticket-submit-btn,#page-technical #it-chat-input+button{color:#fff!important;background:#b5121b!important;border:1px solid #b5121b!important;font-family:inherit!important;letter-spacing:0}
#page-technical button:hover:not(:disabled){filter:brightness(.96)}
#page-technical button:disabled{opacity:.55;cursor:default}
#page-technical .it-ticket-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--hd-border);border-radius:10px;padding:18px 20px;margin:0 0 10px;background:var(--hd-surface)}
#page-technical .it-ticket-row h3{font-size:16px;font-weight:600;margin:5px 0 10px;line-height:1.4;overflow-wrap:anywhere}
#page-technical .it-ticket-row small{font-size:12px;color:var(--hd-muted);line-height:1.6}
#page-technical .hd-ticket-summary{flex:1;min-width:0}
#page-technical .hd-ticket-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#page-technical .hd-badge{display:inline-flex;border:1px solid var(--hd-border);background:var(--hd-surface);border-radius:6px;padding:4px 8px;font-size:12px;font-weight:600;line-height:1.3}
#page-technical .hd-status-new,#page-technical button.hd-status-button.hd-status-new{color:#b5121b;background:rgba(196,21,34,.08);border-color:rgba(196,21,34,.25)}
#page-technical .hd-status-in-progress,#page-technical button.hd-status-button.hd-status-in-progress{color:#805700;background:#fff0b3;border-color:#d2a000}
#page-technical .hd-status-solved,#page-technical button.hd-status-button.hd-status-solved{color:#16834a;background:rgba(30,158,90,.08);border-color:rgba(30,158,90,.28)}
#page-technical .hd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
#page-technical .hd-stat{padding:16px;border:1px solid var(--hd-border);border-radius:10px;color:var(--hd-muted);font-size:12px}
#page-technical .hd-stat strong{display:block;font-size:27px;color:var(--hd-text);margin-top:6px;font-weight:650}
#page-technical .hd-empty{padding:40px 20px;text-align:center;color:var(--hd-muted)}
#page-technical .hd-section-intro{padding:0 24px;color:var(--hd-muted);font-size:14px;line-height:1.6}
#page-technical .hd-review-filters{display:flex;gap:8px;flex-wrap:wrap;padding:16px 24px}
#page-technical .hd-review-filters [aria-pressed=true]{color:#b5121b;border-color:#b5121b;background:rgba(196,21,34,.06)}
#page-technical .hd-review-list{padding:0 24px 20px}
#page-technical #native-it-controls{padding:16px 24px!important;gap:12px!important}
#page-technical #it-chat-messages{height:auto!important;min-height:280px;max-height:65vh;padding:24px!important;gap:16px!important;scrollbar-gutter:stable}
#page-technical #it-chat-messages>div{font-size:16px;line-height:1.65;padding:16px!important}
#page-technical #it-chat-messages small{font-size:12px;color:var(--hd-muted)}
#page-technical #it-chat-input{min-width:0;font-size:16px!important}
#page-technical #it-screenshots{padding:16px 24px!important}
#page-technical #it-screenshots .page-subtitle{font-size:12px;max-width:850px}
#page-technical #it-screenshot-list{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--hd-muted);margin-top:12px}
#page-technical #it-screenshot-file{max-width:360px;min-width:0}
#page-technical .hd-draft-panel{padding:24px;border-bottom:1px solid var(--hd-border);background:rgba(71,124,190,.04)}
#page-technical .hd-draft-panel[hidden]{display:none}
#page-technical .hd-draft-panel h3{margin:6px 0;font-size:20px}
#page-technical .hd-eyebrow{font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--hd-muted)}
#page-technical .hd-muted{color:var(--hd-muted);font-size:13px;line-height:1.6}
#page-technical .hd-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
#page-technical .hd-draft-panel label{display:block;margin:16px 0 8px;font-size:13px;font-weight:600}
#page-technical .hd-draft-panel textarea{width:100%;max-width:1100px;resize:vertical;display:block;font-size:14px;min-height:155px}
#page-technical .hd-disclosure{font-size:12px;color:var(--hd-muted);line-height:1.5;max-width:850px}
#page-technical .hd-feedback{font-size:13px;color:var(--hd-text);white-space:pre-wrap}
#page-technical .hd-warning{padding:12px;border-left:3px solid #ca8410;background:rgba(202,132,16,.08);line-height:1.5}
#page-technical .hd-internal,#page-technical .hd-sources,#page-technical .hd-draft-history{padding:12px 0;border-top:1px solid var(--hd-border);font-size:13px;line-height:1.6}
#page-technical details p{white-space:pre-wrap;overflow-wrap:anywhere}
#page-technical summary{cursor:pointer}
#page-technical a{color:var(--hd-text)}
@media(min-width:1300px){#page-technical #it-chat-view>.panel{display:grid;grid-template-columns:minmax(0,1fr) 380px}#page-technical #it-chat-view .panel-header,#page-technical #native-it-controls,#page-technical #native-it-chat-error{grid-column:1/-1}#page-technical #it-assistant-ticket{grid-column:2;grid-row:4/7;border-left:1px solid var(--hd-border);border-bottom:0}#page-technical #it-screenshots,#page-technical #it-chat-messages,#page-technical #it-chat-input-container{grid-column:1}#page-technical #it-assistant-ticket:not([hidden])~#it-chat-messages{max-height:65vh}#page-technical .hd-draft-panel textarea{min-height:240px}}
@media(max-width:700px){#page-technical .panel-header,#page-technical .hd-draft-panel,#page-technical #my-tickets-list,#page-technical #it-chat-messages,#page-technical #it-screenshots,#page-technical #native-it-controls{padding:16px!important}#page-technical .hd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#page-technical .it-ticket-row{padding:16px;gap:12px;align-items:flex-start}#page-technical .it-ticket-row>.btn{align-self:center}#page-technical .it-toolbar input[type=search]{width:100%;flex-basis:100%}#page-technical .it-toolbar select{flex:1}#page-technical .hd-review-list,#page-technical .hd-review-filters{padding:16px}#page-technical #it-screenshot-file{width:100%}#page-technical .hd-actions .btn{flex:1}#page-technical .it-ticket-row h3{font-size:15px}}
#page-technical .department-tabs button{flex:0 0 auto;font:inherit;font-size:14px;min-height:42px;padding:10px 15px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text-secondary);cursor:pointer;white-space:nowrap}
#page-technical .department-tabs button[aria-selected=true]{background:rgba(181,18,27,.08);color:#b5121b;border-color:rgba(181,18,27,.3);font-weight:600}
#page-technical .department-tabs button[hidden]{display:none!important}
#page-technical .department-tabs{gap:6px;max-width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;padding:6px}
#page-technical .department-it-layout>.panel{max-width:none!important}
#page-technical .page-subtitle,#page-technical #native-it-banner{font-weight:400!important}
#page-technical #it-chat-input-container{align-items:center;min-height:72px}
#page-technical #it-chat-input,#page-technical #it-chat-input+button{height:42px;min-height:42px}
#page-technical .panel-header #chat-ticket-title{font-family:inherit!important;letter-spacing:0;font-weight:600;overflow-wrap:anywhere}
@media(max-width:1299px){#page-technical #it-chat-view>.panel{display:flex;flex-direction:column}#page-technical #it-chat-view .panel-header{order:1}#page-technical #native-it-controls{order:2}#page-technical #native-it-chat-error{order:3}#page-technical #it-screenshots{order:4}#page-technical #it-chat-messages{order:5}#page-technical #it-chat-input-container{order:6}#page-technical #it-assistant-ticket{order:7;border-top:1px solid var(--hd-border)}}

/* Readable ticket descriptions and conversations at desktop and mobile widths. */
#page-technical #it-chat-messages p,#page-technical #it-chat-messages [style*="font-size"]{font-size:16px!important;line-height:1.65}

/* One-click status updates share employee-visible status colors. */
#page-technical .hd-status-new,#page-technical button.hd-status-button.hd-status-new{color:#a5101a;background:#fde4e7;border-color:#d58b92}
#page-technical .hd-status-on-hold,#page-technical button.hd-status-button.hd-status-on-hold{color:#135bb0;background:#deedff;border-color:#80aade}
#page-technical .hd-status-solved,#page-technical button.hd-status-button.hd-status-solved{color:#126b39;background:#d9f4e3;border-color:#7abb94}
#page-technical .hd-status-cancelled,#page-technical button.hd-status-button.hd-status-cancelled{color:#4c5563;background:#e9edf2;border-color:#a3aab4}
#page-technical .hd-ticket-actions{display:flex;align-items:flex-start;flex-direction:column;gap:8px;max-width:520px;flex:0 1 auto}
#page-technical .hd-status-actions{display:flex;flex-wrap:wrap;gap:6px}
#page-technical button.hd-status-button{font-size:13px;min-height:38px;padding:8px 10px;font-weight:600}
#page-technical button.hd-status-button[aria-pressed=true]{opacity:1;box-shadow:inset 0 0 0 2px currentColor;cursor:default}
#page-technical button.hd-status-button[aria-pressed=true]::before{content:'✓ ';}
#page-technical .hd-status-feedback{font-size:13px;line-height:1.5;margin:0;max-width:480px}
#page-technical .hd-status-feedback:empty{display:none}
@media(max-width:900px){#page-technical .it-ticket-row{align-items:stretch;flex-direction:column}#page-technical .hd-ticket-actions{max-width:none;width:100%}}

/* Resolution note collected before a ticket can be marked Solved. */
dialog.hd-resolution-dialog{width:min(520px,calc(100vw - 32px));margin:auto;padding:24px;border:1px solid var(--navy-border);border-radius:14px;background:var(--navy-light);color:var(--text-primary);box-shadow:0 18px 50px rgba(9,11,12,.28)}
dialog.hd-resolution-dialog::backdrop{background:rgba(9,11,12,.55)}
dialog.hd-resolution-dialog h2{margin:0 0 8px;font-size:20px;line-height:1.3}
dialog.hd-resolution-dialog .hd-muted{margin:0;color:var(--text-muted);font-size:13px;line-height:1.6}
dialog.hd-resolution-dialog label{display:block;margin:16px 0 8px;font-size:13px;font-weight:600}
dialog.hd-resolution-dialog textarea{box-sizing:border-box;width:100%;min-height:120px;resize:vertical;font:inherit;line-height:1.5;color:var(--text-primary);background:var(--navy-light);border:1px solid var(--navy-border);border-radius:8px;padding:10px 12px}
dialog.hd-resolution-dialog textarea:focus-visible,dialog.hd-resolution-dialog button:focus-visible{outline:2px solid #c41522;outline-offset:3px}
dialog.hd-resolution-dialog .hd-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin:16px 0 0}
dialog.hd-resolution-dialog .hd-status-feedback{font-size:13px;line-height:1.5;margin:10px 0 0}
dialog.hd-resolution-dialog .hd-status-feedback:empty{display:none}
dialog.hd-resolution-dialog button{font:inherit;font-size:14px;min-height:40px;padding:9px 14px;border:1px solid var(--navy-border);border-radius:8px;color:var(--text-primary);background:var(--navy-light);cursor:pointer}
dialog.hd-resolution-dialog button.hd-primary{color:#fff;background:#b5121b;border-color:#b5121b}
#page-technical .hd-resolution{padding:16px;border:1px solid rgba(18,107,57,.28);border-radius:10px;background:rgba(18,107,57,.08)}
#page-technical .hd-resolution strong{display:block;margin-bottom:6px}
#page-technical .hd-resolution div{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
#page-technical .hd-resolution small{display:block;margin-top:8px;color:var(--hd-muted);font-size:12px}
@media(max-width:700px){dialog.hd-resolution-dialog{padding:16px}dialog.hd-resolution-dialog .hd-actions .btn{flex:1}}
