/* Shared compact workspace for employee and asset reports. */
:root {
  --font-sans: 'Segoe UI', Arial, sans-serif;
  --font-mono: Consolas, monospace;
  --bg-primary: #0f1724;
  --bg-secondary: #162132;
  --bg-card: #162132;
  --bg-card-hover: #1e2c40;
  --bg-input: #101b2a;
  --bg-input-border: #36465c;
  --bg-table-header: #1e2c40;
  --text-secondary: #b3c0d2;
  --text-muted: #94a3b8;
  --border-color: #2c3c51;
  --radius-lg: 8px;
  --radius-md: 6px;
  --shadow-sm: none;
  --glass-blur: none;
}
body.theme-light {
  --bg-primary: #f1f4f8;
  --bg-card: #fff;
  --bg-secondary: #fff;
  --bg-table-header: #eef2f7;
  --text-muted: #64748b;
  --border-color: #dbe2eb;
}
body { font-size: 13px; line-height: 1.45; background-image: none; }
.app-header { padding: 10px 20px; background: var(--bg-secondary); backdrop-filter: none; }
body.theme-light .app-header { background: var(--bg-secondary); }
.header-container { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 0; gap: 14px; }
.header-left, .header-right, .header-actions { gap: 10px; min-width: 0; }
.brand-logo-img { height: 38px; max-width: 175px; }
body.theme-light .brand-icon-wrapper { background: transparent; padding: 2px 4px; box-shadow: none; }
.brand-titles h1, .header-container > h1 { font-family: 'Source Sans Pro', 'Segoe UI', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: 0; white-space: normal; }
.app-main { padding: 16px 20px 24px; gap: 14px; max-width: 1920px; }
.report-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.report-nav .btn { background: transparent; color: var(--text-secondary); border-color: transparent; box-shadow: none; }
.report-nav .btn[aria-current="page"] { background: rgba(var(--primary-rgb), .12); color: var(--text-primary); border-color: rgba(var(--primary-rgb), .35); }
.report-submenu { display: flex; flex-direction: column; gap: 4px; margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--border-color); }
.report-submenu .btn { font-size: 11px; justify-content: flex-start; }
.report-submenu .btn[aria-selected="true"] { background: rgba(var(--primary-rgb), .16); color: var(--text-primary); border-color: rgba(var(--primary-rgb), .3); }
@media (max-width: 900px) {
  .report-submenu { flex-direction: row; flex-basis: 100%; margin-top: 6px; }
}
.workspace-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.workspace-heading h2 { font-size: 16px; font-weight: 600; }
.workspace-heading p { font-size: 12px; color: var(--text-secondary); }
.panel-card { padding: 14px; backdrop-filter: none; }
.btn { font-size: 12px; padding: 7px 12px; min-height: 32px; gap: 6px; }
.btn-primary, .btn-primary:hover:not(:disabled) { background: var(--primary); box-shadow: none; transform: none; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-icon { width: 32px; height: 32px; padding: 6px; }
.theme-control { flex-shrink: 0; }
.header-actions { flex-wrap: wrap; }
.btn-sm { min-height: 28px; padding: 4px 9px; }
.form-label, .switch-label, .status-pill, .user-name { font-size: 12px; }
.form-control, .form-select, .assets-controls input, .assets-controls select, .assets-toolbar select {
  font-family: inherit; font-size: 12px; min-height: 32px; padding: 6px 10px;
  background: var(--bg-input); border: 1px solid var(--bg-input-border); color: var(--text-primary); border-radius: 5px;
}
.execution-form, .execution-left-group { gap: 12px; }
.execution-bar { gap: 10px; }
.mismatch-toggle-wrapper { padding: 5px 10px; border-radius: 5px; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 12px 14px; gap: 12px; backdrop-filter: none; }
.metric-card:hover { transform: none; box-shadow: none; }
.metric-icon { width: 36px; height: 36px; flex-shrink: 0; }
.metric-icon svg { width: 19px; height: 19px; }
.metric-label { font-size: 11px; letter-spacing: .035em; }
.metric-value { font-size: 23px; font-variant-numeric: tabular-nums; }
.metric-subtext { font-size: 11px; }
.table-toolbar { gap: 10px; margin-bottom: 12px; }
.search-input-wrapper { min-width: min(260px, 100%); max-width: 400px; }
.filter-dropdowns { gap: 8px; }
.table-container { max-height: 58vh; }
.data-table { font-size: 12px; }
.data-table th { font-size: 11px; padding: 9px 7px; border-bottom-width: 1px; }
.data-table td { font-size: 12px; padding: 7px; }
.loc-pill { font-size: 11px; }
.table-footer { font-size: 12px; margin-top: 12px; }
.empty-box { padding: 36px 16px; gap: 8px; }
.empty-box h3 { font-size: 14px; }
.empty-box svg { width: 32px; height: 32px; }
.notice-banner, .dropdown-item, .modal-header p, .form-hint { font-size: 12px; }
.login-card { max-width: 370px; padding: 26px; border-color: var(--border-color); border-radius: 10px; }
.login-card::before { height: 3px; background: var(--primary); }
.login-header h2 { font-size: 20px; }
.login-subtext { font-size: 12px; }
.login-logo-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(var(--primary-rgb), .12); }
.btn-block { font-size: 13px; }
.modal-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.user-avatar { background: var(--primary); width: 26px; height: 26px; }
.status-dot { box-shadow: none !important; width: 6px; height: 6px; }
:is(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary); outline-offset: 3px; }
body.theme-light :is(.badge-match, .test-result-box.success) { color: #047857; }
body.theme-light .badge-mismatch { color: #92400e; }
body.theme-light :is(.diff-cell, .login-error, .test-result-box.error) { color: #b91c1c; }
body.theme-light .notice-banner { color: #1d4ed8; }
body.theme-light .notice-banner.notice-warning { color: #92400e; }
body.theme-light code, body.theme-light .loc-pill { background: #e9eef5; }
.assets-header .header-container > .btn { justify-self: end; }
.assets-controls { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; padding: 12px 0; align-items: end; }
.assets-controls label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-secondary); min-width: 0; }
.assets-controls .project-filter { grid-column: 1; }
.assets-controls .report-action { justify-self: start; min-height: 28px; padding: 4px 10px; font-size: 11px; border-radius: 5px; }
.assets-controls input, .assets-controls select { width: 100%; min-width: 0; }
.assets-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; }
.assets-table { overflow: auto; max-height: 58vh; border: 1px solid var(--border-color); border-radius: 5px; }
.assets-table table { border-collapse: collapse; white-space: nowrap; width: 100%; font-size: 12px; }
.assets-table th, .assets-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-color); text-align: left; }
.assets-table th { position: sticky; top: 0; background: var(--bg-table-header); color: var(--text-secondary); cursor: pointer; font-size: 11px; font-weight: 600; }
.assets-table td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.assets-table tbody tr:nth-child(even) { background: var(--bg-table-stripe); }
.assets-table tbody tr:hover { background: var(--bg-table-hover); }
.asset-summary { padding: 12px 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
#message { white-space: pre-wrap; color: var(--text-secondary); padding: 10px 0; font-size: 12px; }
#message:empty, .asset-summary:empty { display: none; }
#message a { color: var(--primary); }
#date-help { color: var(--text-muted); font-size: 12px; }
@media (max-width: 1100px) {
  .header-container { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .header-center { order: -1; }
  .header-left, .header-center, .header-right, .header-actions { width: auto; }
  .header-right { margin-left: auto; }
  .header-actions { flex-wrap: wrap; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .app-header { position: relative; padding: 12px; }
  .app-main { padding: 12px; }
  .header-container { align-items: center; gap: 10px; }
  .header-right, .header-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .assets-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-dropdowns > * { flex: 1; min-width: 120px; }
  .execution-left-group { align-items: stretch; }
  .form-group--inline { flex-wrap: wrap; }
  .metrics-grid { gap: 8px; }
  .metric-card { padding: 10px; gap: 8px; }
  .metric-label { font-size: 10px; }
  .metric-icon { display: none; }
  .modal-footer, .footer-actions { flex-wrap: wrap; gap: 8px; }
  .form-row { flex-wrap: wrap; }
  input.form-control, select.form-select, .assets-controls input, .assets-controls select { font-size: 16px; }
}
/* Persistent report navigation beside the workspace. */
@media (min-width: 901px) {
  .app-main { padding-left: 224px; min-height: calc(100vh - 64px); }
  .report-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 204px;
    padding: 84px 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--bg-secondary);
    border-bottom: 0;
    border-right: 1px solid var(--border-color);
    z-index: 40;
  }
  .report-nav::before {
    content: 'REPORTS';
    padding: 0 10px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-muted);
  }
  .report-nav .btn { justify-content: flex-start; white-space: normal; text-align: left; padding: 9px 10px; }
  .report-nav .btn:hover { background: var(--bg-card-hover); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .report-nav { padding-top: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
