/* ЮУГК HelpDesk — этап 7. Compact inline controls, meaningful queue signals, public selectors. */

/* A colored left strip is an actionable signal, NOT a ticket status badge.
   Precedence: overdue SLA (red), unread customer reply (yellow), unread transfer (blue).
   No event -> no colored strip. Read/seen typography is independent. */
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-table tbody tr.work-table-row > td:first-child,
body.admin-shell[data-hd-page="tickets"] .hd2-registry-table tbody tr > td:first-child {
    box-shadow:none!important;
}
body.admin-shell[data-hd-page="my_work"] .work-ticket-row,
body.admin-shell[data-hd-page="tickets"] .tickets-browser-card {
    border-left:3px solid transparent!important;
}
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-table tbody tr.work-table-row.is-overdue > td:first-child,
body.admin-shell[data-hd-page="tickets"] .hd2-registry-table tbody tr.is-overdue > td:first-child {
    box-shadow:inset 3px 0 0 #dc2626!important;
}
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-table tbody tr.work-table-row:not(.is-overdue).has-client-reply > td:first-child,
body.admin-shell[data-hd-page="tickets"] .hd2-registry-table tbody tr:not(.is-overdue).has-client-reply > td:first-child {
    box-shadow:inset 3px 0 0 #f59e0b!important;
}
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-table tbody tr.work-table-row:not(.is-overdue):not(.has-client-reply).has-transfer > td:first-child,
body.admin-shell[data-hd-page="tickets"] .hd2-registry-table tbody tr:not(.is-overdue):not(.has-client-reply).has-transfer > td:first-child {
    box-shadow:inset 3px 0 0 #2563eb!important;
}
body.admin-shell[data-hd-page="my_work"] .work-ticket-row.is-overdue,
body.admin-shell[data-hd-page="tickets"] .tickets-browser-card.is-overdue {border-left-color:#dc2626!important;}
body.admin-shell[data-hd-page="my_work"] .work-ticket-row:not(.is-overdue).has-client-reply,
body.admin-shell[data-hd-page="tickets"] .tickets-browser-card:not(.is-overdue).has-client-reply {border-left-color:#f59e0b!important;}
body.admin-shell[data-hd-page="my_work"] .work-ticket-row:not(.is-overdue):not(.has-client-reply).has-transfer,
body.admin-shell[data-hd-page="tickets"] .tickets-browser-card:not(.is-overdue):not(.has-client-reply).has-transfer {border-left-color:#2563eb!important;}

/* My Work search: icon has its own reserved area at every UI density. */
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-search {position:relative;min-width:220px;}
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-search > .bi-search {
    position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:1;
    color:#64748b;pointer-events:none;font-size:13px;line-height:1;
}
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-search #hdWorkQuickFilter {
    box-sizing:border-box;padding-left:37px!important;padding-right:11px!important;
    min-height:34px;line-height:1.3;text-overflow:ellipsis;
}
body.admin-shell[data-hd-page="my_work"] .hd-modern-work-search #hdWorkQuickFilter::placeholder {opacity:1;color:#64748b;}
@media(max-width:768px){body.admin-shell[data-hd-page="my_work"] .hd-modern-work-search {width:100%;min-width:0;}}

/* Staff parameter accordion: no overlay/flyout, panel appears below chosen row. */
body.admin-shell[data-hd-page="ticket_view"] .hd4-ticket-params-card .hd6-popover .hd6-picker-list {max-height:240px;}
body.admin-shell[data-hd-page="ticket_view"] .hd4-ticket-params-card .hd6-popover .hd5-assignees-list {max-height:260px;}
@media(prefers-reduced-motion:reduce){body.admin-shell[data-hd-page="ticket_view"] .hd6-popover:not([hidden]) {animation:none!important;}}

/* Public ticket creation and client-cabinet creation use the SAME live room controls. */
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-location-picker {
    background:#f8fbff;border:1px solid #d3e2ee;border-radius:10px;
    padding:16px 17px;margin-block:14px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-location-heading label {color:#183c5d;font-weight:700;font-size:14px;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-building-pills {gap:7px;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-building-pill {
    min-height:32px;border-radius:16px;border:1px solid #c7d9e8;padding:6px 11px;
    background:#fff;color:#38546c;font-size:12px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-building-pill:is(.active,[aria-pressed="true"]) {
    background:#245e92;color:white;border-color:#245e92;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-room-input-wrapper {
    min-height:45px;border:1px solid #c4d4e5;border-radius:7px;background:#fff;gap:6px;padding:7px 10px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-room-input-wrapper:focus-within {
    border-color:#4482b9;box-shadow:0 0 0 3px rgba(36,94,146,.12);
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-room-search-field {
    min-width:145px!important;font-size:13px;line-height:1.35;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-room-chip {
    background:#e8f2fc;border-color:#b7d1e9;color:#1e4e7c;border-radius:6px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-room-dropdown {
    z-index:1250;border:1px solid #c4d4e5;border-radius:7px;box-shadow:0 10px 28px rgba(19,42,70,.13);
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-manual-form {background:#fff;border-radius:8px;}

/* Printer/MFU picker: same spacing, search field and tags as room picker, no logic changes. */
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-wrapper] {margin-block:14px;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-wrapper] > .hd7-printer-card {
    background:#f8fbff!important;border:1px solid #d3e2ee!important;border-radius:10px;box-shadow:none;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-card > .card-body {padding:16px 17px!important;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-card .form-label {color:#183c5d;font-size:14px;margin-bottom:8px;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-card .small.text-muted {font-size:12px;line-height:1.5;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-search {position:relative;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-search > .bi-search {
    position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none;z-index:1;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-search > [data-hdpm-search] {
    height:45px;border:1px solid #c4d4e5;border-radius:7px;background:#fff;
    padding-left:40px;padding-right:12px;font-size:13px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd7-printer-search:focus-within > [data-hdpm-search] {
    border-color:#4482b9;box-shadow:0 0 0 3px rgba(36,94,146,.12);outline:0;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-results] {
    border-radius:7px;border:1px solid #c4d4e5;box-shadow:0 9px 24px rgba(19,42,70,.10);
    max-height:240px;overflow-y:auto;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-results] .list-group-item {font-size:13px;padding:10px 12px;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-results] .list-group-item:hover {background:#eff6fd;}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-chips] .badge {
    font-weight:600;font-size:12px;padding:7px 10px!important;background:#e8f2fc!important;
    color:#1e4e7c!important;border:1px solid #b7d1e9!important;border-radius:6px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-add-manual] {
    font-size:12px;font-weight:650;color:#245e92;background:#fff;border:1px solid #b7cee3;border-radius:7px;
}
body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) [data-hdpm-add-manual]:hover {background:#eef6fd;}
@media(max-width:575px) {
    body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) :is(.hd3-location-picker,.hd7-printer-card > .card-body) {padding:12px!important;}
    body.public-shell:is([data-hd-page="index"],[data-hd-page="client_ticket_create"]) .hd3-room-search-field {flex-basis:100%;}
}
