/* HRMVC preview theme: subtle gov-style cleanup, CSS only (no function changes).
   To revert: delete this file + the <link> in _Layout.cshtml / _LayoutSignOut.cshtml. */

body {
    background: #eef1f4;
    padding-top: 0;
    padding-bottom: 0;
}

/* sticky footer:內容不足時頁尾貼底；用min-height讓長頁面自然撐高，不壓縮header */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content {
    flex: 1 0 auto;
}
body > div.content {
    min-height: 0;
}
.footer {
    flex-shrink: 0;
}

/* header: logo + nav buttons */
.topbar-nav {
    background: #fff;
    padding: 8px 16px;
    border-bottom: 3px solid #d5dbe3;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: hidden;
    flex-shrink: 0;
}
.topbar-nav h1 {
    float: left;
    margin: 0;
}
.topbar-nav h1 img {
    height: 50px;
}
.topbar-nav .btn {
    margin-top: 8px;
}

/* content card */
.content {
    padding: 20px 0 36px 0;
}
.body-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    padding: 24px 20px 28px 20px;
    max-width: 73vw !important;
    margin-left: auto;
    margin-right: auto;
}
.body-content > .container {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

/* page title rendered from ViewBag.Title */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f3a5f;
    border-left: 5px solid #6fa8dc;
    padding-left: 10px;
    margin: 0 0 18px 0;
}

/* footer (用 footer.footer 提高權重，蓋掉layout自帶的min-height:60px) */
footer.footer {
    background: #f8f9fa;
    color: #000;
    min-height: 0;
    padding: 3px 0;
    border-top: 1px solid #dde3ea;
    line-height: 1.4;
    flex-shrink: 0;
}
.footer hr {
    display: none;
}
.footer p {
    margin: 0;
}

/* buttons: slightly rounded, keep existing colors */
.btn {
    border-radius: 6px;
}

/* tables */
.table {
    background: #fff;
    font-size: 16px;
}
.table td, .table th {
    padding: 14px 12px;
}
.table thead th {
    background: #d9edf7;
    color: #212529;
    border-color: #b8d4e8 !important;
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
}
.table th {
    background: #eef3f7;
    color: #1f3a5f;
}
.table-bordered td:first-child {
    background: #f8fafc;
    font-weight: 600;
}

/* form inputs: comfortable height */
.form-control-sm {
    min-height: 34px;
}

/* list pages: form must not cap table width (view inline CSS limits form to 1024px) */
form.wide-form {
    max-width: 100% !important;
}

/* validation avatars/badges spacing */
.b-avatar {
    margin-right: 8px;
}

/* pagination centered */
.pagination {
    justify-content: center;
}

/* INFO 明細 modal：全部不要粗體，只有 <b> 的報名日期起訖、第一列公告標題維持粗體 */
.modal-content .table td,
.modal-content .table th {
    font-weight: 400 !important;
}

.modal-content .table td b,
.modal-content .table th b {
    font-weight: 700 !important;
}

/* 最上面公告標題列維持粗體 */
.modal-content .table tr:first-child th {
    font-weight: 700 !important;
}

/* 卡片標題列：標題靠左、額外按鈕靠右，垂直置中；沒按鈕的頁面維持原樣 */
.page-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px 0;
}

.page-head .page-title {
    margin: 0;
}

.page-head-extra {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* IE11沒有gap；按鈕左右只留一點點，跟以前b-button排在一起的感覺一樣 */
.page-head-extra .btn {
    margin: 2px 0;
}

/* small screens: narrower card, smaller title, tables scroll sideways */
@media (max-width: 768px) {
    .body-content {
        padding: 16px;
        border-radius: 0;
    }
    .page-title {
        font-size: 18px;
    }
    .topbar-nav .btn {
        margin-bottom: 4px;
    }
}
