.ci-container { font-family: inherit; border: 1px solid #ccd0d4; padding: 20px; background: #fff; }
.ci-error { border:2px solid red; padding:15px; background:#ffebe8; }
.ci-header { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 2px solid #999; padding-bottom: 15px; margin-bottom: 20px; }
.ci-logo h1 { margin: 0; font-size: 24px; }
.ci-details { flex: 2 1 500px; display: flex; flex-wrap: wrap; gap: 10px; }
.ci-box { flex: 1 1 240px; background: #f9f9f9; border: 1px solid #e5e5e5; padding: 10px; }
.ci-box strong { display: block; margin-bottom: 5px; }
.ci-box textarea, .ci-box input { width: 100%; box-sizing: border-box; }
.ci-box textarea { min-height: 80px; }
.ci-meta div { margin-bottom: 5px; }
.ci-table { width: 100%; border-collapse: collapse; }
.ci-table th, .ci-table td { border: 1px solid #ccc; padding: 8px; text-align: center; vertical-align: middle; white-space: nowrap; }
.ci-table th { background-color: #f2f2f2; }
.ci-table input { width: 100%; min-width: 80px; padding: 4px; box-sizing: border-box; }
.ci-delete-row { background-color: #dc3232; color: white; border: none; padding: 5px 10px; cursor: pointer; border-radius: 3px; }
.ci-summary { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.ci-notes-bank { flex: 1; min-width: 300px; }
.ci-notes-bank div { margin-bottom: 15px; }
.ci-notes-bank input, .ci-notes-bank textarea { width: 100%; }
.ci-notes-bank textarea { min-height: 90px; }
.ci-totals { flex: 1; min-width: 300px; }
.ci-totals table { width: 100%; max-width: 400px; margin-left: auto; }
.ci-totals td { padding: 6px; border: none; }
.ci-totals td:first-child { text-align: right; font-weight: bold; }
.ci-totals input { width: 120px; text-align: right; }
.ci-grand-total { font-size: 1.2em; font-weight: bold; border-top: 2px solid #333; }
#ci-add-row { margin: 15px 0; }
.ci-table-wrapper { overflow-x: auto; margin-bottom: 15px; }