/*
 * GREEN GOLD LIFE — TABLET UI
 * Range: 768px–1023px
 *
 * This file is isolated from mobile, laptop and desktop.
 */

@media (min-width:768px) and (max-width:1023px){

  html,
  body{
    min-width:768px;
    background:#f5f5f5;
    font-family:
      "Segoe UI Variable",
      "Segoe UI",
      Inter,
      system-ui,
      sans-serif;
  }

  body.ggl-device-tablet{
    background:#f5f5f5;
    color:#242424;
  }

  body.ggl-device-tablet .app-frame{
    width:100%;
    max-width:none;
    min-height:100vh;
    margin:0;
    background:#f5f5f5;
    box-shadow:none;
  }

  body.ggl-device-tablet .ggl-common-topbar{
    position:fixed;
    z-index:90;
    top:0;
    right:0;
    left:0;
    width:100%;
    min-height:60px;
    height:60px;
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:0 20px;
    border-bottom:1px solid #e1dfdd;
    background:#ffffff;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
  }

  body.ggl-device-tablet .ggl-topbar-button{
    width:40px;
    height:40px;
    border:1px solid transparent;
    border-radius:6px;
    background:transparent;
  }

  body.ggl-device-tablet .ggl-topbar-button:hover{
    border-color:#d2d0ce;
    background:#f3f2f1;
  }

  body.ggl-device-tablet .ggl-topbar-title strong{
    color:#242424;
    font-size:19px;
    font-weight:600;
  }

  body.ggl-device-tablet .ggl-topbar-title small{
    color:#605e5c;
    font-size:10px;
  }

  body.ggl-device-tablet .drawer{
    position:fixed;
    z-index:95;
    top:60px;
    bottom:0;
    left:0;
    width:min(360px,88vw);
    border-right:1px solid #e1dfdd;
    background:#ffffff;
    box-shadow:8px 0 24px rgba(0,0,0,.14);
  }

  body.ggl-device-tablet .drawer-overlay{
    z-index:94;
    top:60px;
    background:rgba(0,0,0,.38);
  }

  body.ggl-device-tablet .drawer-profile{
    min-height:74px;
    padding:10px 14px;
    border-bottom:1px solid #edebe9;
    background:#faf9f8;
  }

  body.ggl-device-tablet .drawer-profile-link{
    min-width:0;
    border-radius:6px;
  }

  body.ggl-device-tablet .drawer-scroll{
    height:calc(100vh - 134px);
    padding:8px;
  }

  body.ggl-device-tablet .nav-group-title{
    padding:16px 12px 7px;
    color:#605e5c;
    font-size:10px;
    font-weight:700;
    letter-spacing:.08em;
  }

  body.ggl-device-tablet .nav-link{
    min-height:44px;
    margin:2px 0;
    padding:8px 10px;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#323130;
  }

  body.ggl-device-tablet .nav-link:hover{
    background:#f3f2f1;
  }

  body.ggl-device-tablet .nav-link.active{
    border-left:3px solid #0f6cbd;
    border-radius:3px;
    background:#eaf3fb;
    color:#0f548c;
  }

  body.ggl-device-tablet .nav-chevron{
    color:#8a8886;
    font-size:18px;
  }

  body.ggl-device-tablet .main{
    width:100%;
    max-width:none;
    min-height:100vh;
    margin:0;
    padding:88px 24px 36px;
    overflow:visible;
  }

  body.ggl-device-tablet .bottom-nav,
  body.ggl-device-tablet .ggl-common-bottom-nav{
    display:none !important;
  }

  body.ggl-device-tablet .app-frame > .main{
    padding-bottom:36px;
  }

  body.ggl-device-tablet .page-head{
    align-items:center;
    margin:0 0 20px;
    padding:0;
  }

  body.ggl-device-tablet .page-head h1{
    margin:3px 0 4px;
    color:#242424;
    font-size:28px;
    font-weight:600;
  }

  body.ggl-device-tablet .page-head p{
    color:#605e5c;
  }

  body.ggl-device-tablet .eyebrow{
    color:#0f6cbd;
    font-size:10px;
    letter-spacing:.1em;
  }

  body.ggl-device-tablet .hero{
    margin-bottom:18px;
    padding:24px;
    border:1px solid #d2d0ce;
    border-left:4px solid #0f6cbd;
    border-radius:8px;
    background:#ffffff;
    color:#242424;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
  }

  body.ggl-device-tablet .hero small{
    color:#0f6cbd;
    font-weight:700;
  }

  body.ggl-device-tablet .hero h1{
    margin:8px 0;
    color:#242424;
    font-size:30px;
    font-weight:600;
  }

  body.ggl-device-tablet .hero p{
    color:#605e5c;
  }

  body.ggl-device-tablet .card,
  body.ggl-device-tablet .data-card,
  body.ggl-device-tablet .workspace-card,
  body.ggl-device-tablet .control-card,
  body.ggl-device-tablet .readiness-card,
  body.ggl-device-tablet .quick-card,
  body.ggl-device-tablet .task-card{
    border:1px solid #e1dfdd;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 2px 8px rgba(0,0,0,.055);
  }

  body.ggl-device-tablet .stat{
    min-height:112px;
    padding:18px;
    border:1px solid #e1dfdd;
    border-radius:8px;
    background:#ffffff;
    box-shadow:none;
  }

  body.ggl-device-tablet .stat strong{
    color:#0f6cbd;
    font-size:27px;
    font-weight:600;
  }

  body.ggl-device-tablet .grid.stats,
  body.ggl-device-tablet .control-grid,
  body.ggl-device-tablet .section-grid,
  body.ggl-device-tablet .admin-split,
  body.ggl-device-tablet .report-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  body.ggl-device-tablet .module-tiles{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.ggl-device-tablet .btn,
  body.ggl-device-tablet .pill-button{
    min-height:40px;
    border-radius:5px;
  }

  body.ggl-device-tablet .btn-primary{
    background:#0f6cbd;
    color:#ffffff;
  }

  body.ggl-device-tablet .btn-primary:hover{
    background:#115ea3;
  }

  body.ggl-device-tablet .input,
  body.ggl-device-tablet .textarea,
  body.ggl-device-tablet select{
    border-radius:5px;
  }

  body.ggl-device-tablet .control-tabs{
    border:1px solid #e1dfdd;
    border-radius:7px;
    background:#faf9f8;
  }

  body.ggl-device-tablet .control-tabs button{
    border-radius:5px;
  }

  body.ggl-device-tablet .control-tabs button.active{
    color:#0f548c;
    background:#ffffff;
    box-shadow:0 1px 4px rgba(0,0,0,.1);
  }

  body.ggl-device-tablet .modal-backdrop{
    align-items:center;
    padding:28px;
  }

  body.ggl-device-tablet .modal{
    width:min(760px,100%);
    border-radius:10px;
  }

  body.ggl-device-tablet .toast{
    bottom:28px;
  }

  body.ggl-device-tablet.gg-dark,
  body.ggl-device-tablet.ggl-dark-theme{
    background:#1b1a19;
    color:#f3f2f1;
  }

  body.ggl-device-tablet.gg-dark .ggl-common-topbar,
  body.ggl-device-tablet.gg-dark .drawer,
  body.ggl-device-tablet.gg-dark .card,
  body.ggl-device-tablet.gg-dark .data-card,
  body.ggl-device-tablet.gg-dark .workspace-card,
  body.ggl-device-tablet.gg-dark .control-card,
  body.ggl-device-tablet.gg-dark .stat,
  body.ggl-device-tablet.gg-dark .hero{
    border-color:#3b3a39;
    background:#252423;
    color:#f3f2f1;
  }
}
