.page-content {
    padding: calc(45px + 1.5rem) calc(1.5rem * 0.5) 45px calc(1.5rem * 0.5);
}

.page-title-box {
    border-bottom: 1px solid #d3d3d3;
    border-top: 1px solid #d3d3d3;
    margin: 14px -1.5rem 0.5rem -1.5rem;
}

.auth-one-bg .bg-overlay {
    opacity: 0.95;
}

.auth-office {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* background: rgb(16 53 96 / 60%); */
}

.auth-office h1,
.auth-office h2,
.auth-office h3,
.auth-office h4 {
    color: #fff;
    margin: 2px 0;
    text-align: center;
}

.auth-office h4 {
    font-size: 14px;
}

.auth-office h3 {
    font-size: 18px;
}

.auth-office h1 {
    font-size: 40px;
}

.login-notices {
    color: #fff;
}

.login-notices p {
    font-size: 13.5px;
    margin-bottom: 7px;
    text-shadow: 0px 0px 25px #000;
}

.custom-alert {
    position: fixed;
    right: 15px;
    min-width: 25%;
    z-index: 99999;
}

#back-to-top {
    bottom: 10px;
}

.office-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 1px;
    border: 2px solid #ccc;
}

.table,
.table th {
    border: 1px solid rgba(108, 122, 137, 0.5);
}

table thead tr th,
table thead tr td {
    text-align: center;
    font-size: 12px;
}

table tbody tr th,
table tbody tr td,
table tbody tr td a {
    font-size: 12px !important;
}

table tbody tr td a {
    padding: 5px !important;
}

.table > :not(caption) > * > * {
    padding: 0.5rem 0.25rem;
}

.tr-pointer tr {
    cursor: pointer;
}

.text-bold {
    font-weight: 600;
}

.table-responsive,
.table-responsive .table {
    min-width: 100%;
}

.display-block,
.btn-block {
    display: block;
    width: 100%;
}

.btn-xs {
    padding: 0.15rem !important;
}

@media print {
    .no-print {
        display: none;
    }
}

.text-link {
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.bg-danger-light {
    background-color: #ffd1d1 !important;
}

.bg-incomplete {
    background-color: #ffd095 !important;
}

.display-none,
.onlyExcel {
    display: none;
}

/* Sidebar base */
.app-menu {
    background: linear-gradient(180deg, #1f3c88 0%, #243f9e 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Logo area – match sidebar background */
.navbar-brand-box {
    background: linear-gradient(180deg, #163870fa 0%, #163870 100%);
    padding: 1.2rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.navbar-brand-box img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.navbar-brand-box::after {
    content: "";
    display: block;
    width: 90%;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
}

.navbar-brand-box img:hover {
    transform: scale(1.05);
}

.menu-title {
    color: #cdd7ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 1.25rem 0 0.5rem;
    padding-left: 1.2rem;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: #e6ecff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.25s ease;
    font-weight: 500;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 10px;
    color: #b8c6ff;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.navbar-nav .nav-link:hover i {
    color: #ffffff;
}

.navbar-nav .nav-link.active,
.navbar-nav .menu-link.active {
    background: #ffffff;
    color: #1f3c88 !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active i {
    color: #c4161c;
}

.menu-dropdown {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    margin: 5px 10px;
    padding: 5px 0;
}

.menu-dropdown .nav-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

/* ===== Topbar styling (Gov style) ===== */
#page-topbar {
    background:
        linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
        url("assets/images/header-bg.png");
}

/* 

/* Header height & alignment */
#page-topbar .navbar-header {
    min-height: 70px;
}

/* Center title */
.header-title {
    line-height: 1.2;
}

.header-title .app-title {
    font-size: 1.25rem;
    color: #1f3c88;
    letter-spacing: 0.4px;
}

.header-title .app-office {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Hamburger polish */
.topnav-hamburger {
    border-radius: 8px;
}

.topnav-hamburger:hover {
    background: rgba(31, 60, 136, 0.08);
}

/* Logo spacing */
.navbar-brand-box img {
    max-height: 110px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header-title {
        display: none;
    }
}

.info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 10px;
    height: 100%;
    transition: all 0.2s ease-in-out;
}

.info-box:hover {
    background: #eef2f7;
    transform: translateY(-2px);
}

.info-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f3c88;
    word-break: break-word;
}

.file-box .info-value {
    color: #c4161c;
}

.file-link {
    text-decoration: none;
    font-weight: 600;
}

.file-link:hover {
    text-decoration: underline;
}

:root {
    --blue-dark: #1f3c88;
    --blue-light: #eaf1ff;
    --blue-mid: #3b6fd8;
    --red-accent: #c4161c;
    --text-dark: #1f2937;
}

body {
    background: linear-gradient(135deg, #e6edff 0%, #f8f9ff 40%, #ffecec 100%);
}

/* Left branding panel */
.auth-one-bg {
    background: #163870;
    /* Dark blue */
    color: #ffffff;
    position: relative;
}

.auth-one-bg::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #c4161c;
}

/* Background logo */
.auth-one-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/images/logo.png") no-repeat center;
    background-size: 80%;
    /* ↓ reduce from 100% */
    opacity: 0.07;
    z-index: 1;
}

/* Keep content above background */
.auth-one-bg > * {
    position: relative;
    z-index: 3;
}

.auth-office h1 {
    font-weight: 800;
    letter-spacing: 1px;
}

.auth-office h3,
.auth-office h5 {
    color: #e6ecff;
}

.auth-divider {
    width: 80%;
    height: 4px;
    background: var(--red-accent);
    border-radius: 10px;
    margin: 12px 0;
}

.login-notices p {
    font-size: 0.95rem;
    opacity: 0.95;
}

.auth-card {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.footer {
    color: var(--blue-dark);
    opacity: 0.85;
}

.truncate-text {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}
