/* ============================================================
 * 华首集团 OA —— 全局响应式样式（2026-10-04）
 * 目标：字号 / 间距随屏幕分辨率自动缩放，保证不同分辨率下的
 *       整体视觉效果与功能可用性（既不在小屏溢出，也不在大屏过小）。
 * 说明：Bootstrap 5 未设置 html 根字号，其排版与组件尺寸均基于 rem，
 *       因此只要缩放根字号，整站的文字、控件、留白会等比跟随。
 * 加载顺序：必须放在 bootstrap.min.css 之后（同权重后者生效）。
 * ============================================================ */

/* 1) 根字号线性缩放：≈1366p→15.7px · 1440p→16px · 1920p→17.7px · 4K 封顶 19px，
 *    小屏下限 14px（再小影响可读性）。 */
html {
    font-size: clamp(14px, calc(0.36vw + 10.8px), 19px);
}

body {
    font-size: 1rem;
    line-height: 1.5;
}

/* 2) 大屏放宽内容容器：4K / 2K 屏幕上内容不再挤在中间一条，利用横向空间 */
@media (min-width: 1600px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1500px;
    }
}

@media (min-width: 2000px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1760px;
    }
}

/* 3) 表格：窄屏保持列不换行挤压，改为容器内横向滚动 */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
    .table-responsive > .table {
        min-width: 720px;
    }
}

/* 4) 小屏（手机 / 平板竖屏）：收敛卡片留白与页面上下间距 */
@media (max-width: 576px) {
    .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

/* 5) 表单控件字号显式跟随根字号（避免移动端聚焦时被浏览器自动放大） */
.form-control,
.form-select {
    font-size: 1rem;
}

/* 6) 打印 / 导出时隐藏导航栏，避免占用版面 */
@media print {
    nav.navbar {
        display: none !important;
    }

    .btn {
        display: none !important;
    }
}

/* ============================================================
   ICP 备案号页脚（2026-10-16 改版）
   由「position:fixed 贴底浮框」改为「随页面内容排布的普通块」，
   居中嵌在页面底部，不再悬浮遮挡正文与按钮。打印时隐藏。
   ============================================================ */
.oa-icp {
    margin: 22px auto 14px;
    padding: 0 16px;
    max-width: 760px;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: #8a99ab;
}
.oa-icp a {
    color: #7a8797;
    text-decoration: none;
}
.oa-icp a:hover { color: #185FA5; text-decoration: underline; }

@media print {
    .oa-icp { display: none !important; }
}
