/* Shared layout & components */
* { box-sizing: border-box; font-family:"Microsoft YaHei", sans-serif; }
body { margin:0; background:#f5f7fa; color:#333; }
.page-shell { padding:20px; }
header.global-header { background: linear-gradient(135deg,#1e5799,#207cca); color:#fff; padding:20px 30px; display:flex; justify-content:space-between; align-items:center; }
header.global-header .logo { display:flex; align-items:center; gap:15px; }
header.global-header .logo i { font-size:28px; }
header.global-header .logo h1 { font-size:22px; margin:0; }
.user-info { display:flex; align-items:center; gap:10px; }
.user-avatar { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; }
.main-wrapper { max-width:1600px; margin:0 auto; background:#fff; border-radius:8px; box-shadow:0 2px 20px rgba(0,0,0,0.08); overflow:hidden; }
.flex-app { display:flex; min-height:620px; }
.sidebar { width:250px; background:#2c3e50; color:#fff; padding:20px 0; }
.sidebar .nav-item { padding:15px 25px; display:flex; align-items:center; gap:12px; cursor:pointer; transition:background .25s; color:#ecf0f1; text-decoration:none; }
.sidebar .nav-item:hover, .sidebar .nav-item.active { background:#34495e; }
.sidebar .nav-item i { width:20px; text-align:center; }
.content { flex:1; padding:25px; }
.btn { padding:10px 20px; border:none; border-radius:4px; cursor:pointer; font-size:14px; font-weight:500; transition:all .25s; display:flex; align-items:center; gap:8px; }
.btn-group { display:flex; flex-wrap:wrap; gap:10px; }
.btn-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; }
.btn-toolbar .btn-group { flex:1; }
.btn-toolbar .btn-group.right { justify-content:flex-end; }
.btn-primary { background:#3498db; color:#fff; }
.btn-primary:hover { background:#2980b9; }
.btn-success { background:#2ecc71; color:#fff; }
.btn-success:hover { background:#27ae60; }
.btn-outline { background:transparent; border:1px solid #3498db; color:#3498db; }
.btn-outline:hover { background:#3498db; color:#fff; }
.btn-sm { padding:6px 12px; font-size:12px; }
.search-section,.panel { background:#f8f9fa; padding:20px; border-radius:6px; margin-bottom:25px; box-shadow:0 2px 5px rgba(0,0,0,0.05); }
.search-title,h2.panel-title { display:flex; align-items:center; gap:10px; margin:0 0 15px; color:#2c3e50; font-size:18px; }
.search-form,.form-inline { display:flex; flex-wrap:wrap; gap:15px; margin-bottom:10px; }
.form-group { flex:1; min-width:200px; }
label { display:block; margin-bottom:5px; font-weight:bold; color:#555; font-size:14px; }
input[type=text],input[type=password],select { width:100%; padding:10px; border:1px solid #ddd; border-radius:4px; font-size:14px; }
input[type=text]:focus,input[type=password]:focus,select:focus { border-color:#3498db; outline:none; }
.results-section { margin-bottom:25px; }
.section-title { font-size:18px; margin-bottom:15px; padding-bottom:10px; border-bottom:1px solid #eee; color:#2c3e50; display:flex; align-items:center; gap:10px; }
.results-table, table { width:100%; border-collapse:collapse; }
.results-table th, .results-table td, table th, table td { padding:12px 15px; text-align:left; border-bottom:1px solid #eee; }
.results-table th, table th { background:#f2f6fc; font-weight:bold; }
.results-table tr { cursor:pointer; transition:background .2s; }
.results-table tr:hover { background:#f5f9ff; }
.results-table .selected { background:#e1f0fa; }
.no-results { text-align:center; padding:30px; color:#777; background:#f8f9fa; border-radius:6px; }
.highlight { background:#fffacd; font-weight:bold; padding:2px 4px; border-radius:3px; }
.customer-details { background:#fff; border-radius:6px; box-shadow:0 2px 10px rgba(0,0,0,0.1); overflow:hidden; margin-top:20px; display:none; }
.details-header { background:#3498db; color:#fff; padding:15px 20px; display:flex; justify-content:space-between; align-items:center; }
.details-content { padding:20px; }
.details-tabs { display:flex; border-bottom:1px solid #ddd; margin-bottom:20px; flex-wrap:wrap; }
.tab { padding:12px 20px; cursor:pointer; border-bottom:3px solid transparent; transition:all .3s; }
.tab.active { border-bottom-color:#3498db; color:#3498db; font-weight:bold; }
.tab-content { display:none; }
.tab-content.active { display:block; }
.info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; margin-bottom:30px; }
.info-card { background:#f8f9fa; border-radius:6px; padding:20px; box-shadow:0 2px 5px rgba(0,0,0,0.05); }
.card-title { font-size:16px; margin-bottom:15px; padding-bottom:10px; border-bottom:1px solid #ddd; color:#2c3e50; display:flex; align-items:center; gap:8px; }
.info-row { display:flex; margin-bottom:12px; }
.info-label { width:150px; font-weight:bold; color:#555; flex-shrink:0; }
.info-value { flex:1; color:#333; }
.file-upload { margin-top:15px; padding:15px; border:2px dashed #ddd; border-radius:6px; text-align:center; background:#fafafa; cursor:pointer; transition:all .3s; display:none; }
.file-upload:hover { border-color:#3498db; background:#f0f8ff; }
.file-upload i { font-size:36px; color:#3498db; margin-bottom:10px; }
.import-preview { margin-top:20px; display:none; }
.preview-table { width:100%; border-collapse:collapse; margin-top:10px; font-size:14px; }
.preview-table th, .preview-table td { padding:8px 10px; text-align:left; border:1px solid #ddd; }
.preview-table th { background:#f2f2f2; }
.documents-list { display:flex; flex-wrap:wrap; gap:15px; margin-top:15px; }
.document-item { background:#fff; border:1px solid #ddd; border-radius:6px; padding:15px; width:calc(33.333% - 15px); display:flex; flex-direction:column; }
.document-title { font-weight:bold; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.document-actions { margin-top:auto; display:flex; gap:10px; }
.gis-map { width:100%; min-height:220px; border:1px solid #ddd; border-radius:6px; }
.map-placeholder { padding:60px 0; text-align:center; color:#777; background:#fafafa; border:1px dashed #ccc; border-radius:6px; }
.doc-list {
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.doc-entry {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid #ececec;
	border-radius: 6px;
	background-color: #fff;
}
.doc-entry .doc-name {
	flex: 1;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.doc-entry .doc-actions {
	display: flex;
	gap: 4px;
}
.doc-entry .btn-sm {
	padding: 0 8px;
}
.documents-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}
.doc-card {
	background-color: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px;
	flex: 1 1 300px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.doc-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}
.doc-card-header .count {
	font-size: 12px;
	color: #666;
}
.pressure-route { background:#fff; border-radius:6px; padding:15px; margin-bottom:20px; border-left:4px solid #3498db; }
.route-title { font-weight:bold; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.badge { padding:4px 8px; background:#34495e; border-radius:4px; font-size:12px; color:#fff; }
.panel h2 { font-size:18px; }
/* Responsive */
@media (max-width:1200px){ .info-grid { grid-template-columns:1fr; } .document-item { width:calc(50% - 15px); } }
@media (max-width:768px){ .flex-app { flex-direction:column; } .sidebar { width:100%; } .document-item { width:100%; } }
@media (max-width:600px){ header.global-header .logo h1 { font-size:18px; } .info-label { width:120px; } .tab { padding:10px 14px; } }
