/* ===================================================================
   ระบบบันทึกคะแนนเตรียมสอบสาธิตจุฬาฯ - Style System (Cloudflare Ready)
   ธีมสี: ชมพูจุฬาฯ (#DE3867) ผสมผสาน กรมท่า (#1E293B) เรียบหรู ทันสมัย
   =================================================================== */

:root {
    --primary: #DE3867;            /* จุฬาฯ พิงค์ */
    --primary-hover: #C52955;
    --primary-light: #FFF0F4;
    --primary-border: #F8BBD0;

    --navy: #1E293B;
    --navy-light: #334155;
    --slate: #64748B;
    --slate-light: #94A3B8;
    
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #0284C7;
    --info-light: #E0F2FE;

    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--bg-page);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= HEADER ================= */
.app-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(222, 56, 103, 0.25));
}

.title-meta h1 {
    font-size: 1.35rem;
    color: var(--navy);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-meta .subtitle {
    font-size: 0.85rem;
    color: var(--slate);
    display: block;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 6px 14px;
    border-radius: 30px;
    color: var(--primary);
}

.student-selector i {
    font-size: 1.1rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.student-info .label {
    font-size: 0.85rem;
    font-weight: 500;
}

.student-info input {
    background: transparent;
    border: none;
    border-bottom: 1.5px dashed var(--primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    outline: none;
    width: 100px;
    transition: width 0.2s;
}

.student-info input:focus {
    width: 140px;
    border-bottom-style: solid;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F1F5F9;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy-light);
}

/* ================= STATS OVERVIEW ================= */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-icon.pink { background: var(--primary-light); color: var(--primary); }
.stat-icon.purple { background: #F3E8FF; color: #9333EA; }
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.green { background: var(--success-light); color: var(--success); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--slate);
    font-weight: 500;
}

.stat-content h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 4px 0 2px 0;
}

.stat-hint {
    font-size: 0.78rem;
    color: var(--slate-light);
}

.stat-hint.positive {
    color: var(--success);
    font-weight: 500;
}

/* ================= MAIN LAYOUT ================= */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

/* ================= SIDEBAR ================= */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.sidebar-header h4 {
    font-size: 0.95rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy-light);
    border: 1px solid transparent;
}

.category-menu li:hover {
    background: #F8FAFC;
    color: var(--primary);
}

.category-menu li.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-color: var(--primary-border);
}

.cat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.cat-icon.all { background: #EEF2F6; color: #475569; }
.cat-icon.cat-1 { background: #FEF3C7; color: #D97706; }
.cat-icon.cat-2 { background: #E0E7FF; color: #4F46E5; }
.cat-icon.cat-3 { background: #FCE7F3; color: #DB2777; }
.cat-icon.cat-4 { background: #D1FAE5; color: #059669; }
.cat-icon.cat-5 { background: #CFFAFE; color: #0891B2; }

.cat-badge {
    font-size: 0.75rem;
    background: #E2E8F0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: var(--font-body);
}

.cat-badge.error-badge {
    background: #FEE2E2;
    color: #DC2626;
    font-weight: 600;
}

.sidebar-toolcard {
    background: #F8FAFC;
    border-left: 3.5px solid var(--primary);
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
}

.sidebar-toolcard h5 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-toolcard p {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.45;
}

/* ================= DATA AREA ================= */
.data-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Charts Section */
.analysis-charts-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 18px 24px;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.chart-title h4 {
    font-size: 1.05rem;
    color: var(--navy);
}

.btn-subtle {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subtle:hover {
    background: #F1F5F9;
    color: var(--navy);
}

.charts-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding-top: 16px;
    transition: all 0.3s ease;
}

.charts-body.collapsed {
    display: none;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-container h5 {
    font-size: 0.88rem;
    color: var(--slate);
    font-weight: 500;
}

.canvas-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
}

/* Table Cards */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
}

.tag-pink { background: var(--primary-light); color: var(--primary); }
.tag-blue { background: var(--info-light); color: var(--info); }

.table-title-group h3 {
    font-size: 1.15rem;
    color: var(--navy);
}

.table-desc {
    font-size: 0.82rem;
    color: var(--slate);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 10px;
    color: var(--slate-light);
    font-size: 0.85rem;
}

.search-box input {
    padding: 7px 12px 7px 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 180px;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(222, 56, 103, 0.12);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary.btn-blue {
    background: var(--info);
}

.btn-primary.btn-blue:hover {
    background: #0369A1;
}

/* ================= TABLES ================= */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.92rem;
}

thead {
    background: #F8FAFC;
    border-bottom: 2px solid var(--border-color);
}

th {
    padding: 12px 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
}

th:last-child {
    border-right: none;
}

th i {
    margin-right: 4px;
    font-size: 0.85rem;
    color: var(--slate);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s;
}

tbody tr:hover {
    background-color: #FFF9FA;
}

tbody tr.highlight-row {
    background-color: #FEF2F4;
}

td {
    padding: 10px 8px;
    vertical-align: middle;
    border-right: 1px solid var(--border-color);
}

td:last-child {
    border-right: none;
}

/* Table Inputs */
td input[type="number"] {
    width: 65px;
    text-align: center;
    padding: 6px 4px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    outline: none;
    transition: all 0.2s;
    background: #FFFFFF;
}

td input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(222, 56, 103, 0.15);
}

/* Badges for Error Counts */
.badge-total-errors {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.errors-good {
    background: var(--success-light);
    color: var(--success);
}

.errors-medium {
    background: var(--warning-light);
    color: #D97706;
}

.errors-high {
    background: var(--danger-light);
    color: var(--danger);
}

/* Score Pills */
.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
}

.level-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.level-excellent { background: #ECFDF5; color: #059669; }
.level-good { background: #EFF6FF; color: #2563EB; }
.level-moderate { background: #FFFBEB; color: #D97706; }
.level-needwork { background: #FEF2F2; color: #DC2626; }

/* Action Buttons */
.btn-edit, .btn-delete {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit {
    background: #F1F5F9;
    color: var(--navy);
    border: 1px solid #CBD5E1;
    margin-right: 4px;
}

.btn-edit:hover {
    background: #E2E8F0;
    color: var(--primary);
}

.btn-delete {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.btn-delete:hover {
    background: #FEE2E2;
}

/* Footer row */
tfoot {
    background: #F8FAFC;
    font-weight: 600;
    border-top: 2px solid var(--border-color);
}

tfoot td {
    padding: 10px 8px;
    color: var(--navy);
}

/* ================= CONTROL BUTTONS ================= */
.control-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-add, .btn-save, .btn-export, .btn-print, .btn-reset {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.btn-add {
    background: var(--primary);
    color: #FFFFFF;
}
.btn-add:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(222, 56, 103, 0.25);
}

.btn-save {
    background: #1E293B;
    color: #FFFFFF;
}
.btn-save:hover {
    background: #0F172A;
}

.btn-export {
    background: #059669;
    color: #FFFFFF;
}
.btn-export:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-print {
    background: #F1F5F9;
    color: var(--navy);
    border: 1px solid #CBD5E1;
}
.btn-print:hover {
    background: #E2E8F0;
}

.btn-reset {
    background: transparent;
    color: var(--slate);
    margin-left: auto;
}
.btn-reset:hover {
    color: var(--danger);
}

/* ================= FOOTER ================= */
.app-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--slate);
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.save-status {
    color: var(--success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

/* ================= MODAL ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: var(--primary-light);
    border-bottom: 1px solid var(--primary-border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.modal-title h3 {
    font-size: 1.15rem;
    color: var(--primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--slate);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

#recordForm {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
}

.form-group input {
    padding: 9px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-section-box {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-section-box h4 {
    font-size: 0.92rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fields-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.fields-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.field-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-item label {
    font-size: 0.78rem;
    color: var(--slate);
    font-weight: 500;
    text-align: center;
}

.field-item input {
    text-align: center;
    padding: 8px 4px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.field-item input:focus {
    border-color: var(--primary);
}

.live-calc-bar {
    background: #FFFFFF;
    border: 1px dashed var(--primary-border);
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--navy-light);
}

.live-calc-bar strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.score-display-box {
    background: var(--success-light);
    color: var(--success);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 14px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #A7F3D0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.btn-cancel {
    background: #F1F5F9;
    color: var(--navy);
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    cursor: pointer;
}

.btn-submit {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* ================= TOAST NOTIFICATION ================= */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1E293B;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease-out;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }

    .charts-body {
        grid-template-columns: 1fr;
    }
    
    .canvas-wrapper {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 10px 12px;
    }

    .app-header {
        padding: 14px;
    }

    .title-meta h1 {
        font-size: 1.15rem;
    }

    .fields-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add, .btn-save, .btn-export, .btn-print, .btn-reset {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
}

/* ================= PRINT STYLES ================= */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }
    
    .sidebar, 
    .control-buttons, 
    .toolbar-actions, 
    .btn-edit, 
    .btn-delete, 
    .modal-backdrop, 
    .toast-notification,
    .btn-subtle {
        display: none !important;
    }
    
    .app-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .table-card, .analysis-charts-card, .stat-card {
        border: 1px solid #CCCCCC !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    th, td {
        border: 1px solid #CCCCCC !important;
        padding: 6px 4px !important;
        font-size: 12px !important;
    }

    td input[type="number"] {
        border: none !important;
        background: transparent !important;
        font-weight: bold !important;
    }
}
