﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
    /*position: absolute;*/
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 30px; /* Vertically center the text there */
    font-size: 12px;
}


.pointer {
    cursor: pointer;
}


.el-pagination {
    justify-content:center;
}

.el-footer {
    margin-top: 10px;
    text-align: center;
}

.requiredSymbol:after {
    content: " *";
    color: red;
}
/* file input */
#file-catcher .files {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: 1rem;
    border-style: dashed;
    border: 2px dashed #bbb;
    background-color: #eee;
    text-align: center;
}

#file-catcher .files input {
    width: 100%;
    height: 0;
    padding: 6rem;
    opacity: 0;
}

#file-catcher .files h3 {
    position: absolute;
    width: 80%;
    pointer-events: none;
    margin: 0;
}

#file-catcher p {
    position: absolute;
    width: 80%;
    pointer-events: none;
    margin-bottom: -4rem
}

/* table */
/*.table th, .table td {
    white-space: nowrap;
}
*/
.table-head-row th, .table-head-row thead.is-group th {
    background-color: #577399 !important;
    font-weight: bold !important;
    color: white !important;
    text-align: center !important;
}

.lighttable-head-row th, .lighttable-head-row thead.is-group th {
    background-color: #EEEAE9 !important;
    text-align: center !important;
    border-color: white !important;
}

.soft-light-table-head th,
.soft-light-table-head thead.is-group th {
    background-color: #EEEAE9 !important; /* 奶茶米白 */
    color: #4B5563 !important; /* 柔和深灰 */
    font-weight: bold !important;
    text-align: center !important;
    border-color: white !important;
}

.soft-light-table-head .el-table__row:nth-child(odd) {
    background-color: #F3F4F6;
}

.soft-light-table-head .el-table__row:nth-child(even) {
    background-color: #FAFAFA;
}

.soft-light-table-head .el-table__row:hover {
    background-color: #E7E5E4;
}

.soft-light-table-head .el-table__cell {
    border-color: #E5E7EB;
    color: #374151;
}

.soft-blue-table th,
.soft-blue-table thead.is-group th {
    background-color: #6B7280 !important; /* 深灰藍紫 */
    color: white !important;
    font-weight: bold !important;
    text-align: center !important;
}

.soft-blue-table .el-table__row:nth-child(odd) {
    background-color: #E8ECF1; /* 偏灰藍，與藍底區隔 */
}

.soft-blue-table .el-table__row:nth-child(even) {
    background-color: #F4F6FA;
}

.soft-blue-table .el-table__row:hover {
    background-color: #D4DDE7;
}

.soft-blue-table .el-table__cell {
    border-color: #C8D0DA; /* 柔和但清楚的格線 */
    color: #374151;
}
.el-table.soft-blue-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gray-scale-table th,
.gray-scale-table thead.is-group th {
    background-color: #D1D5DB !important; /* 淺灰 */
    color: #111827 !important; /* 深灰黑 */
    font-weight: bold !important;
    text-align: center !important;
}

.gray-scale-table .el-table__row:nth-child(odd) {
    background-color: #F9FAFB; /* 非常淡的灰白 */
}

.gray-scale-table .el-table__row:nth-child(even) {
    background-color: #FFFFFF; /* 純白 */
}

.gray-scale-table .el-table__row:hover {
    background-color: #E5E7EB; /* 滑過時稍微加深 */
}

.gray-scale-table .el-table__cell {
    border-color: #E5E7EB; /* 淺灰格線 */
    color: #374151; /* 中灰文字 */
}

.el-table.gray-scale-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}


.el-loading-spinner .path {
    -webkit-animation: loading-dash 1.5s ease-in-out infinite;
    animation: loading-dash 1.5s ease-in-out infinite;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-width: 2;
    /* stroke: var(--el-color-primary); */
    stroke-linecap: round;
    stroke: #f5efed !important;
}

.el-loading-spinner .el-loading-text {
    /* color: var(--el-color-primary); */
    color: #f5efed !important;
    margin: 3px 0;
    font-size: 14px;
}

.footnote {
    padding: 0 1rem;
    margin: 0 0 .5rem 0;
    font-size: .75rem;
    color: #dc3545;
    list-style-type: none;
}

.close_rupbtn {
    opacity: 0.3;
}

.close_rupbtn:hover {
    opacity: 1;
}

.close_rupbtn:before, .close_rupbtn:after {
    float: right;
    position: relative;
    right: 20px;
    top: 5px;
    content: ' ';
    height: 20px;
    width: 1px;
    background-color: #333;
}

.close_rupbtn:before {
    transform: rotate(45deg);
}

.close_rupbtn:after {
    transform: rotate(-45deg);
}

HtmlText {
    white-space: pre-line
}

.el-autocomplete {
    width: auto !important;
}

/*避免 bootstrap 改變 select 寬度*/
/* 内联表单默认宽度 */
.el-form--inline .el-form-item :where( .el-input, .el-cascader, .el-select, .el-date-editor, .el-autocomplete ) {
    width: 200px;
}

.multi-line-cell {
    white-space: pre-wrap; /* 支援 \n 換行 */
    word-break: break-word; /* 支援長單字換行 */
}

.upload-area {
    border: 2px dashed #dcdfe6;
    border-radius: 6px;
    background-color: #f9f9f9;
    text-align: center;
    padding: 30px 20px;
    transition: border-color 0.3s, background-color 0.3s;
}

/* 滑鼠滑入上傳區 */
.upload-area:hover {
    border-color: #409eff;
    background-color: #f0f8ff;
}

/* 圖示樣式 */
.upload-area .upload-icon {
    font-size: 60px !important; /* ✅ 強制放大 */
    color: #bbb !important; /* ✅ 強制灰色 */
    transition: color 0.3s;
}

/* Hover 時改藍色 */
.upload-area:hover .upload-icon {
    color: #409eff !important; /* ✅ 強制變藍 */
    cursor: pointer;
}

/* 確保 SVG 吃到 color */
.upload-icon svg {
    fill: currentColor !important;
}

.el-form-item.break-line {
    width: 99%;
    display: block;
    margin: 0;
}

/*----各單位程式入口頁面----*/

.full-wrapper {
    width: 100%;
    background-color: #fafafa;
}

/* Standard layout with padding */
#layoutSidenav_content {
    /* Default padding preserved */
}

#layoutSidenav_content main {
    /* Standard container padding */
}

.app-grid-wrapper {
    padding: 40px 32px;
    max-width: none;
    margin: 0; /* 移除 auto */
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 4px;
    color: #333;
}

.page-header .subtext {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.dept-section {
    margin-bottom: 48px;
}

.dept-title {
    font-size: 20px;
    font-weight: 600;
    color: #2e3a59;
    margin-bottom: 16px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.app-card {
    background-color: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.3s ease;
}

    .app-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

.app-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #3f3f3f;
}

.programs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.programs::-webkit-scrollbar {
    width: 6px;
}

.programs::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
/*.program-chip {
    background: #f3f4f6;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    display: inline-flex;
    align-items: center;
    transition: 0.2s ease;
}

.program-chip:hover {
    background-color: #e0f2fe;
    color: #0c4a6e;
}*/
.program-chip {
    background: #f3f4f6;
    border-radius: 24px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #374151;
    display: inline-flex;
    align-items: center;
    transition: 0.2s ease;
    white-space: nowrap;
    line-height: 1.6;
}

    .program-chip:hover {
        background-color: #e0f2fe;
        color: #0c4a6e;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }

    .program-chip el-icon {
        margin-right: 6px;
        font-size: 16px;
    }

/*----各單位程式入口頁面  END----*/