/* v2 tickets pages; shared components live in app.css. Area-specific classes only (prefix sk-tickets-). */

/* ---------- Step indicator (decorative, no text) ---------- */
.sk-steps { display: flex; gap: 6px; margin: 0 0 20px; }
.sk-steps__item { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--sk-border); }
.sk-steps__item--done { background: var(--sk-accent); opacity: .45; }
.sk-steps__item--current { background: var(--sk-accent); }
.sk-body .sk-tickets-step-title { margin: 0 0 6px; font-size: 20px; }
.sk-body .sk-tickets-step-desc { margin: 0 0 20px; }
.sk-body .sk-narrow > form .sk-form-actions, .sk-body .sk-tickets-form .sk-form-actions { margin-top: 24px; }

/* Step 2: departments as selectable cards */
.sk-body .sk-tickets-departments .sk-tile { flex-direction: column; gap: 4px; box-shadow: none; }
.sk-body .sk-tickets-departments .sk-tile:hover { background: var(--sk-subtle); }
.sk-body .sk-tickets-departments .sk-tile__title { margin: 0; color: var(--sk-text); }

/* Step 3 / reply form */
.sk-body .sk-tickets-form .department-name { font-size: 14px; }
.sk-body .sk-tickets-form .sk-card { background: var(--sk-subtle); box-shadow: none; }
.sk-tickets-attach { margin-top: 12px; }
.sk-body .sk-tickets-attach .sp-file-input { display: inline-block; cursor: pointer; }
.sk-body .sp-attached-files { margin: 8px 0 0; padding: 0; list-style: none; }
.sk-body .sp-attached-files > li { align-items: center; gap: 8px; padding: 6px 10px; margin-top: 6px; border: 1px solid var(--sk-border); border-radius: var(--sk-radius); background: var(--sk-subtle); font-size: 14px; }
.sk-body .sp-attached-files > li.sp-hidden { display: none; }
.sk-body .sp-attachment-dragover { padding: 12px; border: 2px dashed var(--sk-accent); border-radius: var(--sk-radius); color: var(--sk-accent); text-align: center; }
.sk-body .sp-attachment-dragover.sp-hidden { display: none; }
.sk-body .sp-message-form .sp-recipients { display: block; margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--sk-border); border-radius: var(--sk-radius); background: var(--sk-subtle); font-size: 14px; }
.sk-body .sp-message-form .sp-recipients .sp-table-row { display: flex; gap: 12px; align-items: baseline; }
.sk-body .sp-message-form .sp-recipients .sp-table-cell:first-child { flex: none; color: var(--sk-muted); font-weight: 600; }
.sk-body .sp-message-form .sp-recipients .sp-table-cell:last-child { min-width: 0; flex: 1 1 auto; }
.sk-tickets-reply--after { margin-top: 20px; }
.sk-tickets-reply--before { margin-bottom: 20px; }
.sk-tickets-reply-actions { margin-top: 16px; }

/* Ticket list filter panel (moved by ticketgrid.js next to the DataTables toolbar) */
.sk-body .sk-tickets-filter { margin: 0 0 16px; padding: 16px; border: 1px solid var(--sk-border); border-radius: var(--sk-radius-lg); background: var(--sk-subtle); }
.sk-body .sk-tickets-filter.sp-hidden { display: none; }
.sk-tickets-filter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 20px; }
.sk-body .sk-tickets-filter__row { display: flex; flex-direction: column; gap: 6px; }
.sk-body .sk-tickets-filter__row > label { font-size: 13px; font-weight: 600; color: var(--sk-muted); }
.sk-tickets-filter__control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sk-tickets-filter__range { gap: 8px; }
.sk-tickets-filter__field { display: inline-flex; flex: 1 1 130px; min-width: 0; }
.sk-body .sk-tickets-filter__field input { min-width: 0; width: 100%; }
.sk-tickets-filter__to { color: var(--sk-muted); font-size: 13px; }
.sk-body .sk-tickets-filter__control > input, .sk-body .sk-tickets-filter__control > select { flex: 1 1 140px; min-width: 0; width: auto; }
.sk-body .reset-filter { min-height: 38px; padding: 0 10px; }
/* Ticket list toolbar (built by ticketgrid.js): one 40px row of search + filter toggle, status select, submit button */
.sk-body .dataTables_wrapper > .sp-flex:first-child { align-items: center; gap: 10px; padding-bottom: 16px; }
.sk-body .dataTables_wrapper > .sp-flex:first-child > .sp-flex-grow { align-items: stretch; }
.sk-body .dataTables_wrapper .sp-flex-grow label { display: flex; margin: 0; }
.sk-body .dataTables_wrapper .sp-flex-grow input { height: 40px; min-height: 40px; margin: 0; }
.sk-body .dataTables_wrapper a.sp-filter-results { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-height: 40px; margin-left: -1px; padding: 0 14px; border-radius: 0 var(--sk-radius) var(--sk-radius) 0; color: var(--sk-muted); }
.sk-body .dataTables_wrapper a.sp-filter-results:hover { color: var(--sk-accent); }
.sk-body .dataTables_wrapper .dataTables_status.sp-ml-6, .sk-body .dataTables_wrapper a.sp-button-submit.sp-ml-6 { margin-left: 6px; }
.sk-body .dataTables_wrapper .dataTables_status span { color: var(--sk-muted); font-size: 14px; vertical-align: middle; }
.sk-body .dataTables_wrapper .dataTables_status select { width: auto; min-width: 130px; height: 40px; min-height: 40px; margin: 0; vertical-align: middle; }
.sk-body .dataTables_wrapper a.sp-button-submit { height: 40px; min-height: 40px; padding: 9px 16px; line-height: 22px; }
/* Rows: same type scale as the rest of v2; unread tickets keep the bold the grid already marks them with */
.sk-body #ticketGridTable { font-size: 15px; }
.sk-body #ticketGridTable tbody td { padding-top: 14px; padding-bottom: 14px; }
.sk-body #ticketGridTable tbody td:first-child { font-family: var(--font-code); font-size: 14px; color: var(--sk-muted); }
.sk-body #ticketGridTable tbody td a { color: var(--sk-text); font-weight: 500; }
.sk-body #ticketGridTable tbody td a:hover { color: var(--sk-accent); }
.sk-body #ticketGridTable tbody td strong a, .sk-body #ticketGridTable tbody td a strong, .sk-body #ticketGridTable tbody tr.sp-font-bold td a, .sk-body #ticketGridTable tbody td.sp-font-bold a, .sk-body #ticketGridTable tbody td a.sp-font-bold { font-weight: 700; }
@media (max-width: 767px) { .sk-body .dataTables_wrapper a.sp-filter-results.sp-hidden { display: none; } }
.sk-body table.dataTable .sp-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; color: #fff; font-size: 12.5px; white-space: nowrap; }

/* Feedback: three-choice cards (ticket view prompt + feedback page) */
.sk-body .sk-tickets-rating { text-align: center; }
.sk-body .sk-tickets-rating__intro { margin: 0 0 14px; font-weight: 600; }
.sk-tickets-rating__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.sk-body .sk-tickets-rating > .sk-tickets-rating__intro + .sk-tickets-rating__grid { margin: 0; }
.sk-body .sk-tickets-rating__choice {
    display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 16px 12px; box-sizing: border-box;
    background: var(--sk-surface); border: 2px solid var(--sk-border); border-radius: var(--sk-radius-lg); color: var(--sk-text); cursor: pointer; text-decoration: none;
}
.sk-body .sk-tickets-rating__choice:hover { border-color: var(--sk-accent); color: var(--sk-text); }
.sk-body .sk-tickets-rating__choice.sp-border-secondary { border-color: var(--sk-accent); background: var(--sk-info-bg); }
.sk-tickets-rating__img { display: block; width: 40px; height: 40px; }
.sk-tickets-rating__label { font-size: 14px; font-weight: 600; }
.sk-tickets-feedback__done { display: flex; justify-content: center; margin-bottom: 12px; }
.sk-tickets-feedback__check { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sk-ok-bg); color: var(--sk-ok-fg); }
.sk-tickets-feedback__saved { text-align: center; }
.sk-body .sk-tickets-feedback h2 { font-size: 20px; margin: 0; }
@media (max-width: 479px) { .sk-tickets-rating__grid { grid-template-columns: 1fr; } }

/* Standalone entire-message page */
.sk-tickets-entire__wrap { padding-top: 24px; padding-bottom: 24px; }
.sk-tickets-entire__inner { max-width: 860px; margin: 0 auto; }
.sk-body .sk-tickets-entire__title { margin: 0 0 16px; font-size: 24px; }
.sk-tickets-entire__card .sk-message { margin: 0; }
