/* Application-only layout; Bootstrap and UserSpice remain the UI foundation. */
.hbttec-app { max-width: 1280px; color: #1e293b; }
.hbttec-app .workspace-header { display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.hbttec-app h1 { font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 650; margin-bottom: .5rem; }
.hbttec-app .workspace-eyebrow { color: #475569; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.hbttec-app .workspace-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.hbttec-app .workspace-panel { background: #fff; border: 1px solid #d5dce5; border-radius: .65rem; padding: 1.25rem; height: 100%; }
.hbttec-app .workspace-note { background: #f1f5f9; color: #334155; border-left: 3px solid #64748b; padding: .85rem 1rem; border-radius: .25rem; }
.hbttec-app .entry-section { border: 1px solid #d5dce5; border-radius: .65rem; padding: 1.25rem; margin-bottom: 1rem; background: #fff; min-width: 0; }
.hbttec-app .entry-section legend { float: none; width: auto; font-size: 1.1rem; font-weight: 650; padding: 0 .25rem; margin-bottom: .5rem; }
.hbttec-app .form-text, .hbttec-app .text-muted { color: #475569 !important; }
.hbttec-app .form-label { font-weight: 600; }
.hbttec-app .readonly-field { background: #f1f5f9; color: #334155; }
.hbttec-app .entry-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.hbttec-app .entry-actions .btn { min-width: 10rem; }
.hbttec-app .rating-options { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.hbttec-app .rating-options .form-check { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; padding: 0; }
.hbttec-app .rating-options .form-check-input { float: none; margin: 0; }
.hbttec-app .rating-options label { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .25rem; }
.hbttec-app .dashboard-controls { background: #f8fafc; border: 1px solid #d5dce5; border-radius: .65rem; padding: 1rem; margin-bottom: 1rem; }
.hbttec-app .summary-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .75rem; }
.hbttec-app .summary-item { background: #fff; border: 1px solid #e2e8f0; border-radius: .4rem; padding: .75rem; min-width: 0; }
.hbttec-app .summary-item > label { display: block; font-size: .85rem; color: #475569; margin-bottom: .25rem; }
.hbttec-app .summary-item > span { font-size: 1.25rem; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hbttec-app .date-range-picker-container { grid-column: span 2; display: flex; align-items: stretch; }
.hbttec-app .date-range-picker { width: 100%; background: #fff; border: 1px solid #64748b; border-radius: .35rem; padding: .65rem; text-align: left; color: #1e293b; }
.hbttec-app .shift-selector { width: 100%; min-height: 44px; border: 1px solid #64748b; border-radius: .35rem; padding: .4rem; }
.hbttec-app .details-btn { white-space: nowrap; min-height: 40px; }
.hbttec-app .modal-dialog { width: auto; max-width: 1100px; margin: 2rem auto; padding: 0 .5rem; }
.hbttec-app .modal-body { max-height: 70vh; overflow-y: auto; overflow-wrap: anywhere; }
.hbttec-app .advisor-table { min-width: 600px; }
.hbttec-app .advisor-table th[scope="row"] { white-space: nowrap; }
.hbttec-app .advisor-table input { min-width: 150px; }
.hbttec-app .btn, .hbttec-app .form-control, .hbttec-app .form-select { min-height: 44px; }
.hbttec-app :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.hbttec-app .task-card { display: block; height: 100%; padding: 1.25rem; border: 1px solid #cbd5e1; border-radius: .65rem; text-decoration: none; color: #1e293b; background: #fff; }
.hbttec-app .task-card:hover { border-color: #0d6efd; background: #f8fafc; }
@media (max-width: 575.98px) {
    .hbttec-app .workspace-panel, .hbttec-app .entry-section { padding: 1rem; }
    .hbttec-app .summary-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hbttec-app .entry-actions .btn { width: 100%; }
    .hbttec-app .dataTables_filter { text-align: left !important; margin-top: .75rem; }
    .hbttec-app .dataTables_filter input { max-width: 65vw; }
    .hbttec-app .modal-dialog { margin-top: .5rem; }
    .hbttec-app .advisor-table { min-width: 0; }
    .hbttec-app .advisor-table thead { display: none; }
    .hbttec-app .advisor-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #cbd5e1; padding: .5rem 0; }
    .hbttec-app .advisor-table th[scope="row"], .hbttec-app .advisor-table td:nth-child(2) { grid-column: 1 / -1; }
    .hbttec-app .advisor-table td, .hbttec-app .advisor-table th { border: 0; }
    .hbttec-app .advisor-table label.visually-hidden { position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important; display: block; margin-bottom: .25rem !important; }
    .hbttec-app .advisor-table input { min-width: 0; }
    .hbttec-app .advisor-table td:last-child { align-self: end; }
}
@media (prefers-reduced-motion: reduce) {
    .hbttec-app *, .hbttec-app *::before, .hbttec-app *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
