#sheetModal .app {
    position: relative;
    padding-top: 50px !important;
}

.xtool-icon-left {
    position: absolute;
    top: 20px;
    left: 40px;
    width: 140px;
    height: 140px;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    animation: 3s ease-in-out infinite floatIcon;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.xtool-icon-left i {
    font-size: 120px;
    color: #10b981;
}

#tool-title {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    text-align: center;
    margin: 0 0 5px;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.sub {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.sheet-pro-toolbar {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 15px 15px 0 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.toolbar-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    justify-content: center; 
}

.sheet-pro-toolbar button, .sheet-pro-toolbar select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-pro-toolbar button:hover { background: #f0fdf4; border-color: #10b981; color: #059669; }

.toolbar-item {
    display: flex; align-items: center; gap: 5px;
    background: #fff; border: 1px solid #cbd5e1;
    padding: 5px 10px; border-radius: 8px;
}

.toolbar-item input { width: 22px; height: 22px; border: none; cursor: pointer; background: none; }
.separator-v { width: 1px; height: 25px; background: #cbd5e1; margin: 0 5px; }

.sheet-page-unit {
    width: 210mm;
    min-height: 297mm;
    height: auto !important;
    background-color: #ffffff !important;
    padding: 20mm 15mm;
    margin: 0 auto 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    box-sizing: border-box;
    display: table;
    clear: both;
    overflow: visible !important;
    position: relative;
    user-select: text;
}

.pro-table-sheet {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    word-break: break-all;
    font-family: &#39;SolaimanLipi&#39;, Arial, sans-serif !important;
}

.pro-table-sheet th, .pro-table-sheet td {
    border: 1px solid #000;
    padding: 10px;
    outline: none;
    word-wrap: break-word;
    font-size: 16px;
    text-align: center !important;
    vertical-align: middle !important;
}

.pro-table-sheet th {
    background: #f1f5f9;
    font-weight: 800;
    overflow: hidden; 
    position: relative;
    vertical-align: middle !important; /* ল&#2503;খ&#2494; উপর&#2503;-ন&#2495;চ&#2503; ম&#2494;ঝখ&#2494;ন&#2503; থ&#2494;কব&#2503; */
    text-align: center !important;     /* ল&#2503;খ&#2494; ড&#2494;ন&#2503;-ব&#2494;ম&#2503; ম&#2494;ঝখ&#2494;ন&#2503; থ&#2494;কব&#2503; */
}

.resizer {
    width: 4px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
    animation: blink-resizer 1.5s infinite ease-in-out;
}

.resizer:hover {
    background-color: #10b981 !important;
    animation: none; 
    width: 6px;
}

@keyframes blink-resizer {
    0% { background-color: rgba(16, 185, 129, 0.1); }
    50% { background-color: rgba(16, 185, 129, 0.7); }
    100% { background-color: rgba(16, 185, 129, 0.1); }
}

[contenteditable=true]:empty:before {
    content: attr(data-placeholder);
    color: #cbd5e1;
    font-style: italic;
    pointer-events: none;
}

.sheet-header-box, .sheet-sub-header-box, .sheet-footer-box {
    font-family: &#39;SolaimanLipi&#39;, Arial, sans-serif !important;
    outline: none;
    word-wrap: break-word;
}

.sheet-header-box { font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 10px; }
.sheet-sub-header-box { font-size: 16px; margin-bottom: 20px; text-align: left; color: #475569; }
.sheet-footer-box { margin-top: 30px; min-height: 80px; text-align: left; font-size: 16px; }

.hide-col { display: none !important; }
  
.table-responsive-wrapper {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible !important;
}

/* ৬. ম&#2507;ব&#2494;ইল ভ&#2495;উ অপ&#2509;ট&#2495;ম&#2494;ইজ&#2503;শন - প&#2509;রফ&#2503;শন&#2494;ল আপড&#2503;ট */
@media (max-width: 850px) {
    .xtool-icon-left { display: none; }
    .sheet-page-unit { 
        width: 98%; 
        padding: 15mm 5mm; 
        min-height: 450px; 
        margin-bottom: 20px; 
    }
    .sheet-pro-toolbar {
        padding: 8px;
        gap: 5px;
    }
    .toolbar-row { 
        gap: 4px; 
    }
    .sheet-pro-toolbar button, .sheet-pro-toolbar select { 
        padding: 5px 8px; 
        font-size: 10px; 
        border-radius: 5px;
    }
    .toolbar-item {
        padding: 4px 6px;
    }
    .toolbar-item input {
        width: 16px; height: 16px;
    }
    .separator-v { height: 18px; margin: 0 2px; }
    
    .table-responsive-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pro-table-sheet { 
        width: 650px; /* ম&#2507;ব&#2494;ইল&#2503; ট&#2503;ব&#2495;ল য&#2494;ত&#2503; ঘ&#2495;ঞ&#2509;জ&#2495; ন&#2494; হয় */
    } 
    #tool-title { font-size: 18px; }
    .sheet-header-box { font-size: 20px; }
    .sheet-sub-header-box, .sheet-footer-box { font-size: 14px; }
}

@media print {
    @page { margin: 0; }
    body * { visibility: hidden; }
    #pages-list, #pages-list * { visibility: visible; }
    #pages-list { position: absolute; left: 0; top: 0; width: 100%; }
    .sheet-page-unit { box-shadow: none; margin: 0; padding: 15mm; page-break-after: always; }
    .hide-col, .resizer { display: none !important; }
}
