body.makoken-has-back{padding-top:60px!important}
#makokenBackbar{box-sizing:border-box;position:fixed;inset:0 0 auto;z-index:100;height:60px;display:flex;align-items:center;gap:12px;padding:8px max(14px,env(safe-area-inset-left));background:#fff;border-bottom:1px solid #ccd9df;box-shadow:0 2px 5px #14334414;font:15px/1.4 Meiryo,sans-serif}
#makokenBackbar[hidden]{display:none!important}
#makokenBackbar button,.makoken-dialog-back button,.makoken-file-head button{box-sizing:border-box;font:600 15px/1.4 Meiryo,sans-serif;min-height:44px;padding:9px 16px;border:1px solid #236d76;border-radius:8px;background:#12616c;color:#fff;cursor:pointer;margin:0;white-space:normal;max-width:100%}
#makokenBackbar button:disabled{background:#f0f4f5;color:#60747a;border-color:#cbd6db;cursor:default}
body.makoken-has-back>.toolbar,body.makoken-has-back>.workflow-header{top:60px}
body.makoken-has-back.details-expanded #estimateDetails{top:60px}
.makoken-dialog-back{position:sticky;top:0;z-index:15;display:flex;background:#fff;padding:8px 0;margin:0 0 12px;border-bottom:1px solid #d9e2e5}
dialog.makoken-file-viewer{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;padding:0;margin:0;border:0;border-radius:0;background:#e8edef;color:#172d40;overflow:hidden}
dialog.makoken-file-viewer[open]{display:flex;flex-direction:column}
.makoken-file-head{flex:none;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px max(14px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:#fff;box-shadow:0 2px 5px #1233;z-index:1}
.makoken-file-head strong{flex:1;min-width:120px;overflow-wrap:anywhere;font:600 15px/1.5 Meiryo,sans-serif}
.makoken-file-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 16px max(16px,env(safe-area-inset-bottom));text-align:center}
.makoken-file-body>img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;margin:auto;cursor:zoom-in}
.makoken-file-body>img.original-size{max-width:none;max-height:none;cursor:zoom-out}
.makoken-pdf-pages{max-width:1000px;margin:auto}
.makoken-pdf-pages canvas{display:block;width:100%;height:auto;background:#fff;margin:0 auto 16px;box-shadow:0 2px 8px #0002}
@media(max-width:600px){.makoken-file-head{gap:8px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top))}.makoken-file-head strong{order:3;flex-basis:100%;font-size:13px;max-height:3em;overflow:auto}.makoken-file-body{padding:8px}.makoken-file-head button{font-size:14px;padding:8px 12px}}
@media print{#makokenBackbar,.makoken-dialog-back{display:none!important}body.makoken-has-back{padding-top:0!important}dialog.makoken-file-viewer{display:none!important}}
