/* Shared authenticated workspace: equal gutters and table density across modules. */
body .qw-app-content > main#main-content {
    width:100%; max-width:none; margin-inline:0;
    padding:20px 26px 28px;
    min-width:0;
}
#main-content .employee-dashboard-page { width:100%; max-width:none; }
#main-content table:not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) {
    width:100%; font-size:12px; line-height:18px;
}
#main-content table:not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) :is(th,td) {
    vertical-align:middle; font-size:12px; line-height:18px;
}
#main-content table:not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) thead th {
    padding:10px 12px; font-size:11px; line-height:16px;
}
#main-content table:not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) td .text-xs {
    font-size:11px; line-height:16px;
}
@media(min-width:640px) {
    #main-content table:not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) tbody :is(th,td),
    #main-content table:not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) tfoot :is(th,td) {
        height:44px; padding:8px 12px;
    }
}
@media(max-width:1023px) {
    body .qw-app-content > main#main-content { padding:18px 18px 24px; }
}
@media(max-width:639px) {
    body .qw-app-content > main#main-content { padding:16px 12px 22px; }
    #main-content table:not(.em-table):not(:where(dialog table,[role="dialog"] table,[role="alertdialog"] table)) tbody :is(th,td) { padding:8px 10px; }
    /* Employee management retains its existing mobile card layout. */
    #main-content .em-table td { height:auto; }
}

@media(min-width:1024px) { html:has(.qw-app-content) { scrollbar-gutter:stable; } }
