/* D3Chapter / CHAPOX Modern Styles */

strong.chapoxst {
	margin-top: 4px;
	margin-bottom: 12px;
	font-size: 14pt;
	display: block;
}

strong.chapoxst a {
	color: #1e293b;
	text-decoration: none;
}

strong.chapoxst a:hover {
	color: #2563eb;
	text-decoration: underline;
}

h4 {
	font-size: 20px;
}

h1.chapoxh1 {
	margin-left: 0;
	margin-top: 12px;
	margin-bottom: 6px;
	font-size: 1.15em;
	font-weight: 700;
	padding: 6px 0 6px 12px;
	border-left: 4px solid #2563eb;
	border-bottom: 1px solid #cbd5e1;
	background: #f8fafc;
}

.chapoxh1 a {
	color: #1e293b;
	text-decoration: none;
}
.chapoxh1 a:hover {
	color: #2563eb;
	text-decoration: underline;
}

h2.chapoxh2 {
	margin-left: 12px;
	margin-top: 8px;
	margin-bottom: 4px;
	font-size: 1.05em;
	font-weight: 600;
	padding: 4px 0 4px 10px;
	border-left: 3px solid #64748b;
	border-bottom: 1px solid #e2e8f0;
}

.chapoxh2 a {
	color: #334155;
	text-decoration: none;
}
.chapoxh2 a:hover {
	color: #2563eb;
	text-decoration: underline;
}

h3.chapoxh3 {
	margin-left: 24px;
	margin-top: 4px;
	margin-bottom: 4px;
	font-size: 0.95em;
	font-weight: 500;
	padding: 3px 0 3px 10px;
	border-bottom: 1px dashed #cbd5e1;
}

.chapoxh3 a {
	color: #475569;
	text-decoration: none;
}
.chapoxh3 a:hover {
	color: #2563eb;
	text-decoration: underline;
}

h4.chapoxh4 {
	margin-left: 36px;
	margin-top: 4px;
	margin-bottom: 4px;
	font-size: 0.9em;
	font-weight: normal;
	border-bottom: 1px dotted #cbd5e1;
	padding: 2px 0 2px 10px;
}

.chapoxh4 a {
	color: #64748b;
	text-decoration: none;
}
.chapoxh4 a:hover {
	color: #2563eb;
	text-decoration: underline;
}

.chapoxstatus {
	color: #2563eb;
}

.chapoxcontentBlock {
	margin-top: 15px;
	border-bottom: solid 1px #cbd5e1;
	padding: 8px 0;
	margin-bottom: 16px;
}

.chapoxexcerpt {
	margin: 8px 20px 16px 20px;
	border-left: 4px solid #3b82f6;
	background: #eff6ff;
	padding: 12px 16px;
	font-size: 0.95em;
	border-radius: 0 6px 6px 0;
	color: #1e3a8a;
}

.chapoxmycontent {
	margin: 12px 0 20px 0;
	padding: 4px 0;
	font-size: 15px;
	line-height: 1.8;
	color: #1e293b;
}

.chapoxfootnote {
	margin: 16px 0 20px 0;
	border-top: dotted 1px #cbd5e1;
	padding: 8px 0;
	font-size: 0.85em;
	color: #64748b;
}

/* ==========================================================
   Modern Responsive Card & Table Components
   ========================================================== */

.chapox-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
	overflow: hidden;
	box-sizing: border-box;
	max-width: 100%;
}

.chapox-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	flex-wrap: wrap;
	gap: 10px;
}

.chapox-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.chapox-card-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.chapox-card-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.chapox-table-responsive {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	box-sizing: border-box;
}

.chapox-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	table-layout: auto;
	box-sizing: border-box;
}

.chapox-table th {
	padding: 10px 14px;
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	font-size: 13px;
	text-align: left;
	border-bottom: 2px solid #cbd5e1;
	white-space: nowrap;
}

.chapox-table td {
	padding: 8px 12px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
}

.chapox-row-layer1 {
	background-color: #f1f5f9;
	border-left: 3px solid #2563eb;
}

.chapox-row-layer2 {
	background-color: #f8fafc;
	border-left: 3px solid #64748b;
}

.chapox-row-layer3 {
	background-color: #ffffff;
	border-left: 3px solid #cbd5e1;
}

.chapox-row-layer4 {
	background-color: #ffffff;
	border-left: 3px solid transparent;
}

.chapox-row-new {
	background-color: #fafafa;
}

.chapox-input {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	font-size: 13px;
	color: #1e293b;
	background: #ffffff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.chapox-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.chapox-input-layer {
	font-family: monospace;
	font-weight: 600;
	text-align: center;
}

.chapox-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease-in-out;
	text-decoration: none;
	line-height: 1.4;
}

.chapox-btn-primary {
	background: #2563eb;
	color: #ffffff !important;
	border-color: #2563eb;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.chapox-btn-primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.chapox-btn-secondary {
	background: #f1f5f9;
	color: #475569 !important;
	border-color: #cbd5e1;
}

.chapox-btn-secondary:hover {
	background: #e2e8f0;
	color: #1e293b !important;
}

.chapox-status-cell {
	font-size: 11px;
	white-space: nowrap;
	text-align: center;
}

.chapox-badge-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	background: #e2e8f0;
	color: #334155;
}

.chapox-bytes {
	display: block;
	font-size: 10px;
	color: #64748b;
	margin-top: 2px;
}

.chapox-checkbox-delete {
	cursor: pointer;
	width: 16px;
	height: 16px;
}
