* { box-sizing: border-box; }
body {
    margin: 0; padding: 0; background: #e0e0e0;
    font-family: Arial, sans-serif; font-size: 13px; color: #333;
}
.app-container {
    width: 100%; min-width: 1024px; padding: 20px;
    background: #f5f5f5; min-height: 100vh;
    position: relative;
}
.header {
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid #999; padding: 15px 20px; background: #fff;
    margin-bottom: 20px;
}
.header-title { font-weight: bold; font-size: 18px; }
.page-info {
    position: absolute; top: 0; right: 20px;
    background: #333; color: #fff; font-size: 11px;
    padding: 3px 8px; opacity: 0.8; z-index: 1000;
}
.main-content { padding-bottom: 60px; }
.card {
    border: 1px solid #999; margin-bottom: 20px; background: #fff;
}
.card-header {
    border-bottom: 1px solid #ccc; padding: 10px 15px; font-weight: bold; background: #f0f0f0;
    display: flex; justify-content: space-between; align-items: center;
}
.card-body { padding: 15px; }

/* Form Fields */
.field {
    display: flex; flex-direction: column; margin-bottom: 10px; position: relative;
}
.field-horizontal {
    display: flex; align-items: center; margin-bottom: 10px;
}
.field-horizontal label {
    width: 80px; font-size: 12px; color: #555; text-align: right; margin-right: 10px; flex-shrink: 0;
}
.field-horizontal input, .field-horizontal select {
    flex-grow: 1; border: 1px dashed #999; background: #fff; padding: 6px; font-size: 12px;
}

.field label { font-size: 12px; color: #555; margin-bottom: 4px; }
.field input, .field textarea, .field select {
    border: 1px dashed #999; background: #fff; padding: 6px; font-size: 12px;
    width: 100%; color: #333; outline: none; resize: vertical;
}
.field input:read-only, .field textarea:read-only, .field select:disabled {
    background: #f9f9f9; color: #666; border: 1px solid #eee;
}

/* Buttons */
.btn {
    border: 1px solid #333; background: #eee; padding: 6px 15px; font-size: 12px;
    cursor: pointer; text-align: center; border-radius: 2px; display: inline-block;
}
.btn.primary { background: #666; color: #fff; border-color: #666; }
.btn:hover { opacity: 0.8; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

/* Table area */
.table-container { overflow-x: auto; margin-top: 10px; padding-bottom: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #999; padding: 8px 10px; text-align: left; font-size: 12px; white-space: nowrap; }
th { background: #eee; font-weight: bold; }
tbody tr:hover { background: #f9f9f9; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid #999; overflow-x: auto; background: #f0f0f0; margin-top: 20px; }
.tab { border: 1px solid #999; border-bottom: none; padding: 8px 20px; font-size: 13px; background: #e0e0e0; margin-right: 2px; cursor: pointer; }
.tab.active { background: #fff; font-weight: bold; position: relative; top: 1px; border-bottom: 1px solid #fff; }
.tab-content { display: none; padding: 15px; border: 1px solid #999; border-top: none; background: #fff; }
.tab-content.active { display: block; }

/* Timeline */
.timeline { border-left: 2px solid #ccc; margin-left: 15px; padding-left: 20px; }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 0;
    width: 10px; height: 10px; border-radius: 50%; background: #666; border: 2px solid #fff;
}
.timeline-date { font-size: 12px; color: #666; margin-bottom: 5px; font-weight: bold; }
.timeline-content { border: 1px dashed #999; padding: 10px; font-size: 13px; background: #fafafa; }

/* Dual pane */
.dual-pane { display: flex; gap: 20px; align-items: stretch; }
.pane-left { width: 45%; }
.pane-right { width: 55%; }
