.excel-soft-wrapper {
    /* Biến CSS độc lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f4f4f5;
    --clr-yellow: #fde74c;
    --clr-cyan: #00f5d4;
    --clr-green: #06d6a0;
    --clr-red: #ff006e;
    --clr-white: #ffffff;
    --clr-text: #111111;

    max-width: 1050px; 
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--clr-text);
    background: var(--bg-main);
    padding: 20px;
    border: var(--neo-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0px #111111;
}

.excel-soft-wrapper * { box-sizing: border-box; }

.excel-soft-header {
    background: #111; padding: 20px; color: #fff;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 20px; box-shadow: var(--neo-shadow);
}
.excel-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-green); text-transform: uppercase;}
.excel-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ccc;}

/* CẢNH BÁO BẢO MẬT */
.excel-alert-box {
    display: flex; align-items: center; gap: 15px; background: #e0fbfc; border: 2px dashed #111; 
    border-radius: 10px; padding: 12px 15px; margin-bottom: 20px; box-shadow: 3px 3px 0px #111;
}
.excel-alert-icon { font-size: 1.8rem; }
.excel-alert-content { font-size: 0.85rem; font-weight: 600; color: #111; line-height: 1.5; }

/* KHUNG WORKSPACE (Dùng cho Fullscreen) */
.excel-workspace {
    display: flex; flex-direction: column; background: var(--bg-main); transition: 0.3s;
}

/* CHẾ ĐỘ TOÀN MÀN HÌNH */
.excel-fullscreen-mode {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    padding: 20px;
    background: #fdfdfd;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
/* Ép chiều cao bảng tính dài ra khi ở chế độ Full Screen */
.excel-fullscreen-mode .jexcel_content {
    max-height: calc(100vh - 160px) !important;
}

/* TOOLBAR */
.excel-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px;
    background: #fff; padding: 12px 15px; border: var(--neo-border); border-radius: 10px; box-shadow: 4px 4px 0px #111; margin-bottom: 15px;
}
.excel-tools-left, .excel-tools-right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center;}

.excel-btn {
    padding: 10px 15px; border: 2px solid #111; border-radius: 8px; font-size: 0.95rem; font-weight: 900;
    cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s; text-transform: uppercase; color: #111; display: inline-block;
}
.excel-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }
.excel-btn-cyan { background: var(--clr-cyan); }
.excel-btn-green { background: var(--clr-green); }

.excel-btn-icon {
    padding: 10px 12px; background: #fff; border: 2px solid #111; border-radius: 8px;
    font-size: 0.9rem; font-weight: 900; cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s; color: #111;
}
.excel-btn-icon:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }
.excel-btn-dark { background: #111; color: var(--clr-yellow); }

.excel-file-info {
    font-size: 0.9rem; background: #111; color: var(--clr-yellow); padding: 8px 15px; 
    border-radius: 6px; margin-bottom: 15px; display: inline-block; font-weight: bold; align-self: flex-start;
}
.excel-file-info b { color: #fff; }

/* CONTAINER BẢNG TÍNH */
.excel-sheet-container {
    width: 100%; background: #fff; border: 3px solid #111; border-radius: 8px; box-shadow: 5px 5px 0px #111; 
    /* ĐÃ BỎ overflow: hidden ĐỂ SCROLL NGANG HOẠT ĐỘNG MƯỢT MÀ */
}

/* Tùy biến thanh Mini Toolbar của Jspreadsheet */
.jexcel_toolbar { background: #fdfdfd; border-bottom: 2px dashed #ccc; padding: 5px; }
.jexcel_toolbar i { color: #111; font-weight: bold; }

/* Ép kiểu cho thư viện jExcel */
.jexcel_container { font-family: system-ui, sans-serif !important; width: 100%;}
.jexcel_content { max-height: 500px; overflow: auto; } /* Cuộn ngang/dọc được xử lý ở đây */
.jexcel tbody tr td { font-size: 0.95rem; padding: 4px; border-color: #ccc; }
.jexcel thead td { font-weight: bold; background-color: #eee; border-color: #111; color: #111;}

/* INFO BOX */
.excel-info-box { background: rgba(255,255,255,0.6); padding: 15px; border: 2px dashed #111; border-radius: 8px; }
.excel-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; font-size: 1rem;}
.excel-info-box p { margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.6; color: #333;}
.excel-info-box code { background: #fff; border: 1px solid #111; padding: 2px 5px; border-radius: 4px; font-weight: bold; }