/* report/index2.php 用のスタイル */
.nowrap {
    white-space: nowrap;
}
.clip-text40 {
    max-width: 28em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}
.clip-text20 {
    max-width: 13em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}
.clip-text5 {
    max-width: 3.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}
.clip-text10{
    max-width: 7em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}
.header {
    background-color: #333;
    color: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.site-title-block {
    text-decoration: none;
    color: #f8f9fa;
}
.site-title {
    font-size: 30px;
    margin: 0;
}
.site-subtitle {
    font-size: 18px;
    margin: 0;
}
.nav-links {
    text-align: right;
}
.nav-links a {
    color: #f8f9fa;
    margin: 0 15px;
    text-decoration: none;
}
#researchTable-wrapper {
    width: 100%;
    overflow-x: auto;
}
#researchTable {
    table-layout: fixed;
    width: 100%;
    min-width: 900px;
}
#researchTable th, #researchTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #222;
    font-size: 0.97em;
    padding: 0.3em 0.5em;
}
#researchTable th:nth-child(1), #researchTable td:nth-child(1) { /* 件数 */
    width: 3%;
    min-width: 2em;
    max-width: 3em;
}
#researchTable th:nth-child(2), #researchTable td:nth-child(2) { /* 設備ID */
    width: 10%;
    min-width: 6em;
    max-width: 10em;
}
#researchTable th:nth-child(3), #researchTable td:nth-child(3) { /* 設備名 */
    width: 25%;
    min-width: 10em;
    max-width: 30em;
}
#researchTable th:nth-child(4), #researchTable td:nth-child(4) { /* 報告書タイトル */
    width: 35%;
    min-width: 15em;
    max-width: 40em;
}
#researchTable th:nth-child(5), #researchTable td:nth-child(5) { /* 利用者 */
    width: 15%;
    min-width: 8em;
    max-width: 15em;
}
#researchTable th:nth-child(6), #researchTable td:nth-child(6) { /* 年度 */
    width: 7%;
    min-width: 4em;
    max-width: 5em;
}
#summary-table {
    table-layout: fixed;
    width: 100%;
}
#summary-table th, #summary-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12em;
}
#summary-table th:nth-child(1), #summary-table td:nth-child(1) { min-width: 7em; max-width: 10em; }
#summary-table th:nth-child(2), #summary-table td:nth-child(2) { min-width: 10em; max-width: 20em; }
#summary-table th, #summary-table td {
    color: #222;
}
.form-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 1.2em 0 0.5em 0;
    color: #ffffff;
    letter-spacing: 0.03em;
    
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.form-description {
    font-size:0.8em;
    color: #ffffff;
    
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.form-description a, .form-title a {
    color: #007bff;
    text-decoration: underline;
}
.form-description a:visited, .form-title a:visited {
    color: #007bff;
}
body, html {
    color: #222;
    background: #fff;
    overflow-x: hidden;
}

/* Spinner overlay styles */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
