h1 { font-family: Arial, Helvetica, sans-serif; }

/* Calendar list: retain readable columns on narrow screens. */
#gcal-bid-app { max-width: 1800px; }
#gcal-bid-app section:has(> table) { overflow-x: auto; }
#gcal-bid-app section > table { table-layout: fixed; width: 1770px; min-width: 100%; }
#gcal-bid-app section > table th,
#gcal-bid-app section > table td { vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
#gcal-bid-app section > table th { white-space: nowrap; padding-top: 12px; padding-bottom: 12px; }
#gcal-bid-app section > table th:nth-child(1) { width: 90px; }
#gcal-bid-app section > table th:nth-child(2) { width: 360px; }
#gcal-bid-app section > table th:nth-child(3) { width: 150px; }
#gcal-bid-app section > table th:nth-child(4) { width: 130px; }
#gcal-bid-app section > table th:nth-child(5) { width: 140px; }
#gcal-bid-app section > table th:nth-child(6) { width: 130px; }
#gcal-bid-app section > table th:nth-child(7),
#gcal-bid-app section > table th:nth-child(8) { width: 170px; }
#gcal-bid-app section > table th:nth-child(9) { width: 100px; }
#gcal-bid-app section > table th:nth-child(10) { width: 270px; }
#gcal-bid-app section > table th:nth-child(11) { width: 60px; }
#gcal-bid-app section > table td:nth-child(2),
#gcal-bid-app section > table td:nth-child(10) { max-width: none; }
#gcal-bid-app .gcal-status-edit-btn { white-space: nowrap; }
#gcal-bid-app section > table td:nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; }
#gcal-edit-modal { padding: 16px; }
#gcal-edit-modal > div { max-height: 90vh; overflow-y: auto; }

/* Show mobile notice cards with a calculator beside each title. */
@media (max-width: 767px) {
 #gcal-bid-app { padding:16px 12px; }
 #gcal-bid-app section:has(> table) { overflow:visible; background:transparent; box-shadow:none; }
 #gcal-bid-app section > table { display:block; width:100%; min-width:0; }
 #gcal-bid-app section > table thead { display:none; }
 #gcal-bid-app section > table tbody { display:block; }
 #gcal-bid-app section > table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; margin-bottom:12px; border:1px solid #e5e7eb; border-radius:12px; background:white; }
 #gcal-bid-app section > table td { display:block; padding:6px; min-width:0; white-space:normal; }
 #gcal-bid-app section > table td:nth-child(2) { grid-column:1 / -1; order:-1; }
 #gcal-bid-app section > table td:nth-child(2) > span { display:block; -webkit-line-clamp:unset; }
 #gcal-bid-app .gcal-calc-btn { display:block; margin:10px 0; padding:10px 20px; min-height:44px; font-size:15px; }
 #gcal-bid-app section > table td:nth-child(6) { text-align:left; }
 #gcal-bid-app section > table td:nth-child(10), #gcal-bid-app section > table td[colspan] { grid-column:1 / -1; }
 #gcal-bid-app section > table td:nth-child(n+3)::before { display:block; color:#6b7280; font-size:11px; margin-bottom:2px; }
 #gcal-bid-app section > table td:nth-child(3)::before { content:"발주기관"; }
#gcal-bid-app section > table td:nth-child(4)::before { content:"참가지역"; }
#gcal-bid-app section > table td:nth-child(5)::before { content:"업종"; }
#gcal-bid-app section > table td:nth-child(6)::before { content:"기초금액"; }
#gcal-bid-app section > table td:nth-child(7)::before { content:"협정마감"; }
#gcal-bid-app section > table td:nth-child(8)::before { content:"입찰마감"; }
#gcal-bid-app section > table td:nth-child(9)::before { content:"담당자"; }
#gcal-bid-app section > table td:nth-child(10)::before { content:"남은 업무·메모"; }
#gcal-bid-app section > table td:nth-child(11)::before { content:"공고문"; }
}
