/* spreadsheet-export.css - Complete Luckysheet HTML Export Styles */

/* Table base styles */
.spreadsheet-export {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    table-layout: fixed;
}

/* Header section */
.spreadsheet-export thead {
    background: #f8f9fa;
}

/* Header cells */
.spreadsheet-export th {
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    font-weight: bold;
    text-align: left;
    vertical-align: middle;
}

/* Data cells - default */
.spreadsheet-export td {
    padding: 8px;
    border: 1px solid #dee2e6;
    height: 19px; /* Luckysheet default row height */
    vertical-align: middle;
}

/* Text formatting */
.cell-bold { font-weight: bold; }
.cell-italic { font-style: italic; }
.cell-underline { text-decoration: underline; }
.cell-strikethrough { text-decoration: line-through; }

/* Font sizes (Luckysheet common sizes) */
.cell-fs-10 { font-size: 10px; }
.cell-fs-11 { font-size: 11px; }
.cell-fs-12 { font-size: 12px; }
.cell-fs-14 { font-size: 14px; }
.cell-fs-16 { font-size: 16px; }
.cell-fs-18 { font-size: 18px; }
.cell-fs-20 { font-size: 20px; }

/* Text alignment */
.cell-left { text-align: left; }
.cell-center { text-align: center; }
.cell-right { text-align: right; }
.cell-top { vertical-align: top; }
.cell-middle { vertical-align: middle; }
.cell-bottom { vertical-align: bottom; }

/* Background colors (common Luckysheet defaults) */
.cell-bg-white { background-color: rgba(255,255,255,1); }
.cell-bg-light { background-color: #f8f9fa; }
.cell-bg-gray { background-color: #e9ecef; }
.cell-bg-blue { background-color: #e3f2fd; }
.cell-bg-green { background-color: #e8f5e8; }
.cell-bg-yellow { background-color: #fff3cd; }
.cell-bg-red { background-color: #f8d7da; }

/* Text colors */
.cell-fc-black { color: rgb(51, 51, 51); }
.cell-fc-dark { color: #333; }
.cell-fc-blue { color: #007bff; }
.cell-fc-green { color: #28a745; }
.cell-fc-red { color: #dc3545; }
.cell-fc-orange { color: #fd7e14; }

/* Borders (Luckysheet border styles) */
.cell-border-thin { border: 1px solid #ddd !important; }
.cell-border-medium { border: 2px solid #dee2e6 !important; }
.cell-border-thick { border: 3px solid #495057 !important; }
.cell-border-dashed { border: 1px dashed #dee2e6 !important; }
.cell-border-dotted { border: 1px dotted #dee2e6 !important; }

/* Row heights (Luckysheet common) */
.row-h-19 { height: 19px; }
.row-h-25 { height: 25px; }
.row-h-30 { height: 30px; }
.row-h-40 { height: 40px; }

/* Column widths (if needed) */
.col-w-72 { width: 72px; }
.col-w-100 { width: 100px; }
.col-w-150 { width: 150px; }

/* Formula cells */
.cell-formula { font-family: 'Courier New', monospace; color: #0066cc; }

/* Merged cells */
.cell-merged { position: relative; }

/* Print-friendly */
@media print {
    .spreadsheet-export { border-collapse: collapse !important; }
    .spreadsheet-export td, .spreadsheet-export th { 
        border: 1px solid #000 !important; 
        padding: 4px !important;
    }
}
