/* 学生请假页（xq- 前缀，勿与全局类混用）
   两站共用：04 由 App.razor、07 由 TXZXAuto.Client/wwwroot/index.html 静态引入 _content 路径。
   不用 .razor.css 隔离（04 宿主仅认指纹文件名，bundle 逻辑名 404），改完 bump 两站引用的 ?var= */
.xq-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.xq-active-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

.xq-active-toggle input {
    margin: 0;
}

.xq-top {
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.xq-countbar {
    padding: 8px 12px 0;
    font-size: 13px;
    color: #888;
}

.xq-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 原 space-between：会把右侧按钮顶到右上角，被 MainLayout 的全局悬浮按钮遮挡 */
    flex-wrap: wrap;
    gap: 8px;
    /* 右上角为宿主全局悬浮按钮（返回首页/全屏，position:fixed; z-index:2000）预留，勿在本行右侧放控件 */
    padding-right: 2px;
}

.xq-filter {
    display: flex;
    align-items: center;
}

/* 请假入口在左端，永远避开宿主右上角常驻的悬浮按钮区（约 72×40px）；导出按钮并排其右 */
.xq-add-wrap {
    flex: 0 0 auto;
    margin-left: 0;   /* 原 auto：把它推到了最右侧被遮挡 */
    margin-right: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xq-state {
    text-align: center;
    color: #999;
    padding: 48px 0;
    font-size: 15px;
}

.xq-list {
    font-size: 0;
}

.xq-item {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 100%;
    padding: 0 10px 10px 0;
    font-size: 17px;   /* 2026-10-10 用户定：卡片文字整体放大（约 1.2 倍），按钮字号不变 */
}

.xq-item-inner {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px 12px;
}

@media (min-width: 768px) {
    .xq-item { width: 50%; }
}

@media (min-width: 1200px) {
    .xq-item { width: 25%; }
}

.xq-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.xq-who {
    font-size: 18px;
    font-weight: 600;
    margin-right: 8px;
    word-break: break-all;
}

.xq-time {
    font-size: 17px;
    color: #444;
    margin-bottom: 4px;
}

.xq-pager {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.xq-badge {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    padding: 2px 10px;
    border-radius: 999px;
}

.xq-badge-ok {
    color: #1a7f37;
    background: #e3f5e9;
}

.xq-badge-wait {
    color: #b25e09;
    background: #fdf1e0;
}

.xq-shiyou {
    font-size: 18px;
    margin-bottom: 6px;
    word-break: break-all;
}

.xq-meta {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
}

.xq-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.xq-audit {
    display: flex;
    gap: 6px;
    flex: none;
}

.xq-audit-btn {
    border: none;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.xq-audit-ok {
    background: #1a7f37;
    color: #fff;
}

/* 蓝色按钮（销假等中性确认动作），色板蓝 #5CA5CE */
.xq-audit-blue {
    background: #5CA5CE;
    color: #fff;
}

.xq-audit-no {
    background: #fff;
    color: #b3261e;
    border: 1px solid #d9a0a0;
}

.xq-badge-no {
    color: #b3261e;
    background: #fdeceb;
}

.xq-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.xq-modal {
    width: 92vw;
    max-width: 420px;
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px 16px;
}

.xq-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.xq-close {
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.xq-field {
    display: block;
    margin-bottom: 12px;
}

.xq-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.xq-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.xq-textarea {
    resize: vertical;
}

/* 自绘时间下拉行（替代原生 datetime-local，WebView 原生弹窗月份语言/按钮布局不可控） */
.xq-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.xq-time-row .xq-sel-date {
    flex: 1 1 auto;
    min-width: 0;
}

.xq-time-row .xq-sel-hm {
    flex: 0 0 76px;
    width: 76px;
    text-align: center;
    text-align-last: center;
    padding: 8px 4px;
}

.xq-colon {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.xq-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.xq-btn {
    border: 1px solid #ccc;
    background: #fff;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.xq-btn-primary {
    border: none;
    background: #2f7bff;
    color: #fff;
}

/* ===== 病历照片（拍照上传/缩略图/全屏查看） ===== */
.xq-opt {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.xq-bingli {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xq-bl-add {
    width: 64px;
    height: 64px;
    border: 1px dashed #b6c6d8;
    border-radius: 10px;
    background: #f6f9fc;
    color: #7a8ba0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .xq-bl-add:active {
        background: #eaf1f8;
    }

.xq-bl-busy {
    cursor: default;
    color: #62ade8;
}

.xq-bl-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

    .xq-bl-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        cursor: zoom-in;
    }

.xq-bl-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, .65);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.xq-bl-tip {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.xq-bingli-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 2px;
}

.xq-bingli-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    cursor: zoom-in;
    background: #f1f5f9;
}

.xq-viewer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, .92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: zoom-out;
}

    .xq-viewer img {
        max-width: 100%;
        max-height: 86vh;
        object-fit: contain;
        border-radius: 6px;
    }

.xq-viewer-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* 上传中隐藏拍照格（input须常驻DOM，仅视觉隐藏） */
.xq-bl-hide {
    display: none;
}

/* 导出弹框消息行 */
.xq-exp-msg { color: #1F3A5F; font-weight: 500; }

/* 病历照片来源选择面板（自弹，统一各手机行为） */
.xq-bl-sheet { position: fixed; inset: 0; z-index: 3000; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .18s; }
.xq-bl-sheet.xq-bl-sheet-show { opacity: 1; pointer-events: auto; }
.xq-bl-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #f4f7fa; border-radius: 14px 14px 0 0; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .2s ease-out; }
.xq-bl-sheet-show .xq-bl-sheet-panel { transform: translateY(0); }
.xq-bl-sheet-title { text-align: center; font-size: 12px; color: #94a3b8; padding: 4px 0 10px; }
.xq-bl-sheet-item { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; margin-bottom: 10px; border: none; border-radius: 10px; background: #fff; color: #1F3A5F; font-size: 15px; font-weight: 500; }
.xq-bl-sheet-item:active { background: #e8eff6; }
.xq-bl-sheet-item i { color: #5CA5CE; font-size: 16px; }
.xq-bl-sheet-cancel { display: block; width: 100%; padding: 13px; border: none; border-radius: 10px; background: #fff; color: #64748b; font-size: 15px; }
.xq-bl-sheet-cancel:active { background: #e8eff6; }

/* 导出范围单选行 */
.xq-scope-row { display: flex; gap: 18px; padding: 4px 2px; }
.xq-scope-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #1F3A5F; cursor: pointer; }
.xq-scope-item input[type="radio"] { accent-color: #5CA5CE; width: 16px; height: 16px; margin: 0; }

/* 病历上传隐藏 input：不能用 display:none（微信 X5 等 WebView 会拦截程序化 click，选择器打不开），
   必须视觉隐藏但真实存在 */
.xq-bl-file { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; margin: 0; }

/* 审批步骤条（学生提交 → 班主任 → 音乐班组长 → 销假）：节点+连线元素布局，首尾节点顶到卡片左右边缘 */
.xq-steps { display: flex; align-items: flex-start; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e5e9f0; }
.xq-step { display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; }
.xq-line { flex: 1 1 0; min-width: 10px; height: 2px; margin-top: 5px; background: #e5e9f0; }
.xq-line.done { background: #34a853; }
.xq-line.fail { background: #e05252; }
.xq-step-dot { width: 12px; height: 12px; border-radius: 50%; background: #d3d9e2; z-index: 1; }
.xq-step.done .xq-step-dot { background: #34a853; }
.xq-step.fail .xq-step-dot { background: #e05252; }
.xq-step.wait .xq-step-dot { background: #F5A623; }
.xq-step-label { margin-top: 4px; font-size: 13px; color: #888; text-align: center; line-height: 1.3; padding: 0 2px; word-break: break-all; }
.xq-step.done .xq-step-label { color: #1a7f37; }
.xq-step.fail .xq-step-label { color: #b3261e; }
.xq-step.wait .xq-step-label { color: #b25e09; }
