/* BASE */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', Arial, sans-serif; }
body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background-color: #ffffff; color-scheme: light !important; }

 
::-webkit-scrollbar, 
.handsontable .wtHolder::-webkit-scrollbar, 
.spreadsheet-wrapper::-webkit-scrollbar { 
    width: 14px !important; 
    height: 14px !important; 
    background-color: #ffffff !important; 
}

::-webkit-scrollbar-button, 
.handsontable .wtHolder::-webkit-scrollbar-button { 
    display: none !important; 
    width: 0 !important; 
    height: 0 !important; 
}

::-webkit-scrollbar-track, 
.handsontable .wtHolder::-webkit-scrollbar-track { 
    background-color: #ffffff !important; 
    border: none !important; 
    box-shadow: none !important; 
}

::-webkit-scrollbar-track:vertical, 
.handsontable .wtHolder::-webkit-scrollbar-track:vertical { 
    border-left: 1px solid #e0e0e0 !important; 
}

::-webkit-scrollbar-track:horizontal, 
.handsontable .wtHolder::-webkit-scrollbar-track:horizontal { 
    border-top: 1px solid #e0e0e0 !important; 
}

 
::-webkit-scrollbar-thumb, 
.handsontable .wtHolder::-webkit-scrollbar-thumb { 
    background-color: #dadce0 !important; 
    border: 4px solid #ffffff !important; 
    border-radius: 10px !important; 
    min-height: 40px !important; 
    background-clip: padding-box !important;  
}

::-webkit-scrollbar-thumb:hover, 
.handsontable .wtHolder::-webkit-scrollbar-thumb:hover { 
    background-color: #bdc1c6 !important; 
}

::-webkit-scrollbar-corner, 
.handsontable .wtHolder::-webkit-scrollbar-corner { 
    background-color: #ffffff !important; 
    border-top: 1px solid #e0e0e0 !important; 
    border-left: 1px solid #e0e0e0 !important; 
}
/* ICONS */
.icon { font-family: 'Material Symbols Outlined'; font-size: 20px; color: #444746; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; transition: background 0.1s;}
.icon:hover { background-color: #f1f3f4; }
.icon.small { font-size: 16px; width: 24px; height: 24px; }
.icon.active { background-color: #d3e3fd; color: #041e49; } 
input[type="color"] { position: absolute; width: 0; height: 0; visibility: hidden; }

/* HEADER */
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 4px 16px; background: #fdfdfd; }
.header-left { display: flex; align-items: center; gap: 4px; }
.sheet-logo { width: 44px; height: 44px; cursor: pointer; display: flex; justify-content: center; align-items: center; margin-right: 4px;}
.file-info { display: flex; flex-direction: column; justify-content: center; margin-top: -2px; }
.file-title-row { display: flex; align-items: center; margin-bottom: 2px; }
.file-name { font-size: 18px; color: #1f1f1f; padding: 1px 7px; border-radius: 4px; cursor: text; line-height: 24px; margin-left: -7px;}
.file-name:hover { outline: 1px solid #dadce0; }
.menu-bar { display: flex; gap: 2px; font-size: 14px; color: #1f1f1f; margin-left: -7px; }
.menu-item { cursor: pointer; padding: 3px 7px; border-radius: 4px; user-select: none; }
.menu-item:hover { background-color: #f1f3f4; }
.header-right { display: flex; align-items: center; gap: 16px; padding-right: 4px; }
.share-btn { display: flex; align-items: center; gap: 8px; background-color: #c2e7ff; color: #001d35; padding: 0 20px 0 16px; height: 40px; border-radius: 20px; font-weight: 500; font-size: 14px; cursor: pointer; border: none;}
.share-btn:hover { background-color: #b3d4ec; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.profile-pic { width: 34px; height: 34px; background: #0f9d58; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 15px;}

/* TOOLBAR */
.toolbar { display: flex; align-items: center; padding: 0 16px; background: #edf2fa; border-radius: 24px; margin: 6px 16px 8px 16px; height: 44px; gap: 2px; }
.divider { width: 1px; height: 20px; background-color: #c7c7c7; margin: 0 6px; }
.font-selector { background: transparent; border: none; font-size: 14px; color: #444746; font-weight: 500; cursor: pointer; outline: none; padding: 0 8px; height: 30px; border-radius: 4px;}
.font-selector:hover { background-color: #e4e7eb; }
.font-size-control { display: flex; align-items: center; border: 1px solid transparent; border-radius: 4px; height: 30px;}
.font-size-control:hover { border-color: #c7c7c7; }
.font-size-input { width: 28px; text-align: center; border: none; background: transparent; font-size: 14px; outline: none; color: #444746; font-weight: 500;}

/* FORMULA BAR */
.formula-bar { display: flex; align-items: center; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; background: #fff; height: 32px; }
.name-box { width: 70px; min-width: 70px; text-align: left; padding-left: 12px; border-right: 1px solid #e0e0e0; font-size: 13px; color: #444746; font-weight: 500;}
.fx-icon { font-family: serif; font-style: italic; color: #5f6368; padding: 0 12px; border-right: 1px solid #e0e0e0; font-size: 15px; }
.formula-input { flex: 1; border: none; outline: none; padding: 0 12px; font-size: 13px; color: #000; height: 100%; }

/* SPREADSHEET AREA */
.spreadsheet-wrapper { flex: 1; overflow: hidden; width: 100%; position: relative; z-index: 1; background-color: #ffffff; }

/* HANDSONTABLE STYLING */
.handsontable { background-color: #ffffff !important; font-size: 13px; }
.handsontable th { background-color: #f8f9fa !important; color: #444746 !important; font-weight: normal; border-color: #c7c7c7 !important; }
.handsontable th.ht__highlight { background-color: #e8eaed !important; color: #1a73e8 !important; } 
.handsontable td { border-color: #e0e0e0 !important; vertical-align: bottom; }
.handsontable .wtBorder.current { background-color: #0b57d0 !important; width: 2px !important; }
.handsontable .wtBorder.area { background-color: #0b57d0 !important; width: 1px !important; }
.handsontable .wtBorder.corner { background-color: #0b57d0 !important; border: none !important; width: 6px !important; height: 6px !important; border-radius: 0 !important; margin-top: -1px !important; margin-left: -1px !important;} 
textarea.handsontableInput { background-color: #ffffff !important; color: #000000 !important; box-shadow: 0 0 0 2px #1a73e8 inset !important; padding: 0 4px !important; }
.htContextMenu table { background-color: #ffffff !important; box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important; border-radius: 4px; padding: 4px 0 !important; }
.htContextMenu table tbody tr td { background-color: #ffffff !important; color: #1f1f1f !important; font-size: 13px; padding: 6px 12px !important; }
.htContextMenu table tbody tr td:hover, .htContextMenu table tbody tr td.htItemWrapper:hover { background-color: #f1f3f4 !important; }

.bottom-bar { display: flex; align-items: center; background: #fdfdfd; border-top: 1px solid #e0e0e0; height: 40px; padding: 0 16px; gap: 8px; }
.sheet-tab { background: #fff; color: #0b57d0; font-size: 13px; font-weight: 500; padding: 8px 16px; border-bottom: 3px solid #0b57d0; cursor: pointer; }


 
.htDropdownMenu {
    padding-bottom: 12px !important; 
}
.htDropdownMenu .wtHolder {
    overflow: visible !important; 
}

 
.htFiltersMenuActionBar {
    padding: 10px 10px 15px 10px !important;  
    height: auto !important;
}

 .htFiltersMenuActionBar .htUIButton input {
    box-sizing: border-box !important;
    height: 34px !important;         
    padding: 0 16px !important;       
    line-height: 32px !important;     
    vertical-align: middle !important;
    cursor: pointer !important;
}

/* OK ღილაკი */
.htFiltersMenuActionBar .htUIButton.htUIButtonOK input {
    background-color: #1a73e8 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

/* Cancel ღილაკი */
.htFiltersMenuActionBar .htUIButton.htUIButtonCancel input {
    background-color: white !important;
    color: #1a73e8 !important;
    border: 1px solid #dadce0 !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}