/* 武汉警官职业学院学生请销假申请表 - 移动端样式 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html.font-medium {
  font-size: 14px;
}

html.font-small {
  font-size: 12px;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, sans-serif;
  background-color: #F0F0F0;
  line-height: 1.5;
  color: #333;
}

/* 手机容器 - 模拟手机屏幕 */
.mobile-container {
  max-width: 375px;
  margin: 0 auto;
  background-color: #F0F0F0;
  min-height: 100vh;
  position: relative;
}

/* 在大屏幕上居中显示 */
@media (min-width: 376px) {
  body {
    background-color: #e0e0e0;
    padding: 20px 0;
  }
  
  .mobile-container {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
  }
}

/* 网页导航栏 - 浅灰色背景 */
.web-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: #f5f5f5;
}

.navbar-left,
.navbar-right {
  flex-shrink: 0;
  width: 30px;
}

/* 关闭按钮 - 深灰色× */
.close-icon {
  font-size: 22px;
  color: #666;
  cursor: pointer;
  font-weight: 300;
}

/* 右侧三个点 */
.menu-icon {
  font-size: 18px;
  color: #666;
  cursor: pointer;
  letter-spacing: 2px;
}

.navbar-title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  font-weight: bold;
}

.navbar-domain {
  background-color: #f5f5f5;
  padding: 4px 12px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

/* 功能按钮栏 - 蓝色背景 */
.action-bar {
  background-color: #428EFF;
  padding: 8px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 左侧按钮组 */
.action-left {
  display: flex;
  gap: 5px;
}

/* 按钮样式 - 白底、深灰边框、圆角 */
.action-btn {
  padding: 5px 8px;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}

/* 关闭按钮 - 白底红字 */
.action-btn.close-red {
  background-color: #fff;
  border: 1px solid #999;
  color: #d9534f;
}

.action-btn:active {
  opacity: 0.8;
}

/* 表单容器 */
.form-container {
  background-color: #fff;
  padding-top: 8px;
}

/* 字体控制 - 右上角 */
.font-control {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  padding: 6px 8px 8px;
  font-size: 12px;
}

.font-label {
  color: #333;
}

/* 大中小都是蓝色字体 */
.font-option {
  color: #428EFF;
  text-decoration: none;
  padding: 0 2px;
}

/* 大 - 大字号 */
.font-option.font-large {
  font-size: 14px;
}

/* 中 - 中字号 */
.font-option.font-medium {
  font-size: 12px;
}

/* 小 - 小字号 */
.font-option.font-small {
  font-size: 10px;
}

.font-option:hover {
  text-decoration: underline;
}

/* 表单区块 */
.form-section {
  background-color: #fff;
  margin-bottom: 10px;
}

/* 区块标题 - 蓝色背景、白色粗体，字体缩小，延伸到两边 */
.section-header {
  background-color: #428EFF;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: bold;
  width: 100%;
}

.section-content {
  padding: 0;
}

/* 表单行 - 两列布局，线延伸到两边 */
.form-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding: 6px 0;
  min-height: 36px;
}

.form-row:last-child {
  border-bottom: none;
}

/* 标签 - 左列 */
.form-label {
  width: 85px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  padding-top: 6px;
  text-align: left;
  padding-right: 2px;
  padding-left: 8px;
  line-height: 1.3;
}

/* 两行标签 - 第二行靠左 */
.form-label.two-line {
  padding-top: 4px;
  line-height: 1.3;
}

/* 内容 - 右列 */
.form-value {
  flex: 1;
  font-size: 11px;
  color: #333;
  background-color: #F0F0F0;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
  min-height: 28px;
  font-weight: bold;
  margin-right: 8px;
}

/* 请假天数 - 数字靠右 */
.form-value.align-right {
  text-align: right;
}

/* 单选按钮行 */
.radio-row {
  flex-wrap: wrap;
  align-items: flex-start;
}

.radio-row .form-label {
  padding-top: 4px;
}

/* 单选按钮 - 竖向排列 */
.radio-options {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.radio-options.vertical {
  flex-direction: column;
  gap: 4px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: #999;
}

/* 选中状态 - 灰色 */
.radio-item.checked input[type="radio"] {
  accent-color: #666;
}

.radio-text {
  line-height: 1;
}

/* 请假说明 - 上下布局 */
.textarea-row {
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 0;
}

.textarea-row .form-label {
  padding-top: 2px;
  margin-bottom: 4px;
  padding-left: 8px;
}

.form-textarea {
  width: calc(100% - 16px);
  margin: 0 8px;
  font-size: 11px;
  color: #333;
  background-color: #F0F0F0;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
  line-height: 1.5;
  min-height: 60px;
  font-weight: bold;
}

/* 表格内容区域 */
.table-content {
  padding: 8px;
}

/* 附件表格 - 有外边框 */
.attachment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
  border: 1px solid #ddd;
}

.attachment-table th,
.attachment-table td {
  padding: 4px 2px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #ddd;
}

.attachment-table th:last-child,
.attachment-table td:last-child {
  border-right: none;
}

.attachment-table th {
  background-color: #f8f8f8;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
}

/* 序号列 - 竖着写，缩小宽度 */
.attachment-table th.seq-col {
  line-height: 1.2;
  width: 8%;
}

/* 星号 - 黑色字体 */
.attachment-table td.seq-star {
  color: #333;
  font-size: 11px;
}

.attachment-table th:nth-child(1),
.attachment-table td:nth-child(1) {
  width: 8%;
}

.attachment-table th:nth-child(2),
.attachment-table td:nth-child(2) {
  width: 28%;
}

.attachment-table th:nth-child(3),
.attachment-table td:nth-child(3) {
  width: 14%;
}

.attachment-table th:nth-child(4),
.attachment-table td:nth-child(4) {
  width: 18%;
}

.attachment-table th:nth-child(5),
.attachment-table td:nth-child(5) {
  width: 15%;
}

.attachment-table th:nth-child(6),
.attachment-table td:nth-child(6) {
  width: 15%;
}

.attachment-table tbody tr {
  height: 24px;
}

.attachment-table tbody td {
  background-color: #fff;
}

/* 审核组件 - 淡灰色实线边框 */
.approval-box {
  display: flex;
  border: 1px solid #ccc;
  margin: 8px;
}

/* 左侧标签 - 白底 */
.approval-label {
  width: 85px;
  flex-shrink: 0;
  background-color: #fff;
  padding: 8px;
  font-size: 13px;
  color: #333;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #ccc;
}

/* 右侧内容 - 白底 */
.approval-content {
  flex: 1;
  background-color: #fff;
  padding: 8px 10px;
}

/* 绿色同意 - 不加粗 */
.approved-text {
  color: #22bb33;
  font-size: 13px;
  display: block;
}

.approver-text {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* 响应式调整 */
@media (max-width: 320px) {
  .action-btn {
    font-size: 11px;
    padding: 4px 6px;
  }
  
  .form-label {
    width: 75px;
    font-size: 12px;
  }
  
  .form-value,
  .form-textarea {
    font-size: 10px;
  }
  
  .approval-label {
    width: 70px;
  }
}
