/* Shared tablet-friendly visual rhythm. */
@media screen {
:root{--paper:#f5f4f0;--white:#fff;--ink:#34372f;--muted:#82877c;--line:#e5e8df;--orange:#b97550;--shadow:0 4px 20px #27352305}
body{line-height:1.55}.shell{max-width:1320px;padding:28px 32px 48px}.topbar{margin-bottom:24px}.brand-title{letter-spacing:.02em}.mark{background:#73836a;border-radius:12px}.date-pill{background:#fff;border-color:var(--line)}
.app-nav{display:flex;gap:6px;flex-wrap:wrap;padding:7px;background:#eceee7;border-radius:14px;margin-bottom:28px}.app-nav a{border:0!important;border-radius:9px!important;padding:11px 16px!important;font-size:13px!important;text-decoration:none;color:#69705f!important}.app-nav a.active{background:#fff!important;color:#36492e!important;box-shadow:0 2px 8px #293d2110}
.heading{gap:16px;margin-bottom:20px}.heading h1{font-size:24px}.panel,.card{border-radius:16px;border-color:var(--line);background:#fff;box-shadow:var(--shadow)}.panel-head{padding:20px 22px 16px}.panel-title{font-size:15px}.layout{gap:22px}th{background:#f8f9f5;padding:12px 20px;font-size:11px}td{padding:15px 20px;border-color:#edf0e9}tbody tr:hover{background:#fafbf8}.product{gap:12px}.bread{background:#f2f3ec;border-radius:10px}
button,input,select{transition:background .15s,border-color .15s,box-shadow .15s}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #9aad8b;outline-offset:3px}.primary,.submit{background:#647959;border-radius:10px}.primary:hover,.submit:hover{background:#506346}.secondary{background:#fff;border-color:#dce2d5;border-radius:10px}.field input,.field select,.material-search,.material-select,.customer-tools input,.customer-edit-card input,.customer-price-fields input{min-height:42px;background:#fff;border-color:#dfe4d8;border-radius:9px}.field input:focus,.field select:focus,input:focus-visible,select:focus-visible{outline:2px solid #a9b69c;outline-offset:1px}.waste-stepper button{width:34px;height:34px;border-radius:8px}.modal{border-radius:20px;padding:26px}.modal-head{margin-bottom:22px}.customer-tools{gap:10px}.customer-menu-preview{border-radius:12px;box-shadow:0 8px 30px #293d2109}.customer-editor{margin-top:22px;padding:0 22px 22px}.customer-editor-grid{gap:14px}.customer-edit-card{padding:17px;background:#fafbf8;border-radius:12px}.customer-edit-day{font-size:14px}.customer-edit-card label{margin:10px 0}.customer-price-fields{gap:20px;margin-bottom:20px}.footer{padding-top:32px}
@media(max-width:800px){.shell{padding:20px 16px 36px}.topbar{gap:12px;flex-wrap:wrap}.app-nav{gap:4px}.app-nav a{padding:10px 12px!important}.heading h1{font-size:22px}.panel-head{padding:17px 16px}.customer-tools{width:100%}.customer-tools button{min-height:42px}.customer-editor{padding:0 16px 18px}td,th{padding-left:14px;padding-right:14px}}
}

.customer-edit-card select{width:100%;min-width:0;min-height:42px;border:1px solid #dfe4d8;border-radius:9px;background:#fff;padding:8px;color:var(--ink);font:12px 'Noto Sans JP'}.catalog-list{margin-top:20px}.catalog-row{display:grid;grid-template-columns:64px 1fr auto auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:12px}.catalog-row>span:first-child{color:var(--muted)}@media(max-width:600px){.catalog-row{grid-template-columns:1fr auto auto}.catalog-row>span:first-child{grid-column:1/-1}}@media print{.customer-print-mode #customerCatalogDetails{display:none!important}}

/* Stable-fix candidate: bounded date controls and distinct bread actions. */
.home-bread-actions{display:flex;flex-wrap:wrap;gap:12px}.home-bread-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid #cdb9a7;border-radius:10px;background:#fff8ee;color:#604b40;text-decoration:none;flex:1 1 140px}
#wastePage,#wastePage .layout,#wastePage .panel,#wasteForm,#wasteForm .field{min-width:0;max-width:100%;box-sizing:border-box}
#wasteForm input,#wasteForm select{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
#wasteDate{display:block;min-inline-size:0;-webkit-appearance:none;appearance:none}#wasteDate::-webkit-date-and-time-value{text-align:left;min-height:1.5em}
@media(max-width:600px){#wasteForm .form-grid{grid-template-columns:minmax(0,1fr)}#wastePage{padding-bottom:calc(90px + env(safe-area-inset-bottom))}.overlay{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.modal{max-height:calc(100dvh - 40px - env(safe-area-inset-bottom));overflow-y:auto}.sh-cal button{min-height:52px}}

.sh-request-layout [hidden]{display:none!important}#wasteForm input{scroll-margin-block:100px}

@media screen {
#homePage .cafe-hero {min-height:0;background:#f4e8df;border:1px solid #ead9cc;color:#624c42}
#homePage .cafe-hero-copy {padding:20px 24px;width:100%}
#homePage .cafe-hero h2 {color:#624c42;font-size:28px;margin:0 0 8px}
#homePage .cafe-hero-art {display:none}
#homePage .cafe-hero-links a {color:#755648;border-color:#dbc2b5}
#homePage .home-task-links {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0 26px}
#homePage .home-task-links .home-photo-card {background:#fffaf5;color:#60473d;border:1px solid #e4d1c2;border-radius:22px;display:block}
#homePage .home-task-links .home-photo-card img {height:150px;min-height:0;transform:none}
#homePage .home-task-links h3 {color:#60473d;font-size:21px;font-weight:700}
#homePage .home-task-links p {color:#836b60}
#homePage .home-task-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
#homePage .home-task-buttons a,#homePage .home-bread-actions a {display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:10px 8px;background:#f5e8e1;color:#674c41;border:1px solid #e5cfc3;border-radius:12px;text-decoration:none;font-weight:700;font-size:14px;box-sizing:border-box}
#homePage .home-task-buttons a:hover,#homePage .home-bread-actions a:hover {background:#eed9cf}
#homePage .home-metrics {margin-top:24px}
@media(max-width:780px){#homePage .home-task-links{grid-template-columns:1fr}#homePage .home-task-links .home-photo-card>div{padding:18px}#homePage .home-task-links .home-photo-card img{height:120px}#homePage .cafe-hero-copy{padding:16px}}
}

@media screen{.topbar{flex-wrap:wrap}.weather-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;margin-left:auto;padding:8px 14px;border-radius:999px;background:#f5e6df;border:1px solid #dec5b7;color:#684c40;text-decoration:none;font-size:13px;font-weight:700;overflow-wrap:anywhere;box-sizing:border-box}.weather-shortcut[hidden]{display:none!important}}
