#costhub,.cost-panel,#recipes .recipe-box,#recipes .recipe-box>*{width:100%;max-width:100%;min-width:0}
.mz-role-readonly{margin:0 0 14px;padding:12px 14px;border-left:4px solid #d8f46a;border-radius:0 12px 12px 0;background:#f7fbe9;color:#304736;font-weight:700;line-height:1.45}
.mz-accounting-readonly #ingredients td:last-child,.mz-accounting-readonly #recipes td:last-child,.mz-accounting-readonly #waste td:last-child{width:0;padding-left:0;padding-right:0}
.mz-cost-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.mz-cost-table-scroll table{margin:0}
.mz-waste-guide{margin:0 0 16px;padding:13px 15px;border-left:4px solid var(--lime);border-radius:0 12px 12px 0;background:#f7fbe9;color:#3e503f;line-height:1.5}
.mz-waste-guide b{display:block;margin-bottom:4px;color:#203b29}.mz-waste-guide span{font-size:13px}
.mz-waste-date{display:grid;gap:5px;min-width:150px}.mz-waste-date span{font-size:12px;font-weight:800;color:#405547}.mz-waste-date input{width:100%}
.mz-waste-status{margin:10px 0 4px;padding:11px 14px;border-radius:12px;background:#e9f7e9;color:#075d28;font-weight:800}
.mz-waste-cards{display:none}
@media(max-width:700px){
  .side{padding:14px 16px 12px!important}
  .side .brand{padding:2px 8px 10px!important}
  .side .nav{padding-bottom:0!important;margin:0!important}
  .mz-settings-link{width:auto!important;margin:8px 8px 0!important;padding:9px 10px!important}
  .main{width:100vw!important;max-width:100vw!important;padding:15px!important;overflow-x:hidden}
  #costhub{width:calc(100vw - 30px)!important;max-width:calc(100vw - 30px)!important;min-width:0!important}
  #recipes,#waste{overflow:hidden}
  #recipes,#waste,#recipes .recipe-box,#waste>.card{width:100%!important;max-width:100%!important;min-width:0!important}
  #recipes .recipe-box{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px}
  #recipes .form,#waste .form{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px}
  #recipes .form .btn,#waste .form .btn{width:100%;min-height:48px}
  #recipes .recipe-box>div:last-child{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  #recipes .recipe-box>div:last-child .card{margin-top:0!important}
  #recipes .section-title>div:last-child{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px}
  #recipes .section-title>div:last-child .btn{width:100%}
  #recipes .mz-cost-table-scroll table{min-width:500px;table-layout:auto}
  #waste .mz-cost-table-scroll{display:none}
  #waste .card{width:100%;max-width:100%;min-width:0;overflow:hidden}
  #wasteForm,#wasteForm>*{width:100%!important;max-width:100%!important;min-width:0!important}
  #wasteForm .btn{display:block!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere}
  .mz-waste-guide{max-width:100%;overflow:hidden;overflow-wrap:anywhere}
  .mz-cost-table-scroll{margin-top:4px;padding-bottom:4px}
  .mz-waste-cards{display:grid;gap:12px;margin-top:16px}
  .mz-waste-card{display:grid;gap:14px;padding:16px;border:1px solid #dbe4da;border-radius:16px;background:#fbfdf9;box-shadow:0 5px 18px rgba(24,55,38,.06)}
  .mz-waste-card-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
  .mz-waste-card-head>div{display:grid;gap:3px}.mz-waste-card small{color:#647468;font-size:12px}.mz-waste-card strong{font-size:17px}
  .mz-waste-loss{text-align:right}.mz-waste-loss strong{color:#b42318;font-size:22px}
  .mz-waste-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
  .mz-waste-card dl div{min-width:0}.mz-waste-card dt{font-size:11px;color:#6d7a70}.mz-waste-card dd{margin:4px 0 0;font-weight:800;overflow-wrap:anywhere}
  .mz-waste-card .btn{width:100%;min-height:44px}
  .mz-waste-empty{padding:24px 12px;text-align:center;color:#738078}
}
