body{font-family:Arial, sans-serif;background:#f3f7fc;color:#00245c;margin:0} .top{display:flex;justify-content:space-between;align-items:center;padding:24px} .card{background:white;border-radius:22px;margin:24px;padding:28px;box-shadow:0 0 0 1px #e5edf7}.btn{background:#1d6bd8;color:white;padding:11px 18px;border-radius:12px;text-decoration:none;border:0;font-weight:bold}.btn.green{background:#19a05b}.btn.red{background:#e22c25}.btn.light{background:#eef5ff;color:#00245c}input,select{padding:12px;border:1px solid #d8e2ef;border-radius:10px;width:100%;box-sizing:border-box}table{width:100%;border-collapse:collapse}th{background:#f3f7fc;text-align:left;padding:14px}td{padding:14px;border-bottom:1px solid #e5edf7}.badge{padding:8px 16px;border-radius:18px;background:#ffe7ea;color:#d01919;font-weight:bold}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.nav a{margin-right:10px}.login{max-width:420px;margin:90px auto}.print-invoice{background:white;color:#000;max-width:960px;margin:20px auto;padding:35px}.print-invoice table th,.print-invoice table td{border:1px solid #777;padding:6px}.right{text-align:right}@media print{body{background:white}.no-print{display:none}.print-invoice{margin:0;max-width:none}}


/* Mobile sidebar menu - keeps desktop sidebar unchanged */
.mobile-menu-btn,
.mobile-close-btn,
.mobile-sidebar-title{
  display:none;
}
.sidebar-overlay{
  display:none;
}

@media (max-width: 768px){
  body{
    overflow-x:hidden;
  }
  .top{
    padding:14px 16px;
    gap:12px;
    justify-content:flex-start;
    position:sticky;
    top:0;
    z-index:900;
    background:#f3f7fc;
    box-shadow:0 1px 0 #e5edf7;
  }
  .top h1{
    font-size:22px;
    margin:0;
    line-height:1.2;
  }
  .mobile-menu-btn{
    display:inline-block;
    background:#1d6bd8;
    color:#fff;
    border:0;
    border-radius:12px;
    padding:10px 14px;
    font-weight:bold;
    font-size:16px;
  }
  .layout{
    display:block !important;
  }
  .sidebar{
    position:fixed;
    top:0;
    left:-290px;
    width:260px !important;
    max-width:82vw;
    height:100vh;
    overflow-y:auto;
    background:#f3f7fc;
    z-index:1000;
    padding:16px !important;
    box-shadow:6px 0 20px rgba(0,0,0,.18);
    transition:left .25s ease;
  }
  .sidebar.active{
    left:0;
  }
  .mobile-close-btn{
    display:block;
    width:100%;
    background:#eef5ff;
    color:#00245c;
    border:0;
    border-radius:12px;
    padding:12px;
    margin-bottom:10px;
    font-weight:bold;
    text-align:left;
  }
  .mobile-sidebar-title{
    display:block;
    font-weight:bold;
    margin:8px 0 14px;
    color:#00245c;
  }
  .sidebar .btn{
    width:100%;
    box-sizing:border-box;
    margin-bottom:10px !important;
    text-align:left;
  }
  .sidebar-overlay.active{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:999;
  }
  .content{
    width:100%;
    margin:0 !important;
  }
  .card{
    margin:14px;
    padding:18px;
    border-radius:18px;
    overflow-x:auto;
  }
  table{
    min-width:620px;
  }
  .grid{
    grid-template-columns:1fr;
  }
}

@media (min-width: 769px){
  .sidebar{
    position:static;
  }
}


.action-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.action-buttons .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

@media (max-width: 768px){
  .action-buttons{
    gap:8px;
  }
  .action-buttons .btn{
    padding:10px 12px;
    min-width:82px;
    font-size:15px;
  }
  td .badge{
    display:inline-block;
  }
}

/* STEP 4: Smaller action/remove buttons and extra mobile polish */
.btn.small,
.remove-row,
.remove-kitchen-row,
.remove-invoice-row{
  padding:7px 10px !important;
  border-radius:9px !important;
  font-size:13px !important;
  line-height:1.1;
  min-width:auto !important;
}

td .btn{
  padding:8px 12px;
  border-radius:10px;
  font-size:14px;
}

form .remove-row,
form .remove-kitchen-row,
form .remove-invoice-row{
  margin-top:6px;
}

@media (max-width:768px){
  .top h1{font-size:20px;}
  .mobile-menu-btn{padding:9px 12px;font-size:15px;}
  .card{margin:10px;padding:14px;}
  .card h2{font-size:20px;line-height:1.25;}
  .card h3{font-size:17px;}
  .btn{padding:9px 12px;border-radius:10px;font-size:14px;}
  td .btn{padding:7px 9px;font-size:13px;}
  .action-buttons{gap:6px;}
  .action-buttons .btn{min-width:auto;padding:8px 10px;font-size:13px;}
  .badge{padding:7px 12px;font-size:14px;}
  input,select{font-size:16px;padding:10px;} /* prevents phone browser zoom */
  th,td{padding:10px;}
  table{min-width:560px;}
  .table-wrap,
  .card{ -webkit-overflow-scrolling:touch; }
}

@media (max-width:480px){
  .top{padding:10px 12px;}
  .top h1{font-size:18px;}
  .card{margin:8px;padding:12px;border-radius:14px;}
  table{min-width:520px;}
}


/* FINAL: compact action buttons */
.btn.small,
a.btn.small,
button.btn.small,
td .btn.small,
.remove-row,
.remove-kitchen-row,
.remove-invoice-row{
  display:inline-flex !important;
  width:auto !important;
  min-width:0 !important;
  max-width:max-content !important;
  padding:6px 10px !important;
  border-radius:8px !important;
  font-size:13px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  justify-content:center !important;
  align-items:center !important;
}
.product-row .remove-row,
.grid .remove-row,
.grid .remove-kitchen-row,
.grid .remove-invoice-row{
  justify-self:start !important;
  align-self:end !important;
}
td .btn.red,
td .btn{
  width:auto !important;
  display:inline-flex;
  margin:2px;
}


/* STEP 16: expandable grouped tables */
.expand-btn{
  background:#eef5ff;
  color:#00245c;
  border:0;
  border-radius:10px;
  padding:7px 12px;
  font-weight:bold;
  cursor:pointer;
}
.expand-btn.open{background:#1d6bd8;color:#fff;}
.expand-details{display:none;}
.expand-details.show{display:table-row;}
.group-summary td{font-weight:bold;background:#fbfdff;}
.inner-table{margin:10px 0;min-width:520px;}
.inner-table th{background:#eef5ff;}
@media(max-width:768px){.expand-btn{padding:7px 11px}.inner-table{min-width:520px}}


/* Professional public home page */
.home-body{
  margin:0;
  min-height:100vh;
  background:#061b3d;
  color:#fff;
  overflow-x:hidden;
}
.home-hero{
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 20% 20%, rgba(29,107,216,.45), transparent 32%),
    linear-gradient(135deg, #061b3d 0%, #00245c 48%, #07162e 100%);
}
.home-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.04));
}
.home-content{
  position:relative;
  z-index:1;
  width:min(1180px, 100%);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  align-items:center;
}
.home-badge{
  display:inline-block;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  padding:9px 14px;
  border-radius:999px;
  font-weight:bold;
  margin-bottom:18px;
}
.home-text h1{
  font-size:56px;
  line-height:1.02;
  margin:0 0 18px;
  color:#fff;
}
.home-text p{
  font-size:19px;
  line-height:1.55;
  color:#dce9ff;
  max-width:590px;
}
.manager-login-btn{
  margin-top:16px;
  background:#19a05b;
  color:#fff;
  border:0;
  padding:15px 24px;
  border-radius:14px;
  font-size:18px;
  font-weight:bold;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}
.home-gallery{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.home-gallery img{
  width:100%;
  height:210px;
  object-fit:cover;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
.home-gallery img:first-child{transform:translateY(26px)}
.home-gallery img:nth-child(3){transform:translateY(18px)}
.home-login-panel{
  position:fixed;
  inset:0;
  z-index:2000;
  background:rgba(0,0,0,.62);
  align-items:center;
  justify-content:center;
  padding:18px;
}
.home-login-card{
  width:min(430px, 100%);
  background:#fff;
  color:#00245c;
  border-radius:22px;
  padding:30px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
  position:relative;
}
.home-login-card h2{margin-top:0;font-size:30px}
.home-login-card label{display:block;margin:12px 0 7px;font-weight:bold}
.login-submit{width:100%;margin-top:18px;padding:13px}
.login-close{
  position:absolute;
  top:12px;
  right:14px;
  border:0;
  background:#eef5ff;
  color:#00245c;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.login-error{background:#ffe7ea;color:#d01919;padding:10px 12px;border-radius:10px;font-weight:bold}
@media (max-width:800px){
  .home-content{grid-template-columns:1fr;gap:24px}
  .home-text h1{font-size:38px}
  .home-text p{font-size:16px}
  .home-gallery img{height:150px;border-radius:16px}
  .home-gallery img:first-child,.home-gallery img:nth-child(3){transform:none}
  .home-hero{padding:24px 14px;align-items:flex-start}
  .manager-login-btn{width:100%;font-size:16px}
}

