/* WordPress Table Block
-------------------------------------------------------------- */
.wp-block-table{margin:0 0 1.5em;overflow-x:auto;}
.wp-block-table.is-style-regular table,.wp-block-table:not([class*="is-style-"]) table{margin:0;width:100%;border-collapse:collapse;border-spacing:0;}
.wp-block-table.is-style-regular caption,.wp-block-table:not([class*="is-style-"]) caption{margin:0 0 .75em;padding:0;font-size:13px;line-height:1.5;text-align:left;color:#777777;}
.wp-block-table.is-style-regular th,.wp-block-table.is-style-regular td,.wp-block-table:not([class*="is-style-"]) th,.wp-block-table:not([class*="is-style-"]) td{padding:.75em 1em;border:1px solid #e6e6e6;text-align:left;vertical-align:top;}
.wp-block-table.is-style-regular th,.wp-block-table:not([class*="is-style-"]) th{font-weight:700;}
.wp-block-table.is-style-regular thead,.wp-block-table:not([class*="is-style-"]) thead{border-bottom:2px solid #e6e6e6;}
.wp-block-table.is-style-regular tfoot,.wp-block-table:not([class*="is-style-"]) tfoot{border-top:2px solid #e6e6e6;}
.wp-block-table.is-style-regular tbody tr,.wp-block-table:not([class*="is-style-"]) tbody tr{background:transparent;}
.wp-block-table.is-style-regular figcaption,.wp-block-table:not([class*="is-style-"]) figcaption{margin:.75em 0 0;font-size:13px;line-height:1.5;text-align:center;color:#777777;}

.wp-block-table.is-style-stripes{background-color:initial;border-bottom:1px solid #f0f0f0;}
.wp-block-table.is-style-stripes table{margin:0;width:100%;border-collapse:collapse;border-spacing:0;}
.wp-block-table.is-style-stripes caption{margin:0 0 .75em;padding:0;font-size:13px;line-height:1.5;text-align:left;color:#777777;}
.wp-block-table.is-style-stripes th,.wp-block-table.is-style-stripes td{padding:.75em 1em;text-align:left;vertical-align:top;border:0;}
.wp-block-table.is-style-stripes th{font-weight:700;}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0;}
.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5;}
.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5;}
.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe;}
.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef;}
.wp-block-table.is-style-stripes figcaption{margin:.75em 0 0;font-size:13px;line-height:1.5;text-align:center;color:#777777;}

.wp-block-table[class*="is-style-magshow-table-"] table{width:100%;border-collapse:collapse;font-size:1em;}
.wp-block-table[class*="is-style-magshow-table-"] th,.wp-block-table[class*="is-style-magshow-table-"] td{padding:10px 14px;text-align:left;vertical-align:top;}
.wp-block-table[class*="is-style-magshow-table-"] figcaption{font-size:0.98em;color:#6b7280;margin-top:8px;text-align:center;}

.wp-block-table.is-style-magshow-table-bordered table{border:1px solid #e5e7eb;}
.wp-block-table.is-style-magshow-table-bordered th{background-color:#1a56db;color:#ffffff;font-weight:600;border:1px solid #1648c0;}
.wp-block-table.is-style-magshow-table-bordered td{border:1px solid #e5e7eb;color:inherit;}

.wp-block-table.is-style-magshow-table-striped th{background-color:#111827;color:#ffffff;font-weight:600;border:none;}
.wp-block-table.is-style-magshow-table-striped td{border:none;color:inherit;}
.wp-block-table.is-style-magshow-table-striped tbody tr:nth-child(even) td{background-color:#f3f4f6;}
.wp-block-table.is-style-magshow-table-striped tbody tr:nth-child(odd) td{background-color:transparent;}

.wp-block-table.is-style-magshow-table-minimal th{border-bottom:2px solid #111827;font-weight:700;font-size:0.92em;text-transform:uppercase;letter-spacing:0.07em;color:inherit;background:none;padding-bottom:10px;}
.wp-block-table.is-style-magshow-table-minimal td{border:none;border-bottom:1px solid #f3f4f6;color:inherit;}
.wp-block-table.is-style-magshow-table-minimal tbody tr:last-child td{border-bottom:none;}

.wp-block-table.is-style-magshow-table-accent-col th{background-color:#f9fafb;color:inherit;font-weight:600;border-bottom:2px solid #1a56db;}
.wp-block-table.is-style-magshow-table-accent-col td{border-bottom:1px solid #e5e7eb;color:inherit;}
.wp-block-table.is-style-magshow-table-accent-col th:first-child,.wp-block-table.is-style-magshow-table-accent-col td:first-child{border-left:4px solid #1a56db;background-color:#eff6ff;color:#1a56db;font-weight:600;}

.wp-block-table.is-style-magshow-table-dark{border-radius:8px;overflow-x:auto;overflow-y:hidden;}
.wp-block-table.is-style-magshow-table-dark table{background-color:#111827;border-radius:8px;overflow:hidden;}
.wp-block-table.is-style-magshow-table-dark th{background-color:#1f2937;color:#f9fafb;font-weight:600;border-bottom:1px solid #374151;}
.wp-block-table.is-style-magshow-table-dark td{color:#d1d5db;border-bottom:1px solid #1f2937;}
.wp-block-table.is-style-magshow-table-dark tbody tr:last-child td{border-bottom:none;}
.wp-block-table.is-style-magshow-table-dark figcaption{color:#9ca3af;}

.wp-block-table.is-style-magshow-table-tinted th{background-color:#eff6ff;color:#1e3a5f;font-weight:700;border-bottom:2px solid #1a56db;}
.wp-block-table.is-style-magshow-table-tinted td{border-bottom:1px solid #e5e7eb;color:inherit;}
.wp-block-table.is-style-magshow-table-tinted tbody tr:hover td{background-color:#f8faff;}

.wp-block-table.is-style-magshow-table-rounded{border:1px solid #e5e7eb;border-radius:10px;overflow-x:auto;overflow-y:hidden;}
.wp-block-table.is-style-magshow-table-rounded th{background-color:#f9fafb;color:#111827;font-weight:600;border-bottom:1px solid #e5e7eb;}
.wp-block-table.is-style-magshow-table-rounded td{border-bottom:1px solid #f3f4f6;color:inherit;}
.wp-block-table.is-style-magshow-table-rounded tbody tr:last-child td{border-bottom:none;}

.wp-block-table.is-style-magshow-table-comparison th{background-color:#111827;color:#ffffff;font-weight:600;text-align:center;border-right:1px solid #374151;}
.wp-block-table.is-style-magshow-table-comparison th:first-child{background-color:#f9fafb;color:#111827;text-align:left;border-right:1px solid #e5e7eb;}
.wp-block-table.is-style-magshow-table-comparison td{border:1px solid #e5e7eb;text-align:center;color:inherit;}
.wp-block-table.is-style-magshow-table-comparison td:first-child{text-align:left;font-weight:500;background-color:#f9fafb;border-left:none;}

.wp-block-table.is-style-magshow-table-warm th{background-color:#78350f;color:#fef3c7;font-weight:600;border:none;}
.wp-block-table.is-style-magshow-table-warm td{border-bottom:1px solid #fde68a;color:inherit;}
.wp-block-table.is-style-magshow-table-warm tbody tr:nth-child(even) td{background-color:#fefce8;}

.wp-block-table.is-style-magshow-table-status th{border-bottom:2px solid #e5e7eb;color:#6b7280;font-weight:600;font-size:0.92em;text-transform:uppercase;letter-spacing:0.07em;background:none;}
.wp-block-table.is-style-magshow-table-status td{border-bottom:1px solid #f3f4f6;color:inherit;vertical-align:middle;}
.wp-block-table.is-style-magshow-table-status tbody tr:last-child td{border-bottom:none;}

/* Status badge helpers — add these classes manually to td content */
.magshow-badge{display:inline-block;font-size:0.78em;font-weight:500;padding:2px 10px;border-radius:100px;line-height:1.6;}
.magshow-badge-green{background-color:#d1fae5;color:#065f46;}
.magshow-badge-yellow{background-color:#fef3c7;color:#92400e;}
.magshow-badge-red{background-color:#fee2e2;color:#991b1b;}
.magshow-badge-blue{background-color:#dbeafe;color:#1e40af;}
.magshow-badge-gray{background-color:#f3f4f6;color:#374151;}

/* WordPress Table Block:Mobile Responsive Column Fix
-------------------------------------------------------------- */
/* Scroll wrapper */
.entry-content .wp-block-table{display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;}
/* Keep custom table styles scrollable */
.entry-content .wp-block-table[class*="is-style-magshow-table-"]{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;}
/* Let the table become wider than the screen */
.entry-content .wp-block-table table,.entry-content .wp-block-table.is-style-regular table,.entry-content .wp-block-table.is-style-stripes table,.entry-content .wp-block-table:not([class*="is-style-"]) table,.entry-content .wp-block-table[class*="is-style-magshow-table-"] table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:100%;table-layout:auto;}
/* Give every column enough space */
.entry-content .wp-block-table th,.entry-content .wp-block-table td{min-width:120px;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:none;hyphens:none;}
/* Keep headings on one line when possible */
.entry-content .wp-block-table th{white-space:nowrap;}
/* Wider columns for long text tables */
.entry-content .wp-block-table th:first-child,.entry-content .wp-block-table td:first-child{min-width:150px;}
.entry-content .wp-block-table th:last-child,.entry-content .wp-block-table td:last-child{min-width:150px;}
/* Paragraphs inside table cells */
.entry-content .wp-block-table th p,.entry-content .wp-block-table td p{margin-top:0;margin-bottom:.5em;}
.entry-content .wp-block-table th p:last-child,.entry-content .wp-block-table td p:last-child{margin-bottom:0;}
/* Keep badges/buttons clean */
.entry-content .wp-block-table .magshow-badge,.entry-content .wp-block-table .wp-element-button,.entry-content .wp-block-table .wp-block-button__link{white-space:nowrap;}
/* Mobile fine tuning */
@media screen and (max-width:600px){
.entry-content .wp-block-table th,.entry-content .wp-block-table td{min-width:130px;padding:.65em .85em;font-size:0.95em;line-height:1.5;}
.entry-content .wp-block-table th:first-child,.entry-content .wp-block-table td:first-child{min-width:150px;}
.entry-content .wp-block-table th:last-child,.entry-content .wp-block-table td:last-child{min-width:160px;}
}

/* WordPress Table Block:Editor Safe Responsive Fix
-------------------------------------------------------------- */
/* Keep normal editor table width */
.editor-styles-wrapper .wp-block-table{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;}
/* Do not force desktop editor tables to become extra wide */
.editor-styles-wrapper .wp-block-table table,.editor-styles-wrapper .wp-block-table.is-style-regular table,.editor-styles-wrapper .wp-block-table.is-style-stripes table,.editor-styles-wrapper .wp-block-table:not([class*="is-style-"]) table,.editor-styles-wrapper .wp-block-table[class*="is-style-magshow-table-"] table{width:100%;max-width:100%;table-layout:auto;}
/* Prevent ugly word breaking in editor */
.editor-styles-wrapper .wp-block-table th,.editor-styles-wrapper .wp-block-table td{white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:none;hyphens:none;}
/* Keep table headings clean */
.editor-styles-wrapper .wp-block-table th{white-space:normal;}
/* Paragraphs inside table cells */
.editor-styles-wrapper .wp-block-table th p,.editor-styles-wrapper .wp-block-table td p{margin-top:0;margin-bottom:.5em;}
.editor-styles-wrapper .wp-block-table th p:last-child,.editor-styles-wrapper .wp-block-table td p:last-child{margin-bottom:0;}
/* Keep badges/buttons clean */
.editor-styles-wrapper .wp-block-table .magshow-badge,.editor-styles-wrapper .wp-block-table .wp-element-button,.editor-styles-wrapper .wp-block-table .wp-block-button__link{white-space:nowrap;}
/* Only apply wide scrolling behavior on narrow editor/mobile preview */
@media screen and (max-width:782px){
.editor-styles-wrapper .wp-block-table{display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;}
.editor-styles-wrapper .wp-block-table table,.editor-styles-wrapper .wp-block-table.is-style-regular table,.editor-styles-wrapper .wp-block-table.is-style-stripes table,.editor-styles-wrapper .wp-block-table:not([class*="is-style-"]) table,.editor-styles-wrapper .wp-block-table[class*="is-style-magshow-table-"] table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:100%;table-layout:auto;}
.editor-styles-wrapper .wp-block-table th,.editor-styles-wrapper .wp-block-table td{min-width:120px;padding:.65em .85em;font-size:0.95em;line-height:1.5;}
.editor-styles-wrapper .wp-block-table th:first-child,.editor-styles-wrapper .wp-block-table td:first-child{min-width:150px;}
.editor-styles-wrapper .wp-block-table th:last-child,.editor-styles-wrapper .wp-block-table td:last-child{min-width:160px;}
}