




@media (min-width:601px) and (max-width:1180px){
  :root{--sidebar:238px}
  .menu-bar{gap:0;padding:0 8px}
  .menu-bar button{padding:8px 7px;font-size:10px}
  .workspace{padding-left:20px;padding-right:20px}
  .toolbar-main{grid-template-columns:repeat(2,minmax(0,1fr))}
  .device-toolbar .toolbar-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .panel-head{gap:10px}
  .panel-tools{flex-wrap:wrap}
  .legacy-filter-grid{grid-template-columns:1fr 1fr!important}
  .legacy-time-range{grid-column:1/-1}
}


@media (min-width:601px) and (max-width:900px){
  :root{--topbar:58px;--footer-h:26px}
  html,body,#app{max-width:100%;overflow-x:hidden}
  body{background:#f3f7fb}

  .topbar{
    z-index:70;
    grid-template-columns:minmax(0,1fr) auto;
    height:var(--topbar);
    background:rgba(255,255,255,.98);
  }
  .menu-bar{display:none}
  .brand{min-width:0;border-right:0;padding:0 12px;gap:8px}
  .brand>div:last-child{min-width:0}
  .brand strong{font-size:13.5px;white-space:nowrap}
  .brand small{font-size:8.5px;white-space:nowrap}
  .brand .brand-mark{width:34px;height:34px;border-radius:9px}
  
  .userbox{padding:0 9px;border-left:0;gap:6px}
  .userbox>div:not(.avatar){display:none}
  .userbox .avatar{display:none}
  .userbox .icon-btn{width:34px;height:34px}

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  .workspace-head{gap:10px;margin-bottom:12px}
  .workspace-head h1{font-size:21px}

  .table-wrap,.legacy-report-table-wrap,.schedule-table-wrap{
    width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:auto;
    -webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
  }
  .data-table,.legacy-report-table,.schedule-data-table{width:max-content!important;min-width:100%!important;table-layout:auto!important}
  .data-table th,.data-table td,.legacy-report-table th,.legacy-report-table td,.schedule-data-table th,.schedule-data-table td{white-space:nowrap!important}

  .modal-backdrop{padding:10px!important;align-items:center;overflow:hidden}
  .modal-card,.modal-card.modal-wide,.modal-card.modal-schedule,.modal-card.modal-calculated-item{
    width:min(720px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important;overflow:auto!important;border-radius:14px;
  }
  .modal-head{position:sticky;top:0;z-index:3;background:#fff}
  .form-grid{grid-template-columns:1fr!important}
  .form-grid .span-two,.modal-actions{grid-column:1/-1}
  .calculated-item-identity,.attendance-edit-identity{grid-template-columns:1fr!important}
  .calculated-item-metric-grid,.modal-calculated-item .calculated-item-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .modal-actions{position:sticky;bottom:0;background:#fff;z-index:2}

  .global-select-picker{max-width:calc(100vw - 20px)!important}
  .operation-dock,.operation-dock.download-active,.operation-dock.download-all-active{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;max-width:none!important}
  .toast-stack{left:10px!important;right:10px!important;width:auto!important}
  .machine-quick-dock{left:10px!important;right:10px!important;bottom:10px!important;max-width:none!important}
  .app-system-footer{margin-left:0!important;padding-left:12px;padding-right:12px}
  
  
}


@media (min-width:601px) and (max-width:720px){
  :root{
    --topbar:54px;
    --m-gap:7px;
    --m-control:34px;
    --m-radius:9px;
    --m-panel-radius:11px;
  }

  html{scroll-padding-top:calc(var(--topbar) + 8px)}
  body{font-size:13px}
  .topbar{height:var(--topbar)}
  .brand{padding:0 8px;gap:7px}
  .brand .brand-mark{width:32px;height:32px;border-radius:8px}
  .brand strong{font-size:13px}
  .brand small{display:none}
  .brand>div:last-child{max-width:145px;overflow:hidden}
  
  .userbox{padding-right:7px;padding-left:2px}
  .userbox .icon-btn{width:34px!important;height:34px!important;border-radius:8px!important}

  .workspace{padding:calc(var(--topbar) + 10px) 8px 34px!important}
  .workspace-head{min-height:36px;margin-bottom:9px;padding:0 2px!important;align-items:center}
  .workspace-head>div:first-child{padding-left:10px}
  .workspace-head>div:first-child:before{top:3px;bottom:3px;width:3px}
  .workspace-head h1{font-size:19px!important;line-height:1.1;letter-spacing:-.025em}
  .head-actions{gap:5px}
  .head-actions .btn{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:0!important;border-radius:8px!important}
  .head-actions .btn i{font-size:13px!important}

  .alert{padding:9px 10px;margin-bottom:9px;border-radius:9px;gap:8px}
  .alert b{font-size:10.5px}.alert span{font-size:9.5px}.alert button{font-size:18px}

  
  .panel,.toolbar-card,.report-hero{border-radius:var(--m-panel-radius)!important;box-shadow:0 5px 16px rgba(35,67,103,.055)!important}
  .panel{overflow:hidden}
  .toolbar-card{padding:8px!important;margin-bottom:9px!important}
  .panel-head{padding:9px 10px!important;gap:7px!important;align-items:center!important;flex-direction:row!important;flex-wrap:wrap!important}
  .panel-head>div:first-child{min-width:0;flex:1 1 auto}
  .panel-head h2{font-size:13px!important;line-height:1.2!important;margin:0}
  .panel-head>div>small{display:none!important}
  .report-title-only{display:none!important}

  
  .btn:not(.full){
    min-height:var(--m-control)!important;height:var(--m-control)!important;width:auto!important;
    padding:0 8px!important;border-radius:8px!important;gap:5px!important;
    font-size:10px!important;line-height:1!important;letter-spacing:0!important;box-shadow:none!important;
  }
  .btn:not(.full) i{font-size:11px!important}
  .btn:hover:not(:disabled){transform:none!important}
  .icon-btn{width:32px!important;height:32px!important;border-radius:8px!important}
  .mini-device-btn{width:30px!important;height:30px!important;border-radius:7px!important}

  input,select,textarea{border-radius:8px!important;font-size:14px!important}
  input,select{height:36px!important;padding-left:9px!important;padding-right:28px!important}
  textarea{padding:9px!important}
  .searchbox,.legacy-search{min-width:0!important;width:100%!important;height:36px!important;border-radius:8px!important;padding:0 9px!important}
  .searchbox input,.legacy-search input{height:34px!important;font-size:14px!important;padding-right:4px!important}
  .searchbox i,.legacy-search i{font-size:11px!important}

  
  .panel-tools,.employee-tools,.schedule-filter-tools,.schedule-subtools{
    width:100%!important;display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;
  }
  .panel-tools .searchbox,.employee-tools .searchbox,.schedule-filter-tools .searchbox,.schedule-subtools .searchbox{
    flex:1 1 100%!important;width:100%!important;
  }
  .panel-tools .btn,.employee-tools .btn,.schedule-filter-tools .btn,.schedule-subtools .btn{flex:0 0 auto!important;min-width:0!important}
  .panel-tools select,.panel-tools input[type=date],.employee-tools select,.schedule-filter-tools select,.schedule-subtools select{
    flex:1 1 132px!important;min-width:112px!important;height:36px!important;font-size:12px!important;
  }

  
  .device-toolbar{padding:7px!important}
  .toolbar-main,.device-toolbar .toolbar-main{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .action-tile{min-height:50px!important;padding:7px!important;gap:6px!important;border-radius:9px!important}
  .action-tile>i{width:27px!important;height:27px!important;flex:0 0 27px!important;font-size:12px!important;border-radius:7px!important}
  .action-tile b{font-size:9.7px!important;line-height:1.15!important}
  .action-tile small{display:none!important}
  .toolbar-secondary,.device-toolbar .toolbar-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding-top:6px!important;margin-top:6px!important}
  .toolbar-secondary .btn{width:100%!important;height:32px!important;min-height:32px!important;padding:0 6px!important;font-size:9px!important;overflow:hidden;text-overflow:ellipsis}

  
  .table-wrap,.legacy-report-table-wrap,.schedule-table-wrap{
    margin:0!important;border-radius:0!important;overflow-x:auto!important;overflow-y:auto!important;
    scrollbar-width:thin;scrollbar-color:#b9c9da transparent;
  }
  .table-wrap::-webkit-scrollbar,.legacy-report-table-wrap::-webkit-scrollbar,.schedule-table-wrap::-webkit-scrollbar{height:5px;width:5px}
  .table-wrap::-webkit-scrollbar-thumb,.legacy-report-table-wrap::-webkit-scrollbar-thumb,.schedule-table-wrap::-webkit-scrollbar-thumb{background:#b9c9da;border-radius:999px}
  .data-table,.legacy-report-table,.schedule-data-table{width:max-content!important;min-width:100%!important;table-layout:auto!important}
  .data-table thead th,.legacy-report-table thead th,.schedule-data-table thead th{
    position:sticky!important;top:0!important;z-index:2!important;
    height:34px!important;padding:6px 8px!important;font-size:9px!important;line-height:1.1!important;
    white-space:nowrap!important;text-align:center!important;
  }
  .data-table tbody td,.legacy-report-table tbody td,.schedule-data-table tbody td{
    height:38px!important;padding:6px 8px!important;font-size:10.5px!important;line-height:1.25!important;
    white-space:nowrap!important;vertical-align:middle!important;
  }
  .data-table code{font-size:10px!important}
  .data-table .cell-sub{font-size:8.5px!important}
  .machine-list-table{min-width:760px!important}
  .ac-log-table{min-width:720px!important}
  
  .legacy-report-table{min-width:820px!important}
  .schedule-data-table{min-width:760px!important}
  .holiday-table{min-width:600px!important}
  .leave-table{min-width:820px!important}
  .simple-data-table{width:100%!important;min-width:100%!important;table-layout:fixed!important}
  .simple-data-table th,.simple-data-table td{white-space:normal!important;overflow-wrap:anywhere!important}

  
  .log-pagination{
    display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;
    gap:6px!important;padding:8px 9px!important;background:#fbfdff!important;
  }
  .log-page-info{width:100%!important;text-align:center!important;font-size:9px!important;line-height:1.3!important}
  .log-page-actions{width:100%!important;display:flex!important;justify-content:flex-start!important;gap:4px!important;overflow-x:auto!important;padding-bottom:1px!important;scrollbar-width:none}
  .log-page-actions::-webkit-scrollbar{display:none}
  .pager-nav,.pager-number{height:29px!important;min-height:29px!important;border-radius:7px!important;font-size:9px!important;flex:0 0 auto!important}
  .pager-nav{padding:0 7px!important;gap:3px!important}
  .pager-nav span{display:none!important}
  .pager-number{width:29px!important}

  
  .report-panel{overflow:hidden!important}
  .report-panel .report-tabs{
    display:flex!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;
    padding:7px 8px!important;border-bottom:1px solid #e5edf5!important;background:#fbfdff!important;
    scroll-snap-type:x proximity;scrollbar-width:none;
  }
  .report-panel .report-tabs::-webkit-scrollbar{display:none}
  .report-panel .report-tabs button{
    flex:0 0 auto!important;height:32px!important;padding:0 10px!important;border-radius:8px!important;
    font-size:9.5px!important;white-space:nowrap!important;scroll-snap-align:start;
  }
  .legacy-report-controls{padding:8px!important;background:#f9fbfd!important}
  .legacy-filter-grid{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  .legacy-field{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;margin:0!important}
  .legacy-field>span,.legacy-label{font-size:9px!important;font-weight:800!important;color:#607086!important}
  .legacy-select-shell{min-width:0!important}
  .legacy-field select{height:36px!important;font-size:13px!important}
  .legacy-time-range{
    grid-column:auto!important;display:grid!important;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr)!important;
    align-items:center!important;gap:6px!important;
  }
  .legacy-time-range>.legacy-label{grid-column:1!important;align-self:center!important;margin:0!important}
  .legacy-time-range label{display:block!important;margin:0!important;min-width:0!important}
  .legacy-time-range label small{display:block!important;margin-bottom:3px!important;font-size:8px!important;color:#8391a2!important}
  .legacy-time-range input{width:100%!important;min-width:0!important;height:36px!important;font-size:12px!important;padding-left:7px!important;padding-right:5px!important}
  .legacy-report-action-row{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-top:7px!important;align-items:center!important}
  .legacy-report-action-row .legacy-search{flex:1 1 100%!important;max-width:none!important}
  .legacy-report-actions{display:flex!important;flex:1 1 100%!important;width:100%!important;gap:5px!important;flex-wrap:wrap!important;justify-content:flex-start!important;margin:0!important}
  .legacy-report-actions .btn{height:32px!important;min-height:32px!important;padding:0 8px!important;font-size:9.5px!important;min-width:0!important}
  .legacy-sort-row{
    display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;
    min-height:36px!important;margin-top:7px!important;padding:4px 5px!important;overflow-x:auto!important;
    border-radius:8px!important;scrollbar-width:none;
  }
  .legacy-sort-row::-webkit-scrollbar{display:none}
  .legacy-sort-title{flex:0 0 auto!important;font-size:8.8px!important;padding:0 2px!important;margin:0!important}
  .legacy-sort-row label{
    flex:0 0 auto!important;height:27px!important;padding:0 7px!important;margin:0!important;gap:4px!important;
    border:1px solid #dce6ef!important;border-radius:7px!important;background:#fff!important;font-size:8.8px!important;font-weight:700!important;
  }
  .legacy-sort-row label.descend{padding-left:7px!important;border-left:1px solid #dce6ef!important}
  .legacy-sort-row input[type=checkbox]{width:12px!important;height:12px!important;margin:0!important}
  .report-live-status{flex:0 0 auto!important;font-size:8.5px!important}
  .legacy-report-summary{
    display:flex!important;flex-wrap:nowrap!important;gap:12px!important;overflow-x:auto!important;
    min-height:32px!important;padding:6px 9px!important;font-size:9px!important;scrollbar-width:none;
  }
  .legacy-report-summary::-webkit-scrollbar{display:none}
  .legacy-report-summary span{flex:0 0 auto!important;white-space:nowrap!important}
  .legacy-report-gridbar{padding:6px 9px!important;min-height:34px!important}
  .legacy-report-gridbar>span{display:none!important}
  .legacy-report-gridbar small{font-size:9px!important;margin-left:auto!important}
  .legacy-report-table-wrap{max-height:58vh!important}

  
  .employee-tools{gap:6px!important}
  .employee-tools .searchbox.wide{min-width:0!important;width:100%!important}
  .dept-grid,.cards-grid{grid-template-columns:1fr!important;gap:8px!important}

  
  .schedule-panel{overflow:hidden!important}
  .schedule-tabs{
    width:100%!important;display:flex!important;grid-template-columns:none!important;gap:4px!important;
    overflow-x:auto!important;padding:4px!important;scrollbar-width:none;
  }
  .schedule-tabs::-webkit-scrollbar{display:none}
  .schedule-tabs button{flex:0 0 auto!important;height:30px!important;padding:0 8px!important;font-size:9.5px!important}
  .schedule-subtools{padding:8px!important;background:#fbfdff!important}
  .schedule-flow-note{display:none!important}
  .schedule-filter-tools select,.schedule-filter-tools .btn,.schedule-subtools select,.schedule-subtools .btn{flex:0 0 auto!important}
  .shift-pattern-grid{grid-template-columns:1fr!important}
  .schedule-data-table th,.schedule-data-table td{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;text-align:center!important}
  .schedule-data-table td.schedule-name-cell,.schedule-data-table td.schedule-pattern-cell{text-align:left!important}

  
  .attendance-settings-page{display:block!important}
  .attendance-settings-groups{grid-template-columns:1fr!important;gap:8px!important;margin-top:0!important}
  .attendance-setting-group{border-radius:10px!important}
  .attendance-setting-group-head{padding:9px 10px!important}
  .attendance-setting-list{padding:0!important}
  .attendance-setting-row{padding:9px 10px!important;gap:8px!important}
  .attendance-setting-row h4,.attendance-setting-row b{font-size:10.5px!important}
  .attendance-setting-row p,.attendance-setting-row small{font-size:9px!important}
  .attendance-setting-value{font-size:10px!important}
  .attendance-settings-control{grid-template-columns:1fr!important;gap:6px!important;padding:9px!important}
  .attendance-settings-number,.attendance-settings-toggle{justify-content:flex-start!important;width:100%!important}
  .attendance-settings-number input{width:100%!important;min-width:0!important}

  

  
  .modal-backdrop{padding:6px!important;align-items:flex-end!important}
  .modal-card,.modal-card.modal-wide,.modal-card.modal-schedule,.modal-card.modal-calculated-item{
    width:100%!important;max-width:100%!important;max-height:calc(100dvh - 6px)!important;
    border-radius:14px 14px 6px 6px!important;overflow:auto!important;
  }
  .modal-head{padding:10px 11px!important;min-height:48px!important}
  .modal-head h3{font-size:14px!important}.modal-head span{font-size:9px!important}
  .form-grid{padding:10px!important;gap:0 8px!important}
  .form-grid label{font-size:10px!important;gap:5px!important;margin-bottom:9px!important}
  .form-grid input,.form-grid select{height:36px!important;font-size:14px!important}
  .calculated-item-metric-grid,.modal-calculated-item .calculated-item-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .attendance-edit-note,.employee-status-note,.upload-info{font-size:9px!important;padding:8px!important;line-height:1.4!important}
  .modal-actions{display:flex!important;justify-content:flex-end!important;gap:6px!important;padding:9px 0 1px!important}
  .modal-actions .btn:not(.full){height:34px!important;min-height:34px!important;font-size:10px!important}
  .shift-pattern-grid{padding:0 10px 10px!important}

  
  .global-select-picker{width:calc(100vw - 12px)!important;left:6px!important;max-width:none!important;padding:6px!important;border-radius:10px!important}
  .global-select-search{height:36px!important;font-size:14px!important;border-radius:8px!important}
  .global-select-options{max-height:42vh!important;margin-top:5px!important}
  .global-select-option{min-height:34px!important;padding:7px 8px!important;border-radius:7px!important;font-size:10.5px!important}

  
  .toast-stack{top:calc(var(--topbar) + 7px)!important;left:7px!important;right:7px!important}
  .toast{padding:9px!important;border-radius:9px!important;font-size:9.5px!important}
  .toast-actions{gap:5px!important;margin-top:6px!important}
  .toast-actions button{height:27px!important;padding:0 7px!important;font-size:8.5px!important}
  .operation-dock{padding:9px!important;border-radius:10px!important}
  .download-all-current{align-items:flex-start!important;flex-direction:column!important;gap:3px!important}
  .download-all-current span{white-space:normal!important}
  .download-all-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .machine-quick-dock{padding:7px!important;gap:7px!important;border-radius:10px!important}
  .machine-quick-info{min-width:0!important;flex:1!important;padding-right:6px!important}
  .machine-quick-info span{display:none!important}
  .machine-quick-actions{grid-template-columns:repeat(3,34px)!important;gap:4px!important}
  .quick-dock-action{width:34px!important;height:34px!important;padding:0!important;display:grid!important;place-items:center!important}
  .quick-dock-action>span:last-child{display:none!important}

  
  
  
  
  
  
  .system-footer{font-size:8px!important}

  
  .machine-context-menu,.schedule-context-menu,.employee-context-menu,.report-context-menu{
    width:min(260px,calc(100vw - 16px))!important;min-width:0!important;max-width:calc(100vw - 16px)!important;
    border-radius:10px!important;
  }
  .mobile-longpress-target{-webkit-touch-callout:none;touch-action:pan-x pan-y}
}








@media (min-width:601px) and (max-width: 900px){
  .department-tree{padding:8px!important;gap:6px!important}
  .department-node{grid-template-columns:30px minmax(0,1fr) auto!important;gap:8px!important;min-height:54px!important;margin-left:calc(var(--dept-level) * 12px)!important;padding:8px!important}
  .department-node-icon{width:30px!important;height:30px!important;border-radius:8px!important;font-size:12px!important}
  .department-node-title{gap:5px!important}
  .department-node-title b{font-size:10.5px!important}
  .department-node-title .tag{font-size:7.5px!important;min-height:17px!important;padding:0 5px!important}
  .department-node-copy>small{font-size:8px!important;margin-top:2px!important}
  .department-node-stats{grid-column:2/3!important;display:flex!important;gap:5px!important;margin-top:2px!important}
  .department-node-stats>span{min-width:0!important;padding:4px 6px!important;border-radius:7px!important}
  .department-node-stats b{font-size:9.5px!important}
  .department-node-stats small{font-size:7px!important}
  .department-node-actions{grid-column:3!important;grid-row:1/3!important;align-self:center!important;flex-direction:column!important;gap:4px!important}
  .department-node-actions .icon-btn{width:28px!important;height:28px!important;border-radius:7px!important;font-size:10px!important}
}



@media (min-width:601px) and (max-width:900px){
  :root{--m-page-x:8px;--m-section-gap:10px;--m-panel-x:10px;--m-cell-x:9px;--m-cell-y:8px}
  .workspace{padding-left:var(--m-page-x)!important;padding-right:var(--m-page-x)!important}
  .workspace-head{margin-bottom:var(--m-section-gap)!important;padding-left:1px!important;padding-right:1px!important}
  .toolbar-card,.panel,.report-hero,.machine-log-panel,.database-panel,.schedule-panel{margin-top:0!important;margin-bottom:var(--m-section-gap)!important}
  .panel-head{padding:10px var(--m-panel-x)!important;gap:8px!important;min-height:46px!important}
  .toolbar-card{padding:8px!important}
  .toolbar-main,.toolbar-secondary{gap:6px!important}
  .report-panel .report-tabs,.legacy-report-summary,.legacy-report-gridbar,.schedule-subtools,.schedule-flow-note{padding-left:var(--m-panel-x)!important;padding-right:var(--m-panel-x)!important}
  .data-table thead th,.data-table tbody td,.legacy-report-table thead th,.legacy-report-table tbody td,.simple-data-table th,.simple-data-table td,.schedule-data-table th,.schedule-data-table td{padding-left:var(--m-cell-x)!important;padding-right:var(--m-cell-x)!important;padding-top:var(--m-cell-y)!important;padding-bottom:var(--m-cell-y)!important;vertical-align:middle!important}
  .log-pagination,.machine-pagination,.employee-pagination,.report-pagination,.simple-pagination{padding:8px var(--m-panel-x)!important}
  .attendance-settings-page{gap:var(--m-section-gap)!important}
}



@media (min-width:601px) and (max-width:720px){
  :root{
    --mf-page:10px;
    --mf-gap:10px;
    --mf-card:12px;
    --mf-control:42px;
    --mf-touch:44px;
  }
  html,body,#app{width:100%;max-width:100%;overflow-x:hidden}
  body{background:#f4f7fb;-webkit-text-size-adjust:100%}
  button,input,select,textarea{touch-action:manipulation}

  /* App bar */
  .topbar{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    height:56px!important;min-height:56px!important;
    padding:0 6px!important;
    box-shadow:0 1px 0 rgba(31,61,95,.08),0 6px 18px rgba(31,61,95,.045)!important;
  }
  .brand{height:56px!important;padding:0 4px!important;gap:8px!important;min-width:0!important}
  
  .brand .brand-mark{width:34px!important;height:34px!important;flex:0 0 34px!important}
  .brand>div:last-child{max-width:none!important;min-width:0!important}
  .brand strong{font-size:13px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .brand small{display:none!important}
  .topbar-birthday{height:56px!important;padding:0 2px!important}
  .topbar-birthday .avatar,.userbox .icon-btn{width:40px!important;height:40px!important;border-radius:11px!important}
  .userbox{height:56px!important;padding:0 2px!important;border-left:0!important;gap:0!important}
  .userbox>.avatar,.userbox>div:not(.avatar),.userbox>b,.userbox>small{display:none!important}

  /* Off-canvas navigation */
  
  
  
  
  

  /* Page canvas */
  
  .workspace-head{min-height:44px!important;margin:0 0 var(--mf-gap)!important;padding:0 2px!important;gap:8px!important}
  .workspace-head>div:first-child{padding-left:0!important}
  .workspace-head>div:first-child:before{display:none!important}
  .workspace-head h1{font-size:20px!important;line-height:1.15!important;letter-spacing:-.03em!important}
  .head-actions .btn{width:40px!important;height:40px!important;min-height:40px!important;border-radius:10px!important}

  /* Sections / cards */
  .panel,.toolbar-card,.report-hero,.attendance-setting-group,.database-backup-card{
    border-radius:var(--mf-card)!important;
    box-shadow:0 4px 18px rgba(40,68,102,.055)!important;
    border-color:#e2e9f1!important;
  }
  .panel,.toolbar-card,.report-hero,.machine-log-panel,.schedule-panel,.database-panel{margin-bottom:var(--mf-gap)!important}
  .panel-head{padding:12px!important;min-height:0!important;gap:9px!important}
  .panel-head h2{font-size:14px!important;line-height:1.25!important}
  .panel-head>div:first-child{min-width:0!important}
  .panel-head .panel-tools,.employee-tools,.schedule-filter-tools,.schedule-subtools{
    flex:1 1 100%!important;width:100%!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
  }
  .panel-head .panel-tools .searchbox,.employee-tools .searchbox,.schedule-filter-tools .searchbox,.schedule-subtools .searchbox{
    grid-column:1/-1!important;width:100%!important;min-width:0!important;
  }
  .panel-tools>select,.panel-tools>input,.employee-tools>select,.schedule-filter-tools>select,.schedule-subtools>select{
    width:100%!important;min-width:0!important;
  }
  .panel-tools>.btn,.employee-tools>.btn,.schedule-filter-tools>.btn,.schedule-subtools>.btn{
    width:100%!important;min-height:var(--mf-control)!important;height:var(--mf-control)!important;
  }

  /* Controls: finger friendly */
  input,select,textarea{font-size:16px!important}
  input,select{height:var(--mf-control)!important;min-height:var(--mf-control)!important}
  textarea{min-height:90px!important}
  .searchbox,.legacy-search{height:var(--mf-control)!important;min-height:var(--mf-control)!important;border-radius:10px!important}
  .searchbox input,.legacy-search input{height:40px!important;min-height:40px!important;font-size:16px!important}
  .btn:not(.full){min-height:40px!important;height:40px!important;padding:0 10px!important;border-radius:10px!important;font-size:10.5px!important}
  .icon-btn{width:40px!important;height:40px!important;min-width:40px!important;border-radius:10px!important}

  /* Machine page: compact mobile toolbar and full machine cards */
  .toolbar-card.device-toolbar{padding:8px!important}
  .device-toolbar .toolbar-main{display:flex!important;gap:7px!important;overflow-x:auto!important;padding-bottom:2px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  .device-toolbar .toolbar-main::-webkit-scrollbar,.device-toolbar .toolbar-secondary::-webkit-scrollbar{display:none!important}
  .device-toolbar .action-tile{flex:0 0 170px!important;min-height:58px!important;height:auto!important;padding:9px 10px!important;border-radius:11px!important;align-items:center!important;gap:9px!important}
  .device-toolbar .action-tile>i{font-size:15px!important;margin-top:0!important}
  .device-toolbar .action-tile b{font-size:10px!important;line-height:1.18!important;white-space:normal!important}
  .device-toolbar .action-tile small{display:none!important}
  .device-toolbar .toolbar-secondary{display:flex!important;gap:7px!important;overflow-x:auto!important;margin-top:7px!important;padding-bottom:2px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  .device-toolbar .toolbar-secondary .btn{flex:0 0 auto!important;min-width:132px!important;height:38px!important;min-height:38px!important;white-space:nowrap!important;line-height:1!important;padding:0 10px!important;font-size:9.75px!important}

  .machine-list-panel .panel-head{align-items:flex-start!important}
  .machine-list-panel .panel-head .panel-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:100%!important}
  .machine-list-panel .panel-head .panel-tools .searchbox{grid-column:1/-1!important}
  .machine-list-panel .panel-head .panel-tools .btn{width:100%!important;min-height:38px!important;height:38px!important;padding:0 8px!important;font-size:10px!important}

  .machine-list-table tbody tr{grid-template-columns:1fr!important;gap:0!important;padding:10px 11px!important}
  .machine-list-table tbody tr>td:nth-child(2),
  .machine-list-table tbody tr>td:nth-child(7),
  .machine-list-table tbody tr>td:nth-child(8){grid-column:1!important}
  .machine-list-table tbody td{padding:6px 0!important}
  .machine-list-table tbody td:nth-child(7){padding-top:7px!important}
  .machine-list-table tbody td:nth-child(8){padding-top:8px!important;border-bottom:0!important}
  .machine-list-table .machine-row-actions{justify-content:flex-start!important}
  .machine-list-table .mini-device-btn{width:38px!important;height:38px!important;min-width:38px!important}

  /* Device actions: actual mobile action grid */
  .toolbar-card.device-toolbar{padding:9px!important}
  .device-toolbar .toolbar-main{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .device-toolbar .action-tile{min-height:72px!important;height:auto!important;padding:10px!important;border-radius:11px!important;align-items:flex-start!important}
  .device-toolbar .action-tile>i{font-size:16px!important;margin-top:2px!important}
  .device-toolbar .action-tile span{min-width:0!important}
  .device-toolbar .action-tile b{font-size:10.5px!important;line-height:1.25!important;white-space:normal!important}
  .device-toolbar .action-tile small{font-size:8.5px!important;line-height:1.3!important;white-space:normal!important}
  .device-toolbar .toolbar-secondary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:7px!important}
  .device-toolbar .toolbar-secondary .btn{width:100%!important;height:42px!important;white-space:normal!important;line-height:1.1!important}

  /* Mobile-native operational tables: cards. Report keeps a true grid below. */
  .table-wrap:not(.legacy-report-table-wrap),.schedule-table-wrap{
    width:100%!important;max-width:100%!important;overflow:visible!important;padding:8px!important;background:#f8fafc!important;
  }
  .data-table:not(.legacy-report-table),.schedule-data-table,.simple-data-table{
    display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important;background:transparent!important;
  }
  .data-table:not(.legacy-report-table) thead,.schedule-data-table thead,.simple-data-table thead{display:none!important}
  .data-table:not(.legacy-report-table) tbody,.schedule-data-table tbody,.simple-data-table tbody{
    display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;
  }
  .data-table:not(.legacy-report-table) tbody tr,.schedule-data-table tbody tr,.simple-data-table tbody tr{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 12px!important;
    width:100%!important;padding:10px 11px!important;background:#fff!important;
    border:1px solid #e2e9f1!important;border-radius:11px!important;box-shadow:0 2px 8px rgba(38,64,94,.035)!important;
  }
  .data-table:not(.legacy-report-table) tbody td,.schedule-data-table tbody td,.simple-data-table tbody td{
    display:block!important;min-width:0!important;width:auto!important;padding:7px 0!important;border:0!important;border-bottom:1px solid #eef2f6!important;
    white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important;font-size:11px!important;line-height:1.35!important;
  }
  .data-table:not(.legacy-report-table) tbody td::before,.schedule-data-table tbody td::before,.simple-data-table tbody td::before{
    content:attr(data-mobile-label);display:block;margin-bottom:3px;color:#8a98a9;font-size:8px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;line-height:1.2;
  }
  .data-table:not(.legacy-report-table) tbody tr>td:last-child,.schedule-data-table tbody tr>td:last-child,.simple-data-table tbody tr>td:last-child{border-bottom:0!important}
  .data-table:not(.legacy-report-table) tbody td[colspan],.schedule-data-table tbody td[colspan],.simple-data-table tbody td[colspan]{grid-column:1/-1!important;text-align:center!important;padding:18px 8px!important}
  .data-table:not(.legacy-report-table) tbody td[colspan]::before,.schedule-data-table tbody td[colspan]::before,.simple-data-table tbody td[colspan]::before{display:none!important}

  /* Primary identity fields become full-width in the card */
  .employee-table tbody tr>td:nth-child(3),
  .machine-list-table tbody tr>td:nth-child(2),
  .ac-log-table tbody tr>td:nth-child(1){grid-column:1/-1!important}
  .employee-table tbody tr>td:nth-child(3) b,.machine-list-table .machine-name b,.ac-log-table .ac-log-datetime b{font-size:13px!important}
  .machine-list-table tbody tr>td:first-child{position:absolute!important;width:0!important;height:0!important;padding:0!important;overflow:hidden!important;border:0!important}
  .machine-list-table tbody tr{position:relative!important}
  .machine-list-table tbody tr.selected{border-color:#91b9ea!important;box-shadow:0 0 0 2px rgba(47,115,218,.07)!important}
  .machine-list-table .machine-row-actions{justify-content:flex-start!important}
  .machine-list-table .mini-device-btn{width:40px!important;height:40px!important}

  /* Tags and cell internals */
  .tag,.status-dot{max-width:100%!important;white-space:normal!important}
  .cell-sub{margin-top:3px!important;font-size:8.5px!important}

  /* Pagination */
  .log-pagination,.machine-pagination,.employee-pagination,.report-pagination,.simple-pagination{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:9px 10px 10px!important;
  }
  .log-page-info{text-align:center!important;font-size:9.5px!important}
  .log-page-actions{display:flex!important;width:100%!important;gap:5px!important;overflow-x:auto!important;padding:1px 0 2px!important;scrollbar-width:none!important}
  .log-page-actions::-webkit-scrollbar{display:none!important}
  .pager-nav,.pager-number{height:36px!important;min-width:36px!important;flex:0 0 auto!important;border-radius:9px!important}
  .pager-nav span{display:none!important}

  /* Report: mobile-specific analytical workspace */
  .report-panel{overflow:hidden!important}
  .report-tabs,.leave-center-tabs{display:flex!important;gap:5px!important;overflow-x:auto!important;padding:8px!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important}
  .report-tabs::-webkit-scrollbar,.leave-center-tabs::-webkit-scrollbar{display:none!important}
  .report-tabs button,.leave-center-tabs button{flex:0 0 auto!important;min-height:38px!important;padding:0 12px!important;border-radius:9px!important;font-size:10px!important;scroll-snap-align:start!important}
  .legacy-report-controls{padding:9px!important}
  .legacy-filter-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  .legacy-field{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;width:100%!important}
  .legacy-field>span,.legacy-label{font-size:9.5px!important;font-weight:750!important}
  .legacy-time-range{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;gap:7px!important;align-items:start!important;grid-column:auto!important}
  .legacy-time-range>.legacy-label{grid-row:1/3!important;padding-top:12px!important}
  .legacy-time-range label{min-width:0!important}
  .legacy-time-range label small{display:block!important;font-size:8px!important;margin-bottom:3px!important}
  .legacy-time-range input{width:100%!important;font-size:14px!important}
  .legacy-report-action-row{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:8px!important}
  .legacy-report-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important}
  .legacy-report-actions>.btn,.legacy-report-actions>details{width:100%!important;min-width:0!important}
  .legacy-report-actions details>summary{width:100%!important}
  .legacy-sort-row{display:flex!important;gap:5px!important;overflow-x:auto!important;padding:7px 0 2px!important;scrollbar-width:none!important}
  .legacy-sort-row::-webkit-scrollbar{display:none!important}
  .legacy-sort-row label,.legacy-sort-title{flex:0 0 auto!important}
  .legacy-report-summary{display:flex!important;gap:6px!important;overflow-x:auto!important;padding:8px 10px!important;scrollbar-width:none!important}
  .legacy-report-summary span{flex:0 0 auto!important}
  .legacy-report-table-wrap{overflow:auto!important;max-height:62vh!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;background:#fff!important}
  .legacy-report-table{width:max-content!important;min-width:100%!important;font-size:9.5px!important}
  .legacy-report-table thead{position:sticky!important;top:0!important;z-index:3!important}
  .legacy-report-table th,.legacy-report-table td{padding:8px!important;white-space:nowrap!important}
  .legacy-report-table th:first-child,.legacy-report-table td:first-child{position:sticky!important;left:0!important;z-index:2!important;background:#fff!important}
  .legacy-report-table thead th:first-child{z-index:4!important;background:#f2f6fa!important}

  /* Leave center */
  .annual-leave-head,.leave-center-head{padding:10px!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important}
  .annual-leave-year{width:100%!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
  .annual-leave-year-select{min-width:116px!important}
  .leave-center-entry-card,.annual-leave-quota-summary{margin:8px!important;border-radius:11px!important;padding:10px!important}
  .leave-center-entry-head{display:flex!important;width:100%!important}
  .leave-center-entry-head .btn{width:100%!important;height:44px!important}
  .annual-leave-quota-summary{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important}
  .annual-leave-setting-icon{width:38px!important;height:38px!important}
  .annual-leave-quota-badges{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;width:100%!important}
  .annual-leave-quota-badge{width:100%!important;justify-content:flex-start!important}
  .annual-leave-quota-summary>.btn{grid-column:1/-1!important;width:100%!important;height:42px!important}
  .annual-leave-inline-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important}
  .annual-leave-inline-tools .searchbox{grid-column:1/-1!important;width:100%!important}
  .annual-leave-inline-tools select{width:100%!important}

  /* Field Attendance administration */
  .field-access-toolbar,.mobile-access-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  .field-access-toolbar .btn,.mobile-access-toolbar .btn{width:100%!important}
  .field-attendance-link,.mobile-access-link{overflow-wrap:anywhere!important;word-break:break-word!important}

  /* Departments */
  .department-tree{padding:8px!important}
  .department-node{grid-template-columns:36px minmax(0,1fr) auto!important;padding:10px!important;border-radius:11px!important;min-height:62px!important}
  .department-node-icon{width:36px!important;height:36px!important}
  .department-node-stats{grid-column:2/-1!important;overflow-x:auto!important;padding-bottom:2px!important}
  .department-node-actions{grid-row:1!important;grid-column:3!important;flex-direction:row!important}

  /* Settings */
  .attendance-setting-group{overflow:hidden!important}
  .attendance-setting-group-head{padding:11px!important;align-items:center!important}
  .attendance-setting-group-head p{font-size:9px!important;line-height:1.45!important}
  .attendance-setting-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;padding:10px 11px!important}
  .attendance-setting-copy p{font-size:9px!important;line-height:1.45!important}

  /* Database */
  .database-backup-card{grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
  .database-backup-icon{width:44px!important;height:44px!important;font-size:18px!important}
  .database-backup-copy h3{font-size:13px!important}
  .database-backup-copy p{font-size:10.5px!important;line-height:1.45!important}
  .database-download-btn{grid-column:1/-1!important;margin:0!important;width:100%!important;height:44px!important}

  /* Mobile bottom-sheet modals */
  .modal-backdrop{padding:0!important;align-items:flex-end!important;background:rgba(14,30,48,.48)!important;backdrop-filter:blur(2px)!important}
  .modal-card,.modal-card.modal-wide,.modal-card.modal-schedule,.modal-card.modal-calculated-item{
    width:100%!important;max-width:100%!important;max-height:92dvh!important;border-radius:18px 18px 0 0!important;
    overflow:auto!important;overscroll-behavior:contain!important;box-shadow:0 -18px 55px rgba(17,42,69,.2)!important;
  }
  .modal-card.modal-attendance-settings{display:flex!important;flex-direction:column!important;overflow:hidden!important;max-height:92dvh!important}
  .modal-card.modal-attendance-settings .attendance-settings-form{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
  .modal-card.modal-attendance-settings .attendance-settings-scroll{overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:12px 12px 10px;scrollbar-gutter:auto}
  .modal-card.modal-attendance-settings .attendance-settings-form>.modal-actions{display:flex!important;position:static!important;flex:0 0 auto!important;padding:12px!important;margin:0!important}
  .modal-card:before{content:"";display:block;width:42px;height:4px;border-radius:4px;background:#d7dee7;margin:7px auto 0!important}
  .modal-head{position:sticky!important;top:0!important;z-index:6!important;min-height:54px!important;padding:10px 12px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px)!important}
  .modal-head h3{font-size:15px!important}
  .form-grid{display:grid!important;grid-template-columns:1fr!important;padding:11px!important;gap:0!important}
  .form-grid label{font-size:10.5px!important;margin-bottom:11px!important}
  .form-grid .span-two{grid-column:1!important}
  .modal-actions{position:sticky!important;bottom:0!important;z-index:5!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:10px 0 2px!important;background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 24%)!important}
  .modal-actions .btn{width:100%!important;height:44px!important}
  .employee-leaving-modal{padding:11px!important}

  /* Context menus become touch action sheets */
  .machine-context-menu,.schedule-context-menu,.employee-context-menu,.report-context-menu,.mobile-access-context-menu{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;
    width:auto!important;min-width:0!important;max-width:none!important;border-radius:15px!important;padding:8px!important;
    box-shadow:0 18px 60px rgba(18,42,70,.24)!important;z-index:95!important;
  }
  .machine-context-menu button,.schedule-context-menu button,.employee-context-menu button,.report-context-menu button,.mobile-access-context-menu button{
    min-height:44px!important;border-radius:10px!important;font-size:11px!important;
  }

  /* Select picker = mobile sheet */
  .global-select-picker{position:fixed!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;width:auto!important;max-width:none!important;border-radius:15px!important;padding:8px!important;z-index:110!important}
  .global-select-search{height:44px!important;font-size:16px!important}
  .global-select-options{max-height:52dvh!important}
  .global-select-option{min-height:44px!important;font-size:11.5px!important;padding:9px 10px!important}

  /* Progress / toast */
  .toast-stack{top:64px!important;left:8px!important;right:8px!important;width:auto!important}
  .toast{border-radius:11px!important;padding:10px!important;font-size:10px!important}
  .operation-dock,.machine-quick-dock{left:8px!important;right:8px!important;bottom:8px!important;border-radius:13px!important}

  /* Login */
  
  
  
  
  
}





@media (min-width:601px) and (max-width:720px){
  .machine-list-panel .table-wrap{display:none!important}
  .machine-mobile-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:8px!important;background:#f8fafc!important}
  .machine-mobile-card{width:100%!important;min-width:0!important;overflow:hidden!important;padding:11px!important;border:1px solid #dfe8f1!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 9px rgba(38,64,94,.045)!important}
  .machine-mobile-card.selected{border-color:#8db7e9!important;box-shadow:0 0 0 2px rgba(47,115,218,.07)!important;background:#fbfdff!important}
  .machine-mobile-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;min-width:0!important}
  .machine-mobile-identity{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;flex:1 1 auto!important}
  .machine-mobile-identity .device-icon{flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:9px!important}
  .machine-mobile-identity>div{min-width:0!important}
  .machine-mobile-identity b,.machine-mobile-identity small{display:block!important}
  .machine-mobile-identity b{font-size:13px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#26384e!important}
  .machine-mobile-identity small{margin-top:2px!important;font-size:8.5px!important;color:#8b99aa!important}
  .machine-mobile-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
  .machine-mobile-head-actions .status-dot{font-size:9.5px!important;white-space:nowrap!important}
  .machine-mobile-head-actions .mini-device-btn{width:36px!important;height:36px!important;min-width:36px!important;border-radius:9px!important}
  .machine-mobile-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 12px!important;margin-top:9px!important;padding-top:4px!important;border-top:1px solid #eef2f6!important;min-width:0!important}
  .machine-mobile-meta>div{min-width:0!important;padding:7px 0!important;border-bottom:1px solid #f0f3f7!important}
  .machine-mobile-meta span{display:block!important;margin-bottom:3px!important;font-size:7.5px!important;font-weight:800!important;letter-spacing:.055em!important;text-transform:uppercase!important;color:#8d9aaa!important}
  .machine-mobile-meta b,.machine-mobile-meta code,.machine-mobile-meta small{display:block!important;max-width:100%!important;font-size:10.5px!important;line-height:1.3!important;color:#3c4e63!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .machine-mobile-meta code{width:max-content!important;max-width:100%!important;padding:3px 6px!important;border-radius:6px!important;background:#eef3f8!important}
  .machine-mobile-serial{grid-column:1/-1!important;border-bottom:0!important;padding-bottom:1px!important}
  .machine-mobile-serial small{margin-top:3px!important;font-size:8.5px!important;color:#8a98aa!important}
  .machine-mobile-empty{padding:22px 10px!important;text-align:center!important;color:#8a98aa!important;font-size:10.5px!important}

  /* Compact machine actions: one horizontal row, no tall tiles */
  .toolbar-card.device-toolbar{padding:7px!important;overflow:hidden!important}
  .device-toolbar .toolbar-main,.device-toolbar .toolbar-secondary{display:flex!important;grid-template-columns:none!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:1px 0 3px!important;margin:0!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  .device-toolbar .toolbar-main::-webkit-scrollbar,.device-toolbar .toolbar-secondary::-webkit-scrollbar{display:none!important}
  .device-toolbar .toolbar-secondary{margin-top:5px!important}
  .device-toolbar .action-tile{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:38px!important;height:38px!important;padding:0 10px!important;border-radius:9px!important}
  .device-toolbar .action-tile>i{font-size:13px!important;margin:0!important}
  .device-toolbar .action-tile span{display:block!important;min-width:0!important}
  .device-toolbar .action-tile b{font-size:9.5px!important;line-height:1!important;white-space:nowrap!important}
  .device-toolbar .action-tile small{display:none!important}
  .device-toolbar .toolbar-secondary .btn{flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:0 10px!important;font-size:9.25px!important;white-space:nowrap!important;border-radius:9px!important}

  /* Machine list header: search full width, 3 compact actions */
  .machine-list-panel .panel-head{display:block!important;padding:10px!important}
  .machine-list-panel .panel-head>div:first-child{margin-bottom:8px!important}
  .machine-list-panel .panel-head .panel-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
  .machine-list-panel .panel-head .panel-tools .searchbox{grid-column:1/-1!important;width:100%!important;margin:0!important}
  .machine-list-panel .panel-head .panel-tools .btn{width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:0 6px!important;font-size:9.5px!important}
}




input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;accent-color:#21834d;cursor:pointer}input[type="checkbox"]:focus-visible{outline:2px solid #2b995c;outline-offset:3px}



@media (min-width:601px) and (max-width:900px){:root{--bg:#f5f8f6;--line:#e0eae4;--blue:#19734f;--blue-soft:#eaf6ef;--shadow:0 7px 22px rgba(22,69,45,.045)}.topbar{border-bottom-color:#e1ebe4}.workspace-head h1{color:#203b2c}}



@media (min-width:601px) and (max-width:900px){
  
  
  .searchbox{border-color:#dce9df}
  .data-table thead th{background:#f4f9f5;color:#648071}
  .modal-card{border-color:#dce9df;box-shadow:0 20px 50px rgba(18,53,32,.16)}
  .report-hero{background:linear-gradient(115deg,#eaf6ee,#fff 75%)}
}




@media (min-width:601px) and (max-width:900px){
 
 
 
 
 
 .workspace{background:#f3f5f7!important;padding:17px 13px 28px!important}
 .workspace .panel,.workspace .card,.toolbar-card{border-radius:13px!important;box-shadow:none!important}
 
 
 
 
 
 
 
 
 
 
 
}



@media (min-width:601px) and (max-width:900px){
 .workspace :is(.panel,.card,.stat-card,.summary-card,.table-card){background:#fff!important;border:1px solid #e7ebef!important;box-shadow:none!important}
 .workspace :is(.panel-head,.card-head,.section-head){border-bottom-color:#edf0f2!important}
 .workspace :is(.btn,.p-button,input,select,textarea){border-radius:9px!important}
 .workspace table thead th{background:#f7f9fa!important;color:#667680!important}
 .workspace table tbody tr:hover td{background:#f4faf7!important}
}












.app-shell .topbar{background:#f5faf7!important;border-bottom:1px solid #d7e9df!important;box-shadow:0 2px 9px rgba(17,89,61,.035)!important}
.app-shell .topbar .brand{color:#16694f!important}
.app-shell .topbar .brand strong{color:#176d50!important}
.app-shell .topbar .brand small{color:#6b9380!important}
.app-shell .topbar .brand-mark{background:#e4f4eb!important;border:1px solid #d1e9db!important;box-shadow:none!important}
.app-shell .topbar .menu-bar button:hover{background:#e3f3ea!important;color:#087952!important}
.app-shell .topbar .avatar,.app-shell .topbar .icon-btn{background:#e6f5ed!important;border-color:#d3eadc!important;color:#14805e!important}

















@media (min-width:601px) and (max-width:900px){
 
 
 
 
 .app-shell .topbar{background:#f5faf7!important}
 
 
 
 
 
 
 
 
}


@media (min-width:601px) and (max-width:900px){.workspace :is(.department-heading,.field-attendance-log-head,.schedule-override-section-head){background:#edf4ee!important}.workspace :is(.leave-center-entry-card,.attendance-setting-item){background:#fbfaf7!important}}



@media (min-width:601px) and (max-width: 900px){
  html,body,#app {max-width:100%;min-width:0;overflow-x:clip}
  body {font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .app-shell {width:100%;min-width:0;max-width:100vw;overflow-x:clip}
  .app-shell .topbar {height:auto!important;min-height:62px!important;padding:9px 14px!important;gap:9px!important;position:sticky;top:0;z-index:60}
  .app-shell .topbar .brand {min-width:0!important;max-width:100%;gap:9px}
  .app-shell .topbar .brand strong {font-size:15px!important;line-height:1.2}
  .app-shell .topbar .brand small {font-size:11px!important}
  .app-shell .topbar .menu-bar {display:none!important}
  .app-shell .workspace {width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:clip!important;padding:18px 12px calc(28px + env(safe-area-inset-bottom,0px))!important;margin:0!important}
  .workspace-head {display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin:0 0 16px!important}
  .workspace-head h1 {font-size:clamp(20px,5.2vw,25px)!important;letter-spacing:-.025em!important;line-height:1.3!important}
  .workspace > *, .workspace section, .workspace .panel, .workspace .card {min-width:0;max-width:100%;box-sizing:border-box}
  .workspace .panel,.workspace .card,.workspace .table-card {border-radius:15px!important;padding:14px!important;margin-bottom:13px!important}
  .workspace :is(.panel-head,.card-head,.section-head,.toolbar-head,.annual-leave-head) {display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important}
  .workspace :is(.panel-head,.card-head,.section-head) > * {min-width:0;max-width:100%}
  .workspace :is(.toolbar-main,.toolbar-secondary,.filters,.filter-row,.filter-bar,.employee-toolbar,.employee-filters,.report-filters,.device-toolbar,.stat-grid,.stats-grid,.summary-grid,.dashboard-stats,.dashboard-grid) {grid-template-columns:minmax(0,1fr)!important;max-width:100%!important;min-width:0!important}
  .workspace :is(.toolbar,.toolbar-actions,.panel-actions,.header-actions,.filter-actions,.employee-bulk-actions) {display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
  .workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.p-inputtext,.p-dropdown,.searchbox) {max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .workspace :is(button,.btn,.p-button) {max-width:100%;min-height:38px;white-space:normal;overflow-wrap:anywhere}
  .workspace :is(.form-grid,.modal-form-grid,.profile-grid,.employee-profile-grid,.detail-grid,.report-grid) {grid-template-columns:minmax(0,1fr)!important}
  .workspace :is(.report-tabs,.leave-center-tabs,.tabs) {display:flex!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;max-width:100%;gap:6px!important;padding-bottom:5px;scrollbar-width:thin}
  .workspace :is(.report-tabs,.leave-center-tabs,.tabs) > button {flex:0 0 auto!important;white-space:nowrap!important;scroll-snap-align:start}
  .workspace .table-wrap {max-width:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:12px}
  
  
  .workspace .table-wrap > table:not(.employee-table) td :is(button,.tag) {white-space:nowrap}
  .workspace .log-pagination,.workspace .pagination {display:flex!important;flex-wrap:wrap!important;gap:10px!important;justify-content:center!important}
  .workspace .log-page-info {width:100%;text-align:center}
  .workspace .log-page-actions {max-width:100%;overflow-x:auto!important;display:flex!important;gap:5px!important;justify-content:flex-start!important;padding:4px 0}
  .workspace .log-page-actions button {flex:0 0 auto!important}
  .modal-backdrop,.dialog-backdrop,.p-dialog-mask {padding:10px!important;align-items:center!important}
  .modal-card,.dialog-card,.p-dialog {width:min(100%,600px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box}
  .modal-card :is(.modal-body,.modal-content) {max-height:none!important;min-width:0}
  .workspace .tag,.workspace .badge {line-height:1.3!important;vertical-align:middle}
}

@media (min-width:601px) and (max-width: 900px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* Status Aktif/Nonaktif remains available through the employee toolbar filter. */
  
  
  
  
  
  
}





@media (min-width:601px) and (max-width:900px){
 html,body,#app{max-width:100%;overflow-x:clip}
 .app-shell{min-width:0!important;background:#f4f7f5!important}
 .app-shell .workspace{padding:16px 12px calc(32px + env(safe-area-inset-bottom,0px))!important;min-width:0!important;max-width:100vw!important}
 .app-shell .topbar{position:sticky!important;top:0;z-index:120!important;min-height:60px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(18px);border-bottom:1px solid #e6eee9!important;box-shadow:0 3px 18px rgba(21,60,42,.04)!important}
 
 
 .workspace :is(.panel,.card,.table-card,.report-card,.filter-card){border-radius:20px!important;border:1px solid #e7efea!important;box-shadow:0 4px 22px rgba(23,64,42,.045)!important;background:#fff!important;min-width:0!important}
 .workspace :is(input,select,textarea,.p-inputtext,.p-dropdown){max-width:100%!important;min-width:0!important;box-sizing:border-box}
 .workspace :is(input:not([type=checkbox]):not([type=radio]),select,.p-inputtext,.p-dropdown){min-height:44px!important;border-radius:12px!important}
 .workspace :is(.toolbar,.toolbar-actions,.filter-bar,.filters,.panel-header,.card-header){max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;gap:10px!important}
 .workspace :is(.toolbar,.filter-bar,.filters) :is(input,select,.p-dropdown){flex:1 1 160px!important}
 .workspace button{touch-action:manipulation}
 .workspace :is(.btn,.p-button){min-height:40px;border-radius:11px!important}
 .workspace :is(h1,h2,h3){overflow-wrap:anywhere;letter-spacing:-.02em}
 .workspace .table-wrap{overflow:visible!important;width:100%!important;max-width:100%!important;border:0!important;background:transparent!important;box-shadow:none!important}
 
 
 
 
 
 
 
 
 
 .workspace .table-wrap > table:not(.employee-table) > tbody > tr > td :is(button,a,.tag,.badge){max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
 .workspace .table-wrap > table:not(.employee-table) > tbody > tr > td :is(button,.btn){min-height:38px!important}
 .workspace .table-wrap > table:not(.employee-table) > tbody > tr > td :is(input,select){max-width:100%}
 .workspace :is(.modal-card,.dialog-card,.p-dialog){border-radius:22px!important;max-height:calc(100dvh - 20px)!important}
 .workspace :is(.pagination,.log-pagination){padding:12px 4px!important;gap:8px!important;flex-wrap:wrap!important}
}



@media (min-width:601px) and (max-width:800px){
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap{overflow-x:auto!important;overflow-y:auto!important;width:100%!important;border:1px solid #e4eae7!important;background:#fff!important}
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap>table.data-table{display:table!important;width:max-content!important;min-width:100%!important}
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap>table.data-table>thead{display:table-header-group!important}
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap>table.data-table>tbody{display:table-row-group!important}
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap>table.data-table tr{display:table-row!important;grid-template-columns:none!important;padding:0!important;border:0!important;border-radius:0!important}
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap>table.data-table :is(th,td){display:table-cell!important;width:auto!important;max-width:none!important;white-space:nowrap!important;padding:11px 13px!important}
.workspace .db70 :is(.db74-table,.db71-table-scroll).table-wrap>table.data-table td::before{display:none!important;content:none!important}
}
















@media(prefers-reduced-motion:reduce){.phone-app-tile{transition:none!important}}





/* handset-only structural layout. Tablet / desktop untouched. */
@media screen and (max-width:600px){
 :root{--topbar:56px;--phone-bottom-bar:70px}
 html,body,#app{width:100%;max-width:100%;margin:0;overflow-x:clip}
 body{background:#f5f7f6}
 #app>.app-shell,.app-shell{width:100%!important;max-width:100vw!important;min-width:0!important;overflow:clip!important}
 .app-shell>.topbar,.topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;max-width:100vw!important;height:56px!important;min-height:56px!important;padding:0 12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px 42px!important;grid-template-rows:56px!important;gap:4px!important;align-items:center!important;box-sizing:border-box!important;z-index:110!important;background:#fff!important;border-bottom:1px solid #e2ebe6!important;box-shadow:0 2px 10px rgba(14,65,40,.05)!important}
 .topbar>.menu-bar{display:none!important}
 .topbar>.brand{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:9px!important;height:100%!important;min-width:0!important;padding:0!important;border:0!important;overflow:hidden!important}
 .topbar .brand>div:last-child{min-width:0!important;overflow:hidden!important}
 .topbar .brand strong{font-size:15px!important;white-space:nowrap!important;line-height:1.2!important}
 .topbar .brand small{display:none!important}
 .topbar .brand-mark{width:32px!important;height:32px!important;flex:0 0 32px!important}
 
 .topbar>.topbar-birthday{grid-column:2!important;grid-row:1!important;padding:0!important;width:48px!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}
 .topbar .birthday-avatar-btn{width:38px!important;height:38px!important;display:grid!important;place-items:center!important}
 .topbar>.userbox{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;min-width:0!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 .topbar .userbox>div{display:none!important}
 .topbar .userbox>button.icon-btn{display:grid!important;place-items:center!important;width:37px!important;height:37px!important;margin:0!important;border:1px solid #e2ebe6!important;border-radius:10px!important;background:#f6faf7!important;color:#1a7652!important}
 
 
 
 
 
 
 
 
 
 .workspace>.workspace-head{position:relative!important;left:auto!important;width:100%!important;max-width:100%!important;margin:0 0 10px!important;padding:0!important;min-height:auto!important}
 .workspace-head>div:first-child{padding:0!important}
 .workspace-head>div:first-child:before{display:none!important}
 .workspace-head h1{margin:0!important;font-size:19px!important;line-height:1.3!important;color:#183d2d!important}
 /* Main content stays viewport width. Only explicit inner surfaces scroll. */
 .workspace>section,.workspace>.panel,.workspace>.toolbar-card,.workspace>.db70,.workspace>.report-panel,.workspace>div{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .workspace :is(.panel,.db70,.report-panel,.card,.toolbar-card){min-width:0!important;max-width:100%!important}
 .workspace :is(.device-toolbar,.legacy-report-controls,.legacy-filter-grid,.report-toolbar,.report-filters){max-width:100%!important}
 .workspace .device-toolbar{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;overscroll-behavior-x:contain!important}
 .workspace .device-toolbar :is(.toolbar-main,.toolbar-secondary){display:grid!important;grid-template-columns:repeat(4,minmax(190px,1fr))!important;min-width:800px!important;width:800px!important;gap:10px!important}
 .workspace .device-toolbar .action-tile{min-height:77px!important;padding:12px!important}
 .workspace .device-toolbar .action-tile small{display:block!important}
 .workspace :is(.panel-head,.panel-tools,.employee-tools){min-width:0!important;max-width:100%!important}
 .workspace .panel-head{display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 .workspace .panel-tools{display:flex!important;gap:8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;max-width:100%!important;-webkit-overflow-scrolling:touch!important}
 .workspace .panel-tools>*{flex-shrink:0!important}
 .workspace .legacy-report-controls,.workspace .legacy-report-filter-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important}
 .workspace .legacy-filter-grid{display:grid!important;grid-template-columns:repeat(4,minmax(190px,1fr))!important;min-width:800px!important;width:800px!important;gap:10px!important}
 .workspace .legacy-report-action-row,.workspace .legacy-report-actions{display:flex!important;flex-flow:row nowrap!important;min-width:max-content!important;gap:8px!important}
 .workspace .report-tabs,.workspace .leave-center-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;max-width:100%!important}
 /* This is the actual finger-swipable table viewport, rather than a 900px parent. */
 .workspace :is(.table-wrap,.legacy-report-table-wrap,.schedule-table-wrap,.db71-table-scroll,.db74-table,.p-datatable-wrapper,.p-datatable-table-container){display:block!important;position:relative!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:auto!important;touch-action:pan-x pan-y!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;box-sizing:border-box!important}
 .workspace :is(.table-wrap,.legacy-report-table-wrap,.schedule-table-wrap,.db71-table-scroll,.db74-table) > table,.workspace :is(.machine-list-table,.employee-table,.legacy-report-table){display:table!important;width:max-content!important;min-width:680px!important;max-width:none!important;table-layout:auto!important}
 .workspace table thead{display:table-header-group!important}.workspace table tbody{display:table-row-group!important}
 .workspace table tr{display:table-row!important;grid-template-columns:none!important;float:none!important;padding:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important}
 .workspace table th,.workspace table td{display:table-cell!important;float:none!important;grid-column:auto!important;min-width:unset!important;max-width:none!important;white-space:nowrap!important;vertical-align:middle!important;overflow:visible!important}
 .workspace table td::before,.workspace table td::after{display:none!important;content:none!important}
 .workspace .machine-mobile-list{display:none!important}.workspace .machine-list-table{display:table!important}
 .workspace .phone-app-home{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0 0 12px!important}
 .workspace .phone-app-welcome{padding:18px 17px!important;border-radius:17px!important;background:linear-gradient(115deg,#155e43,#18865d)!important;box-shadow:none!important}
 .phone-app-welcome h2{font-size:20px!important;line-height:1.3!important;margin:5px 0 0!important}
 .phone-app-section-title{margin:19px 0 12px!important}.phone-app-section-title h3{font-size:17px!important}
 .phone-app-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
 .phone-app-tile{min-height:102px!important;padding:11px 6px!important;gap:8px!important;border-radius:14px!important;box-shadow:none!important;font-size:12px!important}
 .phone-app-icon{width:42px!important;height:42px!important;border-radius:13px!important}
 .phone-bottom-nav{display:grid!important;z-index:130!important}
 .modal-backdrop,.db85-modal-backdrop,.db88-alert-backdrop{position:fixed!important;inset:0!important;display:flex!important;justify-content:center!important;align-items:center!important;box-sizing:border-box!important;padding:12px!important;z-index:150!important;overflow:hidden!important}
 .modal-backdrop>.modal-card,.db85-modal-backdrop>.db85-kpi-modal,.db88-alert-backdrop>.db88-alert-modal{position:relative!important;inset:auto!important;transform:none!important;margin:auto!important;max-height:calc(100dvh - 32px)!important;width:min(490px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;overflow:auto!important;border-radius:16px!important}
 .modal-head{position:sticky!important;top:0;background:#fff!important;z-index:3}.modal-actions{position:sticky!important;bottom:0;background:#fff!important;z-index:3}
 .modal-card .form-grid{grid-template-columns:1fr!important}
 .workspace :is(input,select,textarea){font-size:16px!important}
 /* Login: a single-column layout with cohesive hero and card, not desktop's two columns. */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
}
/* Handset toolbar and header refinements. Desktop/tablet remain untouched. */
@media screen and (max-width:600px){
 :root{--topbar:58px}
 .app-shell>.topbar,.topbar{height:58px!important;min-height:58px!important;grid-template-columns:minmax(0,1fr) 44px 44px!important;grid-template-rows:58px!important;gap:5px!important;padding:0 13px!important;background:#fff!important;border-bottom:1px solid #dce9e1!important;box-shadow:0 1px 8px rgba(17,72,49,.045)!important}
 .topbar>.brand{gap:8px!important;overflow:hidden!important}
 
 .topbar .brand-mark{width:31px!important;height:31px!important;flex:0 0 31px!important;border:0!important;background:transparent!important;box-shadow:none!important}
 .topbar .brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
 .topbar .brand strong{font-size:14px!important;font-weight:700!important;letter-spacing:-.02em!important;color:#17543a!important}
 .topbar>.topbar-birthday{width:44px!important;grid-column:2!important}
 .topbar .birthday-avatar-btn{width:39px!important;height:39px!important;border-radius:12px!important;border:1px solid #e1ebe4!important;background:#fafcfb!important;color:#1b7653!important;box-shadow:none!important}
 .topbar>.userbox{grid-column:3!important;width:44px!important}
 .topbar .userbox>button.icon-btn{width:39px!important;height:39px!important;border-radius:12px!important;border:1px solid #e1ebe4!important;background:#fafcfb!important;color:#23684e!important;box-shadow:none!important}
 
 
 
 .workspace>.workspace-head{margin-bottom:9px!important}
 .workspace-head h1{font-size:18px!important}
 /* Machine operations: make all eight actions fully accessible, no horizontal toolbar strip. */
 .workspace .device-toolbar{overflow:visible!important;padding:10px!important;border-radius:14px!important}
 .workspace .device-toolbar .toolbar-main,.workspace .device-toolbar .toolbar-secondary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;margin:0!important;padding:0!important}
 .workspace .device-toolbar .toolbar-secondary{margin-top:8px!important}
 .workspace .device-toolbar .action-tile{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:65px!important;height:auto!important;padding:10px!important;display:flex!important;align-items:center!important;gap:8px!important;border-radius:11px!important;white-space:normal!important;text-align:left!important}
 .workspace .device-toolbar .action-tile>i{font-size:17px!important;flex-shrink:0!important}
 .workspace .device-toolbar .action-tile span{min-width:0!important;display:block!important}
 .workspace .device-toolbar .action-tile b{display:block!important;font-size:11.5px!important;white-space:normal!important;line-height:1.3!important;overflow-wrap:anywhere!important}
 .workspace .device-toolbar .action-tile small{display:block!important;font-size:10px!important;line-height:1.2!important;margin-top:3px!important;white-space:normal!important}
 .workspace .device-toolbar .toolbar-secondary>.btn{width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:43px!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;gap:6px!important;padding:8px 9px!important;white-space:normal!important;line-height:1.25!important;font-size:11px!important;text-align:center!important;border-radius:10px!important}
 .workspace .device-toolbar .toolbar-secondary>.btn i{flex-shrink:0!important}
 /* Search and actions in table headings */
 .workspace .panel-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:13px!important}
 .workspace .panel-head>div:first-child{width:100%!important;min-width:0!important}
 .workspace .panel-head h2{font-size:16px!important;margin:0!important}
 .workspace .machine-list-panel .panel-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:100%!important;overflow:visible!important;max-width:100%!important}
 .workspace .machine-list-panel .panel-tools>.searchbox{grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .workspace .machine-list-panel .panel-tools>.searchbox input{width:100%!important;min-width:0!important;font-size:14px!important}
 .workspace .machine-list-panel .panel-tools>.btn{width:100%!important;min-width:0!important;min-height:39px!important;height:auto!important;white-space:normal!important;padding:8px 5px!important;gap:5px!important;font-size:11px!important;justify-content:center!important}
 /* Report controls: reachable without forcing an 800px-wide toolbar. */
 .workspace .legacy-report-controls,.workspace .legacy-report-filter-wrap{max-width:100%!important;min-width:0!important;overflow:visible!important}
 .workspace .legacy-filter-grid{display:grid!important;grid-template-columns:1fr!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:9px!important}
 .workspace .legacy-filter-grid>*{min-width:0!important;max-width:100%!important}
 .workspace .legacy-filter-grid :is(input,select){max-width:100%!important;box-sizing:border-box!important}
 .workspace .legacy-time-range{max-width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;align-items:end!important}
 .workspace .legacy-time-range>.legacy-label{grid-column:1/-1!important}
 .workspace .legacy-time-range>label{min-width:0!important;width:100%!important}
 .workspace .legacy-report-action-row{display:flex!important;flex-wrap:wrap!important;min-width:0!important;width:100%!important;max-width:100%!important;gap:8px!important}
 .workspace .legacy-report-action-row>.legacy-search{flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .workspace .legacy-report-action-row>.legacy-search input{width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .workspace .legacy-report-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;min-width:0!important;width:100%!important;max-width:100%!important}
 .workspace .legacy-report-actions>.btn,.workspace .legacy-report-actions>.report-export-menu{width:100%!important;min-width:0!important;max-width:100%!important;min-height:40px!important;box-sizing:border-box!important;white-space:normal!important;justify-content:center!important;padding:8px 5px!important;font-size:11px!important;gap:5px!important}
 .workspace .legacy-report-actions>.report-export-menu>summary{width:100%!important;box-sizing:border-box!important;justify-content:center!important;white-space:nowrap!important;font-size:11px!important;padding:8px 5px!important}
 .workspace .legacy-sort-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important;min-width:0!important;width:100%!important;padding:8px 0 2px!important;align-items:center!important}
 .workspace .legacy-sort-title{grid-column:1/-1!important;font-size:12px!important;font-weight:600!important}
 .workspace .legacy-sort-row label{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;min-width:0!important;margin:0!important;padding:8px 7px!important;border:1px solid #e0eae3!important;border-radius:9px!important;background:#fafcfb!important;font-size:10.5px!important;line-height:1.2!important;white-space:normal!important;cursor:pointer!important}
 .workspace .legacy-sort-row label input{flex:0 0 auto!important;width:15px!important;height:15px!important;margin:0!important;accent-color:#15835b!important}
 /* Common operational toolbars: consistent finger targets while preserving tables. */
 .workspace :is(.toolbar-actions,.filter-actions,.employee-bulk-actions,.panel-actions){gap:7px!important}
 .workspace :is(.toolbar-actions,.filter-actions,.employee-bulk-actions,.panel-actions)>.btn{min-height:39px!important;padding:8px 11px!important;font-size:12px!important;border-radius:10px!important}
 .workspace :is(.log-page-actions,.report-tabs,.leave-center-tabs){-webkit-overflow-scrolling:touch!important}
 .workspace :is(.table-wrap,.legacy-report-table-wrap,.schedule-table-wrap,.db71-table-scroll,.db74-table,.p-datatable-wrapper,.p-datatable-table-container){overflow-x:auto!important;touch-action:pan-x pan-y!important}
}


/* Native-like mobile login: one clean screen, no floating cards. */



/* focused mobile navigation and unified launcher. No changes to tablet/desktop. */
@media screen and (max-width:600px){
  :root{--topbar:56px}
  /* Calm, neutral app bar; keep the four actions balanced, without accent strip or raised badges. */
  .app-shell>.topbar,.topbar{
    height:56px!important;min-height:56px!important;
    grid-template-columns:minmax(0,1fr) 42px 42px!important;
    grid-template-rows:56px!important;gap:5px!important;
    padding:0 14px!important;background:#fff!important;
    border:0!important;border-bottom:1px solid #e9edeb!important;
    box-shadow:none!important;backdrop-filter:none!important;
  }
  .app-shell>.topbar::before,.app-shell>.topbar::after,.topbar::before,.topbar::after{display:none!important;content:none!important}
  .topbar>.brand{gap:9px!important;min-width:0!important}
  
  .topbar .brand-mark{width:30px!important;height:30px!important;flex:0 0 30px!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .topbar .brand strong{font-size:14px!important;color:#273c32!important;font-weight:700!important}
  .topbar>.topbar-birthday,.topbar>.userbox{width:42px!important}
  .topbar .birthday-avatar-btn,.topbar .userbox>button.icon-btn{width:38px!important;height:38px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#40594c!important;box-shadow:none!important}
  
  .topbar .birthday-badge{z-index:2!important}
  /* The Menu is a single app-launcher surface, not a collection of floating cards. */
  .workspace .phone-app-home{margin:0!important;padding:0 0 14px!important}
  .workspace .phone-app-welcome{border-radius:15px!important;padding:20px 18px!important;box-shadow:none!important;background:linear-gradient(112deg,#176a4d,#23815e)!important}
  .phone-app-welcome h2{font-size:19px!important;line-height:1.35!important}
  .phone-app-section-title{margin:23px 4px 8px!important;padding:0!important}
  .phone-app-section-title h3{font-size:15px!important;font-weight:700!important;color:#273e32!important}
  .workspace .phone-app-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px 2px!important;padding:10px 4px 14px!important;background:#fff!important;border:1px solid #edf0ed!important;border-radius:16px!important;box-shadow:none!important}
  .workspace .phone-app-tile{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;min-height:96px!important;padding:12px 4px 8px!important;gap:8px!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;transform:none!important;color:#364d40!important;font-size:11px!important;line-height:1.25!important;font-weight:600!important;outline-offset:1px!important}
  .workspace .phone-app-tile:active{background:#f0f7f2!important;transform:none!important}
  .workspace .phone-app-tile:focus-visible{outline:2px solid #298661!important}
  .workspace .phone-app-icon{width:46px!important;height:46px!important;border-radius:14px!important;background:#edf6ef!important;color:#19805b!important;box-shadow:none!important}
  .workspace .phone-app-icon i{font-size:21px!important}
  /* No blank heading strip before the welcome panel. */
  .workspace:has(.phone-app-home)>.workspace-head{display:none!important}
  
}

/* handset controls, full-height login, predictable touch feedback.
   Scoped to phones only. Tablet and desktop retain their existing appearance. */
@media screen and (max-width:600px){
  /* Browser blue touch flash removed without discarding accessible keyboard focus. */
  html,body,#app,#app *{-webkit-tap-highlight-color:transparent!important}
  button,a,[role="button"],summary,label,select,input{-webkit-tap-highlight-color:transparent!important}
  button,a,summary{touch-action:manipulation}
  .app-shell button:active,.app-shell a:active,.app-shell summary:active{transition:background-color .12s ease,color .12s ease!important}
  .app-shell :is(button,a,summary):focus-visible{outline:2px solid #16835a!important;outline-offset:2px!important}
  .app-shell :is(button,a,summary):focus:not(:focus-visible){outline:none!important}
  /* Keep a neutral header: no corporate-green color block or accidental inherited pseudo layers. */
  #app .app-shell>.topbar{background:#fff!important;background-image:none!important;border-bottom:1px solid #e8eee9!important;box-shadow:none!important}
  
  /* Do not place spare blank area between the launcher and bottom navigation. */
  #app .workspace .phone-app-home{padding-bottom:0!important;margin-bottom:0!important}
  #app .workspace .phone-app-grid{padding-bottom:2px!important;margin-bottom:0!important;row-gap:0!important}
  #app .workspace .phone-app-tile{min-height:83px!important;padding:9px 3px 6px!important;gap:6px!important}
  #app .workspace .phone-app-section-title{margin-top:16px!important}
  /* Common mobile controls: soft borders, consistent heights, no microscopic button text. */
  #app .workspace :is(.panel-tools,.toolbar-actions,.filter-actions,.employee-bulk-actions,.report-toolbar,.legacy-report-actions){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  #app .workspace :is(.panel-tools,.toolbar-actions,.filter-actions,.employee-bulk-actions)>.btn{min-height:42px!important;font-size:12px!important;line-height:1.35!important;border-radius:10px!important;white-space:normal!important}
  #app .workspace :is(.legacy-report-actions,.machine-list-panel .panel-tools)>.btn{font-size:12px!important;min-height:42px!important;padding:8px!important}
  #app .workspace :is(.legacy-sort-row label,.report-tabs button){font-size:12px!important;min-height:40px!important;align-items:center!important}
  #app .workspace :is(select,input:not([type="checkbox"]):not([type="radio"]),.p-dropdown,.p-select){font-size:16px!important;max-width:100%;box-sizing:border-box}
  #app .workspace .legacy-report-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #app .workspace .legacy-report-actions>:last-child:nth-child(odd){grid-column:1/-1!important}
  #app .workspace .legacy-sort-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #app .workspace .legacy-sort-row label{font-size:12px!important;padding:9px!important;min-height:42px!important}
  /* AC Log: each filtering unit gets its own stable place, without horizontal toolbar clipping. */
  #app .workspace .ac-log-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  #app .workspace .ac-log-filterbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;align-items:end!important;overflow:visible!important}
  #app .workspace .ac-log-filterbar>.ac-log-search{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  #app .workspace .ac-log-filterbar>.ac-log-time-range{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:visible!important}
  #app .workspace .ac-log-time-range>.ac-log-range-title{grid-column:1/-1!important;display:flex!important;align-items:center!important;font-size:12px!important;min-width:0!important}
  #app .workspace .ac-log-time-range>.ac-log-period-date{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:5px!important}
  #app .workspace .ac-log-period-date :is(input,.hris-date,.hris-date-wrap,.date-input-wrap){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  #app .workspace .ac-log-filterbar>.ac-log-machine-select{grid-column:1!important;min-width:0!important;width:100%!important;min-height:44px!important;font-size:13px!important}
  #app .workspace .ac-log-filterbar>.ac-log-export{grid-column:2!important;width:100%!important;min-width:0!important;min-height:44px!important;justify-content:center!important;font-size:12px!important;border-radius:10px!important}
  /* Pagination stays reachable, but finger targets must not be tiny. */
  #app .workspace .log-pagination{max-width:100%!important;min-width:0!important}
  #app .workspace .log-page-actions{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important}
  #app .workspace .log-page-actions :is(.pager-nav,.pager-number){min-height:39px!important;min-width:39px!important;flex:0 0 auto!important;box-sizing:border-box!important}
  /* Critical: horizontal table swipe from the rows, not the entire document. */
  #app .workspace :is(.table-wrap,.legacy-report-table-wrap,.schedule-table-wrap,.db71-table-scroll,.db74-table,.p-datatable-wrapper,.p-datatable-table-container){overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;max-width:100%!important}
  /* Full-viewport Android-style login, no floating card or misplaced placeholders. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* Visible only with keyboard; no UA blue tap on login inputs. */
  
}



/* Handset visual reset. Keep desktop/tablet and existing operations intact. */
@media only screen and (max-width:600px){
  /* A quiet, white application bar; no inherited brand underline or gradient. */
  #app .app-shell>.topbar{height:56px!important;min-height:56px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 42px 42px!important;grid-template-rows:56px!important;align-items:center!important;gap:4px!important;padding:0 12px!important;background:#fff!important;background-image:none!important;border:0!important;border-bottom:1px solid #edf0ee!important;box-shadow:none!important;filter:none!important}
  #app .app-shell>.topbar::before,#app .app-shell>.topbar::after,#app .app-shell>.topbar .brand::before,#app .app-shell>.topbar .brand::after,#app .app-shell>.topbar .brand-mark::before,#app .app-shell>.topbar .brand-mark::after{display:none!important;content:none!important;background:none!important;border:0!important;box-shadow:none!important}
  #app .app-shell>.topbar .brand{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-width:0!important}
  #app .app-shell>.topbar .brand strong{color:#203b2d!important;font-size:14px!important}
  
  
  /* Launcher: icons on the same canvas as the page, no giant white card. */
  #app .workspace:has(.phone-app-home){background:#f7f9f7!important;padding-bottom:calc(83px + env(safe-area-inset-bottom,0px))!important}
  #app .workspace .phone-app-home{padding:0!important;margin:0!important;min-height:0!important}
  #app .workspace .phone-app-welcome{padding:18px 17px!important;border-radius:15px!important;margin-bottom:0!important;box-shadow:none!important}
  #app .workspace .phone-app-section-title{margin:19px 3px 10px!important}
  #app .workspace .phone-app-grid{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0!important;gap:8px 4px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #app .workspace .phone-app-tile{min-height:88px!important;padding:9px 2px 7px!important;gap:8px!important;border:0!important;background:transparent!important;box-shadow:none!important;justify-content:flex-start!important;font-size:11px!important;line-height:1.3!important}
  #app .workspace .phone-app-tile:active{background:#e8f4ec!important}
  #app .workspace .phone-app-icon{width:48px!important;height:48px!important;border-radius:15px!important;background:#e6f3ea!important}
  /* Full-width login: no inset page, no desktop panels, no giant vertical spacer. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}



/* handset viewport launcher and unified full-screen login.
   Last scoped rules override legacy mobile styles without affecting tablet or desktop. */
@media only screen and (max-width:600px){
  /* Launcher occupies exactly the space between app bar and bottom tabs. */
  #app .app-shell>.workspace:has(.phone-app-home){
    position:relative!important;display:flex!important;flex-direction:column!important;
    box-sizing:border-box!important;width:100%!important;max-width:100vw!important;
    height:calc(100dvh - 70px - env(safe-area-inset-bottom,0px))!important;
    min-height:0!important;margin:0!important;
    padding:calc(56px + 8px) 13px 4px!important;
    overflow:hidden!important;background:#f7f9f7!important;
  }
  #app .workspace:has(.phone-app-home)>.workspace-head{display:none!important}
  #app .workspace .phone-app-home{
    display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
    box-sizing:border-box!important;width:100%!important;min-height:0!important;max-height:100%!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
  }
  #app .workspace .phone-app-welcome{
    flex:0 0 auto!important;min-height:0!important;
    padding:clamp(10px,2dvh,17px) 17px!important;
    border-radius:15px!important;box-shadow:none!important;margin:0!important;
  }
  #app .workspace .phone-app-kicker{font-size:10px!important;line-height:1.25!important}
  #app .workspace .phone-app-welcome h2{margin:5px 0 0!important;font-size:clamp(16px,4.4vw,20px)!important;line-height:1.25!important}
  #app .workspace .phone-app-section-title{
    flex:0 0 auto!important;margin:clamp(9px,1.6dvh,15px) 3px clamp(4px,1dvh,8px)!important;padding:0!important;
  }
  #app .workspace .phone-app-section-title h3{font-size:14px!important;line-height:1.25!important;margin:0!important}
  #app .workspace .phone-app-grid{
    flex:1 1 auto!important;display:grid!important;box-sizing:border-box!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-rows:minmax(0,1fr)!important;
    align-content:stretch!important;justify-items:stretch!important;
    min-height:0!important;width:100%!important;max-width:100%!important;
    gap:clamp(1px,.55dvh,6px) 3px!important;
    margin:0!important;padding:0 0 2px!important;
    background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
    overflow:hidden!important;
  }
  #app .workspace .phone-app-tile{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    min-height:0!important;min-width:0!important;height:100%!important;
    padding:1px 2px!important;margin:0!important;gap:clamp(3px,.7dvh,8px)!important;
    background:transparent!important;border:0!important;border-radius:11px!important;box-shadow:none!important;
    font-size:clamp(10px,2.7vw,12px)!important;line-height:1.14!important;
    overflow:hidden!important;text-align:center!important;
  }
  #app .workspace .phone-app-tile>span:last-child{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    max-width:100%!important;max-height:2.3em!important;overflow:hidden!important;overflow-wrap:anywhere!important;
  }
  #app .workspace .phone-app-icon{
    flex:0 0 auto!important;width:clamp(32px,5.7dvh,48px)!important;height:clamp(32px,5.7dvh,48px)!important;
    display:grid!important;place-items:center!important;border-radius:13px!important;background:#e7f4eb!important;
  }
  #app .workspace .phone-app-icon i{font-size:clamp(16px,2.6dvh,22px)!important}
  #app .workspace .phone-app-tile:active{background:#e7f2eb!important}
  /* Full-screen login: no parent inset, no floating cards, robust viewport sizing. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
/* On exceptionally short displays, keep every action accessible instead of clipping it. */
@media only screen and (max-width:600px) and (max-height:630px){
  #app .app-shell>.workspace:has(.phone-app-home){overflow-y:auto!important}
  #app .workspace .phone-app-home{overflow-y:visible!important;min-height:max-content!important}
  #app .workspace .phone-app-grid{flex:0 0 auto!important;grid-auto-rows:minmax(62px,auto)!important;overflow:visible!important}
  
}


/* Phone navigation, launcher content flow and footer cleanup.
   Limit all changes to handsets; desktop/tablet styling remains unchanged. */
@media only screen and (max-width:600px){
  :root{--phone-bottom-bar:69px;--hris-phone-safe:env(safe-area-inset-bottom,0px)}
  /* The desktop copyright strip does not belong between the app launcher and the phone tabs. */
  #app .app-shell>.app-system-footer{display:none!important}
  #app .app-shell>.workspace:not(:has(.phone-app-home)){
    padding-bottom:calc(90px + var(--hris-phone-safe))!important;
  }
  /* Natural-height, scrollable menu: no forced fractional tiles or content clipping. */
  #app .app-shell>.workspace:has(.phone-app-home){
    display:flex!important;flex-direction:column!important;
    width:100%!important;max-width:100%!important;
    height:auto!important;max-height:none!important;
    min-height:100dvh!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    padding:calc(var(--topbar) + 13px) 14px calc(var(--phone-bottom-bar) + 8px + var(--hris-phone-safe))!important;
    background:#f7faf8!important;
  }
  #app .app-shell>.workspace .phone-app-home{
    display:flex!important;flex:1 0 auto!important;flex-direction:column!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;margin:0!important;padding:0!important;
  }
  #app .workspace .phone-app-welcome{
    padding:18px 18px!important;border-radius:16px!important;
    background:linear-gradient(115deg,#176e50,#21825f)!important;
    box-shadow:0 3px 12px rgba(26,109,76,.08)!important;
  }
  #app .workspace .phone-app-section-title{margin:18px 2px 10px!important}
  #app .workspace .phone-app-section-title h3{font-size:15px!important}
  #app .workspace .phone-app-grid{
    display:grid!important;flex:0 0 auto!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;align-content:start!important;
    gap:8px!important;width:100%!important;
    margin:0!important;padding:0!important;
    overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  #app .workspace .phone-app-tile{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;width:100%!important;min-width:0!important;
    height:auto!important;min-height:88px!important;
    padding:10px 5px!important;gap:7px!important;
    border:1px solid #e4eee8!important;border-radius:14px!important;
    background:#fff!important;box-shadow:0 1px 5px rgba(33,86,55,.035)!important;
    color:#375447!important;font-size:11px!important;line-height:1.25!important;
  }
  #app .workspace .phone-app-tile:active{background:#ebf7ef!important;border-color:#b9ddca!important}
  #app .workspace .phone-app-icon{
    width:43px!important;height:43px!important;border-radius:13px!important;
    background:#eaf6ee!important;color:#158057!important;
  }
  #app .workspace .phone-app-icon i{font-size:20px!important}
  #app .workspace .phone-app-footer{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;gap:2px!important;
    width:100%!important;margin-top:auto!important;
    padding:19px 4px 6px!important;box-sizing:border-box!important;
    color:#83978c!important;font-size:10px!important;line-height:1.45!important;
    text-align:center!important;letter-spacing:.01em!important;
  }
  #app .workspace .phone-app-footer small{font-size:9px!important;letter-spacing:.04em!important;color:#9caea2!important;text-transform:uppercase!important}
  /* Five aligned, thumb-friendly tabs, clear active state, small center elevation. */
  #app .phone-bottom-nav{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:center!important;gap:1px!important;
    min-height:calc(var(--phone-bottom-bar) + var(--hris-phone-safe))!important;
    padding:5px 5px calc(5px + var(--hris-phone-safe))!important;
    box-sizing:border-box!important;background:rgba(255,255,255,.98)!important;
    border-top:1px solid #e1ebe4!important;
    box-shadow:0 -5px 21px rgba(27,70,46,.065)!important;
    z-index:130!important;
  }
  #app .phone-bottom-nav>button{
    min-width:0!important;min-height:56px!important;padding:4px 1px!important;
    gap:5px!important;border-radius:11px!important;font-size:10px!important;
    color:#748b7c!important;line-height:1.12!important;
  }
  #app .phone-bottom-nav>button.active:not(.phone-nav-center){background:#eaf6ee!important;color:#087b52!important}
  #app .phone-bottom-nav>button i{font-size:19px!important}
  #app .phone-bottom-nav .phone-nav-center{gap:3px!important;color:#187650!important}
  #app .phone-bottom-nav .phone-nav-orb{
    width:46px!important;height:46px!important;margin-top:-13px!important;
    border:3px solid #fff!important;border-radius:15px!important;
    box-shadow:0 4px 12px rgba(16,108,71,.18)!important;
  }
  #app .phone-bottom-nav .phone-nav-orb i{font-size:20px!important}
}
@media only screen and (max-width:360px){
  #app .workspace .phone-app-grid{gap:6px!important}
  #app .workspace .phone-app-tile{min-height:82px!important;font-size:10px!important;padding:8px 3px!important}
  #app .phone-bottom-nav>button{font-size:9px!important}
}
