@charset "utf-8";

/* ============================================================
   ODManage Components
   按钮、表单面板、数据表格、弹窗、上传、分页等通用组件
   ============================================================ */

/* ====================
   按钮
   ==================== */
.btnctx {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.btnctx .button {
    height: 35px;
    width: 80px;
    color: white;
    background-color: var(--color-primary);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btnctx .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(62, 49, 131, 0.25);
}

.btn_green {
    width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: var(--color-success);
    line-height: 26px;
    color: white;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-block;
    text-align: center;
    height: 36px;
    transition: all var(--transition-fast);
}

.btn_green:hover {
    background-color: var(--color-success-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.3);
}

.btn_white {
    width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: var(--color-bg-white);
    line-height: 26px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--color-primary);
    display: inline-block;
    height: 36px;
    transition: all var(--transition-fast);
}

.btn_white:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(62, 49, 131, 0.15);
}

.btn_cyan {
    width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: var(--color-info);
    line-height: 26px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    color: #ffffff;
    display: inline-block;
    height: 36px;
    transition: all var(--transition-fast);
}

.btn_cyan:hover {
    background-color: var(--color-info-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(91, 192, 222, 0.3);
}

.btn_blue {
    min-width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: var(--color-primary);
    line-height: 26px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    color: #ffffff;
    display: inline-block;
    height: 36px;
    transition: all var(--transition-fast);
}

.btn_blue:hover {
    background-color: var(--color-link-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(62, 49, 131, 0.25);
}

.btn_orange {
    width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: var(--color-warning);
    line-height: 26px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    color: #ffffff;
    display: inline-block;
    height: 36px;
    transition: all var(--transition-fast);
}

.btn_orange:hover {
    background-color: var(--color-warning-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(240, 173, 78, 0.3);
}

.btn_red {
    width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: var(--color-danger);
    line-height: 26px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    color: #ffffff;
    display: inline-block;
    height: 36px;
    transition: all var(--transition-fast);
}

.btn_red:hover {
    background-color: var(--color-danger-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(217, 83, 79, 0.3);
}

.btn_wait {
    width: 120px;
    margin: 3px;
    padding: 5px;
    background-color: #ebebeb;
    line-height: 26px;
    border: 1px solid #9c9c9c;
    cursor: wait !important;
    border-radius: var(--radius-sm);
    text-align: center;
    color: #5c5c5c;
    display: inline-block;
    height: 36px;
}

.btn_login {
    position: absolute;
    right: 5px;
    top: 2px;
    height: 35px;
    width: 100px;
    border: 1px solid green;
    background: green;
    border-radius: var(--radius-sm);
    color: white;
}

/* ====================
   表单面板 (.panel_form)
   ==================== */
.panel_form {
    border-radius: var(--radius-xl);
    border: 1px solid #dde1ea;
    background: var(--color-bg-white);
    box-shadow: 0 2px 12px rgba(45, 37, 112, 0.08);
}

.panel_form .header {
    border-bottom: 2px solid #e2e5eb;
    line-height: 44px;
    height: 44px;
    background: var(--color-bg-table-header);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 0 var(--spacing-md);
}

.panel_form .header .title {
    height: 44px;
    line-height: 44px;
    margin-left: 0;
    color: var(--color-primary);
    float: left;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding-left: 14px;
}

.panel_form .header .title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

.panel_form .header .tip {
    float: left;
    height: 40px;
    line-height: 40px;
    color: #7e7e7e;
    margin-left: 40px;
}

.panel_form .header .tip .required {
    text-align: center;
    color: red;
    width: 12px;
    display: inline;
    font-weight: bolder;
}

.panel_form .header .edit {
    height: 20px;
    width: 20px;
    margin: 10px;
    float: right;
    color: white;
    cursor: pointer;
}

.panel_form .header .edit.et_show {
    background: url("../images/ic_edit_show.png") center no-repeat;
    background-size: cover;
}

.panel_form .header .edit.et_hide {
    background: url("../images/ic_edit_hide.png") center no-repeat;
    background-size: cover;
}

.panel_form .btnctx {
    line-height: 40px;
    height: 40px;
}

/* 面板内表�?*/
.panel_form .table {
    width: 100%;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.panel_form .table tr:hover {
    background: var(--color-bg-hover);
}

.panel_form .table tr th {
    background: var(--color-bg-table-header);
    font-weight: 600;
    color: #374151;
    line-height: 2.7rem;
    height: 2.7rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.panel_form .table tr td {
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    line-height: 2.2rem;
    height: 2.2rem;
    padding: 4px 10px;
    vertical-align: middle;
}

.panel_form .table tr td:nth-child(1),
.panel_form .table tr td:nth-child(3),
.panel_form .table tr td:nth-child(5) {
    color: var(--color-primary);
    background: var(--color-label-bg);
    font-weight: 500;
    white-space: nowrap;
}

.panel_form .table tr td.title {
    height: 3rem;
    line-height: 3rem;
    color: var(--color-primary);
    font-weight: bold;
    text-align: center;
    font-size: var(--font-size-xl);
    background: var(--color-primary-hover);
    border-bottom: 2px solid var(--color-primary);
    position: relative;
}

/* 环节标题栏内的修改按�?*/
.btn_edit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 16px 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(62, 49, 131, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 20px;
}

.btn_edit::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%233E3183'%3E%3Cpath d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708l-9.5 9.5a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l9.5-9.5zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5z'/%3E%3C/svg%3E");
}

.btn_edit:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(62, 49, 131, 0.3);
    text-decoration: none;
}

.btn_edit:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708l-9.5 9.5a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l9.5-9.5zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5z'/%3E%3C/svg%3E");
}

.panel_form .table tr td.key {
    text-align: center;
}

.panel_form .table tr td.value {
    text-align: left;
}

/* 表格内表单元�?*/
.panel_form .table tr td input[type="text"] {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    padding: 5px;
    line-height: 1.25rem;
    margin: 3px;
    appearance: none;
    max-height: 2rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.panel_form .table tr td textarea {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    padding: 5px;
    margin: 3px;
    appearance: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.panel_form .table tr td select {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    line-height: 20px;
    padding: 4px 28px 4px 6px;
    margin: 3px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 8px center;
    background-origin: padding-box;
    background-size: 12px;
    background-repeat: no-repeat;
    /* 使用 SVG 绘制更美观的下拉箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-color: white;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    height: 32px;
    box-sizing: border-box;
    vertical-align: middle;
}

.panel_form .table tr td select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233E3183' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.panel_form .table tr td select option {
    line-height: 30px;
    height: 30px;
}

/* 表格内输入框聚焦�?*/
.panel_form .table tr td input[type="text"]:focus,
.panel_form .table tr td textarea:focus,
.panel_form .table tr td select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    outline: none;
}

.panel_form .table tr td .required {
    text-align: center;
    color: red;
    width: 12px;
    display: inline;
    font-weight: bolder;
}

.panel_form .table tr td .cate {
    text-align: center;
    display: inline;
    font-weight: bolder;
    height: 30px;
    margin: 2px 0;
    float: left;
}

.panel_form .table tr td .unit {
    text-align: center;
    color: #2c83d1;
    width: 12px;
    display: inline;
}

.panel_form .table tr td .tip {
    text-align: center;
    color: #9d9d9d;
    line-height: 40px;
    height: 40px;
    float: left;
}

/* 面板内单选按�?*/
/* JSF radio/checkbox 组件（渲染为嵌套table，需重置继承样式�?*/
.radio,
table.radio {
    display: inline;
    float: left;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

.radio tr,
table.radio tr {
    background: transparent !important;
    border: none !important;
}

.radio tr td,
table.radio tr td {
    line-height: 2.5rem;
    height: 2.5rem;
    border: none !important;
    background: transparent !important;
    min-width: 85px;
    color: #474747;
    padding: 0 4px;
    vertical-align: middle;
}

.radio.w200 tr td,
table.radio.w200 tr td {
    min-width: 200px;
}

.radio.w150 tr td,
table.radio.w150 tr td {
    min-width: 150px;
}

.radio tr td input,
table.radio tr td input {
    vertical-align: middle;
    margin: 0;
}

.radio tr td label,
table.radio tr td label {
    vertical-align: middle;
    margin-left: 4px;
    cursor: pointer;
}

/* 复选框组自动换行样式（用于审核意见等长文本选项�?*/
.radio-wrap,
table.radio-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    float: none;
    border: none !important;
    background: transparent !important;
}

.radio-wrap tr,
table.radio-wrap tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: transparent !important;
    border: none !important;
}

.radio-wrap tr td,
table.radio-wrap tr td {
    display: inline-flex;
    align-items: center;
    line-height: 1.8rem;
    height: auto;
    min-width: auto;
    white-space: nowrap;
    border: none !important;
    background: transparent !important;
    padding: 4px 8px;
}

.radio-wrap tr td input,
table.radio-wrap tr td input {
    vertical-align: middle;
    margin: 0;
}

.radio-wrap tr td label,
table.radio-wrap tr td label {
    vertical-align: middle;
    margin-left: 4px;
    cursor: pointer;
}

/* h:selectOneMenu 使用 styleClass="radio" 渲染�?<select class="radio">，恢复边�?*/
select.radio {
    display: inline-block !important;
    border: 1px solid var(--color-border-input) !important;
    border-radius: var(--radius-sm);
    line-height: 20px;
    padding: 4px 28px 4px 6px;
    height: 32px;
    box-sizing: border-box;
    vertical-align: middle;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 8px center !important;
    background-origin: padding-box !important;
    background-size: 12px !important;
    background-repeat: no-repeat !important;
    /* 使用 SVG 绘制更美观的下拉箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

select.radio:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233E3183' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* 地址选择器需要浮动时，覆盖 float: none */
select.radio[id^="soProvinces"],
select.radio[id^="somProvinces"],
select.radio[id^="soAdProvinces"],
select.radio[id^="province"],
select.radio[id^="soCities"],
select.radio[id^="somCities"],
select.radio[id^="soAdCities"],
select.radio[id^="city"],
select.radio[id^="soDistricts"],
select.radio[id^="somDistricts"],
select.radio[id^="soAdDistricts"],
select.radio[id^="district"],
select.radio[id*="Provinces"],
select.radio[id*="Cities"],
select.radio[id*="Districts"],
select.radio[id*="province"],
select.radio[id*="city"],
select.radio[id*="district"] {
    float: left !important;
    margin-right: 8px;
}

select.radio:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    outline: none;
}

/* 面板内输入行 */
.panel_form .input_row {
    line-height: 44px;
    display: block;
    float: left;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    min-height: 44px;
}

.panel_form .input_row:last-of-type {
    border-bottom: none;
}

.panel_form .input_row .key {
    width: 120px;
    text-align: right;
    padding-right: 12px;
    float: left;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    font-weight: 500;
    box-sizing: border-box;
}

.panel_form .input_row .key .required {
    color: var(--color-danger);
    width: 12px;
    display: inline;
    font-weight: bolder;
    font-size: 14px;
    margin-right: 2px;
}

.panel_form .input_row .value {
    float: left;
    margin-left: 12px;
    color: var(--color-text-primary);
}

.panel_form .input_row .value input[type="text"],
.panel_form .input_row .value input[type="password"],
.panel_form .input_row .value input[type="date"] {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    line-height: 1.25rem;
    padding: 5px;
    margin: 3px;
    width: 180px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.panel_form .input_row .value textarea {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    line-height: 1.25rem;
    padding: 5px;
    margin: 3px;
    width: 400px;
    height: 80px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.panel_form .input_row .value input[type="checkbox"],
.panel_form .input_row .value input[type="radio"] {
    width: 13px;
    height: 13px;
}

.panel_form .input_row .value select {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    line-height: 20px;
    height: 32px;
    padding: 4px 28px 4px 6px;
    margin: 3px;
    font-family: inherit;
    box-sizing: border-box;
    vertical-align: middle;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    /* 使用 SVG 绘制更美观的下拉箭头 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 12px;
}

.panel_form .input_row .value select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233E3183' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 输入框聚焦态增�?*/
.panel_form .input_row .value input[type="text"]:focus,
.panel_form .input_row .value input[type="password"]:focus,
.panel_form .input_row .value input[type="date"]:focus,
.panel_form .input_row .value textarea:focus,
.panel_form .input_row .value select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    outline: none;
}

/* 地址选择控件样式 - 修复顺序和箭头问题 */
/* 省选择器 - 多种可能的ID命名 */
.panel_form .input_row .value select[id^="soProvinces"],
.panel_form .input_row .value select[id^="somProvinces"],
.panel_form .input_row .value select[id^="soAdProvinces"],
.panel_form .input_row .value select[id^="province"],
.panel_form .input_row .value select[id^="selProvince"],
.panel_form .input_row .value select[id^="txtProvince"] {
    float: left;
    margin-right: 8px;
}

/* 市选择器 - 多种可能的ID命名 */
.panel_form .input_row .value select[id^="soCities"],
.panel_form .input_row .value select[id^="somCities"],
.panel_form .input_row .value select[id^="soAdCities"],
.panel_form .input_row .value select[id^="city"],
.panel_form .input_row .value select[id^="selCity"],
.panel_form .input_row .value select[id^="txtCity"] {
    float: left;
    margin-right: 8px;
}

/* 县/区选择器 - 多种可能的ID命名 */
.panel_form .input_row .value select[id^="soDistricts"],
.panel_form .input_row .value select[id^="somDistricts"],
.panel_form .input_row .value select[id^="soAdDistricts"],
.panel_form .input_row .value select[id^="district"],
.panel_form .input_row .value select[id^="selDistrict"],
.panel_form .input_row .value select[id^="txtDistrict"] {
    float: left;
    margin-right: 8px;
}

/* 详细地址输入框 - 多种可能的ID命名 */
.panel_form .input_row .value input[id^="txtAddress"],
.panel_form .input_row .value input[id^="txtLaAddress"],
.panel_form .input_row .value input[id^="txtNaAddress"],
.panel_form .input_row .value input[id^="txtkinAddress"],
.panel_form .input_row .value input[id^="txtFamilyAddress"],
.panel_form .input_row .value input[id^="address"],
.panel_form .input_row .value input[id^="txtAdAddress"] {
    float: left;
    clear: none;
}

/* 通用地址控件样式 - 作为后备方案 */
/* 为所有包含地址相关ID的select添加浮动 */
.panel_form .input_row .value select[id*="Provinces"],
.panel_form .input_row .value select[id*="Cities"],
.panel_form .input_row .value select[id*="Districts"],
.panel_form .input_row .value select[id*="province"],
.panel_form .input_row .value select[id*="city"],
.panel_form .input_row .value select[id*="district"] {
    float: left;
    margin-right: 8px;
}

/* 为所有包含地址相关ID的input添加浮动 */
.panel_form .input_row .value input[id*="Address"],
.panel_form .input_row .value input[id*="address"] {
    float: left;
    clear: none;
}

/* 确保地址控件容器正确显示 */
.panel_form .input_row .value::after {
    content: "";
    display: table;
    clear: both;
}

.panel_form .input_row .value .art_contents {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    margin: 3px;
    padding: 10px;
}

.panel_form .input_row .value .art_contents img {
    max-width: 100%;
}

.panel_form .input_row .tip {
    float: left;
    margin-left: 12px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.panel_form .input_row .validate {
    margin-left: 12px;
    color: var(--color-danger);
    float: left;
    background-color: var(--color-danger-bg);
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    line-height: 24px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 面板操作�?*/
.panel_form .opes {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 10px;
}

.panel_form .opes .button {
    height: 30px;
    width: 80px;
    color: white;
    background-color: var(--color-success);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.panel_form .opes .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.3);
}

.panel_form .opes .link {
    height: 30px;
    width: 80px;
    color: var(--color-primary);
    background-color: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.panel_form .opes .link:hover {
    background: var(--color-primary-hover);
}

.panel_form .txt_img_name {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    line-height: 1.25rem;
    padding: 5px;
    margin: 5px;
    width: 120px;
    text-align: center;
}

.panel_form .reject {
    width: 1265px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.panel_form .reject .rejhead {
    width: 1265px;
    height: 50px;
    background: url("../images/ic_panel_heading.png") 0 center no-repeat;
}

/* 搜索区表格（优化间距�?*/
.panel_form.bd0 {
    box-shadow: 0 2px 12px rgba(45, 37, 112, 0.08);
    border-radius: var(--radius-lg);
    background: var(--color-bg-white);
    border: 1px solid #dde1ea;
    margin-bottom: 8px;
    padding: 0;
    overflow: hidden;
}

.panel_form.bd0 > .table {
    border: none;
    margin: 0;
    width: 100%;
    border-right: 1px solid #d5d3e4;
}

.panel_form.bd0 > .table tr:hover { 
    background: #dfdcf0;
}

.panel_form.bd0 > .table tr th,
.panel_form.bd0 > .table tr td {
    border: 1px solid #d5d3e4;
    padding: 4px 6px;
    line-height: 32px;
    height: 32px;
}

/* 去掉与外框重叠的边线 */
.panel_form.bd0 > .table tr:first-child th,
.panel_form.bd0 > .table tr:first-child td {
    border-top: none;
}
.panel_form.bd0 > .table tr:last-child th,
.panel_form.bd0 > .table tr:last-child td {
    border-bottom: none;
}
.panel_form.bd0 > .table tr th:first-child,
.panel_form.bd0 > .table tr td:first-child {
    border-left: none;
}
.panel_form.bd0 > .table tr th:last-child,
.panel_form.bd0 > .table tr td:last-child {
    border-right: none;
}

.panel_form.bd0 > .table tr td.center {
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap; 
}

/* 按钮所在单元格：含 btn_green/btn_white �?td 白底 */
.panel_form.bd0 > .table tr td:has(.btn_green),
.panel_form.bd0 > .table tr td:has(.btn_white),
.panel_form.bd0 > .table tr td:has(.btn_blue),
.panel_form.bd0 > .table tr td:has(.button) {
    background: #ffffff;
}

.panel_form.bd0 > .table tr td input[type="text"],
.panel_form.bd0 > .table tr td select {
    height: 32px;
    line-height: 20px;
    padding: 4px 6px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 操作面板 */
.panel_opes {
    border-radius: var(--radius-lg);
    border: 1px solid #dde1ea;
    background: var(--color-label-bg);
    box-shadow: 0 2px 12px rgba(45, 37, 112, 0.08);
    line-height: 2.7rem;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* flex 布局�?.fr 靠右（替代失效的 float:right�?*/
.panel_opes > .fr {
    order: 99;
    margin-left: auto;
}

.panel_opes > .fr ~ .fr {
    margin-left: 0;
}

.panel_notice {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: 5px;
    min-height: 30px;
    line-height: 30px;
}

/* ====================
   数据表格 (.data_table)
   ==================== */
.data_table {
    width: 100%;
    margin-top: 16px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(45, 37, 112, 0.1);
    border: 1px solid #d5d3e4;
}
.data_table tr:has(th) {
    background: linear-gradient(90deg, #7b6ccfff 0%, #7b6ccfaa 100%);
}

.data_table tr:has(th):hover {
  	background: linear-gradient(180deg, #7b6ccfff 0%, #7b6ccfaa 100%);
}
	
.data_table th {
    background: linear-gradient(90deg, #7b6ccfff 0%, #7b6ccfaa 100%);
    line-height: 2.6rem;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid #d5d3e4;
    border-bottom: 2px solid #c8c5dc;
    color: #ffffff;
    font-size: var(--font-size-base);
    padding: 0 2px;
    letter-spacing: 0.5px;
}

.data_table th:last-child {
    border-right: none;
}

.data_table th a,
.ResultTable_Cell_Head {
    color: rgb(255, 255, 255);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 2px 0px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.data_table th a::after,
.ResultTable_Cell_Head::after {
    content: "\2195";
    font-size: 10px;
    color: var(--color-text-muted);
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.data_table th a:hover,
.ResultTable_Cell_Head:hover {
    color: var(--color-primary);
    background: var(--color-primary-hover);
}

.data_table th a:hover::after,
.ResultTable_Cell_Head:hover::after {
    opacity: 1;
    color: var(--color-primary);
}

.data_table tr {
    transition: background var(--transition-fast);
    background: #ffffff;
}

.data_table tr:hover {
    background: #dfdcf0;
}

.data_table tr td {
    border-bottom: 1px solid #d5d3e4;
    border-right: 1px solid #d5d3e4;
    padding: 7px;
    line-height: 2;
    font-size: var(--font-size-base);
}

.data_table tr td:last-child {
    border-right: none;
}

/* 操作列：�?.button/.link 的单元格不换�?*/
.data_table tr td:has(.button),
.data_table tr td:has(.link) {
    white-space: nowrap;
    text-align: center;
}

.data_table tr td .button {
    height: 2rem;
    margin: 0 2px;
    color: var(--color-primary);
    background-color: transparent;
    border: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px 8px;
    transition: all var(--transition-fast);
    display: inline-block;
    white-space: nowrap;
}

.data_table tr td .button:hover {
    background: var(--color-primary-hover);
    color: var(--color-primary-dark);
}

.data_table tr td .link {
    margin: 0 2px;
    color: var(--color-primary);
    background-color: transparent;
    border: transparent;
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.data_table tr td .link:hover {
    background: var(--color-primary-hover);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.data_table tr td.drag {
    background: url("../images/ic_cursor_move.png") center no-repeat;
}

.data_empty {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-empty-border);
    background: var(--color-empty-bg);
    color: var(--color-empty-text);
    padding: 32px 20px;
    line-height: 1.6;
    text-align: center;
    font-size: var(--font-size-md);
}

.data_empty::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Crect x='6' y='4' width='28' height='36' rx='3' fill='%23fff5e6' stroke='%23d4a14a' stroke-width='1.5'/%3E%3Cline x1='12' y1='14' x2='28' y2='14' stroke='%23e0c080' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='12' y1='20' x2='24' y2='20' stroke='%23e0c080' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='12' y1='26' x2='26' y2='26' stroke='%23e0c080' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='35' cy='33' r='9' fill='%23fffbf0' stroke='%23ad6800' stroke-width='2'/%3E%3Cline x1='41.3' y1='39.3' x2='46' y2='44' stroke='%23ad6800' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='32' y1='33' x2='38' y2='33' stroke='%23ad6800' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ====================
   分页
   ==================== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 12px 20px;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: fit-content;
    transition: box-shadow var(--transition-fast);
}

.pager:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pager input[type="submit"] {
    height: 34px;
    min-width: 64px;
    padding: 0 16px;
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    background: var(--color-bg-white);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    line-height: 32px;
}

.pager input[type="submit"]:hover:not(.disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(62, 49, 131, 0.15);
}

.pager input[type="hidden"] {
    display: none;
}

.pager input.disabled {
    color: var(--color-text-muted);
    background: var(--color-bg-page);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.pager .text {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    padding: 0 16px;
    white-space: nowrap;
    line-height: 34px;
}

/* 分页信息高亮 */
.pager .text .pager-info {
    color: var(--color-text-muted);
}

.pager .text .pager-count {
    color: var(--color-primary);
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(62, 49, 131, 0.08);
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.pager .text .pager-count.total {
    color: #fff;
    font-weight: 700;
    padding: 2px 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5a4fcf 100%);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(62, 49, 131, 0.2);
}

.pager .text .pager-current {
    color: var(--color-success);
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(92, 184, 92, 0.1);
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.pager .text .pager-pagesize {
    color: var(--color-info);
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(91, 192, 222, 0.1);
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

/* ====================
   弹窗/对话�?
   ==================== */
.popup_dialog {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: none;
}

.popup_dialog .content {
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    height: auto;
    transform: translateX(-50%) translateY(-55%);
    border-radius: 7px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.popup_dialog .content iframe {
    border: 0;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-white);
}

.popup_dialog .content .close,
.popup_panel .content .close {
    background-color: var(--color-danger);
    line-height: 26px;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    text-align: center;
    color: #ffffff;
    display: inline-block;
    margin: 10px;
    width: 28px;
    height: 28px;
    right: 0;
    top: 0;
    position: absolute;
}

.popup_panel {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.25);
    display: none;
    animation: popupOverlayIn 0.3s ease-out;
}

.popup_panel.hiding {
    animation: popupOverlayOut 0.25s ease-in forwards;
}

.popup_panel .content {
    width: 420px;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-xl);
    border: none;
    background-color: var(--color-bg-white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 32px 28px 24px;
    text-align: center;
    animation: popupSlideDown 0.35s cubic-bezier(0.22, 0.6, 0.35, 1);
}

.popup_panel.hiding .content {
    animation: popupSlideUp 0.25s ease-in forwards;
}

@keyframes popupSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -120%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes popupSlideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -120%);
    }
}

@keyframes popupOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupOverlayOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.popup_panel .content .close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 20px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: var(--radius-round);
    position: absolute;
    right: 8px;
    top: 8px;
    margin: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.popup_panel .content .close:hover {
    background: var(--color-bg-page);
    color: var(--color-text-primary);
}

.popup_panel .content .msg {
    width: auto;
    margin: 16px 0 28px;
    text-align: center;
    line-height: 1.7;
    color: var(--color-text-primary);
    font-size: 15px;
    word-break: break-word;
}

.popup_panel .content input {
    width: 140px;
    height: 38px;
    padding: 0;
    background: var(--color-primary);
    line-height: 38px;
    color: white;
    margin: 0 auto;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.popup_panel .content input:hover {
    background: var(--color-primary-light);
}

/* 弹出头部 */
.pop_header {
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid var(--color-border-input);
}

.pop_header .title {
    line-height: 50px;
    margin: 0 20px;
    float: left;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
}

/* 手机验证弹窗 */
.vd_phone {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.7);
}

.vd_phone .content {
    margin: 100px auto;
    width: 600px;
    height: 400px;
    text-align: center;
    position: relative;
}

.vd_phone .content .page {
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    background-color: #fcfcfc;
}

/* 选择弹窗 */
.cu_container {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgb(255 255 255 / 95%);
}

.cu_container .content {
    width: 500px;
    position: fixed;
    top: 28%;
    left: 50%;
    transform: translateX(-50%) translateY(-55%);
    border-radius: 7px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
    padding: 10px 0 20px 0;
}

.cu_container .content .title {
    height: 30px;
    vertical-align: middle;
    text-align: center;
    line-height: 30px;
    margin: 10px auto;
    color: #837f78;
}

.cu_container .content .choose_button {
    width: 50%;
    margin: 10px 25%;
    padding: 5px;
    background: var(--color-info);
    line-height: 28px;
    color: white;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-block;
    text-align: center;
}

/* ====================
   上传组件
   ==================== */
.upload_container {
    float: left;
    position: relative;
    border-radius: var(--radius-sm);
    background-color: #fcfcfc;
    height: 30px;
    width: 80px;
    margin: 5px;
}

.upload_container .upload_image {
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border: none;
}

.upload_container .upload_tip {
    cursor: pointer;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    border: none;
    text-align: center;
    padding: 15% 0;
    line-height: 20px;
}

.upload_container .upload_tip_img {
    cursor: pointer;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    border: none;
    text-align: center;
    padding: 15% 0;
    line-height: 20px;
}

.upload_container .upload_tip_doc {
    cursor: pointer;
    position: absolute;
    height: 30px;
    line-height: 30px;
    width: 80px;
    color: white;
    background-color: var(--color-success);
    border: 0;
    border-radius: var(--radius-sm);
    text-align: center;
}

.upload_container input[type="file"] {
    background: transparent;
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    overflow: hidden;
    line-height: 30px;
    width: 80px;
}

.upload_container .remove {
    position: absolute;
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-image: url("../images/ic_cursor_delete.png");
    cursor: pointer;
}

.upload_container .drag_trigger {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-image: url("../images/ic_cursor_move.png");
    cursor: move !important;
}

.upload_container .swfupload {
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* 视频容器 */
.upload_container .video_container {
    background-color: white;
    position: absolute;
    display: none;
    top: 0;
}

.upload_container .video_container .jp-video-270p {
    display: block;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

.upload_container .video_container .jp-video-270p .jp-play {
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    background-image: url("../images/ic_play.png");
    background-position: center;
    background-repeat: no-repeat;
}

.upload_container .video_container .jp-video-270p .jp-pause {
    display: block;
    width: 100%;
    height: 100%;
}

.upload_container .video_container .remove {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-image: url("../images/ic_tag_del.png");
    float: left;
    cursor: pointer;
}

/* 图片容器 */
.img_container {
    width: 80px;
    height: 80px;
    float: left;
    position: relative;
    border: 1px solid #9a9a9a;
    margin: 5px;
    border-radius: var(--radius-sm);
    box-sizing: content-box;
}

.img_container img {
    max-width: 80px;
    max-height: 80px;
}

.img_container .link {
    display: block;
    text-align: center;
    width: 80px;
    height: 80px;
    float: left;
}

.img_container .del {
    position: absolute;
    top: -10px;
    right: -10px;
    height: 24px;
    width: 24px;
    background-color: var(--color-danger);
    line-height: 1.25rem;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: 24px;
    text-align: center;
    color: #ffffff;
    display: inline-block;
}

/* ====================
   标签组件
   ==================== */
.pg_tags {
    width: 670px;
}

.tag {
    float: left;
    width: auto;
    background-color: #D9EDF7;
    border: 1px solid #BCE8F1;
    border-radius: var(--radius-sm);
    line-height: 20px;
    height: 20px;
    padding: 5px;
    margin: 3px;
}

.tag .txt {
    width: auto;
    height: 20px;
    float: left;
    overflow: hidden;
    text-align: center;
}

.tag .del {
    width: 20px;
    height: 20px;
    background-image: url("../images/ic_tag_del.png");
    float: left;
}

.selection_tags_container {
    width: 98%;
    height: 360px;
    overflow: scroll;
    margin: 10px;
}

.selection_tags_container .sel_tag {
    width: auto;
    padding: 5px 10px;
    line-height: 25px;
    height: 25px;
    overflow: hidden;
    text-align: center;
    float: left;
    background-color: var(--color-info);
    border: 1px solid var(--color-info);
    border-radius: var(--radius-sm);
    margin: 5px;
    color: white;
    cursor: pointer;
}

.selection_tags_container .sel_tag:hover {
    background-color: #39B3D7;
}

.selection_tags_container .sel_tag.active {
    background-color: #39B3D7;
    border: 1px solid #269ABC;
    color: orange;
}

/* ====================
   密码可见性图�?
   ==================== */
.eye_open {
    position: absolute;
    right: 10px;
    background-image: url(../images/eye_open.png);
    width: 20px;
    height: 15px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    top: 17px;
}

.eye_close {
    position: absolute;
    right: 10px;
    background-image: url(../images/eye_close.png);
    width: 20px;
    height: 15px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    top: 17px;
}

/* ====================
   标记图标
   ==================== */
.mark_on {
    margin: 0 auto;
    background-image: url(../images/mark-on.png);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

.mark_off {
    margin: 0 auto;
    background-image: url(../images/mark-off.png);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

/* ====================
   Well 组件
   ==================== */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.well blockquote {
    border-color: rgba(0, 0, 0, 0.15);
}

.well-large {
    padding: 24px;
    border-radius: var(--radius-md);
}

.well-small {
    padding: 9px;
    border-radius: 3px;
}

.well .btn_add {
    height: 30px;
    width: 80px;
    color: white;
    margin: 10px;
    background-color: var(--color-success);
    border: 0;
    border-radius: var(--radius-sm);
}

/* ====================
   Row-Fluid 网格
   ==================== */
.row-fluid {
    width: 100%;
}

.row-fluid::before,
.row-fluid::after {
    display: table;
    line-height: 0;
    content: "";
}

.row-fluid::after {
    clear: both;
}

.row-fluid [class*="span"] {
    display: block;
    float: left;
    width: 100%;
    min-height: 30px;
    margin-left: 2.127659574468085%;
    box-sizing: border-box;
}

.row-fluid [class*="span"]:first-child {
    margin-left: 0;
}

/* ====================
   jQuery UI 自动补全
   ==================== */
.ui-autocomplete {
    height: auto !important;
}

/* ====================
   区域选择表格
   ==================== */
table.sel_region {
    max-width: 100%;
    float: left;
}

table.sel_region tr td {
    float: left;
    width: 150px;
    overflow: hidden;
}

/* ====================
   正式文档样式
   ==================== */
.official tr td {
    border: 0 !important;
}

/* ====================
   处理中心卡片容器 (#divContainer)
   �?flexbox 替代 float + jQuery �?mr20/mb20
   ==================== */
#divContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; 
}

#divContainer > .panel_form {
    width: calc((100% - 48px) / 4) !important;
    margin: 0 !important;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-left-color var(--transition-normal);
    overflow: hidden;
    border-left: 4px solid transparent;
    border-top: 1px solid #dde1e8;
    border-right: 1px solid #dde1e8;
    border-bottom: 1px solid #dde1e8;
    float: none !important;
    min-height: 110px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

#divContainer > .panel_form:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* ---- 卡片6色循�?(hover左边�?+ 按钮背景) ---- */
#divContainer > .panel_form:nth-child(6n+1):hover { border-left-color: var(--card-color-1); }
#divContainer > .panel_form:nth-child(6n+2):hover { border-left-color: var(--card-color-2); }
#divContainer > .panel_form:nth-child(6n+3):hover { border-left-color: var(--card-color-3); }
#divContainer > .panel_form:nth-child(6n+4):hover { border-left-color: var(--card-color-4); }
#divContainer > .panel_form:nth-child(6n+5):hover { border-left-color: var(--card-color-5); }
#divContainer > .panel_form:nth-child(6n+6):hover { border-left-color: var(--card-color-6); }

#divContainer > .panel_form:nth-child(6n+1) .input_row .fr a,
#divContainer > .panel_form:nth-child(6n+1) .input_row .fr .bold { background: var(--card-btn-1); }
#divContainer > .panel_form:nth-child(6n+2) .input_row .fr a,
#divContainer > .panel_form:nth-child(6n+2) .input_row .fr .bold { background: var(--card-btn-2); }
#divContainer > .panel_form:nth-child(6n+3) .input_row .fr a,
#divContainer > .panel_form:nth-child(6n+3) .input_row .fr .bold { background: var(--card-btn-3); }
#divContainer > .panel_form:nth-child(6n+4) .input_row .fr a,
#divContainer > .panel_form:nth-child(6n+4) .input_row .fr .bold { background: var(--card-btn-4); }
#divContainer > .panel_form:nth-child(6n+5) .input_row .fr a,
#divContainer > .panel_form:nth-child(6n+5) .input_row .fr .bold { background: var(--card-btn-5); }
#divContainer > .panel_form:nth-child(6n+6) .input_row .fr a,
#divContainer > .panel_form:nth-child(6n+6) .input_row .fr .bold { background: var(--card-btn-6); }

/* 卡片头部 */
#divContainer > .panel_form > .header {
    background: var(--color-bg-table-header);
    border-bottom: 1px solid var(--color-border);
    height: 44px;
    line-height: 44px;
}

#divContainer > .panel_form > .header .title {
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: var(--color-text-primary);
}

/* 卡片内容�?- flex:1 填充header以下空间，垂直居�?*/
#divContainer > .panel_form .input_row {
    padding: 0 16px;
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    line-height: 24px;
    height: auto;
    min-height: 48px;
    flex: 1;
}

#divContainer > .panel_form .input_row .value {
    flex: 1;
    margin-left: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 24px;
}

#divContainer > .panel_form .input_row .value font.orange {
    color: var(--color-orange);
    font-size: 1.15em;
}

#divContainer > .panel_form .input_row .tip {
    display: none;
}

#divContainer > .panel_form .input_row .fr {
    flex-shrink: 0;
    float: none;
    margin-left: 12px;
}

/* 操作按钮样式 (默认色由nth-child覆盖) */
#divContainer > .panel_form .input_row .fr a,
#divContainer > .panel_form .input_row .fr .bold {
    display: inline-block;
    color: var(--color-bg-white) !important;
    background: var(--color-primary);
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

#divContainer > .panel_form .input_row .fr a:hover,
#divContainer > .panel_form .input_row .fr .bold:hover {
    opacity: 0.85;
    color: var(--color-bg-white) !important;
}

/* 卡片内的 clr div 隐藏 */
#divContainer > .panel_form > .clr {
    display: none;
}

/* 暂无事项面板 */
#divContainer > .panel_opes {
    width: 100%;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* ====================
   统计地图区域 (sta_land.xhtml)
   三张地图卡片横向排列
   ==================== */
.sta_land_maps {
    display: flex;
    gap: 20px;
    padding: 0;
}

.sta_land_maps > .sta_map_card {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid #dde1e8;
    overflow: hidden;
}

.sta_land_maps > .sta_map_card > .header {
    background: var(--color-bg-table-header);
    border-bottom: 1px solid var(--color-border);
    height: 44px;
    line-height: 44px;
}

.sta_land_maps > .sta_map_card > .header .title {
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: var(--color-text-primary);
    padding-left: 16px;
}

/* 地图容器固定尺寸居中 */
.sta_map_chart {
    width: 480px;
    height: 460px;
    margin: 10px auto;
}

.panel_form .stat_summary {
    padding: 12px 0;
}

.panel_form .stat_summary .per {
    width: 33%;
    float: left;
    text-align: center;
}

.panel_form .stat_summary .per .title {
    width: 100%;
    line-height: 30px;
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

.panel_form .stat_summary .per .content {
    width: 100%;
    float: left;
    line-height: 40px;
    font-size: 28px;
    font-weight: bold;
}

.panel_form .stat_summary .per .add_on {
    width: 100%;
    float: left;
    line-height: 25px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ========================================
   步骤条组�?(.cs-steps)
   ======================================== */
.cs-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 16px 8px;
    margin-bottom: 8px;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid #dde1ea;
    box-shadow: 0 1px 6px rgba(45, 37, 112, 0.06);
}

.cs-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 0;
}

.cs-step__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.cs-step__label {
    margin-top: 5px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    transition: color var(--transition-normal);
}

/* 连接�?*/
.cs-step::after {
    content: "";
    position: absolute;
    top: 11px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 2px;
    background: #d8dce6;
    z-index: 0;
}

.cs-step:last-child::after {
    display: none;
}

/* 已完成步�?*/
.cs-step.completed .cs-step__number {
    background: var(--color-success);
    color: #fff;
    border: 2px solid var(--color-success);
    font-size: 12px;
}

.cs-step.completed .cs-step__number::before {
    content: "\2713";
}

.cs-step.completed .cs-step__number span {
    display: none;
}

.cs-step.completed .cs-step__label {
    color: var(--color-success);
    font-weight: 500;
}

.cs-step.completed::after {
    background: var(--color-success);
}

/* 当前步骤 */
.cs-step.active .cs-step__number {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 2px rgba(62, 49, 131, 0.15);
}

.cs-step.active .cs-step__label {
    color: var(--color-primary);
    font-weight: 600;
}

/* 未开始步�?*/
.cs-step.pending .cs-step__number {
    background: var(--color-bg-white);
    color: var(--color-text-muted);
    border: 2px solid #d8dce6;
}

.cs-step.pending .cs-step__label {
    color: var(--color-text-muted);
}

/* ========================================
   步骤条分叉 (.cs-steps__fork / .cs-steps__row)
   ======================================== */
.cs-steps--has-subsidy > .cs-step {
    align-self: center;
}

/* 步骤6→fork: 弧线连接到fork竖线 */
.cs-steps--has-subsidy > .cs-step:nth-child(6)::after {
    display: block;
    top: 13px;
    height: 12px;
    background: none;
    border-right: 2px solid #d8dce6;
    border-top: 2px solid #d8dce6;
    border-radius: 0 6px 0 0;
}

/* Fork 容器 */
.cs-steps__fork {
    display: flex;
    flex-direction: column;
    flex: 4;
    min-width: 0;
    position: relative;
    padding-left: 8px;
    z-index: 10;
    background: white;
}

/* Fork 竖线 (::before) */
.cs-steps__fork::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 2px;
    height: 53px;
    background: #d8dce6;
}

/* 步骤6完成后，弧线、竖线和两行横线变绿 */
.cs-step:nth-child(6).completed::after {
    border-color: var(--color-success);
}
.cs-step:nth-child(6).completed ~ .cs-steps__fork::before,
.cs-step:nth-child(6).completed ~ .cs-steps__fork .cs-step:first-child::before {
    background: var(--color-success);
}

/* Fork 内每行 */
.cs-steps__row {
    display: flex;
    flex: 1;
    align-items: flex-start;
    position: relative;
}

/* 每行首步横线: 从竖线连到步骤圆（圆在步骤中央） */
.cs-steps__row .cs-step:first-child::before {
    content: "";
    display: block;
    position: absolute;
    left: -8px;
    top: 14px;
    width: calc(50% + 8px - 14px);
    height: 2px;
    background: #d8dce6;
    z-index: 1;
}


/* 完成状态横线变色 */
.cs-steps__row--case .cs-step.completed:first-child::before {
    background: var(--color-success);
}


/* Fork 内部步骤间连线，与横线对齐 */
.cs-steps__row .cs-step::after {
    top: 14px;
}
.cs-steps__row .cs-step:last-child::after {
    display: none;
}

/* 慰问金步骤 — 颜色沿用案例步骤，仅缩小字号 */
.cs-step--subsidy .cs-step__number {
    font-size: 10px;
}

/* 放弃/逾期 */
.cs-step--subsidy.cs-step.abandoned .cs-step__number {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
}
.cs-step--subsidy.cs-step.abandoned .cs-step__number span {
    display: none;
}
.cs-step--subsidy.cs-step.abandoned .cs-step__number::before {
    content: "\2717";
}
.cs-step--subsidy.cs-step.abandoned .cs-step__label {
    color: #d9534f;
}

/* ========================================
   弹窗类型增强 (.popup-success/error/warning/info)
   ======================================== */
.popup_icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background-size: 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.popup-success .popup_icon {
    background-color: #f0faf0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%235CB85C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.popup-success .popup_panel .content input,
.content.popup-success input {
    background: var(--color-success) !important;
}

.popup-success .popup_panel .content input:hover,
.content.popup-success input:hover {
    background: var(--color-success-hover) !important;
}

.popup-error .popup_icon {
    background-color: #fff2f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23D9534F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

.popup-error .popup_panel .content input,
.content.popup-error input {
    background: var(--color-danger) !important;
}

.popup-error .popup_panel .content input:hover,
.content.popup-error input:hover {
    background: var(--color-danger-hover) !important;
}

.popup-warning .popup_icon {
    background-color: #fffbf0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23F0AD4E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

.popup-warning .popup_panel .content input,
.content.popup-warning input {
    background: var(--color-warning) !important;
}

.popup-warning .popup_panel .content input:hover,
.content.popup-warning input:hover {
    background: var(--color-warning-hover) !important;
}

.popup-info .popup_icon {
    background-color: #f0f9ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%235BC0DE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

/* ========================================
   空白状态增�?
   ======================================== */
.data_empty__action {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    font-size: 13px;
    color: var(--color-primary);
    background: var(--color-bg-white);
    border: 1px solid rgba(62, 49, 131, 0.3);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.data_empty__action:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    text-decoration: none;
}



/* ==================== AutoComplete 选择器组件 ==================== */

/* 包装容器 */
.ac-wrapper {
    position: relative;
    display: inline-block; 
}

/* 锁定状态的输入框 */
.ac-locked {
    background-color: #f5f5f5 !important;
    border-color: #bdcdbe !important; 
    cursor: default !important;
}

.ac-locked:focus {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

/* 清除按钮 */
.ac-clear-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.2s;
    user-select: none;
    display: none;
    font-family: Arial, sans-serif;
}

.ac-clear-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* 错误状态的输入框 */
.ac-input-error {
    background-color: #ffebee !important;
    border-color: #f44336 !important;
    animation: ac-shake 0.4s;
}

@keyframes ac-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* 错误提示 */
.ac-error-tip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px;
    padding: 5px 12px;
    background-color: #ffebee;
    color: #c62828;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #ffcdd2;
}

/* 持久化验证消息（供外部验证框架使用） */
.ac-validate {
    color: #c62828;
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

.ac-validate-error {
    color: #c62828;
}

/* 下拉菜单样式优化 */
.ui-autocomplete {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    z-index: 9999 !important;
}

.ui-autocomplete .ui-menu-item {
    padding: 0;
    margin: 0;
}

.ui-autocomplete .ui-menu-item div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.ui-autocomplete .ui-menu-item:last-child div {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item div:hover,
.ui-autocomplete .ui-menu-item.ui-state-focus div {
    background-color: #e3f2fd;
}

/* 高亮匹配文本 */
.ui-autocomplete .ui-menu-item div strong {
    color: #1976d2;
    font-weight: bold;
}

/* 已注销状态的特殊样式 */
.ac-item-disabled {
    color: #999;
}

.ac-item-disabled span {
    color: #f44336;
}
