/* sm2 (Tim 12/04): side menu look from Tim's mock-up. Every rule sits under html.sm2, which layouts/app.blade.php switches on
   (staging only at first, then everywhere when Tim sent it live). Looks only: no option, row or button is added or removed. */

html.sm2 #rail { background: linear-gradient(180deg, #f3f6fb 0%, #e4ebf5 100%); }

/* header: white, with a navy sweep in the top corner */
html.sm2 #tbBar { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%); border-bottom: 0; }
html.sm2 #tbBar::before { content: ''; position: absolute; top: 0; right: 0; width: 170px; height: 70px; pointer-events: none; background: radial-gradient(ellipse 100% 100% at 0% 100%, transparent 0 106%, #a9bedd 106.8% 108.2%, transparent 109% 111.6%, #12305c 112.4%); }
html.sm2 #tbBar > * { position: relative; z-index: 1; }

/* rows: white cards with an icon tile */
html.sm2 #sections { background: transparent; }
html.sm2 .sec { background: #fff; border: 1px solid #dde5f0; border-radius: 12px; box-shadow: 0 2px 6px rgba(15, 39, 72, .08); margin: 0 0 8px; }
html.sm2 .sec > .head { padding: 10px 12px; gap: 12px; }
html.sm2 .sec > .head .ic { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, #f6f9fd, #e9eff8); border: 1px solid #d5dfed; }
html.sm2 .sec > .head .ic svg { width: 19px; height: 19px; stroke: #12305c; stroke-width: 1.8; }
html.sm2 .sec > .head .t { font-size: 14.5px; font-weight: 800; color: #0f2748; letter-spacing: -.01em; }
html.sm2 .sec > .head .v { font-size: 12.5px; color: #334155; font-weight: 600; }
html.sm2 .sec > .head .chev { color: #12305c; font-size: 19px; font-weight: 700; }
html.sm2 .sec:not(.open) > .head:hover { background: #f6f9fd; }

/* the open row: navy title bar, white body */
html.sm2 .sec.open { border-color: #12305c; box-shadow: 0 6px 16px rgba(15, 39, 72, .18); }
html.sm2 .sec.open > .head { background: linear-gradient(180deg, #17407a 0%, #0f2748 100%); }
html.sm2 .sec.open > .head .t,
html.sm2 .sec.open > .head .v,
html.sm2 .sec.open > .head .chev { color: #fff; }
html.sm2 .sec.open > .head .ic { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
html.sm2 .sec.open > .head .ic svg { stroke: #fff; }
html.sm2 .sec.open > .head .chev { transform: rotate(-90deg); }
html.sm2 .sec.open > .body { border-top: 0; padding-top: 10px; }

/* bottom: note, two white buttons, the red quote button */
html.sm2 #cta { background: linear-gradient(180deg, rgba(228, 235, 245, 0), #dfe7f2 30%); border-top: 0; }
html.sm2 #cta .sec2 { background: #fff; border: 1px solid #d5dfed; border-radius: 10px; color: #0f2748; font-weight: 700; box-shadow: 0 2px 5px rgba(15, 39, 72, .1); }
html.sm2 #cta .sec2:hover { border-color: #12305c; background: #f6f9fd; }
html.sm2 #cta .quote { background: linear-gradient(180deg, #e3262d 0%, #b5121a 100%); border: 1px solid #9d0f16; border-radius: 10px; font-weight: 800; font-size: 16px; letter-spacing: .01em; box-shadow: 0 4px 10px rgba(181, 18, 26, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
html.sm2 #cta .quote:hover { filter: brightness(1.06); }
html.sm2 #cta .dc1-link { color: #0f2748; }

/* sm2 icons: each row's icon redrawn to match the mock-up */
html.sm2 #sections > .sec > .head .ic { position: relative; }
html.sm2 #pbFrm > .head .ic svg, html.sm2 #sec-type > .head .ic svg, html.sm2 #sec-ri-type > .head .ic svg, html.sm2 #sec-cf-type > .head .ic svg, html.sm2 #sec-pb-type > .head .ic svg, html.sm2 #sec-size > .head .ic svg, html.sm2 #sec-ri-dim > .head .ic svg, html.sm2 #sec-cf-dim > .head .ic svg, html.sm2 #sec-pb-dim > .head .ic svg, html.sm2 #sec-walls > .head .ic svg, html.sm2 #sec-doors > .head .ic svg, html.sm2 #sec-colors > .head .ic svg, html.sm2 #sec-ins > .head .ic svg, html.sm2 #sec-extras > .head .ic svg, html.sm2 #sec-rt1notes > .head .ic svg, html.sm2 #sec-rt1pay > .head .ic svg { display: none; }
html.sm2 #pbFrm > .head .ic::after, html.sm2 #sec-type > .head .ic::after, html.sm2 #sec-ri-type > .head .ic::after, html.sm2 #sec-cf-type > .head .ic::after, html.sm2 #sec-pb-type > .head .ic::after, html.sm2 #sec-size > .head .ic::after, html.sm2 #sec-ri-dim > .head .ic::after, html.sm2 #sec-cf-dim > .head .ic::after, html.sm2 #sec-pb-dim > .head .ic::after, html.sm2 #sec-walls > .head .ic::after, html.sm2 #sec-doors > .head .ic::after, html.sm2 #sec-colors > .head .ic::after, html.sm2 #sec-ins > .head .ic::after, html.sm2 #sec-extras > .head .ic::after, html.sm2 #sec-rt1notes > .head .ic::after, html.sm2 #sec-rt1pay > .head .ic::after { content: ''; width: 20px; height: 20px; background: #12305c; -webkit-mask: var(--sm2-i) center / contain no-repeat; mask: var(--sm2-i) center / contain no-repeat; }
html.sm2 #pbFrm { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9zM12 12l8-4.5M12 12v9M12 12L4 7.5'/%3E%3C/svg%3E"); }
html.sm2 #sec-type, html.sm2 #sec-ri-type, html.sm2 #sec-cf-type, html.sm2 #sec-pb-type { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V10l9-6 9 6v10zM9 20v-5h6v5M7 11h2M15 11h2'/%3E%3C/svg%3E"); }
html.sm2 #sec-size, html.sm2 #sec-ri-dim, html.sm2 #sec-cf-dim, html.sm2 #sec-pb-dim { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5M4 4l6 6M20 4l-6 6M4 20l6-6M20 20l-6-6'/%3E%3C/svg%3E"); }
html.sm2 #sec-walls { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M5 20V10l7-5 7 5v10M5 12h14'/%3E%3C/svg%3E"); }
html.sm2 #sec-doors { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v17M4 21h16M14.5 12v1.5'/%3E%3C/svg%3E"); }
html.sm2 #sec-colors { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h12a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zM18 6.5h2v5h-8v3M11 14.5h2V21h-2z'/%3E%3C/svg%3E"); }
html.sm2 #sec-ins { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5zM3 12l9 5 9-5M3 16l9 5 9-5'/%3E%3C/svg%3E"); }
html.sm2 #sec-extras { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); }
html.sm2 #sec-rt1notes { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6v3H9zM9 5H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
html.sm2 #sec-rt1pay { --sm2-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM15 9.5c-.5-1-1.6-1.5-3-1.5-1.7 0-3 .8-3 2s1 1.8 3 2 3 .8 3 2-1.3 2-3 2c-1.4 0-2.5-.5-3-1.5M12 6.5v11'/%3E%3C/svg%3E"); }
html.sm2 #sections > .sec.open > .head .ic::after { background: #fff; }

/* sm2 header (Tim 12/04): the logo and Location each take half of the top line, and the logo is bigger */
html.sm2 #tbBar .tb-rh-row { align-items: center; }
html.sm2 #tbBar .tb-logo { flex: 1 1 0; min-width: 0; max-width: none; justify-content: center; align-items: center; padding: 0 14px 0 0; margin: 0; }
html.sm2 #tbBar .tb-logo img { width: auto; height: 56px; max-width: 100%; object-fit: contain; }
html.sm2 #tbBar .tb-logo[data-tenant='0'] img { content: url('../images/logo-lgt-wide.png'); width: 142px; height: auto; max-width: 100%; }
html.sm2 #tbBar .tb-rh-row > .tb-cell { flex: 1 1 0; min-width: 0; padding-left: 16px; }
html.sm2 #tbBar .tb-rh-row > .tb-cell small { font-size: 12px; }
html.sm2 #tbBar .tb-rh-row > .tb-cell b { font-size: 17px; }
