.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.projects-page { font-size: 16px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-heading h1 { font-size: 24px; margin: 0; }
.page-actions { display: flex; gap: 12px; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 15px; border: 1px solid #365cff; border-radius: 3px; background: white; color: #365cff; white-space: nowrap; }
.outline-button:hover { background: #f2f5ff; }
.project-export-dropdown .dropdown-panel { min-width: 150px; right: 0; left: auto; }
.project-export-dropdown .dropdown-panel button { display: flex; align-items: center; gap: 10px; }
.export-format-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 30px; border: 1px solid currentColor; border-radius: 2px; font-size: 10px; font-weight: bold; }
.project-export-notice { position: fixed; z-index: 90; top: 90px; right: 20px; width: min(360px, calc(100vw - 32px)); padding: 18px; border: 1px solid #b2d5bb; background: #e9f5ed; color: #174e2c; box-shadow: 0 3px 8px #0002; }
.project-export-notice .plain-icon { float: right; margin: -8px -8px 4px 8px; font-size: 24px; }
.project-export-notice p { margin: 12px 0 0; line-height: 1.5; }
.project-export-notice.export-error { border-color: #dda3a3; background: #fff0f0; color: #802020; }
.projects-workspace { display: grid; grid-template-columns: 384px minmax(0, 1fr); gap: 20px; }
.filters-panel { border-right: 1px solid #d7d7d7; padding-right: 16px; min-width: 0; }
.filters-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; font-size: 20px; min-height: 40px; }
.plain-icon { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: #333; border-radius: 50%; }
#filters-toggle .icon { width: 18px; transform: rotate(90deg); }
.active-filter { border-bottom: 1px solid #999; padding: 0 0 20px 4px; margin-bottom: 10px; }
.active-filter label { display: block; font-weight: bold; margin-bottom: 10px; }
.help-small { width: 18px; height: 18px; margin-left: 8px; }
.active-filter-row { display: flex; gap: 12px; }
.active-filter-row > select { flex: 1; min-width: 0; }
.active-filter p { font-size: 14px; color: #0073c8; font-weight: bold; margin: 8px 0 0 4px; }
.projects-page select, .projects-page input { height: 40px; min-width: 0; max-width: 100%; border: 1px solid #aaa; background-color: white; color: #333; border-radius: 3px; padding: 8px 14px; }
.projects-page input::placeholder { color: #888; }
.filter-box { margin: 12px 0 0 16px; border: 1px solid #607bff; background: #f3f5f9; padding: 12px; }
.filter-box label { display: block; font-weight: bold; color: #111; margin-bottom: 14px; }
.filter-box select, .filter-box > input { width: 100%; }
.filter-box select:disabled { color: #888; }
.search-input { display: flex; min-width: 0; }
.search-input input { flex: 1; width: 100%; border-radius: 3px 0 0 3px; }
.search-input .icon-button { border-left: 0; border-radius: 0 3px 3px 0; }
.results-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.results-summary { white-space: nowrap; margin: 0; }
.results-summary strong { margin-right: 5px; }
#project-search-form { flex: 1; }
.sort-controls { display: flex; min-width: 0; }
#sort-by { width: 128px; border-radius: 3px 0 0 3px; text-overflow: ellipsis; }
#sort-direction { border-left: 0; border-radius: 0 3px 3px 0; }
#sort-direction.descending svg { transform: rotate(180deg); }
.project-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 130px; padding: 16px; margin-bottom: 16px; background: white; border: 1px solid #d5d5d5; border-radius: 3px; box-shadow: 0 2px 3px #00000018; }
.project-information { flex: 1; min-width: 0; color: #626262; }
.project-card p { margin: 0; line-height: 24px; }
.project-number { display: block; font-size: 16px; margin: 0 0 2px; font-weight: bold; }
.link-button { border: 0; padding: 0; background: transparent; color: #365cff; text-decoration: underline; text-align: left; overflow-wrap: anywhere; }
.project-description { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.separator { margin: 0 12px; }
.project-state { min-width: 140px; color: #626262; }
.status-pill { display: inline-block; border: 1px solid #008bff; color: #0082e5; border-radius: 20px; padding: 1px 8px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.view-project { min-height: 36px; padding: 4px 9px; margin: 0 12px 0 0; }
.project-card:has(.project-budget:not([hidden])) .project-state, .project-card:has(.project-budget:not([hidden])) .view-project { transform: translateY(-12px); }
.card-expand { position: absolute; bottom: -13px; left: calc(50% - 16px); display: flex; justify-content: center; align-items: center; border: 0; border-radius: 50%; width: 32px; height: 32px; background: white; color: #333; box-shadow: 0 1px 2px #0002; }
.pagination-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-size: 14px; }
.project-card { flex-wrap: wrap; }
.project-card-details { display: grid; grid-template-columns: 1fr 1fr; flex-basis: calc(100% + 32px); width: calc(100% + 32px); border-top: 1px solid #d5d5d5; margin: 2px -16px -16px; padding: 16px; color: #626262; }
.card-expand[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (max-width: 700px) { .project-card-details { grid-template-columns: 1fr; margin: 0; padding: 12px 0 0; width: 100%; flex-basis: 100%; } }
#page-size { height: 26px; padding: 1px 12px; width: 73px; margin-left: 4px; }
#page-range { margin: 0; }
.pagination-controls { display: flex; gap: 10px; align-items: center; }
.pagination-controls button { background: transparent; color: #365cff; border: 0; padding: 3px; font-size: 17px; }
.pagination-controls button:disabled { color: #9aafff; }
.pagination-controls .icon { width: 17px; height: 17px; }
#current-page { border: 1px solid #365cff; border-radius: 3px; color: #365cff; padding: 6px 12px; }
.empty-results { padding: 24px; border: 1px solid #d5d5d5; background: white; }
.projects-page.filters-collapsed .projects-workspace { grid-template-columns: 44px minmax(0, 1fr); }
.filters-collapsed .filters-panel { padding-right: 8px; }
.filters-collapsed .filters-heading { flex-direction: column-reverse; align-items: center; gap: 18px; }
.filters-collapsed .filters-heading > span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.filters-collapsed #filters-toggle { border: 1px solid #607bff; background: #f4f5f6; }
.filters-collapsed #filters-toggle .icon { transform: rotate(-90deg); }
@media (max-width: 1500px) {
  .projects-workspace { grid-template-columns: 340px minmax(0, 1fr); gap: 18px; }
  .results-toolbar { flex-wrap: wrap; gap: 8px; }
  #project-search-form { min-width: 180px; }
  .project-state { min-width: 120px; }
  .project-budget .separator { margin: 0 6px; }
}
@media (max-width: 1050px) {
  .projects-workspace { grid-template-columns: 280px minmax(0, 1fr); gap: 14px; }
  .filter-box { margin-left: 0; }
  .active-filter-row { flex-wrap: wrap; }
  .project-card { flex-wrap: wrap; }
  .project-information { flex-basis: 100%; }
  .project-card:has(.project-budget:not([hidden])) .project-state, .project-card:has(.project-budget:not([hidden])) .view-project { transform: none; }
  .project-description { white-space: normal; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .projects-workspace { display: flex; flex-direction: column; }
  .filters-panel { border: 0; padding-right: 0; }
  .filters-heading { margin-bottom: 10px; }
  .filters-collapsed .filters-heading { flex-direction: row; gap: 0; }
  .filters-collapsed .filters-heading > span { writing-mode: horizontal-tb; transform: none; }
  .results-summary { white-space: normal; flex-basis: 100%; }
  .page-actions { flex-wrap: wrap; gap: 8px; }
  .page-heading h1 { font-size: 22px; }
  .project-card { padding: 12px; }
  .project-information { overflow-wrap: anywhere; }
  .pagination-row { flex-wrap: wrap; gap: 12px; }
  .outline-button { padding: 6px 10px; }
}
