/*
 * Offline-source employee window geometry — 2026-11-18, batch 4.
 *
 * Exact original reference in the uploaded RAR:
 * ERPSYSTEM/modules/employees/views/employees_window.py
 * EmployeesWindow._create_ui, _create_search_widget, _create_toolbar,
 * _fit_employee_table_columns and _apply_styles.
 *
 * Layout changes only. No financial posting, authorization, data, API,
 * storage, or Master Owner styling changes.
 */
body.qt-desktop-mode .qt-employees-workspace{
 box-sizing:border-box;display:flex;flex-direction:column;direction:rtl;
 padding:8px;gap:8px;min-width:0;min-height:0;
 background:#f5f7fa;color:#173b66;
 font-family:Arial,Tahoma,sans-serif;
}

/* Original employeesSearchBar: margins 12/8, 8px spacing, 40px inputs. */
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row{
 box-sizing:border-box;display:flex;flex-direction:row;direction:rtl;
 align-items:center;min-width:0;flex-wrap:wrap;gap:8px;
 padding:8px 12px;border:1px solid #d7e0ea;border-radius:9px;
 background:#fff;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-search-label,
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>label>span{
 flex:0 0 auto;color:#244875;font:700 12.67px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>input[type=search]{
 box-sizing:border-box;min-width:235px;flex:3 1 235px;
 height:40px;min-height:40px;padding:5px 10px;
 background:#fff;border:1px solid #c8d3df;border-radius:7px;
 color:#244875;font:500 12.67px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>label{
 box-sizing:border-box;display:flex;flex-direction:row;
 align-items:center;gap:7px;min-width:0;white-space:nowrap;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>label>select{
 box-sizing:border-box;width:155px;min-width:155px;max-width:210px;
 height:40px;min-height:40px;padding:5px 10px;
 color:#244875;background:#fff;border:1px solid #c8d3df;border-radius:7px;
 font:500 12.67px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>.button{
 box-sizing:border-box;min-height:40px;height:40px;
 padding:5px 14px;border-radius:8px;white-space:nowrap;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>.button:last-child{
 width:118px;min-width:118px;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row :is(input,select):focus-visible{
 border-color:#2e69a3;background:#fbfdff;outline:1px solid #2e69a3;outline-offset:0;
}

/* Original employeesToolbar: 40px command buttons, 7px gap, primary 3
   fixed width, additional cloud-only HR button remains accessible. */
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar{
 box-sizing:border-box;display:flex;direction:rtl;align-items:center;
 gap:7px;padding:8px 10px;min-width:0;flex-wrap:wrap;
 background:#fff;border:1px solid #d7e0ea;border-radius:9px;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button{
 box-sizing:border-box;height:40px;min-height:40px;
 border:0;border-radius:8px;padding:5px 14px;
 background:#244875;color:#fff;flex:0 0 auto;
 white-space:nowrap;font:700 12.67px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(1){
 background:#18a957;width:142px;min-width:142px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(2){
 background:#1f5b93;width:116px;min-width:116px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(3){
 background:#e53935;width:106px;min-width:106px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(5){
 min-width:100px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(6){
 min-width:92px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(7){
 min-width:150px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(8){
 min-width:135px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(9){
 min-width:175px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:last-child{
 min-width:96px
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:hover:not(:disabled){
 background:#1a3558;color:#fff
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(1):hover:not(:disabled){
 background:#158b49
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(2):hover:not(:disabled){
 background:#184d7f
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:nth-child(3):hover:not(:disabled){
 background:#c62828
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-toolbar>.button:disabled{
 opacity:.55;cursor:not-allowed
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-source-separator{
 align-self:center;flex:0 0 1px;width:1px;height:28px;
 background:#d1d1d6;margin:0 5px;
}

/* Offline: QHBox content 5:0 with right-side 270–315px details. */
@media(min-width:1151px){
 body.qt-desktop-mode .qt-employees-workspace>.qt-employee-columns{
  display:grid;grid-template-columns:minmax(660px,1fr) clamp(270px,24%,315px);
  gap:10px;align-items:stretch;min-width:0;min-height:0;flex:1;
 }
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list,
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details{
 box-sizing:border-box;background:#fff;border:1px solid #d7e0ea;
 border-radius:9px;min-width:0;min-height:0;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>h2,
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details>h2{
 box-sizing:border-box;display:flex;align-items:center;
 margin:0;padding:0 16px;color:#fff;
 background:#244875;font:700 14px Arial,Tahoma,sans-serif;
 border:0;border-radius:8px 8px 0 0;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>h2{
 height:44px;min-height:44px;flex:0 0 44px;
 border-bottom:1px solid #3a5e88;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details>h2{
 height:46px;min-height:46px;flex:0 0 46px;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll{
 border:0;border-radius:0;min-width:0;min-height:160px;
 overflow:auto;scrollbar-width:thin;background:#fff;
}

/* QTableWidget original 8 columns; header 42px, item row 42px,
   fixed preferred widths [58,152,108,108,184,112,114,84]. */
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table{
 box-sizing:border-box;min-width:920px;width:100%;
 border-collapse:collapse;table-layout:fixed;direction:rtl;
 color:#244875;background:#fff;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table>thead th{
 box-sizing:border-box;height:42px;min-height:42px;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 background:#244875;color:#fff;
 padding:7px 5px;border:0;border-inline-start:1px solid #3a5e88;
 text-align:center;font:700 12.67px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table>tbody td{
 box-sizing:border-box;height:42px;min-height:42px;padding:6px;
 border:0;border-bottom:1px solid #edf1f5;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 color:#244875;text-align:center;font:500 12.67px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table>tbody tr:nth-child(even){
 background:#fbfcfe
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table>tbody tr[aria-selected=true]{
 background:#dceeff
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table>tbody tr:hover:not([aria-selected=true]){
 background:#f2f7fc
}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(1){width:58px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(2){width:152px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(3){width:108px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(4){width:108px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(5){width:184px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(6){width:112px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(7){width:114px}
body.qt-desktop-mode .qt-employees-workspace .qt-employees-list>.table-scroll>table.qt-employees-table :is(th,td):nth-child(8){width:84px}

/* Employee details: Qt 35px value wells and 96–126px notes. Cloud
   extras stay visible beneath the native profile rows. */
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details .qt-employee-detail-card{
 display:flex;flex-direction:column;padding:12px;gap:7px;
 min-width:0;min-height:0;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details .qt-employee-detail-card>p{
 display:flex;gap:7px;align-items:center;min-height:35px;margin:0;
 border:0;min-width:0;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details .qt-employee-detail-card>p>strong{
 flex:0 0 85px;min-width:85px;font:700 12.67px Arial,Tahoma,sans-serif;
 color:#244875;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details .qt-employee-detail-card>p>span{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 flex:1;min-width:0;min-height:35px;
 padding:4px 8px;background:#f3f6f9;border:1px solid #e0e7ef;
 border-radius:6px;overflow-wrap:anywhere;
 color:#173b66;font-size:12.67px;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details fieldset.qt-tables-detail-group{
 box-sizing:border-box;min-height:96px;max-height:160px;
 margin:0 12px;border:1px solid #d8e0e9;border-radius:7px;
 background:#fbfcfe;overflow:auto;
}
body.qt-desktop-mode .qt-employees-workspace .qt-employee-details fieldset.qt-tables-detail-group legend{
 font:700 12.67px Arial,Tahoma,sans-serif;color:#244875;
}

/* Native status bar: minimum 27px, white with subtle top divider. */
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-statusbar{
 box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
 direction:ltr;min-height:27px;padding:0 8px;gap:10px;flex-wrap:wrap;
 background:#fff;color:#244875;border:0;border-top:1px solid #d9e1ea;
 font:700 12px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-statusbar>.qt-employee-filter-status{
 margin-inline-end:auto;color:#60758f;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-statusbar>.qt-employee-update-status{
 padding:2px 10px;color:#159447;border-inline-start:1px solid #d9e1ea;
}
body.qt-desktop-mode .qt-employees-workspace>.qt-employee-statusbar>.qt-employee-total{
 padding:2px 8px;margin:0;color:#244875;font-weight:700;
}
@media(max-width:1150px){
 body.qt-desktop-mode .qt-employees-workspace>.qt-employee-columns{
  display:grid;grid-template-columns:minmax(0,1fr);gap:10px;
 }
 body.qt-desktop-mode .qt-employees-workspace>.qt-employee-filter-row>input[type=search]{
  min-width:180px
 }
}
