/**
 * Admin Style
 * 通用管理后台样式
 */

/* 通用样式 */
*{
	margin:0;
	padding:0;
	border:0;
	-moz-box-sizing: border-box; /*Firefox3.5+*/
	-webkit-box-sizing: border-box; /*Safari3.2+*/
	-o-box-sizing: border-box; /*Opera9.6*/
	-ms-box-sizing: border-box; /*IE8*/
	box-sizing: border-box; 
}
.layui-layout-admin .layui-side {
    top: 60px;
    width: 160px;
    overflow-x: hidden;
}

.layui-side-scroll {
    position: relative;
    width: 160px;
    height: 100%;
    overflow-x: hidden;
}
.layui-form-label {
    padding: 9px 15px;
    width: 120px;
}
.layui-nav.layui-nav-tree {
    width: 150px;
    padding: 0;
}
.layui-body {
    left: 160px;
}
.layui-layout-admin .layui-body {
    padding-bottom: 0px;
}

.layui-layout-admin .layui-header {
    background-color: #20222A;
}

.layui-layout-admin .layui-side {
    background-color: #20222A;
}

.layui-nav-tree {
    background-color: transparent;
}

.layui-nav-tree .layui-nav-item {
    border-bottom: 1px solid #3A3D49;
}

.layui-nav-tree .layui-nav-item:last-child {
    border-bottom: none;
}

.layui-nav-tree .layui-nav-item a:hover {
        background-color: #009688;
    color: #ffffff !important;
}

.layui-nav-tree .layui-nav-child dd.layui-this,
.layui-nav-tree .layui-nav-child dd.layui-this a,
.layui-nav-tree .layui-this,
.layui-nav-tree .layui-this > a,
.layui-nav-tree .layui-this > a:hover {
    background-color: #5FB878;
}

.layui-layout-admin .layui-footer {
    background-color: #eee;
    left: 160px;
}
.layui-nav .layui-this:after {
        background-color: #ff5722;
}
/* 表格样式 */
.layui-table th,
.layui-table td {
    padding: 9px 10px;
}

/* 按钮样式 */
.layui-btn {
    border-radius: 2px;
}

.layui-btn-primary:hover {
    border-color: #C9C9C9;
    color: #333;
}

/* 表单样式 */
.layui-form-label {
    padding: 9px 6px;
    width: 100px;
}

.layui-input-block {
    margin-left: 100px;
    min-height: 36px;
}

/* 卡片样式 */
.layui-card {
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
}

.layui-card-header {
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    color: #333;
}

/* 工具栏样式 */
.toolbar {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.layadmin-tabsbody-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 10px;
}
.layadmin-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* 响应式 */
@media screen and (max-width: 768px) {
    .layui-col-lg4,
    .layui-col-lg8 {
        padding: 0 10px;
    }
}

.layui-layout-admin .layui-logo {
    width: 360px;
}
.layui-layout-left {
    left: 360px;
}

/* ===== 查看回答页面样式 ===== */
.answer-view-container {
    max-width: 1200px;
    margin: 0 auto;
}
.answer-view-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.answer-view-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.answer-view-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.answer-view-card-header .hospital-name {
    font-size: 14px;
    color: #666;
}
.answer-view-card-body {
    padding: 20px;
}
.answer-view-btn-group {
    margin-bottom: 15px;
}
.answer-view-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    background-color: #fff;
}
.answer-view-btn:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}
.answer-view-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #e6e6e6;
}
.answer-view-table th,
.answer-view-table td {
    border: 1px solid #e6e6e6;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.answer-view-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    white-space: nowrap;
}
.answer-view-table tbody tr:hover {
    background-color: #f9f9f9;
}
.answer-view-table td {
    word-break: break-word;
    white-space: pre-wrap;
}
.answer-view-col-project {
    width: 180px;
}
.answer-view-col-work {
    width: 430px;
}
.answer-view-col-completion {
    width: 360px;
}
.answer-view-empty {
    text-align: center;
    padding: 50px;
    color: #999;
}
/* div表格样式 */
.answer-view-table-wrap {
    display: table;
    width: 100%;
    table-layout: fixed;
    border: 1px solid #e6e6e6;
}
.answer-view-table-row {
    display: table-row;
}
.answer-view-table-row:hover {
    background-color: #f9f9f9;
}
.answer-view-table-header {
    display: table-header-group;
    background-color: #f5f5f5;
    font-weight: bold;
}
.answer-view-table-body {
    display: table-row-group;
}
.answer-view-table-cell {
    display: table-cell;
    border: 1px solid #e6e6e6;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
    white-space: pre-wrap;
}
.answer-view-table-header .answer-view-table-cell {
    white-space: nowrap;
}

/* 消息提示 */
.answer-view-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.answer-view-toast.show {
    opacity: 1;
}
