Files
thinkyu/教育訓練系統/Web/Styles/領據資料處理.css
T
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

468 lines
9.8 KiB
CSS

/* 領據資料處理樣式 */
.search-panel {
background-color: #f8f9fa;
padding-bottom: 0.5rem;
}
.control-panel {
}
.control-panel .button-panel {
padding-top: 0.5rem;
}
/* 搜尋條件欄位樣式 */
.control-panel .field-wrapper {
display: grid;
grid-template-columns: 100px 1fr; /* 固定寬度 100px */
align-items: center;
gap: 0.3rem;
width: 100%;
}
.control-panel .field-wrapper .form-label {
display: inline-block;
margin-bottom: 0;
padding-right: 0;
font-weight: 500;
white-space: nowrap;
flex-shrink: 0;
text-align: right; /* 靠右對齐 */
}
.control-panel .field-wrapper .form-control,
.control-panel .field-wrapper .form-select {
width: 100%;
margin-bottom: 0;
padding: 3px;
}
/* 確保行與列能橫向排列 */
.control-panel .row {
display: flex;
flex-wrap: wrap;
}
/* 按鈕區域橫向排列 */
.control-panel .row.mt-3 {
flex-wrap: wrap;
gap: 0.5rem;
}
.control-panel .btn {
margin-right: 0.5rem;
margin-bottom: 0.5rem;
}
.table-responsive {
overflow-y: auto;
overflow-x: auto;
min-width: 0;
position: relative;
}
.table {
min-width: 1400px;
border-collapse: collapse;
}
.table th,
.table td {
border-right: 1px solid #dee2e6;
}
.table th:last-child,
.table td:last-child {
border-right: none;
}
.table thead th {
position: sticky;
top: 0;
background-color: #dee2e6;
z-index: 11;
white-space: nowrap;
}
/* 表格奇偶行不同背景色 */
.table tbody tr:nth-child(odd) {
background-color: #ffffff;
}
.table tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
.table tbody tr:hover {
background-color: #e9ecef;
}
/* 已作廢領據樣式 */
.table tbody tr.row-voided {
background-color: #f5e6e6;
color: #8b0000;
}
.table tbody tr.row-voided:hover {
background-color: #e8d3d3;
}
.table tbody tr.row-voided td {
color: #8b0000;
}
.card-header {
background-color: #f8f9fa;
font-weight: bold;
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
}
.header-content {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
}
.void-badge {
display: inline-block;
background-color: #dc3545;
color: white;
padding: 0.25rem 0.75rem;
border-radius: 0.375rem;
font-size: 0.85rem;
font-weight: 600;
white-space: nowrap;
}
.card-header .btn-outline-danger {
flex-shrink: 0;
font-size: 0.875rem;
padding: 0.375rem 0.75rem;
}
.card-header .btn-outline-danger:hover {
background-color: #dc3545;
border-color: #dc3545;
color: white;
}
.card-body {
padding: 10px;
background-color: #eee;
border-radius: 10px;
}
/* 結果面板樣式 */
.results-panel {
display: flex;
flex-direction: column;
height: calc(100vh - 350px);
}
.results-panel .card-body {
display: flex;
flex-direction: column;
height: 100%;
padding: 10px;
background-color: #eee;
}
.results-panel .table-responsive {
flex: 1;
overflow-y: auto;
overflow-x: auto;
min-width: 0;
}
.results-panel .row.mt-3 {
flex-shrink: 0;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #dee2e6;
}
.pagination-wrapper {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.text-danger {
color: #dc3545;
}
.travel-fee-col {
padding: 0.25rem 0.3rem 0 0;
flex: 0 0 100px;
min-width: 0;
box-sizing: border-box;
margin-right: 5px;
}
.travel-fee-col .form-label {
font-size: 0.85rem;
text-align: right;
}
.travel-fee-col input[type=number] {
text-align: right;
}
/* 共用欄位 padding 與預設寬度 (100%) */
[class*="col-"] {
padding: 0.25rem 0.3rem 0 0;
min-width: 0;
box-sizing: border-box;
flex: 0 0 calc(100% - 1px);
}
/* ── sm (>= 1024px,小筆電/小平板橫向) ── */
@media (min-width: 1024px) {
.col-sm-1 { flex: 0 0 calc(8.33333% - 1px); }
.col-sm-2 { flex: 0 0 calc(16.66667% - 1px); }
.col-sm-3 { flex: 0 0 calc(25% - 1px); }
.col-sm-4 { flex: 0 0 calc(33.33333% - 1px); }
.col-sm-5 { flex: 0 0 calc(41.66667% - 1px); }
.col-sm-6 { flex: 0 0 calc(50% - 1px); }
.col-sm-7 { flex: 0 0 calc(58.33333% - 1px); }
.col-sm-8 { flex: 0 0 calc(66.66667% - 1px); }
.col-sm-9 { flex: 0 0 calc(75% - 1px); }
.col-sm-10 { flex: 0 0 calc(83.33333% - 1px); }
.col-sm-11 { flex: 0 0 calc(91.66667% - 1px); }
.col-sm-12 { flex: 0 0 calc(100% - 1px); }
}
/* ── md (>= 1280px,標準筆電) ── */
@media (min-width: 1280px) {
.col-md-1 { flex: 0 0 calc(8.33333% - 1px); }
.col-md-2 { flex: 0 0 calc(16.66667% - 1px); }
.col-md-3 { flex: 0 0 calc(25% - 1px); }
.col-md-4 { flex: 0 0 calc(33.33333% - 1px); }
.col-md-5 { flex: 0 0 calc(41.66667% - 1px); }
.col-md-6 { flex: 0 0 calc(50% - 1px); }
.col-md-7 { flex: 0 0 calc(58.33333% - 1px); }
.col-md-8 { flex: 0 0 calc(66.66667% - 1px); }
.col-md-9 { flex: 0 0 calc(75% - 1px); }
.col-md-10 { flex: 0 0 calc(83.33333% - 1px); }
.col-md-11 { flex: 0 0 calc(91.66667% - 1px); }
.col-md-12 { flex: 0 0 calc(100% - 1px); }
}
/* ── lg (>= 1440px,大螢幕桌機) ── */
@media (min-width: 1440px) {
.col-lg-1 { flex: 0 0 calc(8.33333% - 1px); }
.col-lg-2 { flex: 0 0 calc(16.66667% - 1px); }
.col-lg-3 { flex: 0 0 calc(25% - 1px); }
.col-lg-4 { flex: 0 0 calc(33.33333% - 1px); }
.col-lg-5 { flex: 0 0 calc(41.66667% - 1px); }
.col-lg-6 { flex: 0 0 calc(50% - 1px); }
.col-lg-7 { flex: 0 0 calc(58.33333% - 1px); }
.col-lg-8 { flex: 0 0 calc(66.66667% - 1px); }
.col-lg-9 { flex: 0 0 calc(75% - 1px); }
.col-lg-10 { flex: 0 0 calc(83.33333% - 1px); }
.col-lg-11 { flex: 0 0 calc(91.66667% - 1px); }
.col-lg-12 { flex: 0 0 calc(100% - 1px); }
}
/* 自動完成下拉菜單樣式 */
.autocomplete-wrapper {
position: relative;
width: 100%;
}
.autocomplete-dropdown {
position: absolute;
top: 100%;
left: 0;
list-style: none;
padding: 0;
margin: 4px 0 0 0;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 0.375rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
max-height: 300px;
overflow-y: auto;
white-space: nowrap;
width: max-content;
}
.autocomplete-item {
padding: 8px 12px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
transition: background-color 0.2s ease;
}
.autocomplete-item:hover {
background-color: #f8f9fa;
}
.autocomplete-item:last-child {
border-bottom: none;
}
.autocomplete-item .item-name {
font-weight: 500;
flex: 1;
margin-right: 10px;
}
.autocomplete-item .item-id {
color: #6c757d;
font-size: 0.85rem;
white-space: nowrap;
}
/* 輸入框配合片語按鈕樣式 */
.input-with-button {
position: relative;
display: flex;
align-items: center;
width: 100%;
gap: 0;
/*height: calc(1.5em + 0.75rem + 2px);*/
}
.btn-phrase {
padding: 0 0.75rem;
margin: 0;
background-color: #6c757d;
color: white;
border: 1px solid #6c757d;
border-radius: 0.375rem 0 0 0.375rem;
cursor: pointer;
font-size: 0.875rem;
white-space: nowrap;
transition: background-color 0.2s ease;
order: -1;
display: flex;
align-items: center;
}
.btn-phrase:hover:not(:disabled) {
background-color: #5a6268;
border-color: #5a6268;
}
.btn-phrase:disabled {
background-color: #e9ecef;
color: #6c757d;
cursor: not-allowed;
border-color: #dee2e6;
}
.input-with-button .form-control {
flex: 1;
border-left: none;
border-radius: 0 0.375rem 0.375rem 0;
margin: 0;
}
/* 片語下拉菜單樣式 */
.phrase-dropdown {
position: absolute;
top: 100%;
left: 0;
list-style: none;
padding: 0;
margin: 4px 0 0 0;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 0.375rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
max-height: 300px;
overflow-y: auto;
min-width: 150px;
width: auto;
}
.phrase-item {
padding: 8px 12px;
cursor: pointer;
border-bottom: 1px solid #f0f0f0;
transition: background-color 0.2s ease;
}
.phrase-item:hover {
background-color: #f8f9fa;
}
.phrase-item:last-child {
border-bottom: none;
}
/* 警告訊息樣式 */
.alert {
padding: 12px 16px;
margin-bottom: 1rem;
border-radius: 0.375rem;
border-left: 4px solid;
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 0.95rem;
animation: slideDown 0.3s ease-out;
}
.alert-warning {
background-color: #fff3cd;
border-color: #ffc107;
color: #856404;
}
.alert .icon-warning::before {
content: "⚠";
font-weight: bold;
font-size: 1.1em;
flex-shrink: 0;
margin-top: 2px;
}
.alert-list {
list-style: none;
list-style-type: none;
padding: 0;
margin: 0;
flex: 1;
}
.alert-list li {
padding: 4px 0;
line-height: 1.4;
list-style: none;
list-style-type: none;
}
.alert-list li:not(:last-child) {
padding-bottom: 6px;
border-bottom: 1px solid rgba(133, 100, 4, 0.2);
}
.mb-3 {
margin-bottom: 1rem;
}
.ml-2 {
margin-left: 0.5rem;
}
.mt-3 {
margin-top: 1rem;
}
.mt-4 {
margin-top: 1.5rem;
}