/* Staff-only layout corrections; public visual design is retained. */
body.theme-v13.management-theme #main-content .floor-studio28>.floor-tools28{position:relative!important;top:auto!important;align-self:stretch!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body.theme-v13.management-theme #main-content .floor-studio28{align-items:stretch!important}
body.theme-v13.management-theme #main-content .floor-studio28>.floor-stage28{height:100%!important;min-height:0!important}
dialog.floor-full50.floor-tools52 .floor-studio28>.floor-tools28{position:absolute!important;top:44px!important;right:0!important;bottom:0!important;height:auto!important;max-height:calc(100% - 44px)!important}
.floor-tools28 details{border-bottom:1px solid #d9dfe5;padding:6px 0}.floor-tools28 summary{font-weight:600;cursor:pointer;padding:6px}
.management-theme :is(.inbox49,.module-dialog49,.profile-dialog46,.devis48) :is(header,.module-head49,.inbox-thread-tools49){position:static!important;inset:auto!important;background:#f1f5f9!important;color:#25354a!important;height:auto!important;min-height:0!important;max-width:100%;flex-wrap:wrap}
.management-theme :is(.inbox49,.module-dialog49,.profile-dialog46,.devis48) :is(header,.module-head49,.inbox-thread-tools49) :is(h1,h2,h3,strong,span,label,small,a){color:#25354a!important}
.management-theme .inbox49{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
.management-theme .inbox49>.inbox-columns49{flex:1 1 0;min-height:0;overflow:hidden}.management-theme .inbox49>header{flex:none;padding:10px!important;margin:0!important;gap:8px}
.management-theme :is(.compact-head38,.post-filters49,.invoice-filter50,.seo52>form,.devis48 form[method=get]){display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.management-theme :is(.seo52>form,.devis48 form[method=get])>label{flex:1 1 220px;min-width:0;margin:0!important}.management-theme :is(.seo52,.devis48) input[type=search],.management-theme .seo52 input[name=q]{width:100%!important;min-width:160px!important}
.management-theme :is(input,select,textarea){max-width:100%;box-sizing:border-box}.management-theme :is(.actions,.user-actions46,.module-head49 nav){flex-wrap:wrap;gap:6px}
.management-theme .management-nav a{overflow-wrap:anywhere;line-height:1.3}
@media(max-width:700px){.management-theme .management-nav{gap:5px!important;padding:6px!important}.management-theme .management-nav :is(a,summary){font-size:12px!important;padding:7px 9px!important}.management-theme .management-nav input{font-size:14px!important}.management-theme .compact-head38 h1{font-size:22px!important}}
/* The old print selector hid fold-card50 because it was not a direct table-sign38. */
@media print{
 @page tablecard50{size:A4 landscape;margin:0}
 body:has(.fold-card50) main.table-print46>.fold-card50{display:grid!important;grid-template-columns:148.5mm 148.5mm!important;width:297mm!important;height:210mm!important;max-width:none!important;gap:0!important}
 body:has(.fold-card50) .fold-card50>.table-sign38{display:block!important;width:148.5mm!important;height:210mm!important;margin:0!important;padding:0!important;break-inside:avoid!important;box-sizing:border-box!important}
 body:has(.fold-card50) main.table-print46>:not(.fold-card50){display:none!important}
 body:has(.fold-card50) #main-content,body:has(.fold-card50) #main-content>main.table-print46{display:block!important;margin:0!important;padding:0!important}
}

.video-modal18 video{display:block;width:100%;max-height:70dvh;object-fit:contain}.video-modal18.video-skin59-light{background:#fff!important;color:#25354a!important;border:1px solid #b9c7d4!important}.video-modal18.video-skin59-dark{background:#18202b!important;color:white!important;border:1px solid #586473!important}.video-modal18.video-skin59-gold{background:#fff8ea!important;color:#4f3821!important;border:3px solid #b58e4e!important}.video-modal18:not(.video-skin59-classic){border-radius:14px!important;padding:18px!important}
.management-theme .quotes48 .quote-search48{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(150px,220px) auto!important;gap:10px!important;align-items:end!important}.management-theme .quotes48 .quote-search48 input{width:100%!important;min-width:0!important}.management-theme .quotes48 .quote-search48 select{width:100%!important;min-width:0!important}
.management-theme .training50>header{position:static!important;background:#f4f7fa!important;color:#25354a!important;padding:12px!important}.management-theme .training50>header h1{font-size:25px!important;margin:0 0 6px!important}.management-theme .training50>header .eyebrow{display:none}.management-theme .training50>header .actions{display:flex;flex-wrap:wrap;gap:8px}.management-theme .training50>header input[type=search]{flex:1 1 240px;min-width:0}.management-theme .training50>header select{flex:0 1 210px}.management-theme .training50>header p{font-size:14px!important;margin:4px 0 10px!important}
@media(max-width:600px){.management-theme .quotes48 .quote-search48{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.management-theme .quotes48 .quote-search48 input{grid-column:1/-1}}

.admin-header59{height:58px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 20px;background:#fffdf8;color:#29364a;border-bottom:1px solid #d4dce5;position:relative;z-index:30;font:14px/1.2 Arial,sans-serif}.admin-header59 .admin-brand59{display:flex;gap:10px;align-items:center;min-width:0}.admin-brand59>img{height:42px!important;width:110px!important;object-fit:contain!important}.admin-brand59 small{display:block;font-size:11px;color:#586879;margin-top:3px}.admin-header59>nav{display:flex!important;gap:7px!important;align-items:center!important;flex:none!important;width:auto!important}.admin-header59 nav :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:5px;background:#f1f5f9;color:#29364a;border:1px solid #d1dbe6;border-radius:6px}.admin-header59 nav img{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;object-fit:contain!important}.admin-header59 form{margin:0}.admin-header59 .notice-bell26{position:relative}body:has(>.admin-header59)>footer,body:has(>.admin-header59)>.mobile-actions{display:none!important}
body:has(>.admin-header59) #main-content>.management-nav{top:12px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;overscroll-behavior:contain}
.floor-toolgrid28{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}.floor-toolgrid28 button{min-height:34px!important;padding:6px!important;min-width:0!important;border-radius:5px!important}.floor-toolgrid28 button>span{display:none!important}.floor-icon59{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;max-height:17px!important;margin:0!important;padding:0!important;border:0!important;object-fit:contain!important;pointer-events:none!important;background:none!important;filter:none!important}.floor-stagebar28 button{min-width:32px!important;min-height:32px!important;padding:6px!important;display:inline-grid!important;place-items:center!important}
@media(max-width:650px){.admin-header59{padding:5px 10px;height:52px;gap:6px}.admin-brand59>img{width:75px!important;height:34px!important}.admin-brand59 span{font-size:12px;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-header59>nav{gap:3px!important}.admin-header59 nav :is(a,button){min-width:27px;min-height:30px;padding:4px}.admin-header59 nav img{width:16px!important;height:16px!important}.admin-header59 nav [data-notice-count26]{font-size:10px}.floor-tools28{max-width:100%!important}}
@media print{.admin-header59{display:none!important}}

.popup59{width:min(620px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 40px)!important;padding:26px!important;border:1px solid #c7ad7a!important;border-radius:14px!important;background:#fffaf1!important;color:#493629!important;overflow:auto!important;box-sizing:border-box}.popup59::backdrop{background:#1d222b99}.popup59.popup59-small{width:min(420px,calc(100vw - 28px))!important}.popup59.popup59-large{width:min(800px,calc(100vw - 28px))!important}.popup59.popup59-wide{width:min(1050px,calc(100vw - 28px))!important}.popup59 .popup-close59{position:absolute!important;top:7px!important;right:7px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;line-height:1!important;font:24px/1 Arial!important;border-radius:50%!important;background:#fff!important;color:#443323!important;border:1px solid #c7ad7a!important}.popup59 .popup-grid59{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.popup59 figure{margin:0}.popup59 figure img{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:8px}.popup59 figcaption{font-size:11px;color:#695a47}.popup59 .popup-copy59{min-width:0;overflow-wrap:anywhere}.popup59 .popup-copy59>small{font-size:10px;letter-spacing:.08em}.popup59 h2{font-size:28px!important;line-height:1.2!important;margin:8px 0 14px!important}.popup59 .popup-copy59>p{white-space:pre-line}.popup59 :is(p,.rich-copy){font-size:16px!important;line-height:1.6!important}.popup59-left:has(figure) .popup-grid59,.popup59-right:has(figure) .popup-grid59{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.popup59-right figure{order:2}.popup59-banner figure img{max-height:180px}.popup59-align-center .popup-copy59{text-align:center}.popup59-align-right .popup-copy59{text-align:right}.popup-preferences59{border-top:1px solid #e0d2bb;margin-top:16px;padding-top:10px;font-size:12px}.popup-preferences59:empty{display:none}.popup-preferences59 .check{display:flex;gap:8px;align-items:start}.popup-preferences59 input{flex:none}.popup-preferences59 button{font-size:12px;padding:6px 9px;margin:4px 8px 4px 0}@media(max-width:600px){.popup59{padding:25px 18px 18px!important}.popup59-left:has(figure) .popup-grid59,.popup59-right:has(figure) .popup-grid59{grid-template-columns:minmax(0,1fr)}.popup59-right figure{order:0}.popup59 h2{font-size:24px!important}}

.role-grid59{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px}.role-grid59 .check{display:flex;align-items:center;gap:8px;font-size:14px;padding:5px 0}.role-grid59 input[type=checkbox]{width:18px;height:18px;flex:none}

.payment-actions59{display:flex;align-items:start;gap:6px;flex-wrap:wrap}.payment-actions59 form{margin:0}.payment-actions59>form button{padding:6px;min-width:32px;min-height:32px}.payment-actions59 img{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important}.payment-actions59>details{font-size:12px;max-width:280px}.decision-tabs43>form{display:inline-flex;margin:0}.decision-tabs43{align-items:center!important}

.history-filters59{display:flex;flex-wrap:wrap;gap:9px;align-items:end;margin:16px 0}.history-filters59 label{flex:1 1 140px;min-width:0;font-size:13px}.history-filters59 label:nth-child(2){flex:2 1 220px}.history-filters59 input,.history-filters59 select{display:block;width:100%;margin-top:4px}.history59 table td{overflow-wrap:anywhere}.history59 .table-scroll46{overflow:auto}

.pairing-link59{display:flex;gap:12px;align-items:start;padding:12px;border:1px solid #d3dce7;border-radius:8px;background:#fff;max-width:100%;margin:10px 0}.pairing-link59>div{min-width:0;flex:1}.pairing-link59 .pairing-qr59{width:105px!important;height:105px!important;max-width:105px!important;max-height:105px!important;flex:none;object-fit:contain;background:white!important}.pairing-link59 input{display:block;width:100%;min-width:0;font-size:12px;margin:8px 0}.pairing-link59 small{font-size:12px;line-height:1.5;display:block;margin-top:8px}.pairing-link59 .actions{display:flex;flex-wrap:wrap;gap:7px}.pairing-link59 [role=status]{font-size:12px;margin:4px 0}@media(max-width:500px){.pairing-link59{flex-direction:column}.pairing-link59>div{width:100%}}

.caisse48 .order-actions59{display:flex!important;align-items:center;gap:5px;flex-wrap:wrap;padding-top:8px;margin-top:8px;border-top:1px solid #e0e7ef}.caisse48 .order-actions59 :is(.card-actions43,.order-stages59){display:contents!important}.caisse48 .order-actions59 form{display:inline-flex!important;flex:none!important;margin:0!important}.caisse48 .order-actions59 :is(button,a){min-width:32px!important;min-height:32px!important;padding:6px!important;margin:0!important;display:inline-grid!important;place-items:center!important}.caisse48 .order-actions59 img{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;background:none!important;filter:none!important}.caisse48 .summary-head43{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}.caisse48 .summary-head43>:is(button){align-self:center}.caisse48 .summary-head43>strong{overflow-wrap:anywhere}
/* Isolate the staff header from legacy public header/nav rules at every width. */
body.theme-v13>header.admin-header59{position:relative!important;top:auto!important;display:flex!important;flex-wrap:nowrap!important;min-height:58px!important;height:58px!important;padding:6px 18px!important;background:#fffdf8!important;color:#29364a!important;border-bottom:1px solid #d4dce5!important;box-shadow:none!important;backdrop-filter:none!important;gap:10px!important;overflow:visible!important}
body.theme-v13>header.admin-header59 .admin-brand59{flex:1 1 auto!important;color:#29364a!important;text-decoration:none!important;min-width:0!important}
body.theme-v13>header.admin-header59>nav{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;padding:0!important;margin:0!important;width:auto!important;min-width:0!important;flex:0 0 auto!important;background:transparent!important;color:#29364a!important}
body.theme-v13>header.admin-header59 nav :is(a,button,summary){color:#29364a!important;font:13px/1.2 Arial,sans-serif!important;background:#f1f5f9!important;border:1px solid #cbd7e3!important;border-radius:6px!important;padding:5px!important;min-width:28px!important;min-height:30px!important;box-sizing:border-box!important}
body.theme-v13>header.admin-header59 .notice-bell26>summary>span:not(.notice-badge26){display:none!important}body.theme-v13>header.admin-header59 .notice-bell26>summary{position:relative!important;display:flex!important;gap:0!important;list-style:none!important}
body.theme-v13>header.admin-header59 .notice-bell26 svg{width:18px!important;height:18px!important}.admin-header59 .notice-badge26{position:absolute;right:-4px;top:-6px;min-width:13px;font:10px/13px Arial!important;padding:0 2px!important}.admin-header59 .notice-bell26[open]>div{left:auto!important;right:-70px!important;top:calc(100% + 10px)!important}
body.theme-v13>header.admin-header59 nav form{margin:0!important;padding:0!important;display:block!important}
@media(max-width:650px){body.theme-v13>header.admin-header59{height:52px!important;min-height:52px!important;padding:5px 8px!important;gap:6px!important}body.theme-v13>header.admin-header59 .admin-brand59>img{width:55px!important;height:32px!important}body.theme-v13>header.admin-header59 .admin-brand59{gap:6px!important}body.theme-v13>header.admin-header59 nav{gap:3px!important}body.theme-v13>header.admin-header59 .admin-brand59 span{font:11px/1.25 Arial!important;white-space:normal!important;max-width:110px!important}body.theme-v13>header.admin-header59 .admin-brand59 small{font-size:9px!important}body.theme-v13>header.admin-header59 nav :is(a,button,summary){padding:4px!important;min-width:27px!important;min-height:28px!important}}
