/* DMS 3.10.13: app layouts for phones, tablets, laptops, desktops and foldables.
   No global header/footer restyling: WordPress theme keeps full control. */
body.dms-app-route #dms-account-root,
body.dms-app-route #dms-quote-root {width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere;}
body.dms-app-route #dms-account-root *,
body.dms-app-route #dms-quote-root * {max-width:100%;}
body.dms-app-route #dms-account-root input,
body.dms-app-route #dms-account-root select,
body.dms-app-route #dms-account-root textarea,
body.dms-app-route #dms-quote-root input,
body.dms-app-route #dms-quote-root select,
body.dms-app-route #dms-quote-root textarea {min-width:0;}
body.dms-account-page .dms-account-main {width:100%;max-width:740px;padding-inline:clamp(16px,3.5vw,36px);}
body.dms-proposal-page #dms-quote-root > .dms-quote-main {width:100%;max-width:790px;padding-inline:clamp(16px,3.5vw,38px);}
@media (max-width:359px) {
 body.dms-account-page .dms-account-main {padding-inline:14px;}
 body.dms-proposal-page #dms-quote-root > .dms-quote-main {padding-inline:14px;}
 body.dms-account-page .dms-account-panel {padding-inline:13px;}
}
@media (min-width:1024px) {
 body.dms-account-page .dms-account-main {max-width:840px;padding-block:48px 70px;}
 body.dms-proposal-page #dms-quote-root > .dms-quote-main {max-width:900px;padding-block:38px 80px;}
}
@media (min-width:1440px) {
 body.dms-account-page .dms-account-main {max-width:940px;}
 body.dms-proposal-page #dms-quote-root > .dms-quote-main {max-width:960px;}
}
/* Keep the dock accessible above mobile safe areas and on desktop app routes. */
@media (min-width:768px) {
 html.dms-app-entry body #dms-original-bottom-nav {display:flex!important;left:50%!important;right:auto!important;bottom:20px!important;transform:translateX(-50%);width:min(550px,calc(100% - 32px))!important;border-radius:24px;}
}
/* Installation helper: only shown by script when viewing the app in a browser. */
html body #dms-app-install[hidden],html body #dms-app-install .dms-install-help[hidden]{display:none!important;}
html body #dms-app-install {
 position:fixed;z-index:2147483001;bottom:calc(91px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);
 display:flex;align-items:center;flex-wrap:wrap;gap:10px;box-sizing:border-box;
 width:min(440px,calc(100vw - 24px));padding:11px 12px;border:1px solid #38334c;border-radius:16px;
 color:#f7f7fb;background:#12101e;box-shadow:0 12px 32px #0009;
 font:500 12px/1.35 Poppins,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}
#dms-app-install .dms-install-logo {flex:none;width:42px;height:42px;object-fit:contain;border-radius:10px;}
#dms-app-install .dms-install-copy {display:flex;flex:1 1 110px;flex-direction:column;gap:3px;min-width:0;}
#dms-app-install .dms-install-copy strong {font-size:12px;color:#fff;font-weight:750;}
#dms-app-install .dms-install-copy span {font-size:11px;color:#b0adbb;}
html body #dms-app-install button {appearance:none;box-shadow:none!important;margin:0;cursor:pointer;}
html body #dms-app-install .dms-install-action {background:linear-gradient(110deg,#363EDA,#0693E3)!important;color:#fff!important;border:0!important;border-radius:10px;padding:10px 12px;min-height:40px;font-size:12px;font-weight:750;}
html body #dms-app-install .dms-install-dismiss {background:transparent!important;border:0!important;color:#c3bfd2!important;font-size:22px;line-height:1;min-height:36px;min-width:28px;padding:0;}
#dms-app-install .dms-install-help {flex:1 0 100%;padding:11px 3px 3px;border-top:1px solid #302b3d;color:#dedbe9;font-size:12px;line-height:1.55;}
@media (min-width:768px) {html body #dms-app-install {bottom:107px;}}
@media (max-width:359px) {html body #dms-app-install {gap:7px;padding:9px;}#dms-app-install .dms-install-logo{width:34px;height:34px;}html body #dms-app-install .dms-install-action{padding:9px 8px;}}
@media (max-height:500px) and (orientation:landscape) {html body #dms-app-install {bottom:calc(72px + env(safe-area-inset-bottom,0px));max-height:40vh;overflow:auto;}}
@media print {#dms-original-bottom-nav,#dms-app-install{display:none!important;}}
