/* Mercantico gestionale - foglio CSS unico canonico, V304.
   Tutte le pagine admin e le stampe standalone del gestionale puntano a questo file. */


:root{
    --bg:#f3f3f3;
    --page:#ffffff;
    --ink:#454545;
    --muted:#777;
    --line:#d8d8d8;
    --head:#3f3f3f;
    --side1:#4b4b4b;
    --side2:#2f2f2f;
    --orange:#155e63;
    --orange2:#0f4549;
    --green:#74b24a;
    --blue:#4b93c8;
    --soft:#f7f7f7;
    --shadow:0 2px 6px rgba(0,0,0,.18);
}

*{box-sizing:border-box}

html,body{
    min-height:100%;
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:var(--bg);
    color:var(--ink);
    font-size:14px;
}

body.menu-open{
    overflow:hidden;
}

.mobile-topbar{
    display:none;
    position:sticky;
    top:0;
    z-index:1100;
    height:56px;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    background:linear-gradient(#4b4b4b,#333);
    color:#fff;
    border-bottom:3px solid var(--orange);
    box-shadow:0 2px 8px rgba(0,0,0,.22);
}

.mobile-topbar strong{
    font-size:20px;
    color:#cce7e8;
    text-shadow:0 1px 1px #000;
}

.mobile-sale{
    margin-left:auto;
    color:#fff;
    text-decoration:none;
    font-weight:900;
    padding:8px 12px;
    border-radius:9px;
    background:linear-gradient(#2f7a7e,#155e63);
    border:1px solid rgba(0,0,0,.25);
}

.menu-toggle{
    width:42px;
    height:40px;
    border:1px solid rgba(0,0,0,.3);
    border-radius:9px;
    background:linear-gradient(#666,#3f3f3f);
    display:grid;
    place-items:center;
    gap:3px;
    padding:8px;
    box-shadow:inset 0 1px rgba(255,255,255,.18);
}

.menu-toggle span{
    display:block;
    width:22px;
    height:3px;
    background:#fff;
    border-radius:99px;
}

.side-backdrop{
    display:none;
}

.side{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:224px;
    height:100vh;
    max-height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
    padding:12px 16px 28px;
    background:linear-gradient(180deg,var(--side1),var(--side2));
    color:#fff;
    box-shadow:inset -1px 0 0 rgba(0,0,0,.45),4px 0 12px rgba(0,0,0,.15);
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.35) transparent;
    z-index:1000;
}

.side::-webkit-scrollbar{width:8px}
.side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:99px}
.side::-webkit-scrollbar-track{background:transparent}

.quick-actions{
    display:grid;
    gap:9px;
    margin:0 0 14px;
}

.quick-actions a{
    display:block;
    color:#fff;
    text-decoration:none;
    text-align:center;
    font-size:17px;
    font-weight:900;
    line-height:1;
    padding:11px 10px;
    border-radius:11px;
    border:1px solid rgba(0,0,0,.32);
    background:linear-gradient(#2f7a7e,#155e63);
    box-shadow:inset 0 1px rgba(255,255,255,.5),0 2px 4px rgba(0,0,0,.25);
    text-shadow:0 1px 1px rgba(0,0,0,.35);
}

.brand{
    font-size:21px;
    font-weight:900;
    color:#cce7e8;
    margin:12px 0 14px;
    text-shadow:0 1px 2px #000;
    letter-spacing:-.02em;
}

.side-nav{
    display:grid;
    gap:8px;
}

.nav-section{
    margin:14px 4px 2px;
    padding-top:8px;
    border-top:1px solid rgba(255,255,255,.14);
    color:#cce7e8;
    text-transform:uppercase;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
}

.side-nav a{
    min-height:58px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:8px 12px;
    border-radius:10px;
    color:#fff;
    text-decoration:none;
    font-size:16px;
    font-weight:900;
    background:linear-gradient(#666,#3f3f3f);
    border:1px solid rgba(0,0,0,.42);
    box-shadow:inset 0 1px rgba(255,255,255,.18),0 1px 2px rgba(0,0,0,.22);
    text-shadow:0 1px 1px rgba(0,0,0,.45);
}

.side-nav a:hover,
.side-nav a.active{
    background:linear-gradient(#777,#4d4d4d);
    transform:translateY(-1px);
}

.side-nav .ico{
    width:36px;
    min-width:36px;
    height:36px;
    display:grid;
    place-items:center;
    font-size:24px;
    filter:drop-shadow(0 1px 1px rgba(0,0,0,.45));
}

.side-footer{
    margin:20px 0 0;
    padding:13px 6px 28px;
    text-align:center;
    color:#eee;
    font-size:12px;
    line-height:1.35;
    text-shadow:0 1px 1px #000;
}

.main{
    margin-left:224px;
    min-height:100vh;
    padding:0 0 48px;
    background:#f7f7f7;
}

h1{
    margin:0 0 18px;
    padding:12px 18px;
    background:linear-gradient(#4b4b4b,#3b3b3b);
    color:#fff;
    font-size:24px;
    line-height:1.2;
    letter-spacing:.01em;
    border-bottom:3px solid var(--orange);
    text-shadow:0 1px 1px #000;
}

h2{
    margin:0 0 14px;
    font-size:20px;
    color:#333;
}

h3{margin-top:0}

.panel{
    background:#fff;
    border:1px solid #ddd;
    border-radius:0;
    margin:18px 18px;
    padding:18px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}

.flash{
    margin:14px 18px;
    padding:12px 14px;
    background:#e8f4de;
    border:1px solid #b9d7a2;
    color:#375b23;
    font-weight:700;
    border-radius:4px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
    margin:18px;
}

.cards div{
    background:linear-gradient(#fff,#f3f3f3);
    border:1px solid #d8d8d8;
    border-radius:8px;
    padding:18px;
    min-height:96px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.cards b{
    display:block;
    font-size:32px;
    line-height:1;
    color:#202020;
    margin-bottom:8px;
}

.cards span,.muted{color:#6e6e6e}

.status-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.status-card{
    display:block;
    text-decoration:none;
    color:#333;
    background:linear-gradient(#fff,#f1f1f1);
    border:1px solid #d6d6d6;
    border-radius:8px;
    padding:14px;
    min-height:86px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.status-card:hover{
    border-color:var(--orange);
    box-shadow:0 0 0 2px rgba(21,94,99,.12);
}

.status-card b{
    display:block;
    font-size:28px;
    color:var(--orange2);
    margin-bottom:4px;
}

.status-card span{
    display:block;
    color:#333;
    font-weight:900;
}

.status-card small{
    display:block;
    margin-top:3px;
    color:#777;
}

.module-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.module-tile{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    min-height:130px;
    text-align:center;
    color:#444;
    text-decoration:none;
    font-weight:900;
    font-size:18px;
    background:linear-gradient(#fff,#f2f2f2);
    border:1px solid #d5d5d5;
    border-radius:8px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.module-tile .bigico{
    font-size:42px;
    margin-bottom:10px;
}

.module-tile:hover{
    border-color:var(--orange);
    transform:translateY(-1px);
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.full{grid-column:1/-1}

label{
    display:flex;
    flex-direction:column;
    gap:6px;
    color:#333;
    font-weight:700;
}

input,select,textarea{
    width:100%;
    min-height:34px;
    padding:7px 9px;
    border:1px solid #d3d3d3;
    border-radius:3px;
    background:#fff;
    font:inherit;
    color:#333;
}

textarea{min-height:90px}

.checks{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
}

.checks label{
    flex-direction:row;
    align-items:center;
    font-weight:700;
}

button,.btn{
    display:inline-block;
    border:1px solid #0e454b;
    border-radius:6px;
    background:linear-gradient(#2f7a7e,#155e63);
    color:#fff;
    padding:9px 13px;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
    box-shadow:inset 0 1px rgba(255,255,255,.45),0 1px 2px rgba(0,0,0,.18);
    text-shadow:0 1px 1px rgba(0,0,0,.35);
}

.btn:hover,button:hover{filter:brightness(1.04)}
.small{padding:5px 8px;font-size:12px;border-radius:4px}

.table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border:1px solid #d5d5d5;
}

th,td{
    padding:8px 9px;
    border:1px solid #e1e1e1;
    text-align:left;
    vertical-align:middle;
}

th{
    background:#4c4c4c;
    color:#fff;
    font-size:13px;
    font-weight:900;
    text-shadow:0 1px 1px #000;
}

tbody tr:nth-child(even){background:#f2f2f2}
tbody tr:hover{background:#fff7e9}

.badge{
    display:inline-block;
    background:#eee;
    color:#333;
    border:1px solid #ddd;
    border-radius:999px;
    padding:4px 8px;
    font-size:12px;
    font-weight:900;
}

.thumb{
    width:58px;
    height:58px;
    object-fit:cover;
    border-radius:5px;
    border:1px solid #ddd;
}

.table-actions{display:grid;gap:8px;min-width:180px}
.table-actions .btn{display:block;width:100%;text-align:center;white-space:normal;line-height:1.15;padding:9px 10px}
.actions-cell{vertical-align:top}
.qr-mini{width:96px;height:96px;object-fit:contain;border:1px solid #ddd;border-radius:8px;background:#fff;padding:4px}
@media(max-width:980px){
    .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .table-wrap table{min-width:1120px}
    .table-wrap .actions-cell{min-width:190px}
    .table-wrap .thumb{width:84px;height:84px}
    .table-wrap .qr-mini{width:110px;height:110px}
    .table-wrap .btn.small{font-size:14px;padding:10px 12px;border-radius:8px}
    .filters .full .btn, .filters .full button{margin-bottom:8px}
}
.inline{
    display:flex;
    align-items:end;
    gap:10px;
}

.mandate-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
}

.linkbtn{
    background:transparent;
    border:0;
    color:#0b62aa;
    box-shadow:none;
    padding:0 4px;
    text-decoration:underline;
    font-weight:900;
    text-shadow:none;
}

.consent-checks{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.consent-checks label{
    flex-direction:row;
    align-items:center;
    background:#fff;
    border:1px solid #ddd;
    border-radius:5px;
    padding:8px 10px;
}

.legal-item{
    border-bottom:1px solid #ddd;
    padding:16px 0;
}

.legal-item:last-child{border-bottom:0}

.modal-backdrop{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.5);
}

.modal-backdrop.open{display:flex}

.modal{
    width:min(780px,96vw);
    max-height:86vh;
    overflow:auto;
    background:#fff;
    border-radius:8px;
    border:1px solid #ccc;
    padding:22px;
    box-shadow:0 24px 80px rgba(0,0,0,.28);
}

.modal .modal-text{
    white-space:pre-line;
    line-height:1.55;
}

.login{
    display:grid;
    place-items:center;
    min-height:100vh;
    background:linear-gradient(#f9f9f9,#ececec);
}

.login-card{
    width:min(430px,92vw);
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:30px;
    box-shadow:0 12px 40px rgba(0,0,0,.18);
}

.login-card h1{
    margin:-30px -30px 20px;
}

.print{background:#fff}
.print-page{max-width:980px;margin:20px auto;padding:30px;background:#fff}
.sign{display:flex;justify-content:space-between;margin-top:60px}
.no-print{margin-top:30px}

@media(max-width:980px){
    .mobile-topbar{
        display:flex;
    }

    .side{
        top:0;
        left:0;
        bottom:0;
        width:min(86vw,320px);
        height:100vh;
        max-height:100vh;
        padding-top:14px;
        transform:translateX(-105%);
        transition:transform .22s ease;
        z-index:1200;
    }

    body.menu-open .side{
        transform:translateX(0);
    }

    .side-backdrop{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.38);
        z-index:1150;
        display:none;
    }

    body.menu-open .side-backdrop{
        display:block;
    }

    .main{
        margin-left:0;
        width:auto;
        padding-bottom:70px;
    }

    h1{
        font-size:22px;
        padding:10px 14px;
    }

    .panel{
        margin:12px;
        padding:14px;
    }

    .cards,
    .status-strip,
    .grid,
    .module-grid{
        grid-template-columns:1fr;
        margin-left:12px;
        margin-right:12px;
    }

    .cards{
        gap:10px;
    }

    .cards div{
        min-height:auto;
        padding:14px;
    }

    .status-card{
        min-height:auto;
    }

    .mandate-head,
    .inline{
        display:block;
    }

    table{
        min-width:1120px;
    }
}

@media print{
    .side,.mobile-topbar,.side-backdrop,.no-print,.btn,button,.flash{display:none!important}
    .main{margin:0!important;width:auto!important;padding:0!important;background:#fff}
    .panel{box-shadow:none;border:0;margin:0 0 12px;padding:0}
    h1{background:#fff;color:#111;border:0;text-shadow:none;padding:0}
    .print-page{margin:0;max-width:none}
    .modal-backdrop{display:none!important}
}
.btn.danger, button.danger{background:linear-gradient(#d9534f,#b52b27);border-color:#8d201d}.check-inline{display:inline-flex;flex-direction:row;gap:6px;align-items:center}.actions{white-space:nowrap}.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

.photo-manager-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:18px;
}
.photo-manager-card{
  border:1px solid #d9d9d9;
  border-radius:14px;
  background:#fff;
  padding:12px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}
.photo-manager-card.is-main{
  border-color:#155e63;
  box-shadow:0 10px 24px rgba(21,94,99,.14);
}
.photo-manager-image{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  background:#f5f5f5;
  border:1px solid #eee;
}
.photo-manager-image img{
  display:block;
  width:100%;
  max-height:230px;
  object-fit:contain;
}
.photo-manager-image span{
  position:absolute;
  left:8px;
  top:8px;
  background:#155e63;
  color:#fff;
  border-radius:999px;
  padding:5px 10px;
  font-weight:700;
  font-size:.85rem;
}
.photo-manager-actions{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.photo-replace-form{
  display:grid;
  gap:8px;
  padding:10px;
  background:#f8f8f8;
  border-radius:10px;
}
.photo-replace-form label{
  font-size:.9rem;
  font-weight:700;
}
.photo-replace-form input[type=file]{
  margin-top:6px;
  width:100%;
}
.check-inline{
  display:flex;
  gap:8px;
  align-items:center;
}
@media (max-width:700px){
  .photo-manager-grid{grid-template-columns:1fr;}
  .photo-manager-actions form button,
  #foto-articolo > form button{width:100%;}
}

.sale-totals-box{
    margin:14px 0 18px auto;
    max-width:520px;
    background:#fff7ef;
    border:2px solid #155e63;
    border-radius:12px;
    padding:12px 14px;
    text-align:right;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.sale-totals-box p{margin:4px 0;font-size:16px;line-height:1.35}
.sale-totals-box p:first-child{font-size:20px}
@media(max-width:700px){
    .sale-totals-box{max-width:none;text-align:left;margin:12px 0;width:100%}
    .sale-totals-box p{font-size:15px}
    .sale-totals-box p:first-child{font-size:17px}
}

.mobile-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:800;min-width:0}
.mobile-brand img{height:38px;width:auto;display:block}
.mobile-brand span{font-size:20px;line-height:1}
.brand-with-logo{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:inherit}
.brand-with-logo img{width:min(220px,100%);height:auto;display:block;filter:drop-shadow(0 8px 18px rgba(0,0,0,.16))}
.brand-with-logo span{font-size:0;line-height:0}
.login-logo-wrap{display:flex;justify-content:center;margin:0 0 10px}
.login-logo{width:min(240px,70vw);height:auto;display:block}
.actions-cell-all-visible{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;min-width:260px}
.actions-cell-all-visible .inline-form{display:inline-flex}
.actions-cell-all-visible .btn{white-space:nowrap}
.actions-cell-all-visible .btn.small{padding:8px 12px}
@media(max-width:980px){.actions-cell-all-visible{min-width:220px}}
@media(max-width:640px){
  .mobile-brand img{height:34px}
  .mobile-brand span{font-size:18px}
  .actions-cell-all-visible{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .actions-cell-all-visible .btn,.actions-cell-all-visible .inline-form,.actions-cell-all-visible .inline-form button{width:100%}
}

.actions-cell-scheda-only{min-width:130px;white-space:nowrap}
.actions-cell-scheda-only .btn{width:100%;text-align:center;white-space:nowrap}
.cliente-actions-title{grid-column:1/-1;margin:0 0 4px;font-size:18px;line-height:1.2;color:#111}
.cliente-actions-help{grid-column:1/-1;margin:0 0 12px;color:#666;font-weight:600}
.cliente-actions-grid,.cliente-secondary-grid{display:flex;flex-wrap:wrap;gap:10px;width:100%;align-items:stretch}
.cliente-secondary-grid .inline-form{display:inline-flex}
.cliente-secondary-grid .btn,.cliente-secondary-grid .inline-form button{min-height:42px}
@media(max-width:760px){.cliente-actions-grid,.cliente-secondary-grid{display:grid;grid-template-columns:1fr 1fr}.cliente-actions-grid .tool-btn,.cliente-secondary-grid .btn,.cliente-secondary-grid .inline-form,.cliente-secondary-grid .inline-form button{width:100%}}
@media(max-width:420px){.cliente-actions-grid,.cliente-secondary-grid{grid-template-columns:1fr}}

.mobile-brand img{background:transparent !important;object-fit:contain !important}
.brand-with-logo img{background:transparent !important;object-fit:contain !important}
.login-logo{background:transparent !important;object-fit:contain !important}

.brand-with-logo img,.mobile-brand img,.login-logo{background:linear-gradient(180deg,#f7fbfb 0%,#f7efdf 100%);padding:6px 8px;border-radius:16px;border:1px solid rgba(193,150,84,.58);box-shadow:0 1px 0 rgba(255,255,255,.92) inset,0 10px 20px rgba(0,0,0,.18);object-fit:contain}
.mobile-brand img{padding:4px 6px;border-radius:12px}
.login-logo{padding:8px 10px;border-radius:18px}

body.login{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:100vh !important;
    padding:28px 12px !important;
}
body.login .login-card{
    width:min(460px, calc(100vw - 32px)) !important;
    padding:28px 30px 30px !important;
    overflow:visible !important;
}
body.login .login-logo-wrap,
body.login .login-logo-wrap[style]{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    margin:0 auto 16px !important;
}
body.login .login-logo-wrap .login-logo,
body.login .login-logo{
    flex:1 1 185px !important;
    width:auto !important;
    max-width:205px !important;
    height:145px !important;
    max-height:145px !important;
    display:block !important;
    object-fit:contain !important;
    padding:10px !important;
    margin:0 !important;
}
body.login .login-card h1{
    clear:both !important;
    margin:0 -30px 20px !important;
    padding:14px 20px !important;
    line-height:1.2 !important;
    position:relative !important;
    z-index:1 !important;
}
@media(max-width:480px){
    body.login{padding:16px 10px !important;align-items:flex-start !important;}
    body.login .login-card{padding:18px 18px 22px !important;width:100% !important;}
    body.login .login-logo-wrap{gap:8px !important;margin-bottom:12px !important;}
    body.login .login-logo-wrap .login-logo,
    body.login .login-logo{
        flex:1 1 135px !important;
        max-width:160px !important;
        height:105px !important;
        max-height:105px !important;
        padding:7px !important;
        border-radius:14px !important;
    }
    body.login .login-card h1{margin:0 -18px 16px !important;padding:12px 18px !important;font-size:22px !important;}
}

.page-heading-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 16px;
}
.page-heading-actions .muted{margin:0;}
@media (max-width:720px){
  .page-heading-actions{align-items:stretch;flex-direction:column;}
  .page-heading-actions .btn{width:100%;text-align:center;}
}

.sale-item-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.sale-item-card__body{display:grid;grid-template-columns:minmax(180px,280px) 1fr;gap:20px;align-items:start}
.sale-item-photo{border:1px solid #d9d9d9;border-radius:14px;overflow:hidden;background:#f6f6f6;min-height:210px;display:flex;align-items:center;justify-content:center}
.sale-item-photo img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain}
.sale-item-photo__empty{padding:30px;text-align:center;color:#666}
.sale-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #e1e1e1;border-radius:12px;overflow:hidden;margin:0}
.sale-item-grid>div{padding:10px 12px;border-bottom:1px solid #e7e7e7;background:#fff}
.sale-item-grid>div:nth-child(odd){border-right:1px solid #e7e7e7}
.sale-item-grid dt{font-size:.78rem;color:#666;margin-bottom:3px}
.sale-item-grid dd{margin:0;overflow-wrap:anywhere}
.sale-item-alert{padding:12px 14px;border-radius:10px;background:#fff6d8;border:1px solid #e5c45b;margin:12px 0}
.sale-item-alert-error{background:#fff0f0;border-color:#d98787;color:#7b1e1e}
.sale-split-preview{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 14px;margin-top:12px;border-radius:10px;background:#f4f6f8}
.sale-split-preview>b{width:100%}
.sale-item-confirm{display:flex;justify-content:flex-end;margin-top:18px}
@media(max-width:760px){.sale-item-card__body{grid-template-columns:1fr}.sale-item-grid{grid-template-columns:1fr}.sale-item-grid>div:nth-child(odd){border-right:0}.sale-item-confirm .btn{width:100%}}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

img,
video,
canvas,
svg,
iframe{
    max-width:100%;
    height:auto;
}

input,
select,
textarea,
button,
a{
    max-width:100%;
}

.main{
    min-width:0;
    max-width:100%;
}

.flash{
    overflow-wrap:anywhere;
}

.mobile-topbar{
    display:none;
    position:sticky;
    top:0;
    z-index:9000;
    height:56px;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    background:linear-gradient(#4b4b4b,#333);
    color:#fff;
    border-bottom:3px solid #155e63;
    box-shadow:0 2px 8px rgba(0,0,0,.22);
}

.mobile-topbar strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:20px;
    color:#cce7e8;
    text-shadow:0 1px 1px #000;
}

.mobile-sale{
    margin-left:auto;
    color:#fff !important;
    text-decoration:none !important;
    font-weight:900;
    padding:8px 11px;
    border-radius:9px;
    background:linear-gradient(#2f7a7e,#155e63);
    border:1px solid rgba(0,0,0,.25);
    position:relative;
    z-index:9002;
    white-space:nowrap;
}

.menu-toggle{
    width:44px;
    height:40px;
    min-width:44px;
    border:1px solid rgba(0,0,0,.3);
    border-radius:9px;
    background:linear-gradient(#666,#3f3f3f);
    display:grid;
    place-items:center;
    gap:3px;
    padding:8px;
    cursor:pointer;
    position:relative;
    z-index:9002;
}

.menu-toggle span{
    display:block;
    width:22px;
    height:3px;
    background:#fff;
    border-radius:99px;
}

.side-backdrop{
    display:none;
}

.table-wrap{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:visible;
    -webkit-overflow-scrolling:touch;
    border-radius:10px;
}

main table{
    border-collapse:collapse;
}

main table th,
main table td{
    white-space:nowrap;
    vertical-align:middle;
}

main table td{
    max-width:260px;
    overflow:hidden;
    text-overflow:ellipsis;
}

main table td:last-child,
main table th:last-child{
    max-width:none;
}

main table td:last-child{
    white-space:normal;
    min-width:150px;
}

main table td:last-child .btn,
main table td:last-child button,
main table td:last-child a{
    margin:2px;
}

.panel,
.card,
.box,
.form-card,
.dashboard-card,
.stat,
.widget,
fieldset{
    max-width:100%;
    overflow:hidden;
}

.grid,
.cards,
.stats,
.row,
.form-grid,
.dashboard-grid,
.kpi-grid{
    max-width:100%;
    min-width:0;
}

form{
    max-width:100%;
}

label{
    max-width:100%;
    overflow-wrap:anywhere;
}

input,
select,
textarea{
    width:100%;
    min-width:0;
    font-size:16px;
}

input[type="checkbox"],
input[type="radio"]{
    width:auto;
}

textarea{
    min-height:110px;
    resize:vertical;
}

.btn,
button,
input[type="submit"],
input[type="button"],
a.button{
    max-width:100%;
    overflow-wrap:anywhere;
    text-align:center;
}

.modal,
.qrscan-box{
    max-width:calc(100vw - 24px) !important;
}

@media(max-width:980px){
    body{
        padding:0 !important;
    }

    .mobile-topbar{
        display:flex !important;
    }

    .side{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        bottom:0 !important;
        width:min(86vw,320px) !important;
        height:100vh !important;
        max-height:100vh !important;
        padding:14px 10px 120px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        transform:translateX(-105%) !important;
        transition:transform .22s ease !important;
        z-index:9200 !important;
        visibility:visible !important;
        display:block !important;
    }

    body.menu-open .side{
        transform:translateX(0) !important;
    }

    .side-backdrop{
        position:fixed !important;
        inset:0 !important;
        background:rgba(0,0,0,.38) !important;
        z-index:9100 !important;
        display:none !important;
        pointer-events:auto !important;
    }

    body.menu-open .side-backdrop{
        display:block !important;
    }

    body.menu-open{
        overflow:hidden !important;
    }

    .main{
        margin-left:0 !important;
        width:100% !important;
        max-width:100% !important;
        padding:12px 10px 80px !important;
        overflow-x:hidden !important;
    }

    h1{
        font-size:24px !important;
        line-height:1.15 !important;
        overflow-wrap:anywhere;
        margin:10px 0 12px !important;
    }

    h2{
        font-size:19px !important;
        line-height:1.2 !important;
    }

    .panel,
    .card,
    .box,
    .form-card,
    .dashboard-card,
    .stat,
    .widget,
    fieldset{
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        margin-right:0 !important;
        padding:12px !important;
        border-radius:10px !important;
    }

    .grid,
    .cards,
    .stats,
    .row,
    .form-grid,
    .dashboard-grid,
    .kpi-grid{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
    }

    .grid > *,
    .cards > *,
    .stats > *,
    .row > *,
    .form-grid > *,
    .dashboard-grid > *,
    .kpi-grid > *{
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        margin-right:0 !important;
        margin-bottom:10px !important;
    }

    .toolbar,
    .filters,
    .filterbar,
    .searchbar,
    .actions,
    .btn-row,
    .form-row,
    .field-row{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
    }

    .toolbar > *,
    .filters > *,
    .filterbar > *,
    .searchbar > *,
    .actions > *,
    .btn-row > *,
    .form-row > *,
    .field-row > *{
        width:100% !important;
        max-width:100% !important;
        margin:0 0 8px 0 !important;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"],
    a.button{
        min-height:40px;
        padding:9px 10px;
    }

    
    .table-wrap{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        overflow-x:auto !important;
        overflow-y:visible !important;
        -webkit-overflow-scrolling:touch !important;
        border:1px solid #ddd;
        background:#fff;
    }

    main table{
        display:table !important;
        width:max-content !important;
        min-width:100% !important;
        max-width:none !important;
        border-collapse:collapse !important;
        overflow:visible !important;
    }

    main table thead{
        display:table-header-group !important;
    }

    main table tbody{
        display:table-row-group !important;
    }

    main table tr{
        display:table-row !important;
        width:auto !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
        background:transparent !important;
        border:0 !important;
        border-radius:0 !important;
        box-shadow:none !important;
    }

    main table tr:first-child{
        display:table-row !important;
    }

    main table th,
    main table td{
        display:table-cell !important;
        width:auto !important;
        max-width:220px !important;
        padding:8px 9px !important;
        border:1px solid #ddd !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        vertical-align:middle !important;
    }

    main table td::before{
        content:none !important;
        display:none !important;
    }

    main table th{
        position:sticky;
        top:0;
        z-index:2;
        background:#f2f2f2 !important;
        font-weight:900;
    }

    main table td:last-child,
    main table th:last-child{
        max-width:260px !important;
        min-width:150px !important;
        white-space:normal !important;
        overflow:visible !important;
        text-overflow:clip !important;
    }

    main table td a,
    main table td button,
    main table td .btn{
        width:auto !important;
        min-height:32px !important;
        margin:2px !important;
        padding:6px 8px !important;
        display:inline-flex !important;
    }

    .table-pagination,
    .pagination{
        display:flex !important;
        flex-wrap:wrap !important;
        gap:6px !important;
        width:100% !important;
    }

    .table-pagination-info,
    .pagination-info{
        width:100%;
        margin-right:0 !important;
    }

    .table-pagination button,
    .pagination a,
    .pagination strong{
        width:auto !important;
        min-width:34px !important;
    }

    .modal{
        width:calc(100vw - 20px) !important;
        max-width:calc(100vw - 20px) !important;
        max-height:calc(100vh - 20px) !important;
        overflow:auto !important;
    }

    .qrscan-box{
        width:calc(100vw - 18px) !important;
        max-width:calc(100vw - 18px) !important;
        max-height:calc(100vh - 18px) !important;
    }

    .qrscan-camera{
        max-height:46vh;
    }
}

@media(max-width:420px){
    .mobile-topbar{
        gap:7px;
        padding-left:8px;
        padding-right:8px;
    }

    .mobile-topbar strong{
        font-size:18px;
    }

    .mobile-sale{
        padding:8px 9px;
        font-size:13px;
    }

    .main{
        padding-left:8px !important;
        padding-right:8px !important;
    }

    main table th,
    main table td{
        max-width:190px !important;
        padding:7px 8px !important;
        font-size:13px;
    }
}

@media print{
    .mobile-topbar,
    .side,
    .side-backdrop,
    .table-pagination,
    .pagination{
        display:none !important;
    }

    .main{
        margin:0 !important;
        padding:0 !important;
    }

    main table{
        width:100% !important;
    }
}

@media(max-width:980px){
    .table-wrap{
        position:relative;
        overflow-x:auto !important;
        overflow-y:visible !important;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:thin;
        border:1px solid #ddd;
        background:#fff;
    }

    main table{
        border-collapse:separate !important;
        border-spacing:0 !important;
        width:max-content !important;
        min-width:100% !important;
    }

    main table th,
    main table td{
        background:#fff;
    }

    main table th{
        background:#f2f2f2 !important;
    }

    main table .sticky-col-1{
        position:sticky !important;
        left:0 !important;
        z-index:5 !important;
        background:#fff !important;
        box-shadow:2px 0 4px rgba(0,0,0,.12);
        max-width:90px !important;
        min-width:70px !important;
        width:70px !important;
    }

    main table th.sticky-col-1{
        z-index:8 !important;
        background:#f2f2f2 !important;
    }

    main table .sticky-col-2{
        position:sticky !important;
        left:var(--sticky-first-width,70px) !important;
        z-index:4 !important;
        background:#fff !important;
        box-shadow:2px 0 4px rgba(0,0,0,.10);
        max-width:180px !important;
        min-width:145px !important;
    }

    main table th.sticky-col-2{
        z-index:7 !important;
        background:#f2f2f2 !important;
    }

    main table .sticky-col-1 img{
        max-width:54px !important;
        max-height:54px !important;
        object-fit:cover;
        border-radius:6px;
    }

    main table td.sticky-col-1,
    main table td.sticky-col-2{
        white-space:normal !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    main table td.sticky-col-2{
        font-weight:800;
    }
}

.table-pagination{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:10px 0;
    padding:9px;
    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:10px;
}

.table-pagination-info{
    margin-right:auto;
    color:#333;
    font-weight:900;
    font-size:13px;
}

.table-pagination-dots{
    min-width:20px;
    text-align:center;
    color:#555;
    font-weight:900;
}

.table-pagination button{
    min-width:38px;
    height:34px;
    border:1px solid #aaa;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-weight:900;
    cursor:pointer;
    padding:0 11px;
}

.table-pagination button.active{
    background:#155e63;
    color:#fff;
    border-color:#0f4549;
}

.table-pagination button:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.table-pagination button:not(:disabled):hover{
    background:#e6f3f3;
    border-color:#155e63;
}

@media(max-width:700px){
    .table-pagination{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .table-pagination-info{
        grid-column:1 / -1;
        margin-right:0;
    }

    .table-pagination-dots{
        display:none;
    }

    .table-pagination button{
        width:100%;
    }
}

@media print{
    .table-pagination{
        display:none !important;
    }

    table tr{
        display:table-row !important;
    }
}

.server-pagination{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin:12px 0 16px;
}
.server-pagination .pagination-info{
    font-weight:800;
    margin-right:8px;
    color:#333;
}
.server-pagination .btn.active{
    background:#155e63;
    color:#fff;
    border-color:#155e63;
}
.server-pagination .btn.disabled{
    opacity:.45;
    pointer-events:none;
}
.server-pagination .pagination-dots{
    padding:0 4px;
    font-weight:900;
}
.server-pagination .per-page-form{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:6px;
}
.server-pagination select{
    padding:6px 8px;
    border:1px solid #bbb;
    border-radius:8px;
}

.qrscan-inline{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.qrscan-inline input{
    flex:1 1 220px;
    min-width:0;
}

.qrscan-button{
    white-space:nowrap;
    flex:0 0 auto;
}

.qrscan-hint{
    margin-top:6px;
    color:#666;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
}

.qrscan-overlay{
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.72);
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding:12px;
    overflow:auto;
}

.qrscan-box{
    width:min(460px,calc(100vw - 24px));
    max-width:calc(100vw - 24px);
    max-height:calc(100vh - 24px);
    overflow:auto;
    background:#fff;
    border-radius:12px;
    border:1px solid #ddd;
    box-shadow:0 24px 80px rgba(0,0,0,.35);
    padding:12px;
    box-sizing:border-box;
    position:relative;
}

.qrscan-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.qrscan-head strong{
    font-size:18px;
    line-height:1.2;
}

.qrscan-close{
    border:1px solid #999;
    background:#eee;
    color:#333;
    border-radius:6px;
    padding:7px 10px;
    font-weight:900;
    cursor:pointer;
    flex:0 0 auto;
}

.qrscan-camera{
    position:relative;
    background:#111;
    border-radius:10px;
    overflow:hidden;
    width:100%;
    aspect-ratio:1 / 1;
    max-height:56vh;
}

.qrscan-video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    background:#111;
}

.qrscan-frame{
    position:absolute;
    left:50%;
    top:50%;
    width:min(230px,60vw);
    height:min(230px,60vw);
    transform:translate(-50%,-50%);
    border:4px solid #155e63;
    border-radius:18px;
    pointer-events:none;
    box-shadow:0 0 0 9999px rgba(0,0,0,.10);
}

.qrscan-manual{
    margin-top:12px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#f7f7f7;
}

.qrscan-manual label{
    display:block;
    font-weight:900;
    margin-bottom:6px;
}

.qrscan-manual-row{
    display:flex;
    gap:8px;
}

.qrscan-manual-input{
    flex:1;
    min-width:0;
}

.qrscan-manual-ok{
    flex:0 0 auto;
}

.qrscan-help{
    margin:10px 0 0;
    color:#333;
    font-weight:800;
    text-align:center;
    line-height:1.35;
}

.qrscan-error{
    margin:10px 0 0;
    padding:10px;
    background:#fff2e5;
    border:1px solid #9ec9cb;
    color:#0f4f53;
    border-radius:8px;
    font-weight:800;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.mobile-topbar{
    display:none;
    position:sticky;
    top:0;
    z-index:9000;
    height:56px;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    background:linear-gradient(#4b4b4b,#333);
    color:#fff;
    border-bottom:3px solid #155e63;
}
.mobile-topbar strong{font-size:20px;color:#cce7e8;text-shadow:0 1px 1px #000}
.mobile-sale{margin-left:auto;color:#fff!important;text-decoration:none!important;font-weight:900;padding:8px 12px;border-radius:9px;background:linear-gradient(#2f7a7e,#155e63);position:relative;z-index:9002}
.menu-toggle{width:44px;height:40px;border:1px solid rgba(0,0,0,.3);border-radius:9px;background:linear-gradient(#666,#3f3f3f);display:grid;place-items:center;gap:3px;padding:8px;cursor:pointer;position:relative;z-index:9002}
.menu-toggle span{display:block;width:22px;height:3px;background:#fff;border-radius:99px}
.side-backdrop{display:none}

@media(max-width:980px){
    .mobile-topbar{display:flex!important}
    .side{position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(86vw,320px)!important;height:100vh!important;max-height:100vh!important;padding-top:14px!important;overflow-y:auto!important;overflow-x:hidden!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;z-index:9200!important;visibility:visible!important;display:block!important}
    body.menu-open .side{transform:translateX(0)!important}
    .side-backdrop{position:fixed!important;inset:0!important;background:rgba(0,0,0,.38)!important;z-index:9100!important;display:none!important;pointer-events:auto!important}
    body.menu-open .side-backdrop{display:block!important}
    .main{margin-left:0!important;width:auto!important;padding-bottom:70px!important}
    body.menu-open{overflow:hidden!important}
}

@media(max-width:700px){
    .qrscan-inline{
        display:block;
    }

    .qrscan-inline .qrscan-button{
        margin-top:8px;
        width:100%;
    }

    .qrscan-box{
        width:calc(100vw - 18px);
        max-width:calc(100vw - 18px);
        padding:10px;
    }

    .qrscan-camera{
        max-height:46vh;
    }

    .qrscan-manual-row{
        display:block;
    }

    .qrscan-manual-ok{
        width:100%;
        margin-top:8px;
    }
}

:root{
    --mc-bg:#f4f6f8;
    --mc-surface:#ffffff;
    --mc-surface-2:#f8fafc;
    --mc-text:#1f2937;
    --mc-muted:#64748b;
    --mc-border:#d9e2ec;
    --mc-primary:#2563eb;
    --mc-primary-dark:#1d4ed8;
    --mc-accent:#0f766e;
    --mc-danger:#dc2626;
    --mc-warn:#b45309;
    --mc-radius:14px;
}

body{
    background:var(--mc-bg) !important;
    color:var(--mc-text);
    font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.side{
    background:#0f172a !important;
    color:#e5e7eb !important;
    box-shadow:8px 0 24px rgba(15,23,42,.18);
}

.brand{
    color:#fff !important;
    text-shadow:none !important;
    letter-spacing:.02em;
}

.side-nav a,
.quick-actions a{
    border:0 !important;
    border-radius:12px !important;
    background:transparent !important;
    color:#dbeafe !important;
    box-shadow:none !important;
    margin:5px 8px !important;
}

.side-nav a:hover,
.side-nav a:focus{
    background:rgba(37,99,235,.22) !important;
    color:#fff !important;
}

.nav-section{
    color:#93c5fd !important;
    letter-spacing:.08em;
    font-size:11px !important;
}

.quick-sale,
.quick-move{
    background:linear-gradient(135deg,#2563eb,#0f766e) !important;
    color:#fff !important;
    font-weight:800;
}

.main{
    background:var(--mc-bg) !important;
}

h1{
    background:transparent !important;
    color:var(--mc-text) !important;
    border-bottom:3px solid var(--mc-primary) !important;
    text-shadow:none !important;
}

.panel{
    background:var(--mc-surface) !important;
    border:1px solid var(--mc-border) !important;
    border-radius:var(--mc-radius) !important;
    box-shadow:0 10px 28px rgba(15,23,42,.06) !important;
}

button,
.btn,
input[type="submit"]{
    border:0 !important;
    border-radius:11px !important;
    background:var(--mc-primary) !important;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(37,99,235,.20) !important;
    font-weight:800 !important;
    text-shadow:none !important;
    transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover{
    background:var(--mc-primary-dark) !important;
    transform:translateY(-1px);
    box-shadow:0 12px 24px rgba(37,99,235,.25) !important;
}

.btn.soft,
button.soft{
    background:#e8eefc !important;
    color:#1e3a8a !important;
    box-shadow:none !important;
}

.btn.danger,
button.danger,
.danger{
    background:var(--mc-danger) !important;
    color:#fff !important;
}

table{
    border-collapse:separate !important;
    border-spacing:0 !important;
    overflow:hidden;
    border-radius:12px;
}

th{
    background:#e2e8f0 !important;
    color:#111827 !important;
    text-shadow:none !important;
    border-color:#cbd5e1 !important;
}

td{
    border-color:#e2e8f0 !important;
}

tr:nth-child(even) td{
    background:#f8fafc;
}

input,
select,
textarea{
    border:1px solid #cbd5e1 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:var(--mc-text) !important;
}

.customer-hero{
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    align-items:start;
}

.eyebrow{
    text-transform:uppercase;
    color:var(--mc-primary);
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
}

.customer-hero h2{
    margin:4px 0 12px;
    font-size:28px;
}

.customer-fields{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.customer-fields span{
    background:var(--mc-surface-2);
    border:1px solid var(--mc-border);
    border-radius:12px;
    padding:10px;
}

.customer-fields b{
    display:block;
    color:var(--mc-muted);
    font-size:12px;
    margin-bottom:3px;
}

.customer-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
}

.client-workflow-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.workflow-card{
    display:block;
    text-decoration:none;
    color:var(--mc-text);
    background:linear-gradient(180deg,#fff,#f8fafc);
    border:1px solid var(--mc-border);
    border-radius:16px;
    padding:16px;
    min-height:105px;
    box-shadow:0 8px 22px rgba(15,23,42,.06);
}

.workflow-card span{
    display:block;
    color:var(--mc-muted);
    font-weight:800;
    margin-bottom:10px;
}

.workflow-card b{
    display:block;
    font-size:26px;
    color:var(--mc-text);
}

.workflow-card small{
    display:block;
    margin-top:4px;
    color:var(--mc-muted);
    font-weight:700;
}

.workflow-card.primary{
    background:linear-gradient(135deg,#2563eb,#0f766e);
    color:#fff;
}

.workflow-card.primary span,
.workflow-card.primary b{
    color:#fff;
}

.workflow-card.money{
    border-color:#86efac;
}

.workflow-card.warn{
    border-color:#fbbf24;
}

.workflow-card.journal{
    border-color:#93c5fd;
}

.workflow-card.done{
    border-color:#99f6e4;
}

.journal-pill{
    display:inline-block;
    border-radius:999px;
    padding:6px 9px;
    font-size:12px;
    font-weight:900;
    line-height:1.15;
    white-space:nowrap;
}

.journal-pill.done{
    background:#d1fae5;
    color:#065f46;
}

.journal-pill.todo{
    background:#fef3c7;
    color:#92400e;
}

.journal-pill.muted{
    background:#e5e7eb;
    color:#4b5563;
}

@media(max-width:980px){
    .customer-hero{
        grid-template-columns:1fr;
    }
    .customer-actions{
        justify-content:flex-start;
    }
    .customer-fields,
    .client-workflow-grid{
        grid-template-columns:1fr;
    }
}

:root{
    --ui-bg:#f3f5f8;
    --ui-card:#ffffff;
    --ui-card-soft:#f8fafc;
    --ui-text:#172033;
    --ui-muted:#5f6f85;
    --ui-border:#d7dee9;

    --ui-primary:#2457e6;
    --ui-primary-2:#1b46c7;
    --ui-primary-light:#e9efff;

    --ui-green:#0f8a72;
    --ui-green-2:#0b705d;
    --ui-warning:#7f1d1d;
    --ui-red:#d33838;

    --ui-radius:16px;
    --ui-btn-radius:12px;
    --ui-shadow:0 12px 30px rgba(23,32,51,.08);
    --ui-btn-shadow:0 4px 0 rgba(16,34,81,.22), 0 12px 22px rgba(36,87,230,.18);
    --ui-btn-shadow-hover:0 5px 0 rgba(16,34,81,.24), 0 16px 30px rgba(36,87,230,.24);
    --ui-focus:0 0 0 4px rgba(36,87,230,.22);
}

html{
    background:var(--ui-bg);
}

body{
    background:
        radial-gradient(circle at top left, rgba(36,87,230,.10), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(15,138,114,.08), transparent 34rem),
        var(--ui-bg) !important;
    color:var(--ui-text);
    font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.main{
    background:transparent !important;
}

h1{
    color:var(--ui-text) !important;
    border:0 !important;
    background:transparent !important;
    text-shadow:none !important;
    padding-bottom:8px !important;
    position:relative;
}

h1::after{
    content:"";
    display:block;
    width:86px;
    height:5px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--ui-primary),var(--ui-green));
    margin-top:10px;
}

h2{
    color:var(--ui-text);
}

.panel{
    background:rgba(255,255,255,.96) !important;
    border:1px solid rgba(215,222,233,.95) !important;
    border-radius:var(--ui-radius) !important;
    box-shadow:var(--ui-shadow) !important;
    backdrop-filter:saturate(130%) blur(4px);
}

.flash{
    border-radius:14px !important;
    border:1px solid #9fd6ae !important;
    background:#eaf9ef !important;
    color:#126135 !important;
    box-shadow:0 8px 22px rgba(18,97,53,.10);
}

button,
.btn,
input[type="submit"],
input[type="button"],
a.btn,
.quick-sale,
.quick-move{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-height:42px !important;
    padding:10px 16px !important;
    border-radius:var(--ui-btn-radius) !important;
    border:1px solid rgba(18,45,130,.34) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, var(--ui-primary), var(--ui-primary-2)) !important;
    color:#fff !important;
    font-weight:850 !important;
    letter-spacing:.01em !important;
    line-height:1.1 !important;
    text-decoration:none !important;
    text-align:center !important;
    cursor:pointer !important;
    box-shadow:var(--ui-btn-shadow) !important;
    text-shadow:0 1px 0 rgba(0,0,0,.18) !important;
    transition:
        transform .12s ease,
        box-shadow .12s ease,
        filter .12s ease,
        background .12s ease,
        border-color .12s ease !important;
    user-select:none !important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover{
    transform:translateY(-1px) !important;
    box-shadow:var(--ui-btn-shadow-hover) !important;
    filter:saturate(1.05) brightness(1.03) !important;
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
a.btn:active{
    transform:translateY(3px) !important;
    box-shadow:0 1px 0 rgba(16,34,81,.26), 0 6px 14px rgba(36,87,230,.18) !important;
}

button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible{
    outline:none !important;
    box-shadow:var(--ui-focus), var(--ui-btn-shadow) !important;
}

button[disabled],
.btn[disabled],
button:disabled{
    opacity:.55 !important;
    cursor:not-allowed !important;
    transform:none !important;
    filter:grayscale(.2) !important;
    box-shadow:none !important;
}

.btn.small,
button.small,
.small.btn{
    min-height:34px !important;
    padding:7px 11px !important;
    border-radius:10px !important;
    font-size:13px !important;
    box-shadow:0 3px 0 rgba(16,34,81,.20), 0 8px 16px rgba(36,87,230,.14) !important;
}

.btn.soft,
button.soft,
a.btn.soft{
    background:
        linear-gradient(180deg,#ffffff,#e8efff) !important;
    color:#193c99 !important;
    border:1px solid #adc2ff !important;
    text-shadow:none !important;
    box-shadow:0 3px 0 #c7d4f6, 0 10px 18px rgba(30,64,175,.10) !important;
}

.btn.soft:hover,
button.soft:hover,
a.btn.soft:hover{
    background:linear-gradient(180deg,#ffffff,#dfe8ff) !important;
    box-shadow:0 4px 0 #bccbf0, 0 13px 22px rgba(30,64,175,.14) !important;
}

.btn.danger,
button.danger,
.danger{
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%),
        linear-gradient(180deg,#e34a4a,#bd2525) !important;
    border-color:#a92121 !important;
    color:#fff !important;
    box-shadow:0 4px 0 #9e1f1f, 0 12px 22px rgba(211,56,56,.20) !important;
}

.btn.success,
button.success{
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%),
        linear-gradient(180deg,var(--ui-green),var(--ui-green-2)) !important;
    border-color:#086554 !important;
    box-shadow:0 4px 0 #075746, 0 12px 22px rgba(15,138,114,.18) !important;
}

.btn.warning,
button.warning{
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%),
        linear-gradient(180deg,#8f3342,#712632) !important;
    border-color:#5f1f2a !important;
    color:#fff !important;
    box-shadow:0 4px 0 #5f1f2a, 0 12px 22px rgba(113,38,50,.18) !important;
}

label{
    color:var(--ui-text);
    font-weight:750;
}

input,
select,
textarea{
    border:1px solid #c8d2e0 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:var(--ui-text) !important;
    box-shadow:inset 0 1px 2px rgba(15,23,42,.06) !important;
    transition:border-color .12s ease, box-shadow .12s ease !important;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--ui-primary) !important;
    box-shadow:0 0 0 4px rgba(36,87,230,.14), inset 0 1px 2px rgba(15,23,42,.05) !important;
    outline:none !important;
}

.table-wrap{
    border:1px solid var(--ui-border);
    border-radius:14px;
    overflow:auto;
    background:#fff;
}

table{
    border-collapse:separate !important;
    border-spacing:0 !important;
    background:#fff;
}

th{
    background:#edf2f8 !important;
    color:#172033 !important;
    border-color:#d2dbe8 !important;
    text-shadow:none !important;
    font-weight:900 !important;
}

td{
    border-color:#e3e9f1 !important;
}

tr:nth-child(even) td{
    background:#f9fbfd !important;
}

tr:hover td{
    background:#eef5ff !important;
}

.side{
    background:linear-gradient(180deg,#121b2f,#0b1220) !important;
    color:#e7edf7 !important;
    border-right:1px solid rgba(255,255,255,.08);
    box-shadow:10px 0 30px rgba(3,7,18,.22) !important;
}

.brand{
    color:#fff !important;
    letter-spacing:.03em;
}

.nav-section{
    color:#8fb7ff !important;
    font-size:11px !important;
    letter-spacing:.09em !important;
    text-transform:uppercase;
}

.side-nav a{
    border:1px solid transparent !important;
    border-radius:13px !important;
    color:#dbe7ff !important;
    background:transparent !important;
    margin:4px 8px !important;
    box-shadow:none !important;
}

.side-nav a:hover{
    background:rgba(36,87,230,.20) !important;
    border-color:rgba(147,197,253,.22) !important;
    color:#fff !important;
    transform:none !important;
}

.quick-sale,
.quick-move{
    background:
        linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0) 40%),
        linear-gradient(135deg,#2457e6,#0f8a72) !important;
    color:#fff !important;
    border:1px solid rgba(255,255,255,.18) !important;
    box-shadow:0 4px 0 rgba(0,0,0,.22), 0 12px 22px rgba(36,87,230,.20) !important;
}

.customer-hero{
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    align-items:start;
    background:
        linear-gradient(135deg,rgba(36,87,230,.08),rgba(15,138,114,.06)),
        #fff !important;
}

.eyebrow{
    text-transform:uppercase;
    color:var(--ui-primary);
    font-size:12px;
    font-weight:950;
    letter-spacing:.10em;
}

.customer-hero h2{
    margin:5px 0 14px;
    font-size:30px;
    letter-spacing:-.02em;
}

.customer-fields{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.customer-fields span{
    background:#fff;
    border:1px solid var(--ui-border);
    border-radius:14px;
    padding:11px;
    box-shadow:0 4px 14px rgba(23,32,51,.05);
}

.customer-fields b{
    display:block;
    color:var(--ui-muted);
    font-size:12px;
    margin-bottom:3px;
}

.customer-actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    justify-content:flex-end;
}

.client-workflow-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.workflow-card{
    position:relative;
    display:block;
    text-decoration:none;
    color:var(--ui-text);
    background:linear-gradient(180deg,#ffffff,#f8fafc);
    border:1px solid var(--ui-border);
    border-radius:18px;
    padding:17px;
    min-height:112px;
    box-shadow:0 9px 24px rgba(23,32,51,.07);
    overflow:hidden;
    transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.workflow-card::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:6px;
    background:var(--ui-primary);
}

.workflow-card:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 34px rgba(23,32,51,.11);
    border-color:#b8c6dd;
}

.workflow-card span{
    display:block;
    color:var(--ui-muted);
    font-weight:850;
    margin-bottom:11px;
}

.workflow-card b{
    display:block;
    font-size:28px;
    color:var(--ui-text);
    letter-spacing:-.03em;
}

.workflow-card small{
    display:block;
    margin-top:5px;
    color:var(--ui-muted);
    font-weight:800;
}

.workflow-card.primary{
    background:linear-gradient(135deg,#2457e6,#0f8a72);
    color:#fff;
    border-color:rgba(255,255,255,.18);
}

.workflow-card.primary::before{
    background:rgba(255,255,255,.65);
}

.workflow-card.primary span,
.workflow-card.primary b{
    color:#fff;
}

.workflow-card.money::before{background:#0f8a72}
.workflow-card.warn::before{background:#8f3342}
.workflow-card.journal::before{background:#2457e6}
.workflow-card.done::before{background:#0f8a72}

.journal-pill{
    display:inline-block;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:950;
    line-height:1.15;
    white-space:nowrap;
    border:1px solid transparent;
}

.journal-pill.done{
    background:#dff8ef;
    color:#075c4b;
    border-color:#9de4d0;
}

.journal-pill.todo{
    background:#f8e8eb;
    color:#7f1d1d;
    border-color:#d8a9b1;
}

.journal-pill.muted{
    background:#eef2f7;
    color:#536173;
    border-color:#d8e0eb;
}

.mobile-topbar{
    background:#10192c !important;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.mobile-sale{
    background:linear-gradient(180deg,#2457e6,#1b46c7) !important;
    color:#fff !important;
    border-radius:10px !important;
    box-shadow:0 3px 0 rgba(0,0,0,.25) !important;
}

@media(max-width:980px){
    .customer-hero{
        grid-template-columns:1fr;
    }

    .customer-actions{
        justify-content:flex-start;
    }

    .customer-fields,
    .client-workflow-grid{
        grid-template-columns:1fr;
    }

    button,
    .btn,
    input[type="submit"],
    input[type="button"],
    a.btn{
        min-height:46px !important;
    }
}

.section-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.client-create-panel{border-left:6px solid #2457e6!important}
.form-actions{display:flex;justify-content:flex-end}
.client-list{display:grid;grid-template-columns:1fr;gap:18px}
.client-card{background:#fff;border:1px solid #d7dee9;border-radius:18px;padding:18px;box-shadow:0 10px 26px rgba(23,32,51,.07)}
.client-card-head{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:start;border-bottom:1px solid #e2e8f0;padding-bottom:14px;margin-bottom:14px}
.client-code{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 10px;border-radius:999px;background:#e9efff;color:#193c99;border:1px solid #adc2ff;font-weight:900;font-size:12px}
.client-card h3{margin:8px 0 6px;font-size:24px}
.client-card p{margin:0;color:#5f6f85}
.client-primary-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.client-metrics{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.client-metrics a{text-decoration:none;background:#f8fafc;border:1px solid #dce4ef;border-radius:14px;padding:11px;color:#172033;min-height:72px}
.client-metrics b{display:block;font-size:21px;color:#172033;line-height:1.1}
.client-metrics span{display:block;color:#5f6f85;font-weight:850;font-size:12px;margin-top:5px}
.client-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.client-action{text-decoration:none;color:#172033;border:1px solid #d7dee9;border-radius:15px;background:linear-gradient(180deg,#ffffff,#f8fafc);padding:13px;min-height:98px;box-shadow:0 7px 18px rgba(23,32,51,.05);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.client-action:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(23,32,51,.10);border-color:#adc2ff}
.client-action span{display:block;font-size:24px;margin-bottom:6px}
.client-action b{display:block;font-size:15px;margin-bottom:4px}
.client-action small{display:block;color:#5f6f85;font-weight:700;line-height:1.25}
.client-mandates{margin-top:14px;border:1px solid #d7dee9;border-radius:14px;background:#f8fafc;padding:10px 12px}
.client-mandates summary{cursor:pointer;font-weight:900;color:#193c99}
.client-mandates .table-wrap{margin-top:12px}
.client-consents{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid #e2e8f0}
@media(max-width:1100px){.client-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.client-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.section-title-row,.client-card-head{grid-template-columns:1fr;display:grid}.client-primary-actions{justify-content:flex-start}.client-metrics,.client-action-grid{grid-template-columns:1fr}}

.clienti-toolbar{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}

.client-search{
    display:grid;
    grid-template-columns:minmax(260px,1fr) auto auto;
    gap:10px;
    align-items:end;
}

.new-client-collapsed{
    margin-top:4px;
}

.new-client-collapsed > summary{
    width:max-content;
    list-style:none;
}

.new-client-collapsed > summary::-webkit-details-marker{
    display:none;
}

.new-client-body{
    margin-top:14px;
    padding:14px;
    border:1px solid #d7d7d7;
    border-radius:9px;
    background:#fff;
}

.clienti-table-wrap{
    max-width:100%;
    overflow:auto;
}

.clienti-operativa{
    min-width:1500px;
}

.clienti-operativa th{
    white-space:nowrap;
}

.clienti-operativa td{
    vertical-align:top;
}

.client-main-cell b{
    display:block;
    font-size:15px;
    margin:5px 0 3px;
}

.client-main-cell small{
    display:block;
    color:#666;
}

.client-code{
    display:inline-flex;
    padding:3px 8px;
    border-radius:999px;
    background:#eaf5f5;
    color:#0f4f53;
    border:1px solid #9ec9cb;
    font-weight:900;
    font-size:12px;
}

.mini-stat b{
    display:block;
    font-size:22px;
    line-height:1;
}

.mini-stat span,
.mini-line{
    display:block;
    font-size:12px;
    color:#444;
    margin-top:4px;
    white-space:nowrap;
}

.actions-cell{
    min-width:280px;
}

.actions-cell .btn{
    margin:2px;
}

.mandati-cell{
    min-width:330px;
}

.mandato-chip{
    border:1px solid #d7d7d7;
    border-radius:8px;
    background:#fafafa;
    padding:7px;
    margin-bottom:6px;
}

.mandato-chip b{
    display:block;
}

.mandato-chip span{
    display:block;
    font-size:12px;
    color:#555;
    margin:3px 0 6px;
}

.form-actions{
    display:flex;
    justify-content:flex-end;
}

@media(max-width:800px){
    .client-search{
        grid-template-columns:1fr;
    }

    .new-client-collapsed > summary{
        width:100%;
    }
}

.actions-cell-compact{min-width:220px;white-space:normal}
.actions-cell-compact>.btn{margin:2px}
.row-actions-menu{display:inline-block;position:relative;margin:2px;vertical-align:top}
.row-actions-menu>summary{list-style:none;cursor:pointer}
.row-actions-menu>summary::-webkit-details-marker{display:none}
.row-actions-menu-panel{position:absolute;left:0;top:calc(100% + 6px);z-index:60;min-width:190px;padding:8px;border:1px solid #cfcfcf;border-radius:10px;background:#fff;box-shadow:0 12px 26px rgba(0,0,0,.18);display:grid;gap:6px}
.row-actions-menu-panel .btn,.row-actions-menu-panel .inline-form,.row-actions-menu-panel .inline-form button{width:100%;text-align:left}
.backup-actions{min-width:170px;white-space:nowrap}
.backup-actions .inline-form{display:inline-block;margin:0 0 0 4px}
@media(max-width:760px){.row-actions-menu{position:static}.row-actions-menu-panel{position:fixed;left:12px;right:12px;top:96px;min-width:0;max-height:70vh;overflow:auto}.actions-cell-compact .btn{display:inline-flex}}

.cliente-operativo{
    display:block;
}

.cliente-topbar{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    padding:10px !important;
    margin-bottom:10px;
    border-top:4px solid #155e63 !important;
}

.cliente-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:16px;
    align-items:start;
}

.cliente-card-operativa{
    border-top:4px solid #303030 !important;
}

.cliente-title-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    border-bottom:1px solid #ddd;
    padding-bottom:10px;
    margin-bottom:12px;
}

.cliente-title-row h2{
    margin:6px 0 0;
    font-size:28px !important;
}

.cliente-meta{
    color:#666;
    font-size:12px;
}

.cliente-anagrafica-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:10px;
}

.field-line{
    border-bottom:1px solid #aaa;
    min-height:46px;
    padding:4px 2px;
    background:#f7f7f7;
}

.field-line.large{
    grid-column:span 2;
}

.field-line label{
    display:block;
    font-size:12px;
    color:#444;
    font-weight:700;
}

.field-line b{
    display:block;
    font-size:15px;
    color:#222;
    margin-top:5px;
    min-height:18px;
}

.cliente-avvisi{
    margin-top:16px;
}

.cliente-avvisi label{
    display:block;
    margin-bottom:6px;
}

.cliente-avvisi textarea{
    width:100%;
    min-height:74px;
    border:1px solid #155e63 !important;
    color:#7f1d1d !important;
    font-weight:900;
    resize:vertical;
}

.cliente-bottom-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}

.cliente-side-actions{
    display:grid;
    gap:9px;
    position:sticky;
    top:14px;
}

.side-action{
    display:block;
    text-decoration:none;
    color:#303030;
    background:linear-gradient(180deg,#ffffff,#eeeeee);
    border:1px solid #cfcfcf;
    border-radius:8px;
    padding:12px;
    box-shadow:inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.12);
}

.side-action:hover{
    border-color:#155e63;
    background:linear-gradient(180deg,#edf7f7,#eeeeee);
}

.side-action.primary{
    border-left:5px solid #155e63;
}

.side-action b{
    display:block;
    font-size:15px;
    color:#303030;
    margin-bottom:5px;
}

.side-action span{
    display:block;
    font-size:12px;
    color:#666;
    font-weight:700;
}

.journal-pill{
    display:inline-block;
    padding:5px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.journal-pill.done{
    background:#d7f7df;
    color:#166534;
}

.journal-pill.todo{
    background:#eef2f7;
    color:#475569;
}

.journal-pill.muted{
    background:#e5e5e5;
    color:#555;
}

@media(max-width:1100px){
    .cliente-layout{
        grid-template-columns:1fr;
    }

    .cliente-side-actions{
        position:static;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .cliente-anagrafica-grid,
    .cliente-side-actions{
        grid-template-columns:1fr;
    }

    .field-line.large{
        grid-column:auto;
    }
}

.cliente-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:stretch;padding:8px!important;margin-bottom:8px;border-top:4px solid #155e63!important}
.tool-form{display:inline;margin:0}
.tool-btn{min-width:78px;min-height:70px;border:1px solid #cfcfcf;border-radius:8px;background:linear-gradient(180deg,#fff,#ececec);box-shadow:inset 0 1px 0 #fff,0 2px 4px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-decoration:none;color:#333;font-weight:900;cursor:pointer;padding:8px 10px;font:inherit}
.tool-btn span{font-size:24px;line-height:1}.tool-btn b{font-size:13px}.tool-btn:hover{border-color:#155e63;background:linear-gradient(180deg,#edf7f7,#ececec)}.tool-btn.danger{color:#8b0000}.tool-btn.disabled{opacity:.45;cursor:not-allowed}.cliente-subtoolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:14px;padding:8px!important}.cliente-meta-line{font-size:12px;color:#555;margin-left:10px}.cliente-anagrafica-completa{display:grid;grid-template-columns:74px minmax(150px,1.4fr) minmax(150px,1.4fr) minmax(110px,.8fr);gap:8px;align-items:end}.cliente-anagrafica-completa .field-line{min-height:45px}.cliente-anagrafica-completa .field-line.codice b{color:#0f4f53;font-size:17px}.cliente-anagrafica-completa .field-line.large{grid-column:span 2}.cliente-anagrafica-completa .field-line.email-line{grid-column:span 3}.access-web-inline{display:flex;flex-direction:column;gap:6px;align-self:stretch;justify-content:flex-end}.access-status{font-size:12px;text-align:center}.access-status.ko{color:#e00000}.access-status.ok{color:#087b20}.inline-form{display:inline-block;margin:2px}.inline-form button.small{vertical-align:middle}.btn.danger,button.danger,.small.danger{background:#b91c1c!important;color:#fff!important;border-color:#991b1b!important}
@media(max-width:1050px){.cliente-anagrafica-completa{grid-template-columns:1fr 1fr}.cliente-anagrafica-completa .field-line.large,.cliente-anagrafica-completa .field-line.email-line{grid-column:span 2}}
@media(max-width:640px){.cliente-anagrafica-completa{grid-template-columns:1fr}.cliente-anagrafica-completa .field-line.large,.cliente-anagrafica-completa .field-line.email-line{grid-column:auto}.tool-btn{min-width:calc(50% - 6px)}}

.mandato-cliente-picker{display:flex;flex-direction:column;gap:8px}
.cliente-selezionato-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #ddd;border-left:5px solid #155e63;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.cliente-selezionato-card small{display:block;color:#555;margin-top:4px;font-weight:500}
.cliente-search-results{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:360px;overflow:auto}
.cliente-search-item{width:100%;text-align:left;border:1px solid #ddd;border-radius:9px;background:#fff;padding:12px 14px;cursor:pointer;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.cliente-search-item:hover,.cliente-search-item:focus{border-color:#155e63;outline:2px solid rgba(21,94,99,.18)}
.cliente-search-item b{display:block;font-size:15px;color:#222}.cliente-search-item small{display:block;color:#555;margin-top:3px}
.cliente-search-empty,.cliente-search-selected{padding:10px 12px;border-radius:8px;background:#f7f7f7;color:#333}
@media(max-width:760px){.cliente-selezionato-card{align-items:stretch;flex-direction:column}.cliente-search-results{max-height:300px}.mandato-form .form-actions .btn{width:100%}}

.cliente-toolbar-principale{align-items:stretch;gap:8px}
.cliente-meta-compatta{padding:8px 12px!important;margin-bottom:14px}
.cliente-meta-compatta .btn,.cliente-meta-compatta .inline-form button{margin:0}
.cliente-meta-compatta .inline-form{display:inline-flex;margin:0}
.cliente-meta-line{align-self:center;white-space:normal}
@media(max-width:700px){.cliente-toolbar-principale .tool-btn{min-width:calc(50% - 6px)}.cliente-meta-compatta .btn,.cliente-meta-compatta .inline-form,.cliente-meta-compatta .inline-form button{width:100%}}

@media(max-width:1100px){.cliente-side-actions-compatte{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cliente-side-actions-compatte{grid-template-columns:1fr}}

@media print{
    body.print-cliente-scheda *{
        visibility:hidden !important;
    }
    body.print-cliente-scheda,
    body.print-cliente-scheda main,
    body.print-cliente-scheda .content,
    body.print-cliente-scheda .cliente-operativo,
    body.print-cliente-scheda .cliente-layout,
    body.print-cliente-scheda .cliente-main,
    body.print-cliente-scheda .cliente-card-operativa,
    body.print-cliente-scheda .cliente-card-operativa *{
        visibility:visible !important;
    }
    body.print-cliente-scheda{
        background:#fff !important;
        margin:0 !important;
        padding:0 !important;
    }
    body.print-cliente-scheda .side,
    body.print-cliente-scheda .mobile-topbar,
    body.print-cliente-scheda .side-backdrop,
    body.print-cliente-scheda h1,
    body.print-cliente-scheda .cliente-toolbar,
    body.print-cliente-scheda .cliente-subtoolbar,
    body.print-cliente-scheda .cliente-side-actions,
    body.print-cliente-scheda #pannello-accesso-web,
    body.print-cliente-scheda #modifica-cliente,
    body.print-cliente-scheda .cliente-bottom-actions,
    body.print-cliente-scheda .access-web-inline .btn,
    body.print-cliente-scheda .access-status{
        display:none !important;
    }
    body.print-cliente-scheda .cliente-card-operativa{
        position:absolute !important;
        left:0 !important;
        top:0 !important;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        box-shadow:none !important;
        background:#fff !important;
    }
    body.print-cliente-scheda .cliente-card-operativa::before{
        content:'Scheda cliente';
        display:block;
        font-size:18pt;
        font-weight:900;
        margin:0 0 8mm;
        padding-bottom:4mm;
        border-bottom:2px solid #222;
        color:#111;
    }
    body.print-cliente-scheda .cliente-layout,
    body.print-cliente-scheda .cliente-main,
    body.print-cliente-scheda .cliente-anagrafica-completa{
        display:block !important;
        width:100% !important;
    }
    body.print-cliente-scheda .field-line{
        display:inline-block !important;
        vertical-align:top !important;
        width:48% !important;
        min-height:16mm !important;
        margin:0 1% 3mm 0 !important;
        padding:2mm !important;
        background:#fff !important;
        border:1px solid #999 !important;
        break-inside:avoid;
    }
    body.print-cliente-scheda .field-line.large,
    body.print-cliente-scheda .field-line.email-line{
        width:98% !important;
    }
    body.print-cliente-scheda .field-line label{
        font-size:9pt !important;
        color:#444 !important;
    }
    body.print-cliente-scheda .field-line b{
        font-size:11pt !important;
        color:#111 !important;
    }
    body.print-cliente-scheda .cliente-avvisi{
        margin-top:6mm !important;
        break-inside:avoid;
    }
    body.print-cliente-scheda .cliente-avvisi textarea{
        border:1px solid #999 !important;
        color:#111 !important;
        min-height:28mm !important;
        resize:none !important;
    }
}

*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{min-width:0;touch-action:manipulation}
img,video,canvas,svg,iframe{max-width:100%;height:auto}
input,select,textarea,button,a{max-width:100%}
.main{min-width:0;max-width:100%}
.flash{overflow-wrap:anywhere}

@media (min-width:981px){
  .mobile-topbar{display:none!important}
  .side{
    position:fixed!important;
    top:0!important;right:0!important;left:auto!important;bottom:0!important;
    width:224px!important;height:100vh!important;max-height:100vh!important;
    transform:none!important;visibility:visible!important;display:block!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    z-index:1000!important;
  }
  .side-backdrop{display:none!important;pointer-events:none!important}
  .main{margin-left:0!important;margin-right:224px!important;width:auto!important;max-width:calc(100% - 224px)!important}
}

@media (max-width:980px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important}
  body{padding:0!important;background:#f3f5f8!important}
  body.menu-open{overflow:hidden!important}

  .mobile-topbar{
    display:flex!important;
    position:sticky!important;
    top:0!important;left:0!important;right:0!important;
    height:58px!important;min-height:58px!important;
    width:100%!important;
    align-items:center!important;gap:10px!important;
    padding:8px max(10px,env(safe-area-inset-left)) 8px max(10px,env(safe-area-inset-right))!important;
    z-index:10020!important;
    background:#07111f!important;color:#fff!important;
    border-bottom:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 2px 14px rgba(0,0,0,.22)!important;
  }
  .mobile-topbar strong{
    min-width:0!important;flex:1 1 auto!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    color:#fff!important;font-size:18px!important;line-height:1!important;
  }
  .menu-toggle{
    flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:42px!important;
    display:grid!important;place-items:center!important;gap:3px!important;
    padding:8px!important;border-radius:12px!important;
    border:1px solid rgba(255,255,255,.22)!important;
    background:rgba(255,255,255,.10)!important;color:#fff!important;
    box-shadow:none!important;cursor:pointer!important;position:relative!important;z-index:10022!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  .menu-toggle span{display:block!important;width:22px!important;height:3px!important;background:#fff!important;border-radius:99px!important}
  .mobile-sale{
    flex:0 0 auto!important;margin-left:0!important;white-space:nowrap!important;
    min-height:38px!important;padding:9px 11px!important;border-radius:12px!important;
    color:#fff!important;text-decoration:none!important;background:#2563eb!important;border:1px solid rgba(255,255,255,.22)!important;
    box-shadow:none!important;font-size:13px!important;line-height:1!important;position:relative!important;z-index:10022!important;
  }

  .side{
    position:fixed!important;
    top:0!important;right:0!important;left:auto!important;bottom:0!important;
    width:min(90vw,340px)!important;height:100dvh!important;max-height:100dvh!important;
    padding:14px 12px calc(90px + env(safe-area-inset-bottom))!important;
    margin:0!important;display:block!important;visibility:visible!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    transform:translate3d(110%,0,0)!important;
    transition:transform .22s ease!important;
    z-index:10030!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    box-shadow:-18px 0 46px rgba(0,0,0,.34)!important;
  }
  body.menu-open .side{transform:translate3d(0,0,0)!important}

  .side-backdrop{
    position:fixed!important;inset:0!important;
    display:block!important;visibility:hidden!important;opacity:0!important;
    background:rgba(0,0,0,.56)!important;
    z-index:10025!important;pointer-events:none!important;
    transition:opacity .18s ease,visibility .18s ease!important;
  }
  body.menu-open .side-backdrop{visibility:visible!important;opacity:1!important;pointer-events:auto!important}

  .brand{font-size:21px!important;padding:10px 8px 8px!important;margin:0 0 8px!important}
  .quick-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:6px 6px 10px!important;margin:0!important}
  .quick-actions a{width:100%!important;min-height:42px!important;margin:0!important}
  .admin-global-search{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;margin:8px 6px 14px!important}
  .admin-global-search input{min-height:42px!important;font-size:16px!important}
  .admin-global-search button{min-height:42px!important;width:44px!important;padding:0!important}
  .side-nav{display:grid!important;gap:4px!important;padding:0 4px 16px!important}
  .nav-section{margin:14px 8px 6px!important;padding-top:10px!important;font-size:11px!important}
  .side-nav a{min-height:46px!important;margin:2px 0!important;padding:10px 12px!important;font-size:15px!important;border-radius:12px!important}
  .side-nav a .ico{width:28px!important;min-width:28px!important;height:28px!important;font-size:18px!important}
  .side-footer{margin:12px 6px!important;padding:12px 4px 28px!important}

  .main{
    margin:0!important;width:100%!important;max-width:100%!important;
    padding:12px 10px calc(76px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;background:transparent!important;
  }
  h1{font-size:23px!important;line-height:1.15!important;margin:8px 0 12px!important;padding:8px 2px 10px!important;overflow-wrap:anywhere!important}
  h1::after{max-width:82px!important}
  h2{font-size:19px!important;line-height:1.2!important;overflow-wrap:anywhere!important}

  .panel,.card,.box,.form-card,.dashboard-card,.stat,.widget,fieldset{
    width:100%!important;max-width:100%!important;margin:0 0 12px!important;padding:12px!important;border-radius:14px!important;overflow:visible!important;
  }
  .cards,.status-strip,.grid,.module-grid,.stats,.row,.form-grid,.dashboard-grid,.kpi-grid,.client-workflow-grid,.customer-fields,.search-results-grid,.theme-preview-row{
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
  }
  .client-portal-stats{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;max-width:100%!important;margin:12px 0!important}
  .customer-hero,.mandate-head,.inline{display:block!important;width:100%!important;max-width:100%!important}
  .customer-actions,.toolbar,.filters,.filterbar,.searchbar,.actions,.btn-row,.form-row,.field-row,.checks,.consent-checks{
    display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:8px!important;width:100%!important;max-width:100%!important;
  }
  .customer-actions > *, .toolbar > *, .filters > *, .filterbar > *, .searchbar > *, .actions > *, .btn-row > *, .form-row > *, .field-row > *{
    flex:1 1 100%!important;min-width:0!important;margin:0!important;
  }
  label{max-width:100%!important;overflow-wrap:anywhere!important}
  input,select,textarea{width:100%!important;min-width:0!important;font-size:16px!important}
  input[type="checkbox"],input[type="radio"]{width:auto!important;min-width:0!important}
  textarea{min-height:110px!important;resize:vertical!important}

  button,.btn,input[type="submit"],input[type="button"],a.button,a.btn{
    max-width:100%!important;min-height:42px!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;
  }

  .table-wrap,.table-responsive{
    display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;border-radius:12px!important;background:#fff!important;
  }
  main table{
    display:table!important;width:max-content!important;min-width:100%!important;max-width:none!important;border-collapse:separate!important;border-spacing:0!important;
  }
  main table thead{display:table-header-group!important}
  main table tbody{display:table-row-group!important}
  main table tr{display:table-row!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  main table th,main table td{
    display:table-cell!important;width:auto!important;max-width:240px!important;min-width:84px!important;
    padding:9px 10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle!important;
  }
  main table td:last-child,main table th:last-child{max-width:none!important;min-width:150px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  main table td:last-child .btn,main table td:last-child button,main table td:last-child a{margin:2px!important;vertical-align:middle!important}
  .thumb{width:48px!important;height:48px!important}

  .modal-backdrop,.qrscan-overlay{max-width:100vw!important;overflow:auto!important;padding:12px!important;z-index:10080!important}
  .modal,.qrscan-box{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;border-radius:16px!important}
}

@media (max-width:420px){
  .mobile-topbar{gap:7px!important;padding-left:8px!important;padding-right:8px!important}
  .mobile-topbar strong{font-size:16px!important}
  .mobile-sale{font-size:12px!important;padding-left:9px!important;padding-right:9px!important}
  .side{width:94vw!important}
  .main{padding-left:8px!important;padding-right:8px!important}
  main table th,main table td{max-width:210px!important;min-width:78px!important;padding:8px!important}
}

@media print{
  .mobile-topbar,.side,.side-backdrop{display:none!important}
  .main{margin:0!important;max-width:none!important;width:auto!important;padding:0!important;background:#fff!important}
}

:root{
    --btn-orange-1:#2f7a7e;
    --btn-orange-2:#0f4549;
    --btn-dark-1:#5b5b5b;
    --btn-dark-2:#303030;
    --btn-red-1:#e5533d;
    --btn-red-2:#b72818;
    --btn-grey-1:#ffffff;
    --btn-grey-2:#e9e9e9;
    --btn-border:#c9c9c9;
}

.cliente-operativo a,
.cliente-operativo a:visited{
    text-decoration:none !important;
}

.cliente-toolbar,
.cliente-comandi-operativi{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:stretch !important;
    gap:7px !important;
    padding:10px 12px !important;
    margin:0 0 10px 0 !important;
    border-top:4px solid var(--btn-orange-2) !important;
}

.cliente-toolbar .tool-form,
.cliente-comandi-operativi .tool-form{
    display:flex !important;
    margin:0 !important;
    padding:0 !important;
}

.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    width:82px !important;
    min-width:82px !important;
    height:72px !important;
    min-height:72px !important;
    padding:7px 8px !important;
    margin:0 !important;
    border:1px solid var(--btn-border) !important;
    border-radius:7px !important;
    background:linear-gradient(180deg,var(--btn-grey-1),var(--btn-grey-2)) !important;
    color:#343434 !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:13px !important;
    font-weight:900 !important;
    line-height:1.05 !important;
    text-align:center !important;
    text-decoration:none !important;
    text-shadow:none !important;
    cursor:pointer !important;
    box-shadow:inset 0 1px 0 #fff,0 2px 4px rgba(0,0,0,.18) !important;
    transform:none !important;
    filter:none !important;
    white-space:normal !important;
}

.cliente-toolbar .tool-btn:hover,
.cliente-toolbar a.tool-btn:hover,
.cliente-toolbar button.tool-btn:hover,
.cliente-comandi-operativi .tool-btn:hover,
.cliente-comandi-operativi a.tool-btn:hover,
.cliente-comandi-operativi button.tool-btn:hover{
    border-color:var(--btn-orange-2) !important;
    background:linear-gradient(180deg,#edf7f7,#e8e8e8) !important;
    color:#111 !important;
    transform:none !important;
    filter:none !important;
}

.cliente-toolbar .tool-btn span,
.cliente-comandi-operativi .tool-btn span{
    display:block !important;
    font-size:26px !important;
    line-height:1 !important;
    margin:0 !important;
}

.cliente-toolbar .tool-btn b,
.cliente-comandi-operativi .tool-btn b{
    display:block !important;
    color:inherit !important;
    font-size:13px !important;
    line-height:1.05 !important;
    margin:0 !important;
}

.cliente-toolbar .tool-btn.danger,
.cliente-toolbar button.tool-btn.danger,
.cliente-comandi-operativi .tool-btn.danger,
.cliente-comandi-operativi button.tool-btn.danger{
    background:linear-gradient(180deg,var(--btn-red-1),var(--btn-red-2)) !important;
    border-color:#941f12 !important;
    color:#fff !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 3px 0 #7b1a0f,0 8px 14px rgba(0,0,0,.16) !important;
}

.cliente-toolbar .tool-btn.disabled,
.cliente-toolbar button.tool-btn:disabled,
.cliente-comandi-operativi .tool-btn.disabled,
.cliente-comandi-operativi button.tool-btn:disabled{
    opacity:.48 !important;
    cursor:not-allowed !important;
    background:linear-gradient(180deg,#f7f7f7,#e0e0e0) !important;
    color:#9a9a9a !important;
    border-color:#d4d4d4 !important;
    box-shadow:inset 0 1px 0 #fff !important;
}

.cliente-subtoolbar,
.cliente-azioni-secondarie{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:7px !important;
    padding:10px 12px !important;
    margin:0 0 18px 0 !important;
}

.cliente-subtoolbar .btn,
.cliente-subtoolbar a.btn,
.cliente-subtoolbar button.btn,
.cliente-azioni-secondarie .btn,
.cliente-azioni-secondarie a.btn,
.cliente-azioni-secondarie button.btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    min-height:42px !important;
    padding:9px 14px !important;
    border:1px solid #222 !important;
    border-radius:7px !important;
    background:linear-gradient(180deg,var(--btn-dark-1),var(--btn-dark-2)) !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:900 !important;
    text-decoration:none !important;
    text-shadow:0 1px 1px rgba(0,0,0,.45) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #171717,0 7px 12px rgba(0,0,0,.14) !important;
}

.cliente-subtoolbar .btn:hover,
.cliente-subtoolbar a.btn:hover,
.cliente-subtoolbar button.btn:hover,
.cliente-azioni-secondarie .btn:hover,
.cliente-azioni-secondarie a.btn:hover,
.cliente-azioni-secondarie button.btn:hover{
    filter:brightness(1.08) !important;
    transform:translateY(-1px) !important;
}

.cliente-subtoolbar .btn.danger,
.cliente-azioni-secondarie .btn.danger{
    background:linear-gradient(180deg,var(--btn-red-1),var(--btn-red-2)) !important;
    border-color:#941f12 !important;
    color:#fff !important;
}

.cliente-meta-line{
    display:inline-flex !important;
    align-items:center !important;
    min-height:42px !important;
    color:#333 !important;
    font-size:12px !important;
    margin-left:4px !important;
}

.cliente-bottom-actions .btn,
.cliente-bottom-actions a.btn,
.cliente-bottom-actions button.btn,
.form-actions .btn,
.form-actions button.btn{
    text-decoration:none !important;
    white-space:normal !important;
}

@media(max-width:700px){
    .cliente-toolbar .tool-btn,
    .cliente-toolbar a.tool-btn,
    .cliente-toolbar button.tool-btn,
    .cliente-comandi-operativi .tool-btn,
    .cliente-comandi-operativi a.tool-btn,
    .cliente-comandi-operativi button.tool-btn{
        width:calc(50% - 4px) !important;
        min-width:calc(50% - 4px) !important;
    }
}

.qr-mini{display:block;width:58px;height:58px;max-width:58px;background:#fff;border:1px solid #d7d7d7;border-radius:6px;padding:3px;margin:4px auto}
.qr-cell{text-align:center;min-width:82px}
.qr-cell a{text-decoration:none;color:#222;font-weight:700}
@media (max-width: 760px){.qr-mini{width:72px;height:72px;max-width:72px}.qr-cell{min-width:92px}}

html,body{max-width:100%;overflow-x:hidden}
.main{min-width:0}
.panel{max-width:100%}
input,select,textarea,button,.btn{max-width:100%}

.admin-users-page{width:100%;max-width:100%}
.admin-user-form{align-items:end}
.admin-users-list-panel{overflow:visible}
.admin-user-list{display:grid;grid-template-columns:1fr;gap:16px;width:100%}
.admin-user-card{
    background:linear-gradient(#fff,#f7f7f7);
    border:1px solid #d9d9d9;
    border-radius:12px;
    padding:16px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    overflow:hidden;
}
.admin-user-card-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding-bottom:12px;
    margin-bottom:14px;
    border-bottom:1px solid #e4e4e4;
}
.admin-user-card-head strong{display:block;font-size:19px;color:#222;line-height:1.2;overflow-wrap:anywhere}
.admin-user-card-head span{display:block;margin-top:3px;color:#666;overflow-wrap:anywhere}
.admin-role-badge{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:6px 10px;
    border-radius:999px;
    background:#242424;
    color:#fff;
    font-style:normal;
    font-weight:900;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.admin-user-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.admin-user-fields label{min-width:0}
.admin-active-check{
    min-height:36px;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start;
    gap:8px!important;
    padding:7px 9px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#fff;
}
.admin-created-at{display:flex;flex-direction:column;gap:5px;color:#333;font-weight:700;min-height:36px;justify-content:center}
.admin-created-at span{color:#666;font-weight:400;overflow-wrap:anywhere}
.admin-permissions-block{margin-top:14px;min-width:0}
.admin-permissions-block>b{display:block;margin-bottom:8px;color:#222}
.admin-permission-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(160px,1fr));
    gap:8px!important;
    width:100%;
}
.admin-permission-grid label{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    gap:7px!important;
    min-width:0;
    padding:8px 9px;
    border:1px solid #e0e0e0;
    border-radius:8px;
    background:#fff;
    font-size:13px;
    line-height:1.25;
}
.admin-permission-grid input{flex:0 0 auto;margin-top:1px;width:auto!important;min-height:auto!important}
.admin-permission-grid span{min-width:0;overflow-wrap:anywhere}
.admin-user-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #e4e4e4}
.admin-user-actions form{margin:0}
.admin-user-actions .btn,.admin-user-actions button{min-width:118px}
.empty-state{padding:18px;border:1px dashed #ccc;border-radius:10px;background:#fff;color:#666;font-weight:700}

.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
main table{table-layout:auto}
main th,main td{vertical-align:top}
main td input,main td select,main td textarea{min-width:140px}
.actions{white-space:normal!important}
.actions .btn,.actions button,.actions form{margin:2px;vertical-align:middle}

@media (min-width:981px){
    .main{margin-right:224px!important;margin-left:0!important;max-width:calc(100% - 224px)!important}
    .side{right:0!important;left:auto!important;width:224px!important}
    .admin-user-card{padding:18px}
}

@media (max-width:1180px) and (min-width:981px){
    .admin-user-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-permission-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}
}

@media (max-width:980px){
    html,body{width:100%;overflow-x:hidden!important}
    body{background:#f3f5f8!important}
    .mobile-topbar{display:flex!important;position:sticky!important;top:0!important;width:100%!important;z-index:10020!important}
    .main{margin:0!important;max-width:100%!important;width:100%!important;padding:12px 10px 82px!important;overflow-x:hidden!important;background:#f3f5f8!important}
    h1{margin:6px 0 12px!important;padding:10px 2px 12px!important;background:transparent!important;color:#111!important;border-bottom:0!important;text-shadow:none!important;font-size:26px!important;line-height:1.1!important}
    h1:after{content:"";display:block;width:72px;height:4px;background:#155e63;border-radius:99px;margin-top:8px}
    h2{font-size:20px!important;line-height:1.2!important}
    .panel{width:100%!important;max-width:100%!important;margin:0 0 12px!important;padding:12px!important;border-radius:13px!important;overflow:visible!important}
    .grid,.form-grid,.row,.cards,.status-strip,.module-grid,.customer-fields,.client-workflow-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;margin-left:0!important;margin-right:0!important}
    .full{grid-column:1/-1!important}
    label{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
    input,select,textarea{width:100%!important;min-width:0!important;font-size:16px!important}
    textarea{min-height:112px!important}
    button,.btn,input[type="submit"],input[type="button"],a.button,a.btn{min-height:42px!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
    .toolbar,.filters,.filterbar,.searchbar,.actions,.btn-row,.form-actions,.field-row,.form-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;max-width:100%!important;align-items:stretch!important}
    .toolbar>*,.filters>*,.filterbar>*,.searchbar>*,.actions>*,.btn-row>*,.form-actions>*,.field-row>*,.form-row>*{flex:1 1 100%!important;min-width:0!important;margin:0!important}

    .admin-user-card{padding:12px;border-radius:13px}
    .admin-user-card-head{display:block}
    .admin-role-badge{margin-top:8px;max-width:100%;white-space:normal;text-align:center}
    .admin-user-fields{grid-template-columns:1fr!important;gap:10px!important}
    .admin-permission-grid{grid-template-columns:1fr!important;gap:7px!important}
    .admin-permission-grid label{font-size:14px;padding:9px}
    .admin-user-actions{display:grid;grid-template-columns:1fr;gap:8px;justify-content:stretch}
    .admin-user-actions .btn,.admin-user-actions button,.admin-user-actions form{width:100%;min-width:0;margin:0}

    .table-wrap,.table-responsive{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;border-radius:12px!important;background:#fff!important}
    main table{display:table!important;width:max-content!important;min-width:100%!important;max-width:none!important;border-collapse:separate!important;border-spacing:0!important}
    main table thead{display:table-header-group!important}
    main table tbody{display:table-row-group!important}
    main table tr{display:table-row!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
    main table th,main table td{display:table-cell!important;min-width:110px!important;max-width:260px!important;padding:9px 10px!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:top!important}
    main table td input,main table td select,main table td textarea{min-width:160px!important}
    main table td.actions,main table td:last-child{min-width:170px!important;max-width:240px!important}

    .side{width:min(90vw,340px)!important;right:0!important;left:auto!important;transform:translate3d(110%,0,0)!important;z-index:10030!important}
    body.menu-open .side{transform:translate3d(0,0,0)!important}
    .side-backdrop{z-index:10025!important}
}

@media (max-width:420px){
    .main{padding-left:8px!important;padding-right:8px!important}
    h1{font-size:24px!important}
    .panel{padding:10px!important}
    main table th,main table td{min-width:96px!important;max-width:220px!important;padding:8px!important}
    main table td input,main table td select,main table td textarea{min-width:150px!important}
}

@media (max-width: 980px){
  *,*::before,*::after{box-sizing:border-box!important}
  html,body{max-width:100%!important;overflow-x:hidden!important}
  .main{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .panel{max-width:100%!important;overflow:visible!important}

  
  .cliente-operativo .cliente-toolbar,
  .cliente-operativo .cliente-comandi-operativi{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
    padding:12px!important;
  }
  .cliente-operativo .cliente-toolbar .tool-form,
  .cliente-operativo .cliente-comandi-operativi .tool-form{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  .cliente-operativo .cliente-toolbar .tool-btn,
  .cliente-operativo .cliente-toolbar a.tool-btn,
  .cliente-operativo .cliente-toolbar button.tool-btn,
  .cliente-operativo .cliente-comandi-operativi .tool-btn,
  .cliente-operativo .cliente-comandi-operativi a.tool-btn,
  .cliente-operativo .cliente-comandi-operativi button.tool-btn{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:82px!important;
    min-height:82px!important;
    padding:8px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    line-height:1.08!important;
    text-align:center!important;
  }
  .cliente-operativo .cliente-toolbar .tool-btn span,
  .cliente-operativo .cliente-comandi-operativi .tool-btn span{
    display:block!important;
    font-size:26px!important;
    line-height:1!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
  }
  .cliente-operativo .cliente-toolbar .tool-btn b,
  .cliente-operativo .cliente-comandi-operativi .tool-btn b{
    display:block!important;
    width:100%!important;
    color:inherit!important;
    font-size:15px!important;
    line-height:1.1!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  .cliente-operativo .cliente-toolbar .tool-btn.danger,
  .cliente-operativo .cliente-comandi-operativi .tool-btn.danger{
    color:#fff!important;
    overflow:hidden!important;
  }

  
  .cliente-operativo .cliente-subtoolbar,
  .cliente-operativo .cliente-azioni-secondarie{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    padding:12px!important;
  }
  .cliente-operativo .cliente-subtoolbar .btn,
  .cliente-operativo .cliente-subtoolbar a.btn,
  .cliente-operativo .cliente-subtoolbar button.btn,
  .cliente-operativo .cliente-azioni-secondarie .btn,
  .cliente-operativo .cliente-azioni-secondarie a.btn,
  .cliente-operativo .cliente-azioni-secondarie button.btn{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:52px!important;
    margin:0!important;
    padding:10px 8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    line-height:1.15!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .cliente-operativo .cliente-meta-line{
    grid-column:1 / -1!important;
    display:block!important;
    min-height:auto!important;
    width:100%!important;
    margin:4px 0 0!important;
    font-size:14px!important;
    line-height:1.35!important;
    color:#333!important;
  }

  
  .cliente-operativo .cliente-layout{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;max-width:100%!important}
  .cliente-operativo .cliente-main,
  .cliente-operativo .cliente-card-operativa,
  .cliente-operativo .cliente-side-actions{width:100%!important;max-width:100%!important;min-width:0!important}
  .cliente-operativo .cliente-side-actions{position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .cliente-operativo .cliente-anagrafica-completa{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important}
  .cliente-operativo .cliente-anagrafica-completa .field-line,
  .cliente-operativo .cliente-anagrafica-completa .field-line.large,
  .cliente-operativo .cliente-anagrafica-completa .field-line.email-line{grid-column:auto!important;width:100%!important;min-width:0!important;overflow-wrap:anywhere!important}
  .cliente-operativo .access-web-inline{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .cliente-operativo .cliente-bottom-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important}
  .cliente-operativo .cliente-bottom-actions .btn,
  .cliente-operativo .cliente-bottom-actions a.btn,
  .cliente-operativo .cliente-bottom-actions button.btn{width:100%!important;min-width:0!important;margin:0!important}

  
  .admin-users-page,
  .admin-users-list-panel,
  .admin-user-list,
  .admin-user-card{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
  .admin-user-card-head{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .admin-user-fields{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;max-width:100%!important}
  .admin-permission-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important}
  .admin-permission-grid label{width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;align-items:flex-start!important;gap:8px!important;line-height:1.3!important}
  .admin-user-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important}
  .admin-user-actions .btn,
  .admin-user-actions button,
  .admin-user-actions form{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}

  
  .settings-grid,.setting-grid,.impostazioni-grid,.settings-row,.settings-card-row,
  .form-grid,.grid,.row,.cards,.module-grid,.status-strip{
    grid-template-columns:1fr!important;
    max-width:100%!important;
    min-width:0!important;
  }
  main label, main input, main select, main textarea, main button, main .btn{
    max-width:100%!important;
  }
}

@media (max-width: 380px){
  .cliente-operativo .cliente-toolbar,
  .cliente-operativo .cliente-comandi-operativi,
  .cliente-operativo .cliente-subtoolbar,
  .cliente-operativo .cliente-azioni-secondarie{
    grid-template-columns:1fr!important;
  }
}

.mobile-top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.mobile-qr,.mobile-sale{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:14px;font-weight:800;white-space:nowrap}
.mobile-qr{background:#111827;color:#fff;border:1px solid rgba(255,255,255,.25);padding:12px 14px;box-shadow:inset 0 1px rgba(255,255,255,.16)}
.qr-operativo-form label{display:block;font-weight:800;margin-bottom:10px}.qr-operativo-form input{font-size:22px;font-weight:800;letter-spacing:.03em}.qr-operativo-form .qrscan-inline{margin-top:8px}.qr-operativo-actions .action-grid{display:flex;gap:12px;flex-wrap:wrap}.qr-operativo-actions .btn{min-width:190px;text-align:center}
@media(max-width:760px){.mobile-topbar strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.mobile-top-actions{gap:8px}.mobile-qr{min-height:46px;padding:10px 12px;font-size:16px}.mobile-sale{min-height:46px}.qr-operativo-form .qrscan-inline{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.qr-operativo-form .qrscan-button,.qr-operativo-form button{width:100%;min-height:56px;font-size:18px}.qr-operativo-actions .action-grid{display:grid;grid-template-columns:1fr}.qr-operativo-actions .btn{width:100%;min-width:0}}

.cliente-operativo .cliente-layout{
    grid-template-columns:320px minmax(0,1fr) !important;
    gap:16px !important;
    align-items:start !important;
}
.cliente-operativo .cliente-side-actions{
    grid-column:1 !important;
    grid-row:1 !important;
    order:-1 !important;
}
.cliente-operativo .cliente-main{
    grid-column:2 !important;
    grid-row:1 !important;
    min-width:0 !important;
}
.cliente-operativo .cliente-side-actions::before{
    content:'Azioni cliente';
    display:block;
    font-size:18px;
    font-weight:900;
    color:#222;
    padding:0 2px 4px;
}
.cliente-operativo .side-action.primary{
    background:linear-gradient(180deg,#fff7ef,#ffffff) !important;
    border-left:6px solid #155e63 !important;
}
.cliente-operativo .side-action b{
    font-size:16px !important;
}

table.azioni-prime-table th:first-child,
table.azioni-prime-table td:first-child{
    position:sticky;
    left:0;
    z-index:3;
    background:#fff;
    box-shadow:3px 0 5px rgba(0,0,0,.08);
    min-width:130px;
}
table.azioni-prime-table th:first-child{
    z-index:5;
    background:#303030;
    color:#fff;
}
table.azioni-prime-table td:first-child .btn,
table.azioni-prime-table td:first-child a.btn,
table.azioni-prime-table td:first-child button.btn{
    margin:2px 3px 2px 0;
    white-space:nowrap;
}

@media(max-width:1100px){
    .cliente-operativo .cliente-layout{
        grid-template-columns:1fr !important;
    }
    .cliente-operativo .cliente-side-actions,
    .cliente-operativo .cliente-main{
        grid-column:auto !important;
        grid-row:auto !important;
    }
    .cliente-operativo .cliente-side-actions{
        order:-1 !important;
        position:static !important;
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:9px !important;
    }
    .cliente-operativo .cliente-side-actions::before{
        grid-column:1 / -1;
    }
}

@media(max-width:700px){
    .cliente-operativo .cliente-side-actions{
        grid-template-columns:1fr !important;
    }
    table.azioni-prime-table th:first-child,
    table.azioni-prime-table td:first-child{
        min-width:115px;
    }
}

@media (max-width: 980px){
  .side .brand.brand-with-logo{padding:6px 0 8px !important;margin:0 auto 10px !important;display:flex !important;justify-content:center !important;align-items:center !important}
  .side .brand.brand-with-logo img{width:min(148px,56vw) !important;max-width:148px !important;height:auto !important;display:block !important;background:transparent !important;filter:drop-shadow(0 6px 14px rgba(0,0,0,.18)) !important}
  .mobile-topbar .mobile-brand{gap:10px !important;min-width:0 !important;flex:1 1 auto !important}
  .mobile-topbar .mobile-brand img{height:50px !important;width:auto !important;max-width:92px !important;background:transparent !important;display:block !important}
  .mobile-topbar .mobile-brand span{font-size:18px !important;line-height:1.1 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}

  .cliente-operativo .cliente-toolbar,
  .cliente-operativo .cliente-comandi-operativi{display:block !important;padding:14px !important}
  .cliente-operativo .cliente-toolbar .cliente-actions-title,
  .cliente-operativo .cliente-comandi-operativi .cliente-actions-title,
  .cliente-operativo .cliente-toolbar .cliente-actions-help,
  .cliente-operativo .cliente-comandi-operativi .cliente-actions-help{display:block !important;margin-bottom:12px !important}
  .cliente-operativo .cliente-actions-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;width:100% !important}

  .cliente-operativo .cliente-subtoolbar,
  .cliente-operativo .cliente-azioni-secondarie{display:block !important;padding:14px !important}
  .cliente-operativo .cliente-subtoolbar .cliente-actions-title,
  .cliente-operativo .cliente-azioni-secondarie .cliente-actions-title,
  .cliente-operativo .cliente-subtoolbar .cliente-actions-help,
  .cliente-operativo .cliente-azioni-secondarie .cliente-actions-help{display:block !important;margin-bottom:12px !important}
  .cliente-operativo .cliente-secondary-grid{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;width:100% !important}
  .cliente-operativo .cliente-secondary-grid > a,
  .cliente-operativo .cliente-secondary-grid > button,
  .cliente-operativo .cliente-secondary-grid > .btn,
  .cliente-operativo .cliente-secondary-grid > .inline-form{width:100% !important;min-width:0 !important;max-width:100% !important;margin:0 !important;display:block !important}
  .cliente-operativo .cliente-secondary-grid > .inline-form > button,
  .cliente-operativo .cliente-secondary-grid > a.btn,
  .cliente-operativo .cliente-secondary-grid > button.btn,
  .cliente-operativo .cliente-secondary-grid > .btn{width:100% !important;min-height:58px !important;padding:12px 14px !important;display:flex !important;align-items:center !important;justify-content:center !important;text-align:center !important;white-space:normal !important;line-height:1.2 !important;font-size:18px !important}
  .cliente-operativo .cliente-meta-line{display:block !important;width:100% !important;margin-top:12px !important}
}
@media (max-width: 640px){
  .mobile-topbar .mobile-brand img{height:44px !important;max-width:78px !important}
  .mobile-topbar .mobile-brand span{font-size:17px !important}
  .cliente-operativo .cliente-actions-grid{grid-template-columns:1fr 1fr !important}
}
@media (max-width: 420px){
  .cliente-operativo .cliente-actions-grid{grid-template-columns:1fr !important}
}

@media (max-width: 980px){
  .side .brand.brand-with-logo{margin:8px auto 12px !important;padding:0 !important;display:flex !important;justify-content:center !important;align-items:center !important}
  .side .brand.brand-with-logo img{width:110px !important;max-width:110px !important;max-height:88px !important;height:auto !important;display:block !important;background:transparent !important;object-fit:contain !important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.18)) !important}
  .side .brand.brand-with-logo span{display:none !important}
  .mobile-topbar .mobile-brand img{height:40px !important;max-width:64px !important;width:auto !important;object-fit:contain !important;background:transparent !important}
  .mobile-topbar .mobile-brand span{font-size:16px !important;font-weight:800 !important}

  .cliente-operativo .cliente-actions-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  .cliente-operativo .cliente-actions-grid .tool-btn{min-height:98px !important;height:auto !important;padding:10px 8px !important}

  .cliente-operativo .cliente-secondary-grid{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;width:100% !important}
  .cliente-operativo .cliente-secondary-grid > a,
  .cliente-operativo .cliente-secondary-grid > button,
  .cliente-operativo .cliente-secondary-grid > form,
  .cliente-operativo .cliente-secondary-grid > .inline-form{display:block !important;width:100% !important;max-width:100% !important;margin:0 !important}
  .cliente-operativo .cliente-secondary-grid > a.btn,
  .cliente-operativo .cliente-secondary-grid > button.btn,
  .cliente-operativo .cliente-secondary-grid > form > button,
  .cliente-operativo .cliente-secondary-grid > .inline-form > button{
      width:100% !important;max-width:100% !important;min-height:56px !important;height:auto !important;padding:12px 14px !important;
      display:flex !important;align-items:center !important;justify-content:center !important;text-align:center !important;
      white-space:normal !important;word-break:keep-all !important;overflow-wrap:anywhere !important;line-height:1.2 !important;font-size:17px !important;
  }
  .cliente-operativo .cliente-subtoolbar,
  .cliente-operativo .cliente-azioni-secondarie{display:block !important}
  .cliente-operativo .cliente-meta-line{display:block !important;margin-top:12px !important}
}
@media (max-width: 420px){
  .cliente-operativo .cliente-actions-grid{grid-template-columns:1fr !important}
  .side .brand.brand-with-logo img{width:94px !important;max-width:94px !important;max-height:76px !important}
}

.side .brand.brand-with-logo img,
.mobile-topbar .mobile-brand img{
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.22)) drop-shadow(0 6px 14px rgba(0,0,0,.28));
}
@media (max-width: 980px){
  .side .brand.brand-with-logo{margin:4px auto 8px !important}
  .side .brand.brand-with-logo img{width:78px !important;max-width:78px !important;max-height:64px !important}
  .mobile-topbar .mobile-brand img{height:36px !important;max-width:56px !important}
  .mobile-topbar .mobile-brand span{font-size:15px !important}
  .side .quick-actions a{box-shadow:0 4px 0 rgba(116,56,10,.95),0 10px 20px rgba(0,0,0,.28) !important;border-radius:15px !important}
  .side .side-nav a{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 22px rgba(0,0,0,.24) !important}
}

@media (max-width: 980px){
  .side .brand.brand-with-logo img{width:118px !important;max-width:118px !important;max-height:none !important;padding:7px 9px !important;border-radius:16px !important}
  .mobile-topbar .mobile-brand img{height:44px !important;max-width:80px !important;padding:4px 6px !important;border-radius:12px !important}
  .mobile-topbar .mobile-brand span{font-size:18px !important}
}
@media (max-width: 420px){
  .side .brand.brand-with-logo img{width:104px !important;max-width:104px !important}
  .mobile-topbar .mobile-brand img{height:40px !important;max-width:72px !important}
}

.side .brand.brand-with-logo{
  width:calc(100% - 24px) !important;
  max-width:216px !important;
  margin:12px auto 14px !important;
  padding:12px 10px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,#fffdfa 0%,#f5ecdb 100%) !important;
  border:1px solid rgba(196,151,81,.62) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.92) inset,0 12px 26px rgba(0,0,0,.22) !important;
}
.side .brand.brand-with-logo img{
  width:180px !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.35)) drop-shadow(0 5px 10px rgba(0,0,0,.08)) !important;
  object-fit:contain !important;
}
.side .brand.brand-with-logo span{display:none !important}
.mobile-topbar .mobile-brand{
  gap:10px !important;
  display:flex !important;
  align-items:center !important;
}
.mobile-topbar .mobile-brand img{
  height:42px !important;
  width:auto !important;
  max-width:74px !important;
  padding:4px 6px !important;
  border-radius:12px !important;
  background:linear-gradient(180deg,#fffdfa 0%,#f5ecdb 100%) !important;
  border:1px solid rgba(196,151,81,.58) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.92) inset,0 8px 16px rgba(0,0,0,.18) !important;
  filter:none !important;
}
.mobile-topbar .mobile-brand span{
  font-size:18px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  letter-spacing:-.01em !important;
}
@media (max-width: 980px){
  .side .brand.brand-with-logo{
    max-width:192px !important;
    padding:10px 8px !important;
    margin:10px auto 12px !important;
  }
  .side .brand.brand-with-logo img{width:156px !important}
}
@media (max-width: 420px){
  .side .brand.brand-with-logo{max-width:174px !important}
  .side .brand.brand-with-logo img{width:144px !important}
  .mobile-topbar .mobile-brand img{height:38px !important;max-width:68px !important}
  .mobile-topbar .mobile-brand span{font-size:17px !important}
}

main .table-wrap,
main .table-responsive{
  overflow-x:auto !important;
  overflow-y:visible !important;
  -webkit-overflow-scrolling:touch !important;
  padding-bottom:8px !important;
}

main table{
  table-layout:auto !important;
}

main table td.actions-cell,
main table th.actions-cell,
main table td.table-action-cell,
main table th.table-action-cell,
main table td.actions,
main table th.actions,
main table td.backup-actions,
main table td:has(.table-actions),
main table th:has(.table-actions),
main table td:has(> a.btn),
main table td:has(> button),
main table td:has(> form button),
main table td:has(> .inline-form button){
  min-width:240px !important;
  width:240px !important;
  max-width:300px !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  vertical-align:top !important;
}

main table .table-actions,
main table .table-action-group{
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-auto-flow:row !important;
  gap:8px !important;
  width:100% !important;
  min-width:220px !important;
  max-width:280px !important;
  align-items:stretch !important;
  justify-items:stretch !important;
}

main table .table-actions .btn,
main table .table-actions a.btn,
main table .table-actions button,
main table .table-action-group .btn,
main table .table-action-group a.btn,
main table .table-action-group button,
main table td.actions-cell > a.btn,
main table td.actions-cell > button,
main table td.actions-cell form > button,
main table td.table-action-cell > a.btn,
main table td.table-action-cell > a.small,
main table td.table-action-cell > button,
main table td.table-action-cell form > button,
main table td.actions > a.btn,
main table td.actions > button,
main table td.actions form > button,
main table td.backup-actions > a.btn,
main table td.backup-actions form > button{
  box-sizing:border-box !important;
  display:flex !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:42px !important;
  padding:9px 12px !important;
  margin:0 !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  line-height:1.16 !important;
  font-size:14px !important;
  text-align:center !important;
  text-decoration:none !important;
}

main table td.actions-cell form,
main table td.table-action-cell form,
main table td.actions form,
main table td.backup-actions form,
main table td.actions-cell .inline-form,
main table td.table-action-cell .inline-form,
main table td.actions .inline-form{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
}

main table td.table-action-cell > a.btn + a.btn,
main table td.table-action-cell > a.btn + form,
main table td.table-action-cell > form + a.btn,
main table td.table-action-cell > form + form,
main table td.actions-cell > a.btn + a.btn,
main table td.actions-cell > a.btn + form,
main table td.actions-cell > form + a.btn,
main table td.actions-cell > form + form{
  margin-top:8px !important;
}

main table td.actions-cell *,
main table td.table-action-cell *,
main table td.actions *,
main table td.backup-actions *{
  text-overflow:clip !important;
}

main table img.thumb,
main table .thumb{
  object-fit:cover !important;
  border-radius:10px !important;
}

@media (max-width: 980px){
  main table td.actions-cell,
  main table th.actions-cell,
  main table td.table-action-cell,
  main table th.table-action-cell,
  main table td.actions,
  main table th.actions,
  main table td.backup-actions,
  main table td:has(.table-actions),
  main table th:has(.table-actions),
  main table td:has(> a.btn),
  main table td:has(> button),
  main table td:has(> form button),
  main table td:has(> .inline-form button){
    min-width:230px !important;
    width:230px !important;
    max-width:270px !important;
  }

  main table .table-actions,
  main table .table-action-group{
    min-width:210px !important;
    max-width:250px !important;
  }

  main table .table-actions .btn,
  main table .table-actions a.btn,
  main table .table-actions button,
  main table .table-action-group .btn,
  main table .table-action-group a.btn,
  main table .table-action-group button,
  main table td.actions-cell > a.btn,
  main table td.actions-cell > button,
  main table td.actions-cell form > button,
  main table td.table-action-cell > a.btn,
  main table td.table-action-cell > a.small,
  main table td.table-action-cell > button,
  main table td.table-action-cell form > button,
  main table td.actions > a.btn,
  main table td.actions > button,
  main table td.actions form > button,
  main table td.backup-actions > a.btn,
  main table td.backup-actions form > button{
    min-height:44px !important;
    padding:10px 12px !important;
    font-size:14px !important;
  }

  main table img.thumb,
  main table .thumb{
    width:96px !important;
    height:96px !important;
    max-width:96px !important;
    min-width:96px !important;
  }

  main table td:has(img.thumb),
  main table th:has(img.thumb){
    min-width:116px !important;
    max-width:128px !important;
    text-align:center !important;
  }
}

@media (max-width: 420px){
  main table td.actions-cell,
  main table th.actions-cell,
  main table td.table-action-cell,
  main table th.table-action-cell,
  main table td.actions,
  main table th.actions,
  main table td.backup-actions,
  main table td:has(.table-actions),
  main table th:has(.table-actions),
  main table td:has(> a.btn),
  main table td:has(> button),
  main table td:has(> form button),
  main table td:has(> .inline-form button){
    min-width:220px !important;
    width:220px !important;
    max-width:245px !important;
  }

  main table .table-actions,
  main table .table-action-group{
    min-width:200px !important;
    max-width:225px !important;
  }

  main table img.thumb,
  main table .thumb{
    width:88px !important;
    height:88px !important;
    max-width:88px !important;
    min-width:88px !important;
  }
}

@media (max-width: 620px){
  
  .product-image{
    height:360px !important;
  }

  .detail-wrap{
    width:calc(100% - 20px) !important;
    gap:18px !important;
    padding-top:12px !important;
  }

  .detail-photo{
    border-radius:24px !important;
  }

  .detail-photo img{
    width:100% !important;
    height:min(70vh,620px) !important;
    min-height:520px !important;
    object-fit:contain !important;
    background:#fff !important;
  }

  .detail-placeholder{
    min-height:520px !important;
    height:min(70vh,620px) !important;
  }
}

@media (max-width: 390px){
  .product-image{
    height:330px !important;
  }

  .detail-photo img,
  .detail-placeholder{
    min-height:470px !important;
    height:min(68vh,560px) !important;
  }
}

main table td.table-action-cell > a.small:not(.btn),
main table td.actions-cell > a.small:not(.btn),
main table td.actions > a.small:not(.btn){
  border:1px solid #0e454b !important;
  border-radius:7px !important;
  background:linear-gradient(#2f7a7e,#155e63) !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:inset 0 1px rgba(255,255,255,.45),0 1px 2px rgba(0,0,0,.18) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.35) !important;
}

body.popup-open{overflow:hidden!important}
.admin-popup-backdrop{position:fixed;inset:0;z-index:30000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.62)}
.admin-popup-backdrop.open{display:flex}
.admin-popup-dialog{width:min(1180px,calc(100vw - 36px));height:min(860px,calc(100dvh - 36px));background:#fff;border-radius:16px;box-shadow:0 30px 110px rgba(0,0,0,.48);border:1px solid rgba(255,255,255,.28);display:flex;flex-direction:column;overflow:hidden;position:relative}
.admin-popup-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(#4b4b4b,#2f2f2f);color:#fff;border-bottom:3px solid #155e63;padding:10px 12px}
.admin-popup-title{font-size:18px;font-weight:900;line-height:1.15;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cce7e8;text-shadow:0 1px 1px #000}
.admin-popup-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-popup-actions .btn,.admin-popup-actions button{margin:0!important;min-height:38px!important;white-space:nowrap!important}.admin-popup-body{flex:1;min-height:0;background:#f3f3f3}.admin-popup-frame{display:block;width:100%;height:100%;border:0;background:#fff}.admin-popup-loading{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;background:#fff;border:1px solid #ddd;border-radius:999px;padding:12px 20px;font-weight:900;color:#333;box-shadow:0 10px 40px rgba(0,0,0,.22)}.admin-popup-backdrop.is-loading .admin-popup-loading{display:block}
@media(max-width:780px){.admin-popup-backdrop{padding:0;align-items:stretch;justify-content:stretch}.admin-popup-dialog{width:100vw;height:100dvh;border-radius:0}.admin-popup-header{align-items:stretch;flex-direction:column;padding:10px}.admin-popup-title{white-space:normal;font-size:16px}.admin-popup-actions{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%;gap:7px}.admin-popup-actions .btn,.admin-popup-actions button{width:100%!important;font-size:13px!important;padding:9px 8px!important;min-height:42px!important}.admin-popup-body{height:calc(100dvh - 106px)}}
@media(max-width:430px){.admin-popup-actions{grid-template-columns:1fr}.admin-popup-body{height:calc(100dvh - 178px)}}
@media print{.admin-popup-backdrop{display:none!important}}

.cliente-form-section-title{margin:4px 0 0;padding-bottom:8px;border-bottom:2px solid #e3e7ee}
.cliente-fieldset{min-width:0;margin:8px 0;padding:16px;border:1px solid #cfd7e3;border-radius:14px;background:#fbfcfe}
.cliente-fieldset legend{padding:0 9px;font-weight:900;font-size:18px;color:#172033}
.cliente-fieldset-grid{margin-top:8px}
.documento-autofill-box{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 14px;align-items:center;margin-bottom:12px;padding:12px;border:1px solid #8fc3c5;border-left:5px solid #155e63;border-radius:12px;background:#fff8ef}
.documento-autofill-box p{margin:0}
.documento-scan-status{grid-column:1/-1;min-height:20px;margin:0!important;font-weight:800}
.documento-scan-status.success{color:#087443}
.documento-scan-status.warning{color:#8a4b00}
.documento-autofilled{outline:3px solid rgba(16,185,129,.28)!important;background:#effdf6!important}
.domicilio-copy{display:flex!important;align-items:center;gap:9px;margin:0 0 8px;font-weight:850}
.domicilio-copy input{width:auto!important}
.domicilio-copied{background:#f1f5f9!important;color:#475569}
.address-group-start{border-left:4px solid #155e63!important;padding-left:10px!important}

.clienti-operativa .actions-cell-scheda-only{min-width:116px!important;width:116px!important;white-space:normal!important;text-align:center}
.clienti-operativa .actions-cell-scheda-only .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:104px!important;min-height:50px!important;padding:12px 9px!important;line-height:1.12!important;white-space:normal!important}

.documento-scan-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.78)}
.documento-scan-dialog{width:min(720px,100%);max-height:94vh;overflow:auto;border-radius:18px;background:#fff;color:#111;padding:16px;box-shadow:0 24px 70px rgba(0,0,0,.42)}
.documento-scan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:19px}
.documento-scan-close{border:0;border-radius:10px;background:#292929;color:#fff;padding:10px 14px;font-weight:850;cursor:pointer}
.documento-camera{position:relative;overflow:hidden;aspect-ratio:4/3;border-radius:14px;background:#111}
.documento-camera video{display:block;width:100%;height:100%;object-fit:cover;transform:none!important}
.documento-camera-frame{position:absolute;left:7%;right:7%;top:29%;height:42%;border:4px solid #2f7a7e;border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.18);pointer-events:none}
.documento-camera-status{margin:10px 0;padding:10px;border-radius:10px;background:#f3f4f6;font-weight:750}
.documento-camera-status.error{background:#fee2e2;color:#991b1b}
.documento-scan-actions{display:flex;justify-content:flex-end;margin-top:9px}
.documento-manual-label{display:block;margin-top:10px;font-weight:800}
.documento-manual-label textarea{width:100%;margin-top:6px}
.documento-manual-use{margin-top:8px}

@media(max-width:700px){
  .documento-autofill-box{grid-template-columns:1fr}
  .documento-autofill-box .btn{width:100%}
  .documento-scan-overlay{padding:8px;align-items:flex-start}
  .documento-scan-dialog{max-height:98vh;border-radius:14px;padding:12px}
  .documento-camera{aspect-ratio:3/4}
  .cliente-fieldset{padding:12px}
}

.documento-autofill-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.documento-autofill-actions .btn{min-height:46px}
.documento-scan-status.processing{color:#1d4ed8}
.documento-camera-help{margin:8px 0;padding:10px 12px;border-radius:10px;background:#fff7df;color:#5f3b00;font-weight:750;line-height:1.35}
.documento-camera-status.warning{background:#fff7df;color:#8a4b00}
.documento-camera-status.success{background:#eafaf1;color:#08653b}
.documento-camera-status.processing{background:#eaf2ff;color:#164b93}
.documento-camera-ocr:disabled,.js-cliente-documento-ocr:disabled{opacity:.62;cursor:wait}
@media(max-width:700px){
  .documento-autofill-actions{display:grid;grid-template-columns:1fr}
  .documento-autofill-actions .btn{width:100%}
  .documento-scan-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .documento-scan-actions .btn{width:100%}
}

.nuovo-cliente-page{align-items:start}
.nuovo-cliente-page>.panel{margin:0}
.documento-guidato{border:2px solid #155e63;background:#f2f9f9}
.documento-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}
.documento-step-card{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border:1px solid #d6dce5;border-radius:14px;background:#fff}
.documento-step-card h3,.documento-step-card p{margin:0}
.documento-step-card input[type=file]{width:100%;padding:10px;border:1px dashed #9aa6b5;border-radius:10px;background:#f8fafc}
.documento-step-card .btn{margin-top:auto;min-height:48px}
.step-number{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1f2937;color:#fff;font-weight:900}
.documento-preview{display:block;width:100%;max-height:220px;object-fit:contain;border:1px solid #cbd5e1;border-radius:10px;background:#111}
.documento-review{margin-top:12px;padding:14px;border:1px solid #cbd5e1;border-radius:12px;background:#fff}
.documento-review h3{margin:0 0 10px}
.documento-review-groups{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.documento-review ul{margin:8px 0 0;padding-left:20px}
.documento-review li{margin:5px 0}
.documento-review li.ok{color:#087443}
.documento-review li.missing{color:#8a4b00}
.documento-privacy-note{margin-bottom:0}
.nuovo-cliente-actions{position:sticky;bottom:0;z-index:20;padding:12px;border-top:1px solid #d6dce5;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}
.clienti-operativa-leggera th,.clienti-operativa-leggera td{vertical-align:middle}
.clienti-table-wrap-leggera{max-height:none}
.scheda-cliente-compact{min-width:110px!important;min-height:50px!important;padding:12px 10px!important}
.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dashboard-light .action-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}

@media(max-width:900px){
  .documento-step-grid{grid-template-columns:1fr}
  .documento-review-groups{grid-template-columns:1fr}
  .nuovo-cliente-actions{margin-left:-8px;margin-right:-8px}
}

.documento-mrz-card{border:2px solid var(--accent,#2855c5);}
.documento-mrz-preview{max-height:260px;object-fit:contain;background:#111;}
.documento-retro-completo{margin-top:14px;text-align:left;}
.documento-retro-completo summary{cursor:pointer;font-weight:700;margin-bottom:10px;}

.documento-step-grid-guidato{grid-template-columns:repeat(2,minmax(0,1fr))}
.documento-save-choice{display:flex!important;align-items:flex-start;gap:12px;margin:12px 0 4px;padding:14px;border:2px solid #0f766e;border-radius:12px;background:#ecfdf5;font-weight:700}
.documento-save-choice input{width:auto!important;margin-top:3px}
.documento-save-choice span{display:grid;gap:4px}
.documento-save-choice small{font-weight:500;color:#475569;line-height:1.35}
.documento-guide-overlay{position:fixed;inset:0;z-index:120000;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(0,0,0,.88)}
.documento-guide-dialog{width:min(760px,100%);max-height:98vh;overflow:auto;padding:14px;border-radius:18px;background:#fff;color:#111;box-shadow:0 20px 70px rgba(0,0,0,.55)}
.documento-guide-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:19px}
.documento-guide-close{border:0;border-radius:10px;background:#222;color:#fff;padding:10px 13px;font-weight:800}
.documento-guide-camera{position:relative;overflow:hidden;aspect-ratio:4/3;border-radius:14px;background:#111}
.documento-guide-camera video{width:100%;height:100%;object-fit:cover;display:block;transform:none!important}
.documento-guide-mask{position:absolute;inset:0;pointer-events:none}
.documento-guide-box{position:absolute;border:4px solid #2f7a7e;border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.42)}
.documento-guide-address .documento-guide-box{left:5%;right:5%;top:8%;height:58%}
.documento-guide-mrz .documento-guide-box{left:6%;right:6%;top:63%;height:27%;border-radius:8px}
.documento-guide-full .documento-guide-box{left:4%;right:4%;top:8%;height:84%}
.documento-guide-help,.documento-guide-status{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#fff7df;font-weight:750;line-height:1.35}
.documento-guide-status{background:#eef2ff;color:#1e3a8a}
.documento-guide-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}
.documento-guide-actions .btn{min-height:48px}
@media(max-width:900px){.documento-step-grid-guidato{grid-template-columns:1fr}}
@media(max-width:700px){
 .documento-guide-overlay{padding:6px;align-items:flex-start}
 .documento-guide-dialog{padding:10px;border-radius:12px}
 .documento-guide-camera{aspect-ratio:3/4}
 .documento-guide-actions{display:grid;grid-template-columns:1fr}
 .documento-guide-actions .btn{width:100%}
 .documento-guide-address .documento-guide-box{left:5%;right:5%;top:14%;height:54%}
 .documento-guide-mrz .documento-guide-box{left:5%;right:5%;top:66%;height:22%}
}

.documento-easy-flow{border:3px solid #155e63;background:#f7fbfb;padding:18px}
.documento-easy-flow [hidden]{display:none!important}
.documento-easy-heading{display:flex;align-items:flex-start;gap:14px}
.documento-easy-heading h2,.documento-easy-heading p{margin:0}
.documento-easy-heading p{margin-top:5px;font-size:17px;line-height:1.4}
.documento-easy-number{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#111827;color:#fff;font-size:24px;font-weight:950}
.documento-easy-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}
.documento-easy-progress-step{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:9px;border:2px solid #d7dde7;border-radius:12px;background:#fff;color:#64748b}
.documento-easy-progress-step span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e2e8f0;color:#475569;font-weight:900}
.documento-easy-progress-step.active{border-color:#155e63;background:#edf7f7;color:#0f4f53}
.documento-easy-progress-step.active span{background:#155e63;color:#111}
.documento-easy-progress-step.done{border-color:#16a34a;background:#effdf4;color:#166534}
.documento-easy-progress-step.done span{background:#16a34a;color:#fff}
.documento-easy-progress-step.done span::after{content:'✓';font-size:18px}
.documento-easy-progress-step.done span{font-size:0}
.documento-easy-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);gap:16px;align-items:stretch}
.documento-easy-instruction{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:260px;padding:20px;border:2px solid #d6dce5;border-radius:16px;background:#fff}
.documento-easy-instruction h3{margin:6px 0;font-size:25px}
.documento-easy-instruction p{margin:0 0 16px;font-size:17px;line-height:1.45}
.documento-easy-icon{font-size:50px;line-height:1}
.documento-easy-start{width:100%;min-height:64px;font-size:20px;font-weight:950;letter-spacing:.02em}
.documento-easy-retry{width:100%;min-height:52px;margin-top:9px;font-weight:850}
.documento-easy-preview-wrap{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:10px;border:2px solid #d6dce5;border-radius:16px;background:#111}
.documento-easy-preview{display:block;width:100%;max-height:330px;object-fit:contain;border-radius:10px;background:#111}
.documento-easy-preview-caption{margin:8px 0 0;color:#fff;text-align:center;font-size:14px}
.documento-easy-working{display:flex;align-items:center;gap:14px;margin:15px 0 8px;padding:15px;border:2px solid #2563eb;border-radius:14px;background:#eff6ff;color:#1e3a8a}
.documento-easy-working b{font-size:18px}.documento-easy-working p{margin:3px 0 0}
.documento-easy-spinner{flex:0 0 34px;width:34px;height:34px;border:5px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:documentoEasySpin .8s linear infinite}
@keyframes documentoEasySpin{to{transform:rotate(360deg)}}
.documento-easy-flow .documento-scan-status{margin:14px 0 0!important;padding:13px 15px;border-radius:12px;background:#f1f5f9;font-size:17px;line-height:1.4}
.documento-easy-flow .documento-scan-status.success{background:#ecfdf3;border:2px solid #16a34a;color:#166534}
.documento-easy-flow .documento-scan-status.warning{background:#eef8f8;border:2px solid #155e63;color:#0f4f53}
.documento-easy-flow .documento-scan-status.processing{background:#eff6ff;border:2px solid #2563eb;color:#1e3a8a}
.documento-easy-flow:not(.easy-has-result) .documento-review{display:none}
.documento-easy-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.documento-easy-actions .btn{min-height:54px;padding:12px 16px;font-weight:900}
.documento-easy-actions [data-easy-continue]{flex:1 1 100%;font-size:18px}
.documento-save-choice-compact{margin-top:16px;background:#f8fafc;border-color:#94a3b8}
.documento-easy-alternative{margin-top:14px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:12px;background:#fff}
.documento-easy-alternative summary{cursor:pointer;font-weight:850;color:#334155}

.documento-easy-camera-overlay{position:fixed;inset:0;z-index:140000;display:flex;align-items:center;justify-content:center;padding:10px;background:rgba(0,0,0,.92)}
.documento-easy-camera-dialog{width:min(820px,100%);max-height:98vh;overflow:auto;padding:14px;border-radius:18px;background:#fff;color:#111;box-shadow:0 24px 80px rgba(0,0,0,.6)}
.documento-easy-camera-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:20px}
.documento-easy-camera-close{border:0;border-radius:10px;background:#1f2937;color:#fff;padding:11px 14px;font-weight:850}
.documento-easy-camera-order{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff7df;font-size:17px;text-align:center}
.documento-easy-camera-view{position:relative;overflow:hidden;aspect-ratio:3/4;border-radius:14px;background:#111}
.documento-easy-camera-view video{display:block;width:100%;height:100%;object-fit:cover;transform:none!important}
.documento-easy-card-box{position:absolute;left:4%;right:4%;top:50%;aspect-ratio:1.586/1;transform:translateY(-50%);border:5px solid #2f7a7e;border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.48);pointer-events:none}
.documento-easy-card-box::before{content:'RETRO DELLA CARTA';position:absolute;left:50%;top:-38px;transform:translateX(-50%);padding:6px 10px;border-radius:8px;background:#2f7a7e;color:#111;font-weight:950;white-space:nowrap}
.documento-easy-zone{position:absolute;left:2%;right:2%;display:flex;align-items:center;justify-content:center;border:2px dashed rgba(255,255,255,.95);border-radius:8px;color:#fff;text-shadow:0 1px 3px #000;font-size:13px;font-weight:950;letter-spacing:.04em}
.documento-easy-zone-address{top:3%;height:43%;background:rgba(37,99,235,.12)}
.documento-easy-zone-mrz{bottom:2%;height:38%;background:rgba(22,163,74,.12)}
.documento-easy-camera-status{margin:10px 0 0;padding:11px;border-radius:10px;background:#eef2ff;color:#1e3a8a;text-align:center;font-weight:800}
.documento-easy-camera-actions{display:flex;gap:10px;margin-top:10px}
.documento-easy-camera-actions .btn{min-height:58px;font-size:18px;font-weight:950}
.documento-easy-camera-capture{flex:1}

@media(max-width:760px){
 .documento-easy-flow{padding:12px}
 .documento-easy-heading p{font-size:16px}
 .documento-easy-progress-step{display:grid;gap:4px;min-height:68px;text-align:center;font-size:13px}
 .documento-easy-main{grid-template-columns:1fr}
 .documento-easy-instruction{min-height:0;padding:16px}
 .documento-easy-instruction h3{font-size:22px}
 .documento-easy-preview{max-height:260px}

 
 .documento-easy-camera-overlay{
   align-items:flex-start;
   padding:4px;
   padding-top:max(4px,env(safe-area-inset-top));
   padding-bottom:max(4px,env(safe-area-inset-bottom));
   overflow:hidden;
 }
 .documento-easy-camera-dialog{
   width:100%;
   height:calc(100vh - 8px);
   height:calc(100dvh - 8px);
   max-height:calc(100vh - 8px);
   max-height:calc(100dvh - 8px);
   box-sizing:border-box;
   display:flex;
   flex-direction:column;
   overflow:hidden;
   padding:9px;
   border-radius:12px;
 }
 .documento-easy-camera-head,
 .documento-easy-camera-order,
 .documento-easy-camera-status,
 .documento-easy-camera-actions{flex:0 0 auto}
 .documento-easy-camera-view{
   flex:1 1 auto;
   min-height:220px;
   height:auto;
   max-height:none;
   aspect-ratio:auto;
 }
 .documento-easy-card-box{left:3%;right:3%;border-width:4px}
 .documento-easy-camera-status{margin-top:7px;padding:8px 10px}
 .documento-easy-camera-actions{
   display:grid;
   grid-template-columns:1fr;
   margin-top:7px;
   padding-bottom:max(2px,env(safe-area-inset-bottom));
   background:#fff;
 }
 .documento-easy-camera-actions .btn{min-height:54px}
 .documento-easy-camera-capture{order:1;display:block!important;width:100%}
 .documento-easy-camera-switch{order:2}
 .documento-easy-actions{display:grid;grid-template-columns:1fr}
 .documento-easy-actions .btn{width:100%}
}

@media(max-width:760px) and (max-height:760px){
 .documento-easy-camera-head{font-size:18px}
 .documento-easy-camera-close{padding:9px 12px}
 .documento-easy-camera-order{margin:7px 0;padding:7px 9px;font-size:15px;line-height:1.2}
 .documento-easy-camera-view{min-height:150px}
 .documento-easy-camera-status{font-size:14px;line-height:1.2}
 .documento-easy-camera-actions .btn{min-height:50px;font-size:17px}
}

@media (max-height:760px) and (pointer:coarse){
 .documento-easy-camera-overlay{
   align-items:flex-start;
   padding:4px;
   padding-top:max(4px,env(safe-area-inset-top));
   padding-bottom:max(4px,env(safe-area-inset-bottom));
   overflow:hidden;
 }
 .documento-easy-camera-dialog{
   width:min(920px,100%);
   height:calc(100vh - 8px);
   height:calc(100dvh - 8px);
   max-height:calc(100vh - 8px);
   max-height:calc(100dvh - 8px);
   box-sizing:border-box;
   display:flex;
   flex-direction:column;
   overflow:hidden;
   padding:8px;
   border-radius:12px;
 }
 .documento-easy-camera-head,
 .documento-easy-camera-order,
 .documento-easy-camera-status,
 .documento-easy-camera-actions{flex:0 0 auto}
 .documento-easy-camera-head{font-size:18px}
 .documento-easy-camera-close{padding:8px 11px}
 .documento-easy-camera-order{margin:6px 0;padding:6px 8px;font-size:14px;line-height:1.15}
 .documento-easy-camera-view{flex:1 1 0;min-height:120px;height:auto;max-height:none;aspect-ratio:auto}
 .documento-easy-camera-status{margin-top:5px;padding:6px 8px;font-size:13px;line-height:1.15}
 .documento-easy-camera-actions{
   display:grid;
   grid-template-columns:minmax(0,1fr) auto;
   gap:7px;
   margin-top:5px;
   padding-bottom:max(2px,env(safe-area-inset-bottom));
   background:#fff;
 }
 .documento-easy-camera-actions .btn{min-height:46px;font-size:16px}
 .documento-easy-camera-capture{display:block!important;width:100%}
}

@media (max-height:520px) and (pointer:coarse){
 .documento-easy-camera-view{min-height:90px}
 .documento-easy-camera-order{font-size:13px}
 .documento-easy-camera-status{font-size:12px}
 .documento-easy-camera-actions .btn{min-height:42px;font-size:15px}
}

.documento-cf-fast-card{margin-top:16px;border:2px solid #16a34a;background:#f0fdf4;padding:18px;border-radius:14px}
.documento-cf-fast-card h3{margin:0 0 8px;font-size:22px}
.documento-cf-fast-card .btn{min-height:58px;font-size:18px;font-weight:950;width:100%}

@media (max-width:760px) and (orientation:portrait){
 .documento-easy-camera-dialog{padding:6px}
 .documento-easy-camera-head{font-size:18px;line-height:1.15}
 .documento-easy-camera-close{padding:9px 11px}
 .documento-easy-camera-order{margin:6px 0;padding:7px 8px;font-size:14px;line-height:1.18}
 .documento-easy-camera-view{
   flex:0 0 auto;
   width:100%;
   height:auto;
   min-height:0;
   max-height:46dvh;
   aspect-ratio:1.20/1;
 }
 .documento-easy-card-box::before{top:-31px;padding:4px 8px;font-size:12px}
 .documento-easy-zone{font-size:12px}
 .documento-easy-camera-status{margin-top:6px;padding:7px 8px;font-size:13px;line-height:1.2}
 .documento-easy-camera-actions{margin-top:6px}
}

@media (max-width:430px) and (orientation:portrait){
 .documento-easy-camera-view{aspect-ratio:1.15/1;max-height:44dvh}
 .documento-easy-camera-order{font-size:13px}
}

.documento-easy-card-box{left:1.5%;right:1.5%}
@media(max-width:760px){.documento-easy-card-box{left:1%;right:1%}}

.dashboard-operativa{display:grid;gap:22px;margin:18px;max-width:1500px}
.dashboard-operativa h2{margin:2px 0 0;font-size:24px}
.dashboard-eyebrow{display:block;color:#0f4f53;font-size:12px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);align-items:center;gap:24px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#2f2f2f,#111);color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.16);border-bottom:5px solid var(--orange)}
.dashboard-hero h2{color:#fff;font-size:30px}.dashboard-hero p{margin:8px 0 0;color:#e5e7eb;font-size:16px;line-height:1.45}.dashboard-hero .dashboard-eyebrow{color:#cce7e8}
.dashboard-search{padding:16px;border-radius:14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18)}
.dashboard-search label{display:block;margin-bottom:8px;color:#fff;font-weight:900;font-size:15px}.dashboard-search>div{display:grid;grid-template-columns:1fr auto;gap:8px}
.dashboard-search input{min-width:0;height:52px;padding:0 14px;border:2px solid transparent;border-radius:10px;font-size:17px;background:#fff;color:#222}.dashboard-search input:focus{outline:none;border-color:var(--orange)}
.dashboard-search button{min-height:52px;padding:0 20px;border:0;border-radius:10px;background:var(--orange);color:#111;font-size:16px;font-weight:950;cursor:pointer}
.dashboard-section-heading,.dashboard-panel-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px}.dashboard-section-heading>small{max-width:420px;color:var(--muted);text-align:right}
.dashboard-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dashboard-action{display:flex;align-items:center;gap:14px;min-height:92px;padding:16px;border:1px solid #d8d8d8;border-radius:14px;background:linear-gradient(#fff,#f5f5f5);color:var(--ink);text-decoration:none;box-shadow:0 3px 10px rgba(0,0,0,.07);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.dashboard-action:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.12);border-color:#b8b8b8}.dashboard-action.primary{border-color:#70aaad;background:linear-gradient(#f2f9f9,#e2f1f1)}.dashboard-action.sale{border-color:#9ac77f;background:linear-gradient(#f8fff3,#eaf8df)}
.dashboard-action-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:14px;background:#333;color:#fff;font-size:28px;box-shadow:inset 0 -2px rgba(0,0,0,.18)}.dashboard-action.primary .dashboard-action-icon{background:var(--orange);color:#111}.dashboard-action.sale .dashboard-action-icon{background:var(--green)}
.dashboard-action strong,.dashboard-action small{display:block}.dashboard-action strong{font-size:18px;color:#222}.dashboard-action small{margin-top:4px;color:#686868;line-height:1.35}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.dashboard-kpi{display:flex;flex-direction:column;min-height:138px;padding:17px;border:1px solid #d8d8d8;border-radius:14px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 3px 10px rgba(0,0,0,.06);border-top:5px solid #555}.dashboard-kpi:hover{border-color:#999}.dashboard-kpi span{font-weight:850;color:#555}.dashboard-kpi b{margin:auto 0 4px;color:#222;font-size:32px;line-height:1}.dashboard-kpi small{color:#777}.dashboard-kpi.sales{border-top-color:var(--green)}.dashboard-kpi.sales b{font-size:27px}
.dashboard-lower-grid{display:grid;grid-template-columns:minmax(310px,.75fr) minmax(0,1.25fr);gap:18px;align-items:start}
.dashboard-panel{padding:18px;border:1px solid #d8d8d8;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.07)}
.dashboard-task-list{display:grid;gap:9px}.dashboard-task{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:72px;padding:13px 14px;border:1px solid #ddd;border-radius:12px;background:#f8f8f8;color:var(--ink);text-decoration:none}.dashboard-task:hover{border-color:#aaa;background:#fff}.dashboard-task span strong,.dashboard-task span small{display:block}.dashboard-task span strong{font-size:16px;color:#333}.dashboard-task span small{margin-top:3px;color:#777}.dashboard-task>b{display:grid;place-items:center;min-width:45px;height:45px;padding:0 10px;border-radius:12px;background:#e2e2e2;color:#444;font-size:20px}.dashboard-task.has-items{border-color:#8fc3c5;background:#f2f9f9}.dashboard-task.has-items>b{background:var(--orange);color:#111}
.dashboard-recent-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-recent-block{min-width:0}.dashboard-recent-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:2px solid #ececec}.dashboard-recent-title strong{font-size:17px;color:#333}.dashboard-recent-title a{color:#0f4f53;font-weight:850;text-decoration:none}
.dashboard-recent-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:59px;padding:9px 4px;border-bottom:1px solid #ededed;color:var(--ink);text-decoration:none}.dashboard-recent-row:hover{background:#faf7f2}.dashboard-recent-row b,.dashboard-recent-row small{display:block}.dashboard-recent-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333}.dashboard-recent-row small{margin-top:3px;color:#777;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-recent-row>span:first-child{min-width:0}.dashboard-recent-row>span:last-child{font-size:28px;color:#999}.dashboard-empty{padding:16px 0;color:#777}
@media(max-width:1200px){.dashboard-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-hero{grid-template-columns:1fr}.dashboard-lower-grid{grid-template-columns:1fr}.dashboard-section-heading{align-items:flex-start;flex-direction:column}.dashboard-section-heading>small{text-align:left}.dashboard-recent-columns{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-operativa{margin:12px;gap:18px}.dashboard-hero{padding:18px;border-radius:14px}.dashboard-hero h2{font-size:25px}.dashboard-search>div{grid-template-columns:1fr}.dashboard-search button{width:100%}.dashboard-action-grid,.dashboard-kpi-grid{grid-template-columns:1fr}.dashboard-action{min-height:82px}.dashboard-kpi{min-height:112px}.dashboard-kpi b{margin:14px 0 4px}.dashboard-operativa h2{font-size:21px}}

.dashboard-bookings-priority{padding:18px;border:2px solid #efaa56;border-radius:16px;background:linear-gradient(135deg,#fffaf1,#fff);box-shadow:0 5px 16px rgba(128,73,0,.08)}
.dashboard-bookings-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
.dashboard-bookings-summary{display:flex;align-items:center;gap:7px;white-space:nowrap}.dashboard-bookings-summary>b{display:grid;place-items:center;min-width:43px;height:43px;padding:0 10px;border-radius:12px;background:var(--orange);color:#111;font-size:20px}.dashboard-bookings-summary>span{font-weight:800;color:#666}.dashboard-bookings-summary>a{margin-left:8px;color:#0f4f53;font-weight:900;text-decoration:none}
.dashboard-bookings-list{display:grid;gap:8px}.dashboard-booking-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto 24px;align-items:center;gap:12px;min-height:74px;padding:8px 10px;border:1px solid #d3e8e8;border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.dashboard-booking-row:hover{border-color:#4f9296;transform:translateY(-1px);box-shadow:0 5px 12px rgba(0,0,0,.07)}
.dashboard-booking-thumb{display:grid;place-items:center;width:62px;height:56px;border-radius:9px;overflow:hidden;background:#f0f1f1;font-size:24px}.dashboard-booking-thumb img{width:100%;height:100%;object-fit:cover}.dashboard-booking-main,.dashboard-booking-meta{min-width:0}.dashboard-booking-main strong,.dashboard-booking-main small,.dashboard-booking-meta small{display:block}.dashboard-booking-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#222;font-size:16px}.dashboard-booking-main small{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#707070}.dashboard-booking-meta{text-align:right}.dashboard-booking-meta small{margin-top:5px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777}.dashboard-booking-state{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;text-transform:uppercase}.dashboard-booking-state.state-aperta{background:#fff0db;color:#9a5200}.dashboard-booking-state.state-contattato{background:#e7f1ff;color:#145b9a}.dashboard-booking-state.state-confermata{background:#e4f7e9;color:#21733a}.dashboard-booking-arrow{font-size:27px;color:#a46b2a}.dashboard-bookings-empty{padding:16px;border:1px dashed #dfc6a7;border-radius:11px;background:#fff;color:#6c6c6c;text-align:center}
@media(max-width:760px){.dashboard-bookings-head{align-items:flex-start;flex-direction:column}.dashboard-bookings-summary{width:100%;flex-wrap:wrap}.dashboard-bookings-summary>a{margin-left:auto}.dashboard-booking-row{grid-template-columns:54px minmax(0,1fr) 20px}.dashboard-booking-thumb{width:54px;height:50px}.dashboard-booking-meta{grid-column:2/3;text-align:left}.dashboard-booking-meta small{max-width:none}.dashboard-booking-arrow{grid-column:3;grid-row:1/3}}

@media (min-width:981px){
  body:has(.dashboard-operativa) .main{
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:224px!important;
  }
  .dashboard-operativa{
    width:auto;
    max-width:none;
    margin:18px;
  }
}

@media (min-width:1500px){
  .dashboard-operativa{gap:24px}
  .dashboard-hero{grid-template-columns:minmax(0,1.15fr) minmax(430px,.85fr)}
  .dashboard-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-lower-grid{grid-template-columns:minmax(360px,.7fr) minmax(0,1.3fr)}
}

.firma-tablet-panel{scroll-margin-top:18px}.firma-tablet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.firma-tablet-heading h2{margin:0 0 4px}.firma-tablet-badge{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border-radius:999px;font-weight:800;white-space:nowrap}.firma-tablet-badge.is-signed{background:#dcfce7;color:#166534}.firma-tablet-badge.is-empty{background:#f3f4f6;color:#4b5563}.firma-tablet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.firma-tablet-card{border:1px solid #d8dee8;border-radius:16px;padding:16px;background:#fff}.firma-tablet-card h3{margin:0 0 12px}.firma-tablet-preview,.firma-tablet-placeholder{height:132px;border:2px dashed #c7ced9;border-radius:12px;background:#fafafa;display:flex;align-items:center;justify-content:center;overflow:hidden}.firma-tablet-preview img{width:100%;height:100%;object-fit:contain;background:#fff}.firma-tablet-placeholder{color:#6b7280;font-weight:700}.firma-tablet-time{margin:8px 0 0;font-size:.9rem;color:#4b5563}.firma-tablet-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.firma-tablet-actions form{margin:0}.firma-tablet-note{margin:14px 0 0}
.firma-modal[hidden]{display:none!important}.firma-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px}.firma-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}.firma-modal-card{position:relative;width:min(980px,100%);max-height:96vh;overflow:auto;background:#f8fafc;border-radius:20px;padding:20px;box-shadow:0 30px 90px rgba(0,0,0,.45)}.firma-modal-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.firma-modal-top h2{font-size:clamp(1.55rem,4vw,2.4rem);margin:2px 0 0}.firma-modal-top small{font-size:1rem;font-weight:700;color:#4b5563}.firma-modal-close{width:48px;height:48px;border:0;border-radius:50%;font-size:34px;line-height:1;background:#e5e7eb;color:#111}.firma-modal-instruction{font-size:clamp(1.05rem,2.3vw,1.35rem);font-weight:800;margin:15px 0}.firma-canvas-wrap{position:relative;width:100%;height:clamp(260px,48vh,470px);border:4px solid #111;border-radius:16px;background:#fff;overflow:hidden;touch-action:none}.firma-canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.firma-baseline{position:absolute;left:8%;right:8%;bottom:20%;border-bottom:2px solid #94a3b8;text-align:right;color:#94a3b8;font-size:14px;pointer-events:none}.firma-confirm{display:flex!important;align-items:flex-start;gap:12px;font-size:1.05rem;font-weight:750;margin:14px 0}.firma-confirm input{width:25px;height:25px;flex:0 0 auto;margin-top:1px}.firma-modal-actions{display:grid;grid-template-columns:auto auto 1fr;gap:12px}.firma-modal-actions .btn{min-height:54px;font-size:1.05rem}.firma-modal-actions .success{justify-self:stretch}.firma-body-locked{overflow:hidden!important}
@media(max-width:720px){.firma-tablet-heading{display:block}.firma-tablet-badge{margin-top:8px}.firma-tablet-grid{grid-template-columns:1fr}.firma-modal{padding:0}.firma-modal-card{width:100%;height:100%;max-height:none;border-radius:0;padding:14px;display:flex;flex-direction:column}.firma-modal-card form{display:flex;flex:1;min-height:0;flex-direction:column}.firma-canvas-wrap{height:auto;min-height:260px;flex:1}.firma-modal-actions{grid-template-columns:1fr 1fr}.firma-modal-actions .success{grid-column:1/-1}.firma-modal-top small{font-size:.9rem}}
@media(orientation:landscape) and (max-height:650px){.firma-modal-card{padding:10px}.firma-modal-instruction{margin:7px 0}.firma-canvas-wrap{height:54vh;min-height:210px}.firma-confirm{margin:7px 0}.firma-modal-actions .btn{min-height:46px}}

.consent-text-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:100%;
  margin-top:14px;
}
.consent-text-item{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border:1px solid #d9e0e5;
  border-radius:10px;
  background:#fbfcfd;
}
.consent-text-title{
  min-width:0;
  color:#202b36;
  font-weight:850;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.consent-text-item .consent-open{
  width:auto;
  min-width:104px;
  min-height:38px;
  margin:0;
  padding:8px 12px;
  border-radius:8px;
  white-space:nowrap;
  font-size:13px;
  line-height:1.1;
}
@media(max-width:1280px){.consent-text-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
  .consent-text-grid{grid-template-columns:1fr}
  .consent-text-item{grid-template-columns:1fr;gap:8px}
  .consent-text-item .consent-open{width:100%;min-width:0}
}

.nuovo-cliente-top-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);
  gap:16px;
  align-items:start;
}
.nuovo-cliente-top-grid>.panel{margin:0;min-width:0}
.nuovo-cliente-top-grid .documento-easy-flow{padding:16px;border-width:2px}
.documento-acquisition-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
.documento-action-card{
  min-height:230px!important;
  padding:16px!important;
  border:1px solid #d8dee8!important;
  border-radius:14px!important;
  background:#fff!important;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
}
.documento-action-card h3{font-size:21px!important;margin:6px 0!important}
.documento-action-card p{font-size:15px!important;line-height:1.35!important;margin:0 0 12px!important}
.documento-action-card .documento-easy-icon{font-size:38px}
.documento-read-button{
  width:auto!important;
  min-height:40px!important;
  margin-top:auto;
  padding:8px 14px!important;
  background:#155e63!important;
  border-color:#0f4549!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:0!important;
  box-shadow:0 3px 0 #0b3538!important;
}
.documento-read-button:hover{background:#2f7a7e!important}
.documento-easy-preview-wrap{margin-top:12px;max-height:340px}
.documento-easy-preview{max-height:280px}
.nuovo-cliente-consensi{position:sticky;top:12px}
.nuovo-cliente-consensi h2{margin-top:0}
.nuovo-cliente-consensi .quote-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.consent-box-compact{padding:0;border:0;background:transparent}
.consent-box-compact .consent-checks{display:grid;grid-template-columns:1fr;gap:8px}
.consent-box-compact .consent-checks>label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  padding:7px 8px;
  border:1px solid #d9dee7;
  border-radius:9px;
  background:#fff;
}
.consent-check-label{display:flex;align-items:center;gap:7px;min-width:0;font-weight:800}
.consent-box-compact .linklike,
.nuovo-cliente-consensi .consent-open{
  flex:0 0 auto;
  min-height:30px!important;
  padding:5px 9px!important;
  border:1px solid #0f4549!important;
  border-radius:7px!important;
  background:#155e63!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 2px 0 #0b3538!important;
}
.nuovo-cliente-consensi textarea{min-height:84px}

.compact-address-fieldset{padding-top:14px!important;padding-bottom:14px!important}
.compact-address-fieldset .domicilio-copy{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0 0 10px}
.address-inline-grid{
  display:grid;
  grid-template-columns:minmax(240px,2.1fr) minmax(78px,.55fr) minmax(180px,1.35fr) minmax(90px,.65fr) minmax(78px,.55fr) minmax(110px,.8fr);
  gap:10px;
  align-items:end;
}
.address-inline-grid label{min-width:0;margin:0}
.address-inline-grid input{min-height:42px}
.address-number input,.address-cap input,.address-province input{text-align:left}

.cliente-operativo .cliente-main{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);
  gap:16px;
  align-items:start;
}
.cliente-operativo .cliente-card-operativa{grid-column:1;grid-row:1;min-width:0}
.cliente-operativo .mandati-cliente-panel{grid-column:2;grid-row:1;min-width:0;margin:0}
.cliente-operativo .articoli-cliente-panel{grid-column:2;grid-row:2;min-width:0;margin:0}
.cliente-operativo #pannello-accesso-web{grid-column:1;grid-row:2;min-width:0;margin:0}
.cliente-operativo #modifica-cliente{grid-column:1/-1;grid-row:3;margin:0}
.cliente-operativo #gestione-cliente{grid-column:1/-1;grid-row:4;margin:0}
.mandati-cliente-panel .table-wrap,.articoli-cliente-panel .table-wrap{max-height:410px;overflow:auto}
.mandati-cliente-panel table,.articoli-cliente-panel table{font-size:13px}
.mandati-cliente-panel th,.mandati-cliente-panel td,.articoli-cliente-panel th,.articoli-cliente-panel td{padding:8px}

.mandato-workspace{
  display:grid;
  grid-template-columns:minmax(360px,.72fr) minmax(560px,1.28fr);
  gap:16px;
  align-items:start;
}
.mandato-workspace>.panel{margin:0;min-width:0}
.firma-tablet-stack{grid-template-columns:1fr!important;gap:12px!important}
.firma-tablet-stack .firma-tablet-card{padding:13px}
.firma-tablet-stack .firma-tablet-preview,.firma-tablet-stack .firma-tablet-placeholder{height:112px}
.mandato-articoli-panel .table-wrap{max-height:590px;overflow:auto}
.mandato-articoli-panel table{min-width:760px;font-size:13px}
.mandato-articoli-panel th,.mandato-articoli-panel td{padding:8px}
.mandato-add-article-panel{margin-top:16px}
.mandate-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:flex-start}

.smtp-autofill-option{align-self:stretch}
.smtp-autofill-option small{display:block;margin-top:5px;line-height:1.3}

@media(max-width:1500px){
  .nuovo-cliente-top-grid{grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr)}
  .cliente-operativo .cliente-main{grid-template-columns:1fr}
  .cliente-operativo .cliente-card-operativa,
  .cliente-operativo .mandati-cliente-panel,
  .cliente-operativo .articoli-cliente-panel,
  .cliente-operativo #pannello-accesso-web,
  .cliente-operativo #modifica-cliente,
  .cliente-operativo #gestione-cliente{grid-column:1;grid-row:auto}
  .mandato-workspace{grid-template-columns:minmax(330px,.82fr) minmax(480px,1.18fr)}
}
@media(max-width:1100px){
  .nuovo-cliente-top-grid{grid-template-columns:1fr}
  .nuovo-cliente-consensi{position:static}
  .address-inline-grid{grid-template-columns:2fr .65fr 1.5fr .7fr .65fr 1fr}
  .mandato-workspace{grid-template-columns:1fr}
}
@media(max-width:760px){
  .documento-acquisition-grid{grid-template-columns:1fr}
  .documento-action-card{min-height:0!important}
  .documento-read-button{width:100%!important}
  .nuovo-cliente-consensi .quote-grid{grid-template-columns:1fr}
  .address-inline-grid{grid-template-columns:2fr .7fr}
  .address-inline-grid label:not(.address-street):not(.address-number){grid-column:span 1}
  .address-inline-grid .address-street{grid-column:1}
  .address-inline-grid .address-number{grid-column:2}
  .address-inline-grid .address-country{grid-column:1/-1}
  .mandate-head-actions{justify-content:flex-start}
  .mandate-head-actions .btn{width:100%;text-align:center}
}

.consent-status-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:8px 0 6px;
}
.consent-status{
  display:inline-flex;
  align-items:center;
  overflow:hidden;
  border:1px solid #d9dde3;
  border-radius:999px;
  background:#fff;
  min-height:28px;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
}
.consent-status-label{padding:6px 8px;color:#222}
.consent-status-value{
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  padding:5px 8px;
  color:#fff;
  font-weight:950;
}
.consent-status.is-yes{border-color:#9bc9a7;background:#f4fbf5}
.consent-status.is-yes .consent-status-value{background:#238442}
.consent-status.is-no{border-color:#e5b4b4;background:#fff7f7}
.consent-status.is-no .consent-status-value{background:#b83232}
@media(max-width:760px){
  .consent-status-list{display:grid;grid-template-columns:1fr;gap:5px}
  .consent-status{width:100%;justify-content:space-between}
}

.mandato-workspace{
  grid-template-columns:minmax(0,1fr)!important;
  width:100%;
}
.mandato-workspace>.firma-tablet-panel,
.mandato-workspace>.mandato-articoli-panel{
  grid-column:1/-1!important;
  width:100%;
  max-width:none!important;
  min-width:0!important;
}
.mandato-articoli-panel .mandato-articoli-table{
  width:100%;
  max-width:100%;
  overflow-x:auto;
}
.mandato-articoli-panel .mandato-articoli-table table{
  width:100%;
  min-width:1050px;
  table-layout:auto;
}
.mandato-articoli-panel .mandato-articoli-table th:nth-child(5),
.mandato-articoli-panel .mandato-articoli-table td:nth-child(5){
  min-width:240px;
}
@media(max-width:760px){
  .mandato-articoli-panel .mandato-articoli-table table{min-width:920px}
}

.admin-dialog.articolo-scheda-dialog{
  width:min(1180px,96vw)!important;
  max-width:1180px!important;
  height:min(860px,92vh)!important;
  max-height:92vh!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 22px 60px rgba(15,30,50,.28)!important;
  grid-template-columns:none!important;
}
.admin-dialog.articolo-scheda-dialog::backdrop{background:rgba(8,20,36,.58)!important}
.admin-dialog.articolo-scheda-dialog .article-popup-heading{
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  padding:8px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  border-bottom:1px solid #dce4ee!important;
  background:#f8fafc!important;
}
.admin-dialog.articolo-scheda-dialog iframe#articoloSchedaFrame{
  display:block!important;
  width:100%!important;
  min-width:100%!important;
  max-width:none!important;
  height:calc(100% - 54px)!important;
  min-height:0!important;
  border:0!important;
  margin:0!important;
  padding:0!important;
  background:#f4f7fb!important;
}
@media(max-width:760px){
  .admin-dialog.articolo-scheda-dialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;margin:0!important}
  .admin-dialog.articolo-scheda-dialog iframe#articoloSchedaFrame{height:calc(100dvh - 54px)!important}
}

.cliente-operativo,.cliente-operativo *{box-sizing:border-box}
.cliente-operativo .cliente-anagrafica-completa,.cliente-operativo .field-line{min-width:0!important}
.cliente-operativo .field-line b,.cliente-operativo .field-line strong,.cliente-operativo td,.cliente-operativo th{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.cliente-operativo .field-line b{display:block;white-space:normal!important;overflow:hidden;text-overflow:ellipsis}
.cliente-operativo .cliente-anagrafica-completa .field-line:nth-child(7) b{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(12px,1.1vw,16px);letter-spacing:.01em}
.cliente-side-actions-legacy{display:none!important}
.cliente-portobello-actions{margin:0 0 16px!important;padding:16px!important}
.cliente-portobello-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.cliente-portobello-head h2{margin:0 0 4px}.cliente-portobello-head p{margin:0}
.cliente-portobello-id{display:flex;flex-direction:column;align-items:flex-end;min-width:170px}.cliente-portobello-id b{font-size:20px}.cliente-portobello-id span{font-weight:700;overflow-wrap:anywhere;text-align:right}
.cliente-portobello-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cliente-portobello-group{min-width:0;border:1px solid #d6e0ec;border-radius:13px;padding:12px;background:#f8fafc}
.cliente-portobello-group h3{font-size:14px;margin:0 0 9px;color:#263858}
.pb-action{display:flex;width:100%;min-width:0;min-height:58px;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;margin:7px 0;padding:10px 12px;border:1px solid #cbd7e6;border-radius:10px;background:#fff;color:#17233c;text-decoration:none;text-align:left;cursor:pointer;font:inherit}
.pb-action b{font-size:14px}.pb-action span{font-size:12px;color:#60708a;overflow-wrap:anywhere}
.pb-action.is-primary{border-color:#2d7180;background:#edf7f8}.pb-action.is-invoice{border-color:#1d5b87;background:#203d64;color:#fff}.pb-action.is-invoice span{color:#dfeaf5}.pb-action:disabled{opacity:.5;cursor:not-allowed}
.fattura-venduto-dialog{width:min(520px,calc(100vw - 24px));border:0;border-radius:16px;padding:0;box-shadow:0 24px 70px rgba(14,27,49,.3);color:#17233c}
.fattura-venduto-dialog::backdrop{background:rgba(13,24,42,.58)}
.fattura-venduto-dialog form{padding:20px}.invoice-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.invoice-dialog-head>div{display:flex;flex-direction:column}.invoice-dialog-head b{font-size:19px}.invoice-dialog-head span{font-size:13px;color:#65748b}.dialog-close{width:38px;height:38px;border:0;border-radius:50%;font-size:25px;line-height:1;background:#1e293b;color:#fff;cursor:pointer}.fattura-venduto-dialog label{display:block;font-weight:800}.fattura-venduto-dialog input[type=date]{width:100%;margin-top:7px}.invoice-dialog-summary{margin:15px 0;padding:12px;border-radius:10px;background:#eef4f8}.invoice-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.commercialista-report-actions,.commercialista-report-form{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.commercialista-report-form label{min-width:150px;margin:0}
body.embedded-admin{padding:0!important}body.embedded-admin .main{margin:0!important;padding:10px!important;width:100%!important;max-width:100%!important;min-height:0!important}body.embedded-admin .main>section:first-of-type{margin-top:0!important}body.embedded-admin .cliente-layout,body.embedded-admin .cliente-main{width:100%!important;max-width:100%!important}
@media(max-width:1100px){.cliente-portobello-grid{grid-template-columns:1fr 1fr}.cliente-portobello-group:last-child{grid-column:1/-1}}
@media(max-width:700px){.cliente-portobello-head{display:block}.cliente-portobello-id{align-items:flex-start;margin-top:10px}.cliente-portobello-id span{text-align:left}.cliente-portobello-grid{grid-template-columns:1fr}.cliente-portobello-group:last-child{grid-column:auto}.commercialista-report-actions,.commercialista-report-form{display:grid;grid-template-columns:1fr;width:100%}.commercialista-report-form label,.commercialista-report-form .btn,.commercialista-report-actions>.btn{width:100%}.invoice-dialog-actions .btn{flex:1}}

.cliente-operativo .cliente-anagrafica-completa{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  gap:10px!important;
  width:100%!important;
}
.cliente-operativo .field-line{min-height:88px!important;height:auto!important;padding:12px!important}
.cliente-operativo .field-line b,.cliente-operativo .field-line strong{
  word-break:normal!important;
  overflow-wrap:break-word!important;
  line-height:1.18!important;
  font-size:clamp(15px,1.35vw,20px)!important;
}
.cliente-operativo .field-line.cf-line b,
.cliente-operativo .field-line.email-line b{overflow-wrap:anywhere!important;word-break:break-word!important;font-size:clamp(13px,1.15vw,18px)!important}
.cliente-operativo .field-line.large,.cliente-operativo .email-line{grid-column:span 2}
.cliente-operativo .access-web-inline{grid-column:span 2;min-width:0}
.cliente-operativo .table-wrap{width:100%;max-width:100%;overflow-x:auto!important}
.cliente-operativo .vendite-cliente-panel table{min-width:1080px}
.cliente-operativo .mandati-cliente-panel table{min-width:920px}
.cliente-sale-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px!important;min-width:190px}
.cliente-sale-actions form{margin:0!important;display:inline-flex!important}
.cliente-sale-actions .btn{width:auto!important;min-width:82px!important}
.billing-flow-note{max-width:1100px;line-height:1.45}

body.embedded-admin .main{padding:12px!important;min-height:100%!important}
body.embedded-admin .main>h1{margin:0 0 10px!important}
body.embedded-admin .main>section{width:100%!important;max-width:none!important}
body.embedded-admin .mandate-head>div{flex:1 1 360px!important;min-width:0!important}
body.embedded-admin #articolo-edit-form.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
body.embedded-admin .cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}

@media(max-width:760px){
  .cliente-operativo .cliente-anagrafica-completa{grid-template-columns:1fr!important}
  .cliente-operativo .field-line.large,.cliente-operativo .email-line,.cliente-operativo .access-web-inline{grid-column:1!important}
  .cliente-operativo .field-line{min-height:0!important}
  body.embedded-admin #articolo-edit-form.grid{grid-template-columns:1fr!important}
}

.cliente-operativo.cliente-scheda-completa .cliente-layout{
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.cliente-operativo.cliente-scheda-completa .cliente-main{
  grid-column:1!important;
  grid-row:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
.cliente-operativo.cliente-scheda-completa .cliente-side-actions-legacy{
  display:none!important;
}
@media(max-width:980px){
  .cliente-operativo.cliente-scheda-completa .cliente-layout,
  .cliente-operativo.cliente-scheda-completa .cliente-main{width:100%!important;max-width:100%!important}
}

.server-pagination{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:10px;
  row-gap:6px;
  margin:8px 0 10px!important;
  padding:6px 8px;
  border:1px solid #d9dde4;
  border-radius:8px;
  background:#f8f9fb;
  font-size:12px;
}
.server-pagination .pagination-info{
  margin:0!important;
  font-size:12px;
  white-space:nowrap;
}
.server-pagination>a,
.server-pagination>span.btn{
  min-width:28px!important;
  min-height:28px!important;
  padding:4px 7px!important;
  font-size:11px!important;
  line-height:18px!important;
  text-align:center;
}
.server-pagination .pagination-dots{padding:0 2px;font-size:11px}
.server-pagination .per-page-form{
  grid-column:3;
  grid-row:1;
  margin:0!important;
  white-space:nowrap;
}
.server-pagination .per-page-form label{display:flex;align-items:center;gap:5px;font-size:11px}
.server-pagination select{min-height:28px!important;padding:3px 22px 3px 6px!important;font-size:11px}

body:has(.scadenze-operativa) .main{max-width:none}
.scadenze-operativa .server-pagination{max-width:760px}
.scadenze-operativa .actions-cell{width:120px;min-width:120px}
.scadenze-operativa .actions-cell .inline-form{display:inline-block;margin:2px 2px 2px 0}
.scadenze-operativa .actions-cell .btn,
.scadenze-operativa .actions-cell button{width:auto!important;min-width:0!important;padding:5px 8px!important;font-size:11px!important}

.mandato-consensi-compact{padding:10px 12px!important}
.mandato-consensi-compact h3{margin:0 0 3px;font-size:16px}
.mandato-consensi-compact>p{margin:0 0 7px;font-size:11px;line-height:1.25}
.mandato-consensi-compact .consent-checks{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(125px,1fr));
  gap:5px!important;
}
.mandato-consensi-compact .consent-checks>label{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:5px;
  min-height:34px!important;
  margin:0!important;
  padding:4px 6px!important;
  border:1px solid #e1e4e9;
  border-radius:7px;
  background:#fff;
  font-size:11px!important;
  line-height:1.12;
}
.mandato-consensi-compact .consent-checks>label:first-child{grid-column:span 2}
.mandato-consensi-compact input[type=checkbox]{width:15px!important;height:15px!important;margin:0}
.mandato-consensi-compact .consent-open,
.mandato-consensi-compact .linklike{
  min-height:25px!important;
  padding:3px 6px!important;
  border-radius:5px!important;
  font-size:10px!important;
  line-height:16px!important;
}
.mandato-consensi-compact>a.btn{margin-top:7px;min-height:28px!important;padding:4px 8px!important;font-size:11px!important}

.documento-easy-flow-compact,
.nuovo-cliente-consensi-compact{padding:11px 12px!important}
.documento-easy-flow-compact .documento-easy-heading{gap:9px;margin-bottom:7px}
.documento-easy-flow-compact .documento-easy-number{width:38px!important;height:38px!important;font-size:21px!important}
.documento-easy-flow-compact .documento-easy-heading h2{font-size:19px!important;margin:0 0 2px!important}
.documento-easy-flow-compact .documento-easy-heading p{font-size:12px!important;margin:0!important}
.documento-easy-flow-compact .documento-easy-progress{margin:7px 0!important;gap:6px!important}
.documento-easy-flow-compact .documento-easy-progress-step{min-height:34px!important;padding:4px 7px!important;font-size:11px!important}
.documento-easy-flow-compact .documento-action-card{min-height:158px!important;padding:10px!important}
.documento-easy-flow-compact .documento-easy-icon{font-size:25px!important}
.documento-easy-flow-compact .documento-action-card h3{font-size:16px!important;margin:3px 0!important}
.documento-easy-flow-compact .documento-action-card p{font-size:11px!important;line-height:1.25!important;margin-bottom:7px!important}
.documento-easy-flow-compact .documento-read-button{min-height:31px!important;padding:5px 9px!important;font-size:11px!important}
.documento-easy-flow-compact .documento-scan-status{padding:7px 9px!important;margin:7px 0!important;font-size:11px!important}
.documento-easy-flow-compact .documento-save-choice{padding:7px!important;margin-top:7px!important}
.documento-easy-flow-compact .documento-save-choice b{font-size:11px}
.documento-easy-flow-compact .documento-save-choice small,
.documento-easy-flow-compact .documento-privacy-note{font-size:10px!important}
.nuovo-cliente-consensi-compact h2{font-size:17px;margin:0 0 7px}
.nuovo-cliente-consensi-compact .quote-grid input{min-height:32px!important;padding:5px 7px!important}
.nuovo-cliente-consensi-compact .consent-checks{gap:4px!important}
.nuovo-cliente-consensi-compact .consent-checks>label{min-height:32px!important;padding:4px 6px!important;font-size:10.5px}
.nuovo-cliente-consensi-compact .consent-open,
.nuovo-cliente-consensi-compact .linklike{min-height:25px!important;padding:3px 6px!important;font-size:9.5px!important}
.nuovo-cliente-consensi-compact textarea{min-height:55px!important}

.clienti-operativa-leggera{
  width:100%!important;
  min-width:1040px!important;
  table-layout:fixed!important;
}
.clienti-operativa-leggera .col-cliente-head,
.clienti-operativa-leggera .client-main-cell{
  width:auto!important;
  min-width:300px!important;
  max-width:none!important;
}
.clienti-operativa-leggera .col-mandati-head,
.clienti-operativa-leggera .client-mandates-cell{
  width:120px!important;
  min-width:120px!important;
  max-width:120px!important;
  white-space:nowrap!important;
  line-height:1.35;
}
.clienti-operativa-leggera .client-mandates-cell div{font-size:12px;margin:1px 0}
.clienti-operativa-leggera .client-mandates-cell b{font-size:14px}
.clienti-operativa-leggera .col-contatti-head,
.clienti-operativa-leggera .client-contacts-cell{
  width:290px!important;
  min-width:290px!important;
  max-width:290px!important;
  overflow-wrap:anywhere;
}
.clienti-operativa-leggera .col-data-head,
.clienti-operativa-leggera .client-created-cell{
  width:115px!important;
  min-width:115px!important;
  max-width:115px!important;
  white-space:nowrap;
  font-size:12px;
}
.clienti-operativa-leggera .col-azioni-head,
.clienti-operativa-leggera .actions-cell-scheda-only{
  width:145px!important;
  min-width:145px!important;
  max-width:145px!important;
}
@media(max-width:900px){
  .clienti-operativa-leggera{min-width:900px!important}
  .clienti-operativa-leggera .col-cliente-head,
  .clienti-operativa-leggera .client-main-cell{min-width:250px!important}
  .clienti-operativa-leggera .col-contatti-head,
  .clienti-operativa-leggera .client-contacts-cell{width:250px!important;min-width:250px!important;max-width:250px!important}
}

.category-create-grid{
  display:grid;
  grid-template-columns:140px minmax(240px,1fr) minmax(240px,1fr) auto;
  gap:10px;
  align-items:end;
}
.category-create-grid label{margin:0}
.category-create-grid .btn{min-height:40px}
.categorie-table{min-width:1180px}
.categorie-table col.cat-code{width:7%}
.categorie-table col.cat-name{width:17%}
.categorie-table col.cat-parent{width:15%}
.categorie-table col.cat-count{width:7%}
.categorie-table col.cat-edit{width:25%}
.categorie-table col.cat-delete{width:22%}
.categorie-table col.cat-stock{width:7%}
.categorie-table tr.is-subcategory td:nth-child(2){padding-left:22px;background:#fffaf3}
.category-edit-form{display:grid;grid-template-columns:75px minmax(140px,1fr) minmax(130px,1fr) auto;gap:5px;align-items:end}
.category-edit-form input,.category-edit-form select{min-width:0;min-height:32px!important;padding:4px 6px!important;font-size:11px}
.category-delete-form{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:6px;align-items:end}
.category-delete-form label{margin:0;font-size:10px}
.category-delete-form select{min-height:32px!important;padding:4px 6px!important;font-size:11px}

.side-nav-accordion{display:block!important;padding-bottom:8px}
.side-nav-group{margin:0 7px 7px;border:1px solid rgba(255,255,255,.10);border-radius:9px;overflow:hidden;background:rgba(0,0,0,.12)}
.side-nav-group>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:9px 10px;
  color:#a9d5d7;
  font-size:10px;
  font-weight:900;
  letter-spacing:.75px;
  text-transform:uppercase;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.side-nav-group>summary::-webkit-details-marker{display:none}
.side-nav-group .group-arrow{font-size:16px;line-height:1;transition:transform .15s ease}
.side-nav-group[open] .group-arrow{transform:rotate(180deg)}
.side-nav-links{padding:0 4px 5px}
.side-nav-links>a{margin:4px 0!important;min-height:40px!important}
.side-nav-group:not([open]) .side-nav-links{display:none}

.mandato-bulk-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:7px 9px;border:1px solid #dde2ea;border-radius:8px;background:#f8f9fb}
.label-select-col{width:68px;text-align:center!important}
.label-select-col input{width:18px;height:18px}
.admin-dialog{
  width:min(880px,calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  padding:0;
  border:0;
  border-radius:16px;
  box-shadow:0 28px 80px rgba(0,0,0,.38);
  background:#fff;
  overflow:auto;
}
.admin-dialog::backdrop{background:rgba(8,15,26,.68);backdrop-filter:blur(2px)}
.articolo-dialog-form{padding:18px!important;margin:0!important}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e3e6eb;padding-bottom:10px;margin-bottom:3px}
.dialog-heading h2{margin:1px 0 0}
.dialog-close{width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border-radius:50%!important;background:#343434!important;color:#fff!important;font-size:25px!important;line-height:1!important}
.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:5px}

@media(max-width:1200px){
  .mandato-consensi-compact .consent-checks{grid-template-columns:repeat(3,minmax(125px,1fr))}
  .category-create-grid{grid-template-columns:110px 1fr 1fr}.category-create-grid>button{grid-column:1/-1}
}
@media(max-width:800px){
  .server-pagination{grid-template-columns:1fr auto}
  .server-pagination .pagination-info{grid-column:1/-1}
  .server-pagination .per-page-form{grid-column:2;grid-row:2}
  .mandato-consensi-compact .consent-checks{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .mandato-consensi-compact .consent-checks>label:first-child{grid-column:1/-1}
  .category-create-grid{grid-template-columns:1fr}
  .category-create-grid>button{grid-column:auto}
  .dialog-actions .btn{width:100%;text-align:center}
  .mandato-bulk-actions{align-items:stretch;flex-direction:column}
  .mandato-bulk-actions .btn{width:100%;text-align:center}
}
@media(max-width:520px){
  .mandato-consensi-compact .consent-checks{grid-template-columns:1fr}
  .nuovo-cliente-top-grid{gap:9px!important}
  .documento-acquisition-grid{gap:7px!important}
}
.server-pagination .pagination-controls{display:flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
.server-pagination .pagination-controls>a,.server-pagination .pagination-controls>span.btn{min-width:28px!important;min-height:28px!important;padding:4px 7px!important;font-size:11px!important;line-height:18px!important;text-align:center}
@media(max-width:800px){.server-pagination .pagination-controls{grid-column:1;grid-row:2}}
.scadenze-operativa .actions-cell{width:190px;min-width:190px}
.scadenze-row-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.scadenze-row-actions .inline-form{display:contents!important}
.scadenze-row-actions .btn,.scadenze-row-actions button{min-height:28px!important;padding:4px 7px!important;font-size:10.5px!important;white-space:nowrap}
.clienti-operativa-leggera{table-layout:fixed;width:100%}
.clienti-operativa-leggera td{overflow-wrap:anywhere}

.sortable-th>a{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none;font-weight:800;white-space:nowrap}
.sortable-th>a:hover,.sortable-th>a:focus{text-decoration:underline;color:var(--theme-primary,#333)}
.sortable-th .sub-sort{display:block;margin-top:3px;font-size:10px;font-weight:600;opacity:.82}
.sortable-th .sub-sort a{color:inherit;text-decoration:none}
.sortable-admin-table thead th,.clienti-operativa-leggera thead th{vertical-align:bottom}
.mandati-list-table{min-width:1280px}
.articoli-list-table{min-width:1480px}
@media(max-width:760px){
  .sortable-th>a{min-height:28px}
  .clienti-table-wrap-leggera{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .clienti-operativa-leggera th,.clienti-operativa-leggera td{padding:7px!important}
}

.superadmin-bulk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.superadmin-bulk-head h2{margin:.2rem 0 0}
.superadmin-bulk-head p{max-width:620px;margin:0}
.superadmin-bulk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.superadmin-bulk-card{display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid rgba(120,70,20,.22);border-radius:16px;background:rgba(255,255,255,.72)}
.superadmin-bulk-card>div{display:flex;align-items:baseline;gap:10px}
.superadmin-bulk-card>div b{font-size:2rem;line-height:1}
.superadmin-bulk-card>div span{font-weight:800}
.superadmin-bulk-card p{margin:0;min-height:3.6em}
.bulk-confirm-check{display:flex;align-items:flex-start;gap:9px;font-weight:800}
.bulk-confirm-check input{width:20px;height:20px;flex:0 0 auto;margin-top:1px}
.superadmin-bulk-card button{align-self:flex-start}
.superadmin-bulk-card button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:850px){.superadmin-bulk-grid{grid-template-columns:1fr}.superadmin-bulk-head{display:block}.superadmin-bulk-head p{margin-top:10px}.superadmin-bulk-card p{min-height:0}}

.side .brand.brand-with-logo.admin-dual-brand{
  width:calc(100% - 18px)!important;
  max-width:248px!important;
  min-height:92px!important;
  margin:4px auto 10px!important;
  padding:8px 10px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  overflow:hidden!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fffdfa 0%,#f5ecdb 100%)!important;
  border:1px solid rgba(196,151,81,.62)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.92) inset,0 8px 18px rgba(0,0,0,.20)!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .admin-logo-tile{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  height:72px!important;
  padding:2px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-size:initial!important;
  line-height:normal!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .mercantico-tile{
  flex:0 1 104px!important;
  width:104px!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .shop-tile{
  flex:0 1 94px!important;
  width:94px!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .admin-logo-tile > img.admin-brand-logo{
  position:static!important;
  z-index:3!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  max-height:72px!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .mercantico-tile > .mercantico-brand-logo{
  transform:scale(.82)!important;
  transform-origin:center!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .shop-tile > .shop-brand-logo{
  transform:scale(.94)!important;
  transform-origin:center!important;
}
.side .brand.brand-with-logo.admin-dual-brand > .admin-logo-divider{
  position:relative!important;
  z-index:1!important;
  flex:0 0 1px!important;
  width:1px!important;
  height:54px!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  margin:0 1px!important;
  background:linear-gradient(180deg,transparent,rgba(120,87,39,.38),transparent)!important;
}
.side .brand.brand-with-logo.admin-dual-brand:not(.has-shop-logo) > .mercantico-tile{
  flex-basis:132px!important;
  width:132px!important;
}
.side .brand.brand-with-logo.admin-dual-brand:not(.has-shop-logo) > .mercantico-tile > .mercantico-brand-logo{
  transform:scale(.80)!important;
}

.mobile-topbar .mobile-brand.mobile-dual-brand{
  min-width:0!important;
  max-width:196px!important;
  height:54px!important;
  padding:3px 5px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  overflow:hidden!important;
  text-decoration:none!important;
}
.mobile-topbar .mobile-brand.mobile-dual-brand > .admin-logo-tile{
  position:relative!important;
  min-width:0!important;
  height:44px!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  background:transparent!important;
  font-size:initial!important;
  line-height:normal!important;
}
.mobile-topbar .mobile-brand.mobile-dual-brand > .mercantico-tile{width:59px!important;flex:0 0 59px!important}
.mobile-topbar .mobile-brand.mobile-dual-brand > .shop-tile{width:52px!important;flex:0 0 52px!important}
.mobile-topbar .mobile-brand.mobile-dual-brand > .admin-logo-tile > img.admin-brand-logo{
  position:static!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  max-width:100%!important;
  height:44px!important;
  max-height:44px!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
.mobile-topbar .mobile-brand.mobile-dual-brand > .mercantico-tile > .mercantico-brand-logo{transform:scale(.82)!important}
.mobile-topbar .mobile-brand.mobile-dual-brand > .shop-tile > .shop-brand-logo{transform:scale(.93)!important}
.mobile-topbar .mobile-brand.mobile-dual-brand > .admin-logo-divider{
  width:1px!important;
  height:34px!important;
  flex:0 0 1px!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  background:rgba(80,80,80,.25)!important;
}
.mobile-topbar .mobile-brand.mobile-dual-brand .admin-brand-label{display:none!important}
.mobile-topbar .mobile-brand.mobile-dual-brand:not(.has-shop-logo){max-width:148px!important}
.mobile-topbar .mobile-brand.mobile-dual-brand:not(.has-shop-logo) > .mercantico-tile{width:74px!important;flex-basis:74px!important}
.mobile-topbar .mobile-brand.mobile-dual-brand:not(.has-shop-logo) .admin-brand-label{
  display:block!important;
  min-width:0!important;
  color:inherit!important;
  font-size:16px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

@media (max-width:420px){
  .mobile-topbar .mobile-brand.mobile-dual-brand{max-width:145px!important;gap:3px!important}
  .mobile-topbar .mobile-brand.mobile-dual-brand > .mercantico-tile{width:48px!important;flex-basis:48px!important}
  .mobile-topbar .mobile-brand.mobile-dual-brand > .shop-tile{width:44px!important;flex-basis:44px!important}
  .mobile-topbar .mobile-brand.mobile-dual-brand > .admin-logo-tile,
  .mobile-topbar .mobile-brand.mobile-dual-brand > .admin-logo-tile > img.admin-brand-logo{height:39px!important;max-height:39px!important}
  .mobile-topbar .mobile-brand.mobile-dual-brand > .admin-logo-divider{height:29px!important}
}

:root{
    --mx-page:#f3f5fb;
    --mx-page-deep:#e9edf8;
    --mx-surface:#ffffff;
    --mx-surface-soft:#f8f9fe;
    --mx-surface-tint:#eef1ff;
    --mx-ink:#17213d;
    --mx-ink-soft:#35405f;
    --mx-muted:#6d7893;
    --mx-line:#dce2f0;
    --mx-line-strong:#c8d0e4;

    --mx-primary:#5b5ce2;
    --mx-primary-deep:#3d3fb1;
    --mx-primary-dark:#282967;
    --mx-primary-soft:#ececff;
    --mx-red:#d63b4d;
    --mx-red-deep:#a7263a;
    --mx-red-soft:#ffe8ed;
    --mx-aqua:#0ea5a8;
    --mx-aqua-deep:#087f83;
    --mx-aqua-soft:#def8f7;
    --mx-success:#0f9f72;
    --mx-success-deep:#08785a;
    --mx-danger:#c02f5d;
    --mx-danger-deep:#942143;
    --mx-warning:#8a5a00;
    --mx-warning-soft:#fff5cf;

    --mx-gradient:linear-gradient(135deg,#5b5ce2 0%,#d63b4d 54%,#0ea5a8 100%);
    --mx-gradient-deep:linear-gradient(135deg,#171d3c 0%,#51214f 54%,#0a6f76 100%);
    --mx-gradient-soft:linear-gradient(135deg,rgba(91,92,226,.12),rgba(214,59,77,.12),rgba(14,165,168,.10));
    --mx-shadow-xs:0 2px 8px rgba(29,38,79,.07);
    --mx-shadow-sm:0 8px 24px rgba(29,38,79,.09);
    --mx-shadow-md:0 16px 42px rgba(29,38,79,.13);
    --mx-ring:0 0 0 4px rgba(214,59,77,.18);
    --mx-radius-sm:10px;
    --mx-radius:16px;
    --mx-radius-lg:22px;

    --bg:var(--mx-page);
    --page:var(--mx-surface);
    --ink:var(--mx-ink);
    --muted:var(--mx-muted);
    --line:var(--mx-line);
    --head:var(--mx-primary-dark);
    --side1:#12172f;
    --side2:#080c1b;
    --orange:var(--mx-primary);
    --orange2:var(--mx-primary-deep);
    --green:var(--mx-success);
    --blue:var(--mx-primary);
    --soft:var(--mx-surface-soft);
    --theme-primary:var(--mx-primary);
    --theme-primary-dark:var(--mx-primary-deep);
    --theme-accent:var(--mx-aqua);
    --theme-danger:var(--mx-danger);
}

html,
body{
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
    background:
        radial-gradient(circle at 12% -10%,rgba(91,92,226,.11),transparent 28rem),
        radial-gradient(circle at 50% -16%,rgba(214,59,77,.10),transparent 24rem),
        radial-gradient(circle at 86% 4%,rgba(14,165,168,.10),transparent 24rem),
        var(--mx-page) !important;
    color:var(--mx-ink) !important;
}

body.mercantico-admin{
    background-color:var(--mx-page) !important;
}

.main{
    background:transparent !important;
}

.main > h1{
    position:relative;
    overflow:hidden;
    margin:0 0 22px !important;
    padding:19px clamp(18px,2.5vw,32px) 20px !important;
    min-height:68px;
    display:flex;
    align-items:center;
    background:var(--mx-gradient-deep) !important;
    color:#fff !important;
    border:0 !important;
    border-bottom:0 !important;
    border-radius:0 0 22px 22px !important;
    box-shadow:0 12px 34px rgba(15,22,56,.20) !important;
    font-size:clamp(24px,2.4vw,34px) !important;
    font-weight:850 !important;
    letter-spacing:-.035em !important;
    text-shadow:none !important;
}

.main > h1::after{
    content:"";
    position:absolute;
    right:-54px;
    top:-108px;
    width:260px;
    height:260px;
    border-radius:50%;
    border:46px solid rgba(255,255,255,.08);
    pointer-events:none;
}

.panel,
.dashboard-panel,
.client-portal-card,
.status-card,
.sale-item-card,
.firma-tablet-card{
    background:rgba(255,255,255,.96) !important;
    border:1px solid rgba(201,209,230,.88) !important;
    border-radius:var(--mx-radius-lg) !important;
    box-shadow:var(--mx-shadow-sm) !important;
}

.panel{
    position:relative;
    overflow:visible;
}

.panel::before{
    content:"";
    position:absolute;
    top:-1px;
    left:22px;
    right:22px;
    height:3px;
    border-radius:0 0 99px 99px;
    background:linear-gradient(90deg,var(--mx-primary),var(--mx-red),var(--mx-aqua));
    opacity:.82;
    pointer-events:none;
}

.panel h2,
.dashboard-panel h2,
.dashboard-section-heading h2,
.dashboard-bookings-head h2{
    color:var(--mx-ink) !important;
    letter-spacing:-.025em !important;
}

.muted,
small,
.help,
.hint{
    color:var(--mx-muted) !important;
}

.side{
    background:
        radial-gradient(circle at 120% 4%,rgba(91,92,226,.42),transparent 18rem),
        radial-gradient(circle at -20% 72%,rgba(14,165,168,.24),transparent 19rem),
        linear-gradient(180deg,#151a36 0%,#0b1023 52%,#070a16 100%) !important;
    border-left:1px solid rgba(137,149,205,.20) !important;
    box-shadow:-16px 0 44px rgba(10,14,34,.24) !important;
}

.brand,
.mobile-brand{
    color:#fff !important;
    text-shadow:none !important;
}

.side-nav-group{
    border-color:rgba(148,163,220,.17) !important;
    background:rgba(255,255,255,.025) !important;
    border-radius:16px !important;
}

.side-nav-group-heading,
.side-nav-group summary,
.nav-section{
    color:#aeb9ff !important;
    letter-spacing:.085em !important;
}

.side-nav a{
    position:relative;
    min-height:52px !important;
    margin:4px 7px !important;
    padding:8px 11px !important;
    border:1px solid transparent !important;
    border-radius:13px !important;
    background:transparent !important;
    color:#e8ebff !important;
    box-shadow:none !important;
    text-shadow:none !important;
    transition:background .16s ease,border-color .16s ease,transform .16s ease,color .16s ease !important;
}

.side-nav a .ico{
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    border-radius:10px;
    background:rgba(111,113,235,.16);
    border:1px solid rgba(153,164,255,.13);
    filter:none !important;
    font-size:20px !important;
}

.side-nav a:hover{
    background:rgba(105,107,235,.14) !important;
    border-color:rgba(143,154,255,.24) !important;
    color:#fff !important;
    transform:translateX(-2px) !important;
}

.side-nav a.active{
    background:linear-gradient(135deg,rgba(102,103,235,.96),rgba(14,165,168,.87)) !important;
    border-color:rgba(255,255,255,.20) !important;
    color:#fff !important;
    box-shadow:0 10px 25px rgba(42,49,139,.31) !important;
}

.side-nav a.active .ico{
    background:rgba(255,255,255,.18);
    border-color:rgba(255,255,255,.20);
}

.admin-global-search input{
    border:1px solid rgba(181,190,239,.28) !important;
    background:rgba(255,255,255,.09) !important;
    color:#fff !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.admin-global-search input:focus{
    border-color:#8f91ff !important;
    box-shadow:0 0 0 4px rgba(116,118,245,.20) !important;
}

.admin-global-search button{
    min-width:42px !important;
    padding:0 !important;
}

.mobile-topbar{
    background:linear-gradient(135deg,#141a39,#262b67 60%,#0b747a) !important;
    border-bottom:0 !important;
    box-shadow:0 10px 28px rgba(15,22,56,.27) !important;
}

.menu-toggle{
    background:rgba(255,255,255,.12) !important;
    border-color:rgba(255,255,255,.22) !important;
    box-shadow:none !important;
}

.mobile-top-actions{
    gap:7px !important;
}

button,
.btn,
input[type="submit"],
input[type="button"],
a.btn,
.quick-actions a,
.quick-sale,
.quick-move,
.dashboard-search button,
.mobile-sale,
.mobile-qr{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-height:42px !important;
    padding:10px 16px !important;
    border:1px solid rgba(47,49,151,.18) !important;
    border-radius:12px !important;
    background:var(--mx-gradient) !important;
    color:#fff !important;
    box-shadow:0 8px 20px rgba(68,71,184,.22) !important;
    font-weight:800 !important;
    letter-spacing:.005em !important;
    text-shadow:none !important;
    text-decoration:none !important;
    transform:none !important;
    filter:none !important;
    transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,border-color .16s ease !important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
.quick-actions a:hover,
.dashboard-search button:hover,
.mobile-sale:hover,
.mobile-qr:hover{
    transform:translateY(-2px) !important;
    box-shadow:0 13px 28px rgba(68,71,184,.29) !important;
    filter:saturate(1.08) brightness(1.04) !important;
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
a.btn:active{
    transform:translateY(0) scale(.985) !important;
    box-shadow:0 4px 12px rgba(68,71,184,.20) !important;
}

button:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a.btn:focus-visible{
    outline:0 !important;
    box-shadow:var(--mx-ring),0 9px 22px rgba(68,71,184,.24) !important;
}

.btn.small,
button.small,
.small.btn{
    min-height:34px !important;
    padding:7px 11px !important;
    border-radius:10px !important;
    font-size:13px !important;
}

.btn.soft,
button.soft,
a.btn.soft,
.cliente-subtoolbar .btn,
.cliente-azioni-secondarie .btn{
    background:linear-gradient(180deg,#fff,#f3f4ff) !important;
    color:var(--mx-primary-deep) !important;
    border-color:#cbd0f6 !important;
    box-shadow:0 5px 14px rgba(62,66,150,.10) !important;
}

.btn.soft:hover,
button.soft:hover,
a.btn.soft:hover,
.cliente-subtoolbar .btn:hover,
.cliente-azioni-secondarie .btn:hover{
    background:var(--mx-primary-soft) !important;
    border-color:#aeb4ef !important;
    color:var(--mx-primary-dark) !important;
}

.btn.success,
button.success{
    background:linear-gradient(135deg,#10a779,#0d8c83) !important;
    border-color:rgba(5,116,91,.32) !important;
    box-shadow:0 8px 20px rgba(13,145,112,.21) !important;
}

.btn.danger,
button.danger,
.danger,
.btn.warning,
button.warning,
.cliente-toolbar .tool-btn.danger,
.cliente-comandi-operativi .tool-btn.danger{
    background:linear-gradient(135deg,var(--mx-danger),#9e2858) !important;
    border-color:rgba(123,24,61,.28) !important;
    color:#fff !important;
    box-shadow:0 8px 20px rgba(171,39,86,.20) !important;
}

button:disabled,
.btn.disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled{
    background:#dce1ed !important;
    border-color:#d0d6e3 !important;
    color:#7c879e !important;
    box-shadow:none !important;
    filter:none !important;
    transform:none !important;
}

label{
    color:var(--mx-ink-soft) !important;
    font-weight:750 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
select,
textarea{
    border:1px solid var(--mx-line-strong) !important;
    border-radius:12px !important;
    background:#fff !important;
    color:var(--mx-ink) !important;
    box-shadow:0 2px 8px rgba(29,38,79,.04),inset 0 1px 2px rgba(29,38,79,.035) !important;
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus,
select:focus,
textarea:focus{
    border-color:#7778ec !important;
    box-shadow:var(--mx-ring) !important;
    outline:none !important;
}

input[type="checkbox"],
input[type="radio"]{
    accent-color:var(--mx-primary) !important;
}

.table-wrap{
    border:1px solid var(--mx-line) !important;
    border-radius:17px !important;
    background:#fff !important;
    box-shadow:0 6px 18px rgba(29,38,79,.055) !important;
}

table{
    background:#fff !important;
}

thead th,
th{
    background:linear-gradient(180deg,#f1f3ff,#e9edfb) !important;
    color:#293457 !important;
    border-color:#d6dcee !important;
    font-weight:850 !important;
    text-shadow:none !important;
}

th a{
    color:#2f3c70 !important;
    text-decoration:none !important;
}

th a:hover{
    color:var(--mx-primary) !important;
}

td{
    border-color:#e5e9f3 !important;
    color:var(--mx-ink-soft) !important;
}

tbody tr:nth-child(even) td{
    background:#fafbff !important;
}

tbody tr:hover td{
    background:#f0f2ff !important;
}

.client-code,
.badge,
.status-strip span,
.dashboard-booking-state{
    border-radius:999px !important;
}

.client-code{
    background:var(--mx-primary-soft) !important;
    color:var(--mx-primary-deep) !important;
    border-color:#c8cdf6 !important;
}

.pagination,
.table-pagination{
    background:transparent !important;
}

.pagination a,
.pagination span,
.table-pagination a,
.table-pagination button{
    border-radius:10px !important;
    border-color:var(--mx-line) !important;
}

.pagination .active,
.pagination a.active,
.table-pagination .active{
    background:var(--mx-gradient) !important;
    color:#fff !important;
    border-color:transparent !important;
}

.dashboard-operativa{
    max-width:1500px !important;
}

.dashboard-hero{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 92% -18%,rgba(255,255,255,.22),transparent 21rem),
        radial-gradient(circle at 70% 18%,rgba(214,59,77,.34),transparent 18rem),
        linear-gradient(125deg,#151b3c 0%,#34358d 44%,#a7263a 73%,#0b8e94 100%) !important;
    border:0 !important;
    border-radius:24px !important;
    box-shadow:0 18px 44px rgba(28,35,91,.24) !important;
}

.dashboard-hero::after{
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    right:34%;
    bottom:-116px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    pointer-events:none;
}

.dashboard-hero h2,
.dashboard-hero p,
.dashboard-hero label{
    color:#fff !important;
}

.dashboard-hero p{
    color:#dfe4ff !important;
}

.dashboard-eyebrow{
    color:var(--mx-red) !important;
    font-weight:900 !important;
    letter-spacing:.105em !important;
}

.dashboard-hero .dashboard-eyebrow{
    color:#ffd8df !important;
}

.dashboard-search input{
    border-color:rgba(255,255,255,.35) !important;
    box-shadow:0 10px 28px rgba(8,14,48,.18) !important;
}

.dashboard-action-grid,
.dashboard-kpi-grid{
    gap:15px !important;
}

.dashboard-action,
.dashboard-kpi,
.dashboard-task,
.dashboard-booking-row{
    border:1px solid var(--mx-line) !important;
    background:rgba(255,255,255,.96) !important;
    box-shadow:var(--mx-shadow-xs) !important;
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease !important;
}

.dashboard-action{
    border-radius:18px !important;
}

.dashboard-action:hover,
.dashboard-kpi:hover,
.dashboard-task:hover,
.dashboard-booking-row:hover{
    transform:translateY(-3px) !important;
    border-color:#bfc5f1 !important;
    box-shadow:var(--mx-shadow-md) !important;
    background:#fff !important;
}

.dashboard-action-icon{
    background:linear-gradient(145deg,#262d56,#171c36) !important;
    color:#fff !important;
    border:1px solid rgba(255,255,255,.12) !important;
    box-shadow:0 9px 20px rgba(31,38,88,.18) !important;
}

.dashboard-action:nth-child(3n+2) .dashboard-action-icon{
    background:linear-gradient(145deg,#5b5ce2,#3f40b8) !important;
}

.dashboard-action:nth-child(3n) .dashboard-action-icon{
    background:linear-gradient(145deg,var(--mx-red),var(--mx-red-deep)) !important;
}

.dashboard-action.primary,
.dashboard-action.sale{
    background:var(--mx-gradient-soft),#fff !important;
    border-color:#c4caf1 !important;
}

.dashboard-action.primary .dashboard-action-icon,
.dashboard-task.has-items > b,
.dashboard-bookings-summary > b{
    background:var(--mx-gradient) !important;
    color:#fff !important;
    box-shadow:0 8px 20px rgba(68,71,184,.22) !important;
}

.dashboard-action.sale .dashboard-action-icon{
    background:linear-gradient(145deg,var(--mx-red),var(--mx-red-deep)) !important;
}

.dashboard-kpi{
    position:relative;
    overflow:hidden;
    border-radius:18px !important;
}

.dashboard-kpi::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    background:linear-gradient(180deg,var(--mx-primary),var(--mx-red));
}

.dashboard-kpi b{
    color:var(--mx-primary-dark) !important;
}

.dashboard-kpi:nth-child(even)::before{
    background:linear-gradient(180deg,var(--mx-red),var(--mx-aqua));
}

.dashboard-kpi.sales::before{
    background:linear-gradient(180deg,var(--mx-red),var(--mx-danger));
}

.dashboard-section-heading h2{
    color:var(--mx-primary-dark) !important;
}

.dashboard-booking-state{
    border-color:rgba(214,59,77,.22) !important;
}

.dashboard-booking-state.state-aperta,
.dashboard-booking-state.state-contattato{
    background:var(--mx-red-soft) !important;
    color:var(--mx-red-deep) !important;
}

.dashboard-search button,
button[type="submit"],
.btn-primary{
    background:var(--mx-gradient) !important;
    border-color:transparent !important;
}

.dashboard-search button:hover,
button[type="submit"]:hover,
.btn-primary:hover{
    box-shadow:0 10px 24px rgba(214,59,77,.22) !important;
}

.dashboard-bookings-priority{
    border:1px solid #cbd0f3 !important;
    border-left:5px solid var(--mx-primary) !important;
    background:linear-gradient(135deg,#f3f2ff,#effbfb 70%,#fff) !important;
    box-shadow:var(--mx-shadow-sm) !important;
}

.dashboard-booking-state.state-aperta{
    background:#f1eaff !important;
    color:#6b35a4 !important;
}

.dashboard-booking-state.state-contattato{
    background:#e4f4ff !important;
    color:#22628f !important;
}

.dashboard-booking-state.state-confermata{
    background:#dcf8ec !important;
    color:#087356 !important;
}

.cliente-toolbar,
.cliente-comandi-operativi{
    border-top-color:var(--mx-primary) !important;
}

.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
    background:linear-gradient(180deg,#fff,#f7f8ff) !important;
    color:#2c3656 !important;
    border:1px solid #d6dbee !important;
    border-top:4px solid var(--mx-primary) !important;
    border-left:1px solid #d6dbee !important;
    border-radius:15px !important;
    box-shadow:0 7px 18px rgba(29,38,79,.08) !important;
}

.cliente-toolbar .tool-btn:hover,
.cliente-toolbar a.tool-btn:hover,
.cliente-toolbar button.tool-btn:hover,
.cliente-comandi-operativi .tool-btn:hover,
.cliente-comandi-operativi a.tool-btn:hover,
.cliente-comandi-operativi button.tool-btn:hover{
    background:var(--mx-primary-soft) !important;
    color:var(--mx-primary-dark) !important;
    border-color:#bbc2ed !important;
    border-top-color:var(--mx-aqua) !important;
    transform:translateY(-2px) !important;
}

.flash,
.alert,
.sale-item-alert{
    border-radius:14px !important;
    box-shadow:var(--mx-shadow-xs) !important;
}

.flash.success,
.alert.success{
    background:#e4f8ef !important;
    border-color:#a9ddca !important;
    color:#087356 !important;
}

.flash.error,
.alert.error,
.sale-item-alert-error{
    background:#fff0f5 !important;
    border-color:#e8b2c5 !important;
    color:#8f2448 !important;
}

.flash.warning,
.alert.warning,
.sale-item-alert:not(.sale-item-alert-error){
    background:var(--mx-warning-soft) !important;
    border-color:#e5d59f !important;
    color:#725000 !important;
}

.modal-backdrop,
.firma-modal-backdrop{
    background:rgba(7,10,25,.74) !important;
    backdrop-filter:blur(5px);
}

.modal,
.firma-modal-card,
.dialog-card{
    border:1px solid rgba(214,220,239,.95) !important;
    border-radius:24px !important;
    box-shadow:0 30px 90px rgba(8,12,34,.38) !important;
}

.login{
    background:
        radial-gradient(circle at 18% 16%,rgba(91,92,226,.28),transparent 22rem),
        radial-gradient(circle at 82% 86%,rgba(14,165,168,.24),transparent 20rem),
        linear-gradient(145deg,#0d1228,#20275e) !important;
}

.login-card{
    border-radius:24px !important;
    border:1px solid rgba(255,255,255,.22) !important;
    box-shadow:0 26px 70px rgba(5,9,27,.37) !important;
}

@media(max-width:980px){
    .main > h1{
        border-radius:0 0 18px 18px !important;
        min-height:62px;
    }

    .panel,
    .dashboard-panel,
    .client-portal-card{
        border-radius:17px !important;
    }

    .side-nav a:hover{
        transform:none !important;
    }
}

@media(max-width:640px){
    .main > h1{
        margin-bottom:14px !important;
        padding:15px 14px 16px !important;
        font-size:24px !important;
    }

    .panel::before{
        left:14px;
        right:14px;
    }

    button,
    .btn,
    input[type="submit"],
    input[type="button"],
    a.btn{
        border-radius:11px !important;
    }

    .dashboard-hero{
        border-radius:18px !important;
    }

    .dashboard-action,
    .dashboard-kpi,
    .dashboard-task{
        border-radius:15px !important;
    }
}

@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
        scroll-behavior:auto !important;
        transition:none !important;
        animation:none !important;
    }
}

@media print{
    body,
    .main{
        background:#fff !important;
    }

    .main > h1{
        background:#fff !important;
        color:#111 !important;
        box-shadow:none !important;
        border-bottom:2px solid #555 !important;
        border-radius:0 !important;
    }

    .panel,
    .dashboard-panel{
        box-shadow:none !important;
    }
}

.dashboard-hero-copy,
.dashboard-search{
    min-width:0 !important;
}

.dashboard-hero p{
    white-space:normal !important;
    overflow-wrap:anywhere !important;
}

.dashboard-operativa > *,
.dashboard-hero,
.dashboard-hero-copy,
.dashboard-search{
    min-width:0 !important;
    max-width:100% !important;
}

.dashboard-hero{
    width:100% !important;
}

.dashboard-hero{
    position:relative !important;
    overflow:hidden !important;
    isolation:isolate;
}

.dashboard-hero-has-watermark::after{
    content:"";
    position:absolute;
    inset:auto 0 0 auto;
    width:320px;
    height:320px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,.14) 0%, rgba(255,255,255,.08) 34%, rgba(255,255,255,0) 72%);
    transform:translate(24%, 28%);
    pointer-events:none;
    z-index:0;
}

.dashboard-hero-watermark{
    position:absolute;
    right:-18px;
    bottom:-24px;
    width:min(34vw, 260px);
    opacity:.16;
    pointer-events:none;
    z-index:0;
    filter:grayscale(.35) brightness(1.32) contrast(1.05);
    mix-blend-mode:screen;
    transform:rotate(-8deg);
}

.dashboard-hero-watermark img{
    display:block;
    width:100%;
    height:auto;
}

.dashboard-hero-copy,
.dashboard-search{
    position:relative;
    z-index:1;
}

@media(max-width:820px){
    .dashboard-hero-watermark{
        width:190px;
        right:-12px;
        bottom:-18px;
        opacity:.14;
    }

    .dashboard-hero-has-watermark::after{
        width:220px;
        height:220px;
        transform:translate(22%, 26%);
    }
}

@media(max-width:640px){
    .dashboard-hero-watermark{
        width:150px;
        right:-10px;
        bottom:-10px;
        opacity:.12;
    }

    .dashboard-hero-has-watermark::after{
        width:170px;
        height:170px;
        transform:translate(18%, 24%);
    }
}

:root{
  --mx-btn-grad-main: linear-gradient(135deg,#4456db 0%,#6c4ed8 42%,#c9364f 100%);
  --mx-btn-grad-main-hover: linear-gradient(135deg,#4c60ea 0%,#7557e0 42%,#d63e58 100%);
  --mx-btn-grad-soft: linear-gradient(135deg,#ffffff 0%,#f7f8ff 54%,#eef2ff 100%);
  --mx-btn-grad-soft-hover: linear-gradient(135deg,#ffffff 0%,#f1f3ff 56%,#e6ecff 100%);
  --mx-btn-grad-danger: linear-gradient(135deg,#d03b57 0%,#b72d51 100%);
  --mx-btn-grad-danger-hover: linear-gradient(135deg,#da4460 0%,#c33458 100%);
  --mx-btn-grad-success: linear-gradient(135deg,#0f9b7d 0%,#117e89 100%);
  --mx-btn-grad-success-hover: linear-gradient(135deg,#12aa88 0%,#148892 100%);
  --mx-btn-grad-warning: linear-gradient(135deg,#94445a 0%,#79364d 100%);
  --mx-btn-grad-warning-hover: linear-gradient(135deg,#a14d63 0%,#864056 100%);
  --mx-btn-shadow: 0 10px 24px rgba(41,49,123,.18);
  --mx-btn-shadow-hover: 0 14px 30px rgba(41,49,123,.22);
}

button,
.btn,
input[type="submit"],
input[type="button"],
a.btn,
.quick-actions a,
.quick-sale,
.quick-move,
.dashboard-search button,
.mobile-sale,
.mobile-qr{
  border:1px solid rgba(73,84,166,.18) !important;
  border-radius:14px !important;
  background:var(--mx-btn-grad-main) !important;
  color:#fff !important;
  box-shadow:var(--mx-btn-shadow) !important;
  text-shadow:0 1px 0 rgba(23,28,69,.12) !important;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease, border-color .16s ease !important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
.quick-actions a:hover,
.dashboard-search button:hover,
.mobile-sale:hover,
.mobile-qr:hover{
  background:var(--mx-btn-grad-main-hover) !important;
  box-shadow:var(--mx-btn-shadow-hover) !important;
  filter:saturate(1.04) brightness(1.03) !important;
  transform:translateY(-2px) !important;
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
a.btn:active{
  transform:translateY(0) scale(.988) !important;
  box-shadow:0 6px 16px rgba(41,49,123,.16) !important;
}

button:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a.btn:focus-visible{
  outline:none !important;
  box-shadow:0 0 0 4px rgba(201,54,79,.16), var(--mx-btn-shadow) !important;
}

.btn.soft,
button.soft,
a.btn.soft,
.cliente-subtoolbar .btn,
.cliente-azioni-secondarie .btn,
.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
  background:var(--mx-btn-grad-soft) !important;
  color:#26355c !important;
  border:1px solid rgba(178,187,228,.8) !important;
  box-shadow:0 8px 20px rgba(31,40,86,.08) !important;
  text-shadow:none !important;
}

.btn.soft:hover,
button.soft:hover,
a.btn.soft:hover,
.cliente-subtoolbar .btn:hover,
.cliente-azioni-secondarie .btn:hover,
.cliente-toolbar .tool-btn:hover,
.cliente-toolbar a.tool-btn:hover,
.cliente-toolbar button.tool-btn:hover,
.cliente-comandi-operativi .tool-btn:hover,
.cliente-comandi-operativi a.tool-btn:hover,
.cliente-comandi-operativi button.tool-btn:hover{
  background:var(--mx-btn-grad-soft-hover) !important;
  color:#1f2c52 !important;
  border-color:rgba(150,163,226,.95) !important;
  box-shadow:0 12px 26px rgba(31,40,86,.10) !important;
}

.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
  border-top:1px solid rgba(178,187,228,.8) !important;
}

.btn.danger,
button.danger,
.danger{
  background:var(--mx-btn-grad-danger) !important;
  border-color:rgba(157,34,61,.42) !important;
  box-shadow:0 10px 24px rgba(171,39,69,.18) !important;
}
.btn.danger:hover,
button.danger:hover,
.danger:hover{
  background:var(--mx-btn-grad-danger-hover) !important;
  box-shadow:0 14px 30px rgba(171,39,69,.22) !important;
}

.btn.success,
button.success{
  background:var(--mx-btn-grad-success) !important;
  border-color:rgba(13,118,103,.42) !important;
  box-shadow:0 10px 24px rgba(17,133,118,.18) !important;
}
.btn.success:hover,
button.success:hover{
  background:var(--mx-btn-grad-success-hover) !important;
  box-shadow:0 14px 30px rgba(17,133,118,.22) !important;
}

.btn.warning,
button.warning{
  background:var(--mx-btn-grad-warning) !important;
  border-color:rgba(110,47,63,.42) !important;
  box-shadow:0 10px 24px rgba(121,54,77,.18) !important;
}
.btn.warning:hover,
button.warning:hover{
  background:var(--mx-btn-grad-warning-hover) !important;
  box-shadow:0 14px 30px rgba(121,54,77,.22) !important;
}

.dashboard-action,
.dashboard-kpi,
.dashboard-task,
.dashboard-booking-row{
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important;
}

.dashboard-action-icon{
  background:linear-gradient(135deg,#4456db 0%,#6c4ed8 55%,#c9364f 100%) !important;
  box-shadow:0 10px 24px rgba(41,49,123,.18) !important;
}
.dashboard-action:nth-child(3n+2) .dashboard-action-icon,
.dashboard-action:nth-child(3n) .dashboard-action-icon,
.dashboard-action.sale .dashboard-action-icon,
.dashboard-action.primary .dashboard-action-icon{
  background:linear-gradient(135deg,#4456db 0%,#6c4ed8 55%,#c9364f 100%) !important;
}

.mobile-sale,
.mobile-qr{
  min-height:38px !important;
  padding:8px 12px !important;
}

:root{
  --mb13-primary-start:#243b72;
  --mb13-primary-end:#a6273e;
  --mb13-primary-hover-start:#2b4685;
  --mb13-primary-hover-end:#b12d45;
  --mb13-soft-start:#ffffff;
  --mb13-soft-end:#f1f4fb;
  --mb13-soft-hover-start:#ffffff;
  --mb13-soft-hover-end:#e9eef9;
  --mb13-danger-start:#ba314a;
  --mb13-danger-end:#8f1f34;
  --mb13-danger-hover-start:#c53852;
  --mb13-danger-hover-end:#9a2339;
  --mb13-success-start:#178371;
  --mb13-success-end:#126a79;
  --mb13-success-hover-start:#1b907d;
  --mb13-success-hover-end:#157585;
  --mb13-warning-start:#7d4957;
  --mb13-warning-end:#603643;
  --mb13-warning-hover-start:#8b5463;
  --mb13-warning-hover-end:#6b3d4b;
}

button,
.btn,
input[type="submit"],
input[type="button"],
a.btn,
.quick-actions a,
.quick-sale,
.quick-move,
.dashboard-search button,
.mobile-sale,
.mobile-qr{
  background:linear-gradient(135deg,var(--mb13-primary-start) 0%, var(--mb13-primary-end) 100%) !important;
  border:1px solid rgba(59,71,124,.24) !important;
  border-radius:14px !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(25,35,77,.18) !important;
  text-shadow:0 1px 0 rgba(16,20,48,.10) !important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
.quick-actions a:hover,
.dashboard-search button:hover,
.mobile-sale:hover,
.mobile-qr:hover{
  background:linear-gradient(135deg,var(--mb13-primary-hover-start) 0%, var(--mb13-primary-hover-end) 100%) !important;
  box-shadow:0 14px 30px rgba(25,35,77,.22) !important;
  transform:translateY(-2px) !important;
  filter:none !important;
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
a.btn:active{
  box-shadow:0 6px 15px rgba(25,35,77,.16) !important;
  transform:translateY(0) scale(.988) !important;
}

button:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a.btn:focus-visible{
  box-shadow:0 0 0 4px rgba(166,39,62,.15),0 10px 24px rgba(25,35,77,.18) !important;
}

.btn.soft,
button.soft,
a.btn.soft,
.cliente-subtoolbar .btn,
.cliente-azioni-secondarie .btn,
.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
  background:linear-gradient(180deg,var(--mb13-soft-start) 0%, var(--mb13-soft-end) 100%) !important;
  color:#223252 !important;
  border:1px solid rgba(190,199,224,.9) !important;
  box-shadow:0 8px 18px rgba(23,33,72,.08) !important;
  text-shadow:none !important;
}

.btn.soft:hover,
button.soft:hover,
a.btn.soft:hover,
.cliente-subtoolbar .btn:hover,
.cliente-azioni-secondarie .btn:hover,
.cliente-toolbar .tool-btn:hover,
.cliente-toolbar a.tool-btn:hover,
.cliente-toolbar button.tool-btn:hover,
.cliente-comandi-operativi .tool-btn:hover,
.cliente-comandi-operativi a.tool-btn:hover,
.cliente-comandi-operativi button.tool-btn:hover{
  background:linear-gradient(180deg,var(--mb13-soft-hover-start) 0%, var(--mb13-soft-hover-end) 100%) !important;
  color:#1b2845 !important;
  border-color:rgba(162,173,208,.95) !important;
  box-shadow:0 11px 22px rgba(23,33,72,.10) !important;
}

.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
  border-top:1px solid rgba(190,199,224,.9) !important;
}

.btn.danger,
button.danger,
.danger{
  background:linear-gradient(135deg,var(--mb13-danger-start) 0%, var(--mb13-danger-end) 100%) !important;
  border-color:rgba(132,30,53,.35) !important;
  box-shadow:0 10px 24px rgba(146,31,59,.18) !important;
}
.btn.danger:hover,
button.danger:hover,
.danger:hover{
  background:linear-gradient(135deg,var(--mb13-danger-hover-start) 0%, var(--mb13-danger-hover-end) 100%) !important;
  box-shadow:0 14px 30px rgba(146,31,59,.22) !important;
}

.btn.success,
button.success{
  background:linear-gradient(135deg,var(--mb13-success-start) 0%, var(--mb13-success-end) 100%) !important;
  border-color:rgba(19,99,99,.32) !important;
  box-shadow:0 10px 24px rgba(19,106,121,.18) !important;
}
.btn.success:hover,
button.success:hover{
  background:linear-gradient(135deg,var(--mb13-success-hover-start) 0%, var(--mb13-success-hover-end) 100%) !important;
  box-shadow:0 14px 30px rgba(19,106,121,.22) !important;
}

.btn.warning,
button.warning{
  background:linear-gradient(135deg,var(--mb13-warning-start) 0%, var(--mb13-warning-end) 100%) !important;
  border-color:rgba(104,62,76,.34) !important;
  box-shadow:0 10px 24px rgba(96,54,67,.18) !important;
}
.btn.warning:hover,
button.warning:hover{
  background:linear-gradient(135deg,var(--mb13-warning-hover-start) 0%, var(--mb13-warning-hover-end) 100%) !important;
  box-shadow:0 14px 30px rgba(96,54,67,.22) !important;
}

.dashboard-action-icon,
.dashboard-action:nth-child(3n+2) .dashboard-action-icon,
.dashboard-action:nth-child(3n) .dashboard-action-icon,
.dashboard-action.sale .dashboard-action-icon,
.dashboard-action.primary .dashboard-action-icon{
  background:linear-gradient(135deg,var(--mb13-primary-start) 0%, var(--mb13-primary-end) 100%) !important;
  box-shadow:0 10px 24px rgba(25,35,77,.16) !important;
}

.dashboard-task.has-items > b,
.dashboard-bookings-summary > b{
  background:linear-gradient(135deg,var(--mb13-primary-start) 0%, var(--mb13-primary-end) 100%) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(25,35,77,.14) !important;
}

:root{
  --brand-900:#17243b;
  --brand-800:#21324f;
  --brand-700:#2d4264;
  --brand-600:#3b5277;
  --brand-100:#eaf0f8;
  --brand-050:#f5f7fb;
  --ink:#1b2638;
  --muted:#667287;
  --line:#d8e0eb;
  --surface:#ffffff;
  --danger-700:#8e3046;
  --danger-600:#a43a51;
  --danger-100:#f9e8ed;
  --success-700:#276b69;
  --success-600:#347d79;
  --success-100:#e5f2f0;
  --warning-700:#8a4939;
  --warning-600:#a15843;
  --warning-100:#faece7;
}

body.mercantico-admin{
  background:
    radial-gradient(circle at 12% -8%,rgba(45,66,100,.08),transparent 25rem),
    linear-gradient(180deg,#eef2f7 0%,#f8fafc 100%) !important;
  color:var(--ink) !important;
}

.main{
  background:transparent !important;
}

.main > h1{
  background:linear-gradient(135deg,var(--brand-900) 0%,var(--brand-700) 100%) !important;
  border-radius:0 0 20px 20px !important;
  box-shadow:0 12px 30px rgba(23,36,59,.16) !important;
}

.mobile-topbar{
  background:linear-gradient(135deg,var(--brand-900) 0%,var(--brand-700) 100%) !important;
}

.side{
  background:linear-gradient(180deg,#17243b 0%,#111c30 58%,#0c1525 100%) !important;
}
.side::before{
  opacity:.055 !important;
  inset:155px 14px auto 14px !important;
  height:260px !important;
  filter:grayscale(1) brightness(2.5) !important;
}
.side-nav a.active,
.side-nav-links>a.active{
  background:linear-gradient(135deg,#30486d 0%,#233755 100%) !important;
  border-color:rgba(255,255,255,.14) !important;
  box-shadow:0 12px 26px rgba(5,12,26,.22) !important;
}
.side-nav a.active .ico,
.side-nav-links>a.active .ico{
  background:linear-gradient(145deg,#49638b 0%,#30486d 100%) !important;
  box-shadow:0 8px 18px rgba(6,15,32,.22) !important;
}
.side-nav a:hover,
.side-nav-links>a:hover{
  background:linear-gradient(180deg,rgba(73,99,139,.18),rgba(48,72,109,.10)) !important;
}

button,
.btn,
input[type="submit"],
input[type="button"],
a.btn,
.quick-actions a,
.quick-sale,
.quick-move,
.dashboard-search button,
.mobile-sale,
.mobile-qr{
  background:linear-gradient(180deg,var(--brand-700) 0%,var(--brand-800) 100%) !important;
  border:1px solid rgba(21,34,57,.24) !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(23,36,59,.15) !important;
  text-shadow:none !important;
}
button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
.quick-actions a:hover,
.dashboard-search button:hover,
.mobile-sale:hover,
.mobile-qr:hover{
  background:linear-gradient(180deg,#405a82 0%,#293f60 100%) !important;
  box-shadow:0 12px 24px rgba(23,36,59,.20) !important;
  filter:none !important;
}

.btn.soft,
button.soft,
a.btn.soft,
.cliente-subtoolbar .btn,
.cliente-azioni-secondarie .btn,
.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn,
.cliente-comandi-operativi .tool-btn,
.cliente-comandi-operativi a.tool-btn,
.cliente-comandi-operativi button.tool-btn{
  background:linear-gradient(180deg,#ffffff 0%,#f2f5f9 100%) !important;
  color:#233451 !important;
  border-color:#d5dde8 !important;
  box-shadow:0 7px 16px rgba(23,36,59,.07) !important;
  text-shadow:none !important;
}
.btn.soft:hover,
button.soft:hover,
a.btn.soft:hover,
.cliente-subtoolbar .btn:hover,
.cliente-azioni-secondarie .btn:hover{
  background:linear-gradient(180deg,#ffffff 0%,#eaf0f7 100%) !important;
  color:#17243b !important;
  border-color:#bec9d9 !important;
}

.btn.danger,
button.danger,
.danger{
  background:linear-gradient(180deg,var(--danger-600) 0%,var(--danger-700) 100%) !important;
  border-color:#7e293d !important;
  box-shadow:0 8px 18px rgba(142,48,70,.16) !important;
}
.btn.success,
button.success{
  background:linear-gradient(180deg,var(--success-600) 0%,var(--success-700) 100%) !important;
  border-color:#205c5a !important;
  box-shadow:0 8px 18px rgba(39,107,105,.16) !important;
}
.btn.warning,
button.warning{
  background:linear-gradient(180deg,var(--warning-600) 0%,var(--warning-700) 100%) !important;
  border-color:#793e31 !important;
  box-shadow:0 8px 18px rgba(138,73,57,.16) !important;
}

.dashboard-operativa{
  max-width:none !important;
  width:100% !important;
}
.dashboard-hero{
  position:relative !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 92% -25%,rgba(255,255,255,.14),transparent 20rem),
    linear-gradient(135deg,var(--brand-900) 0%,var(--brand-700) 100%) !important;
  border:1px solid rgba(255,255,255,.07) !important;
  box-shadow:0 18px 38px rgba(23,36,59,.18) !important;
}
.dashboard-hero-has-watermark::before{
  content:"";
  position:absolute;
  right:26px;
  bottom:20px;
  width:132px;
  height:92px;
  background:url('/assets/img/mercantico-logo.png?v=20260726-v17') center/contain no-repeat;
  opacity:.07;
  filter:grayscale(1) brightness(2.4);
  pointer-events:none;
}
.dashboard-hero-watermark{
  display:none !important;
}
.dashboard-search > div{
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.14) !important;
}
.dashboard-search input{
  background:#fff !important;
}
.dashboard-action,
.dashboard-kpi,
.dashboard-task,
.dashboard-booking-row{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  border-color:var(--line) !important;
}
.dashboard-action.primary,
.dashboard-action.sale{
  background:linear-gradient(180deg,#ffffff 0%,#f4f7fb 100%) !important;
  border-color:#cdd7e5 !important;
}
.dashboard-action-icon,
.dashboard-action:nth-child(3n+2) .dashboard-action-icon,
.dashboard-action:nth-child(3n) .dashboard-action-icon,
.dashboard-action.primary .dashboard-action-icon,
.dashboard-action.sale .dashboard-action-icon{
  background:linear-gradient(145deg,var(--brand-700) 0%,var(--brand-900) 100%) !important;
  box-shadow:0 9px 20px rgba(23,36,59,.16) !important;
}
.dashboard-kpi::before{
  background:linear-gradient(180deg,var(--brand-600),var(--brand-800)) !important;
}
.dashboard-task.has-items{
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%) !important;
  border-color:#cbd5e3 !important;
}
.dashboard-task.has-items > b,
.dashboard-bookings-summary > b{
  background:linear-gradient(180deg,var(--brand-700) 0%,var(--brand-900) 100%) !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(23,36,59,.14) !important;
}
.dashboard-task.task-expired.has-items{
  background:linear-gradient(180deg,#fffafa 0%,var(--warning-100) 100%) !important;
  border-color:#e2b7ab !important;
}
.dashboard-task.task-expired.has-items > b{
  background:linear-gradient(180deg,var(--warning-600) 0%,var(--warning-700) 100%) !important;
  box-shadow:0 8px 18px rgba(138,73,57,.17) !important;
}
.dashboard-task.task-expired.has-items strong{
  color:#78392e !important;
}
.dashboard-task.task-pickup.has-items{
  background:linear-gradient(180deg,#fbfefe 0%,var(--success-100) 100%) !important;
  border-color:#b9d9d5 !important;
}
.dashboard-task.task-pickup.has-items > b{
  background:linear-gradient(180deg,var(--success-600) 0%,var(--success-700) 100%) !important;
}

.single-shop-logo .admin-brand-label{
  color:#fff !important;
  font-weight:800 !important;
}
.single-shop-logo .only-shop-tile{
  width:92px !important;
  height:92px !important;
  border-radius:22px !important;
}
.mobile-brand.single-shop-logo .only-shop-tile{
  width:46px !important;
  height:46px !important;
  border-radius:13px !important;
}
.single-shop-logo .admin-logo-divider,
.single-shop-logo .mercantico-tile,
.single-shop-logo .mercantico-brand-logo{
  display:none !important;
}
.side-footer{color:rgba(255,255,255,.72) !important;}
.side-footer b{color:#fff !important;}

@media(max-width:760px){
  .dashboard-hero-has-watermark::before{
    width:84px;
    height:60px;
    right:14px;
    bottom:12px;
    opacity:.055;
  }
}

.cliente-operativo{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.cliente-operativo .panel,
.cliente-operativo .cliente-toolbar-principale,
.cliente-operativo .cliente-meta-compatta{
  border:1px solid #d8dfeb !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%) !important;
  box-shadow:0 14px 32px rgba(22,34,56,.07) !important;
}

.cliente-toolbar-principale,
.cliente-meta-compatta{
  padding:18px 20px !important;
  margin-bottom:0 !important;
  border-top:0 !important;
  position:relative;
  overflow:hidden;
}
.cliente-toolbar-principale::before,
.cliente-meta-compatta::before,
.cliente-card-operativa::before,
.cliente-operativo .panel[id]::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--brand-900) 0%,var(--brand-600) 100%);
}
.cliente-toolbar-principale::after,
.cliente-meta-compatta::after{
  content:"";
  position:absolute;
  right:-30px;
  top:-30px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(59,82,119,.10),rgba(59,82,119,0) 66%);
  pointer-events:none;
}

.cliente-actions-title{
  margin:0 0 4px !important;
  color:var(--brand-900) !important;
  font-size:30px !important;
  font-weight:900 !important;
  letter-spacing:-.03em;
}
.cliente-meta-compatta .cliente-actions-title,
.cliente-toolbar-principale .cliente-actions-title{
  font-size:18px !important;
}
.cliente-actions-help{
  margin:0 0 14px !important;
  color:var(--muted) !important;
  font-weight:700 !important;
  line-height:1.45;
}

.cliente-actions-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
}
.cliente-secondary-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  width:100% !important;
  align-items:stretch !important;
}
.cliente-secondary-grid > .btn,
.cliente-secondary-grid > .inline-form,
.cliente-secondary-grid > a,
.cliente-secondary-grid > button{
  flex:0 0 auto;
}

.cliente-toolbar .tool-btn,
.cliente-toolbar a.tool-btn,
.cliente-toolbar button.tool-btn{
  min-width:0 !important;
  min-height:112px !important;
  padding:16px 14px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f5f7fc 100%) !important;
  border:1px solid #d7deea !important;
  color:var(--brand-800) !important;
  box-shadow:0 10px 24px rgba(21,33,54,.08) !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  text-align:left !important;
  gap:10px !important;
}
.cliente-toolbar .tool-btn span{
  font-size:22px !important;
  width:46px;
  height:46px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eff3fb,#e6ecf8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.cliente-toolbar .tool-btn b{
  font-size:17px !important;
  line-height:1.15;
  font-weight:900 !important;
}
.cliente-toolbar .tool-btn.primary{
  background:linear-gradient(145deg,var(--brand-700) 0%,var(--brand-900) 100%) !important;
  border-color:rgba(40,51,79,.15) !important;
  color:#fff !important;
}
.cliente-toolbar .tool-btn.primary span{
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}
.cliente-toolbar .tool-btn:hover,
.cliente-toolbar a.tool-btn:hover,
.cliente-toolbar button.tool-btn:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 16px 30px rgba(21,33,54,.12) !important;
  border-color:#bfc9d8 !important;
}
.cliente-toolbar .tool-btn.primary:hover{
  box-shadow:0 18px 34px rgba(23,36,59,.18) !important;
}
.cliente-toolbar .tool-btn.disabled{
  opacity:.55 !important;
}

.cliente-meta-compatta .btn,
.cliente-meta-compatta .inline-form button{
  min-height:46px !important;
  border-radius:14px !important;
  padding:10px 14px !important;
}
.cliente-meta-line{
  display:block !important;
  width:100%;
  margin:2px 0 0 !important;
  color:var(--muted) !important;
  font-size:12px !important;
}

.cliente-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 290px !important;
  gap:18px !important;
  align-items:start;
}
.cliente-main{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.cliente-card-operativa{
  position:relative;
  padding:22px !important;
  overflow:hidden;
}
.cliente-anagrafica-completa{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  align-items:stretch !important;
}
.cliente-anagrafica-completa .field-line,
#pannello-accesso-web .field-line{
  min-height:88px !important;
  padding:12px 13px !important;
  border-radius:16px !important;
  border:1px solid #e0e6f0 !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  gap:6px !important;
}
.cliente-anagrafica-completa .field-line.large{grid-column:span 2 !important;}
.cliente-anagrafica-completa .field-line.email-line{grid-column:span 3 !important;}
.cliente-anagrafica-completa .field-line label,
#pannello-accesso-web .field-line label{
  font-size:12px !important;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted) !important;
  font-weight:800 !important;
}
.cliente-anagrafica-completa .field-line b,
#pannello-accesso-web .field-line b{
  font-size:20px !important;
  line-height:1.18 !important;
  color:var(--brand-900) !important;
  font-weight:900 !important;
}
.cliente-anagrafica-completa .field-line.small b,
.cliente-anagrafica-completa .field-line.tiny b{
  font-size:16px !important;
}
.cliente-anagrafica-completa .field-line.codice b{
  color:var(--brand-700) !important;
}
.access-web-inline{
  min-height:88px;
  padding:12px 13px;
  border-radius:16px;
  border:1px solid #e0e6f0;
  background:linear-gradient(180deg,#f7f9fc 0%,#ffffff 100%);
}
.access-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.02em;
  background:#eef2f7;
}
.access-status.ok{background:var(--success-100);color:var(--success-700) !important;}
.access-status.ko{background:var(--danger-100);color:var(--danger-700) !important;}

.cliente-avvisi{
  margin-top:14px;
  padding:16px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#f8fafc 0%,#f3f6fb 100%) !important;
  border:1px solid #dde4ef !important;
}
.cliente-avvisi label{
  display:block;
  margin-bottom:8px;
  color:#1b2a45;
  font-weight:900;
}
.cliente-avvisi textarea{
  min-height:110px !important;
  border-radius:15px !important;
  background:#fff !important;
}

.cliente-bottom-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:14px !important;
}
.cliente-bottom-actions .btn,
.cliente-bottom-actions a.btn,
.cliente-bottom-actions .inline-form button{
  min-height:46px !important;
  border-radius:14px !important;
}

.cliente-operativo .panel > h2{
  margin:0 0 14px !important;
  color:var(--brand-900) !important;
  font-size:24px !important;
  font-weight:900 !important;
  letter-spacing:-.02em;
}
.cliente-operativo .panel.warning{
  border-color:#e6d3d9 !important;
  background:linear-gradient(180deg,#fff8fa 0%,#fffdfd 100%) !important;
}

.cliente-side-actions{
  position:sticky !important;
  top:84px !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
}
.cliente-operativo .side-action{
  border-radius:18px !important;
  border:1px solid #d7deea !important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  box-shadow:0 12px 26px rgba(22,34,56,.07) !important;
  padding:14px 15px !important;
}
.cliente-operativo .side-action.primary{
  border-left:1px solid #d7deea !important;
  background:linear-gradient(180deg,#ffffff 0%,#f5f7fa 100%) !important;
}
.cliente-operativo .side-action b{
  margin-bottom:6px !important;
  color:var(--brand-900) !important;
  font-size:16px !important;
  font-weight:900 !important;
}
.cliente-operativo .side-action span{
  color:#66748d !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.35;
}
.cliente-operativo .side-action:hover{
  transform:translateY(-2px);
  border-color:#c1cbde !important;
  box-shadow:0 16px 30px rgba(22,34,56,.11) !important;
}

.cliente-operativo .table-wrap{
  border:1px solid #dfe5ef;
  border-radius:18px;
  overflow:auto;
  background:#fff;
}
.cliente-operativo table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.cliente-operativo table th{
  position:sticky;
  top:0;
  background:#f5f7fb;
  color:#51617e;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  border-bottom:1px solid #e1e7f0;
}
.cliente-operativo table th,
.cliente-operativo table td{
  padding:12px 10px;
  vertical-align:top;
}
.cliente-operativo table tbody tr:nth-child(even){
  background:#fbfcfe;
}
.cliente-operativo table tbody tr:hover{
  background:#f4f8fb;
}

@media (max-width: 1180px){
  .cliente-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .cliente-layout{grid-template-columns:1fr !important;}
  .cliente-side-actions{position:static !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width: 900px){
  .cliente-anagrafica-completa{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .cliente-anagrafica-completa .field-line.large,
  .cliente-anagrafica-completa .field-line.email-line{grid-column:span 2 !important;}
}
@media (max-width: 760px){
  .cliente-toolbar-principale,
  .cliente-meta-compatta,
  .cliente-card-operativa,
  .cliente-operativo .panel{padding:16px !important; border-radius:20px !important;}
  .cliente-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .cliente-secondary-grid{display:grid !important; grid-template-columns:1fr !important;}
  .cliente-secondary-grid > *{width:100% !important;}
  .cliente-side-actions{grid-template-columns:1fr !important;}
}
@media (max-width: 560px){
  .cliente-anagrafica-completa{grid-template-columns:1fr !important;}
  .cliente-anagrafica-completa .field-line.large,
  .cliente-anagrafica-completa .field-line.email-line{grid-column:auto !important;}
  .cliente-actions-grid{grid-template-columns:1fr !important;}
  .cliente-toolbar .tool-btn,
  .cliente-toolbar a.tool-btn,
  .cliente-toolbar button.tool-btn{min-height:92px !important;}
}

:root{
  --v18-navy-950:#12243d;
  --v18-navy-900:#172b49;
  --v18-navy-800:#203b60;
  --v18-navy-700:#2d5076;
  --v18-teal-700:#286670;
  --v18-teal-600:#347681;
  --v18-burgundy-700:#8f3046;
  --v18-burgundy-800:#74243a;
  --v18-success-700:#197460;
  --v18-page:#eef2f7;
  --v18-surface:#ffffff;
  --v18-line:#d7dfeb;
  --v18-line-strong:#c4cfdf;
  --v18-ink:#17243c;
  --v18-muted:#62708a;
  --v18-shadow:0 12px 30px rgba(24,38,64,.08);
  --v18-primary-gradient:linear-gradient(135deg,var(--v18-navy-900) 0%,var(--v18-navy-700) 100%);
  --v18-primary-gradient-hover:linear-gradient(135deg,#1c3558 0%,#376087 100%);
  --v18-soft-gradient:linear-gradient(180deg,#ffffff 0%,#f3f6fa 100%);
}

html,body{background:var(--v18-page)!important;color:var(--v18-ink)!important}
body.mercantico-admin{
  background:radial-gradient(circle at 8% -8%,rgba(40,102,112,.07),transparent 25rem),linear-gradient(180deg,#edf2f7 0%,#f7f9fc 100%)!important;
}

@media (min-width:981px){
  .side{width:300px!important;padding:12px 12px 0!important}
  .main{margin-left:0!important;margin-right:300px!important;width:auto!important;max-width:none!important;min-width:0!important}
  .main>.panel,.main>section,.main>form,.main>.grid,.main>.table-wrap,.main>.dashboard-operativa,.main>.cliente-operativo,.main>.mandato-workspace{
    width:auto!important;max-width:none!important;margin-left:18px!important;margin-right:18px!important
  }
  .dashboard-operativa{max-width:none!important}
}

.main>h1{
  background:linear-gradient(135deg,var(--v18-navy-950) 0%,var(--v18-navy-800) 68%,var(--v18-teal-700) 100%)!important;
  border:0!important;border-radius:0 0 22px 22px!important;box-shadow:0 12px 30px rgba(18,36,61,.16)!important;color:#fff!important
}
.main>h1::after{border-color:rgba(255,255,255,.07)!important}
.panel::before,.cliente-toolbar-principale::before,.cliente-meta-compatta::before,.cliente-card-operativa::before,.cliente-operativo .panel[id]::before{
  background:linear-gradient(90deg,var(--v18-navy-800),var(--v18-teal-600))!important
}
.panel,.dashboard-panel,.dashboard-action,.dashboard-kpi,.dashboard-task,.dashboard-booking-row,.cliente-operativo .panel,.cliente-operativo .side-action{
  border-color:var(--v18-line)!important;background:var(--v18-surface)!important;box-shadow:var(--v18-shadow)!important
}

button,.btn,input[type="submit"],input[type="button"],a.btn,.quick-actions a,.quick-sale,.quick-move,.dashboard-search button,.mobile-sale,.mobile-qr{
  background:var(--v18-primary-gradient)!important;color:#fff!important;border:1px solid rgba(19,45,78,.24)!important;border-radius:12px!important;
  box-shadow:0 8px 18px rgba(24,52,87,.16)!important;text-shadow:none!important;font-weight:800!important;line-height:1.2!important
}
button:hover,.btn:hover,input[type="submit"]:hover,input[type="button"]:hover,a.btn:hover,.quick-actions a:hover,.dashboard-search button:hover,.mobile-sale:hover,.mobile-qr:hover{
  background:var(--v18-primary-gradient-hover)!important;box-shadow:0 12px 24px rgba(24,52,87,.22)!important;transform:translateY(-1px)!important;filter:none!important
}
.btn.soft,button.soft,a.btn.soft,.cliente-subtoolbar .btn,.cliente-azioni-secondarie .btn{
  background:var(--v18-soft-gradient)!important;color:#243754!important;border:1px solid var(--v18-line-strong)!important;box-shadow:0 5px 12px rgba(25,39,65,.07)!important;text-shadow:none!important
}
.btn.soft:hover,button.soft:hover,a.btn.soft:hover,.cliente-subtoolbar .btn:hover,.cliente-azioni-secondarie .btn:hover{
  background:linear-gradient(180deg,#fff 0%,#eaf0f6 100%)!important;color:#162a47!important;border-color:#aebdd0!important
}
.btn.danger,button.danger,.danger,.btn.warning,button.warning{
  background:linear-gradient(135deg,var(--v18-burgundy-700),var(--v18-burgundy-800))!important;border-color:rgba(112,31,54,.35)!important;box-shadow:0 8px 18px rgba(126,38,61,.17)!important
}
.btn.success,button.success{
  background:linear-gradient(135deg,var(--v18-success-700),var(--v18-teal-700))!important;border-color:rgba(22,102,83,.32)!important;box-shadow:0 8px 18px rgba(25,116,96,.16)!important
}

.side{
  background:linear-gradient(180deg,#16263d 0%,#101d31 58%,#0c1727 100%)!important;border-left:1px solid rgba(255,255,255,.08)!important;
  box-shadow:-14px 0 34px rgba(10,21,37,.20)!important;overflow:hidden!important
}
.side::before{
  content:""!important;position:absolute!important;left:32px!important;right:32px!important;top:175px!important;height:250px!important;width:auto!important;
  background-image:url('/assets/img/mercantico-logo.png?v=v18')!important;background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;
  opacity:.065!important;filter:grayscale(1) brightness(2.25)!important;transform:none!important;pointer-events:none!important
}
.side .admin-mercantico-brand{
  min-height:96px!important;margin:4px 5px 12px!important;padding:10px 12px!important;border-radius:20px!important;background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.12)!important;box-shadow:none!important
}
.side .only-shop-tile,.side .shop-tile{width:108px!important;height:78px!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 20px rgba(0,0,0,.16)!important}
.side .shop-brand-logo{max-width:88%!important;max-height:88%!important;object-fit:contain!important}
.side-nav-accordion{position:relative!important;z-index:2!important;padding:0 2px 10px!important}
.side-nav-group{margin:0 3px 10px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:15px!important;background:rgba(255,255,255,.035)!important;overflow:hidden!important}
.side-nav-group>summary,.side-nav-group-heading{
  min-height:45px!important;padding:11px 13px!important;color:#c8d5e7!important;font-size:12px!important;line-height:1.25!important;letter-spacing:.055em!important;
  white-space:normal!important;cursor:pointer!important
}
.side-nav-group>summary{display:grid!important;grid-template-columns:minmax(0,1fr) 22px!important;align-items:center!important}
.side-nav-group>summary span:first-child,.side-nav-group-heading span:first-child{
  min-width:0!important;overflow:visible!important;white-space:normal!important;word-break:normal!important
}
.side-nav-group .side-nav-links{padding:6px 7px 8px!important}
.side-nav-group:not([open])>.side-nav-links{display:none!important}
.side-nav-group[open]>.side-nav-links,.side-nav-group-fixed>.side-nav-links{display:block!important}
.side-nav a,.side-nav-links>a{
  display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:52px!important;margin:4px 0!important;
  padding:7px 10px!important;border-radius:13px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.05)!important;box-shadow:none!important;transform:none!important
}
.side-nav a .ico,.side-nav-links>a .ico{
  width:38px!important;min-width:38px!important;height:38px!important;border-radius:11px!important;background:rgba(255,255,255,.09)!important;
  border:1px solid rgba(255,255,255,.08)!important;font-size:21px!important
}
.side-nav a span:not(.ico),.side-nav-links>a span:not(.ico){
  display:block!important;min-width:0!important;width:auto!important;color:#f6f8fb!important;font-size:14px!important;line-height:1.25!important;font-weight:800!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important
}
.side-nav a:hover,.side-nav-links>a:hover{background:rgba(45,80,118,.34)!important;border-color:rgba(255,255,255,.12)!important}
.side-nav a.active,.side-nav-links>a.active{
  background:linear-gradient(135deg,#27496f,#31667a)!important;border-color:rgba(255,255,255,.16)!important;box-shadow:inset 4px 0 0 #e6edf5!important
}
.side-nav a.active .ico,.side-nav-links>a.active .ico{background:#fff!important;color:#183151!important}
.side-footer{color:rgba(255,255,255,.76)!important}
.side-permanent-actions{background:#0a1422!important;border-top:1px solid rgba(255,255,255,.10)!important;box-shadow:0 -8px 20px rgba(0,0,0,.20)!important}
.side-permanent-vetrina{background:linear-gradient(135deg,#253a57,#314c69)!important}
.side-permanent-exit{background:linear-gradient(135deg,var(--v18-burgundy-700),var(--v18-burgundy-800))!important}

.dashboard-operativa{max-width:none!important}
.dashboard-hero{
  background:linear-gradient(135deg,var(--v18-navy-950) 0%,var(--v18-navy-800) 70%,var(--v18-teal-700) 100%)!important;border-radius:24px!important;
  box-shadow:0 18px 38px rgba(18,36,61,.18)!important
}
.dashboard-hero-watermark{
  width:clamp(130px,20vw,220px)!important;max-width:24%!important;right:18px!important;bottom:10px!important;opacity:.09!important;transform:rotate(-6deg)!important;
  filter:grayscale(.35) brightness(1.35) contrast(1.05)!important;mix-blend-mode:screen!important;overflow:hidden!important
}
.dashboard-hero-watermark img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important}
.dashboard-action-icon,.dashboard-action:nth-child(3n+2) .dashboard-action-icon,.dashboard-action:nth-child(3n) .dashboard-action-icon,.dashboard-action.primary .dashboard-action-icon,.dashboard-action.sale .dashboard-action-icon{
  background:var(--v18-primary-gradient)!important
}
.dashboard-kpi::before{background:linear-gradient(180deg,var(--v18-navy-700),var(--v18-teal-600))!important}
.dashboard-task.task-scaduti.has-items{border-color:#e5bdc6!important;background:linear-gradient(135deg,#fff8fa 0%,#fff 100%)!important}
.dashboard-task.task-scaduti.has-items>b{background:linear-gradient(135deg,var(--v18-burgundy-700),var(--v18-burgundy-800))!important;color:#fff!important;box-shadow:0 7px 16px rgba(126,38,61,.16)!important}
.dashboard-task.task-liquidazioni.has-items>b,.dashboard-task.task-ritiro.has-items>b,.dashboard-bookings-summary>b{background:var(--v18-primary-gradient)!important;color:#fff!important}

.cliente-actions-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important}
.cliente-toolbar .tool-btn,.cliente-toolbar a.tool-btn,.cliente-toolbar button.tool-btn{
  min-width:0!important;min-height:78px!important;padding:12px 14px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;
  justify-content:stretch!important;gap:11px!important;text-align:left!important;border-radius:16px!important;background:var(--v18-soft-gradient)!important;color:#223653!important;
  border:1px solid var(--v18-line-strong)!important;box-shadow:0 7px 16px rgba(24,38,64,.07)!important
}
.cliente-toolbar .tool-btn.primary{background:var(--v18-primary-gradient)!important;color:#fff!important;border-color:rgba(19,45,78,.24)!important}
.cliente-toolbar .tool-btn span{
  width:42px!important;height:42px!important;font-size:21px!important;border-radius:11px!important;display:flex!important;align-items:center!important;justify-content:center!important
}
.cliente-toolbar .tool-btn.primary span{background:rgba(255,255,255,.12)!important}
.cliente-toolbar .tool-btn b{
  min-width:0!important;font-size:15px!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important
}
.cliente-secondary-grid{display:flex!important;flex-wrap:wrap!important;gap:9px!important}
.cliente-secondary-grid .btn,.cliente-secondary-grid .inline-form button{min-height:42px!important;padding:9px 13px!important}

.documento-fieldset,.cliente-fieldset{min-width:0!important;overflow:visible!important}
.documento-autofill-box{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:0!important;
  margin-bottom:14px!important;padding:15px!important;border:1px solid #cbd8df!important;border-left:4px solid var(--v18-teal-700)!important;border-radius:14px!important;background:#f8fbfc!important
}
.documento-autofill-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;width:100%!important;min-width:0!important}
.documento-autofill-actions .btn{flex:0 1 auto!important;min-width:220px!important;min-height:44px!important}
.documento-autofill-box p{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;color:var(--v18-muted)!important;font-size:14px!important;line-height:1.5!important;
  white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important
}
.documento-scan-status{width:100%!important;grid-column:auto!important}
.cliente-fieldset-grid{width:100%!important;min-width:0!important}

.cliente-layout,.cliente-main,.mandato-workspace,.mandato-articoli-panel,.articoli-cliente-panel,.mandati-cliente-panel{max-width:none!important;min-width:0!important}
.mandate-head-actions .btn,.mandato-bulk-actions .btn{white-space:normal!important;text-align:center!important}

@media(max-width:1180px){.cliente-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:980px){.side{width:min(88vw,340px)!important}.main{margin-right:0!important;max-width:none!important}}
@media(max-width:700px){
  .cliente-actions-grid{grid-template-columns:1fr!important}
  .documento-autofill-actions{display:grid!important;grid-template-columns:1fr!important}
  .documento-autofill-actions .btn{width:100%!important;min-width:0!important}
  .dashboard-hero-watermark{max-width:34%!important;opacity:.07!important}
}

#adminSide{
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
#adminSide > .brand,
#adminSide > .side-footer,
#adminSide > .side-permanent-actions{flex:0 0 auto !important;}

#adminSide #mcSideNav.mc-side-nav{
  position:relative !important;
  z-index:3 !important;
  display:flex !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  flex-direction:column !important;
  gap:7px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 6px 10px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(255,255,255,.28) transparent !important;
}
#adminSide #mcSideNav::-webkit-scrollbar{width:7px !important;}
#adminSide #mcSideNav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25) !important;border-radius:999px !important;}

#adminSide #mcSideNav .mc-menu-block{
  position:relative !important;
  display:block !important;
  flex:0 0 auto !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.035) !important;
  box-shadow:none !important;
}

#adminSide #mcSideNav .mc-menu-title{
  display:block !important;
  width:auto !important;
  min-height:29px !important;
  padding:8px 10px 4px !important;
  color:rgba(227,235,246,.78) !important;
  background:transparent !important;
  border:0 !important;
  font-size:10px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:.075em !important;
  text-transform:uppercase !important;
}

#adminSide #mcSideNav .mc-menu-toggle{
  appearance:none !important;
  -webkit-appearance:none !important;
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 24px !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  min-height:42px !important;
  height:auto !important;
  margin:0 !important;
  padding:9px 10px !important;
  border:0 !important;
  border-radius:13px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025)) !important;
  color:#eef3fb !important;
  box-shadow:none !important;
  text-align:left !important;
  text-transform:none !important;
  text-shadow:none !important;
  font-family:inherit !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  cursor:pointer !important;
  transform:none !important;
}
#adminSide #mcSideNav .mc-menu-toggle:hover,
#adminSide #mcSideNav .mc-menu-toggle:focus-visible{
  background:linear-gradient(135deg,rgba(48,82,120,.62),rgba(40,102,112,.36)) !important;
  outline:none !important;
  transform:none !important;
}
#adminSide #mcSideNav .mc-menu-toggle > span:first-child{
  display:block !important;
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:inherit !important;
  background:none !important;
  border:0 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
#adminSide #mcSideNav .mc-menu-arrow{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:24px !important;
  min-width:24px !important;
  height:24px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
  font-size:14px !important;
  line-height:1 !important;
  transition:transform .16s ease !important;
}
#adminSide #mcSideNav .mc-menu-collapsible.is-open > .mc-menu-toggle{
  background:linear-gradient(135deg,rgba(43,78,116,.68),rgba(40,102,112,.42)) !important;
}
#adminSide #mcSideNav .mc-menu-collapsible.is-open > .mc-menu-toggle .mc-menu-arrow{transform:rotate(180deg) !important;}

#adminSide #mcSideNav .mc-menu-panel{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin:0 !important;
  padding:0 !important;
}
#adminSide #mcSideNav .mc-menu-panel[hidden]{display:none !important;}

#adminSide #mcSideNav .mc-menu-links{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
  padding:2px 6px 7px !important;
  overflow:visible !important;
}
#adminSide #mcSideNav .mc-menu-collapsible .mc-menu-links{padding-top:5px !important;}

#adminSide #mcSideNav .mc-menu-links > a{
  position:relative !important;
  display:grid !important;
  grid-template-columns:30px minmax(0,1fr) !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
  min-width:0 !important;
  min-height:38px !important;
  height:auto !important;
  margin:3px 0 !important;
  padding:4px 8px !important;
  border:1px solid rgba(255,255,255,.075) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.045) !important;
  color:#f4f7fb !important;
  box-shadow:none !important;
  text-decoration:none !important;
  transform:none !important;
}
#adminSide #mcSideNav .mc-menu-links > a:hover{
  background:rgba(55,91,129,.38) !important;
  border-color:rgba(255,255,255,.14) !important;
  transform:none !important;
}
#adminSide #mcSideNav .mc-menu-links > a.active{
  background:linear-gradient(135deg,#31577c,#347681) !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:inset 4px 0 0 #f3f6fb !important;
}
#adminSide #mcSideNav .mc-menu-links > a .ico{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  min-width:30px !important;
  height:30px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.09) !important;
  font-size:16px !important;
  line-height:1 !important;
}
#adminSide #mcSideNav .mc-menu-links > a > span:not(.ico){
  display:block !important;
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:inherit !important;
  font-size:12px !important;
  line-height:1.15 !important;
  font-weight:850 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:normal !important;
}

.cliente-operativo .mc-client-actions{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:10px !important;
  width:100% !important;
  margin-top:12px !important;
  align-items:stretch !important;
}
.cliente-operativo .mc-client-action{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:grid !important;
  grid-template-columns:40px minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  min-height:62px !important;
  height:auto !important;
  margin:0 !important;
  padding:10px 12px !important;
  border:1px solid #cbd7e7 !important;
  border-radius:15px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f4f7fb 100%) !important;
  color:#20344f !important;
  box-shadow:0 7px 16px rgba(24,38,64,.07) !important;
  text-align:left !important;
  text-decoration:none !important;
  text-transform:none !important;
  text-shadow:none !important;
  font-family:inherit !important;
  cursor:pointer !important;
  overflow:visible !important;
  transform:none !important;
}
.cliente-operativo .mc-client-action:hover{
  background:linear-gradient(180deg,#fff 0%,#eaf1f8 100%) !important;
  border-color:#aebfd3 !important;
  transform:translateY(-1px) !important;
}
.cliente-operativo .mc-client-action.is-primary{
  background:linear-gradient(135deg,#172b49 0%,#2d5076 100%) !important;
  border-color:#233f64 !important;
  color:#fff !important;
}
.cliente-operativo .mc-client-action.is-primary:hover{
  background:linear-gradient(135deg,#1c3558 0%,#376087 100%) !important;
}
.cliente-operativo .mc-client-action.is-disabled{
  opacity:.55 !important;
  cursor:not-allowed !important;
}
.cliente-operativo .mc-client-action-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:40px !important;
  min-width:40px !important;
  max-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  max-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:11px !important;
  background:#edf2fa !important;
  font-size:19px !important;
  line-height:1 !important;
}
.cliente-operativo .mc-client-action.is-primary .mc-client-action-icon{background:rgba(255,255,255,.13) !important;}
.cliente-operativo .mc-client-action-label{
  display:block !important;
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:inherit !important;
  background:none !important;
  border:0 !important;
  font-size:14px !important;
  line-height:1.18 !important;
  font-weight:900 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}

@media(max-width:1250px){
  .cliente-operativo .mc-client-actions{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:800px){
  .cliente-operativo .mc-client-actions{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:560px){
  .cliente-operativo .mc-client-actions{grid-template-columns:1fr !important;}
}

@media (min-width:981px){
  html,body.mercantico-admin{overflow-x:hidden !important;}

  #adminSide{
    right:0 !important;
    left:auto !important;
    width:300px !important;
    max-width:300px !important;
    box-sizing:border-box !important;
  }

  body.mercantico-admin > main.main,
  body.mercantico-admin .main{
    margin-left:0 !important;
    margin-right:300px !important;
    width:calc(100% - 300px) !important;
    max-width:calc(100% - 300px) !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }

  body.mercantico-admin .main > h1{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  body.mercantico-admin .main > .dashboard-operativa,
  body.mercantico-admin .main > .cliente-operativo,
  body.mercantico-admin .main > .mandato-workspace,
  body.mercantico-admin .main > .panel,
  body.mercantico-admin .main > section,
  body.mercantico-admin .main > form,
  body.mercantico-admin .main > .grid,
  body.mercantico-admin .main > .table-wrap{
    width:calc(100% - 36px) !important;
    max-width:calc(100% - 36px) !important;
    min-width:0 !important;
    margin-left:18px !important;
    margin-right:18px !important;
    box-sizing:border-box !important;
  }
}

body.mercantico-admin .main :where(
  .dashboard-operativa,
  .dashboard-hero,
  .dashboard-hero-copy,
  .dashboard-search,
  .dashboard-search > div,
  .dashboard-bookings-priority,
  .dashboard-action-grid,
  .dashboard-kpi-grid,
  .dashboard-lower-grid,
  .dashboard-panel,
  .cliente-operativo,
  .cliente-layout,
  .cliente-main,
  .cliente-toolbar-principale,
  .cliente-meta-compatta,
  .cliente-card-operativa,
  .mandato-workspace,
  .panel,
  .grid
){
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.mercantico-admin .main input,
body.mercantico-admin .main select,
body.mercantico-admin .main textarea{
  max-width:100% !important;
  min-width:0 !important;
}

.dashboard-hero.mc-dashboard-hero-v27{
  position:relative !important;
  isolation:isolate !important;
  overflow:hidden !important;
}
.dashboard-hero.mc-dashboard-hero-v27::before{
  content:"" !important;
  position:absolute !important;
  right:24px !important;
  bottom:-20px !important;
  left:auto !important;
  top:auto !important;
  width:190px !important;
  height:190px !important;
  max-width:22% !important;
  max-height:82% !important;
  background-image:var(--mc-dashboard-watermark) !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  opacity:.075 !important;
  filter:grayscale(.35) brightness(1.45) contrast(1.05) !important;
  transform:rotate(-8deg) !important;
  transform-origin:center !important;
  pointer-events:none !important;
  z-index:0 !important;
}
.dashboard-hero.mc-dashboard-hero-v27 > *{
  position:relative !important;
  z-index:1 !important;
}

.dashboard-hero.mc-dashboard-hero-v27 .dashboard-hero-watermark,
.dashboard-hero .dashboard-hero-watermark{
  display:none !important;
  width:0 !important;
  height:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
}

@media (min-width:981px){
  .dashboard-hero.mc-dashboard-hero-v27{
    grid-template-columns:minmax(0,1fr) minmax(280px,42%) !important;
    gap:22px !important;
  }
  .dashboard-hero.mc-dashboard-hero-v27 .dashboard-search{
    width:100% !important;
    max-width:100% !important;
  }
  .dashboard-hero.mc-dashboard-hero-v27 .dashboard-search > div{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    width:100% !important;
    max-width:100% !important;
  }
  .dashboard-hero.mc-dashboard-hero-v27 .dashboard-search input{
    width:100% !important;
    min-width:0 !important;
  }
  .dashboard-hero.mc-dashboard-hero-v27 .dashboard-search button{
    width:auto !important;
    min-width:88px !important;
    max-width:120px !important;
    white-space:nowrap !important;
  }
}

#adminSide > .side-footer{
  flex:0 0 auto !important;
  margin:5px 10px 0 !important;
  padding:8px 6px 6px !important;
  border-top:1px solid rgba(255,255,255,.11) !important;
  color:rgba(255,255,255,.72) !important;
  font-size:10px !important;
  line-height:1.22 !important;
  text-align:center !important;
}
#adminSide > .side-footer b{
  display:block !important;
  margin-bottom:1px !important;
  color:#fff !important;
  font-size:12px !important;
  line-height:1.1 !important;
}

#adminSide > .side-permanent-actions{
  flex:0 0 auto !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
  width:auto !important;
  margin:0 !important;
  padding:8px 10px 11px !important;
  background:#0d192a !important;
  border-top:0 !important;
  box-shadow:none !important;
}
#adminSide > .side-permanent-actions > a{
  appearance:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  min-width:0 !important;
  min-height:39px !important;
  height:39px !important;
  margin:0 !important;
  padding:7px 10px !important;
  border-radius:10px !important;
  color:#fff !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:850 !important;
  text-decoration:none !important;
  text-shadow:none !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10) !important;
  transform:none !important;
}
#adminSide > .side-permanent-actions > a:hover{
  transform:none !important;
  filter:brightness(1.08) !important;
}
#adminSide > .side-permanent-actions .ico{
  display:inline-flex !important;
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
  font-size:16px !important;
  line-height:1 !important;
}
#adminSide > .side-permanent-actions .side-permanent-vetrina{
  background:linear-gradient(135deg,#263d5b,#31577a) !important;
  border:1px solid rgba(255,255,255,.16) !important;
}
#adminSide > .side-permanent-actions .side-permanent-exit{
  background:linear-gradient(135deg,#8c3045,#732337) !important;
  border:1px solid rgba(255,255,255,.12) !important;
}

@media (max-width:980px){
  .dashboard-hero.mc-dashboard-hero-v27::before{
    right:12px !important;
    bottom:-12px !important;
    width:145px !important;
    height:145px !important;
    max-width:34% !important;
    opacity:.065 !important;
  }
  body.mercantico-admin .main{
    width:100% !important;
    max-width:100% !important;
    margin-right:0 !important;
  }
}

@media (min-width:981px){
  body.mercantico-admin .main{
    margin-right:300px !important;
    width:calc(100% - 300px) !important;
    max-width:calc(100% - 300px) !important;
    overflow-x:hidden !important;
  }
  body.mercantico-admin .main > *{
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}
#adminSide{
  width:300px !important;
  max-width:300px !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
#adminSide .brand{flex:0 0 auto !important;}
#adminSide .brand .admin-logo-tile{min-height:74px !important;}
#adminSide .brand img{max-height:56px !important; width:auto !important; object-fit:contain !important;}
#adminSide .v28-side-nav{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:0 10px 10px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(255,255,255,.25) transparent !important;
}
#adminSide .v28-side-nav::-webkit-scrollbar{width:7px !important;}
#adminSide .v28-side-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22) !important;border-radius:999px !important;}
#adminSide .v28-menu-group{
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.035) !important;
  overflow:hidden !important;
  flex:0 0 auto !important;
}
#adminSide .v28-menu-title{
  padding:12px 14px 6px !important;
  color:rgba(229,236,245,.8) !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
}
#adminSide .v28-menu-toggle{
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 30px !important;
  align-items:center !important;
  gap:8px !important;
  padding:12px 14px !important;
  border:0 !important;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03)) !important;
  color:#f4f7fb !important;
  font-size:13px !important;
  font-weight:900 !important;
  text-align:left !important;
  cursor:pointer !important;
}
#adminSide .v28-menu-toggle .arrow{
  display:grid !important;
  place-items:center !important;
  width:24px !important;
  height:24px !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.12) !important;
  transition:transform .16s ease !important;
}
#adminSide .v28-collapsible.is-open > .v28-menu-toggle .arrow{transform:rotate(180deg) !important;}
#adminSide .v28-menu-panel{display:none !important; padding:0 8px 8px !important;}
#adminSide .v28-menu-panel.is-open{display:block !important;}
#adminSide .v28-menu-links{display:flex !important; flex-direction:column !important; gap:6px !important;}
#adminSide .v28-menu-links a{
  display:grid !important;
  grid-template-columns:32px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  min-height:42px !important;
  padding:6px 10px !important;
  border-radius:13px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:rgba(255,255,255,.04) !important;
  color:#f3f6fb !important;
  text-decoration:none !important;
}
#adminSide .v28-menu-links a:hover{background:rgba(53,89,127,.36) !important;}
#adminSide .v28-menu-links a.active{
  background:linear-gradient(135deg,#31577c,#347681) !important;
  box-shadow:inset 4px 0 0 #f3f6fb !important;
}
#adminSide .v28-menu-links a .ico{
  display:grid !important; place-items:center !important;
  width:32px !important; height:32px !important; border-radius:10px !important;
  background:rgba(255,255,255,.09) !important; font-size:16px !important;
}
#adminSide .v28-menu-links a span:not(.ico){font-size:12px !important; font-weight:850 !important; line-height:1.15 !important;}
#adminSide .v28-side-footer{
  flex:0 0 auto !important; margin:0 10px !important; padding:10px 0 8px !important;
  border-top:1px solid rgba(255,255,255,.11) !important; text-align:center !important;
  color:rgba(255,255,255,.75) !important; font-size:11px !important; line-height:1.25 !important;
}
#adminSide .v28-side-footer b{display:block !important; color:#fff !important; font-size:13px !important; margin-bottom:2px !important;}
#adminSide .v28-side-permanent-actions{
  flex:0 0 auto !important; display:grid !important; grid-template-columns:1fr 1fr !important; gap:10px !important;
  padding:10px !important; margin:0 !important; background:#0d192a !important;
}
#adminSide .v28-side-permanent-actions a{
  display:flex !important; align-items:center !important; justify-content:center !important; gap:8px !important;
  min-height:42px !important; border-radius:12px !important; font-size:13px !important; font-weight:850 !important; color:#fff !important; text-decoration:none !important;
}
#adminSide .v28-side-permanent-actions .side-permanent-vetrina{background:linear-gradient(135deg,#28415f,#31577a) !important; border:1px solid rgba(255,255,255,.14) !important;}
#adminSide .v28-side-permanent-actions .side-permanent-exit{background:linear-gradient(135deg,#8a3045,#732337) !important; border:1px solid rgba(255,255,255,.14) !important;}
#adminSide .v28-side-permanent-actions .ico{font-size:16px !important;}

.dashboard-hero-has-watermark::after{content:none !important;}
.dashboard-hero.mc-dashboard-hero-v27{
  position:relative !important; overflow:hidden !important; isolation:isolate !important;
}
.dashboard-hero.mc-dashboard-hero-v27::before{
  content:"" !important; position:absolute !important; right:28px !important; bottom:-8px !important;
  width:180px !important; height:180px !important; background-image:var(--mc-dashboard-watermark) !important;
  background-repeat:no-repeat !important; background-position:center !important; background-size:contain !important;
  opacity:.08 !important; transform:rotate(-8deg) !important; filter:grayscale(.3) brightness(1.35) !important;
  pointer-events:none !important; z-index:0 !important;
}
.dashboard-hero.mc-dashboard-hero-v27 > *{position:relative !important; z-index:1 !important;}
.dashboard-hero .dashboard-hero-watermark,
.dashboard-hero .dashboard-hero-brandrow,
.dashboard-hero .dashboard-platform-chip,
.dashboard-hero .dashboard-store-chip{display:none !important;}
.dashboard-hero.mc-dashboard-hero-v27 .dashboard-search{max-width:100% !important;}
.dashboard-hero.mc-dashboard-hero-v27 .dashboard-search > div{display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; gap:8px !important;}
.dashboard-hero.mc-dashboard-hero-v27 .dashboard-search input{min-width:0 !important; width:100% !important;}
.dashboard-hero.mc-dashboard-hero-v27 .dashboard-search button{white-space:nowrap !important; min-width:90px !important;}
@media (min-width:981px){
  .dashboard-hero.mc-dashboard-hero-v27{grid-template-columns:minmax(0,1fr) minmax(280px,40%) !important; gap:20px !important;}
}
@media (max-width:980px){
  #adminSide{width:320px !important; max-width:88vw !important;}
  .dashboard-hero.mc-dashboard-hero-v27::before{width:130px !important; height:130px !important; right:12px !important; bottom:-6px !important; opacity:.06 !important;}
}

#adminSide .v29-side-nav{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:0 10px 10px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(255,255,255,.26) transparent !important;
}
#adminSide .v29-side-nav::-webkit-scrollbar{width:7px !important;}
#adminSide .v29-side-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.23) !important;border-radius:999px !important;}
#adminSide .v29-menu-group{
  flex:0 0 auto !important;
  width:100% !important;
  min-width:0 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.035) !important;
  overflow:hidden !important;
}
#adminSide .v29-menu-title{
  padding:11px 13px 6px !important;
  color:rgba(229,236,245,.80) !important;
  font-size:10px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
}
#adminSide .v29-menu-check{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
#adminSide .v29-menu-toggle{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 28px !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-height:44px !important;
  margin:0 !important;
  padding:11px 13px !important;
  border:0 !important;
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025)) !important;
  color:#f4f7fb !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  text-align:left !important;
  cursor:pointer !important;
  user-select:none !important;
}
#adminSide .v29-menu-toggle:hover{
  background:linear-gradient(135deg,rgba(49,87,124,.58),rgba(52,118,129,.34)) !important;
}
#adminSide .v29-menu-toggle .arrow{
  display:grid !important;
  place-items:center !important;
  width:24px !important;
  height:24px !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.12) !important;
  transition:transform .16s ease !important;
}
#adminSide .v29-menu-panel{
  display:none !important;
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:0 8px 8px !important;
}
#adminSide .v29-menu-panel-open{display:block !important;}
#adminSide .v29-menu-check:checked + .v29-menu-toggle + .v29-menu-panel{
  display:block !important;
}
#adminSide .v29-menu-check:checked + .v29-menu-toggle{
  background:linear-gradient(135deg,rgba(43,78,116,.70),rgba(40,102,112,.44)) !important;
}
#adminSide .v29-menu-check:checked + .v29-menu-toggle .arrow{
  transform:rotate(180deg) !important;
}
#adminSide .v29-menu-links{
  display:flex !important;
  flex-direction:column !important;
  gap:5px !important;
  width:100% !important;
}
#adminSide .v29-menu-links > a{
  display:grid !important;
  grid-template-columns:32px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  min-height:40px !important;
  padding:5px 9px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.04) !important;
  color:#f4f7fb !important;
  text-decoration:none !important;
}
#adminSide .v29-menu-links > a:hover{background:rgba(55,91,129,.38) !important;}
#adminSide .v29-menu-links > a.active{
  background:linear-gradient(135deg,#31577c,#347681) !important;
  box-shadow:inset 4px 0 0 #f3f6fb !important;
}
#adminSide .v29-menu-links > a .ico{
  display:grid !important;
  place-items:center !important;
  width:32px !important;
  height:32px !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.09) !important;
  font-size:16px !important;
}
#adminSide .v29-menu-links > a span:not(.ico){
  min-width:0 !important;
  font-size:12px !important;
  line-height:1.15 !important;
  font-weight:850 !important;
  white-space:normal !important;
}

#adminSide{
  display:flex !important;
  flex-direction:column !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(255,255,255,.26) transparent !important;
}
#adminSide::-webkit-scrollbar{width:8px !important;}
#adminSide::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24) !important; border-radius:999px !important;}

#adminSide .v29-side-nav{
  flex:0 0 auto !important;
  min-height:auto !important;
  overflow:visible !important;
  padding-bottom:12px !important;
}
#adminSide .v29-side-nav::-webkit-scrollbar{display:none !important;}

#adminSide .v28-side-footer,
#adminSide .side-footer{
  flex:0 0 auto !important;
  margin-top:0 !important;
}
#adminSide .v28-side-permanent-actions,
#adminSide .side-permanent-actions{
  flex:0 0 auto !important;
  position:relative !important;
  bottom:auto !important;
}

#adminSide .v29-menu-check:checked + .v29-menu-toggle + .v29-menu-panel{
  padding-top:6px !important;
}
#adminSide .v29-menu-group{
  margin-bottom:2px !important;
}

@media (min-height: 820px){
  #adminSide .v29-menu-links > a{min-height:42px !important;}
}

.dashboard-hero.mc-dashboard-hero-v27::before{
  left:28px !important;
  right:auto !important;
  bottom:8px !important;
  top:auto !important;
  width:132px !important;
  height:132px !important;
  max-width:18% !important;
  max-height:68% !important;
  opacity:.055 !important;
  transform:rotate(-8deg) !important;
  transform-origin:center !important;
  background-position:left bottom !important;
  background-size:contain !important;
  filter:grayscale(.28) brightness(1.42) contrast(1.03) !important;
}

.dashboard-hero.mc-dashboard-hero-v27 .dashboard-search{
  position:relative !important;
  z-index:2 !important;
}

.dashboard-hero.mc-dashboard-hero-v27 .dashboard-hero-copy{
  position:relative !important;
  z-index:2 !important;
}

@media(max-width:980px){
  .dashboard-hero.mc-dashboard-hero-v27::before{
    left:14px !important;
    right:auto !important;
    bottom:6px !important;
    width:105px !important;
    height:105px !important;
    max-width:28% !important;
    max-height:55% !important;
    opacity:.05 !important;
  }
}

#adminSide .v29-menu-links > a,
#adminSide .v28-menu-links a,
#adminSide .v28-menu-links > a{
  grid-template-columns:40px minmax(0,1fr) !important;
  gap:10px !important;
  min-height:46px !important;
}

#adminSide .v29-menu-links > a .ico,
#adminSide .v28-menu-links a .ico,
#adminSide .v28-menu-links > a .ico{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  border-radius:12px !important;
  font-size:20px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18) !important;
}

#adminSide .v29-menu-links > a span:not(.ico),
#adminSide .v28-menu-links a span:not(.ico),
#adminSide .v28-menu-links > a span:not(.ico){
  font-size:12.5px !important;
}

#adminSide .v28-side-permanent-actions .ico,
#adminSide .side-permanent-actions .ico{
  font-size:18px !important;
}

@media (max-width: 980px){
  #adminSide .v29-menu-links > a,
  #adminSide .v28-menu-links a,
  #adminSide .v28-menu-links > a{
    grid-template-columns:42px minmax(0,1fr) !important;
    min-height:48px !important;
  }
  #adminSide .v29-menu-links > a .ico,
  #adminSide .v28-menu-links a .ico,
  #adminSide .v28-menu-links > a .ico{
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    font-size:21px !important;
  }
}

.vat-price-field{
  display:grid !important;
  gap:7px !important;
  align-content:start !important;
  min-width:0 !important;
}
.vat-price-field>span{
  font-weight:850 !important;
  color:#1f304a !important;
}
.vat-price-field>small{
  display:block !important;
  padding:8px 10px !important;
  border:1px solid #d6e0ed !important;
  border-radius:10px !important;
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fa 100%) !important;
  color:#5d6b80 !important;
  line-height:1.35 !important;
}
.vat-price-field>small b{color:#17304f !important;}
.vendite-cliente-panel .panel-title-row{
  align-items:flex-start !important;
  gap:14px !important;
}
.vendite-cliente-panel .panel-title-row h2{margin-bottom:4px !important;}
.vendite-cliente-panel table td,
.vendite-cliente-panel table th{white-space:nowrap;}
.vendite-cliente-panel table td:nth-child(5){white-space:normal;min-width:180px;}
@media(max-width:760px){
  .vat-price-field>small{font-size:12px !important;}
  .vendite-cliente-panel .panel-title-row{display:block !important;}
  .vendite-cliente-panel .panel-title-row .btn{margin-top:10px !important;}
}

.sale-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:210px}
.sale-row-actions form{display:inline-flex;margin:0}
.sale-row-actions .btn.small,.sale-row-actions button.small{min-height:34px!important;padding:7px 10px!important;font-size:12px!important;white-space:nowrap!important}
.sale-receipt-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
.sale-receipt-actions form{display:inline-flex;margin:0}
.sale-receipt-actions .danger{background:#8f3046!important;color:#fff!important;border:0!important;padding:10px 14px!important;border-radius:9px!important;font-weight:800!important;cursor:pointer!important}
@media(max-width:700px){.sale-row-actions{min-width:170px}.sale-row-actions .btn.small,.sale-row-actions button.small{width:auto!important}}

.sale-preview-open{overflow:hidden!important}
.sale-preview-modal[hidden]{display:none!important}
.sale-preview-modal{position:fixed;inset:0;z-index:100000;background:rgba(10,20,34,.72);display:grid;place-items:center;padding:22px}
.sale-preview-dialog{width:min(1180px,96vw);height:min(860px,94vh);background:#eef2f7;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.42);overflow:hidden;display:grid;grid-template-rows:52px minmax(0,1fr)}
.sale-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 12px 8px 18px;background:#172b49;color:#fff}
.sale-preview-toolbar strong{font-size:16px}
.sale-preview-close{width:38px;height:38px;border:0;border-radius:10px;background:rgba(255,255,255,.13);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.sale-preview-frame{width:100%;height:100%;border:0;background:#fff}

.sale-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sale-row-actions form{margin:0}
.sale-row-actions .btn,.sale-row-actions button.btn{min-height:34px!important;height:34px!important;padding:6px 10px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important}

.vendite-cliente-panel .table-wrap{overflow-x:auto}
.vendite-cliente-panel table{width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}
.vendite-cliente-panel th,.vendite-cliente-panel td{padding:7px 8px!important;vertical-align:middle;white-space:nowrap}
.vendite-cliente-panel th:nth-child(6),.vendite-cliente-panel td:nth-child(6){white-space:normal;min-width:180px}
.vendite-cliente-panel .sale-group-start td{padding-top:15px!important;padding-bottom:15px!important;border-top:3px solid #42a66f!important;background:linear-gradient(90deg,rgba(74,186,119,.10),rgba(255,255,255,0))}
.vendite-cliente-panel .sale-group-continuation td{border-top-color:#e6ebf2!important}
.vendite-cliente-panel .cliente-sale-actions{display:grid;grid-template-columns:1fr;gap:5px;min-width:112px}
.vendite-cliente-panel .cliente-sale-actions .btn,.vendite-cliente-panel .cliente-sale-actions button{width:100%;justify-content:center}

.sales-documents-table th,.sales-documents-table td{padding:7px 8px!important;vertical-align:middle;white-space:nowrap}
.sales-documents-table th:last-child,.sales-documents-table td:last-child{white-space:normal;min-width:140px}
.sales-documents-table .sale-row-actions{flex-direction:column;align-items:stretch;min-width:116px}
.sales-documents-table .sale-row-actions .btn,.sales-documents-table .sale-row-actions button{width:100%}

@media(max-width:760px){
  .sale-preview-modal{padding:7px}
  .sale-preview-dialog{width:100%;height:96vh;border-radius:13px;grid-template-rows:48px minmax(0,1fr)}
  .vendite-cliente-panel th,.vendite-cliente-panel td,.sales-documents-table th,.sales-documents-table td{font-size:12px}
}

.cart-price-form{display:flex;align-items:center;gap:6px;min-width:180px}
.cart-price-form input{width:98px!important;min-width:98px!important;height:36px!important;padding:6px 8px!important;font-weight:850!important}
.cart-price-form .btn{height:36px!important;min-height:36px!important;padding:6px 9px!important}
.cart-price-missing td{background:#fff7e8!important;border-top-color:#efc46f!important;border-bottom-color:#efc46f!important}
.cash-price-warning{padding:11px 13px;border:1px solid #e2b85e;border-radius:11px;background:#fff5dc;color:#734c00}
.actions-row button[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.25)}

.vendite-cliente-panel th:nth-child(1),.vendite-cliente-panel td:nth-child(1),
.vendite-cliente-panel th:nth-child(2),.vendite-cliente-panel td:nth-child(2),
.vendite-cliente-panel th:nth-child(3),.vendite-cliente-panel td:nth-child(3),
.vendite-cliente-panel th:nth-child(4),.vendite-cliente-panel td:nth-child(4),
.vendite-cliente-panel th:nth-child(5),.vendite-cliente-panel td:nth-child(5),
.vendite-cliente-panel th:nth-child(7),.vendite-cliente-panel td:nth-child(7),
.vendite-cliente-panel th:nth-child(8),.vendite-cliente-panel td:nth-child(8),
.vendite-cliente-panel th:nth-child(9),.vendite-cliente-panel td:nth-child(9),
.vendite-cliente-panel th:nth-child(10),.vendite-cliente-panel td:nth-child(10){width:1%!important}
.vendite-cliente-panel .sale-group-start td{height:70px!important;padding-top:17px!important;padding-bottom:17px!important}
.vendite-cliente-panel .cliente-sale-actions{min-width:110px!important}

.sales-documents-table th:nth-child(1),.sales-documents-table td:nth-child(1),
.sales-documents-table th:nth-child(2),.sales-documents-table td:nth-child(2),
.sales-documents-table th:nth-child(3),.sales-documents-table td:nth-child(3),
.sales-documents-table th:nth-child(4),.sales-documents-table td:nth-child(4),
.sales-documents-table th:nth-child(5),.sales-documents-table td:nth-child(5),
.sales-documents-table th:nth-child(6),.sales-documents-table td:nth-child(6),
.sales-documents-table th:nth-child(7),.sales-documents-table td:nth-child(7),
.sales-documents-table th:nth-child(8),.sales-documents-table td:nth-child(8),
.sales-documents-table th:nth-child(9),.sales-documents-table td:nth-child(9),
.sales-documents-table th:nth-child(10),.sales-documents-table td:nth-child(10),
.sales-documents-table th:nth-child(11),.sales-documents-table td:nth-child(11){width:1%!important}

@media(max-width:760px){
  .cart-price-form{min-width:165px}
  .cart-price-form input{width:88px!important;min-width:88px!important}
}

#adminSide .mc-menu-search{
  display:block !important;
  width:100% !important;
  margin:0 0 8px !important;
  padding:8px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:14px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025)) !important;
  box-sizing:border-box !important;
}
#adminSide .mc-menu-search > label{
  display:block !important;
  margin:0 0 6px !important;
  color:rgba(239,245,252,.82) !important;
  font-size:10px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  letter-spacing:.065em !important;
  text-transform:uppercase !important;
}
#adminSide .mc-menu-search-row{
  display:grid !important;
  grid-template-columns:30px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:6px !important;
  width:100% !important;
  min-width:0 !important;
  padding:4px !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 7px 18px rgba(4,13,28,.18) !important;
  box-sizing:border-box !important;
}
#adminSide .mc-menu-search-icon{
  display:grid !important;
  place-items:center !important;
  width:30px !important;
  height:30px !important;
  color:#244869 !important;
  font-size:22px !important;
  line-height:1 !important;
  font-weight:900 !important;
}
#adminSide .mc-menu-search input{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  height:34px !important;
  margin:0 !important;
  padding:5px 3px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#172b49 !important;
  font-family:inherit !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  box-shadow:none !important;
}
#adminSide .mc-menu-search input::placeholder{
  color:#77879a !important;
  opacity:1 !important;
}
#adminSide .mc-menu-search button{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:56px !important;
  height:34px !important;
  margin:0 !important;
  padding:0 9px !important;
  border:0 !important;
  border-radius:9px !important;
  background:linear-gradient(135deg,#24496f,#347681) !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:none !important;
  white-space:nowrap !important;
}
#adminSide .mc-menu-search button:hover,
#adminSide .mc-menu-search button:focus-visible{
  filter:brightness(1.09) !important;
  outline:2px solid rgba(255,255,255,.55) !important;
  outline-offset:1px !important;
}
#adminSide .mc-menu-search:focus-within{
  border-color:rgba(80,189,195,.7) !important;
  box-shadow:0 0 0 3px rgba(55,160,169,.12) !important;
}

@media(max-width:980px){
  #adminSide .mc-menu-search{
    margin-bottom:10px !important;
    padding:9px !important;
  }
  #adminSide .mc-menu-search-row{
    grid-template-columns:34px minmax(0,1fr) auto !important;
  }
  #adminSide .mc-menu-search-icon{
    width:34px !important;
    height:36px !important;
    font-size:23px !important;
  }
  #adminSide .mc-menu-search input{
    height:38px !important;
    font-size:13px !important;
  }
  #adminSide .mc-menu-search button{
    min-width:62px !important;
    height:38px !important;
    font-size:12px !important;
  }
}

.client-search .client-sort-control{display:grid;gap:4px;min-width:150px;margin:0;font-size:12px;font-weight:800;color:#33445c}
.client-search .client-sort-control span{white-space:nowrap}
.client-search .client-sort-control select{min-height:42px;padding:8px 10px;border:1px solid #c9d4e4;border-radius:10px;background:#fff;color:#1d304d;font-weight:750}

@media (min-width:1201px){
  .cliente-operativo .cliente-main{
    display:grid!important;
    grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)!important;
    gap:16px!important;
    align-items:stretch!important;
  }
  .cliente-operativo .cliente-card-operativa{grid-column:1!important;grid-row:1!important;height:100%!important;min-width:0!important}
  .cliente-operativo .mandati-cliente-panel{grid-column:2!important;grid-row:1!important;height:100%!important;min-width:0!important;margin:0!important;display:flex!important;flex-direction:column!important}
  .cliente-operativo .mandati-cliente-panel .table-wrap{flex:1 1 auto!important;max-height:none!important;overflow:auto!important}
  .cliente-operativo #pannello-accesso-web{grid-column:1!important;grid-row:2!important;min-width:0!important}
  .cliente-operativo .articoli-cliente-panel{grid-column:2!important;grid-row:2!important;min-width:0!important;margin:0!important}
  .cliente-operativo .vendite-cliente-panel{grid-column:1/-1!important;grid-row:3!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  .cliente-operativo #modifica-cliente{grid-column:1/-1!important;grid-row:4!important;margin:0!important}
  .cliente-operativo #gestione-cliente{grid-column:1/-1!important;grid-row:5!important;margin:0!important}
}
@media (max-width:1200px){
  .cliente-operativo .cliente-main{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .cliente-operativo .cliente-card-operativa,
  .cliente-operativo .mandati-cliente-panel,
  .cliente-operativo #pannello-accesso-web,
  .cliente-operativo .articoli-cliente-panel,
  .cliente-operativo .vendite-cliente-panel,
  .cliente-operativo #modifica-cliente,
  .cliente-operativo #gestione-cliente{grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:none!important}
}

.vendite-cliente-panel .table-wrap{width:100%!important;max-width:none!important;overflow:auto!important}
.vendite-cliente-panel table{width:100%!important;min-width:1050px!important}

body.embedded-admin-view .side,
body.embedded-admin-view .mobile-topbar,
body.embedded-admin-view .side-backdrop{display:none!important}
body.embedded-admin-view>main.main,
body.embedded-admin-view .main{
  margin:0!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:10px!important;
  overflow:visible!important;
}
body.embedded-admin-view .main>h1,
body.embedded-admin-view .main>.panel,
body.embedded-admin-view .main>section,
body.embedded-admin-view .main>form,
body.embedded-admin-view .main>.grid,
body.embedded-admin-view .main>.table-wrap{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

@media (max-width:760px){
  .client-search .client-sort-control{width:100%;min-width:0}
  .client-search .client-sort-control select{width:100%}
}

.v95-dashboard-top{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:14px;align-items:stretch}.v95-dashboard-top .dashboard-hero,.v95-dashboard-top .dashboard-bookings-priority{margin:0;min-height:100%}.v95-dashboard-top .dashboard-bookings-priority{padding:14px}.v95-dashboard-top .dashboard-bookings-list{max-height:178px;overflow:auto}.v95-dashboard-top .dashboard-booking-row{padding:7px 9px}.v95-dashboard-top .dashboard-hero{padding:18px 20px;gap:14px}.v95-dashboard-top .dashboard-hero h2{font-size:26px}.v95-dashboard-top .dashboard-hero p{font-size:14px}.v95-dashboard-top .dashboard-search input{min-height:42px}

body .clienti-search-panel,body .client-search-panel{padding:10px 14px!important}body .clienti-search-panel h2,body .client-search-panel h2{margin:0 0 6px!important}body .clienti-search-panel .filters,body .client-search-panel .filters{gap:7px!important}.main>section.panel:first-of-type form.filters{row-gap:8px}.main>section.panel:first-of-type form.filters label{margin:0}.main>section.panel:first-of-type form.filters input,.main>section.panel:first-of-type form.filters select{min-height:38px;padding-top:6px;padding-bottom:6px}

.v95-client-actions-row{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:10px;align-items:stretch}.v95-client-actions-row>.panel{margin:0!important;padding:11px 13px!important}.v95-client-actions-row .cliente-actions-help{font-size:12px;margin:3px 0 8px}.v95-client-actions-row .mc-client-actions,.v95-client-actions-row .cliente-secondary-grid{gap:6px!important}.v95-client-actions-row .mc-client-action,.v95-client-actions-row .btn{min-height:36px!important;padding:6px 9px!important;font-size:12px!important}.cliente-card-operativa{position:relative;padding:12px!important}.v95-pencil-button{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#14334f;color:#fff;font-size:18px;cursor:pointer;z-index:2}.cliente-anagrafica-completa{gap:5px!important}.cliente-anagrafica-completa .field-line{min-height:48px!important;padding:6px 8px!important}.cliente-anagrafica-completa .field-line label{font-size:9px!important;margin-bottom:2px!important}.cliente-anagrafica-completa .field-line b{font-size:12px!important}.cliente-card-operativa .cliente-avvisi textarea{min-height:54px!important}.cliente-bottom-actions{gap:6px!important;margin-top:7px!important}.cliente-bottom-actions .btn{min-height:34px!important;padding:6px 9px!important;font-size:12px!important}
.v95-client-sticky-tools{position:sticky;top:8px;z-index:80;display:flex;justify-content:flex-end;gap:6px;margin:-2px 0 8px;pointer-events:none}.v95-client-sticky-tools>*{pointer-events:auto}.v95-client-sticky-tools .btn{min-height:34px;padding:6px 10px;font-size:12px;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.v95-client-dialog{width:min(1180px,96vw);max-height:92vh;border:0;border-radius:16px;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.34);overflow:auto}.v95-client-dialog::backdrop{background:rgba(10,25,39,.64)}.v95-client-dialog-head{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#173653;color:#fff}.v95-client-dialog-head h2{margin:0;color:#fff}.v95-client-dialog-actions{display:flex;gap:7px}.v95-client-edit-form{padding:14px;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}.v95-client-edit-form .cliente-fieldset{padding:10px!important}.v95-client-edit-form input,.v95-client-edit-form select,.v95-client-edit-form textarea{min-height:38px!important}.v95-client-edit-form .js-cliente-save-explicit{position:sticky;bottom:8px;z-index:10;justify-self:end;min-width:220px}
.cliente-sale-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important}.cliente-sale-actions .btn{min-width:66px!important;min-height:28px!important;padding:3px 6px!important;font-size:10px!important}.cliente-sale-actions form{margin:0!important}.mandati-list-table .table-actions{display:flex;gap:4px;flex-wrap:nowrap}.mandati-list-table .table-actions .btn{width:78px!important;min-width:78px!important;min-height:28px!important;padding:3px 5px!important;font-size:10px!important;white-space:normal;line-height:1.05}.mandati-list-table th:first-child,.mandati-list-table td:first-child{width:172px;min-width:172px}

.v95-new-client-top{grid-template-columns:minmax(380px,.8fr) minmax(0,1.2fr)!important;align-items:start}.v95-new-client-top>#dati-anagrafici{margin:0!important;height:100%}.v95-new-client-top>.documento-guidato{margin:0!important;height:100%}.nuovo-cliente-consensi{margin-top:0!important}.nuovo-cliente-consensi .consent-checks{grid-template-columns:repeat(4,minmax(0,1fr))!important}

.v95-sale-scan-panel{padding:10px 14px!important}.v95-sale-scan-panel h2{font-size:16px!important;margin:0 0 6px!important}.v95-sale-scan-panel form.inline{display:grid!important;grid-template-columns:minmax(280px,520px) auto;gap:7px!important;align-items:end}.v95-sale-scan-panel input{min-height:38px!important}.v95-sale-scan-panel button{min-height:38px!important;padding:6px 12px!important}.v95-sale-scan-panel p{margin:5px 0 0!important;font-size:11px!important}

.v95-alert-rules{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px}.v95-alert-rule{border:1px solid #dbe4ec;border-radius:10px;padding:9px;background:#f8fbfd}.v95-alert-rule h3{font-size:14px;margin:0 0 6px}.v95-alert-rule label{font-size:11px}.v95-alert-rule input,.v95-alert-rule select{min-height:36px}.v95-alert-summary{display:flex;gap:8px;flex-wrap:wrap}.v95-alert-summary span{padding:6px 9px;background:#eef6f7;border-radius:999px;font-size:12px;font-weight:700}.v95-alert-manual details>summary{cursor:pointer;font-weight:800;padding:6px 0}
@media(max-width:1050px){.v95-dashboard-top,.v95-client-actions-row,.v95-new-client-top{grid-template-columns:1fr!important}.v95-client-edit-form{grid-template-columns:1fr 1fr!important}.nuovo-cliente-consensi .consent-checks{grid-template-columns:1fr 1fr!important}}
@media(max-width:700px){.v95-client-sticky-tools{top:4px;overflow-x:auto;justify-content:flex-start}.v95-client-edit-form{grid-template-columns:1fr!important}.v95-client-dialog{width:98vw;max-height:96vh}.nuovo-cliente-consensi .consent-checks{grid-template-columns:1fr!important}.v95-sale-scan-panel form.inline{grid-template-columns:1fr!important}}

.clienti-toolbar{padding:9px 12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;align-items:center!important}.clienti-toolbar>div:first-child h2{margin:0!important;font-size:16px!important}.clienti-toolbar>div:first-child p{margin:2px 0!important;font-size:10px!important}.clienti-toolbar .form-actions{margin:0!important}.clienti-toolbar .client-search{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(260px,1fr) 150px 135px auto auto auto!important;gap:6px!important;align-items:end!important}.clienti-toolbar .client-search input,.clienti-toolbar .client-search select,.clienti-toolbar .client-search .btn,.clienti-toolbar .client-search button{min-height:34px!important;padding:5px 8px!important;font-size:12px!important}.clienti-toolbar .client-sort-control span{font-size:9px!important}.clienti-toolbar .check-inline{font-size:11px!important;margin:0!important;align-self:center!important}
@media(max-width:1000px){.clienti-toolbar .client-search{grid-template-columns:1fr 1fr 1fr!important}.clienti-toolbar .client-search>input:first-of-type{grid-column:1/-1}.clienti-toolbar{grid-template-columns:1fr!important}.clienti-toolbar .form-actions{justify-self:start}}
@media(max-width:650px){.clienti-toolbar .client-search{grid-template-columns:1fr!important}.clienti-toolbar .client-search>*{grid-column:1!important}}

.v97-client-sticky-header{position:sticky;top:6px;z-index:120;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#183554;color:#fff;border-radius:10px;padding:8px 10px;margin:0 0 8px;box-shadow:0 7px 20px rgba(16,39,62,.18)}
.v97-client-sticky-title{display:flex;align-items:baseline;gap:9px;min-width:0;white-space:nowrap}.v97-client-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.78}.v97-client-sticky-title strong{font-size:17px;overflow:hidden;text-overflow:ellipsis}.v97-client-code{font-size:12px;font-weight:800;background:rgba(255,255,255,.13);padding:3px 7px;border-radius:999px}.v97-client-sticky-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.v97-client-sticky-actions form{margin:0}.v97-client-sticky-actions .btn{min-height:30px!important;padding:4px 8px!important;font-size:10px!important}

.v95-client-actions-row{align-items:start!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}.v95-client-actions-row>.panel{min-height:0!important;height:auto!important;padding:8px 10px!important}.v95-client-actions-row .cliente-actions-title{font-size:14px!important;margin:0 0 3px!important}.v95-client-actions-row .cliente-actions-help{font-size:9.5px!important;line-height:1.25!important;margin:0 0 6px!important;min-height:0!important}.v95-client-actions-row .mc-client-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}.v95-client-actions-row .mc-client-action{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;min-height:42px!important;padding:4px 5px!important;font-size:9px!important;line-height:1.05!important}.v95-client-actions-row .mc-client-action-icon{font-size:14px!important}.v95-client-actions-row .mc-client-action-label{white-space:normal!important;text-align:center!important}.v95-client-actions-row .cliente-secondary-grid{display:flex!important;flex-wrap:wrap!important;align-content:flex-start!important;gap:4px!important}.v95-client-actions-row .cliente-secondary-grid>.btn,.v95-client-actions-row .cliente-secondary-grid>form .btn{min-height:28px!important;height:28px!important;padding:3px 6px!important;font-size:9px!important;line-height:1!important}.v95-client-actions-row .cliente-secondary-grid>form{margin:0!important}.v95-client-actions-row .cliente-meta-line{font-size:8.5px!important;margin-top:4px!important;display:block!important}

.v97-inline-icon-actions,.cliente-sale-actions,.mandati-list-table .table-actions{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;align-items:center!important}.v97-icon-btn,.cliente-sale-actions .v97-icon-btn,.mandati-list-table .v97-icon-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:28px!important;min-height:28px!important;padding:0!important;font-size:14px!important;line-height:1!important;white-space:nowrap!important}.cliente-sale-actions form{margin:0!important}.mandati-list-table th:first-child,.mandati-list-table td:first-child{width:78px!important;min-width:78px!important;max-width:78px!important}.mandati-list-table .actions-cell{padding-left:5px!important;padding-right:5px!important}

.v95-new-client-top{display:grid!important;grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr)!important;gap:10px!important;align-items:start!important}.v95-new-client-top>.documento-guidato,.v95-new-client-top>#dati-anagrafici{grid-column:auto!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;height:auto!important}.v95-new-client-top>#dati-anagrafici{align-self:stretch!important}.nuovo-cliente-consensi{grid-column:1/-1!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}.nuovo-cliente-consensi .quote-grid{grid-template-columns:repeat(2,minmax(0,240px))!important}.nuovo-cliente-consensi .consent-checks{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important}

.v95-alert-rules{grid-template-columns:repeat(5,minmax(125px,1fr))!important}.v95-alert-rule{padding:7px!important}.v95-alert-rule h3{font-size:12px!important;margin-bottom:4px!important}.v95-alert-rule label{font-size:9.5px!important}.v95-alert-rule input{min-height:32px!important;padding:4px 6px!important}
@media(max-width:1180px){.v95-client-actions-row .mc-client-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v95-alert-rules{grid-template-columns:repeat(3,minmax(140px,1fr))!important}}
@media(max-width:1050px){.v95-new-client-top{grid-template-columns:1fr!important}.v95-new-client-top>.documento-guidato,.v95-new-client-top>#dati-anagrafici{grid-column:1!important}.nuovo-cliente-consensi .consent-checks{grid-template-columns:1fr 1fr!important}.v97-client-sticky-header{top:58px}}
@media(max-width:720px){.v97-client-sticky-header{align-items:flex-start;flex-direction:column}.v97-client-sticky-title{white-space:normal;flex-wrap:wrap}.v97-client-sticky-actions{width:100%;overflow-x:auto}.v95-client-actions-row .mc-client-actions{grid-template-columns:1fr 1fr!important}.v95-alert-rules{grid-template-columns:1fr!important}.nuovo-cliente-consensi .consent-checks{grid-template-columns:1fr!important}}

.v97-client-sticky-header.v98-is-fixed{position:fixed!important;top:8px!important;z-index:1500!important;margin:0!important;box-shadow:0 10px 30px rgba(8,27,45,.28)!important}
.v98-client-sticky-holder{height:0}
.vendite-cliente-panel th.cliente-sale-actions-col,.vendite-cliente-panel td.cliente-sale-actions-col{width:80px!important;min-width:80px!important;max-width:80px!important;padding-left:3px!important;padding-right:3px!important}
.vendite-cliente-panel .cliente-sale-actions{gap:2px!important}
.vendite-cliente-panel .cliente-sale-actions .v97-icon-btn{width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;font-size:12px!important}
.v98-mail-rules-panel{max-width:none!important}.v98-mail-rules-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v98-mail-master,.v98-mail-vars,.v98-mail-rules-form>.form-actions{grid-column:1/-1}.v98-mail-master{display:flex;gap:20px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:#f3f7fa}.v98-mail-rule{border:1px solid #dbe4eb;border-radius:12px;padding:12px;background:#fff;display:grid;gap:8px}.v98-mail-rule-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.v98-mail-rule-head h3{margin:0}.v98-mail-rule label{display:grid;gap:4px}.v98-mail-rule input[type=text],.v98-mail-rule input[type=number],.v98-mail-rule textarea{width:100%}.v98-mail-rule input[type=number]{max-width:120px}.v98-mail-vars{padding:10px 12px;border-radius:10px;background:#fff8df;border:1px solid #ead89d}.v98-mail-vars code{white-space:nowrap}.v98-mail-map{margin-top:18px}.v98-mail-map table{min-width:760px}.v98-mail-map td,.v98-mail-map th{vertical-align:top}.v98-mail-rule-access,.v98-mail-rule-status{grid-column:span 1}
@media(max-width:900px){.v98-mail-rules-form{grid-template-columns:1fr}.v98-mail-rule-access,.v98-mail-rule-status{grid-column:1}.v97-client-sticky-header.v98-is-fixed{top:6px!important}}

@media(max-width:980px){
  .v97-client-sticky-header{top:64px!important}
  .v97-client-sticky-header.v98-is-fixed{top:64px!important;z-index:10010!important}
}
@media(max-width:640px){
  .v97-client-sticky-header{top:60px!important}
  .v97-client-sticky-header.v98-is-fixed{top:60px!important}
}

#nuovo-cliente-form.nuovo-cliente-page{
  display:grid!important;
  grid-template-columns:1fr!important;
  row-gap:32px!important;
  column-gap:0!important;
  width:100%!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:16px!important;
  border:1px solid #d7e0e8!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}

#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section h2{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  margin:0 0 16px!important;
  padding:0!important;
  color:#172033!important;
  font-size:17px!important;
  font-weight:900!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section h2::after{
  content:""!important;
  display:block!important;
  flex:1 1 auto!important;
  min-width:24px!important;
  height:2px!important;
  background:#2f7d86!important;
  border-radius:999px!important;
}

#nuovo-cliente-form.nuovo-cliente-page .documento-easy-number{
  display:none!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-easy-heading{
  display:block!important;
  margin:0!important;
  padding:0!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-easy-heading>div{
  width:100%!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-easy-heading h2{
  margin-bottom:6px!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-easy-heading p{
  margin:0 0 10px!important;
  color:#596579!important;
  font-size:11px!important;
  line-height:1.35!important;
}

#nuovo-cliente-form.nuovo-cliente-page .v95-new-client-top{
  display:grid!important;
  grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr)!important;
  gap:16px!important;
  align-items:stretch!important;
  width:100%!important;
  margin:0!important;
}
#nuovo-cliente-form.nuovo-cliente-page .v95-new-client-top>.nuovo-cliente-section{
  height:100%!important;
  align-self:stretch!important;
}

#nuovo-cliente-form.nuovo-cliente-page .documento-easy-progress{
  margin:8px 0 8px!important;
  gap:6px!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-easy-progress-step{
  min-height:30px!important;
  padding:3px 6px!important;
  font-size:10px!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-easy-progress-step span{
  width:23px!important;
  height:23px!important;
  min-width:23px!important;
  font-size:10px!important;
}

#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status{
  display:block!important;
  min-height:0!important;
  margin:8px 0 10px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#344256!important;
  font-size:10.5px!important;
  line-height:1.3!important;
  font-weight:800!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status.success,
#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status.warning,
#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status.processing{
  padding:7px 9px!important;
  border-radius:9px!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status.success{background:#ecfdf3!important;border:1px solid #16a34a!important;color:#166534!important}
#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status.warning{background:#fff7ed!important;border:1px solid #f59e0b!important;color:#7c3f00!important}
#nuovo-cliente-form.nuovo-cliente-page .documento-scan-status.processing{background:#eff6ff!important;border:1px solid #2563eb!important;color:#1e3a8a!important}

#nuovo-cliente-form.nuovo-cliente-page .documento-acquisition-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-action-card{
  display:grid!important;
  grid-template-rows:auto auto minmax(42px,1fr) auto!important;
  align-content:stretch!important;
  height:100%!important;
  min-height:142px!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid #d7e0e8!important;
  border-radius:12px!important;
  background:#fff!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-action-card .documento-easy-icon{
  font-size:21px!important;
  line-height:1!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-action-card h3{
  margin:4px 0!important;
  font-size:14px!important;
  line-height:1.15!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-action-card p{
  margin:0 0 8px!important;
  font-size:10px!important;
  line-height:1.3!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-action-card .documento-read-button{
  align-self:end!important;
  justify-self:start!important;
  min-height:30px!important;
  margin:0!important;
  padding:5px 9px!important;
  font-size:10px!important;
}

#nuovo-cliente-form.nuovo-cliente-page .documento-save-choice,
#nuovo-cliente-form.nuovo-cliente-page .documento-save-choice-compact,
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-checkbox-row,
#nuovo-cliente-form.nuovo-cliente-page .domicilio-copy{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:auto!important;
  min-height:0!important;
  text-align:left!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-save-choice,
#nuovo-cliente-form.nuovo-cliente-page .documento-save-choice-compact{
  margin:10px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-save-choice input[type="checkbox"],
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-checkbox-row input[type="checkbox"],
#nuovo-cliente-form.nuovo-cliente-page .domicilio-copy input[type="checkbox"]{
  flex:0 0 auto!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-save-choice b{
  display:inline!important;
  margin:0!important;
  font-size:10.5px!important;
  line-height:1.2!important;
}
#nuovo-cliente-form.nuovo-cliente-page .documento-save-help{
  margin:4px 0 0 24px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  font-size:9.5px!important;
  line-height:1.3!important;
}

#nuovo-cliente-form.nuovo-cliente-page .cliente-fieldset-grid,
#nuovo-cliente-form.nuovo-cliente-page .address-inline-grid,
#nuovo-cliente-form.nuovo-cliente-page .quote-grid{
  margin:0!important;
  row-gap:12px!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section label:not(.documento-save-choice):not(.nuovo-cliente-checkbox-row):not(.domicilio-copy){
  display:grid!important;
  gap:8px!important;
  align-content:start!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section input:not([type="checkbox"]):not([type="radio"]),
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section select{
  min-height:36px!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
#nuovo-cliente-form.nuovo-cliente-page #dati-anagrafici .cliente-fieldset-grid{
  margin:0!important;
  gap:10px!important;
}
#nuovo-cliente-form.nuovo-cliente-page #dati-anagrafici label{font-size:11px!important}
#nuovo-cliente-form.nuovo-cliente-page #dati-anagrafici small{font-size:9px!important;line-height:1.2!important}

#nuovo-cliente-form.nuovo-cliente-page .domicilio-copy{
  margin:0 0 16px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi .quote-grid{
  grid-template-columns:repeat(2,minmax(0,240px))!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi .consent-box{
  margin:16px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi .consent-checks{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 12px!important;
  width:100%!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi .consent-checks>label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
  margin:0!important;
  text-align:left!important;
}
#nuovo-cliente-form.nuovo-cliente-page .consent-check-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  min-width:0!important;
  margin:0!important;
  text-align:left!important;
}
#nuovo-cliente-form.nuovo-cliente-page .consent-check-label input[type="checkbox"]{
  flex:0 0 auto!important;
  width:15px!important;
  height:15px!important;
  margin:0!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi>label.full{
  margin-top:16px!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi textarea{
  min-height:70px!important;
}

#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:32px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-actions::before,
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-actions::after{
  content:none!important;
  display:none!important;
}
#nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-actions .btn{
  margin:0!important;
}

@media(max-width:1050px){
  #nuovo-cliente-form.nuovo-cliente-page .v95-new-client-top{
    grid-template-columns:1fr!important;
    gap:32px!important;
  }
  #nuovo-cliente-form.nuovo-cliente-page .v95-new-client-top>.nuovo-cliente-section{height:auto!important}
  #nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi .consent-checks{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  #nuovo-cliente-form.nuovo-cliente-page{row-gap:24px!important}
  #nuovo-cliente-form.nuovo-cliente-page .v95-new-client-top{gap:24px!important}
  #nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-section{padding:14px 12px!important}
  #nuovo-cliente-form.nuovo-cliente-page .documento-acquisition-grid{grid-template-columns:1fr!important}
  #nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-consensi .consent-checks{grid-template-columns:1fr!important}
  #nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-actions{justify-content:stretch!important;gap:12px!important}
  #nuovo-cliente-form.nuovo-cliente-page .nuovo-cliente-actions .btn{flex:1 1 0!important;text-align:center!important}
}

body.admin-page-articoli{
  --mc266-ink:#16243b;
  --mc266-muted:#667386;
  --mc266-line:#d8e1ea;
  --mc266-line-strong:#c3d0dc;
  --mc266-primary:#244f78;
  --mc266-primary-hover:#1c4267;
  --mc266-secondary:#f4f7fa;
  --mc266-secondary-hover:#eaf0f5;
  --mc266-danger:#a6404a;
  --mc266-danger-hover:#8e333c;
  --mc266-success:#216869;
  --mc266-warning:#a96b15;
  --mc266-disabled-bg:#e9edf2;
  --mc266-disabled-text:#8a96a5;
  --mc266-card:#fff;
  --mc266-soft:#f8fafc;
}

body.admin-page-articoli .main .btn,
body.admin-page-articoli .main button,
body.admin-page-articoli .main input[type="submit"],
body.admin-page-articoli .main input[type="button"]{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  min-height:42px!important;
  margin:0!important;
  padding:9px 16px!important;
  border:1px solid var(--mc266-primary)!important;
  border-radius:11px!important;
  background:var(--mc266-primary)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:normal!important;
  cursor:pointer!important;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease!important;
}
body.admin-page-articoli .main .btn:hover,
body.admin-page-articoli .main button:hover,
body.admin-page-articoli .main input[type="submit"]:hover,
body.admin-page-articoli .main input[type="button"]:hover{
  background:var(--mc266-primary-hover)!important;
  border-color:var(--mc266-primary-hover)!important;
}
body.admin-page-articoli .main .btn:focus-visible,
body.admin-page-articoli .main button:focus-visible,
body.admin-page-articoli .main input[type="submit"]:focus-visible,
body.admin-page-articoli .main input[type="button"]:focus-visible,
body.admin-page-articoli .main select:focus-visible,
body.admin-page-articoli .main input:focus-visible{
  outline:3px solid rgba(36,79,120,.18)!important;
  outline-offset:2px!important;
}
body.admin-page-articoli .main .btn.secondary,
body.admin-page-articoli .main .btn.soft{
  border-color:var(--mc266-line-strong)!important;
  background:var(--mc266-secondary)!important;
  color:var(--mc266-primary)!important;
}
body.admin-page-articoli .main .btn.secondary:hover,
body.admin-page-articoli .main .btn.soft:hover{
  border-color:#aebfce!important;
  background:var(--mc266-secondary-hover)!important;
}
body.admin-page-articoli .main .btn.danger,
body.admin-page-articoli .main button.danger{
  border-color:var(--mc266-danger)!important;
  background:var(--mc266-danger)!important;
  color:#fff!important;
}
body.admin-page-articoli .main .btn.danger:hover,
body.admin-page-articoli .main button.danger:hover{
  border-color:var(--mc266-danger-hover)!important;
  background:var(--mc266-danger-hover)!important;
}
body.admin-page-articoli .main .btn.success,
body.admin-page-articoli .main button.success{
  border-color:var(--mc266-success)!important;
  background:var(--mc266-success)!important;
  color:#fff!important;
}
body.admin-page-articoli .main .btn.warning,
body.admin-page-articoli .main button.warning{
  border-color:var(--mc266-warning)!important;
  background:var(--mc266-warning)!important;
  color:#fff!important;
}
body.admin-page-articoli .main .btn.small,
body.admin-page-articoli .main button.small{
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  font-size:.88rem!important;
}
body.admin-page-articoli .main .btn[disabled],
body.admin-page-articoli .main button[disabled],
body.admin-page-articoli .main input[type="submit"][disabled],
body.admin-page-articoli .main input[type="button"][disabled]{
  border-color:#d6dde5!important;
  background:var(--mc266-disabled-bg)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--mc266-disabled-text)!important;
  opacity:1!important;
  cursor:not-allowed!important;
  transform:none!important;
}

body.admin-page-articoli .main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.admin-page-articoli .main select,
body.admin-page-articoli .main textarea{
  box-sizing:border-box!important;
  max-width:100%!important;
  border:1px solid var(--mc266-line-strong)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--mc266-ink)!important;
  box-shadow:none!important;
  font:inherit!important;
}
body.admin-page-articoli .main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.admin-page-articoli .main select{
  min-height:42px!important;
  padding:8px 11px!important;
}
body.admin-page-articoli .main input[type="checkbox"],
body.admin-page-articoli .main input[type="radio"]{
  flex:0 0 auto!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  accent-color:var(--mc266-primary)!important;
}
body.admin-page-articoli .main .inline-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1.25!important;
}

body.admin-page-articoli .main .table-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:auto!important;
  max-width:100%!important;
}
body.admin-page-articoli .main .table-actions .btn,
body.admin-page-articoli .main .table-actions button{
  flex:0 0 auto!important;
  width:auto!important;
}
body.admin-page-articoli .main .actions-cell .table-actions{
  min-width:190px!important;
}

body.admin-page-articoli .mc-articoli-bulk-panel{
  display:block!important;
  overflow:visible!important;
}
body.admin-page-articoli .mc-articoli-bulk-panel > *{box-sizing:border-box!important;}
body.admin-page-articoli .mc-articoli-section-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  margin:0 0 18px!important;
}
body.admin-page-articoli .mc-articoli-section-head h2{
  margin:0 0 6px!important;
}
body.admin-page-articoli .mc-articoli-section-copy{
  margin:0!important;
  color:var(--mc266-ink)!important;
}
body.admin-page-articoli .mc-articoli-show-without-photo{
  align-self:center!important;
  max-width:360px!important;
}
body.admin-page-articoli .mc-articoli-tool-card{
  margin:0!important;
  padding:17px 18px!important;
  border:1px solid var(--mc266-line)!important;
  border-radius:14px!important;
  background:var(--mc266-soft)!important;
  box-shadow:none!important;
}
body.admin-page-articoli .mc-articoli-tool-card + .mc-articoli-tool-card{
  margin-top:14px!important;
}
body.admin-page-articoli .mc-articoli-tool-card-danger{
  border-left:4px solid #d5a0a5!important;
}
body.admin-page-articoli .mc-articoli-tool-copy h3{
  margin:0 0 5px!important;
  color:var(--mc266-ink)!important;
  font-size:1rem!important;
}
body.admin-page-articoli .mc-articoli-tool-copy p{
  margin:0!important;
  color:var(--mc266-muted)!important;
  line-height:1.45!important;
}
body.admin-page-articoli .mc-articoli-remove-form{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  margin-top:14px!important;
}
body.admin-page-articoli .mc-articoli-check{
  min-height:42px!important;
  padding:9px 12px!important;
  border:1px solid var(--mc266-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--mc266-ink)!important;
  font-weight:700!important;
}
body.admin-page-articoli .mc-articoli-check span{
  min-width:0!important;
}
body.admin-page-articoli .mc-articoli-state-form{
  border-left:4px solid #7ea5c4!important;
}
body.admin-page-articoli .mc-articoli-state-controls{
  display:grid!important;
  grid-template-columns:minmax(230px,1fr) minmax(220px,280px) auto minmax(110px,1fr)!important;
  align-items:end!important;
  gap:12px!important;
  margin-top:14px!important;
}
body.admin-page-articoli .mc-articoli-state-select{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
  color:var(--mc266-ink)!important;
  font-weight:700!important;
}
body.admin-page-articoli .mc-articoli-state-select select{
  width:100%!important;
}
body.admin-page-articoli .mc-articoli-change-state{
  min-width:210px!important;
}
body.admin-page-articoli .mc-articoli-selected-count{
  display:inline!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--mc266-muted)!important;
  font-size:.9rem!important;
  font-weight:800!important;
  line-height:1.2!important;
}
body.admin-page-articoli .mc-articoli-state-note,
body.admin-page-articoli .mc-articoli-vetrina-note{
  line-height:1.5!important;
}
body.admin-page-articoli .mc-articoli-state-note{
  margin:12px 0 0!important;
}
body.admin-page-articoli .mc-articoli-vetrina-note{
  margin:14px 0 0!important;
}
body.admin-page-articoli .mc-articoli-results-actions{
  margin:12px 0!important;
}

body.admin-page-articoli .main form.grid.filters > label{
  min-width:0!important;
}
body.admin-page-articoli .main form.grid.filters > label > input,
body.admin-page-articoli .main form.grid.filters > label > select{
  width:100%!important;
}
body.admin-page-articoli .main form.grid.filters > .full{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
}

@media (max-width:1180px){
  body.admin-page-articoli .mc-articoli-state-controls{
    grid-template-columns:minmax(230px,1fr) minmax(220px,1fr)!important;
    align-items:end!important;
  }
  body.admin-page-articoli .mc-articoli-change-state{
    width:100%!important;
  }
}

@media (max-width:820px){
  body.admin-page-articoli .mc-articoli-section-head{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }
  body.admin-page-articoli .mc-articoli-show-without-photo{
    width:100%!important;
    max-width:none!important;
  }
  body.admin-page-articoli .mc-articoli-remove-form,
  body.admin-page-articoli .mc-articoli-state-controls{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }
  body.admin-page-articoli .mc-articoli-remove-form > .btn,
  body.admin-page-articoli .mc-articoli-state-controls > .btn,
  body.admin-page-articoli .mc-articoli-state-controls > label{
    width:100%!important;
    max-width:none!important;
  }
  body.admin-page-articoli .main form.grid.filters > .full{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  body.admin-page-articoli .main form.grid.filters > .full > *{
    width:100%!important;
  }
}

@media (max-width:560px){
  body.admin-page-articoli .mc-articoli-tool-card{
    padding:14px!important;
    border-radius:12px!important;
  }
  body.admin-page-articoli .mc-articoli-check{
    align-items:flex-start!important;
    min-height:0!important;
  }
  body.admin-page-articoli .mc-articoli-check input[type="checkbox"]{
    margin-top:1px!important;
  }
  body.admin-page-articoli .main form.grid.filters > .full{
    grid-template-columns:1fr!important;
  }
  body.admin-page-articoli .main .table-actions > .btn,
  body.admin-page-articoli .main .table-actions > button{
    width:100%!important;
  }
  body.admin-page-articoli .main .actions-cell .table-actions{
    min-width:160px!important;
  }
  body.admin-page-articoli .main .actions-cell .table-actions > .btn,
  body.admin-page-articoli .main .actions-cell .table-actions > button{
    width:auto!important;
  }
}

@media print{
  body.admin-page-articoli .mc-articoli-bulk-panel{break-inside:avoid;}
}

body.mercantico-admin{
  --mc268-ink:#17253b;
  --mc268-muted:#657286;
  --mc268-line:#d7e0e9;
  --mc268-line-strong:#c4d0db;
  --mc268-card:#fff;
  --mc268-soft:#f7f9fc;
  --mc268-primary:#244f78;
  --mc268-primary-hover:#1d4265;
  --mc268-secondary:#f1f5f8;
  --mc268-secondary-hover:#e6edf3;
  --mc268-success:#20705e;
  --mc268-success-hover:#185b4c;
  --mc268-danger:#a5404a;
  --mc268-danger-hover:#8c343d;
  --mc268-warning:#a56c19;
  --mc268-disabled-bg:#e8edf2;
  --mc268-disabled-text:#8994a2;
}
body.mercantico-admin .main,
body.mercantico-admin .main *{box-sizing:border-box;}

body.mercantico-admin .main .panel,
body.mercantico-admin .main .summary-card,
body.mercantico-admin .main fieldset:not(.cliente-fieldset):not(.address-fieldset):not(.compact-address-fieldset){
  border-color:var(--mc268-line)!important;
  border-radius:16px!important;
  background:var(--mc268-card)!important;
  box-shadow:0 4px 14px rgba(28,48,73,.045)!important;
}
body.mercantico-admin .main .panel + .panel{margin-top:18px;}
body.mercantico-admin .main hr{border:0;border-top:1px solid var(--mc268-line)!important;}
body.mercantico-admin .main .muted{color:var(--mc268-muted)!important;}

body.mercantico-admin .main .btn:not(.m225-btn):not(.danger):not(.success):not(.warning):not(.soft):not(.secondary),
body.mercantico-admin .main form:not([action*="/delete"]):not([action*="/elimina"]) button:not(.v97-icon-btn):not(.menu-toggle):not(.m225-btn):not(.scadenze-icon-action):not(.scadenze-article-modal-close):not(.sale-action):not(.mc-client-action):not(.pb-action):not(.dialog-close):not(.v95-pencil-button):not(.danger):not(.success):not(.warning):not(.soft),
body.mercantico-admin .main input[type="submit"],
body.mercantico-admin .main input[type="button"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:9px 15px!important;
  border:1px solid var(--mc268-primary)!important;
  border-radius:10px!important;
  background:var(--mc268-primary)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-decoration:none!important;
  text-align:center!important;
  white-space:normal!important;
  cursor:pointer!important;
  transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease!important;
}
body.mercantico-admin .main .btn:not(.m225-btn):hover,
body.mercantico-admin .main form:not([action*="/delete"]):not([action*="/elimina"]) button:not(.v97-icon-btn):not(.menu-toggle):not(.m225-btn):not(.scadenze-icon-action):not(.scadenze-article-modal-close):not(.sale-action):not(.mc-client-action):not(.pb-action):not(.dialog-close):not(.v95-pencil-button):not(.danger):not(.success):not(.warning):not(.soft):hover{
  border-color:var(--mc268-primary-hover)!important;
  background:var(--mc268-primary-hover)!important;
}
body.mercantico-admin .main .btn.secondary,
body.mercantico-admin .main .btn.soft,
body.mercantico-admin .main button.secondary{
  border-color:var(--mc268-line-strong)!important;
  background:var(--mc268-secondary)!important;
  color:#284865!important;
}
body.mercantico-admin .main .btn.secondary:hover,
body.mercantico-admin .main .btn.soft:hover,
body.mercantico-admin .main button.secondary:hover{
  background:var(--mc268-secondary-hover)!important;
  border-color:#adbdcc!important;
}
body.mercantico-admin .main .btn.success,
body.mercantico-admin .main button.success{
  border-color:var(--mc268-success)!important;
  background:var(--mc268-success)!important;
  color:#fff!important;
}
body.mercantico-admin .main .btn.success:hover,
body.mercantico-admin .main button.success:hover{
  border-color:var(--mc268-success-hover)!important;
  background:var(--mc268-success-hover)!important;
}
body.mercantico-admin .main .btn.danger,
body.mercantico-admin .main button.danger{
  border-color:var(--mc268-danger)!important;
  background:var(--mc268-danger)!important;
  color:#fff!important;
}
body.mercantico-admin .main .btn.danger:hover,
body.mercantico-admin .main button.danger:hover{
  border-color:var(--mc268-danger-hover)!important;
  background:var(--mc268-danger-hover)!important;
}
body.mercantico-admin .main .btn.warning,
body.mercantico-admin .main button.warning{
  border-color:var(--mc268-warning)!important;
  background:var(--mc268-warning)!important;
  color:#fff!important;
}
body.mercantico-admin .main .btn.small,
body.mercantico-admin .main button.small{
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  font-size:.88rem!important;
}
body.mercantico-admin .main .btn.full,
body.mercantico-admin .main button.full{width:100%!important;}
body.mercantico-admin .main .btn[disabled],
body.mercantico-admin .main button[disabled],
body.mercantico-admin .main input[type="submit"][disabled],
body.mercantico-admin .main input[type="button"][disabled]{
  border-color:#d5dde5!important;
  background:var(--mc268-disabled-bg)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--mc268-disabled-text)!important;
  opacity:1!important;
  cursor:not-allowed!important;
}

body.mercantico-admin .main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="color"]):not([type="range"]),
body.mercantico-admin .main select,
body.mercantico-admin .main textarea{
  max-width:100%!important;
  border:1px solid var(--mc268-line-strong)!important;
  border-radius:10px!important;
  background:#fff!important;
  background-image:none!important;
  color:var(--mc268-ink)!important;
  box-shadow:none!important;
  font:inherit!important;
}
body.mercantico-admin .main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="color"]):not([type="range"]),
body.mercantico-admin .main select{
  min-height:42px!important;
  padding:8px 11px!important;
}
body.mercantico-admin .main textarea{padding:10px 11px!important;line-height:1.4!important;}
body.mercantico-admin .main input[type="checkbox"],
body.mercantico-admin .main input[type="radio"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 18px!important;
  accent-color:var(--mc268-primary)!important;
  box-shadow:none!important;
}
body.mercantico-admin .main input:focus-visible,
body.mercantico-admin .main select:focus-visible,
body.mercantico-admin .main textarea:focus-visible,
body.mercantico-admin .main .btn:focus-visible,
body.mercantico-admin .main button:focus-visible{
  outline:3px solid rgba(36,79,120,.17)!important;
  outline-offset:2px!important;
}

body.mercantico-admin .main .form-actions,
body.mercantico-admin .main .actions-row,
body.mercantico-admin .main .table-actions,
body.mercantico-admin .main .page-heading-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px!important;
  width:auto!important;
  max-width:100%!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.mercantico-admin .main .form-actions > .btn:not(.full),
body.mercantico-admin .main .actions-row > .btn:not(.full),
body.mercantico-admin .main .table-actions > .btn:not(.full){flex:0 0 auto!important;width:auto!important;}
body.mercantico-admin .main .inline-form{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  gap:10px!important;
}

body.mercantico-admin .main .table-wrap{
  max-width:100%!important;
  overflow-x:auto!important;
  border-radius:12px!important;
}
body.mercantico-admin .main table{border-collapse:separate!important;border-spacing:0!important;}
body.mercantico-admin .main table th{
  background:#f1f5f8!important;
  color:#253a52!important;
  font-weight:800!important;
}
body.mercantico-admin .main table th,
body.mercantico-admin .main table td{
  border-color:#dde5ec!important;
  vertical-align:middle!important;
}

#adminSide.side{
  background:#1b3552!important;
  background-image:none!important;
}
#adminSide .v29-menu-group{
  background:rgba(255,255,255,.085)!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:none!important;
}
#adminSide .v29-menu-panel{background:rgba(255,255,255,.025)!important;}
#adminSide .v29-menu-links > a{
  background:rgba(255,255,255,.07)!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:none!important;
}
#adminSide .v29-menu-links > a:hover{background:rgba(82,122,158,.44)!important;}
#adminSide .mc-menu-search{background:rgba(255,255,255,.055)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;}

@media(max-width:900px){
  body.mercantico-admin .main .grid{grid-template-columns:1fr!important;}
  body.mercantico-admin .main .form-actions,
  body.mercantico-admin .main .actions-row,
  body.mercantico-admin .main .page-heading-actions{align-items:stretch!important;}
  body.mercantico-admin .main .form-actions > .btn:not(.small),
  body.mercantico-admin .main .actions-row > .btn:not(.small),
  body.mercantico-admin .main .page-heading-actions > .btn:not(.small){flex:1 1 180px!important;}
}
@media(max-width:560px){
  body.mercantico-admin .main .panel{padding-left:14px!important;padding-right:14px!important;}
  body.mercantico-admin .main .form-actions,
  body.mercantico-admin .main .actions-row,
  body.mercantico-admin .main .page-heading-actions{gap:8px!important;}
  body.mercantico-admin .main .form-actions > .btn:not(.small),
  body.mercantico-admin .main .actions-row > .btn:not(.small),
  body.mercantico-admin .main .page-heading-actions > .btn:not(.small){flex:1 1 100%!important;width:100%!important;}
  body.mercantico-admin .main .table-actions > .btn{flex:0 0 auto!important;width:auto!important;}
}

body.mercantico-admin .main .m225 button,
body.mercantico-admin .main .m225 input,
body.mercantico-admin .main .m225 select,
body.mercantico-admin .main .m225 textarea{font-family:inherit;}

body.admin-page-fatture .mc-fatture-period-v270{
  display:none;
  margin:18px 0;
  border:1px solid rgba(42,78,112,.18);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(24,45,67,.06);
  color:#172238;
  overflow:hidden;
}
body.admin-page-fatture .mc-fatture-period-v270.is-ready{display:block;}
body.admin-page-fatture .mc-fatture-period-v270 > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:58px;
  padding:12px 16px;
  user-select:none;
}
body.admin-page-fatture .mc-fatture-period-v270 > summary::-webkit-details-marker{display:none;}
body.admin-page-fatture .mc-fatture-period-v270 > summary::after{
  content:'⌄';
  flex:0 0 auto;
  font-size:20px;
  font-weight:800;
  transition:transform .18s ease;
}
body.admin-page-fatture .mc-fatture-period-v270[open] > summary::after{transform:rotate(180deg);}
body.admin-page-fatture .mc-fatture-period-v270__summary-main{display:flex;align-items:baseline;gap:12px;min-width:0;flex-wrap:wrap;}
body.admin-page-fatture .mc-fatture-period-v270__eyebrow{
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.055em;
  color:#617083;
}
body.admin-page-fatture .mc-fatture-period-v270__summary-main strong{font-size:18px;line-height:1.2;}
body.admin-page-fatture .mc-fatture-period-v270__summary-hint{margin-left:auto;font-size:13px;font-weight:700;color:#315b7f;white-space:nowrap;}
body.admin-page-fatture .mc-fatture-period-v270[open] .mc-fatture-period-v270__summary-hint{font-size:0;}
body.admin-page-fatture .mc-fatture-period-v270[open] .mc-fatture-period-v270__summary-hint::after{content:'Chiudi dettagli';font-size:13px;}
body.admin-page-fatture .mc-fatture-period-v270__body{padding:0 16px 16px;border-top:1px solid rgba(42,78,112,.11);}
body.admin-page-fatture .mc-fatture-period-v270__dates{margin:14px 0;color:#536173;line-height:1.45;}
body.admin-page-fatture .mc-fatture-period-v270__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body.admin-page-fatture .mc-fatture-period-v270__card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px 14px;border:1px solid rgba(42,78,112,.14);border-radius:12px;background:#f7f9fc;}
body.admin-page-fatture .mc-fatture-period-v270__card.is-current{background:#f4f9f8;}
body.admin-page-fatture .mc-fatture-period-v270__card > span{font-size:13px;font-weight:800;color:#526174;}
body.admin-page-fatture .mc-fatture-period-v270__card > b{font-size:17px;line-height:1.2;color:#172238;}
body.admin-page-fatture .mc-fatture-period-v270__card > small{font-size:12px;line-height:1.4;color:#667386;}
body.admin-page-fatture .mc-fatture-period-v270__clarify{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fff8e8;border:1px solid rgba(157,111,30,.22);color:#604a1e;line-height:1.4;font-size:13px;}

body.admin-page-fatture .mc-fatture-rule-v270{margin:14px 0;border:1px solid rgba(42,78,112,.16);border-radius:12px;background:#fff;overflow:hidden;}
body.admin-page-fatture .mc-fatture-rule-v270 > summary{cursor:pointer;list-style:none;padding:12px 15px;font-weight:800;color:#243651;}
body.admin-page-fatture .mc-fatture-rule-v270 > summary::-webkit-details-marker{display:none;}
body.admin-page-fatture .mc-fatture-rule-v270 > summary::after{content:' +';float:right;font-weight:900;}
body.admin-page-fatture .mc-fatture-rule-v270[open] > summary::after{content:' −';}
body.admin-page-fatture .mc-fatture-rule-v270__body{padding:0 15px 13px;color:#536173;line-height:1.45;}
body.admin-page-fatture .mc-fatture-rule-v270__body > :first-child{margin-top:0;}
body.admin-page-fatture .mc-fatture-rule-v270__body > :last-child{margin-bottom:0;}

body.admin-page-fatture .cards > div[data-mc-kpi-v270="1"]{position:relative;overflow:visible;padding-right:42px;}
body.admin-page-fatture .mc-kpi-info-v270{
  position:absolute;
  top:10px;
  right:10px;
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0!important;
  border-radius:50%!important;
  border:1px solid rgba(41,83,121,.28)!important;
  background:#f4f7fa!important;
  color:#284f73!important;
  font:800 14px/22px system-ui,-apple-system,"Segoe UI",sans-serif!important;
  box-shadow:none!important;
  cursor:pointer;
  z-index:4;
}
body.admin-page-fatture .mc-kpi-info-v270:hover,
body.admin-page-fatture .mc-kpi-info-v270:focus-visible{background:#e9f1f7!important;outline:2px solid rgba(41,83,121,.22)!important;outline-offset:2px;}
body.admin-page-fatture .mc-kpi-tooltip-v270{
  position:absolute;
  z-index:30;
  left:8px;
  right:8px;
  top:calc(100% - 5px);
  display:none;
  padding:10px 11px;
  border:1px solid rgba(27,52,78,.22);
  border-radius:10px;
  background:#172b43;
  color:#fff;
  font-size:12px;
  line-height:1.4;
  font-weight:600;
  box-shadow:0 10px 24px rgba(16,34,53,.22);
  pointer-events:none;
}
@media (hover:hover){
  body.admin-page-fatture .cards > div[data-mc-kpi-v270="1"]:hover{z-index:20;}
  body.admin-page-fatture .cards > div[data-mc-kpi-v270="1"]:hover .mc-kpi-tooltip-v270{display:block;}
}
body.admin-page-fatture .cards > div.mc-kpi-open-v270{z-index:20;}
body.admin-page-fatture .cards > div.mc-kpi-open-v270 .mc-kpi-tooltip-v270{display:block;}

@media(max-width:820px){
  body.admin-page-fatture .mc-fatture-period-v270__grid{grid-template-columns:1fr;}
  body.admin-page-fatture .mc-fatture-period-v270__summary-hint{display:none;}
}
@media(max-width:520px){
  body.admin-page-fatture .mc-fatture-period-v270{margin:14px 0;border-radius:12px;}
  body.admin-page-fatture .mc-fatture-period-v270 > summary{padding:11px 13px;}
  body.admin-page-fatture .mc-fatture-period-v270__summary-main{display:grid;gap:3px;}
  body.admin-page-fatture .mc-fatture-period-v270__summary-main strong{font-size:16px;}
  body.admin-page-fatture .mc-fatture-period-v270__body{padding:0 13px 13px;}
}

@media (min-width:1101px){
  body.mercantico-admin .mc-guide-grid:not(.mc-guide-grid-final){
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.mercantico-admin .mc-guide-grid:not(.mc-guide-grid-final) > .mc-guide-stage{
    grid-column:span 1!important;
    min-width:0!important;
  }
  body.mercantico-admin .mc-guide-grid:not(.mc-guide-grid-final) > .mc-guide-stage.active{
    grid-column:span 3!important;
  }
  body.mercantico-admin .mc-guide-grid-final{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.mercantico-admin .mc-guide-grid-final > .mc-guide-stage{grid-column:span 1!important;min-width:0!important;}
  body.mercantico-admin .mc-guide-grid-final > .mc-guide-stage.active{grid-column:span 3!important;}
  body.mercantico-admin .mc-guide-stage:not(.active) .mc-guide-form{display:none!important;}
  body.mercantico-admin .mc-guide-stage:not(.active) .mc-guide-client-results,
  body.mercantico-admin .mc-guide-stage:not(.active) .mc-guide-client-empty,
  body.mercantico-admin .mc-guide-stage:not(.active) .mc-guide-client-recent{display:none!important;}
}
body.mercantico-admin .mc-guide-stage{
  overflow:hidden!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
body.mercantico-admin .mc-guide-stage.active{
  box-shadow:0 8px 22px rgba(33,104,105,.08)!important;
}
body.mercantico-admin .mc-guide-stage.done h3::after{
  content:"  ✓";
  color:#20705e;
  font-weight:900;
}
body.mercantico-admin .mc-guide-stage .mc-guide-actions{align-items:center!important;}
@media (min-width:701px) and (max-width:1100px){
  body.mercantico-admin .mc-guide-grid,
  body.mercantico-admin .mc-guide-grid-final{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.mercantico-admin .mc-guide-stage.active{grid-column:1/-1!important;}
}
@media (max-width:700px){
  body.mercantico-admin .mc-guide-grid,
  body.mercantico-admin .mc-guide-grid-final{grid-template-columns:1fr!important;}
  body.mercantico-admin .mc-guide-stage{grid-column:1!important;}
}

body.mercantico-admin .mc-articoli-filter-check,
body.mercantico-admin .mc-articoli-check,
body.mercantico-admin .mc-articoli-select-all{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:auto!important;
  max-width:100%!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  line-height:1.25!important;
}
body.mercantico-admin .mc-articoli-filter-check > input[type="checkbox"],
body.mercantico-admin .mc-articoli-check > input[type="checkbox"],
body.mercantico-admin .mc-articoli-select-all > input[type="checkbox"]{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
}
body.mercantico-admin .mc-articoli-filter-check > span,
body.mercantico-admin .mc-articoli-check > span,
body.mercantico-admin .mc-articoli-select-all > span{
  display:inline!important;
  min-width:0!important;
  margin:0!important;
}
body.mercantico-admin .mc-articoli-filter-help{
  display:block!important;
  grid-column:1/-1!important;
  margin:-2px 0 4px!important;
  color:#66717f!important;
  line-height:1.35!important;
}
body.mercantico-admin .mc-articoli-remove-form{
  display:grid!important;
  grid-template-columns:minmax(240px,1fr) auto!important;
  gap:10px 14px!important;
  align-items:center!important;
  width:100%!important;
}
body.mercantico-admin .mc-articoli-remove-form .mc-articoli-check{grid-column:1!important;}
body.mercantico-admin .mc-articoli-remove-form .btn{grid-column:2!important;justify-self:end!important;}
body.mercantico-admin .mc-articoli-state-controls{
  display:grid!important;
  grid-template-columns:minmax(210px,.8fr) minmax(220px,1fr) auto auto!important;
  gap:10px 14px!important;
  align-items:end!important;
}
body.mercantico-admin .mc-articoli-state-select{display:grid!important;gap:6px!important;min-width:0!important;}
body.mercantico-admin .mc-articoli-selected-count{align-self:center!important;white-space:nowrap!important;width:auto!important;max-width:none!important;}
@media(max-width:900px){
  body.mercantico-admin .mc-articoli-remove-form,
  body.mercantico-admin .mc-articoli-state-controls{grid-template-columns:1fr!important;}
  body.mercantico-admin .mc-articoli-remove-form .mc-articoli-check,
  body.mercantico-admin .mc-articoli-remove-form .btn{grid-column:1!important;justify-self:start!important;}
  body.mercantico-admin .mc-articoli-remove-form .btn{width:auto!important;}
}

body.mercantico-admin .main table td .table-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  width:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.mercantico-admin .main table td .table-actions > .btn,
body.mercantico-admin .main table td > .btn,
body.mercantico-admin .main table td form > .btn{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:34px!important;
  margin:2px 4px 2px 0!important;
  padding:6px 10px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
body.mercantico-admin .main table td form:has(> .btn){
  display:inline-flex!important;
  width:auto!important;
  margin:0 4px 0 0!important;
  padding:0!important;
  vertical-align:middle!important;
}

body.mercantico-admin .main .btn.secondary,
body.mercantico-admin .main .btn.soft{background:#f2f6f9!important;border-color:#c6d2dd!important;color:#284865!important;}
body.mercantico-admin .main .btn.danger{background:#b33f4b!important;border-color:#b33f4b!important;color:#fff!important;}
body.mercantico-admin .main .btn.success{background:#20705e!important;border-color:#20705e!important;color:#fff!important;}
body.mercantico-admin .main .btn.warning{background:#a56c19!important;border-color:#a56c19!important;color:#fff!important;}

body.mercantico-admin #nuovo-cliente-form .documento-easy-progress{
  display:none!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-easy-heading p{
  max-width:100%!important;
  margin-bottom:10px!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-scan-status{
  margin:0 0 10px!important;
  color:#66717f!important;
  font-weight:700!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-scan-status.success,
body.mercantico-admin #nuovo-cliente-form .documento-scan-status.warning,
body.mercantico-admin #nuovo-cliente-form .documento-scan-status.processing{
  color:inherit!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-action-card{
  grid-template-rows:auto auto minmax(46px,1fr) auto!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-action-card h3{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-mode-tag{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  padding:2px 7px!important;
  border:1px solid #cbd7df!important;
  border-radius:999px!important;
  background:#f3f7f9!important;
  color:#526678!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-action-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  margin-top:auto!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-action-buttons > .btn,
body.mercantico-admin #nuovo-cliente-form .documento-action-card .documento-easy-start,
body.mercantico-admin #nuovo-cliente-form .documento-action-card .documento-easy-retry,
body.mercantico-admin #nuovo-cliente-form .documento-action-card .documento-read-button{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:34px!important;
  height:auto!important;
  margin:0!important;
  padding:7px 11px!important;
  flex:0 0 auto!important;
  font-size:10.5px!important;
  line-height:1.15!important;
  white-space:normal!important;
}
body.mercantico-admin #nuovo-cliente-form .documento-action-card .documento-easy-retry[hidden]{
  display:none!important;
}

body.mercantico-admin .dashboard-operativa .dashboard-action,
body.mercantico-admin .dashboard-operativa .dashboard-action.mc-action{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:88px!important;
  padding:14px 16px!important;
  border:1px solid #d6e0e8!important;
  border-radius:14px!important;
  background:#fff!important;
  background-image:none!important;
  box-shadow:0 3px 10px rgba(28,48,73,.055)!important;
  color:#172033!important;
  text-decoration:none!important;
  text-align:left!important;
  white-space:normal!important;
  transform:none!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-action:hover,
body.mercantico-admin .dashboard-operativa .dashboard-action.mc-action:hover{
  border-color:#9fb4c5!important;
  background:#f8fbfd!important;
  box-shadow:0 7px 18px rgba(28,48,73,.09)!important;
  transform:translateY(-1px)!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-action.primary{
  border-left:4px solid #2f7d86!important;
  background:#f8fcfc!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-action.sale{
  border-left:4px solid #20705e!important;
  background:#f8fcfa!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-action-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 50px!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:13px!important;
  background:#274f75!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:24px!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-action.primary .dashboard-action-icon{background:#2f7d86!important;color:#fff!important;}
body.mercantico-admin .dashboard-operativa .dashboard-action.sale .dashboard-action-icon{background:#20705e!important;color:#fff!important;}
body.mercantico-admin .dashboard-operativa .dashboard-action strong{
  display:block!important;
  color:#172033!important;
  font-size:17px!important;
  line-height:1.15!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-action small{
  display:block!important;
  margin-top:4px!important;
  color:#66717f!important;
  font-size:12px!important;
  line-height:1.3!important;
}

body.mercantico-admin .dashboard-operativa .dashboard-bookings-summary{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  min-width:0!important;
  white-space:normal!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-bookings-summary > a,
body.mercantico-admin .dashboard-operativa .dashboard-bookings-summary > a.mc-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:34px!important;
  margin:0 0 0 6px!important;
  padding:7px 11px!important;
  flex:0 0 auto!important;
  border:1px solid #c6d2dd!important;
  border-radius:9px!important;
  background:#f2f6f9!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#284865!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
body.mercantico-admin .dashboard-operativa .dashboard-bookings-summary > a:hover{background:#e7eef4!important;}

@media(max-width:760px){
  body.mercantico-admin .dashboard-operativa .dashboard-bookings-summary{justify-content:flex-start!important;width:100%!important;}
  body.mercantico-admin .dashboard-operativa .dashboard-bookings-summary > a{margin-left:0!important;}
  body.mercantico-admin #nuovo-cliente-form .documento-action-buttons{align-items:stretch!important;}
}

      html.mc-embedded-frame .mobile-topbar,
      html.mc-embedded-frame #mobileMenuToggle,
      html.mc-embedded-frame #sideBackdrop,
      html.mc-embedded-frame #adminSide,
      body.embedded-admin-view .mobile-topbar,
      body.embedded-admin-view #mobileMenuToggle,
      body.embedded-admin-view #sideBackdrop,
      body.embedded-admin-view #adminSide{display:none!important;}
      html.mc-embedded-frame body.mercantico-admin,
      body.mercantico-admin.embedded-admin-view{padding-top:0!important;}
      html.mc-embedded-frame body.mercantico-admin .main,
      body.mercantico-admin.embedded-admin-view .main{
        margin-left:0!important;left:auto!important;width:100%!important;max-width:none!important;
        min-height:100vh!important;box-sizing:border-box!important;padding-top:14px!important;
      }
      html.mc-embedded-frame body.mercantico-admin::before,
      body.mercantico-admin.embedded-admin-view::before{display:none!important;content:none!important;}
    
.admin-brand-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

      
      #adminSide.side::before{content:none!important;display:none!important;background-image:none!important;}
      #adminSide > .admin-dual-brand.has-shop-logo{
        display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;
        width:calc(100% - 18px)!important;max-width:272px!important;min-height:92px!important;padding:8px 10px!important;
      }
      #adminSide > .admin-dual-brand.has-shop-logo > .admin-logo-tile{
        display:flex!important;align-items:center!important;justify-content:center!important;height:72px!important;min-width:0!important;margin:0!important;padding:3px!important;box-shadow:none!important;
      }
      #adminSide > .admin-dual-brand.has-shop-logo > .mercantico-tile{
        flex:0 1 104px!important;width:104px!important;background:transparent!important;border:0!important;border-radius:0!important;
      }
      #adminSide > .admin-dual-brand.has-shop-logo > .shop-tile{
        flex:0 1 104px!important;width:104px!important;background:#fff!important;border-radius:13px!important;
      }
      #adminSide > .admin-dual-brand.has-shop-logo > .admin-logo-tile img{
        display:block!important;width:100%!important;max-width:100%!important;height:66px!important;max-height:66px!important;object-fit:contain!important;transform:none!important;
      }
      #adminSide > .admin-dual-brand.has-shop-logo > .admin-logo-divider{
        display:block!important;flex:0 0 1px!important;width:1px!important;height:52px!important;background:rgba(91,75,50,.28)!important;
      }
      .mobile-topbar .mobile-dual-brand.has-shop-logo{display:flex!important;align-items:center!important;gap:4px!important;max-width:164px!important;}
      .mobile-topbar .mobile-dual-brand.has-shop-logo > .admin-logo-tile{display:flex!important;align-items:center!important;justify-content:center!important;height:42px!important;padding:0!important;}
      .mobile-topbar .mobile-dual-brand.has-shop-logo > .mercantico-tile{flex:0 0 50px!important;width:50px!important;}
      .mobile-topbar .mobile-dual-brand.has-shop-logo > .shop-tile{flex:0 0 48px!important;width:48px!important;}
      .mobile-topbar .mobile-dual-brand.has-shop-logo > .admin-logo-tile img{width:100%!important;height:40px!important;max-height:40px!important;object-fit:contain!important;transform:none!important;}
      .mobile-topbar .mobile-dual-brand.has-shop-logo > .admin-logo-divider{display:block!important;flex:0 0 1px!important;width:1px!important;height:30px!important;background:rgba(255,255,255,.30)!important;}
    

      
      .mandati-list-table .v97-inline-icon-actions a[href^="/admin/clienti/"]{
        display:none!important;
      }
      .mandati-list-table .actions-cell{
        width:50px!important;
        min-width:50px!important;
        max-width:50px!important;
      }
      .mandati-list-table .v97-inline-icon-actions{
        gap:0!important;
      }

      .scheda-cliente-compact{
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        gap:6px!important;
        width:auto!important;
        min-width:0!important;
        max-width:100%!important;
        min-height:36px!important;
        padding:7px 9px!important;
        overflow:visible!important;
        white-space:normal!important;
        font-size:13px!important;
        line-height:1.15!important;
        font-weight:800!important;
        border-radius:9px!important;
      }
      .scheda-cliente-compact::before{
        content:"✏️";
        display:inline-block;
        flex:0 0 auto;
        font-size:16px!important;
        line-height:1!important;
      }
    

      
      .clienti-toolbar > *:not(.form-actions){display:none!important;}
      .clienti-toolbar{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        min-height:72px!important;
        margin:4px 0 18px!important;
        padding:0!important;
        border:0!important;
        background:transparent!important;
        box-shadow:none!important;
      }
      .clienti-toolbar .form-actions{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
        margin:0!important;
        padding:0!important;
      }
      .clienti-toolbar .form-actions .btn{margin:0!important;}
      @media (max-width: 900px){
        .clienti-toolbar{min-height:60px!important; margin:2px 0 14px!important;}
      }
    

      
      .clienti-table-wrap, .clienti-table-wrap-leggera{
        width:100%!important; max-width:100%!important; min-width:0!important;
        overflow-x:auto!important; overflow-y:visible!important; box-sizing:border-box!important;
      }
      .clienti-table-wrap table, table.clienti-operativa, table.clienti-operativa-leggera{
        width:100%!important; max-width:100%!important; min-width:0!important;
        table-layout:fixed!important; box-sizing:border-box!important;
      }
      .clienti-table-wrap th, .clienti-table-wrap td,
      table.clienti-operativa th, table.clienti-operativa td{
        min-width:0!important; max-width:none!important;
        padding:7px 8px!important; box-sizing:border-box!important;
        white-space:normal!important; overflow-wrap:anywhere!important; word-break:normal!important;
        vertical-align:middle!important;
      }
      .clienti-table-wrap th,
      table.clienti-operativa th{font-size:13px!important;line-height:1.2!important;font-weight:800!important;}
      .clienti-table-wrap td,
      table.clienti-operativa td{font-size:14px!important;line-height:1.28!important;}
      .clienti-table-wrap td b,
      table.clienti-operativa td b{font-size:inherit!important;line-height:inherit!important;}
      .clienti-table-wrap td small,
      table.clienti-operativa td small{font-size:12px!important;line-height:1.25!important;}

      .clienti-table-wrap th.mc-client-col-actions, .clienti-table-wrap td.mc-client-col-actions{
        width:112px!important; max-width:112px!important; text-align:center!important; padding-left:5px!important; padding-right:5px!important;
      }
      .clienti-table-wrap th.mc-client-col-code, .clienti-table-wrap td.mc-client-col-code{width:72px!important;}
      .clienti-table-wrap th.mc-client-col-mandates, .clienti-table-wrap td.mc-client-col-mandates{width:78px!important;text-align:center!important;}
      .clienti-table-wrap th.mc-client-col-status, .clienti-table-wrap td.mc-client-col-status{width:78px!important;text-align:center!important;}
      .clienti-table-wrap th.mc-client-col-privacy, .clienti-table-wrap td.mc-client-col-privacy{width:88px!important;text-align:center!important;}
      .clienti-table-wrap th.mc-client-col-web, .clienti-table-wrap td.mc-client-col-web{width:90px!important;text-align:center!important;}
      .clienti-table-wrap th.mc-client-col-date, .clienti-table-wrap td.mc-client-col-date{width:92px!important;}
      .clienti-table-wrap th.mc-client-col-client, .clienti-table-wrap td.mc-client-col-client{width:31%!important;}
      .clienti-table-wrap th.mc-client-col-contact, .clienti-table-wrap td.mc-client-col-contact{width:39%!important;}
      .clienti-table-wrap .btn{max-width:100%!important;}
      .clienti-table-wrap .scheda-cliente-compact{
        width:auto!important;min-width:0!important;max-width:100%!important;
        min-height:36px!important;height:auto!important;padding:7px 8px!important;
        font-size:13px!important;line-height:1.15!important;
      }

      
      @media (max-width:1180px){
        .clienti-table-wrap th, .clienti-table-wrap td{padding:6px!important;}
        .clienti-table-wrap th.mc-client-col-actions, .clienti-table-wrap td.mc-client-col-actions{width:104px!important;max-width:104px!important;}
        .clienti-table-wrap th.mc-client-col-mandates, .clienti-table-wrap td.mc-client-col-mandates{width:70px!important;}
        .clienti-table-wrap th.mc-client-col-date, .clienti-table-wrap td.mc-client-col-date{width:86px!important;}
      }
      @media (max-width:900px){
        .clienti-table-wrap th, .clienti-table-wrap td{padding:5px!important;}
        .clienti-table-wrap th, table.clienti-operativa th{font-size:12.5px!important;}
        .clienti-table-wrap td, table.clienti-operativa td{font-size:13.5px!important;}
        .clienti-table-wrap td small, table.clienti-operativa td small{font-size:11.5px!important;}
        .clienti-table-wrap th.mc-client-col-actions, .clienti-table-wrap td.mc-client-col-actions{width:98px!important;max-width:98px!important;}
        .clienti-table-wrap .scheda-cliente-compact{font-size:12.5px!important;padding:6px!important;}
      }
    

      
      .mandati-list-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;box-sizing:border-box!important;}
      .mandati-list-table th,.mandati-list-table td{
        min-width:0!important;max-width:none!important;box-sizing:border-box!important;
        padding:7px 7px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
        vertical-align:middle!important;font-size:13.5px!important;line-height:1.25!important;
      }
      .mandati-list-table th{font-size:13px!important;font-weight:800!important;}
      .mandati-list-table .actions-cell{width:50px!important;min-width:50px!important;max-width:50px!important;text-align:center!important;padding-left:4px!important;padding-right:4px!important;}
      .mandati-list-table th.mc-mandato-col-numero,.mandati-list-table td.mc-mandato-col-numero{width:128px!important;}
      .mandati-list-table th.mc-mandato-col-cliente,.mandati-list-table td.mc-mandato-col-cliente{width:25%!important;}
      .mandati-list-table th.mc-mandato-col-data,.mandati-list-table td.mc-mandato-col-data{width:96px!important;}
      .mandati-list-table th.mc-mandato-col-scadenza,.mandati-list-table td.mc-mandato-col-scadenza{width:96px!important;}
      .mandati-list-table th.mc-mandato-col-articoli,.mandati-list-table td.mc-mandato-col-articoli{width:64px!important;text-align:center!important;}
      .mandati-list-table th.mc-mandato-col-stato,.mandati-list-table td.mc-mandato-col-stato{width:84px!important;text-align:center!important;}
      .mandati-list-table th.mc-mandato-col-consensi,.mandati-list-table td.mc-mandato-col-consensi{width:auto!important;}
      .mandati-list-table .mandato-number{white-space:normal!important;overflow-wrap:anywhere!important;}
      .mandati-list-table .badge{max-width:100%!important;white-space:normal!important;}
      body.mercantico-admin .main .panel:has(.mandati-list-table){max-width:100%!important;min-width:0!important;overflow:hidden!important;box-sizing:border-box!important;}
      body.mercantico-admin .main .panel:has(.mandati-list-table) .table-wrap{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;box-sizing:border-box!important;}
      @media(max-width:1180px){
        .mandati-list-table th,.mandati-list-table td{padding:6px 5px!important;font-size:13px!important;}
        .mandati-list-table th{font-size:12.5px!important;}
        .mandati-list-table th.mc-mandato-col-numero,.mandati-list-table td.mc-mandato-col-numero{width:112px!important;}
        .mandati-list-table th.mc-mandato-col-data,.mandati-list-table td.mc-mandato-col-data,
        .mandati-list-table th.mc-mandato-col-scadenza,.mandati-list-table td.mc-mandato-col-scadenza{width:84px!important;}
      }
      @media(max-width:900px){
        .mandati-list-table th,.mandati-list-table td{padding:5px 4px!important;font-size:12.5px!important;}
        .mandati-list-table th{font-size:12px!important;}
        .mandati-list-table th.mc-mandato-col-numero,.mandati-list-table td.mc-mandato-col-numero{width:102px!important;}
        .mandati-list-table th.mc-mandato-col-articoli,.mandati-list-table td.mc-mandato-col-articoli{width:54px!important;}
        .mandati-list-table th.mc-mandato-col-stato,.mandati-list-table td.mc-mandato-col-stato{width:70px!important;}
      }
    

      .mc-dismissione-actions-stack{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:280px;max-width:340px;margin-left:auto}
      .mc-dismissione-actions-stack>a{align-self:stretch;text-align:center}
      .mc-dismissione-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
      .mc-dismissione-actions-row .btn{margin:0!important;min-height:42px!important;font-weight:800!important}
      .mc-dismissione-action-original{display:none!important}
      @media(max-width:760px){.mc-dismissione-actions-stack{width:100%;max-width:none;min-width:0}.mc-dismissione-actions-row{grid-template-columns:1fr 1fr}}
    

      .mc-firststeps{margin:0 0 20px;padding:20px;border:1px solid rgba(91,75,50,.16);border-radius:18px;background:linear-gradient(135deg,#fff 0%,#faf7f0 100%);box-shadow:0 10px 28px rgba(45,38,27,.07)}
      .mc-firststeps-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
      .mc-firststeps h1{margin:0 0 5px;font-size:26px;line-height:1.1}.mc-firststeps p{margin:0;color:#5f5a51}
      .mc-firststeps-progress{min-width:180px}.mc-firststeps-progress strong{display:block;text-align:right;margin-bottom:6px}.mc-progress-track{height:10px;border-radius:999px;background:#e7e0d3;overflow:hidden}.mc-progress-bar{height:100%;background:#216869;border-radius:999px}
      .mc-firststeps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
      .mc-step{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #e8e2d8;border-radius:13px;background:#fff;text-decoration:none!important;color:inherit!important;transition:.15s ease}
      .mc-step:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.07)}.mc-step.done{background:#f3faf7;border-color:#c8e4d8}.mc-step.next{border:2px solid #216869}
      .mc-step-num{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#eee7dc;font-weight:900}.mc-step.done .mc-step-num{background:#216869;color:#fff}.mc-step-copy{min-width:0;flex:1}.mc-step-copy b{display:block;font-size:15px}.mc-step-copy small{display:block;margin-top:3px;color:#6b665e;line-height:1.25}.mc-step-go{font-weight:800;color:#216869;white-space:nowrap}
      .mc-firststeps-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid #e8e2d8}.mc-firststeps-foot a{font-weight:800}
      .mc-help-fab{position:fixed;right:24px;bottom:24px;z-index:9900;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#216869;color:#fff!important;font-size:24px;font-weight:900;text-decoration:none!important;box-shadow:0 8px 24px rgba(0,0,0,.22)}
      .mc-help-fab:hover{transform:translateY(-1px)}
      .mc-guide-launch{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin:0 0 20px;border:2px solid #216869;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(45,38,27,.07)}
      .mc-guide-launch h1{margin:0 0 5px;font-size:25px}.mc-guide-launch p{margin:0;color:#5f5a51}.mc-guide-actions{display:flex;gap:8px;flex-wrap:wrap}.mc-guide-actions .btn{white-space:nowrap}
      .mc-guide-stage{padding:16px;border:1px solid #e6dfd4;border-radius:14px;background:#fff}.mc-guide-stage.active{border:2px solid #216869}.mc-guide-stage.done{background:#fbfdfc}.mc-guide-stage h3{margin:0 0 6px}.mc-guide-stage p{margin:0 0 12px;color:#666}.mc-guide-selected{padding:10px 12px;margin:8px 0 12px;border-radius:10px;background:#f3faf7;border:1px solid #c8e4d8}.mc-guide-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.mc-guide-form label{flex:1;min-width:220px}.mc-guide-form select,.mc-guide-form input{width:100%}.mc-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mc-guide-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#f0eee9;font-size:12px;font-weight:800}.mc-guide-badge.ok{background:#e8f6ef;color:#155e63}.mc-guide-client-results{display:grid;gap:7px;margin-top:10px}.mc-guide-client-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#5f5a51;font-size:12px;font-weight:800}.mc-guide-client-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d8dfdc;border-radius:11px;background:#fff;color:#172033;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.mc-guide-client-result:hover,.mc-guide-client-result:focus-visible{border-color:#216869;box-shadow:0 5px 14px rgba(33,104,105,.12);transform:translateY(-1px);outline:none}.mc-guide-client-result-main{min-width:0}.mc-guide-client-result-main b{display:block;font-size:14px;line-height:1.25}.mc-guide-client-result-main small{display:block;margin-top:3px;color:#68645e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-guide-client-result-action{flex:0 0 auto;padding:7px 10px;border-radius:9px;background:#216869;color:#fff;font-size:12px;font-weight:900}.mc-guide-client-empty{margin-top:10px;padding:10px 12px;border:1px dashed #d9cdbf;border-radius:10px;background:#fffaf4;color:#665d53}.mc-guide-client-recent{margin-top:8px}
      .mc-guide-activebar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 14px;border:1px solid #b9d8cc;border-radius:12px;background:#f2faf6}.mc-guide-activebar strong{color:#155e63}.mc-guide-activebar .mc-guide-actions{margin-left:auto}
      .mc-guide-current{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:250px}.mc-guide-current strong{font-size:14px;text-align:right}.mc-guide-context{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-4px 0 14px}.mc-guide-optional{font-size:11px;font-weight:800;color:#6f6a61;text-transform:uppercase;letter-spacing:.03em}.mc-guide-stage>small{display:block;color:#6c665d;line-height:1.35;margin-top:6px}
      @media(max-width:900px){.mc-firststeps{padding:15px;margin-top:4px}.mc-firststeps-head{display:block}.mc-firststeps-progress{margin-top:14px;min-width:0}.mc-firststeps-progress strong{text-align:left}.mc-firststeps-grid,.mc-guide-grid{grid-template-columns:1fr}.mc-step{padding:11px}.mc-firststeps-foot,.mc-guide-launch,.mc-guide-activebar{align-items:flex-start;flex-direction:column}.mc-guide-form{display:block}.mc-guide-form label{display:block;min-width:0;margin-bottom:8px}.mc-guide-form .btn{width:100%;margin-top:6px}.mc-guide-activebar .mc-guide-actions{margin-left:0}.mc-guide-current{align-items:flex-start;min-width:0;margin-top:12px}.mc-guide-current strong{text-align:left}.mc-guide-context{gap:5px}.mc-help-fab{right:14px;bottom:72px}}
    

      
      #adminSide > .mc-permanent-actions-v259{
        flex:0 0 auto!important;
        display:grid!important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
        gap:10px!important;
        margin:4px 7px 10px!important;
        padding:0!important;
        background:transparent!important;
        background-image:none!important;
        border:0!important;
        outline:0!important;
        box-shadow:none!important;
        filter:none!important;
      }
      #adminSide > .mc-permanent-actions-v259::before,
      #adminSide > .mc-permanent-actions-v259::after{display:none!important;content:none!important;}
      #adminSide > .mc-permanent-actions-v259 > a{
        display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
        min-height:46px!important;margin:0!important;padding:9px 8px!important;border-radius:12px!important;
        color:#fff!important;text-decoration:none!important;font-size:14px!important;font-weight:900!important;
        line-height:1.05!important;text-align:center!important;
        box-shadow:0 5px 14px rgba(0,0,0,.18)!important;
      }
      #adminSide > .mc-permanent-actions-v259 > .side-permanent-vetrina{
        background:linear-gradient(180deg,#2876a8,#1f5f8b)!important;border:1px solid rgba(255,255,255,.16)!important;
      }
      #adminSide > .mc-permanent-actions-v259 > .side-permanent-exit{
        background:linear-gradient(180deg,#bd3652,#92263c)!important;border:1px solid rgba(255,255,255,.16)!important;
      }
      #adminSide > .mc-permanent-actions-v259 .ico{font-size:20px!important;}

      
      body.admin-page-fatture form.grid > .full{
        display:grid!important;
        grid-template-columns:minmax(118px,max-content) minmax(118px,max-content)!important;
        gap:9px 10px!important;
        align-items:stretch!important;
        justify-content:start!important;
      }
      body.admin-page-fatture form.grid > .full > button:first-child,
      body.admin-page-fatture form.grid > .full > a.btn{
        margin:0!important;
        min-height:42px!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        white-space:nowrap!important;
        border-radius:11px!important;
        padding:10px 15px!important;
      }
      body.admin-page-fatture form.grid > .full > button:first-child{
        grid-column:1!important;grid-row:1!important;
        background:#19745f!important;color:#fff!important;border:1px solid #145f4e!important;
        box-shadow:0 5px 12px rgba(25,116,95,.18)!important;
      }
      body.admin-page-fatture form.grid > .full > a.btn:nth-of-type(1){
        grid-column:2!important;grid-row:1!important;
        background:#eef1f4!important;color:#263645!important;border:1px solid #c8d0d8!important;
        box-shadow:none!important;
      }
      body.admin-page-fatture form.grid > .full > a.btn:nth-of-type(2){grid-column:1!important;grid-row:2!important;}
      body.admin-page-fatture form.grid > .full > a.btn:nth-of-type(3){grid-column:2!important;grid-row:2!important;}
      body.admin-page-fatture form.grid > .full > a.btn:nth-of-type(n+2){
        background:#244e78!important;color:#fff!important;border:1px solid #1e4266!important;
        box-shadow:0 4px 10px rgba(36,78,120,.16)!important;
      }
      @media(max-width:620px){
        #adminSide > .mc-permanent-actions-v259{margin-left:8px!important;margin-right:8px!important;}
        body.admin-page-fatture form.grid > .full{grid-template-columns:1fr 1fr!important;width:100%!important;}
        body.admin-page-fatture form.grid > .full > button:first-child,
        body.admin-page-fatture form.grid > .full > a.btn{width:100%!important;min-width:0!important;white-space:normal!important;}
      }
    

      
      #adminSide .v29-menu-group{
        background:rgba(255,255,255,.075)!important;
        border-color:rgba(255,255,255,.15)!important;
      }
      #adminSide .v29-menu-panel{
        background:rgba(255,255,255,.018)!important;
      }
      #adminSide .v29-menu-links > a{
        background:rgba(255,255,255,.065)!important;
        border-color:rgba(255,255,255,.11)!important;
      }
      #adminSide .v29-menu-links > a:hover{background:rgba(83,118,153,.42)!important;}
      #adminSide .v29-menu-links > a.active{
        background:linear-gradient(135deg,#3a6288,#3c7d88)!important;
      }
    
@media(max-width:900px){.credenziali-cliente-popup{left:10px!important;right:10px!important;bottom:10px!important;max-height:86vh;overflow:auto}.credenziali-cliente-grid{grid-template-columns:1fr!important}.credenziali-cliente-alert input{width:100%}}

.giornale-print-form .giornale-complete-pages-option{
    margin:14px 0 10px;
    padding:0;
}
.giornale-print-form .giornale-complete-pages-option label{
    display:flex;
    align-items:flex-start;
    gap:12px;
    width:100%;
    box-sizing:border-box;
    padding:13px 15px;
    border:1px solid #cfd8e6;
    border-radius:12px;
    background:#f7f9fc;
    cursor:pointer;
}
.giornale-print-form .giornale-complete-pages-option input[type="checkbox"]{
    flex:0 0 auto;
    width:22px;
    height:22px;
    margin:2px 0 0;
    accent-color:#203f65;
}
.giornale-print-form .giornale-complete-pages-option span{
    display:block;
    min-width:0;
}
.giornale-print-form .giornale-complete-pages-option b{
    display:block;
    margin-bottom:3px;
    font-size:15px;
    line-height:1.2;
}
.giornale-print-form .giornale-complete-pages-option small{
    display:block;
    color:#5b6780;
    font-size:13px;
    line-height:1.35;
    font-weight:500;
}
.giornale-print-form .giornale-print-note{
    display:block;
    margin-top:7px;
}

.giornale-exclude-tools{display:grid;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) auto;gap:10px;align-items:end;margin:12px 0;padding:12px;border:1px solid #d6deea;border-radius:12px;background:#f8fafc}
.giornale-exclude-tools label{margin:0}.giornale-exclude-tools .tool-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.giornale-exclude-note{margin:6px 0 12px;color:#5b6780;font-size:13px}
.giornale-selection-table .select-col{width:42px;min-width:42px;max-width:42px;text-align:center}
.giornale-selection-table input[type="checkbox"],.giornale-excluded-table input[type="checkbox"]{width:20px;height:20px;accent-color:#203f65}
.giornale-excluded-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin:10px 0}
@media(max-width:850px){.giornale-exclude-tools{grid-template-columns:1fr}.giornale-exclude-tools .tool-actions{justify-content:flex-start}}

*{box-sizing:border-box}
html,body{max-width:100%}
body{margin:0;background:#eef1f4;color:#111;font-family:Arial,Helvetica,sans-serif}
body.receipt-embedded{padding:10px}
.receipt{
    width:210mm;
    max-width:calc(100vw - 20px);
    min-height:297mm;
    margin:12px auto;
    background:#fff;
    padding:10mm 10mm 9mm;
    box-shadow:0 3px 18px rgba(20,34,50,.14);
}
.sale-company-header{
    display:grid;
    grid-template-columns:48mm 1fr;
    gap:8mm;
    align-items:center;
    border-bottom:2px solid #333;
    padding-bottom:5mm;
    margin-bottom:5mm;
}
.sale-logo-box{height:24mm;display:flex;align-items:center;justify-content:flex-start}
.sale-logo-box img{display:block;max-width:44mm;max-height:22mm;object-fit:contain}
.sale-logo-fallback{font-size:16pt;font-weight:900;border:1.5px solid #333;padding:4mm 5mm;text-align:center}
.sale-company{font-size:9.3pt;line-height:1.28}
.sale-company b.sale-company-name{display:block;font-size:12pt;margin-bottom:1mm}
.sale-company-meta{display:grid;grid-template-columns:1fr 1fr;gap:.8mm 6mm;margin-top:1.5mm}
.sale-document-heading{text-align:center;margin:0 0 5mm}
.sale-document-heading h1{margin:0;font-size:14pt;text-transform:uppercase;letter-spacing:.02em}
.sale-document-heading p{margin:1.5mm 0 0;font-size:9pt}
.sale-document-ref{
    display:grid;
    grid-template-columns:auto 1fr auto 1fr auto 1fr;
    gap:1.5mm 3mm;
    align-items:center;
    border-top:1px solid #bbb;
    border-bottom:1px solid #bbb;
    padding:2.2mm 0;
    margin-bottom:4mm;
    font-size:9pt;
}
.sale-document-ref .label{font-weight:800}
.buyer-box{margin:0 0 4mm;padding:2.5mm 3mm;border:1px solid #c8c8c8;background:#fafafa;font-size:9pt}
.receipt-table-wrap{width:100%;overflow:visible;border:1px solid #777}
.sale-receipt-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0;font-size:8.6pt}
.sale-receipt-table th,.sale-receipt-table td{border:1px solid #9a9a9a;padding:2.1mm 1.5mm;vertical-align:top;line-height:1.2;overflow-wrap:break-word;word-break:normal}
.sale-receipt-table th{background:#efefef;color:#111;font-size:8.2pt;font-weight:800;text-align:left;vertical-align:middle}
.sale-receipt-table th:nth-child(1),.sale-receipt-table td:nth-child(1){width:9%}
.sale-receipt-table th:nth-child(2),.sale-receipt-table td:nth-child(2){width:23%}
.sale-receipt-table th:nth-child(3),.sale-receipt-table td:nth-child(3){width:5%;text-align:center}
.sale-receipt-table th:nth-child(4),.sale-receipt-table td:nth-child(4){width:17%}
.sale-receipt-table th:nth-child(5),.sale-receipt-table td:nth-child(5){width:11%}
.sale-receipt-table th:nth-child(6),.sale-receipt-table td:nth-child(6){width:11%}
.sale-receipt-table th:nth-child(7),.sale-receipt-table td:nth-child(7){width:14%}
.sale-receipt-table th:nth-child(8),.sale-receipt-table td:nth-child(8){width:10%}
.sale-receipt-table td:nth-child(5),.sale-receipt-table td:nth-child(6),.sale-receipt-table td:nth-child(8){white-space:nowrap}
.sale-receipt-table td:nth-child(6),.sale-receipt-table td:nth-child(8){text-align:right}
.sale-cell-main{font-weight:800}
.sale-cell-sub{display:block;margin-top:.6mm;font-size:7.5pt;color:#444;line-height:1.18}
.sale-accounting{margin-top:4mm;border-top:1.5px solid #333;padding-top:2.5mm}
.sale-accounting-grid{width:62%;margin-left:auto;display:grid;grid-template-columns:1fr auto;gap:1.1mm 7mm;font-size:9pt;align-items:end}
.sale-accounting-grid .label{text-align:right}
.sale-accounting-grid .value{text-align:right;font-weight:800;white-space:nowrap}
.sale-accounting-grid .grand-label,.sale-accounting-grid .grand-value{border-top:1px solid #555;padding-top:1.8mm;margin-top:.7mm;font-size:11.5pt;font-weight:900}
.sale-accounting-grid .client-label,.sale-accounting-grid .client-value{font-size:10pt;font-weight:900}
.note{font-size:8pt;line-height:1.3;margin-top:4mm}
.fiscal-note{color:#555;border-top:1px solid #ddd;padding-top:2.5mm}
.sale-receipt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:14px}
.sale-receipt-actions .sale-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:10px;border:1px solid #cbd7e6;font:inherit;font-weight:800;line-height:1;text-decoration:none;cursor:pointer;white-space:nowrap}
.sale-action-primary{background:#183a63;border-color:#183a63!important;color:#fff}
.sale-action-customer{min-height:58px!important;min-width:280px!important;padding:9px 22px!important;background:#0f6848!important;border-color:#0f6848!important;color:#fff!important;flex-direction:column;gap:3px;box-shadow:0 2px 5px rgba(15,104,72,.22)}
.sale-action-customer .sale-action-title{font-size:16px;font-weight:900;letter-spacing:.015em}
.sale-action-customer .sale-action-note{font-size:11px;font-weight:700;opacity:.92}
.sale-action-secondary{background:#f7f9fc;color:#1d3557}
.sale-action-danger{background:#a92d3f;border-color:#a92d3f!important;color:#fff}
.sale-action-danger-wrap{margin-left:auto}
.doc-subtitle-customer{display:none}
.customer-only{display:none}
body.receipt-embedded .sale-receipt-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #dbe3ed;padding:10px;z-index:5}
body.receipt-embedded .sale-receipt-actions form{margin:0}
@media(max-width:760px){
    body.receipt-embedded{padding:5px}
    .receipt{max-width:calc(100vw - 10px);padding:14px 12px;margin:5px auto;min-height:calc((100vw - 10px) * 1.4142)}
    .sale-company-header{grid-template-columns:88px 1fr;gap:10px;padding-bottom:12px;margin-bottom:12px}
    .sale-logo-box{height:50px}.sale-logo-box img{max-width:82px;max-height:48px}
    .sale-company{font-size:9px}.sale-company b.sale-company-name{font-size:12px}.sale-company-meta{grid-template-columns:1fr}
    .sale-document-heading h1{font-size:15px}.sale-document-heading p{font-size:10px}
    .sale-document-ref{grid-template-columns:auto 1fr auto 1fr;font-size:9px}
    .sale-document-ref .payment-label,.sale-document-ref .payment-value{display:none}
    .sale-receipt-table{font-size:8px}
    .sale-receipt-table th{font-size:7.6px}
    .sale-receipt-table th,.sale-receipt-table td{padding:4px 3px}
    .sale-cell-sub{font-size:7px}
    .sale-accounting-grid{width:100%;font-size:9px}
    .sale-receipt-actions{align-items:stretch}.sale-receipt-actions .sale-action,.sale-action-danger-wrap{width:100%;margin-left:0}.sale-action-danger-wrap .sale-action{width:100%}.sale-action-customer{min-width:0!important;min-height:62px!important}
}
@media print{
    @page{size:A4 portrait;margin:0}
    html,body{width:210mm;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
    .receipt{width:210mm!important;max-width:none!important;min-height:297mm!important;margin:0!important;padding:7mm 8mm!important;box-shadow:none!important}
    .sale-company-header{grid-template-columns:40mm 1fr;gap:6mm;padding-bottom:3mm;margin-bottom:3.5mm}
    .sale-logo-box{height:19mm}.sale-logo-box img{max-width:37mm;max-height:18mm}
    .sale-logo-fallback{font-size:12pt;padding:3mm 4mm}
    .sale-company{font-size:8pt;line-height:1.18}.sale-company b.sale-company-name{font-size:10.5pt}.sale-company-meta{gap:.5mm 5mm;margin-top:1mm}
    .sale-document-heading{margin-bottom:3.5mm}.sale-document-heading h1{font-size:12.5pt}.sale-document-heading p{font-size:8.5pt;margin-top:1mm}
    .sale-document-ref{font-size:8pt;padding:1.6mm 0;margin-bottom:3mm}
    .buyer-box{font-size:8pt;margin-bottom:3mm;padding:1.8mm 2mm}
    .receipt-table-wrap{border:0}
    .sale-receipt-table{font-size:7.8pt!important}
    .sale-receipt-table th{font-size:7.4pt!important}
    .sale-receipt-table th,.sale-receipt-table td{padding:1.6mm 1mm!important;line-height:1.16!important}
    .sale-cell-sub{font-size:6.7pt!important}
    .sale-accounting{margin-top:3mm;padding-top:2mm}.sale-accounting-grid{font-size:8pt;width:60%;gap:.8mm 6mm}.sale-accounting-grid .grand-label,.sale-accounting-grid .grand-value{font-size:10.5pt}.sale-accounting-grid .client-label,.sale-accounting-grid .client-value{font-size:9pt}
    .note{font-size:7pt;margin-top:3mm}.fiscal-note{padding-top:2mm}
    .no-print,.sale-receipt-actions{display:none!important}
    body.print-customer .internal-only{display:none!important}
    body.print-customer .customer-only{display:initial!important}
    body.print-customer .doc-subtitle-internal{display:none!important}
    body.print-customer .doc-subtitle-customer{display:inline!important}
    body.print-customer .sale-receipt-table th:nth-child(1),body.print-customer .sale-receipt-table td:nth-child(1){width:16%!important}
    body.print-customer .sale-receipt-table th:nth-child(2),body.print-customer .sale-receipt-table td:nth-child(2){width:50%!important}
    body.print-customer .sale-receipt-table th:nth-child(3),body.print-customer .sale-receipt-table td:nth-child(3){width:10%!important}
    body.print-customer .sale-receipt-table th:nth-child(6),body.print-customer .sale-receipt-table td:nth-child(6){width:24%!important}
    body.print-customer .sale-accounting-grid{width:48%!important}
    tr{break-inside:avoid;page-break-inside:avoid}
}

.article-code-field{position:relative}
.article-code-field input.is-checking{border-color:#74859a;background:#f5f7fa}
.article-code-field input.is-available{border-color:#198754;background:#f2fbf6}
.article-code-field input.is-duplicate,.article-code-field input.is-invalid{border-color:#b4233d;background:#fff4f6}
.article-code-status{display:block;margin-top:6px;font-size:12px;font-weight:750;line-height:1.35}
.article-code-status.is-neutral{color:#667085}.article-code-status.is-checking{color:#526477}.article-code-status.is-ok{color:#157347}.article-code-status.is-error{color:#a61b34}

.invoice-confirm-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.invoice-confirm-hero h2{margin-top:0}.invoice-confirm-table{min-width:1120px}.invoice-final-confirm{border:2px solid #2d7180}.invoice-confirm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.invoice-confirm-actions .btn{min-width:210px;text-align:center}@media(max-width:700px){.invoice-confirm-hero{display:block}.invoice-confirm-hero .btn{width:100%;margin-top:10px}.invoice-confirm-actions{display:grid;grid-template-columns:1fr}.invoice-confirm-actions .btn{width:100%;min-width:0}}

      .meta-token-field{display:flex;gap:8px;align-items:stretch;width:100%;margin-top:6px}
      .meta-token-field input{flex:1 1 auto;min-width:0;margin-top:0!important}
      .meta-token-toggle{flex:0 0 auto;white-space:nowrap;min-width:108px}
      @media(max-width:680px){
        .meta-token-field{display:grid;grid-template-columns:minmax(0,1fr) auto}
        .meta-token-toggle{min-width:96px;padding-left:10px!important;padding-right:10px!important}
      }
    

.v105-client-sticky-header{
    min-height:58px!important;
    padding:11px 14px!important;
    border-radius:11px!important;
}
.v105-client-sticky-header .v97-client-sticky-title strong{font-size:18px!important}
.v105-client-sticky-header .v97-client-sticky-actions .btn{
    min-height:34px!important;
    padding:6px 10px!important;
    font-size:11px!important;
}
.v105-client-layout{margin-top:10mm!important}
.v105-client-layout .v95-client-actions-row{
    align-items:stretch!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
}
.v105-client-layout .v95-client-actions-row>.panel{
    height:100%!important;
    min-height:168px!important;
    padding:12px 13px!important;
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
}
.v105-client-layout .v95-client-actions-row .cliente-actions-title{
    font-size:17px!important;
    margin:0 0 5px!important;
}
.v105-client-layout .v95-client-actions-row .cliente-actions-help{
    font-size:12.5px!important;
    line-height:1.35!important;
    margin:0 0 9px!important;
}
.v105-client-layout .v95-client-actions-row .mc-client-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
}
.v105-client-layout .v95-client-actions-row .mc-client-action{
    min-height:50px!important;
    padding:9px 10px!important;
    font-size:13.5px!important;
    line-height:1.15!important;
    border-radius:8px!important;
}
.v105-client-layout .v95-client-actions-row .mc-client-action-icon{font-size:16px!important}
.v105-client-layout .cliente-secondary-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    align-content:start!important;
    flex:1 1 auto!important;
}
.v105-client-layout .cliente-secondary-grid>.btn,
.v105-client-layout .cliente-secondary-grid>form .btn{
    width:100%!important;
    min-height:44px!important;
    height:auto!important;
    padding:8px 9px!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:normal!important;
    text-align:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:7px!important;
    box-sizing:border-box!important;
}
.v105-client-layout .cliente-secondary-grid>form{display:flex!important;margin:0!important}
.v105-client-layout .cliente-meta-line{
    margin-top:7px!important;
    font-size:11.5px!important;
    line-height:1.25!important;
}
@media(max-width:1180px){
    .v105-client-layout .cliente-secondary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
    .v105-client-layout{margin-top:18px!important}
    .v105-client-layout .v95-client-actions-row{grid-template-columns:1fr!important}
    .v105-client-layout .cliente-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
    .v105-client-sticky-header{min-height:0!important;padding:9px 10px!important}
    .v105-client-layout{margin-top:12px!important}
    .v105-client-layout .v95-client-actions-row .mc-client-actions,
    .v105-client-layout .cliente-secondary-grid{grid-template-columns:1fr 1fr!important}
}

#stato-articoli-email-dialog{
    width:min(940px,calc(100vw - 64px));
    max-width:940px;
    max-height:calc(100vh - 48px);
    padding:0!important;
    overflow:hidden;
    box-sizing:border-box;
    border-radius:14px;
}
#stato-articoli-email-dialog .v95-client-dialog-head{margin:0!important;padding:12px 16px!important;box-sizing:border-box}
.stato-articoli-email-content{padding:14px 18px 16px;max-height:calc(100vh - 126px);overflow:auto;box-sizing:border-box;background:#fff}
.stato-articoli-email-meta{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px 12px;align-items:center;margin:0 0 12px}
.stato-articoli-email-meta b{font-size:12px}
.stato-articoli-email-meta input{width:100%;box-sizing:border-box;min-width:0}
.stato-articoli-email-stats{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 10px}
.stato-articoli-email-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#eef3f8;color:#17324d;font-size:12px;font-weight:700}
.stato-articoli-email-preview{margin-top:10px;border:1px solid #d7e0ea;border-radius:14px;background:#dfe7f0;padding:12px;overflow:auto;box-sizing:border-box}
.stato-articoli-email-preview-frame{width:100%;min-height:650px;border:0;background:#fff;border-radius:10px;display:block;box-sizing:border-box}
.stato-articoli-email-preview-empty{padding:18px;border-radius:10px;background:#fff;color:#516173;font-size:14px}
.stato-articoli-email-body-fallback{width:100%;min-height:180px;max-height:24vh;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.45;white-space:pre-wrap;margin-top:10px;box-sizing:border-box}
.stato-articoli-email-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #e1e7ee;background:#fff}
.stato-articoli-email-warning{margin:8px 0;padding:9px 10px;border:1px solid currentColor;border-radius:8px}
@media(max-width:700px){
    #stato-articoli-email-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}
    .stato-articoli-email-content{padding:12px;max-height:calc(100vh - 98px)}
    .stato-articoli-email-meta{grid-template-columns:1fr;gap:4px}
    .stato-articoli-email-preview{padding:8px}
    .stato-articoli-email-preview-frame{min-height:620px}
}

.cliente-operativo .cliente-layout{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}
.cliente-operativo .cliente-main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
.cliente-operativo .cliente-side-actions-legacy{
    display:none!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
}
.cliente-operativo .cliente-card-operativa,
.cliente-operativo #pannello-accesso-web{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
.cliente-operativo .cliente-card-operativa .cliente-anagrafica-completa{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.cliente-operativo #pannello-accesso-web .grid,
.cliente-operativo #pannello-accesso-web .cliente-anagrafica-grid{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
@media(min-width:1050px){
    .cliente-operativo .cliente-card-operativa .cliente-anagrafica-completa{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
    .cliente-operativo #pannello-accesso-web .cliente-anagrafica-grid{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
}
@media(max-width:1049px) and (min-width:700px){
    .cliente-operativo .cliente-card-operativa .cliente-anagrafica-completa,
    .cliente-operativo #pannello-accesso-web .cliente-anagrafica-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:699px){
    .cliente-operativo .cliente-card-operativa .cliente-anagrafica-completa,
    .cliente-operativo #pannello-accesso-web .cliente-anagrafica-grid{
        grid-template-columns:1fr!important;
    }
}

.cliente-operativo .mandati-cliente-panel{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.mandati-cliente-panel .table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    box-sizing:border-box!important;
}
.mandati-cliente-panel table{
    width:100%!important;
    max-width:100%!important;
    min-width:760px!important;
}
.mandati-cliente-panel th,
.mandati-cliente-panel td{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
}
.mandati-cliente-panel th:first-child,
.mandati-cliente-panel td:first-child{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    white-space:nowrap!important;
}
@media(max-width:900px){
    .mandati-cliente-panel table{min-width:720px!important;}
}

.cliente-operativo .mandati-cliente-evidenza{
    grid-column:1 / -1!important;
    width:100%!important;
    margin-top:4px!important;
    border:1px solid rgba(43,111,180,.28)!important;
    border-top:5px solid #2b6fb4!important;
    background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%)!important;
    box-shadow:0 12px 26px rgba(23,52,90,.10)!important;
}
.mandati-cliente-evidenza-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    margin-bottom:14px!important;
    padding-bottom:12px!important;
    border-bottom:1px solid #d9e4f2!important;
}
.mandati-cliente-evidenza-head h2{margin:2px 0 2px!important;}
.mandati-cliente-evidenza-head p{margin:0!important;}
.mandati-cliente-kicker{
    display:inline-block!important;
    font-size:11px!important;
    line-height:1!important;
    letter-spacing:.11em!important;
    font-weight:900!important;
    color:#2b6fb4!important;
}
.mandati-cliente-new{flex:0 0 auto!important;white-space:nowrap!important;}
@media(max-width:700px){
    .mandati-cliente-evidenza-head{align-items:stretch!important;flex-direction:column!important;gap:10px!important;}
    .mandati-cliente-new{width:100%!important;text-align:center!important;}
}

.cliente-operativo .articoli-cliente-panel{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
}
.articoli-cliente-panel .table-wrap{max-height:520px!important;overflow:auto!important;}
.articoli-cliente-panel .cliente-articoli-table{min-width:1080px!important;}
.articoli-cliente-panel .cliente-articoli-actions-col{width:92px!important;min-width:92px!important;max-width:92px!important;}
.articoli-cliente-panel .cliente-articoli-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:6px!important;
    white-space:nowrap!important;
}
.articoli-cliente-panel .cliente-articolo-icon-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0!important;
    border-radius:9px!important;
    font-size:16px!important;
    line-height:1!important;
}
.articoli-cliente-panel .cliente-articolo-sold-lock{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:38px!important;
    height:34px!important;
    border:1px solid #d8dee8!important;
    border-radius:9px!important;
    background:#f3f5f8!important;
    opacity:.7!important;
    cursor:not-allowed!important;
}
.articoli-cliente-panel .cliente-articolo-title{min-width:180px!important;white-space:normal!important;}
.articoli-cliente-panel .cliente-articolo-code,
.articoli-cliente-panel .cliente-articolo-mandato{white-space:nowrap!important;}
@media(max-width:900px){
    .articoli-cliente-panel .table-wrap{max-height:none!important;}
}

.cliente-portobello-actions .pb-action{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    width:100%!important;
    box-sizing:border-box!important;
    text-align:left!important;
}
.cliente-portobello-actions .pb-action>b{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    text-align:left!important;
    font-weight:800!important;
}
.cliente-portobello-actions .pb-action>span{
    flex:0 1 52%!important;
    min-width:0!important;
    margin:0!important;
    text-align:right!important;
    color:#7b8798!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:500!important;
}
.cliente-portobello-actions button.pb-action{
    font:inherit!important;
}
@media(max-width:640px){
    .cliente-portobello-actions .pb-action{gap:10px!important;}
    .cliente-portobello-actions .pb-action>span{font-size:11px!important;flex-basis:48%!important;}
}

.scadenze-operativa .actions-cell{width:116px!important;min-width:116px!important;white-space:nowrap;vertical-align:middle}
.scadenze-operativa .scadenze-row-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px;min-width:0}
.scadenze-operativa .scadenze-row-actions .inline-form{display:inline-flex;margin:0;padding:0}
.scadenze-operativa .scadenze-icon-action{display:inline-flex!important;align-items:center;justify-content:center;width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;margin:0!important;border-radius:6px!important;line-height:1!important;box-sizing:border-box}
.scadenze-operativa .scadenze-icon-action svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.scadenze-operativa .scadenze-icon-open{background:linear-gradient(#2f7a7e,#155e63);border-color:#0e454b;color:#fff}
.scadenze-operativa .scadenze-icon-pickup{background:linear-gradient(#7b8791,#5d6871);border-color:#4d5861;color:#fff}
.scadenze-operativa .scadenze-icon-dismiss{background:linear-gradient(#d9534f,#b52b27);border-color:#8d201d;color:#fff}
@media(max-width:980px){
  .table-wrap .actions-cell{min-width:116px!important;width:116px!important}
  .table-wrap .scadenze-icon-action{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border-radius:6px!important}
}

.scadenze-article-modal{width:min(1180px,96vw);height:min(900px,94vh);max-width:none;max-height:none;padding:0;border:0;border-radius:12px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.scadenze-article-modal::backdrop{background:rgba(12,28,43,.62)}
.scadenze-article-modal-shell{display:grid;grid-template-rows:auto 1fr;height:100%;background:#f5f7f9}
.scadenze-article-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#183554;color:#fff}
.scadenze-article-modal-head strong{font-size:14px}
.scadenze-article-modal-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;border:0;border-radius:7px;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.scadenze-article-modal iframe{width:100%;height:100%;border:0;background:#fff}
@media(max-width:720px){.scadenze-article-modal{width:100vw;height:100vh;border-radius:0}.scadenze-article-modal-head{padding:8px 10px}}

  .social-log-table .social-actions-col{
    width:50px;
    min-width:50px;
    max-width:50px;
    padding-left:6px!important;
    padding-right:6px!important;
    text-align:center;
    white-space:nowrap;
  }
  .social-log-table .social-action-form{
    margin:0;
    display:flex;
    justify-content:center;
  }
  .social-log-table .social-delete-btn{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:32px;
    padding:0!important;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    line-height:1;
    border-radius:8px;
  }
  
  .social-log-table .social-status{
    display:inline;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    background:none!important;
    box-shadow:none!important;
    font-weight:700;
    line-height:inherit;
    white-space:nowrap;
  }
  .social-log-table .social-status-in_coda{color:#0f766e;}
  .social-log-table .social-status-pubblicato{color:#15803d;}
  .social-log-table .social-status-errore{color:#b91c1c;}
  .social-log-table .social-status-bozza{color:#64748b;}

.cash-product{overflow:hidden;padding:0!important}
.cash-product__top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#eef8f8;border-bottom:1px solid #c7e3e4}
.cash-product__step{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#0f4f53}
.cash-product__title{margin:3px 0 0!important;font-size:24px!important;line-height:1.15}
.cash-product__status{flex:0 0 auto;padding:7px 12px;border-radius:999px;font-weight:800;background:#e8f5eb;color:#176b31;border:1px solid #b9ddc1}
.cash-product__status.is-blocked{background:#fff0f0;color:#8b1f1f;border-color:#e3a5a5}
.cash-product__alert{margin:14px 20px 0;padding:12px 14px;border-radius:10px;background:#fff6d8;border:1px solid #e5c45b;font-weight:700}
.cash-product__alert.is-error{background:#fff0f0;border-color:#d98787;color:#7b1e1e}
.cash-product__main{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;padding:20px}
.cash-product__photo{height:210px;border:1px solid #ddd;border-radius:14px;overflow:hidden;background:#f4f4f4;display:flex;align-items:center;justify-content:center}
.cash-product__photo img{width:100%;height:100%;object-fit:contain;display:block}
.cash-product__no-photo{padding:20px;text-align:center;color:#777;font-weight:700}
.cash-product__pricebar{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin-bottom:14px}
.cash-product__metric{padding:11px 12px;border:1px solid #e2e2e2;border-radius:11px;background:#fff}
.cash-product__metric span{display:block;font-size:12px;color:#6c6c6c;font-weight:700;margin-bottom:3px}
.cash-product__metric strong{display:block;font-size:18px;line-height:1.15}
.cash-product__metric.is-price{background:#eef8f8;border-color:#9ec9cb}
.cash-product__metric.is-price strong{font-size:23px;color:#0f4f53}
.cash-product__details{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e3e3e3;border-radius:12px;overflow:hidden;background:#fff}
.cash-product__row{display:grid;grid-template-columns:135px minmax(0,1fr);gap:8px;padding:9px 11px;border-bottom:1px solid #ededed;min-width:0}
.cash-product__row:nth-child(odd){border-right:1px solid #ededed}
.cash-product__row:nth-last-child(-n+2){border-bottom:0}
.cash-product__label{font-size:12px;font-weight:800;color:#666}
.cash-product__value{font-size:14px;min-width:0;overflow-wrap:anywhere}
.cash-product__wide{grid-column:1/-1;border-right:0!important}
.cash-product__wide:nth-last-child(2){border-bottom:1px solid #ededed}
.cash-product__split{display:flex;flex-wrap:wrap;gap:7px 18px;margin-top:12px;padding:10px 12px;border-radius:10px;background:#f4f6f8;font-size:13px}
.cash-product__split b{width:100%}
.cash-product__actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:15px 20px;background:#fafafa;border-top:1px solid #e5e5e5}
.cash-product__actions button{min-height:46px;padding:11px 20px;font-size:16px}
.cash-price-editor{display:grid;grid-template-columns:minmax(230px,330px) minmax(320px,1fr);gap:14px;align-items:end;width:100%;min-width:0}
.cash-price-editor label{display:grid;gap:6px;font-weight:800;color:#20344f;min-width:0}
.cash-price-editor input{width:100%;min-width:0;min-height:48px;font-size:22px;font-weight:900;border:2px solid #2d7680;background:#fff;box-sizing:border-box}
.cash-price-editor small{font-size:12px;color:#65748a;font-weight:600;line-height:1.35}
.cash-price-live{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:8px 14px;width:100%;max-width:100%;padding:11px 13px;border:1px solid #cbd7e7;border-radius:12px;background:#fff;min-height:48px;align-items:start;min-width:0;box-sizing:border-box}
.cash-price-live span{display:block;min-width:0;white-space:normal;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.cash-price-live strong{color:#172b49;white-space:nowrap}
.cash-price-editor button{grid-column:1/-1;justify-self:start}
.cash-import-note{margin:12px 0 0;padding:10px 12px;border-left:4px solid #28747d;background:#eef8f8;border-radius:9px;color:#24485a;font-size:13px}
.day-sales-table td,.day-sales-table th{white-space:nowrap}.day-sales-table td:nth-child(3){white-space:normal}
@media(max-width:900px){.cash-price-editor{grid-template-columns:1fr}.cash-price-live,.cash-price-editor button{grid-column:1}.cash-price-editor button{width:100%}}
@media(max-width:900px){.cash-product__pricebar{grid-template-columns:1fr 1fr}.cash-product__main{grid-template-columns:170px minmax(0,1fr)}.cash-product__photo{height:170px}.cash-product__details{grid-template-columns:1fr}.cash-product__row:nth-child(odd){border-right:0}.cash-product__row:nth-last-child(-n+2){border-bottom:1px solid #ededed}.cash-product__row:last-child{border-bottom:0}}
@media(max-width:640px){.cash-product__top{align-items:flex-start;padding:14px}.cash-product__title{font-size:20px!important}.cash-product__main{grid-template-columns:1fr;padding:14px;gap:14px}.cash-product__photo{height:190px}.cash-product__pricebar{grid-template-columns:1fr 1fr}.cash-product__metric strong{font-size:16px}.cash-product__metric.is-price strong{font-size:20px}.cash-product__row{grid-template-columns:112px minmax(0,1fr);padding:9px}.cash-product__actions{padding:12px 14px;position:sticky;bottom:0;z-index:2}.cash-product__actions button{width:100%}.cash-product__alert{margin:12px 14px 0}}

.v291-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:14px 0}.v291-kpi{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--border,#d8dfeb);border-radius:10px;text-decoration:none;background:#fff;color:inherit}.v291-kpi b{font-size:24px}.v291-kpi span{font-size:12px;font-weight:700;text-transform:uppercase}.v291-kpi.danger b{color:#b42318}.v291-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}.v291-filters label{min-width:135px}.v291-filters .grow{flex:1;min-width:230px}.v291-filters input,.v291-filters select{width:100%}.v291-print-form{align-items:end}.v291-print-form label{margin:0}.v291-schedule-table td{vertical-align:top}.v291-urg-oggi td{background:#fff8e6}.v291-urg-arretrato td:first-child{border-left:4px solid #b42318}.v291-urg-completato td{background:#f7f8fa;color:#667085}.v291-urg-completato td:first-child{border-left:4px solid #98a2b3}.v291-schedule-table small{color:#667085}@media(max-width:800px){.v291-print-form{width:100%}.v291-schedule-table{min-width:980px}}

  
  .v98-mail-map .table-wrap{overflow:visible!important}
  .v98-mail-map table{width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
  .v98-mail-map th,.v98-mail-map td{
      white-space:normal!important;
      overflow:visible!important;
      text-overflow:clip!important;
      word-break:normal!important;
      overflow-wrap:anywhere!important;
      vertical-align:top!important;
      line-height:1.45!important;
      height:auto!important;
      padding:10px 12px!important;
  }
  .v98-mail-map th:nth-child(1),.v98-mail-map td:nth-child(1){width:34%!important}
  .v98-mail-map th:nth-child(2),.v98-mail-map td:nth-child(2){width:48%!important}
  .v98-mail-map th:nth-child(3),.v98-mail-map td:nth-child(3){width:18%!important}
  .v98-mail-map td:first-child{font-weight:600}
  .v98-mail-map td code{white-space:normal!important;overflow-wrap:anywhere!important}
  @media(max-width:900px){
      .v98-mail-map table,.v98-mail-map tbody,.v98-mail-map tr,.v98-mail-map td{display:block!important;width:100%!important}
      .v98-mail-map tr:first-child{display:none!important}
      .v98-mail-map tr{margin:0 0 12px!important;border:1px solid #d8dfeb!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
      .v98-mail-map td{border:0!important;border-bottom:1px solid #e7ebf2!important;padding:9px 11px!important}
      .v98-mail-map td:last-child{border-bottom:0!important}
      .v98-mail-map td::before{content:attr(data-label);display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#66758a;margin-bottom:3px}
  }
  

@media print{
  .side,.mobile-topbar,.side-backdrop,.admin-back-row,.billing-flow-note,.table-actions,.pagination,.fattura-riga-check,#fattura-articoli-form button{display:none!important}
  .main{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
  .panel{box-shadow:none!important;border:0!important;padding:6px!important;margin:0 0 10px!important}
  .table-wrap{overflow:visible!important}.table-wrap table{min-width:0!important;font-size:9px!important}th,td{padding:4px!important}
}

.mandati-list-table .actions-cell{width:48px!important;min-width:48px!important;max-width:48px!important;white-space:nowrap!important;overflow:visible!important}
.mandati-list-table .v97-inline-icon-actions{display:flex!important;flex-direction:row!important;grid-template-columns:none!important;gap:5px!important;width:auto!important;min-width:0!important;max-width:none!important;align-items:center!important;justify-content:flex-start!important}
.mandati-list-table .v97-inline-icon-actions .v97-icon-btn{display:inline-flex!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:32px!important;min-height:32px!important;padding:4px!important;margin:0!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;font-size:14px!important;line-height:1!important;border-radius:9px!important}
.mandati-list-table th:nth-child(2),.mandati-list-table td:nth-child(2){min-width:152px!important;width:152px!important;max-width:152px!important;white-space:nowrap!important;overflow:visible!important;word-break:normal!important;overflow-wrap:normal!important}
.mandati-list-table .mandato-number{display:inline-block!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important;line-height:1.2!important}
.mandati-list-table th:nth-child(4),.mandati-list-table td:nth-child(4),.mandati-list-table th:nth-child(5),.mandati-list-table td:nth-child(5){min-width:122px!important;white-space:nowrap!important}
.mandati-list-table td{vertical-align:middle!important}

.legal-archive{
    display:grid;
    gap:14px;
}
.legal-revision-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:14px;
    box-shadow:0 1px 5px rgba(0,0,0,.06);
}
.legal-revision-head{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:flex-start;
    border-bottom:1px solid #eee;
    padding-bottom:10px;
    margin-bottom:10px;
}
.legal-revision-head h3{
    margin:4px 0 0;
    font-size:20px;
}
.legal-code{
    display:inline-block;
    font-size:12px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#7f1d1d;
    background:#fff3e8;
    border:1px solid #d8a9b1;
    border-radius:99px;
    padding:4px 8px;
}
.legal-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:7px;
    font-weight:900;
    color:#555;
}
.legal-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:10px;
    color:#444;
}
.legal-preview{
    padding:12px;
    background:#f8f8f8;
    border:1px solid #e3e3e3;
    border-radius:10px;
    line-height:1.5;
    white-space:normal;
    overflow:visible;
    overflow-wrap:anywhere;
}
.legal-details{
    margin-top:10px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fff;
}
.legal-details summary{
    cursor:pointer;
    padding:10px 12px;
    font-weight:900;
    color:#333;
}
.legal-full{
    border-top:1px solid #eee;
    padding:14px;
    line-height:1.6;
    white-space:normal;
    overflow-wrap:anywhere;
    background:#fff;
}
.legal-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
}
.legal-modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:10000;
    padding:22px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    overflow:auto;
}
.legal-modal-backdrop[hidden]{
    display:none !important;
}
.legal-modal{
    width:min(900px,calc(100vw - 28px));
    max-height:calc(100vh - 44px);
    overflow:auto;
    background:#fff;
    border-radius:14px;
    border:1px solid #ddd;
    box-shadow:0 24px 90px rgba(0,0,0,.35);
    padding:18px;
}
.legal-modal-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    border-bottom:1px solid #eee;
    padding-bottom:12px;
    margin-bottom:14px;
}
.legal-modal-head h2{
    margin:6px 0 2px;
}
.legal-modal-text{
    line-height:1.65;
    font-size:16px;
    overflow-wrap:anywhere;
    white-space:pre-wrap;
}
.legal-close{
    border:1px solid #999;
    border-radius:8px;
    background:#eee;
    padding:9px 12px;
    font-weight:900;
    cursor:pointer;
}
@media(max-width:700px){
    .legal-revision-head,
    .legal-modal-head{
        display:block;
    }
    .legal-meta{
        justify-content:flex-start;
        margin-top:8px;
    }
    .legal-grid{
        grid-template-columns:1fr;
    }
    .legal-actions{
        display:block;
    }
    .legal-actions .btn,
    .legal-close{
        width:100%;
        margin-bottom:8px;
    }
    .legal-modal-backdrop{
        padding:10px;
    }
    .legal-modal{
        width:calc(100vw - 20px);
        max-height:calc(100vh - 20px);
        padding:14px;
    }
}
@media print{
    body.print-legal-only *{visibility:hidden !important}
    body.print-legal-only #legalModal,
    body.print-legal-only #legalModal *{visibility:visible !important}
    body.print-legal-only #legalModal{position:static !important;display:block !important;background:#fff !important;padding:0 !important}
    body.print-legal-only .legal-modal{box-shadow:none !important;border:0 !important;max-height:none !important;width:100% !important}
    body.print-legal-only .legal-close,
    body.print-legal-only .legal-print-modal{display:none !important}
}

.gdpr-hero{background:#eef8f8;border-left:6px solid #155e63;padding:18px;border-radius:14px}.gdpr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.gdpr-card{background:#fff;border:1px solid #d8e0e5;border-radius:13px;padding:14px}.gdpr-card h3{margin:0 0 6px}.gdpr-card .big{font-size:28px;font-weight:900;line-height:1.1}.gdpr-actions{display:flex;gap:8px;flex-wrap:wrap}.gdpr-actions .btn{display:inline-block}.gdpr-alert{padding:12px 14px;border-radius:11px;margin:10px 0}.gdpr-alert.ok{background:#ecfdf5;border-left:5px solid #10b981}.gdpr-alert.warn{background:#fff7ed;border-left:5px solid #f59e0b}.gdpr-alert.info{background:#eef8f8;border-left:5px solid #155e63}.gdpr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gdpr-form-grid label{display:block;font-weight:800}.gdpr-form-grid input,.gdpr-form-grid select,.gdpr-form-grid textarea{width:100%;box-sizing:border-box;margin-top:5px}.gdpr-form-grid textarea{min-height:88px}.gdpr-full{grid-column:1/-1}.gdpr-treatment{border:1px solid #d8e0e5;border-radius:12px;margin:10px 0;background:#fff}.gdpr-treatment summary{cursor:pointer;padding:12px 14px;font-weight:900}.gdpr-treatment-body{padding:0 14px 14px}.gdpr-pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#edf2f7;font-size:12px;font-weight:900}.gdpr-pill.off{background:#f3f4f6;color:#6b7280}.gdpr-table-wrap{overflow-x:auto}.gdpr-table{width:100%;border-collapse:collapse;min-width:850px}.gdpr-table th,.gdpr-table td{border:1px solid #d8e0e5;padding:9px;vertical-align:top;text-align:left}.gdpr-table th{background:#15253a;color:#fff}.gdpr-table textarea{min-width:220px;min-height:80px}.gdpr-pager{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:12px 0}.gdpr-pager a,.gdpr-pager span{padding:6px 9px;border:1px solid #ccd6dc;border-radius:8px;text-decoration:none}.gdpr-pager .current{font-weight:900;background:#eef8f8}.gdpr-small{font-size:13px;color:#637083}.gdpr-filter{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.gdpr-filter label{font-weight:800}.gdpr-filter select{display:block;margin-top:5px}@media(max-width:760px){.gdpr-form-grid{grid-template-columns:1fr}.gdpr-full{grid-column:auto}.gdpr-actions .btn,.gdpr-actions form{width:100%}.gdpr-actions form .btn{width:100%}}

.theme-code-form .theme-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.theme-code-editor{width:100%;min-height:280px;resize:vertical;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;tab-size:4;background:#0b1220;color:#e5edf7;border:1px solid #334155;border-radius:10px;padding:14px;white-space:pre}
.theme-code-editor-large{min-height:330px}
@media(max-width:980px){.theme-code-form .theme-two-cols{grid-template-columns:1fr}.theme-code-editor{min-height:220px}}

.import-simple-hero{border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(21,94,99,.18),rgba(20,20,20,.04));padding:18px;border-radius:18px;margin-bottom:16px}.import-simple-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.import-simple-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:14px}.import-simple-card .num{font-size:28px;font-weight:900;line-height:1}.import-simple-card .lbl{opacity:.78;margin-top:6px}.import-status-ok{color:#15803d;font-weight:800}.import-status-missing{color:#b91c1c;font-weight:800}.import-drop{border:2px dashed rgba(21,94,99,.65);border-radius:18px;padding:22px;text-align:center;background:rgba(21,94,99,.07);margin:14px 0}.import-drop.drag{background:rgba(21,94,99,.18)}.import-progress{height:14px;background:rgba(0,0,0,.12);border-radius:999px;overflow:hidden;margin-top:10px}.import-progress span{display:block;height:100%;width:0;background:#155e63;transition:width .15s}.import-note{border-left:5px solid #155e63;padding:10px 12px;background:rgba(21,94,99,.09);border-radius:10px}.import-danger{border-left:5px solid #dc2626;background:rgba(220,38,38,.08)}.import-ok{border-left:5px solid #16a34a;background:rgba(22,163,74,.08)}.import-table td,.import-table th{vertical-align:top}.mini-muted{font-size:12px;opacity:.72}@media(max-width:900px){.import-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.import-simple-grid{grid-template-columns:1fr}.import-drop{padding:14px}}

.entity-picker[hidden]{
    display:none !important;
}

.entity-select{
    width:100%;
    min-width:0;
}

#entitaId[readonly]{
    background:#f3f3f3;
    color:#555;
    font-weight:900;
}

@media(max-width:980px){
    .entity-select{
        font-size:16px;
    }
}

.booking-admin-intro{display:flex;align-items:center;justify-content:space-between;gap:18px}.booking-admin-intro h2{margin-top:0}.booking-admin-grid{display:grid;gap:18px}.booking-admin-card{background:#fff;border:1px solid #d9dee2;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.05);padding:18px;min-width:0}.booking-admin-card.is-active{border-left:5px solid #ff8d28}.booking-admin-card.is-closed{opacity:.88}.booking-admin-card-head{display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:16px}.booking-admin-thumb{width:96px;height:86px;border-radius:12px;overflow:hidden;background:#f0f2f3;display:grid;place-items:center;font-size:30px}.booking-admin-thumb img{width:100%;height:100%;object-fit:cover}.booking-admin-title h2{margin:3px 0;font-size:1.2rem}.booking-admin-title p{margin:0}.booking-admin-kicker{font-size:.78rem;color:#68757c}.booking-state{padding:7px 10px;border-radius:999px;font-weight:800;font-size:.78rem;text-transform:uppercase;white-space:nowrap}.state-aperta{background:#fff0db;color:#9a5200}.state-contattato{background:#e7f1ff;color:#145b9a}.state-confermata{background:#e4f7e9;color:#21733a}.state-annullata{background:#f1f1f1;color:#666}.booking-admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.booking-data-block{border:1px solid #e0e5e8;border-radius:12px;padding:14px;min-width:0;background:#fafbfb}.booking-data-block h3{margin:0 0 10px}.booking-data-block dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.booking-data-block dl div{min-width:0}.booking-data-block dl .full{grid-column:1/-1}.booking-data-block dt{font-size:.72rem;text-transform:uppercase;color:#66757c}.booking-data-block dd{margin:2px 0 0;font-weight:700;overflow-wrap:anywhere}.booking-admin-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.booking-wa-status{padding:8px 10px;border-radius:8px;font-weight:700}.booking-wa-status.sent{background:#e5f8eb;color:#1d6c35}.booking-wa-status.not-sent{background:#fff2dd;color:#8b5100}.whatsapp-block details{margin-top:10px}.whatsapp-block details p{white-space:pre-wrap;overflow-wrap:anywhere}.booking-admin-form{display:grid;grid-template-columns:180px minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;padding-top:14px;border-top:1px solid #e4e7e9}.booking-admin-form label{display:grid;gap:5px;min-width:0}.booking-admin-form textarea{min-height:62px;resize:vertical}.booking-admin-form button{min-height:44px}.booking-unlock-form{margin-top:10px;display:flex;justify-content:flex-end}.btn.danger{background:#b63028!important;color:#fff!important;border-color:#b63028!important}.booking-unlocked{margin:10px 0 0;color:#68757c;font-size:.86rem;text-align:right}
@media(max-width:1050px){.booking-admin-form{grid-template-columns:1fr 1fr}.booking-admin-form button{width:100%}}
@media(max-width:760px){.booking-admin-intro{display:block}.booking-admin-card-head{grid-template-columns:72px minmax(0,1fr)}.booking-admin-thumb{width:72px;height:72px}.booking-state{grid-column:1/-1;justify-self:start}.booking-admin-columns,.booking-admin-form{grid-template-columns:1fr}.booking-data-block dl{grid-template-columns:1fr}.booking-unlock-form .btn{width:100%}}

.booking-admin-card{scroll-margin-top:18px}.booking-admin-danger-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px;padding-top:10px;border-top:1px dashed #dde1e3}.booking-admin-danger-actions form{margin:0}.booking-unlock-button{background:#f29a38!important;color:#171717!important;border-color:#dc8527!important}.booking-delete-form .btn{min-width:190px}.booking-unlocked{margin:0 auto 0 0;text-align:left}
@media(max-width:760px){.booking-admin-danger-actions{align-items:stretch;flex-direction:column}.booking-admin-danger-actions form,.booking-admin-danger-actions .btn{width:100%}.booking-unlocked{width:100%;margin:0}}

.booking-state.state-venduta{background:#111827;color:#fff}
.booking-admin-form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.booking-flow-help{grid-column:1/-1;margin:0}
.booking-sold-summary{padding:14px;border-radius:12px;background:#eef2f7;border-left:5px solid #111827}
.booking-sale-origin{border-left:6px solid #16a34a}

.booking-admin-columns.is-single{grid-template-columns:1fr}
.booking-wa-explain{margin:0 0 12px;line-height:1.45}
.whatsapp-block h3 small{font-size:.78rem;font-weight:600}

.booking-admin-intro-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.booking-view-switch{display:flex;align-items:center;gap:10px;margin:0 0 18px 0;padding:0;flex-wrap:nowrap}
.booking-view-switch .btn{display:inline-flex;align-items:center;justify-content:center;min-width:108px;white-space:nowrap;word-break:normal;overflow-wrap:normal}
@media(max-width:760px){
  .booking-admin-intro-actions{margin-top:12px;justify-content:flex-start}
  .booking-view-switch{width:100%;gap:8px}
  .booking-view-switch .btn{flex:1 1 50%;min-width:0;width:auto;white-space:nowrap}
}

.settings-panel{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.settings-main-form{display:grid;gap:12px}.settings-section-nav{display:flex;gap:8px;overflow:auto;padding:8px 0 14px;position:sticky;top:0;z-index:8;background:var(--admin-bg,#f4f4f4)}.settings-section-nav a{flex:0 0 auto;text-decoration:none;padding:8px 11px;border-radius:999px;background:#fff;border:1px solid #d9dde0;color:inherit;font-weight:700;font-size:.82rem}.settings-section-card{background:#fff;border:1px solid #d9dde0;border-radius:14px;box-shadow:0 5px 18px rgba(0,0,0,.04);overflow:hidden;scroll-margin-top:74px}.settings-section-card>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;font-size:1.05rem;font-weight:900;background:#fafafa}.settings-section-card>summary::-webkit-details-marker{display:none}.settings-section-card>summary small{font-size:.72rem;color:#68757c;font-weight:600}.settings-section-card[open]>summary{border-bottom:1px solid #e3e6e8;background:#fff7ee}.settings-section-body{padding:18px}.settings-section-save{justify-self:start;min-width:190px;margin-top:4px}.settings-section-body h2{display:none}.settings-section-body textarea{max-width:100%;box-sizing:border-box}
@media(max-width:720px){.settings-section-nav{top:0}.settings-section-card>summary{padding:15px}.settings-section-body{padding:14px}.settings-section-save{width:100%}}

.legal-list{
    display:grid;
    gap:14px;
}

.legal-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:14px;
    box-shadow:0 1px 5px rgba(0,0,0,.06);
}

.legal-card-head{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:flex-start;
    border-bottom:1px solid #eee;
    padding-bottom:10px;
    margin-bottom:10px;
}

.legal-card h3{
    margin:3px 0 0;
    font-size:20px;
}

.legal-code{
    display:inline-block;
    font-size:12px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#7f1d1d;
    background:#fff3e8;
    border:1px solid #d8a9b1;
    border-radius:99px;
    padding:4px 8px;
}

.legal-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:7px;
    font-weight:900;
    color:#555;
}

.legal-info-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:10px;
    color:#444;
}

.legal-preview{
    padding:12px;
    background:#f8f8f8;
    border:1px solid #e3e3e3;
    border-radius:10px;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.legal-details{
    margin-top:10px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fff;
}

.legal-details summary{
    cursor:pointer;
    padding:10px 12px;
    font-weight:900;
    color:#333;
}

.legal-full-text{
    border-top:1px solid #eee;
    padding:14px;
    line-height:1.55;
    white-space:normal;
    overflow-wrap:anywhere;
    max-height:480px;
    overflow:auto;
    background:#fff;
}

.legal-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
}

.legal-modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:10000;
    padding:22px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    overflow:auto;
}

.legal-modal{
    width:min(900px,calc(100vw - 28px));
    max-height:calc(100vh - 44px);
    overflow:auto;
    background:#fff;
    border-radius:14px;
    border:1px solid #ddd;
    box-shadow:0 24px 90px rgba(0,0,0,.35);
    padding:18px;
}

.legal-modal-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    border-bottom:1px solid #eee;
    padding-bottom:12px;
    margin-bottom:14px;
}

.legal-modal-head h2{
    margin:6px 0 2px;
}

.legal-modal-head p{
    margin:0;
    color:#666;
    font-weight:800;
}

.legal-modal-close{
    border:1px solid #999;
    border-radius:8px;
    background:#eee;
    padding:9px 12px;
    font-weight:900;
    cursor:pointer;
}

.legal-modal-text{
    line-height:1.6;
    font-size:16px;
    overflow-wrap:anywhere;
    white-space:normal;
}

.legal-modal-actions{
    display:flex;
    gap:8px;
    justify-content:flex-end;
    border-top:1px solid #eee;
    padding-top:12px;
    margin-top:14px;
}

@media(max-width:700px){
    .legal-card-head,
    .legal-modal-head{
        display:block;
    }

    .legal-meta{
        justify-content:flex-start;
        margin-top:8px;
    }

    .legal-info-grid{
        grid-template-columns:1fr;
    }

    .legal-actions,
    .legal-modal-actions{
        display:block;
    }

    .legal-actions .btn,
    .legal-modal-actions .btn,
    .legal-modal-close{
        width:100%;
        margin-bottom:8px;
    }

    .legal-modal-backdrop{
        padding:10px;
    }

    .legal-modal{
        width:calc(100vw - 20px);
        max-height:calc(100vh - 20px);
        padding:14px;
    }
}

@media print{
    body.print-legal-only *{
        visibility:hidden !important;
    }

    body.print-legal-only #legalModal,
    body.print-legal-only #legalModal *{
        visibility:visible !important;
    }

    body.print-legal-only #legalModal{
        position:static !important;
        display:block !important;
        background:#fff !important;
        padding:0 !important;
    }

    body.print-legal-only .legal-modal{
        box-shadow:none !important;
        border:0 !important;
        max-height:none !important;
        width:100% !important;
    }

    body.print-legal-only .legal-modal-actions,
    body.print-legal-only .legal-modal-close{
        display:none !important;
    }
}

.m225{--m225-ink:#152642;--m225-muted:#66728a;--m225-line:#d7e0ec;--m225-bg:#f5f8fc;--m225-card:#fff;--m225-accent:#156a83;--m225-accent2:#2e5ed2;--m225-soft:#edf6f8;--m225-warn:#fff6e6;--m225-danger:#fff0f0;--m225-ok:#eef9f2;color:var(--m225-ink);max-width:1500px;margin:0 auto;padding:0 0 42px;font-size:15px;line-height:1.48}.m225 *{box-sizing:border-box}.m225 a{text-decoration:none}.m225 code{padding:2px 5px;border-radius:6px;background:#edf1f7;font-size:.92em}.m225-icon{width:22px;height:22px;flex:0 0 auto}.m225-hero{position:relative;display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:24px;align-items:center;overflow:hidden;margin:0 0 16px;padding:28px 30px;border:1px solid #244b68;border-radius:24px;background:linear-gradient(122deg,#132c4b 0%,#1c4f70 58%,#14889b 100%);color:#fff;box-shadow:0 14px 34px rgba(17,41,73,.18)}.m225-hero:after{content:"";position:absolute;right:-90px;top:-150px;width:360px;height:360px;border-radius:50%;border:55px solid rgba(255,255,255,.08)}.m225-logo-wrap{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;min-height:112px;padding:14px;border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(0,0,0,.16)}.m225-logo-wrap img{display:block;max-width:100%;max-height:94px;object-fit:contain}.m225-hero-copy,.m225-hero-actions{position:relative;z-index:1}.m225-kicker,.m225-eyebrow{display:block;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.m225-kicker{color:#b9f3ff;margin-bottom:4px}.m225-hero h1{margin:0 0 8px;font-size:34px;line-height:1.12}.m225-hero p{max-width:860px;margin:0;color:#e9f4fa;font-size:16px}.m225-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.m225-badges span{padding:5px 9px;border:1px solid rgba(255,255,255,.26);border-radius:999px;background:rgba(255,255,255,.09);font-size:12px;font-weight:800}.m225-hero-actions{display:flex;flex-direction:column;gap:8px;min-width:155px}.m225-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border:1px solid #1d5b78;border-radius:10px;background:#184e6c;color:#fff!important;font-weight:900;cursor:pointer}.m225-btn:hover{filter:brightness(1.06)}.m225-btn-light{border-color:#fff;background:#fff;color:#17334f!important}.m225-btn-ghost{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.08)}.m225-btn-secondary{border-color:#c8d4e2;background:#fff;color:#21415c!important}.m225-searchbar{position:sticky;top:8px;z-index:20;display:grid;grid-template-columns:auto minmax(220px,1fr) auto auto;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px;border:1px solid #cbd7e5;border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 8px 26px rgba(25,44,70,.12);backdrop-filter:blur(10px)}.m225-search-icon{display:grid;place-items:center;color:#35617e}.m225-searchbar input{min-width:0;height:42px;padding:0 12px;border:1px solid #cbd7e5;border-radius:10px;background:#f9fbfd;color:#182d46;font:inherit}.m225-searchbar button{height:42px;padding:0 12px;border:1px solid #cad4e2;border-radius:10px;background:#eef3f8;color:#25425d;font-weight:900;cursor:pointer}.m225-searchbar>span:last-child{min-width:130px;text-align:right;color:#6f7b8e;font-size:12px;font-weight:800}.m225-panel,.m225-chapter{margin:0 0 16px;padding:22px;border:1px solid var(--m225-line);border-radius:20px;background:var(--m225-card);box-shadow:0 7px 22px rgba(25,43,68,.06)}.m225-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.m225-section-head h2,.m225-chapter h2{margin:2px 0 5px;font-size:24px;line-height:1.17}.m225-section-head>p{max-width:640px;margin:2px 0 0;color:var(--m225-muted);text-align:right}.m225-eyebrow{color:#397493}.m225-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.m225-stats>div{padding:16px;border:1px solid #d8e1ec;border-radius:15px;background:linear-gradient(145deg,#f8fbfe,#eef4f9)}.m225-stats b{display:block;font-size:27px;color:#1e5e7c}.m225-stats span{display:block;color:#6c7788;font-weight:700}.m225-flow{display:grid;grid-template-columns:repeat(9,minmax(110px,1fr));gap:9px}.m225-flow-small{grid-template-columns:repeat(5,minmax(120px,1fr))}.m225-flow-step{position:relative;min-height:110px;padding:12px;border:1px solid #d8e1ec;border-radius:14px;background:#f8fbfe}.m225-flow-step>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:8px;border-radius:10px;background:#e6f3f6;color:#166d7e}.m225-flow-step b{display:block;font-size:14px}.m225-flow-step small{display:block;margin-top:5px;color:#6e7888}.m225-rule,.m225-tip,.m225-warning{margin-top:14px;border-radius:14px}.m225-rule{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid #f0d8a5;background:var(--m225-warn)}.m225-rule>span{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#fff;color:#9c6a0a}.m225-rule p{margin:3px 0 0}.m225-rule-blue{border-color:#bcdce5;background:#edf8fb}.m225-rule-blue>span{color:#166d7e}.m225-tip{padding:12px 14px;border:1px solid #c6e4d0;background:var(--m225-ok)}.m225-warning{padding:12px 14px;border:1px solid #efc4c4;background:var(--m225-danger)}.m225-menu-group+ .m225-menu-group{margin-top:18px}.m225-menu-group h3{margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid #e1e7ef;font-size:17px}.m225-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.m225-quick{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;overflow:hidden;border:1px solid #d7e1ec;border-radius:14px;background:#fff}.m225-quick-main{display:flex;gap:10px;align-items:center;min-width:0;padding:11px;color:#172f4a}.m225-quick-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#edf5f8;color:#1c657b}.m225-quick-main span:last-child{min-width:0}.m225-quick-main b,.m225-quick-main small{display:block}.m225-quick-main b{font-size:14px}.m225-quick-main small{margin-top:3px;color:#6f7988;font-size:11.5px;line-height:1.3}.m225-open{display:flex;align-items:center;padding:0 11px;border-left:1px solid #dce4ed;background:#f3f7fb;color:#2b5572;font-size:12px;font-weight:900}.m225-manual{display:block}.m225-chapter{scroll-margin-top:88px}.m225-chapter header{display:flex;align-items:flex-start;gap:14px;padding-bottom:14px;border-bottom:1px solid #e3e8ef}.m225-chapter header>div:nth-child(2){flex:1;min-width:0}.m225-chapter header p{margin:0;color:var(--m225-muted)}.m225-chapter-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:linear-gradient(145deg,#e7f3f7,#d9edf2);color:#17677b}.m225-head-actions{display:flex;flex-wrap:wrap;gap:7px}.m225-two,.m225-three,.m225-four{display:grid;gap:12px;margin-top:14px}.m225-two{grid-template-columns:repeat(2,minmax(0,1fr))}.m225-three{grid-template-columns:repeat(3,minmax(0,1fr))}.m225-four{grid-template-columns:repeat(4,minmax(0,1fr))}.m225-card{padding:14px;border:1px solid #dce4ed;border-radius:14px;background:#fbfcfe}.m225-card h3{margin:0 0 7px;font-size:16px}.m225-card p{margin:0;color:#536277}.m225-card ol,.m225-card ul{margin:7px 0 0;padding-left:20px}.m225-card li+li{margin-top:5px}.m225-checks{padding-left:19px}.m225-grid-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.m225-grid-list span{padding:10px 12px;border:1px solid #dbe3ec;border-radius:11px;background:#f8fbfd;font-weight:800}.m225-state-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.m225-state{padding:13px;border:1px solid #d9e2ec;border-radius:13px;background:#fbfcfe}.m225-state b{display:block;margin-bottom:4px;color:#1a526d}.m225-state span{display:block;color:#5f6d80}.m225-checklist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.m225-checkcard{padding:14px;border:1px solid #d6e0eb;border-radius:14px;background:#f8fbfd}.m225-checkcard>span{display:block;margin-bottom:9px;color:#2d607d;font-size:12px;font-weight:900;letter-spacing:.09em}.m225-checkcard label{display:flex;align-items:flex-start;gap:8px;margin:7px 0;color:#35465a}.m225-checkcard input{margin-top:3px}.m225-faq{display:grid;gap:8px;margin-top:14px}.m225-faq details{border:1px solid #dae3ec;border-radius:12px;background:#fbfcfe}.m225-faq summary{padding:12px 14px;font-weight:900;cursor:pointer}.m225-faq p{margin:0;padding:0 14px 14px;color:#566579}.m225-footer{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:16px;align-items:center;margin-top:18px;padding:18px 20px;border:1px solid #d7e0ea;border-radius:18px;background:#eef4f8}.m225-footer img{max-width:90px;max-height:54px;object-fit:contain}.m225-footer b,.m225-footer span{display:block}.m225-footer span{margin-top:4px;color:#667487;font-size:12px}.m225-top{font-weight:900;color:#255b78}.m225-hidden{display:none!important}.m225-search-hit{outline:2px solid #4c90aa;box-shadow:0 0 0 5px rgba(76,144,170,.09)}
@media(max-width:1180px){.m225-hero{grid-template-columns:140px minmax(0,1fr)}.m225-hero-actions{grid-column:1/-1;flex-direction:row}.m225-flow{grid-template-columns:repeat(3,minmax(0,1fr))}.m225-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.m225-four{grid-template-columns:repeat(2,minmax(0,1fr))}.m225-checklist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.m225{font-size:14px}.m225-hero{grid-template-columns:1fr;padding:20px;border-radius:18px}.m225-logo-wrap{max-width:180px;min-height:90px}.m225-hero h1{font-size:27px}.m225-hero-actions{grid-column:auto}.m225-searchbar{top:4px;grid-template-columns:auto minmax(0,1fr) auto}.m225-searchbar>span:last-child{display:none}.m225-panel,.m225-chapter{padding:16px;border-radius:16px}.m225-section-head{display:block}.m225-section-head>p{text-align:left;margin-top:7px}.m225-stats,.m225-two,.m225-three,.m225-four,.m225-checklist-grid,.m225-state-grid,.m225-grid-list{grid-template-columns:1fr}.m225-flow,.m225-flow-small{grid-template-columns:repeat(2,minmax(0,1fr))}.m225-quick-grid{grid-template-columns:1fr}.m225-chapter header{flex-wrap:wrap}.m225-chapter header>.m225-btn,.m225-head-actions{width:100%}.m225-head-actions .m225-btn{flex:1}.m225-footer{grid-template-columns:70px minmax(0,1fr)}.m225-top{grid-column:1/-1;text-align:right}}
@media(max-width:460px){.m225-flow,.m225-flow-small{grid-template-columns:1fr}.m225-quick{grid-template-columns:minmax(0,1fr) 58px}.m225-open{justify-content:center;padding:0 7px}.m225-badges span{font-size:10px}}
@media print{.no-print{display:none!important}.m225{max-width:none;font-size:10pt}.m225-hero{grid-template-columns:100px 1fr;background:#fff!important;color:#111!important;border:1px solid #888;box-shadow:none}.m225-hero:after{display:none}.m225-logo-wrap{box-shadow:none;border:1px solid #ddd}.m225-hero p,.m225-kicker{color:#333}.m225-badges span{color:#111;border-color:#aaa;background:#fff}.m225-panel,.m225-chapter{break-inside:avoid;box-shadow:none;border-color:#bbb}.m225-chapter header{break-after:avoid}.m225-flow{grid-template-columns:repeat(3,1fr)}.m225-two,.m225-three,.m225-four{grid-template-columns:repeat(2,1fr)}.m225-state-grid{grid-template-columns:repeat(2,1fr)}.m225-footer{box-shadow:none}}

.giornale-grid .module-tile{
    border:1px solid #d6d6d6;
    cursor:pointer;
    font:inherit;
    min-height:120px;
}

.giornale-box[hidden]{
    display:none !important;
}

@media print{
    .no-print{display:none !important}
}

.giornale-print{
    margin:0;
    background:#fff;
    color:#000;
    font-family:Arial, Helvetica, sans-serif;
}

.journal-page{
    width:210mm;
    height:297mm;
    box-sizing:border-box;
    padding:8mm 10mm;
    page-break-after:always;
    overflow:hidden;
    background:#fff;
}

.journal-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    font-size:9px;
    line-height:1.15;
    margin-bottom:2mm;
}

.journal-head-right{
    text-align:right;
    white-space:nowrap;
}

.journal-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    font-size:7.2px;
}

.journal-table th,
.journal-table td{
    border:1px solid #000;
    vertical-align:top;
    padding:1.2mm;
    height:8.2mm;
    overflow:hidden;
}

.journal-table th{
    height:7mm;
    text-align:center;
    font-weight:bold;
    padding:0.8mm;
}

.journal-table small{
    font-size:7px;
}

.c-num{width:10%}
.c-date{width:8%}
.c-person{width:20%}
.c-doc{width:13%}
.c-obj{width:25%}
.c-money{width:8%}
.c-exit{width:8%}

.journal-cover-text{
    position:absolute;
    left:24mm;
    top:190mm;
    width:160mm;
    font-size:14px;
    line-height:1.28;
}

.print-actions{
    position:fixed;
    right:16px;
    bottom:16px;
    padding:10px;
    background:#fff;
    border:1px solid #ccc;
    box-shadow:0 2px 12px rgba(0,0,0,.18);
}

.print-actions button{
    padding:10px 18px;
    font-weight:bold;
}

@page{
    size:A4 portrait;
    margin:0;
}

.journal-overlay-data .journal-page{
    padding:var(--journal-data-top) 10mm 8mm var(--journal-data-left);
}

.journal-overlay-data .journal-header{
    visibility:hidden;
}

.journal-overlay-data .journal-table th,
.journal-overlay-data .journal-table td{
    border:0 !important;
    background:transparent !important;
}

.journal-overlay-data .journal-table thead{
    visibility:hidden;
}

.journal-overlay-data .journal-table{
    border-collapse:collapse;
    background:transparent !important;
}

.journal-overlay-data .journal-table td{
    padding:1.2mm;
    color:#000;
}

.journal-overlay-data .journal-table tr{
    background:transparent !important;
}

.blank-page{
    position:relative;
}

.blank-register-table{
    margin-top:1mm;
}

.blank-register-table th,
.blank-register-table td{
    border:1px solid #000;
}

.blank-register-table td{
    height:8.2mm;
}

.blank-register-table tbody{
    display:none;
}

.c-qta{width:4%}

.blank-register-table .c-num{width:9%}
.blank-register-table .c-date{width:8%}
.blank-register-table .c-person{width:19%}
.blank-register-table .c-doc{width:13%}
.blank-register-table .c-obj{width:25%}
.blank-register-table .c-money{width:8%}
.blank-register-table .c-exit{width:8%}

.journal-final-summary{
    position:absolute;
    left:20mm;
    bottom:12mm;
    width:170mm;
    font-size:12px;
    line-height:1.22;
    background:#fff;
    padding-top:2mm;
}

@media print{
    .journal-final-summary{
        background:#fff !important;
    }
}

.ok-box{
    background:#eef9ee;
    border:1px solid #9ed39e;
    padding:12px;
    border-radius:8px;
    font-weight:bold;
}

.giornale-main .big-action{
    width:100%;
    font-size:18px;
    padding:14px 18px;
    margin-top:10px;
}
.giornale-intro{
    font-size:16px;
    line-height:1.45;
}
.giornale-date-form{
    display:grid;
    grid-template-columns:minmax(220px,320px) auto;
    gap:12px;
    align-items:end;
    margin:14px 0;
}
.giornale-print-form{
    margin:14px 0;
}
.giornale-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:12px 0;
}
.giornale-summary > div{
    border:1px solid #ddd;
    border-radius:10px;
    padding:14px;
    background:#fafafa;
}
.giornale-summary b{
    display:block;
    font-size:28px;
}
.giornale-summary span{
    color:#555;
    font-weight:800;
}
.ok-box{
    background:#eef9ee;
    border:1px solid #9ed39e;
    padding:12px;
    border-radius:8px;
    font-weight:bold;
}
.warn-box{
    background:#fff8e8;
    border:1px solid #e0bc72;
    padding:12px;
    border-radius:8px;
    font-weight:bold;
}
@media(max-width:750px){
    .giornale-date-form,
    .giornale-summary{
        grid-template-columns:1fr;
    }
    .giornale-date-form .btn{
        width:100%;
    }
}

.journal-flow{
    border-left:6px solid #0f8a72 !important;
}

.journal-steps{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.journal-step{
    background:#f8fafc;
    border:1px solid #d7dee9;
    border-radius:16px;
    padding:16px;
    min-height:150px;
}

.journal-step b{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#2457e6;
    color:#fff;
    margin-bottom:10px;
    box-shadow:0 3px 0 rgba(16,34,81,.22);
}

.journal-step span{
    display:block;
    font-size:17px;
    font-weight:900;
    margin-bottom:8px;
    color:#172033;
}

.journal-step small{
    display:block;
    color:#5f6f85;
    line-height:1.35;
    font-weight:700;
}

.journal-prep-panel{
    border-left:6px solid #2457e6 !important;
}

@media(max-width:850px){
    .journal-steps{
        grid-template-columns:1fr;
    }
}

.journal-overlay-data .journal-page{
    padding:var(--journal-data-top) 10mm 8mm var(--journal-data-left);
}

.journal-overlay-data .journal-header,
.journal-overlay-data .journal-table thead,
.journal-overlay-data .journal-final-summary{
    visibility:hidden !important;
}

.journal-overlay-data .journal-table th,
.journal-overlay-data .journal-table td{
    border:0 !important;
    background:transparent !important;
}

.journal-overlay-data .journal-table{
    border-collapse:collapse;
    background:transparent !important;
}

.journal-overlay-data .journal-table td{
    padding:1.2mm;
    color:#000;
}

.journal-overlay-data .journal-table tr{
    background:transparent !important;
}

.giornale-sale-table{
    width:185mm;
    table-layout:fixed;
    font-size:9px;
}
.giornale-sale-table th,
.giornale-sale-table td{
    height:8.2mm;
    padding:1.2mm;
    vertical-align:top;
}
.giornale-sale-table .g-code{width:22mm}
.giornale-sale-table .g-date{width:24mm}
.giornale-sale-table .g-desc{width:104mm}
.giornale-sale-table .g-amount{width:28mm;text-align:right}
.giornale-su-registro .giornale-sale-table td:nth-child(4){text-align:right;white-space:nowrap}
.giornale-su-registro .print-actions p{max-width:360px;font-size:12px;margin:8px 0 0;color:#333}

body.mercantico-receipt-page{font-family:Arial,sans-serif;background:#eee;margin:0;color:#111}
body.mercantico-receipt-page .receipt{max-width:760px;margin:20px auto;background:#fff;padding:28px;border:1px solid #ccc}
body.mercantico-receipt-page .receipt header{text-align:center;border-bottom:2px solid #111;margin-bottom:18px}
body.mercantico-receipt-page .receipt-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-end}
body.mercantico-receipt-page .receipt-title h2{margin:0 0 6px}
body.mercantico-receipt-page .buyer-box{border:1px solid #ddd;background:#fafafa;padding:10px 12px;margin:12px 0}
body.mercantico-receipt-page .receipt table{width:100%;border-collapse:collapse;margin-top:18px}
body.mercantico-receipt-page .receipt th,body.mercantico-receipt-page .receipt td{border:1px solid #ccc;padding:8px;text-align:left;vertical-align:top}
body.mercantico-receipt-page .receipt th{background:#333;color:#fff}
body.mercantico-receipt-page .total{text-align:right;font-size:24px;font-weight:900;margin-top:18px}
body.mercantico-receipt-page .note{font-size:12px;color:#555;line-height:1.4}
body.mercantico-receipt-page .fiscal-note{border-top:1px solid #ddd;padding-top:10px;margin-top:18px}
body.mercantico-receipt-page .actions{display:flex;gap:10px;margin-top:20px}
body.mercantico-receipt-page .actions button,body.mercantico-receipt-page .actions a{padding:10px 16px;background:#155e63;color:#fff;text-decoration:none;border:0;border-radius:6px;font-weight:900}
body.mercantico-receipt-page .small-total{font-size:18px;margin-top:4px;color:#111}
@media(max-width:700px){body.mercantico-receipt-page .receipt{margin:0;border:0;min-height:100vh;padding:16px}body.mercantico-receipt-page .receipt-title{display:block}body.mercantico-receipt-page .receipt table{font-size:12px}body.mercantico-receipt-page .receipt th,body.mercantico-receipt-page .receipt td{padding:6px}body.mercantico-receipt-page .actions{display:grid}body.mercantico-receipt-page .actions button,body.mercantico-receipt-page .actions a{text-align:center}body.mercantico-receipt-page .total{font-size:20px}}
@media print{@page{size:A4 portrait;margin:12mm}body.mercantico-receipt-page .no-print{display:none}body.mercantico-receipt-page .receipt{margin:0;border:0;max-width:none;padding:0}body.mercantico-receipt-page{background:#fff}body.mercantico-receipt-page .receipt table{page-break-inside:auto}body.mercantico-receipt-page .receipt tr{page-break-inside:avoid;page-break-after:auto}}

body.mercantico-login-page{--login-navy:#172b49;--login-navy-2:#294b72;--login-teal:#2f707a;--login-line:#d5deea;--login-ink:#18263f;--login-muted:#65718a;box-sizing:border-box;min-height:100vh;margin:0;display:flex;align-items:center;justify-content:center;padding:28px 18px;overflow-x:hidden;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:radial-gradient(circle at 12% 12%,rgba(47,112,122,.18),transparent 25rem),radial-gradient(circle at 86% 86%,rgba(74,101,135,.18),transparent 28rem),linear-gradient(135deg,#102038 0%,#1b3150 52%,#263f61 100%);color:var(--login-ink)}
body.mercantico-login-page *,body.mercantico-login-page *:before,body.mercantico-login-page *:after{box-sizing:border-box}
body.mercantico-login-page .login-watermark{position:fixed;left:clamp(18px,5vw,80px);bottom:clamp(18px,5vw,70px);width:clamp(170px,25vw,360px);opacity:.055;filter:grayscale(1) brightness(2.2);pointer-events:none}
body.mercantico-login-page .login-watermark img{display:block;width:100%;height:auto}
body.mercantico-login-page .login-shell{position:relative;z-index:1;width:min(100%,430px)}
body.mercantico-login-page .login-card{position:relative;width:100%;margin:0;padding:30px 30px 28px;border-radius:26px;background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.58);box-shadow:0 28px 70px rgba(5,17,34,.30);overflow:hidden}
body.mercantico-login-page .login-accent{position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--login-navy),var(--login-teal))}
body.mercantico-login-page .login-logo-wrap{width:92px;height:92px;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;border-radius:22px;background:#fff;border:1px solid var(--login-line);box-shadow:0 12px 28px rgba(20,38,68,.11);overflow:hidden}
body.mercantico-login-page .login-logo{display:block;max-width:82%;max-height:82%;width:auto;height:auto;object-fit:contain}
body.mercantico-login-page .login-heading{text-align:center;margin-bottom:24px}
body.mercantico-login-page .login-heading h1{margin:0;color:var(--login-ink);font-size:34px;line-height:1.05;font-weight:900;letter-spacing:-.04em}
body.mercantico-login-page .login-heading p{margin:8px 0 0;color:var(--login-muted);font-size:14px;font-weight:750}
body.mercantico-login-page .login-card label{display:block;margin:0 0 7px;color:var(--login-ink);font-size:14px;font-weight:850}
body.mercantico-login-page .login-card input{display:block;width:100%;min-height:50px;margin:0 0 17px;padding:12px 14px;border:1px solid var(--login-line);border-radius:13px;background:#fff;color:var(--login-ink);font:inherit;box-shadow:inset 0 1px 2px rgba(15,30,52,.04);outline:none}
body.mercantico-login-page .login-card input:focus{border-color:#557798;box-shadow:0 0 0 4px rgba(46,82,120,.12)}
body.mercantico-login-page .login-card button{width:100%;min-height:52px;margin-top:3px;padding:12px 18px;border:1px solid rgba(21,49,82,.28);border-radius:13px;background:linear-gradient(135deg,var(--login-navy),var(--login-navy-2));color:#fff;font:inherit;font-weight:850;cursor:pointer;box-shadow:0 10px 22px rgba(23,43,73,.20);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
body.mercantico-login-page .login-card button:hover{background:linear-gradient(135deg,#1d3558,#31577e);transform:translateY(-1px);box-shadow:0 14px 28px rgba(23,43,73,.24)}
body.mercantico-login-page .login-flash{margin:0 0 16px;padding:11px 13px;border-radius:12px;border:1px solid #edc4cd;background:#fff4f6;color:#8a2d42;font-size:14px;font-weight:750}
@media(max-width:520px){body.mercantico-login-page{padding:18px 12px}body.mercantico-login-page .login-card{padding:26px 20px 22px;border-radius:22px}body.mercantico-login-page .login-logo-wrap{width:82px;height:82px;border-radius:19px}body.mercantico-login-page .login-heading h1{font-size:30px}body.mercantico-login-page .login-watermark{width:220px;left:50%;transform:translateX(-50%);opacity:.04}}

body.mercantico-admin{
  --mc-admin-primary:#244f78;
  --mc-admin-primary-hover:#1d4265;
  --mc-admin-soft-bg:#eef2f6;
  --mc-admin-soft-text:#25364a;
  --mc-admin-soft-border:#c8d2dc;
  --mc-admin-success:#15803d;
  --mc-admin-success-hover:#116832;
  --mc-admin-warning:#b45309;
  --mc-admin-warning-hover:#92400e;
  --mc-admin-danger:#b42318;
  --mc-admin-danger-hover:#8f1b13;
  --mc-admin-danger-active:#74170f;
  --mc-admin-on-color:#ffffff;
}

html body.mercantico-admin .main .btn:not(.soft):not(.danger):not(.success):not(.warning):not(:where(form[action*="/delete"] .btn,form[action*="/elimina"] .btn)),
html body.mercantico-admin .main button.btn:not(.soft):not(.danger):not(.success):not(.warning):not(:where(form[action*="/delete"] button,form[action*="/elimina"] button)),
html body.mercantico-admin .main input.btn[type="submit"]:not(.soft):not(.danger):not(.success):not(.warning):not(:where(form[action*="/delete"] input,form[action*="/elimina"] input)),
html body.mercantico-admin .main input.btn[type="button"]:not(.soft):not(.danger):not(.success):not(.warning):not(:where(form[action*="/delete"] input,form[action*="/elimina"] input)){
  background:var(--mc-admin-primary)!important;
  background-color:var(--mc-admin-primary)!important;
  background-image:none!important;
  border-color:var(--mc-admin-primary-hover)!important;
  color:var(--mc-admin-on-color)!important;
}
html body.mercantico-admin .main .btn:not(.soft):not(.danger):not(.success):not(.warning):not(:where(form[action*="/delete"] .btn,form[action*="/elimina"] .btn)):hover,
html body.mercantico-admin .main button.btn:not(.soft):not(.danger):not(.success):not(.warning):not(:where(form[action*="/delete"] button,form[action*="/elimina"] button)):hover{
  background:var(--mc-admin-primary-hover)!important;
  background-color:var(--mc-admin-primary-hover)!important;
  background-image:none!important;
}

html body.mercantico-admin .main .btn.soft,
html body.mercantico-admin .main button.soft,
html body.mercantico-admin .main a.btn.soft{
  background:var(--mc-admin-soft-bg)!important;
  background-color:var(--mc-admin-soft-bg)!important;
  background-image:none!important;
  border-color:var(--mc-admin-soft-border)!important;
  color:var(--mc-admin-soft-text)!important;
  text-shadow:none!important;
}

html body.mercantico-admin .main .btn.success,
html body.mercantico-admin .main button.success,
html body.mercantico-admin .main a.btn.success{
  background:var(--mc-admin-success)!important;
  background-color:var(--mc-admin-success)!important;
  background-image:none!important;
  border-color:var(--mc-admin-success-hover)!important;
  color:var(--mc-admin-on-color)!important;
}
html body.mercantico-admin .main .btn.warning,
html body.mercantico-admin .main button.warning,
html body.mercantico-admin .main a.btn.warning{
  background:var(--mc-admin-warning)!important;
  background-color:var(--mc-admin-warning)!important;
  background-image:none!important;
  border-color:var(--mc-admin-warning-hover)!important;
  color:var(--mc-admin-on-color)!important;
}

html body.mercantico-admin .main .btn.danger,
html body.mercantico-admin .main button.danger,
html body.mercantico-admin .danger,
html body.mercantico-admin .btn.danger,
html body.mercantico-admin button.danger,
html body.mercantico-admin input.danger,
html body.mercantico-admin a.danger,
html body.mercantico-admin .mc-danger-action,
html body.mercantico-admin .main form[action*="/delete"] button.btn,
html body.mercantico-admin .main form[action*="/elimina"] button.btn,
html body.mercantico-admin form[action*="/delete"] button,
html body.mercantico-admin form[action*="/delete"] input[type="submit"],
html body.mercantico-admin form[action*="/elimina"] button,
html body.mercantico-admin form[action*="/elimina"] input[type="submit"],
html body.mercantico-admin a[href*="/delete"],
html body.mercantico-admin a[href*="/elimina"]{
  background:var(--mc-admin-danger)!important;
  background-color:var(--mc-admin-danger)!important;
  background-image:none!important;
  border-color:var(--mc-admin-danger-hover)!important;
  color:var(--mc-admin-on-color)!important;
  text-shadow:none!important;
}
html body.mercantico-admin .main .btn.danger:hover,
html body.mercantico-admin .main button.danger:hover,
html body.mercantico-admin .danger:hover,
html body.mercantico-admin .btn.danger:hover,
html body.mercantico-admin button.danger:hover,
html body.mercantico-admin .mc-danger-action:hover,
html body.mercantico-admin .main form[action*="/delete"] button.btn:hover,
html body.mercantico-admin .main form[action*="/elimina"] button.btn:hover,
html body.mercantico-admin form[action*="/delete"] button:hover,
html body.mercantico-admin form[action*="/elimina"] button:hover,
html body.mercantico-admin a[href*="/delete"]:hover,
html body.mercantico-admin a[href*="/elimina"]:hover{
  background:var(--mc-admin-danger-hover)!important;
  background-color:var(--mc-admin-danger-hover)!important;
  background-image:none!important;
  border-color:var(--mc-admin-danger-active)!important;
  color:var(--mc-admin-on-color)!important;
}
html body.mercantico-admin .main .btn.danger:active,
html body.mercantico-admin .main button.danger:active,
html body.mercantico-admin .danger:active,
html body.mercantico-admin .btn.danger:active,
html body.mercantico-admin button.danger:active,
html body.mercantico-admin .mc-danger-action:active{
  background:var(--mc-admin-danger-active)!important;
  background-color:var(--mc-admin-danger-active)!important;
  background-image:none!important;
  color:var(--mc-admin-on-color)!important;
}

html body.mercantico-admin .v291-kpi.v291-kpi-danger,
html body.mercantico-admin .v291-kpi.v291-kpi-danger:hover{
  background:var(--mc-admin-danger)!important;
  background-color:var(--mc-admin-danger)!important;
  background-image:none!important;
  border-color:var(--mc-admin-danger-hover)!important;
  color:var(--mc-admin-on-color)!important;
}
html body.mercantico-admin .v291-kpi.v291-kpi-danger *,
html body.mercantico-admin .v291-kpi.v291-kpi-danger:hover *{
  color:var(--mc-admin-on-color)!important;
}

.v291-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:14px 0}.v291-kpi{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--border,#d8dfeb);border-radius:10px;text-decoration:none;background:#fff;color:inherit}.v291-kpi b{font-size:24px}.v291-kpi span{font-size:12px;font-weight:700;text-transform:uppercase}.v291-kpi.v291-kpi-danger b{color:#b42318}.v291-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}.v291-filters label{min-width:135px}.v291-filters .grow{flex:1;min-width:230px}.v291-filters input,.v291-filters select{width:100%}.v291-print-form{align-items:end}.v291-print-form label{margin:0}.v291-schedule-table td{vertical-align:top}.v291-urg-oggi td{background:#fff8e6}.v291-urg-arretrato td:first-child{border-left:4px solid #b42318}.v291-urg-completato td{background:#f7f8fa;color:#667085}.v291-urg-completato td:first-child{border-left:4px solid #98a2b3}.v291-schedule-table small{color:#667085}@media(max-width:800px){.v291-print-form{width:100%}.v291-schedule-table{min-width:980px}}

  .v98-mail-map .table-wrap{overflow:visible!important}
  .v98-mail-map table{width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
  .v98-mail-map th,.v98-mail-map td{
      white-space:normal!important;
      overflow:visible!important;
      text-overflow:clip!important;
      word-break:normal!important;
      overflow-wrap:anywhere!important;
      vertical-align:top!important;
      line-height:1.45!important;
      height:auto!important;
      padding:10px 12px!important;
  }
  .v98-mail-map th:nth-child(1),.v98-mail-map td:nth-child(1){width:34%!important}
  .v98-mail-map th:nth-child(2),.v98-mail-map td:nth-child(2){width:48%!important}
  .v98-mail-map th:nth-child(3),.v98-mail-map td:nth-child(3){width:18%!important}
  .v98-mail-map td:first-child{font-weight:600}
  .v98-mail-map td code{white-space:normal!important;overflow-wrap:anywhere!important}
  @media(max-width:900px){
      .v98-mail-map table,.v98-mail-map tbody,.v98-mail-map tr,.v98-mail-map td{display:block!important;width:100%!important}
      .v98-mail-map tr:first-child{display:none!important}
      .v98-mail-map tr{margin:0 0 12px!important;border:1px solid #d8dfeb!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
      .v98-mail-map td{border:0!important;border-bottom:1px solid #e7ebf2!important;padding:9px 11px!important}
      .v98-mail-map td:last-child{border-bottom:0!important}
      .v98-mail-map td::before{content:attr(data-label);display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#66758a;margin-bottom:3px}
  }


:root{
  --mc-admin-primary:#244f78;
  --mc-admin-primary-hover:#1d4265;
  --mc-admin-danger:#b42318;
  --mc-admin-danger-hover:#8f1b13;
  --mc-admin-danger-active:#74170f;
  --mc-admin-success:#20705e;
  --mc-admin-success-hover:#185b4c;
  --mc-admin-warning:#a56c19;
  --mc-admin-soft:#f1f5f8;
  --mc-admin-soft-hover:#e6edf3;
  --mc-admin-on-color:#fff;
}
body.mercantico-admin .main .btn.danger,
body.mercantico-admin .main button.danger,
body.mercantico-admin .main input.danger,
body.mercantico-admin .main a.danger,
body.mercantico-admin .main .mc-danger-action,
body.mercantico-admin .main form[action*="/delete"] button,
body.mercantico-admin .main form[action*="/delete"] input[type="submit"],
body.mercantico-admin .main form[action*="/elimina"] button,
body.mercantico-admin .main form[action*="/elimina"] input[type="submit"],
body.mercantico-admin .main a[href*="/delete"],
body.mercantico-admin .main a[href*="/elimina"]{background:var(--mc-admin-danger)!important;background-color:var(--mc-admin-danger)!important;background-image:none!important;border-color:var(--mc-admin-danger-hover)!important;color:var(--mc-admin-on-color)!important;text-shadow:none!important}
body.mercantico-admin .main .btn.danger:hover,
body.mercantico-admin .main button.danger:hover,
body.mercantico-admin .main .mc-danger-action:hover,
body.mercantico-admin .main form[action*="/delete"] button:hover,
body.mercantico-admin .main form[action*="/elimina"] button:hover,
body.mercantico-admin .main a[href*="/delete"]:hover,
body.mercantico-admin .main a[href*="/elimina"]:hover{background:var(--mc-admin-danger-hover)!important;background-color:var(--mc-admin-danger-hover)!important;border-color:var(--mc-admin-danger-active)!important;color:#fff!important}
body.mercantico-admin .v291-kpi.v291-kpi-danger,body.mercantico-admin .v291-kpi.v291-kpi-danger:hover{background:var(--mc-admin-danger)!important;background-color:var(--mc-admin-danger)!important;background-image:none!important;border-color:var(--mc-admin-danger-hover)!important;color:#fff!important}
body.mercantico-admin .v291-kpi.v291-kpi-danger *,body.mercantico-admin .v291-kpi.v291-kpi-danger:hover *{color:#fff!important}

body.v304-avvisi-stampa{font-family:Arial,sans-serif;color:#111;margin:22px;font-size:11px}
body.v304-avvisi-stampa h1{font-size:23px;margin:0 0 5px}
body.v304-avvisi-stampa h2{font-size:16px;margin:22px 0 8px}
body.v304-avvisi-stampa .meta{color:#555;margin-bottom:16px}
body.v304-avvisi-stampa .toolbar{margin-bottom:16px}
body.v304-avvisi-stampa .toolbar button{padding:8px 14px}
body.v304-avvisi-stampa table{width:100%;border-collapse:collapse;table-layout:fixed}
body.v304-avvisi-stampa th,
body.v304-avvisi-stampa td{border:1px solid #999;padding:5px;vertical-align:top;word-wrap:break-word}
body.v304-avvisi-stampa th{background:#eee;text-align:left}
body.v304-avvisi-stampa .note{border:1px solid #999;padding:8px;margin-top:16px}
body.v304-avvisi-stampa small{color:#555}
body.v304-avvisi-stampa{page:p_avvisi_stampa}
@page p_avvisi_stampa{size:A4 landscape;margin:8mm}
@media print{
body.v304-avvisi-stampa{margin:0;font-size:8.8px}
body.v304-avvisi-stampa .toolbar{display:none}
body.v304-avvisi-stampa h2{break-after:avoid}
body.v304-avvisi-stampa tr{break-inside:avoid}
body.v304-avvisi-stampa .note{break-inside:avoid}
}

body.v304-cliente-accettazione{page:p_cliente_accettazione}
@page p_cliente_accettazione{size:A4;margin:14mm}
body.v304-cliente-accettazione{font-family:Arial,Helvetica,sans-serif;color:#111;line-height:1.35;font-size:12.5px}
body.v304-cliente-accettazione h1{font-size:22px;margin:0 0 6px}
body.v304-cliente-accettazione h2{font-size:15px;margin:18px 0 8px;border-bottom:1px solid #bbb;padding-bottom:4px}
body.v304-cliente-accettazione .top{display:flex;justify-content:space-between;gap:20px}
body.v304-cliente-accettazione .box{border:1px solid #999;border-radius:8px;padding:10px;margin:10px 0}
body.v304-cliente-accettazione .grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
body.v304-cliente-accettazione .muted{color:#555}
body.v304-cliente-accettazione .sign{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:34px}
body.v304-cliente-accettazione .line{border-bottom:1px solid #111;height:38px}
body.v304-cliente-accettazione .toolbar{position:sticky;top:0;background:#fff;padding:10px;border-bottom:1px solid #ddd;margin:-14mm -14mm 14px}
body.v304-cliente-accettazione .btn{display:inline-block;padding:9px 12px;background:#111;color:#fff;text-decoration:none;border-radius:6px;border:0;cursor:pointer}
@media print{
body.v304-cliente-accettazione .toolbar{display:none}
body.v304-cliente-accettazione{font-size:12px}
body.v304-cliente-accettazione .box{break-inside:avoid}
}

body.v304-cliente-dismissione-stampa *{box-sizing:border-box}
body.v304-cliente-dismissione-stampa{margin:0;background:#edf0f4;font-family:Arial,Helvetica,sans-serif;color:#111}
body.v304-cliente-dismissione-stampa .page{width:min(900px,calc(100% - 30px));margin:22px auto;background:#fff;padding:28px 32px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
body.v304-cliente-dismissione-stampa .head{display:grid;grid-template-columns:130px 1fr;gap:24px;align-items:start;border-bottom:2px solid #222;padding-bottom:14px}
body.v304-cliente-dismissione-stampa .head img{max-width:115px;max-height:74px}
body.v304-cliente-dismissione-stampa .company{font-size:11px;line-height:1.35}
body.v304-cliente-dismissione-stampa .company b{display:block;font-size:14px}
body.v304-cliente-dismissione-stampa .title{text-align:center;font-weight:800;font-size:18px;margin:18px 0 4px;text-transform:uppercase}
body.v304-cliente-dismissione-stampa .sub{text-align:center;font-size:11px;margin-bottom:14px}
body.v304-cliente-dismissione-stampa .info{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;font-size:11px}
body.v304-cliente-dismissione-stampa .info div{border:1px solid #bbb;padding:7px}
body.v304-cliente-dismissione-stampa .info b{display:block;margin-top:2px}
body.v304-cliente-dismissione-stampa table{width:100%;border-collapse:collapse;font-size:10px}
body.v304-cliente-dismissione-stampa th,
body.v304-cliente-dismissione-stampa td{border:1px solid #999;padding:5px}
body.v304-cliente-dismissione-stampa th{background:#f3f3f3;font-size:9px}
body.v304-cliente-dismissione-stampa .num{text-align:right}
body.v304-cliente-dismissione-stampa .center{text-align:center}
body.v304-cliente-dismissione-stampa tfoot td{font-weight:800;background:#fafafa;border-top:2px solid #222}
body.v304-cliente-dismissione-stampa .declaration{margin-top:17px;font-size:10.5px;line-height:1.45}
body.v304-cliente-dismissione-stampa .notes{margin-top:10px;padding:8px;border:1px solid #bbb;font-size:10px}
body.v304-cliente-dismissione-stampa .signatures{display:grid;grid-template-columns:1fr 1fr;gap:55px;margin-top:38px;font-size:10px}
body.v304-cliente-dismissione-stampa .line{border-bottom:1px solid #222;height:24px}
body.v304-cliente-dismissione-stampa .actions{display:flex;gap:10px;margin-top:25px}
body.v304-cliente-dismissione-stampa .actions button,
body.v304-cliente-dismissione-stampa .actions a{border:0;border-radius:7px;padding:10px 14px;background:#203d64;color:#fff;text-decoration:none;font-weight:700}
body.v304-cliente-dismissione-stampa .actions a{background:#e8eef5;color:#203d64}
@media print{
body.v304-cliente-dismissione-stampa{page:p_cliente_dismissione_stampa}
@page p_cliente_dismissione_stampa{size:A4 portrait;margin:11mm}
body.v304-cliente-dismissione-stampa{background:#fff}
body.v304-cliente-dismissione-stampa .page{width:100%;margin:0;padding:0;box-shadow:none}
body.v304-cliente-dismissione-stampa .actions{display:none}
body.v304-cliente-dismissione-stampa .head{grid-template-columns:32mm 1fr;gap:7mm}
body.v304-cliente-dismissione-stampa .head img{max-width:29mm;max-height:19mm}
body.v304-cliente-dismissione-stampa .company{font-size:7.5pt}
body.v304-cliente-dismissione-stampa .company b{font-size:8.5pt}
body.v304-cliente-dismissione-stampa .title{font-size:11pt;margin-top:5mm}
body.v304-cliente-dismissione-stampa .sub,
body.v304-cliente-dismissione-stampa .info{font-size:7.4pt}
body.v304-cliente-dismissione-stampa table{font-size:7pt}
body.v304-cliente-dismissione-stampa th{font-size:6.4pt}
body.v304-cliente-dismissione-stampa th,
body.v304-cliente-dismissione-stampa td{padding:1.5mm 1mm}
body.v304-cliente-dismissione-stampa .declaration{font-size:7.5pt;break-inside:avoid}
body.v304-cliente-dismissione-stampa .notes{font-size:7pt}
body.v304-cliente-dismissione-stampa .signatures{font-size:7.5pt;margin-top:12mm}
}

body.v304-cliente-materiale-stampa *{box-sizing:border-box}
body.v304-cliente-materiale-stampa{margin:0;background:#eceff3;color:#111;font-family:Arial,Helvetica,sans-serif}
body.v304-cliente-materiale-stampa .page{width:min(980px,calc(100% - 28px));margin:20px auto;background:#fff;padding:24px 28px;box-shadow:0 10px 32px rgba(0,0,0,.09)}
body.v304-cliente-materiale-stampa .head{display:grid;grid-template-columns:145px 1fr;gap:28px;align-items:start;border-bottom:2px solid #252525;padding-bottom:16px}
body.v304-cliente-materiale-stampa .logo img{max-width:125px;max-height:78px;object-fit:contain}
body.v304-cliente-materiale-stampa .company{font-size:12px;line-height:1.25}
body.v304-cliente-materiale-stampa .company b{display:block;font-size:14px;margin-bottom:3px}
body.v304-cliente-materiale-stampa .company span{display:block}
body.v304-cliente-materiale-stampa .docmeta{margin-top:4px}
body.v304-cliente-materiale-stampa .title{text-align:center;font-size:18px;font-weight:800;margin:17px 0 14px;text-transform:uppercase}
body.v304-cliente-materiale-stampa table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10px}
body.v304-cliente-materiale-stampa th,
body.v304-cliente-materiale-stampa td{border:1px solid #999;padding:5px 4px;vertical-align:top}
body.v304-cliente-materiale-stampa th{background:#f4f4f4;font-size:9px;text-align:center}
body.v304-cliente-materiale-stampa .c-code{width:11%}
body.v304-cliente-materiale-stampa .c-desc{width:20%}
body.v304-cliente-materiale-stampa .c-qta{width:6%;text-align:center}
body.v304-cliente-materiale-stampa .c-price{width:10%;text-align:right}
body.v304-cliente-materiale-stampa .c-value{width:11%;text-align:right}
body.v304-cliente-materiale-stampa .c-client{width:11%;text-align:right}
body.v304-cliente-materiale-stampa .c-date{width:9%;text-align:center}
body.v304-cliente-materiale-stampa .c-state{width:8%;text-align:center}
body.v304-cliente-materiale-stampa .num{text-align:right}
body.v304-cliente-materiale-stampa .center{text-align:center}
body.v304-cliente-materiale-stampa tfoot td{font-weight:800;background:#fafafa;border-top:2px solid #333}
body.v304-cliente-materiale-stampa .totals{display:flex;justify-content:flex-end;gap:28px;margin:10px 0 0;font-size:11px}
body.v304-cliente-materiale-stampa .totals b{font-size:12px}
body.v304-cliente-materiale-stampa .refund-summary{width:330px;max-width:100%;margin:14px 0 0 auto;border-top:2px solid #333;padding-top:7px;font-size:11px}
body.v304-cliente-materiale-stampa .refund-summary .line{display:flex;justify-content:space-between;gap:20px;padding:2px 0}
body.v304-cliente-materiale-stampa .refund-summary .net{font-weight:800;font-size:12px;border-top:1px solid #999;margin-top:4px;padding-top:5px}
body.v304-cliente-materiale-stampa .clause{margin-top:22px;font-size:10.5px;line-height:1.45}
body.v304-cliente-materiale-stampa .clause-title{font-weight:800;margin-bottom:6px}
body.v304-cliente-materiale-stampa .clause-box{border-top:1px solid #333;padding-top:8px}
body.v304-cliente-materiale-stampa .sign{margin-top:27px;font-size:10px}
body.v304-cliente-materiale-stampa .sign-line{display:inline-block;width:190px;border-bottom:1px solid #222;margin-left:12px}
body.v304-cliente-materiale-stampa .empty{padding:30px;text-align:center;border:1px dashed #999}
body.v304-cliente-materiale-stampa .filterbar{margin:14px 0 16px;padding:12px;border:1px solid #ccd3dc;border-radius:8px;background:#f8fafc}
body.v304-cliente-materiale-stampa .filterbar form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
body.v304-cliente-materiale-stampa .filterbar label{display:grid;gap:4px;font-size:11px;font-weight:700}
body.v304-cliente-materiale-stampa .filterbar select{min-width:210px;padding:8px;border:1px solid #aab4c0;border-radius:6px;background:#fff}
body.v304-cliente-materiale-stampa .state-checks{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center}
body.v304-cliente-materiale-stampa .state-checks label{display:flex;grid-template-columns:none;align-items:center;gap:5px;font-weight:600}
body.v304-cliente-materiale-stampa .state-checks input{margin:0}
body.v304-cliente-materiale-stampa .filter-help{font-size:10px;color:#596579;margin-top:6px}
body.v304-cliente-materiale-stampa .setting-status{flex-basis:100%;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;border-radius:7px;font-size:10.5px}
body.v304-cliente-materiale-stampa .setting-status.missing{background:#fff4d6;border:1px solid #e0b84c}
body.v304-cliente-materiale-stampa .setting-status.ok{background:#eef8ef;border:1px solid #9cc7a1}
body.v304-cliente-materiale-stampa .setting-status a{display:inline-block;padding:5px 8px;border-radius:5px;background:#203d64;color:#fff;text-decoration:none;font-weight:700}
body.v304-cliente-materiale-stampa .actions{display:flex;gap:10px;margin-top:20px}
body.v304-cliente-materiale-stampa .actions button,
body.v304-cliente-materiale-stampa .actions a{border:0;border-radius:7px;padding:10px 14px;background:#203d64;color:#fff;text-decoration:none;font-weight:700;cursor:pointer}
body.v304-cliente-materiale-stampa .actions a{background:#e9eef5;color:#203d64}
@media print{
body.v304-cliente-materiale-stampa{page:p_cliente_materiale_stampa}
@page p_cliente_materiale_stampa{size:A4 portrait;margin:11mm}
body.v304-cliente-materiale-stampa{background:#fff}
body.v304-cliente-materiale-stampa .page{width:100%;margin:0;padding:0;box-shadow:none}
body.v304-cliente-materiale-stampa .actions,
body.v304-cliente-materiale-stampa .filterbar,
body.v304-cliente-materiale-stampa .setting-status{display:none!important}
body.v304-cliente-materiale-stampa .head{grid-template-columns:34mm 1fr;gap:8mm;padding-bottom:4mm}
body.v304-cliente-materiale-stampa .logo img{max-width:31mm;max-height:20mm}
body.v304-cliente-materiale-stampa .company{font-size:7.7pt}
body.v304-cliente-materiale-stampa .company b{font-size:8.7pt}
body.v304-cliente-materiale-stampa .title{font-size:11pt;margin:5mm 0 3.5mm}
body.v304-cliente-materiale-stampa table{font-size:6.8pt}
body.v304-cliente-materiale-stampa th{font-size:6.2pt}
body.v304-cliente-materiale-stampa th,
body.v304-cliente-materiale-stampa td{padding:1.4mm 1mm}
body.v304-cliente-materiale-stampa .totals{font-size:7.3pt;margin-top:2.5mm}
body.v304-cliente-materiale-stampa .clause{font-size:7.5pt;margin-top:6mm;break-inside:avoid}
body.v304-cliente-materiale-stampa .sign{font-size:7.5pt;margin-top:7mm}
body.v304-cliente-materiale-stampa .sign-line{width:52mm}
}

body.v304-cliente-tesserino *{box-sizing:border-box}
html.v304-cliente-tesserino,
body.v304-cliente-tesserino{margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;color:#111}
body.v304-cliente-tesserino{background:#e9eef4;padding:18px}
body.v304-cliente-tesserino .toolbar{max-width:900px;margin:0 auto 14px;background:#fff;border:1px solid #d7e0eb;border-radius:12px;padding:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;box-shadow:0 4px 16px rgba(0,0,0,.06)}
body.v304-cliente-tesserino .toolbar .title{font-weight:900;margin-right:auto;color:#203d64}
body.v304-cliente-tesserino .toolbar a,
body.v304-cliente-tesserino .toolbar button{border-radius:8px;padding:10px 14px;text-decoration:none;font-weight:800;cursor:pointer}
body.v304-cliente-tesserino .toolbar .print{border:0;background:#203d64;color:#fff}
body.v304-cliente-tesserino .toolbar .back{background:#fff;color:#203d64;border:1px solid #c7d3e2}
body.v304-cliente-tesserino .hint{max-width:900px;margin:0 auto 14px;color:#53647c;font-size:13px}
body.v304-cliente-tesserino .hint b{color:#203d64}
body.v304-cliente-tesserino .wrap{display:flex;justify-content:center;align-items:flex-start}
body.v304-cliente-tesserino .card{width:var(--label-w);height:var(--label-h);background:#fff;padding:var(--safe-pad);box-shadow:0 7px 22px rgba(0,0,0,.17);overflow:hidden}
body.v304-cliente-tesserino .safe{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}
body.v304-cliente-tesserino .head{display:grid;grid-template-columns:minmax(0,1fr) var(--logo-w);gap:1mm;align-items:start;flex:0 0 auto;max-height:27%}
body.v304-cliente-tesserino .company{font-size:var(--company-text);line-height:1.05;min-width:0;overflow:hidden}
body.v304-cliente-tesserino .company strong{display:block;font-size:var(--company-name);line-height:1;margin-bottom:.3mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.v304-cliente-tesserino .company-details{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.v304-cliente-tesserino .logo{text-align:center;height:var(--logo-h);display:flex;align-items:center;justify-content:center}
body.v304-cliente-tesserino .logo img{max-width:var(--logo-w);max-height:var(--logo-h);object-fit:contain}
body.v304-cliente-tesserino .rule{height:.25mm;background:#111;margin:.4mm 0;flex:0 0 auto}
body.v304-cliente-tesserino .meta{display:flex;justify-content:space-between;align-items:baseline;gap:.8mm;font-size:var(--meta-size);line-height:1;margin:0 0 .4mm;flex:0 0 auto}
body.v304-cliente-tesserino .meta .code{font-size:var(--code-size);font-weight:900;letter-spacing:.04mm}
body.v304-cliente-tesserino .name{font-size:var(--name-size);line-height:1;font-weight:900;margin:0 0 .3mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}
body.v304-cliente-tesserino .barcode{width:94%;max-width:100%;margin:0 auto;text-align:center;overflow:hidden;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:flex-end}
body.v304-cliente-tesserino .barcode svg{width:100%;height:var(--barcode-h);max-height:100%;display:block;shape-rendering:crispEdges}
body.v304-cliente-tesserino .code-bottom{text-align:center;font-size:var(--barcode-text);font-weight:900;letter-spacing:.28mm;line-height:1;margin-top:.12mm;flex:0 0 auto}
@media (max-width:700px){
body.v304-cliente-tesserino{padding:10px}
body.v304-cliente-tesserino .toolbar .title{width:100%;margin-right:0}
body.v304-cliente-tesserino .card{transform:scale(1.35);transform-origin:top center;margin-top:12mm;margin-bottom:20mm}
}
@media print{
body.v304-cliente-tesserino{page:p_cliente_tesserino}
@page p_cliente_tesserino{margin:0}
html.v304-cliente-tesserino,
body.v304-cliente-tesserino{margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
body.v304-cliente-tesserino .toolbar,
body.v304-cliente-tesserino .hint{display:none!important}
body.v304-cliente-tesserino .wrap{display:block!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important}
body.v304-cliente-tesserino .card{display:block!important;
    width:var(--label-w)!important;
    height:var(--label-h)!important;
    margin:1.5mm auto!important;
    padding:var(--safe-pad)!important;
    box-shadow:none!important;
    overflow:hidden!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    print-color-adjust:exact;
    -webkit-print-color-adjust:exact;
    
    transform:none!important;
    transform-origin:initial!important;}
}

body.v304-etichette *{box-sizing:border-box}
body.v304-etichette{--label-w:57mm;--label-h:32mm;--top-h:18.4mm;--qr:15.2mm;--pad:1.2mm;--gap:1.2mm;--font-main:Arial,Helvetica,sans-serif;--barcode-h:5.6mm}
html.v304-etichette,
body.v304-etichette{margin:0;padding:0;background:#eee;color:#111;font-family:var(--font-main)}
body.v304-etichette .toolbar{position:sticky;top:0;z-index:10;background:#333;color:#fff;border-bottom:3px solid #ff8d28;padding:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.v304-etichette .toolbar strong{color:#ffd18c;margin-right:auto}
body.v304-etichette .toolbar button,
body.v304-etichette .toolbar select,
body.v304-etichette .toolbar a,
body.v304-etichette .toolbar label{min-height:38px;border-radius:7px;border:1px solid #777;padding:7px 10px;font-weight:900}
body.v304-etichette .toolbar button,
body.v304-etichette .toolbar a{background:#ff7b0c;color:#fff;text-decoration:none;cursor:pointer}
body.v304-etichette .toolbar select,
body.v304-etichette .toolbar label{background:#fff;color:#111}
body.v304-etichette .toolbar label{display:flex;align-items:center;gap:8px}
body.v304-etichette .toolbar label input{width:18px;height:18px}
body.v304-etichette .toolbar .hint{width:100%;font-size:12px;color:#eee;line-height:1.3}
body.v304-etichette .sheet{padding:8mm;display:flex;flex-wrap:wrap;gap:3mm;align-items:flex-start}
body.v304-etichette .label{width:var(--label-w);height:var(--label-h);background:#fff;border:1px dashed #999;padding:var(--pad);display:grid;grid-template-rows:var(--top-h) 1fr;gap:.7mm;overflow:hidden;break-inside:avoid;page-break-inside:avoid}
body.v304-etichette .top{display:grid;grid-template-columns:var(--qr) 1fr;gap:var(--gap);min-height:0}
body.v304-etichette .qrbox{min-width:0;text-align:center}
body.v304-etichette .qrbox img{display:block;width:var(--qr);height:var(--qr);margin:0 auto}
body.v304-etichette .info{min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start}
body.v304-etichette .code{font-weight:900;font-size:7.2pt;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}
body.v304-etichette .title{font-weight:800;font-size:6.1pt;line-height:1.08;margin:.20mm 0 .15mm;max-height:4.9mm;overflow:hidden;overflow-wrap:break-word;word-break:normal;flex:0 0 auto}
body.v304-etichette .price,
body.v304-etichette .price *{font-weight:950;line-height:1;color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;filter:none!important;text-shadow:none!important}
body.v304-etichette .price{font-size:15pt;white-space:nowrap;flex:0 0 auto}
body.v304-etichette .price small{font-size:.72em}
body.v304-etichette .article-meta{font-size:5.2pt;line-height:1;font-weight:900;margin-top:.15mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex:0 0 auto}
body.v304-etichette .label-date{font-size:5.2pt;line-height:1;font-weight:900;color:#111;margin-top:.20mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex:0 0 auto}
body.v304-etichette .barcodebox{background:#fff;max-width:100%;overflow:hidden;border:.28mm solid #222;padding:.55mm .85mm .35mm;border-radius:1mm}
body.v304-etichette .barcodebox svg{width:100%;height:var(--barcode-h);display:block;shape-rendering:crispEdges}
body.v304-etichette .barcode-code{text-align:center;font-size:6.6pt;font-weight:900;line-height:1;margin-top:.15mm}
body.v304-etichette.hide-date .label-date{display:none}
body.v304-etichette.label-57x32{--page-w:57mm;--page-h:32mm;--label-w:53mm;--label-h:28mm;--top-h:16.8mm;--qr:14.2mm;--pad:1.0mm;--gap:1.0mm;--barcode-h:5.1mm}
body.v304-etichette.label-62x29{--page-w:62mm;--page-h:29mm;--label-w:58mm;--label-h:25mm;--top-h:14.7mm;--qr:13.1mm;--pad:1.0mm;--gap:1.0mm;--barcode-h:4.8mm}
body.v304-etichette.label-62x40{--page-w:62mm;--page-h:40mm;--label-w:58mm;--label-h:36mm;--top-h:21.2mm;--qr:18.5mm;--pad:1.4mm;--gap:1.4mm;--barcode-h:6.5mm}
body.v304-etichette.label-50x30{--page-w:50mm;--page-h:30mm;--label-w:46mm;--label-h:26mm;--top-h:15mm;--qr:12.5mm;--pad:0.9mm;--gap:.9mm;--barcode-h:4.6mm}
body.v304-etichette.label-40x30{--page-w:40mm;--page-h:30mm;--label-w:36mm;--label-h:26mm;--top-h:14.6mm;--qr:11.2mm;--pad:.85mm;--gap:.8mm;--barcode-h:4.4mm}
body.v304-etichette.label-58x40{--page-w:58mm;--page-h:40mm;--label-w:54mm;--label-h:36mm;--top-h:21.2mm;--qr:17.8mm;--pad:1.4mm;--gap:1.4mm;--barcode-h:6.5mm}
body.v304-etichette.label-63x38{--page-w:63mm;--page-h:38mm;--label-w:59mm;--label-h:34mm;--top-h:20mm;--qr:17.5mm;--pad:1.3mm;--gap:1.3mm;--barcode-h:6.2mm}
body.v304-etichette.label-a4{--page-w:57mm;--page-h:32mm;--label-w:53mm;--label-h:28mm;--top-h:16.8mm;--qr:14.2mm;--pad:1.0mm;--gap:1.0mm;--barcode-h:5.1mm}
body.v304-etichette.label-a4 .sheet{display:grid;grid-template-columns:repeat(3,57mm);gap:4mm;padding:10mm}
body.v304-etichette.label-40x30 .code,
body.v304-etichette.label-50x30 .code,
body.v304-etichette.label-62x29 .code{font-size:6.8pt}
body.v304-etichette.label-40x30 .title,
body.v304-etichette.label-50x30 .title,
body.v304-etichette.label-62x29 .title{font-size:5.6pt;line-height:1.06;max-height:4.5mm}
body.v304-etichette.label-40x30 .price,
body.v304-etichette.label-50x30 .price,
body.v304-etichette.label-62x29 .price{font-size:10.5pt}
body.v304-etichette.label-40x30 .label-date,
body.v304-etichette.label-50x30 .label-date,
body.v304-etichette.label-62x29 .label-date{font-size:4.9pt}
@media (max-width:700px){
body.v304-etichette .toolbar{position:relative}
body.v304-etichette .toolbar strong,
body.v304-etichette .toolbar select,
body.v304-etichette .toolbar button,
body.v304-etichette .toolbar a,
body.v304-etichette .toolbar label{width:100%;text-align:center}
}
@media print{
body.v304-etichette .price,
body.v304-etichette .price *{color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;filter:none!important;text-shadow:none!important}
html.v304-etichette,
body.v304-etichette{margin:0!important;padding:0!important;background:#fff!important}
body.v304-etichette .toolbar{display:none!important}
body.v304-etichette .sheet{padding:0!important;gap:0!important;display:block!important;margin:0!important}
body.v304-etichette .label{border:0!important;break-inside:avoid!important;page-break-inside:avoid!important;break-before:auto!important;page-break-before:auto!important;break-after:auto!important;page-break-after:auto!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
body.v304-etichette.multi-label-print .label{margin:1.6mm auto 0!important}
body.v304-etichette.multi-label-print .label + .label{break-before:page!important;page-break-before:always!important}
body.v304-etichette.single-label-print:not(.label-a4){width:var(--page-w)!important;height:var(--page-h)!important;min-height:0!important;max-height:var(--page-h)!important;overflow:hidden!important}
body.v304-etichette.single-label-print:not(.label-a4) .sheet{position:fixed!important;left:0!important;top:0!important;width:var(--page-w)!important;height:var(--page-h)!important;min-height:0!important;max-height:var(--page-h)!important;overflow:hidden!important;margin:0!important;padding:0!important}
body.v304-etichette.single-label-print:not(.label-a4) .label{position:absolute!important;left:50%!important;top:1.6mm!important;transform:translateX(-50%)!important;margin:0!important}
body.v304-etichette.label-a4 .label{margin:0!important;position:static!important;transform:none!important}
body.v304-etichette.label-a4 .label + .label{break-before:auto!important;page-break-before:auto!important}
body.v304-etichette{page:p_etichette}
@page p_etichette{margin:0}
}

body.v304-fattura-vendita *{box-sizing:border-box}
body.v304-fattura-vendita{--ink:#13253f;--line:#c7d3e3;--soft:#f6f8fb;--accent:#173b69;--muted:#536273}
html.v304-fattura-vendita,
body.v304-fattura-vendita{margin:0;padding:0;background:#edf1f5;color:#111;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
body.v304-fattura-vendita .invoice-page,
body.v304-fattura-vendita .invoice-page *{min-width:0}
body.v304-fattura-vendita .company-name,
body.v304-fattura-vendita .company-lines,
body.v304-fattura-vendita .doc-meta,
body.v304-fattura-vendita .box-main,
body.v304-fattura-vendita .box-text,
body.v304-fattura-vendita .article-code,
body.v304-fattura-vendita .article-title,
body.v304-fattura-vendita .account-note-title,
body.v304-fattura-vendita .account-note-text,
body.v304-fattura-vendita .totals-line span,
body.v304-fattura-vendita .payment-note,
body.v304-fattura-vendita .signature,
body.v304-fattura-vendita .footer{max-width:100%;overflow-wrap:anywhere;word-break:normal}
body.v304-fattura-vendita .invoice-page{width:210mm;min-height:297mm;margin:10px auto;background:#fff;padding:8mm 9mm 7mm;box-shadow:0 2px 18px rgba(20,40,70,.14);font-size:10pt;line-height:1.28}
body.v304-fattura-vendita .invoice-header{display:grid;grid-template-columns:1.45fr .95fr;gap:11mm;align-items:start;border-bottom:2.2px solid var(--accent);padding-bottom:4mm;margin-bottom:4mm}
body.v304-fattura-vendita .company-lockup{display:grid;grid-template-columns:28mm 1fr;gap:5mm;align-items:center}
body.v304-fattura-vendita .company-logo{height:21mm;display:flex;align-items:center;justify-content:center}
body.v304-fattura-vendita .company-logo img{max-width:27mm;max-height:20mm;object-fit:contain}
body.v304-fattura-vendita .logo-fallback{font-weight:900;color:var(--accent);font-size:12pt}
body.v304-fattura-vendita .company-name{font-size:15pt;font-weight:900;line-height:1.08;color:#111;margin-bottom:2mm}
body.v304-fattura-vendita .company-lines{font-size:9.6pt;line-height:1.38}
body.v304-fattura-vendita .company-lines b{color:var(--ink)}
body.v304-fattura-vendita .doc-head{border-top:1px solid #9db2ce;padding-top:2.2mm}
body.v304-fattura-vendita .doc-kicker{font-size:7.6pt;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#37465b}
body.v304-fattura-vendita .doc-title{font-size:17pt;font-weight:900;color:var(--accent);margin:.8mm 0 2.5mm}
body.v304-fattura-vendita .doc-meta{font-size:9.8pt;line-height:1.5}
body.v304-fattura-vendita .doc-meta b{display:inline-block;min-width:27mm}
body.v304-fattura-vendita .info-box{border:1px solid var(--line);border-radius:3mm;padding:3.4mm 4mm;margin:3mm 0;background:#fff}
body.v304-fattura-vendita .box-label{font-size:7.4pt;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#26364a;margin-bottom:1.2mm}
body.v304-fattura-vendita .box-main{font-size:12pt;font-weight:900;color:#101b2a;margin-bottom:.8mm}
body.v304-fattura-vendita .box-text{font-size:9.6pt;line-height:1.35}
body.v304-fattura-vendita .summary-strip{display:flex;align-items:stretch;gap:1.5mm;margin:2.2mm 0 3mm}
body.v304-fattura-vendita .summary-card{flex:1 1 0;min-width:0;border:1px solid var(--line);border-radius:2mm;padding:1.5mm 2mm;background:#fff}
body.v304-fattura-vendita .summary-card .label{display:block;font-size:6.3pt;font-weight:900;text-transform:uppercase;letter-spacing:.035em;color:#34475d;margin-bottom:.6mm;white-space:normal}
body.v304-fattura-vendita .summary-card .value{display:block;font-size:10.8pt;line-height:1.05;font-weight:900;color:#0f1f35}
body.v304-fattura-vendita .summary-card.refund{border:1.4px solid var(--accent);background:#f8fbff}
body.v304-fattura-vendita .summary-card.refund .value{color:#173b69}
body.v304-fattura-vendita .invoice-table-wrap{width:100%;overflow:visible;margin-top:2mm}
body.v304-fattura-vendita .invoice-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8.5pt}
body.v304-fattura-vendita .invoice-table th{padding:2mm 1.2mm;border-bottom:1.5px solid #91a6c2;font-size:7.2pt;line-height:1.12;text-transform:uppercase;text-align:left;color:#26364a;vertical-align:bottom;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
body.v304-fattura-vendita .invoice-table td{padding:2.2mm 1.2mm;border-bottom:1px solid #ccd6e3;vertical-align:top;line-height:1.24;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
body.v304-fattura-vendita .invoice-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
body.v304-fattura-vendita .invoice-table .center{text-align:center}
body.v304-fattura-vendita .invoice-table th:nth-child(1){width:27%}
body.v304-fattura-vendita .invoice-table th:nth-child(2){width:9%}
body.v304-fattura-vendita .invoice-table th:nth-child(3){width:8%}
body.v304-fattura-vendita .invoice-table th:nth-child(4){width:4.5%}
body.v304-fattura-vendita .invoice-table th:nth-child(5){width:9%}
body.v304-fattura-vendita .invoice-table th:nth-child(6){width:9%}
body.v304-fattura-vendita .invoice-table th:nth-child(7){width:8.5%}
body.v304-fattura-vendita .invoice-table th:nth-child(8){width:7%}
body.v304-fattura-vendita .invoice-table th:nth-child(9){width:9.5%}
body.v304-fattura-vendita .invoice-table th:nth-child(10){width:8.5%}
body.v304-fattura-vendita .article-code{display:block;font-weight:900;font-size:9pt;color:#10233d;margin-bottom:.5mm}
body.v304-fattura-vendita .article-title{display:block;font-size:8.5pt;line-height:1.2}
body.v304-fattura-vendita .sale-ref{font-weight:800}
body.v304-fattura-vendita .sale-date{display:block;font-size:7.4pt;color:var(--muted);margin-top:.4mm}
body.v304-fattura-vendita .accounting-row{display:grid;grid-template-columns:minmax(0,1fr) 62mm;gap:6mm;align-items:start;margin-top:3.5mm}
body.v304-fattura-vendita .account-note{border:1px solid #d7e0eb;border-left:3px solid #a9bcd4;border-radius:0 2.4mm 2.4mm 0;padding:2.2mm 3mm;color:#344256;background:#fbfcfe;align-self:start}
body.v304-fattura-vendita .account-note-title{display:block;font-size:9pt;line-height:1.18;font-weight:800;color:#18273b;margin:0 0 1mm}
body.v304-fattura-vendita .account-note-text{display:block;font-size:8.7pt;line-height:1.38;font-weight:400;letter-spacing:.002em;word-spacing:normal;font-variant-ligatures:none;font-feature-settings:"liga" 0,"kern" 1}
body.v304-fattura-vendita .totals{border:1px solid var(--line);border-radius:3mm;padding:3mm 4mm;overflow:hidden}
body.v304-fattura-vendita .totals-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4mm;padding:1mm 0;font-size:9.5pt}
body.v304-fattura-vendita .totals-line strong{font-weight:900}
body.v304-fattura-vendita .totals-line.grand{border-top:2px solid var(--accent);margin-top:1.8mm;padding-top:2mm;font-size:10.5pt}
body.v304-fattura-vendita .refund-total{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3mm;align-items:end;border-top:3px solid var(--accent);margin-top:2mm;padding-top:2.5mm;color:var(--accent);font-weight:900;text-transform:uppercase;font-size:12.5pt;line-height:1.08}
body.v304-fattura-vendita .refund-total span:first-child{overflow-wrap:normal;word-break:normal}
body.v304-fattura-vendita .refund-total .amount{text-align:right;font-size:14.5pt;white-space:nowrap;font-variant-numeric:tabular-nums}
body.v304-fattura-vendita .payment-note{margin-top:4mm;border:1px solid var(--line);border-radius:2.2mm;padding:2.2mm 3mm;text-align:center;font-size:8.6pt;font-weight:900;letter-spacing:.02em}
body.v304-fattura-vendita .signature{width:46%;margin:6mm 0 0 auto;font-size:8.6pt}
body.v304-fattura-vendita .signature-title{text-align:left;font-weight:900;margin-bottom:8mm}
body.v304-fattura-vendita .signature-line{border-top:1.6px solid #1e2938;padding-top:1mm;font-size:7.5pt;text-transform:uppercase}
body.v304-fattura-vendita .footer{display:flex;justify-content:space-between;gap:8mm;border-top:1px solid #bcc9d9;margin-top:5mm;padding-top:2mm;font-size:6.9pt;color:#3b4859}
body.v304-fattura-vendita .no-print{display:flex;gap:8px;justify-content:center;margin:10px auto 20px}
body.v304-fattura-vendita .no-print button,
body.v304-fattura-vendita .no-print a{border:0;border-radius:8px;padding:10px 16px;background:#173b69;color:#fff;text-decoration:none;font-weight:800;cursor:pointer}
body.v304-fattura-vendita .no-print a{background:#52657c}
@media (max-width:800px){
body.v304-fattura-vendita .invoice-page{width:calc(100vw - 12px);min-height:0;margin:6px;padding:14px}
body.v304-fattura-vendita .invoice-header{grid-template-columns:1fr;gap:12px}
body.v304-fattura-vendita .summary-strip{flex-wrap:wrap}
body.v304-fattura-vendita .summary-card{flex:1 1 calc(50% - 1.5mm)}
body.v304-fattura-vendita .invoice-table{font-size:8px}
body.v304-fattura-vendita .invoice-table th{font-size:7px}
body.v304-fattura-vendita .invoice-table th,
body.v304-fattura-vendita .invoice-table td{padding:5px 3px}
body.v304-fattura-vendita .accounting-row{grid-template-columns:1fr}
body.v304-fattura-vendita .totals{max-width:none}
body.v304-fattura-vendita .signature{width:70%}
}
@media print{
body.v304-fattura-vendita{page:p_fattura_vendita}
@page p_fattura_vendita{size:A4 portrait;margin:0}
html.v304-fattura-vendita,
body.v304-fattura-vendita{width:210mm;background:#fff!important}
body.v304-fattura-vendita .invoice-page{width:210mm;min-height:297mm;margin:0!important;padding:7.5mm 8.5mm 6.5mm;box-shadow:none!important;font-size:10pt}
body.v304-fattura-vendita .invoice-header{grid-template-columns:1.42fr .9fr;gap:9mm;padding-bottom:3.5mm;margin-bottom:3.5mm}
body.v304-fattura-vendita .company-lockup{grid-template-columns:27mm 1fr;gap:4.5mm}
body.v304-fattura-vendita .company-logo{height:20mm}
body.v304-fattura-vendita .company-logo img{max-width:26mm;max-height:19mm}
body.v304-fattura-vendita .company-name{font-size:14pt}
body.v304-fattura-vendita .company-lines{font-size:9pt}
body.v304-fattura-vendita .doc-title{font-size:15.5pt}
body.v304-fattura-vendita .doc-meta{font-size:9.2pt}
body.v304-fattura-vendita .info-box{padding:3mm 3.5mm;margin:2.5mm 0}
body.v304-fattura-vendita .box-main{font-size:11.2pt}
body.v304-fattura-vendita .box-text{font-size:9pt}
body.v304-fattura-vendita .summary-strip{display:flex!important;flex-wrap:nowrap!important;gap:1.2mm;margin:1.8mm 0 2.8mm}
body.v304-fattura-vendita .summary-card{flex:1 1 0!important;min-width:0!important;padding:1.3mm 1.7mm;min-height:0}
body.v304-fattura-vendita .summary-card .label{font-size:6pt;margin-bottom:.5mm}
body.v304-fattura-vendita .summary-card .value{font-size:10.3pt}
body.v304-fattura-vendita .invoice-table{font-size:8pt}
body.v304-fattura-vendita .invoice-table th{font-size:6.6pt;line-height:1.08;padding:1.5mm .75mm}
body.v304-fattura-vendita .invoice-table td{padding:1.8mm .75mm;line-height:1.2}
body.v304-fattura-vendita .invoice-table .num{font-size:7.55pt}
body.v304-fattura-vendita .article-code{font-size:8.35pt}
body.v304-fattura-vendita .article-title{font-size:7.85pt;line-height:1.18}
body.v304-fattura-vendita .sale-date{font-size:6.9pt}
body.v304-fattura-vendita .accounting-row{grid-template-columns:minmax(0,1fr) 60mm;gap:5mm;margin-top:3mm}
body.v304-fattura-vendita .account-note{padding:2mm 2.6mm}
body.v304-fattura-vendita .account-note-title{font-size:8.7pt;margin-bottom:.8mm}
body.v304-fattura-vendita .account-note-text{font-size:8.35pt;line-height:1.34}
body.v304-fattura-vendita .totals{padding:2.4mm 3.2mm}
body.v304-fattura-vendita .totals-line{font-size:8.8pt;padding:.75mm 0;gap:3mm}
body.v304-fattura-vendita .totals-line.grand{font-size:9.7pt}
body.v304-fattura-vendita .refund-total{font-size:11.2pt;gap:2mm}
body.v304-fattura-vendita .refund-total .amount{font-size:13.4pt}
body.v304-fattura-vendita .payment-note{margin-top:3.5mm;font-size:8pt}
body.v304-fattura-vendita .signature{margin-top:5mm}
body.v304-fattura-vendita .signature-title{margin-bottom:7mm}
body.v304-fattura-vendita .footer{margin-top:4mm;font-size:6.5pt}
body.v304-fattura-vendita .company-name,
body.v304-fattura-vendita .company-lines,
body.v304-fattura-vendita .doc-meta,
body.v304-fattura-vendita .box-main,
body.v304-fattura-vendita .box-text,
body.v304-fattura-vendita .article-code,
body.v304-fattura-vendita .article-title,
body.v304-fattura-vendita .account-note-title,
body.v304-fattura-vendita .account-note-text,
body.v304-fattura-vendita .payment-note,
body.v304-fattura-vendita .footer{overflow-wrap:anywhere!important;word-break:normal!important}
body.v304-fattura-vendita .invoice-table th,
body.v304-fattura-vendita .invoice-table td{overflow-wrap:anywhere!important;word-break:normal!important}
body.v304-fattura-vendita .no-print{display:none!important}
body.v304-fattura-vendita thead{display:table-header-group}
body.v304-fattura-vendita tr{break-inside:avoid;page-break-inside:avoid}
}



body.v304-merce-da-fatturare-stampa *{box-sizing:border-box}
body.v304-merce-da-fatturare-stampa{margin:0;background:#eef2f6;color:#17233c;font-family:Arial,Helvetica,sans-serif}
body.v304-merce-da-fatturare-stampa .sheet{width:min(1120px,calc(100% - 28px));margin:22px auto;background:#fff;border:1px solid #d8e0e8;border-radius:14px;padding:26px 30px;box-shadow:0 12px 30px rgba(20,33,61,.09)}
body.v304-merce-da-fatturare-stampa .head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;border-bottom:3px solid #284d77;padding-bottom:15px}
body.v304-merce-da-fatturare-stampa .brand{display:flex;gap:16px;align-items:center}
body.v304-merce-da-fatturare-stampa .brand img{max-width:135px;max-height:78px;object-fit:contain}
body.v304-merce-da-fatturare-stampa .brand h1{font-size:22px;margin:0 0 6px}
body.v304-merce-da-fatturare-stampa .brand p,
body.v304-merce-da-fatturare-stampa .meta p{margin:3px 0;font-size:12px}
body.v304-merce-da-fatturare-stampa .meta{text-align:right}
body.v304-merce-da-fatturare-stampa .meta h2{margin:0 0 7px;color:#284d77}
body.v304-merce-da-fatturare-stampa .client{margin:16px 0;padding:12px 14px;border:1px solid #d9e2ec;border-radius:10px}
body.v304-merce-da-fatturare-stampa .client b{font-size:16px}
body.v304-merce-da-fatturare-stampa .note{font-size:11px;color:#5d6d82;margin:8px 0 14px}
body.v304-merce-da-fatturare-stampa .table-wrap{overflow-x:auto}
body.v304-merce-da-fatturare-stampa table{width:100%;border-collapse:collapse;font-size:10.5px;min-width:980px}
body.v304-merce-da-fatturare-stampa th,
body.v304-merce-da-fatturare-stampa td{padding:7px 6px;border-bottom:1px solid #dce4ec;text-align:left;vertical-align:top}
body.v304-merce-da-fatturare-stampa th{background:#eef3f8;font-size:9.5px;text-transform:uppercase}
body.v304-merce-da-fatturare-stampa .num{text-align:right;white-space:nowrap}
body.v304-merce-da-fatturare-stampa tfoot th,
body.v304-merce-da-fatturare-stampa tfoot td{border-top:2px solid #284d77;background:#f7f9fb}
body.v304-merce-da-fatturare-stampa .actions{display:flex;gap:8px;margin-top:18px}
body.v304-merce-da-fatturare-stampa .actions a,
body.v304-merce-da-fatturare-stampa .actions button{border:0;border-radius:8px;padding:10px 14px;text-decoration:none;font-weight:700;cursor:pointer;background:#284d77;color:#fff}
body.v304-merce-da-fatturare-stampa .actions a{background:#e8eef5;color:#284d77}
@media print{
body.v304-merce-da-fatturare-stampa{page:p_merce_da_fatturare_stampa}
@page p_merce_da_fatturare_stampa{size:A4 landscape;margin:7mm}
body.v304-merce-da-fatturare-stampa{background:#fff}
body.v304-merce-da-fatturare-stampa .sheet{width:100%;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
body.v304-merce-da-fatturare-stampa .actions{display:none!important}
body.v304-merce-da-fatturare-stampa .brand img{max-width:32mm;max-height:18mm}
body.v304-merce-da-fatturare-stampa .head{gap:8mm}
body.v304-merce-da-fatturare-stampa .meta h2{font-size:14pt}
body.v304-merce-da-fatturare-stampa table{min-width:0;font-size:7pt}
body.v304-merce-da-fatturare-stampa th{font-size:6.5pt}
body.v304-merce-da-fatturare-stampa th,
body.v304-merce-da-fatturare-stampa td{padding:1.5mm 1.2mm}
body.v304-merce-da-fatturare-stampa .client{padding:2.5mm 3mm;margin:3mm 0}
body.v304-merce-da-fatturare-stampa .note{font-size:6.8pt;margin:2mm 0 3mm}
}

body.v304-qr-articolo *{box-sizing:border-box}
body.v304-qr-articolo{--page-w:57mm;--page-h:32mm;--label-w:53mm;--label-h:28mm;--top-h:16.8mm;--qr:14.2mm;--pad:1.0mm;--gap:1.0mm;--barcode-h:5.1mm}
html.v304-qr-articolo,
body.v304-qr-articolo{margin:0;padding:0;background:#eee;font-family:Arial,sans-serif;color:#111}
body.v304-qr-articolo{min-height:100vh}
body.v304-qr-articolo .toolbar{background:#333;color:#fff;border-bottom:3px solid #ff8d28;padding:10px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body.v304-qr-articolo .toolbar strong{color:#ffd18c;width:100%;text-align:center;font-size:20px}
body.v304-qr-articolo .toolbar select,
body.v304-qr-articolo .toolbar button,
body.v304-qr-articolo .toolbar a,
body.v304-qr-articolo .toolbar label{min-height:40px;border-radius:8px;border:1px solid #777;padding:8px 12px;font-weight:900;font-size:15px}
body.v304-qr-articolo .toolbar label{display:flex;align-items:center;gap:8px;background:#fff;color:#111}
body.v304-qr-articolo .toolbar label input[type="checkbox"]{width:18px;height:18px}
body.v304-qr-articolo .toolbar button,
body.v304-qr-articolo .toolbar a{background:#ff790c;color:#fff;text-align:center;text-decoration:none;cursor:pointer}
body.v304-qr-articolo .toolbar select{background:#fff;color:#111}
body.v304-qr-articolo .hint{font-size:12px;line-height:1.35;color:#eee;width:100%}
body.v304-qr-articolo .sheet{padding:8mm;display:flex;justify-content:center;flex-wrap:wrap;gap:3mm}
body.v304-qr-articolo .label{width:var(--label-w);height:var(--label-h);background:#fff;border:1px dashed #999;padding:var(--pad);display:grid;grid-template-rows:var(--top-h) 1fr;gap:.55mm;overflow:hidden}
body.v304-qr-articolo .top{display:grid;grid-template-columns:var(--qr) 1fr;gap:var(--gap);min-height:0}
body.v304-qr-articolo .qrbox{display:flex;align-items:flex-start;justify-content:center}
body.v304-qr-articolo .qrbox img{width:var(--qr);height:var(--qr);display:block}
body.v304-qr-articolo .info{min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start}
body.v304-qr-articolo .code{font-size:7.2pt;font-weight:900;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#111;max-width:100%;flex:0 0 auto}
body.v304-qr-articolo .title{font-size:6.1pt;font-weight:800;line-height:1.08;max-height:4.9mm;overflow:hidden;margin:.20mm 0 .15mm;width:100%;overflow-wrap:break-word;word-break:normal;flex:0 0 auto}
body.v304-qr-articolo .price,
body.v304-qr-articolo .price *{font-weight:950;line-height:1;color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;filter:none!important;text-shadow:none!important}
body.v304-qr-articolo .price{font-size:15pt;white-space:nowrap;max-width:100%;flex:0 0 auto}
body.v304-qr-articolo .price small{font-size:.72em}
body.v304-qr-articolo .article-meta{font-size:5.2pt;line-height:1;font-weight:900;margin-top:.15mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex:0 0 auto}
body.v304-qr-articolo .label-date{font-size:5.2pt;line-height:1;font-weight:900;color:#111;margin-top:.20mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex:0 0 auto}
body.v304-qr-articolo .barcode-wrap{min-height:0}
body.v304-qr-articolo .barcode-print{background:#fff;border:.28mm solid #222;padding:.55mm .85mm .35mm;border-radius:1mm;overflow:hidden}
body.v304-qr-articolo .barcode-print svg{width:100%;height:var(--barcode-h);display:block;shape-rendering:crispEdges}
body.v304-qr-articolo .barcode-code{font-size:6.2pt;font-weight:900;text-align:center;letter-spacing:.05mm;margin-top:.15mm;color:#111;line-height:1}
body.v304-qr-articolo.hide-date .label-date{display:none}
body.v304-qr-articolo.f57x32{--page-w:57mm;--page-h:32mm;--label-w:53mm;--label-h:28mm;--top-h:16.8mm;--qr:14.2mm;--pad:1.0mm;--gap:1.0mm;--barcode-h:5.1mm}
body.v304-qr-articolo.f62x29{--page-w:62mm;--page-h:29mm;--label-w:58mm;--label-h:25mm;--top-h:14.7mm;--qr:13.1mm;--pad:1.0mm;--gap:1.0mm;--barcode-h:4.8mm}
body.v304-qr-articolo.f62x40{--page-w:62mm;--page-h:40mm;--label-w:58mm;--label-h:36mm;--top-h:21.2mm;--qr:18.5mm;--pad:1.4mm;--gap:1.4mm;--barcode-h:6.5mm}
body.v304-qr-articolo.f50x30{--page-w:50mm;--page-h:30mm;--label-w:46mm;--label-h:26mm;--top-h:15mm;--qr:12.5mm;--pad:0.9mm;--gap:.9mm;--barcode-h:4.6mm}
body.v304-qr-articolo.f40x30{--page-w:40mm;--page-h:30mm;--label-w:36mm;--label-h:26mm;--top-h:14.6mm;--qr:11.2mm;--pad:.85mm;--gap:.8mm;--barcode-h:4.4mm}
body.v304-qr-articolo.f58x40{--page-w:58mm;--page-h:40mm;--label-w:54mm;--label-h:36mm;--top-h:21.2mm;--qr:17.8mm;--pad:1.4mm;--gap:1.4mm;--barcode-h:6.5mm}
body.v304-qr-articolo.f63x38{--page-w:63mm;--page-h:38mm;--label-w:59mm;--label-h:34mm;--top-h:20mm;--qr:17.5mm;--pad:1.3mm;--gap:1.3mm;--barcode-h:6.2mm}
body.v304-qr-articolo.f40x30 .code,
body.v304-qr-articolo.f50x30 .code,
body.v304-qr-articolo.f62x29 .code{font-size:6.8pt}
body.v304-qr-articolo.f40x30 .title,
body.v304-qr-articolo.f50x30 .title,
body.v304-qr-articolo.f62x29 .title{font-size:5.6pt;line-height:1.06;max-height:4.5mm}
body.v304-qr-articolo.f40x30 .price,
body.v304-qr-articolo.f50x30 .price,
body.v304-qr-articolo.f62x29 .price{font-size:10.5pt}
body.v304-qr-articolo.f40x30 .label-date,
body.v304-qr-articolo.f50x30 .label-date,
body.v304-qr-articolo.f62x29 .label-date{font-size:4.9pt}
@media (max-width:700px){
body.v304-qr-articolo .toolbar strong,
body.v304-qr-articolo .toolbar select,
body.v304-qr-articolo .toolbar button,
body.v304-qr-articolo .toolbar a,
body.v304-qr-articolo .toolbar label{width:100%;text-align:center}
body.v304-qr-articolo .sheet{padding:8px;justify-content:center}
}
@media print{
html.v304-qr-articolo,
body.v304-qr-articolo{margin:0!important;padding:0!important;background:#fff!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body.v304-qr-articolo .toolbar{display:none!important}
body.v304-qr-articolo .sheet{padding:0!important;margin:0!important;display:block!important;gap:0!important;width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.v304-qr-articolo .label{border:0!important;margin:1.6mm auto 0!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important;break-before:auto!important;page-break-before:auto!important;break-after:auto!important;page-break-after:auto!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
body.v304-qr-articolo .label + .label{break-before:page!important;page-break-before:always!important}
body.v304-qr-articolo .sheet > .label:only-child{margin-top:1.6mm!important}
body.v304-qr-articolo{page:p_qr_articolo}
@page p_qr_articolo{margin:0}
}

body.v304-qr-cliente *{box-sizing:border-box}
html.v304-qr-cliente,
body.v304-qr-cliente{margin:0;background:#eee;font-family:Arial,sans-serif;color:#111}
body.v304-qr-cliente .toolbar{padding:12px;background:#333;color:#fff;border-bottom:3px solid #ff790c;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
body.v304-qr-cliente .toolbar strong{font-size:18px}
body.v304-qr-cliente .toolbar button,
body.v304-qr-cliente .toolbar a{border:0;border-radius:8px;padding:10px 15px;background:#ff790c;color:#fff;font-weight:900;text-decoration:none;cursor:pointer}
body.v304-qr-cliente .sheet{padding:18px;display:flex;justify-content:center}
body.v304-qr-cliente .label{width:62mm;height:40mm;background:#fff;padding:2mm;border:1px dashed #999;display:grid;grid-template-columns:21mm 1fr;grid-template-rows:1fr auto;gap:1.5mm;overflow:hidden}
body.v304-qr-cliente .qr img{width:20mm;height:20mm;display:block}
body.v304-qr-cliente .info{min-width:0}
body.v304-qr-cliente .kind{font-size:7pt;text-transform:uppercase;font-weight:900;color:#555}
body.v304-qr-cliente .code{font-size:14pt;font-weight:950;line-height:1.05;margin:1.2mm 0}
body.v304-qr-cliente .name{font-size:8.5pt;font-weight:800;line-height:1.12;max-height:10mm;overflow:hidden}
body.v304-qr-cliente .barcode{grid-column:1/-1;border:.3mm solid #222;border-radius:1mm;padding:.5mm .8mm .25mm}
body.v304-qr-cliente .barcode svg{width:100%;height:8mm;display:block}
body.v304-qr-cliente .barcode-text{text-align:center;font-size:7pt;font-weight:900;letter-spacing:.2mm}
body.v304-qr-cliente .hint{font-size:12px;color:#eee;width:100%}
@media print{
html.v304-qr-cliente,
body.v304-qr-cliente{width:62mm;height:40mm;background:#fff}
body.v304-qr-cliente .toolbar{display:none}
body.v304-qr-cliente .sheet{padding:0;width:62mm;height:40mm;align-items:center}
body.v304-qr-cliente .label{border:0}
body.v304-qr-cliente{page:p_qr_cliente}
@page p_qr_cliente{size:62mm 40mm;margin:0}
}

body.v304-stampa-mandato *{box-sizing:border-box}
body.v304-stampa-mandato{margin:0;background:#eee;color:#111;font-family:Arial,Helvetica,sans-serif}
body.v304-stampa-mandato .page{width:210mm;min-height:297mm;margin:0 auto 12px;background:#fff;padding:12mm 14mm;box-shadow:0 2px 14px rgba(0,0,0,.12);position:relative}
body.v304-stampa-mandato .header{display:grid;grid-template-columns:58mm 1fr;gap:16mm;align-items:start;border-bottom:2px solid #333;padding-bottom:8mm;margin-bottom:8mm}
body.v304-stampa-mandato .logo-box{height:34mm;display:flex;align-items:flex-start;justify-content:center}
body.v304-stampa-mandato .logo-box img{max-width:54mm;max-height:30mm;object-fit:contain}
body.v304-stampa-mandato .logo-fallback{font-size:24px;font-weight:900;border:2px solid #333;padding:10mm 6mm;text-align:center}
body.v304-stampa-mandato .company{font-size:11pt;line-height:1.32}
body.v304-stampa-mandato .company b{font-size:12pt}
body.v304-stampa-mandato .company-grid{display:grid;grid-template-columns:1fr 1fr;gap:1mm 12mm;margin-top:3mm}
body.v304-stampa-mandato .title{text-align:center;text-transform:uppercase;font-weight:900;font-size:15pt;margin:4mm 0 7mm}
body.v304-stampa-mandato .title span{text-transform:none}
body.v304-stampa-mandato .rif{display:grid;grid-template-columns:25mm 1fr;gap:3mm 8mm;font-size:10.5pt;margin:5mm 0}
body.v304-stampa-mandato .section-center{text-align:center;font-weight:800;margin:7mm 0 5mm;font-size:10.5pt}
body.v304-stampa-mandato .line-grid{display:grid;grid-template-columns:30mm 1fr 22mm 1fr;gap:2mm 5mm;align-items:end;font-size:10.5pt;margin-bottom:2.3mm}
body.v304-stampa-mandato .line-grid .label{color:#222}
body.v304-stampa-mandato .line{border-bottom:1px solid #777;min-height:6mm;padding:0 2mm 1mm;font-weight:700}
body.v304-stampa-mandato .line.wide{grid-column:span 3}
body.v304-stampa-mandato .text{font-size:7.15pt;line-height:1.12;text-align:justify;margin-top:5mm}
body.v304-stampa-mandato .text h3{text-align:center;margin:2.2mm 0 1.5mm;font-size:9.4pt}
body.v304-stampa-mandato .text ol{padding-left:5.2mm;margin:1.5mm 0}
body.v304-stampa-mandato .text li{margin:0 0 .7mm}
body.v304-stampa-mandato .text p{margin:1.2mm 0}
body.v304-stampa-mandato .signatures{margin-top:8mm;font-size:9pt}
body.v304-stampa-mandato .sign-line{display:inline-flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #333;width:58mm;height:18mm;vertical-align:bottom}
body.v304-stampa-mandato .sign-line img{display:block;max-width:55mm;max-height:17mm;object-fit:contain}
body.v304-stampa-mandato .sign-meta{font-size:7.5pt;color:#444;margin-top:1mm}
body.v304-stampa-mandato .clauses{font-size:8pt;line-height:1.25;margin-top:6mm}
body.v304-stampa-mandato .bottom-date{margin-top:10mm;font-size:10pt}
body.v304-stampa-mandato .footer{position:absolute;right:10mm;bottom:7mm;font-size:8pt;color:#444}
body.v304-stampa-mandato .items table{width:100%;border-collapse:collapse;margin-top:5mm;table-layout:fixed}
body.v304-stampa-mandato .items th,
body.v304-stampa-mandato .items td{border:1px solid #777;padding:2.1mm 1.8mm;font-size:8.2pt;vertical-align:top;word-wrap:break-word}
body.v304-stampa-mandato .items th{background:#f2f2f2;line-height:1.15}
body.v304-stampa-mandato .items td strong{font-size:8.7pt}
body.v304-stampa-mandato .items .col-code{width:16%}
body.v304-stampa-mandato .items .col-desc{width:18%}
body.v304-stampa-mandato .items .col-qta{width:5%}
body.v304-stampa-mandato .items .col-price{width:9%}
body.v304-stampa-mandato .items .col-price-narrow{width:9%}
body.v304-stampa-mandato .items .col-value{width:10%}
body.v304-stampa-mandato .items .col-client{width:11%}
body.v304-stampa-mandato .items .col-date{width:13%}
body.v304-stampa-mandato .items .col-status{width:9%}
body.v304-stampa-mandato .items td:nth-child(1),
body.v304-stampa-mandato .items td:nth-child(8){overflow-wrap:normal;word-break:normal}
body.v304-stampa-mandato .items td:nth-child(8){white-space:nowrap}
body.v304-stampa-mandato .items .totals-row td{font-weight:900;background:#fafafa}
body.v304-stampa-mandato .items .totals-label{text-align:right}
body.v304-stampa-mandato .items .summary-top{margin-top:4mm;text-align:right;font-size:8.7pt}
body.v304-stampa-mandato .items .summary-grid{width:45%;margin-left:auto;margin-top:2mm;border-top:1px solid #333;padding-top:2mm}
body.v304-stampa-mandato .items .summary-grid .row{display:flex;justify-content:space-between;gap:12px;padding:.8mm 0;font-size:8.8pt}
body.v304-stampa-mandato .items .summary-grid .row strong{font-size:11pt}
body.v304-stampa-mandato .items .summary-grid .row.final{margin-top:1mm;border-top:1px solid #333;padding-top:1.4mm;font-weight:900}
body.v304-stampa-mandato .no-print{position:fixed;right:16px;bottom:16px;background:#155e63;color:#fff;border:0;border-radius:8px;padding:12px 18px;font-weight:900}
@media print{
body.v304-stampa-mandato{page:p_stampa_mandato}
@page p_stampa_mandato{size:A4 portrait;margin:0}
html.v304-stampa-mandato,
body.v304-stampa-mandato{width:210mm;margin:0!important;padding:0!important;background:#fff!important}
body.v304-stampa-mandato .page{width:210mm!important;
    margin:0!important;
    box-shadow:none!important;
    background:#fff!important;
    position:relative;}
body.v304-stampa-mandato .contract-page{height:297mm!important;
    min-height:297mm!important;
    max-height:297mm!important;
    padding:4.2mm 5.5mm 4mm!important;
    overflow:hidden!important;
    break-after:page!important;
    page-break-after:always!important;}
body.v304-stampa-mandato .contract-page .header{grid-template-columns:30mm 1fr;
    gap:4mm;
    min-height:14mm;
    padding-bottom:1.2mm;
    margin-bottom:1.2mm;
    border-bottom:1px solid #333;}
body.v304-stampa-mandato .contract-page .logo-box{height:13mm;align-items:center;justify-content:flex-start}
body.v304-stampa-mandato .contract-page .logo-box img{max-width:29mm;max-height:12.5mm}
body.v304-stampa-mandato .contract-page .logo-fallback{font-size:10pt;padding:2mm 3mm;border-width:1px}
body.v304-stampa-mandato .contract-page .company{font-size:7.2pt;line-height:1.08}
body.v304-stampa-mandato .contract-page .company b{font-size:8.3pt}
body.v304-stampa-mandato .contract-page .company-grid{grid-template-columns:1fr 1fr 1fr;gap:0 3mm;margin-top:.4mm}
body.v304-stampa-mandato .contract-page .title{font-size:11.4pt;margin:1.6mm 0 1.7mm;line-height:1}
body.v304-stampa-mandato .contract-page .rif{grid-template-columns:8mm 1fr 8mm 1fr;
    gap:.5mm 2mm;
    font-size:7.8pt;
    margin:.9mm 0;
    align-items:center;}
body.v304-stampa-mandato .contract-page .section-center{margin:1.3mm 0 .9mm;font-size:8.4pt;line-height:1}
body.v304-stampa-mandato .contract-page .line-grid{grid-template-columns:16mm 1fr 17mm 1fr;
    gap:.55mm 2mm;
    font-size:7.55pt;
    margin-bottom:.8mm;
    line-height:1;}
body.v304-stampa-mandato .contract-page .line{min-height:3.8mm;padding:0 .8mm .35mm;line-height:1.08}
body.v304-stampa-mandato .contract-page .text{font-size:6.72pt;line-height:1.095;margin-top:1.4mm;text-align:justify}
body.v304-stampa-mandato .contract-page .text h3{font-size:8.2pt;margin:.7mm 0 .55mm;line-height:1}
body.v304-stampa-mandato .contract-page .text ol{padding-left:4.8mm;margin:.7mm 0}
body.v304-stampa-mandato .contract-page .text li{margin:0 0 .28mm;padding-left:.25mm}
body.v304-stampa-mandato .contract-page .text p{margin:.45mm 0}
body.v304-stampa-mandato .contract-page .signatures{margin-top:1.3mm;font-size:7.3pt;line-height:1.05}
body.v304-stampa-mandato .contract-page .signatures p{margin:.35mm 0}
body.v304-stampa-mandato .contract-page .sign-line{width:58mm;height:9mm}
body.v304-stampa-mandato .contract-page .sign-line img{max-width:55mm;max-height:8.5mm}
body.v304-stampa-mandato .contract-page .sign-meta{font-size:5.3pt;margin-top:0}
body.v304-stampa-mandato .contract-page .clauses{font-size:6.45pt;line-height:1.08;margin-top:1.1mm}
body.v304-stampa-mandato .contract-page .clauses p{margin:.35mm 0}
body.v304-stampa-mandato .contract-page .bottom-date{margin-top:1.2mm;font-size:7pt}
body.v304-stampa-mandato .contract-page .footer{right:5.5mm;bottom:2.5mm;font-size:5.5pt}
body.v304-stampa-mandato .items{min-height:297mm!important;
    padding:7mm 8mm!important;
    break-before:page!important;
    page-break-before:always!important;
    break-after:auto!important;
    page-break-after:auto!important;}
body.v304-stampa-mandato .items .header{grid-template-columns:34mm 1fr;gap:5mm;padding-bottom:2mm;margin-bottom:3mm!important}
body.v304-stampa-mandato .items .logo-box{height:18mm;align-items:center}
body.v304-stampa-mandato .items .logo-box img{max-width:33mm;max-height:17mm}
body.v304-stampa-mandato .items .company{font-size:8pt;line-height:1.15}
body.v304-stampa-mandato .items .title{font-size:12pt;margin:2mm 0 3mm}
body.v304-stampa-mandato .items table{margin-top:2mm}
body.v304-stampa-mandato .items th,
body.v304-stampa-mandato .items td{padding:1.5mm 1.3mm;font-size:7pt}
body.v304-stampa-mandato .items .summary-top{font-size:7.4pt;margin-top:2mm}
body.v304-stampa-mandato .items .summary-grid{width:46%;margin-top:1.6mm;padding-top:1.6mm}
body.v304-stampa-mandato .items .summary-grid .row{font-size:7.4pt;padding:.6mm 0}
body.v304-stampa-mandato .items .summary-grid .row strong{font-size:9.3pt}
body.v304-stampa-mandato .items tr{break-inside:avoid;page-break-inside:avoid}
body.v304-stampa-mandato .items .signatures{font-size:7.5pt;margin-top:4mm}
body.v304-stampa-mandato .items .sign-line{height:10mm}
body.v304-stampa-mandato .items .footer{right:8mm;bottom:5mm;font-size:6pt}
body.v304-stampa-mandato .no-print{display:none!important}
}


body.ff-body {
    --ff-bg: #f5f7fb;
    --ff-card: #ffffff;
    --ff-text: #1b2638;
    --ff-muted: #667287;
    --ff-primary: #2d4264;
    --ff-primary-dark: #17243b;
    --ff-border: #d8e0eb;
    --ff-success: #347d79;
    --ff-danger: #a43a51;
    --ff-shadow: 0 10px 28px rgba(23, 36, 59, .10);
}

body.ff-body * { box-sizing: border-box; }
html.ff-root { font-size: 18px; }
body.ff-body { margin: 0; }
body.ff-body button, body.ff-body input { font: inherit; }
body.ff-body a { color: inherit; }

.ff-body {
    min-height: 100vh;
    background: var(--ff-bg);
    color: var(--ff-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

.ff-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 74px;
    padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #17243b 0%, #2d4264 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.ff-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 900;
}

.ff-brand img {
    width: 48px;
    height: 48px;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
}
.ff-brand img.ff-shop-logo { width: 38px; height: 38px; }

.ff-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    font-weight: 700;
}
.ff-user a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 10px;
    text-decoration: none;
}

.ff-main {
    width: min(780px, 100%);
    margin: 0 auto;
    padding: 22px 16px calc(36px + env(safe-area-inset-bottom));
}

.ff-flash {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 2px solid #d38316;
    border-radius: 14px;
    background: #fff4d7;
    color: #4b2a00;
    font-weight: 850;
    box-shadow: var(--ff-shadow);
}

.ff-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 18px;
}
.ff-hero h1, .ff-section-title h2 { margin: 0; line-height: 1.12; }
.ff-hero p, .ff-section-title p { margin: 6px 0 0; color: var(--ff-muted); }
.ff-article-hero { align-items: flex-start; }
.ff-code {
    margin: 0 0 4px !important;
    color: var(--ff-primary-dark) !important;
    font-size: .95rem;
    font-weight: 950;
    letter-spacing: .04em;
}

.ff-step {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ff-primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 950;
    box-shadow: 0 5px 0 var(--ff-primary-dark);
}

.ff-card {
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid var(--ff-border);
    border-radius: 18px;
    background: var(--ff-card);
    box-shadow: var(--ff-shadow);
}
.ff-card h2 { margin: 0 0 12px; line-height: 1.2; }
.ff-card p { margin-top: 8px; }

.ff-button {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.15;
}
.ff-button:focus-visible, input:focus-visible, .ff-file-button:focus-within {
    outline: 4px solid #49638b;
    outline-offset: 3px;
}
.ff-button:disabled { opacity: .5; cursor: not-allowed; }
.ff-button-primary {
    color: #fff;
    background: linear-gradient(180deg, #2d4264 0%, #21324f 100%);
    border-color: #17243b;
    box-shadow: 0 5px 0 #111c30;
}
.ff-button-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #111c30; }
.ff-button-secondary {
    color: #233451;
    background: #fff;
    border-color: #d5dde8;
}
.ff-button-danger {
    color: #fff;
    background: var(--ff-danger);
    border-color: #731010;
}
.ff-button-camera { min-height: 76px; font-size: 1.25rem; }

.ff-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--ff-muted);
    font-weight: 800;
}
.ff-divider::before, .ff-divider::after { content: ""; height: 1px; flex: 1; background: var(--ff-border); }

.ff-code-form label, .ff-login-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}
.ff-code-form input, .ff-login-card input {
    width: 100%;
    min-height: 60px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 2px solid #777;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 1.08rem;
}
.ff-help { margin-bottom: 0; color: var(--ff-muted); font-size: .9rem; font-weight: 650; }
.ff-text-link { color: #2d4264; font-weight: 900; }

.ff-camera-box {
    position: relative;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    color: #fff;
}
.ff-camera-box video {
    width: 100%;
    min-height: 300px;
    max-height: 58vh;
    display: block;
    object-fit: cover;
    background: #111;
}
.ff-camera-frame {
    position: absolute;
    top: 38%;
    left: 50%;
    width: min(82%, 460px);
    height: 150px;
    transform: translate(-50%, -50%);
    border: 5px solid #49638b;
    border-radius: 20px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.20);
    pointer-events: none;
}
.ff-camera-status { padding: 12px 14px; margin: 0 !important; text-align: center; font-weight: 850; color: #fff !important; }
.ff-camera-box .ff-button { margin: 0 12px 14px; width: calc(100% - 24px); }

.ff-big-steps { margin: 0 0 18px; padding-left: 1.5rem; }
.ff-big-steps li { margin: 12px 0; }

.ff-back-row { margin: 0 0 18px; }
.ff-back-row .ff-button { width: auto; }

.ff-status-card { display: grid; gap: 15px; }
.ff-status-row { display: flex; align-items: center; gap: 14px; }
.ff-status-row b { display: block; font-size: 1.08rem; }
.ff-status-row small { display: block; margin-top: 3px; color: var(--ff-muted); }
.ff-status-dot { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px currentColor; }
.ff-status-dot.is-on { color: var(--ff-success); background: var(--ff-success); }
.ff-status-dot.is-off { color: #777; background: #777; }

.ff-blocked-card { border-color: #c63d3d; background: #fff0f0; }
.ff-warning { padding: 12px 14px; border-radius: 10px; background: #fff0d2; color: #5d3300; font-weight: 800; }

.ff-section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ff-upload-form, .ff-publication-form { display: grid; gap: 14px; }

.ff-file-button {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 18px;
    border: 3px dashed #49638b;
    border-radius: 14px;
    background: #eaf0f8;
    color: #233451;
    cursor: pointer;
    text-align: center;
    font-size: 1.12rem;
    font-weight: 950;
}
.ff-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ff-file-button-small { min-height: 54px; border-width: 2px; font-size: .95rem; }

.ff-photo-preview {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #eef8ef;
    color: var(--ff-success);
}
.ff-photo-preview img { width: min(100%, 360px); max-height: 300px; object-fit: contain; border-radius: 12px; }

.ff-check-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid var(--ff-border);
    border-radius: 12px;
    background: #fff;
    font-weight: 850;
}
.ff-check-row input { width: 28px; height: 28px; flex: 0 0 28px; accent-color: var(--ff-primary); }
.ff-check-row-large { font-size: 1.08rem; }
.ff-check-row.is-disabled { opacity: .6; background: #eee; }

.ff-empty-photo { min-height: 170px; display: grid; place-items: center; align-content: center; color: var(--ff-muted); text-align: center; }
.ff-empty-photo span { font-size: 3rem; }

.ff-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ff-photo-card { overflow: hidden; border: 2px solid var(--ff-border); border-radius: 16px; background: #f8f8f8; }
.ff-photo-card.is-main { border-color: var(--ff-success); box-shadow: 0 0 0 3px rgba(24,117,60,.15); }
.ff-photo-image { position: relative; aspect-ratio: 4 / 3; background: #e7e7e7; }
.ff-photo-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ff-photo-image span { position: absolute; left: 8px; bottom: 8px; padding: 6px 9px; border-radius: 999px; background: var(--ff-success); color: #fff; font-size: .8rem; font-weight: 900; }
.ff-photo-actions { display: grid; gap: 9px; padding: 12px; }
.ff-photo-actions .ff-button { min-height: 50px; padding: 10px; font-size: .9rem; }

.ff-login-body { display: grid; place-items: center; padding: 20px; }
.ff-login-wrap { width: min(480px, 100%); }
.ff-login-card { padding: 24px; border: 1px solid var(--ff-border); border-radius: 20px; background: #fff; box-shadow: var(--ff-shadow); }
.ff-login-card h1 { margin: 10px 0 4px; text-align: center; }
.ff-login-card > p { margin: 0 0 20px; text-align: center; color: var(--ff-muted); }
.ff-login-card small { display: block; margin-top: 16px; color: var(--ff-muted); text-align: center; }
.ff-login-logos { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ff-login-logos img { width: 82px; height: 82px; object-fit: contain; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--ff-border); }

@media (max-width: 640px) {
    html { font-size: 17px; }
    .ff-main { padding-left: 12px; padding-right: 12px; }
    .ff-card { padding: 16px; border-radius: 15px; }
    .ff-user span { display: none; }
    .ff-brand span { font-size: 1.08rem; }
    .ff-brand img { width: 42px; height: 42px; }
    .ff-brand img.ff-shop-logo { display: none; }
    .ff-photo-grid { grid-template-columns: 1fr; }
    .ff-back-row .ff-button { width: 100%; }
    .ff-camera-box video { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}



.ff-permission-info {
    margin: 16px 0 0;
    padding: 13px 15px;
    border: 1px solid #b8b1a6;
    border-radius: 12px;
    background: #f7f5f0;
    color: #3c3a36;
    font-size: .9rem;
    font-weight: 700;
}
.ff-permission-info[data-state="granted"] { border-color: #63a97a; background: #edf8f0; color: #125b2e; }
.ff-permission-info[data-state="denied"] { border-color: #d16a6a; background: #fff0f0; color: #7d1717; }
.ff-complete-card {
    border: 3px solid var(--ff-success);
    background: #eef9f1;
    text-align: center;
}
.ff-complete-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ff-success);
    color: #fff;
    font-size: 2rem;
    font-weight: 950;
}
.ff-complete-card h2 { margin-bottom: 6px; }
.ff-next-article-button { margin-top: 12px; }
.ff-next-sticky {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 45;
    margin-top: 22px;
    padding: 8px;
    border-radius: 17px;
    background: rgba(245, 247, 251, .94);
    box-shadow: 0 4px 24px rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
}
.ff-showcase-tools small { display: block; margin-top: 12px; color: var(--ff-muted); }



.ff-card, .ff-login-card {
    border-color: #d8e0eb;
    box-shadow: 0 12px 28px rgba(23,36,59,.10);
}
.ff-step {
    background: linear-gradient(145deg,#49638b 0%,#30486d 100%);
    box-shadow: 0 5px 0 #17243b;
}
.ff-button-primary:hover {
    background: linear-gradient(180deg,#405a82 0%,#293f60 100%);
}
.ff-button-secondary {
    background: linear-gradient(180deg,#ffffff 0%,#f2f5f9 100%);
    color: #233451;
    border-color: #d5dde8;
    box-shadow: 0 7px 16px rgba(23,36,59,.07);
}
.ff-file-button {
    border-color: #49638b;
    background: #eaf0f8;
    color: #233451;
}
.ff-warning { background: #faece7; color: #8a4939; }
.ff-blocked-card { border-color: #a43a51; background: #f9e8ed; }
.ff-photo-preview, .ff-complete-card { background: #e5f2f0; }
.ff-permission-info { border-color: #d8e0eb; background: #f5f7fb; color: #3b5277; }



.ff-hero h1{font-size:clamp(2.1rem,6vw,3.2rem)}
.ff-hero p{font-size:clamp(1rem,3.6vw,1.2rem)}
.ff-button-camera{min-height:64px;font-size:1.05rem;padding:12px 16px}
.ff-permission-info{font-size:.84rem;line-height:1.45}
.ff-article-hero h1{
    font-size:clamp(1.55rem,5.4vw,2.45rem);
    line-height:1.08;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    max-width:100%;
}
.ff-article-hero p:last-child{font-size:clamp(.95rem,3.8vw,1.15rem)}
.ff-section-title--with-action{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ff-section-title--with-action .ff-section-copy{min-width:0;flex:1 1 240px}
.ff-section-save-top{width:auto;min-width:150px;min-height:52px;align-self:flex-start;flex:0 0 auto}
.ff-upload-form .ff-button-primary.ff-save-bottom{display:none}
@media (max-width:640px){
  .ff-main{padding-top:16px}
  .ff-step{width:48px;height:48px;flex-basis:48px;font-size:1.25rem}
  .ff-hero{gap:14px;margin-bottom:14px}
  .ff-hero h1{font-size:clamp(1.72rem,7.2vw,2.25rem)}
  .ff-hero p{font-size:1rem}
  .ff-button-camera{min-height:58px;font-size:.96rem;padding:10px 14px}
  .ff-permission-info{font-size:.8rem;padding:11px 12px}
  .ff-code{font-size:.9rem}
  .ff-article-hero h1{font-size:clamp(1.35rem,6vw,1.85rem)}
  .ff-section-title--with-action{align-items:stretch}
  .ff-section-title--with-action .ff-section-copy{flex-basis:100%}
  .ff-section-save-top{width:100%;min-height:50px}
}



.ff-back-row-compact{margin:0 0 10px!important;display:flex!important;justify-content:flex-start!important}
.ff-back-row-compact .ff-back-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:42px!important;border:1px solid #d5dde8!important;border-radius:12px!important;background:#fff!important;color:#233451!important;text-decoration:none!important;font-size:26px!important;font-weight:900!important;line-height:1!important;box-shadow:0 6px 16px rgba(23,36,59,.08)!important}
.ff-hero-no-step{display:block!important}
.ff-section-title--no-step{display:block!important}
.ff-guide-card-v244{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;border:1px solid #b9d8cc!important;background:#f2faf6!important}
.ff-guide-card-v244 p{margin:4px 0 0!important;color:#4d5b55!important}
.ff-guide-action-form-v244{margin-top:12px!important}
.ff-guide-actions-v244{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-top:10px!important}
.ff-guide-actions-v244 form{margin:0!important}

.ff-client-identity{margin:0 0 3px!important;font-size:13px!important;line-height:1.25!important;color:#516078!important}
.ff-client-identity span{font-weight:700!important}
.ff-client-identity b{color:#172b49!important}
.ff-section-title--photo-publish{display:flex!important;align-items:flex-start!important;gap:12px!important;margin-bottom:14px!important}
.ff-upload-form-v179{display:flex!important;flex-direction:column!important;gap:12px!important}
.ff-photo-picker-primary{order:1!important;margin:0!important}
.ff-photo-preview{order:2!important}
.ff-photo-flags{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 18px!important;padding:2px 0!important;margin:0!important}
.ff-photo-flags .ff-check-row{display:inline-flex!important;width:auto!important;min-height:0!important;align-items:center!important;gap:8px!important;margin:0!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.ff-photo-flags .ff-check-row input{flex:0 0 auto!important;margin:0!important}
.ff-photo-flags .ff-check-row span{font-weight:700!important}
.ff-save-photo-v179{order:3!important;width:100%!important;margin:0!important}
.ff-existing-photos{margin-top:20px!important;padding-top:18px!important;border-top:1px solid rgba(30,58,95,.16)!important}
.ff-photo-flags-bottom{margin-top:18px!important;padding-top:14px!important;border-top:1px solid rgba(30,58,95,.16)!important}
.ff-photo-flags-warning{margin:8px 0 0!important}
.ff-existing-photos h3{margin:0 0 12px!important;font-size:18px!important}
.ff-empty-photo-inline{margin:0!important}
@media(max-width:700px){
  .ff-guide-card-v244{align-items:flex-start!important;flex-direction:column!important}
  .ff-guide-card-v244 .ff-button{width:100%!important}
  .ff-guide-actions-v244{display:block!important}
  .ff-guide-actions-v244 .ff-button,.ff-guide-actions-v244 form,.ff-guide-actions-v244 button{width:100%!important}
  .ff-guide-actions-v244 form{margin-top:8px!important}
  .ff-photo-flags{display:block!important}
  .ff-photo-flags .ff-check-row{display:flex!important;width:100%!important;padding:5px 0!important}
}



.ff-back-row-compact{margin:0 0 10px!important;display:flex!important;justify-content:flex-start!important}
.ff-back-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:42px!important;border:1px solid #d5dde8!important;border-radius:12px!important;background:#fff!important;color:#233451!important;text-decoration:none!important;font-size:26px!important;font-weight:900!important;line-height:1!important;box-shadow:0 6px 16px rgba(23,36,59,.08)!important}
.ff-hero-no-step{display:block!important}
.ff-usage-list{margin:0 0 18px!important;padding-left:1.25rem!important}
.ff-usage-list li{margin:10px 0!important}

.ff-scan-card{display:flex;flex-direction:column;gap:12px}
.ff-scan-card .ff-button-camera,.ff-scan-card .ff-manual-code-toggle{width:100%;margin:0}
.ff-code-form-collapsible{margin-top:2px;padding-top:12px;border-top:1px solid rgba(30,58,95,.16)}
.ff-code-form-collapsible[hidden]{display:none!important}
.ff-code-form-collapsible .ff-help{margin:10px 0 0}



/* ===== V305: CSS CORE — editor custom + pagina Caparre ===== */
body.mercantico-admin .theme-editor-intro{border-left:5px solid #8a3045;}
body.mercantico-admin .theme-editor-intro h2,
body.mercantico-admin .theme-safe-mode h2{margin-top:0;}
body.mercantico-admin .theme-safe-mode{border:3px solid #b45309;background:#fff7ed;}
body.mercantico-admin .theme-recovery-note{border:1px solid #cbd5e1;}
body.mercantico-admin .theme-code-example{overflow:auto;background:#0f172a;color:#e2e8f0;padding:14px;border-radius:10px;}
body.mercantico-admin .theme-save-actions{position:sticky;bottom:12px;z-index:20;background:rgba(255,255,255,.96);padding:12px;border-radius:14px;box-shadow:0 8px 30px rgba(15,23,42,.16);}
body.mercantico-admin .theme-code-editor-admin{min-height:340px;}

body.mercantico-admin .caparre-page{display:grid;gap:16px;}
body.mercantico-admin .caparre-page>.page-heading-actions,
body.mercantico-admin .caparre-page>.panel{margin:0;}
body.mercantico-admin .caparre-flow-note{padding:12px 14px;border:1px solid #cfe1ef;background:#f6fbff;border-radius:12px;margin:10px 0 18px;}
body.mercantico-admin .caparra-summary{padding:12px 14px;border:1px solid #e5d6b5;background:#fffaf0;border-radius:12px;}
body.mercantico-admin .caparra-summary.is-hidden{display:none;}
body.mercantico-admin .caparra-summary-text{margin-top:5px;}
body.mercantico-admin .caparra-row-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;}
body.mercantico-admin .caparra-row-actions form{margin:0;}
@media(max-width:760px){
  body.mercantico-admin .caparre-page{gap:12px;}
  body.mercantico-admin .caparra-row-actions>*{flex:1 1 100%;}
  body.mercantico-admin .caparra-row-actions .btn{width:100%;text-align:center;}
}

body.mercantico-admin .theme-status-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
body.mercantico-admin .theme-enable-toggle{display:flex;gap:8px;align-items:center;font-weight:800;}

/* ==========================================================================
   V308 — RIPRISTINO STAMPE PRE-UNIFICAZIONE
   Le viste di stampa restano nello stesso admin.css, ma le loro regole storiche
   sono isolate e autoritative. admin-custom.css non viene caricato nei documenti
   stampabili. Nessun nuovo foglio CSS.
   ========================================================================== */
/* V310: i reset delle viste di stampa NON devono toccare SVG e discendenti: i barcode Code128 sono composti da <rect> SVG. */
html.v304-avvisi-stampa, body.v304-avvisi-stampa, body.v304-avvisi-stampa *:not(svg):not(svg *) { all: revert !important; }
body.v304-avvisi-stampa *::before, body.v304-avvisi-stampa *::after { content:none !important; display:none !important; }
html.v304-cliente-accettazione, body.v304-cliente-accettazione, body.v304-cliente-accettazione *:not(svg):not(svg *) { all: revert !important; }
body.v304-cliente-accettazione *::before, body.v304-cliente-accettazione *::after { content:none !important; display:none !important; }
html.v304-cliente-dismissione-stampa, body.v304-cliente-dismissione-stampa, body.v304-cliente-dismissione-stampa *:not(svg):not(svg *) { all: revert !important; }
body.v304-cliente-dismissione-stampa *::before, body.v304-cliente-dismissione-stampa *::after { content:none !important; display:none !important; }
html.v304-cliente-materiale-stampa, body.v304-cliente-materiale-stampa, body.v304-cliente-materiale-stampa *:not(svg):not(svg *) { all: revert !important; }
body.v304-cliente-materiale-stampa *::before, body.v304-cliente-materiale-stampa *::after { content:none !important; display:none !important; }
html.v304-cliente-tesserino, body.v304-cliente-tesserino, body.v304-cliente-tesserino *:not(svg):not(svg *) { all: revert !important; }
body.v304-cliente-tesserino *::before, body.v304-cliente-tesserino *::after { content:none !important; display:none !important; }
html.v304-etichette, body.v304-etichette, body.v304-etichette *:not(svg):not(svg *) { all: revert !important; }
body.v304-etichette *::before, body.v304-etichette *::after { content:none !important; display:none !important; }
html.v304-fattura-vendita, body.v304-fattura-vendita, body.v304-fattura-vendita *:not(svg):not(svg *) { all: revert !important; }
body.v304-fattura-vendita *::before, body.v304-fattura-vendita *::after { content:none !important; display:none !important; }
html.v304-merce-da-fatturare-stampa, body.v304-merce-da-fatturare-stampa, body.v304-merce-da-fatturare-stampa *:not(svg):not(svg *) { all: revert !important; }
body.v304-merce-da-fatturare-stampa *::before, body.v304-merce-da-fatturare-stampa *::after { content:none !important; display:none !important; }
html.v304-qr-articolo, body.v304-qr-articolo, body.v304-qr-articolo *:not(svg):not(svg *) { all: revert !important; }
body.v304-qr-articolo *::before, body.v304-qr-articolo *::after { content:none !important; display:none !important; }
html.v304-qr-cliente, body.v304-qr-cliente, body.v304-qr-cliente *:not(svg):not(svg *) { all: revert !important; }
body.v304-qr-cliente *::before, body.v304-qr-cliente *::after { content:none !important; display:none !important; }
html.v304-stampa-mandato, body.v304-stampa-mandato, body.v304-stampa-mandato *:not(svg):not(svg *) { all: revert !important; }
body.v304-stampa-mandato *::before, body.v304-stampa-mandato *::after { content:none !important; display:none !important; }
html.mercantico-receipt-page, body.mercantico-receipt-page, body.mercantico-receipt-page *:not(svg):not(svg *) { all: revert !important; }
body.mercantico-receipt-page *::before, body.mercantico-receipt-page *::after { content:none !important; display:none !important; }
html.giornale-print, body.giornale-print, body.giornale-print *:not(svg):not(svg *) { all: revert !important; }
body.giornale-print *::before, body.giornale-print *::after { content:none !important; display:none !important; }
/* Le variabili CSS inline (--page-w, --journal-data-top, ecc.) non sono toccate da all:revert. */

/* --- V308 restore v304-avvisi-stampa --- */
body.v304-avvisi-stampa{font-family:Arial,sans-serif!important;color:#111!important;margin:22px!important;font-size:11px!important;}
body.v304-avvisi-stampa h1{font-size:23px!important;margin:0 0 5px!important;}
body.v304-avvisi-stampa h2{font-size:16px!important;margin:22px 0 8px!important;}
body.v304-avvisi-stampa .meta{color:#555!important;margin-bottom:16px!important;}
body.v304-avvisi-stampa .toolbar{margin-bottom:16px!important;}
body.v304-avvisi-stampa .toolbar button{padding:8px 14px!important;}
body.v304-avvisi-stampa table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;}
body.v304-avvisi-stampa th,
body.v304-avvisi-stampa td{border:1px solid #999!important;padding:5px!important;vertical-align:top!important;word-wrap:break-word!important;}
body.v304-avvisi-stampa th{background:#eee!important;text-align:left!important;}
body.v304-avvisi-stampa .note{border:1px solid #999!important;padding:8px!important;margin-top:16px!important;}
body.v304-avvisi-stampa small{color:#555!important;}
body.v304-avvisi-stampa{page:p_avvisi_stampa!important;}
@page p_avvisi_stampa{size:A4 landscape!important;margin:8mm!important;}
@media print{body.v304-avvisi-stampa{margin:0!important;font-size:8.8px!important;}
body.v304-avvisi-stampa .toolbar{display:none!important;}
body.v304-avvisi-stampa h2{break-after:avoid!important;}
body.v304-avvisi-stampa tr{break-inside:avoid!important;}
body.v304-avvisi-stampa .note{break-inside:avoid!important;}}

/* --- V308 restore v304-cliente-accettazione --- */
body.v304-cliente-accettazione{page:p_cliente_accettazione!important;}
@page p_cliente_accettazione{size:A4!important;margin:14mm!important;}
body.v304-cliente-accettazione{font-family:Arial,Helvetica,sans-serif!important;color:#111!important;line-height:1.35!important;font-size:12.5px!important;}
body.v304-cliente-accettazione h1{font-size:22px!important;margin:0 0 6px!important;}
body.v304-cliente-accettazione h2{font-size:15px!important;margin:18px 0 8px!important;border-bottom:1px solid #bbb!important;padding-bottom:4px!important;}
body.v304-cliente-accettazione .top{display:flex!important;justify-content:space-between!important;gap:20px!important;}
body.v304-cliente-accettazione .box{border:1px solid #999!important;border-radius:8px!important;padding:10px!important;margin:10px 0!important;}
body.v304-cliente-accettazione .grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 18px!important;}
body.v304-cliente-accettazione .muted{color:#555!important;}
body.v304-cliente-accettazione .sign{display:grid!important;grid-template-columns:1fr 1fr!important;gap:24px!important;margin-top:34px!important;}
body.v304-cliente-accettazione .line{border-bottom:1px solid #111!important;height:38px!important;}
body.v304-cliente-accettazione .toolbar{position:sticky!important;top:0!important;background:#fff!important;padding:10px!important;border-bottom:1px solid #ddd!important;margin:-14mm -14mm 14px!important;}
body.v304-cliente-accettazione .btn{display:inline-block!important;padding:9px 12px!important;background:#111!important;color:#fff!important;text-decoration:none!important;border-radius:6px!important;border:0!important;cursor:pointer!important;}
@media print{body.v304-cliente-accettazione .toolbar{display:none!important;}
body.v304-cliente-accettazione{font-size:12px!important;}
body.v304-cliente-accettazione .box{break-inside:avoid!important;}}

/* --- V308 restore v304-cliente-dismissione-stampa --- */
body.v304-cliente-dismissione-stampa *{box-sizing:border-box!important;}
body.v304-cliente-dismissione-stampa{margin:0!important;background:#edf0f4!important;font-family:Arial,Helvetica,sans-serif!important;color:#111!important;}
body.v304-cliente-dismissione-stampa .page{width:min(900px,calc(100% - 30px))!important;margin:22px auto!important;background:#fff!important;padding:28px 32px!important;box-shadow:0 10px 30px rgba(0,0,0,.08)!important;}
body.v304-cliente-dismissione-stampa .head{display:grid!important;grid-template-columns:130px 1fr!important;gap:24px!important;align-items:start!important;border-bottom:2px solid #222!important;padding-bottom:14px!important;}
body.v304-cliente-dismissione-stampa .head img{max-width:115px!important;max-height:74px!important;}
body.v304-cliente-dismissione-stampa .company{font-size:11px!important;line-height:1.35!important;}
body.v304-cliente-dismissione-stampa .company b{display:block!important;font-size:14px!important;}
body.v304-cliente-dismissione-stampa .title{text-align:center!important;font-weight:800!important;font-size:18px!important;margin:18px 0 4px!important;text-transform:uppercase!important;}
body.v304-cliente-dismissione-stampa .sub{text-align:center!important;font-size:11px!important;margin-bottom:14px!important;}
body.v304-cliente-dismissione-stampa .info{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-bottom:12px!important;font-size:11px!important;}
body.v304-cliente-dismissione-stampa .info div{border:1px solid #bbb!important;padding:7px!important;}
body.v304-cliente-dismissione-stampa .info b{display:block!important;margin-top:2px!important;}
body.v304-cliente-dismissione-stampa table{width:100%!important;border-collapse:collapse!important;font-size:10px!important;}
body.v304-cliente-dismissione-stampa th,
body.v304-cliente-dismissione-stampa td{border:1px solid #999!important;padding:5px!important;}
body.v304-cliente-dismissione-stampa th{background:#f3f3f3!important;font-size:9px!important;}
body.v304-cliente-dismissione-stampa .num{text-align:right!important;}
body.v304-cliente-dismissione-stampa .center{text-align:center!important;}
body.v304-cliente-dismissione-stampa tfoot td{font-weight:800!important;background:#fafafa!important;border-top:2px solid #222!important;}
body.v304-cliente-dismissione-stampa .declaration{margin-top:17px!important;font-size:10.5px!important;line-height:1.45!important;}
body.v304-cliente-dismissione-stampa .notes{margin-top:10px!important;padding:8px!important;border:1px solid #bbb!important;font-size:10px!important;}
body.v304-cliente-dismissione-stampa .signatures{display:grid!important;grid-template-columns:1fr 1fr!important;gap:55px!important;margin-top:38px!important;font-size:10px!important;}
body.v304-cliente-dismissione-stampa .line{border-bottom:1px solid #222!important;height:24px!important;}
body.v304-cliente-dismissione-stampa .actions{display:flex!important;gap:10px!important;margin-top:25px!important;}
body.v304-cliente-dismissione-stampa .actions button,
body.v304-cliente-dismissione-stampa .actions a{border:0!important;border-radius:7px!important;padding:10px 14px!important;background:#203d64!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;}
body.v304-cliente-dismissione-stampa .actions a{background:#e8eef5!important;color:#203d64!important;}
@media print{body.v304-cliente-dismissione-stampa{page:p_cliente_dismissione_stampa!important;}
@page p_cliente_dismissione_stampa{size:A4 portrait!important;margin:11mm!important;}
body.v304-cliente-dismissione-stampa{background:#fff!important;}
body.v304-cliente-dismissione-stampa .page{width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;}
body.v304-cliente-dismissione-stampa .actions{display:none!important;}
body.v304-cliente-dismissione-stampa .head{grid-template-columns:32mm 1fr!important;gap:7mm!important;}
body.v304-cliente-dismissione-stampa .head img{max-width:29mm!important;max-height:19mm!important;}
body.v304-cliente-dismissione-stampa .company{font-size:7.5pt!important;}
body.v304-cliente-dismissione-stampa .company b{font-size:8.5pt!important;}
body.v304-cliente-dismissione-stampa .title{font-size:11pt!important;margin-top:5mm!important;}
body.v304-cliente-dismissione-stampa .sub,
body.v304-cliente-dismissione-stampa .info{font-size:7.4pt!important;}
body.v304-cliente-dismissione-stampa table{font-size:7pt!important;}
body.v304-cliente-dismissione-stampa th{font-size:6.4pt!important;}
body.v304-cliente-dismissione-stampa th,
body.v304-cliente-dismissione-stampa td{padding:1.5mm 1mm!important;}
body.v304-cliente-dismissione-stampa .declaration{font-size:7.5pt!important;break-inside:avoid!important;}
body.v304-cliente-dismissione-stampa .notes{font-size:7pt!important;}
body.v304-cliente-dismissione-stampa .signatures{font-size:7.5pt!important;margin-top:12mm!important;}}

/* --- V308 restore v304-cliente-materiale-stampa --- */
body.v304-cliente-materiale-stampa *{box-sizing:border-box!important;}
body.v304-cliente-materiale-stampa{margin:0!important;background:#eceff3!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;}
body.v304-cliente-materiale-stampa .page{width:min(980px,calc(100% - 28px))!important;margin:20px auto!important;background:#fff!important;padding:24px 28px!important;box-shadow:0 10px 32px rgba(0,0,0,.09)!important;}
body.v304-cliente-materiale-stampa .head{display:grid!important;grid-template-columns:145px 1fr!important;gap:28px!important;align-items:start!important;border-bottom:2px solid #252525!important;padding-bottom:16px!important;}
body.v304-cliente-materiale-stampa .logo img{max-width:125px!important;max-height:78px!important;object-fit:contain!important;}
body.v304-cliente-materiale-stampa .company{font-size:12px!important;line-height:1.25!important;}
body.v304-cliente-materiale-stampa .company b{display:block!important;font-size:14px!important;margin-bottom:3px!important;}
body.v304-cliente-materiale-stampa .company span{display:block!important;}
body.v304-cliente-materiale-stampa .docmeta{margin-top:4px!important;}
body.v304-cliente-materiale-stampa .title{text-align:center!important;font-size:18px!important;font-weight:800!important;margin:17px 0 14px!important;text-transform:uppercase!important;}
body.v304-cliente-materiale-stampa table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:10px!important;}
body.v304-cliente-materiale-stampa th,
body.v304-cliente-materiale-stampa td{border:1px solid #999!important;padding:5px 4px!important;vertical-align:top!important;}
body.v304-cliente-materiale-stampa th{background:#f4f4f4!important;font-size:9px!important;text-align:center!important;}
body.v304-cliente-materiale-stampa .c-code{width:11%!important;}
body.v304-cliente-materiale-stampa .c-desc{width:20%!important;}
body.v304-cliente-materiale-stampa .c-qta{width:6%!important;text-align:center!important;}
body.v304-cliente-materiale-stampa .c-price{width:10%!important;text-align:right!important;}
body.v304-cliente-materiale-stampa .c-value{width:11%!important;text-align:right!important;}
body.v304-cliente-materiale-stampa .c-client{width:11%!important;text-align:right!important;}
body.v304-cliente-materiale-stampa .c-date{width:9%!important;text-align:center!important;}
body.v304-cliente-materiale-stampa .c-state{width:8%!important;text-align:center!important;}
body.v304-cliente-materiale-stampa .num{text-align:right!important;}
body.v304-cliente-materiale-stampa .center{text-align:center!important;}
body.v304-cliente-materiale-stampa tfoot td{font-weight:800!important;background:#fafafa!important;border-top:2px solid #333!important;}
body.v304-cliente-materiale-stampa .totals{display:flex!important;justify-content:flex-end!important;gap:28px!important;margin:10px 0 0!important;font-size:11px!important;}
body.v304-cliente-materiale-stampa .totals b{font-size:12px!important;}
body.v304-cliente-materiale-stampa .refund-summary{width:330px!important;max-width:100%!important;margin:14px 0 0 auto!important;border-top:2px solid #333!important;padding-top:7px!important;font-size:11px!important;}
body.v304-cliente-materiale-stampa .refund-summary .line{display:flex!important;justify-content:space-between!important;gap:20px!important;padding:2px 0!important;}
body.v304-cliente-materiale-stampa .refund-summary .net{font-weight:800!important;font-size:12px!important;border-top:1px solid #999!important;margin-top:4px!important;padding-top:5px!important;}
body.v304-cliente-materiale-stampa .clause{margin-top:22px!important;font-size:10.5px!important;line-height:1.45!important;}
body.v304-cliente-materiale-stampa .clause-title{font-weight:800!important;margin-bottom:6px!important;}
body.v304-cliente-materiale-stampa .clause-box{border-top:1px solid #333!important;padding-top:8px!important;}
body.v304-cliente-materiale-stampa .sign{margin-top:27px!important;font-size:10px!important;}
body.v304-cliente-materiale-stampa .sign-line{display:inline-block!important;width:190px!important;border-bottom:1px solid #222!important;margin-left:12px!important;}
body.v304-cliente-materiale-stampa .empty{padding:30px!important;text-align:center!important;border:1px dashed #999!important;}
body.v304-cliente-materiale-stampa .filterbar{margin:14px 0 16px!important;padding:12px!important;border:1px solid #ccd3dc!important;border-radius:8px!important;background:#f8fafc!important;}
body.v304-cliente-materiale-stampa .filterbar form{display:flex!important;gap:10px!important;align-items:end!important;flex-wrap:wrap!important;}
body.v304-cliente-materiale-stampa .filterbar label{display:grid!important;gap:4px!important;font-size:11px!important;font-weight:700!important;}
body.v304-cliente-materiale-stampa .filterbar select{min-width:210px!important;padding:8px!important;border:1px solid #aab4c0!important;border-radius:6px!important;background:#fff!important;}
body.v304-cliente-materiale-stampa .state-checks{display:flex!important;gap:6px 12px!important;flex-wrap:wrap!important;align-items:center!important;}
body.v304-cliente-materiale-stampa .state-checks label{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:5px!important;font-weight:600!important;}
body.v304-cliente-materiale-stampa .state-checks input{margin:0!important;}
body.v304-cliente-materiale-stampa .filter-help{font-size:10px!important;color:#596579!important;margin-top:6px!important;}
body.v304-cliente-materiale-stampa .setting-status{flex-basis:100%!important;display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;padding:8px 10px!important;border-radius:7px!important;font-size:10.5px!important;}
body.v304-cliente-materiale-stampa .setting-status.missing{background:#fff4d6!important;border:1px solid #e0b84c!important;}
body.v304-cliente-materiale-stampa .setting-status.ok{background:#eef8ef!important;border:1px solid #9cc7a1!important;}
body.v304-cliente-materiale-stampa .setting-status a{display:inline-block!important;padding:5px 8px!important;border-radius:5px!important;background:#203d64!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;}
body.v304-cliente-materiale-stampa .actions{display:flex!important;gap:10px!important;margin-top:20px!important;}
body.v304-cliente-materiale-stampa .actions button,
body.v304-cliente-materiale-stampa .actions a{border:0!important;border-radius:7px!important;padding:10px 14px!important;background:#203d64!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;cursor:pointer!important;}
body.v304-cliente-materiale-stampa .actions a{background:#e9eef5!important;color:#203d64!important;}
@media print{body.v304-cliente-materiale-stampa{page:p_cliente_materiale_stampa!important;}
@page p_cliente_materiale_stampa{size:A4 portrait!important;margin:11mm!important;}
body.v304-cliente-materiale-stampa{background:#fff!important;}
body.v304-cliente-materiale-stampa .page{width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;}
body.v304-cliente-materiale-stampa .actions,
body.v304-cliente-materiale-stampa .filterbar,
body.v304-cliente-materiale-stampa .setting-status{display:none!important;}
body.v304-cliente-materiale-stampa .head{grid-template-columns:34mm 1fr!important;gap:8mm!important;padding-bottom:4mm!important;}
body.v304-cliente-materiale-stampa .logo img{max-width:31mm!important;max-height:20mm!important;}
body.v304-cliente-materiale-stampa .company{font-size:7.7pt!important;}
body.v304-cliente-materiale-stampa .company b{font-size:8.7pt!important;}
body.v304-cliente-materiale-stampa .title{font-size:11pt!important;margin:5mm 0 3.5mm!important;}
body.v304-cliente-materiale-stampa table{font-size:6.8pt!important;}
body.v304-cliente-materiale-stampa th{font-size:6.2pt!important;}
body.v304-cliente-materiale-stampa th,
body.v304-cliente-materiale-stampa td{padding:1.4mm 1mm!important;}
body.v304-cliente-materiale-stampa .totals{font-size:7.3pt!important;margin-top:2.5mm!important;}
body.v304-cliente-materiale-stampa .clause{font-size:7.5pt!important;margin-top:6mm!important;break-inside:avoid!important;}
body.v304-cliente-materiale-stampa .sign{font-size:7.5pt!important;margin-top:7mm!important;}
body.v304-cliente-materiale-stampa .sign-line{width:52mm!important;}}

/* --- V308 restore v304-cliente-tesserino --- */
body.v304-cliente-tesserino *{box-sizing:border-box!important;}
html.v304-cliente-tesserino,
body.v304-cliente-tesserino{margin:0!important;padding:0!important;font-family:Arial,Helvetica,sans-serif!important;color:#111!important;}
body.v304-cliente-tesserino{background:#e9eef4!important;padding:18px!important;}
body.v304-cliente-tesserino .toolbar{max-width:900px!important;margin:0 auto 14px!important;background:#fff!important;border:1px solid #d7e0eb!important;border-radius:12px!important;padding:14px!important;display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;box-shadow:0 4px 16px rgba(0,0,0,.06)!important;}
body.v304-cliente-tesserino .toolbar .title{font-weight:900!important;margin-right:auto!important;color:#203d64!important;}
body.v304-cliente-tesserino .toolbar a,
body.v304-cliente-tesserino .toolbar button{border-radius:8px!important;padding:10px 14px!important;text-decoration:none!important;font-weight:800!important;cursor:pointer!important;}
body.v304-cliente-tesserino .toolbar .print{border:0!important;background:#203d64!important;color:#fff!important;}
body.v304-cliente-tesserino .toolbar .back{background:#fff!important;color:#203d64!important;border:1px solid #c7d3e2!important;}
body.v304-cliente-tesserino .hint{max-width:900px!important;margin:0 auto 14px!important;color:#53647c!important;font-size:13px!important;}
body.v304-cliente-tesserino .hint b{color:#203d64!important;}
body.v304-cliente-tesserino .wrap{display:flex!important;justify-content:center!important;align-items:flex-start!important;}
body.v304-cliente-tesserino .card{width:var(--label-w)!important;height:var(--label-h)!important;background:#fff!important;padding:var(--safe-pad)!important;box-shadow:0 7px 22px rgba(0,0,0,.17)!important;overflow:hidden!important;}
body.v304-cliente-tesserino .safe{width:100%!important;height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;}
body.v304-cliente-tesserino .head{display:grid!important;grid-template-columns:minmax(0,1fr) var(--logo-w)!important;gap:1mm!important;align-items:start!important;flex:0 0 auto!important;max-height:27%!important;}
body.v304-cliente-tesserino .company{font-size:var(--company-text)!important;line-height:1.05!important;min-width:0!important;overflow:hidden!important;}
body.v304-cliente-tesserino .company strong{display:block!important;font-size:var(--company-name)!important;line-height:1!important;margin-bottom:.3mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.v304-cliente-tesserino .company-details{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.v304-cliente-tesserino .logo{text-align:center!important;height:var(--logo-h)!important;display:flex!important;align-items:center!important;justify-content:center!important;}
body.v304-cliente-tesserino .logo img{max-width:var(--logo-w)!important;max-height:var(--logo-h)!important;object-fit:contain!important;}
body.v304-cliente-tesserino .rule{height:.25mm!important;background:#111!important;margin:.4mm 0!important;flex:0 0 auto!important;}
body.v304-cliente-tesserino .meta{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:.8mm!important;font-size:var(--meta-size)!important;line-height:1!important;margin:0 0 .4mm!important;flex:0 0 auto!important;}
body.v304-cliente-tesserino .meta .code{font-size:var(--code-size)!important;font-weight:900!important;letter-spacing:.04mm!important;}
body.v304-cliente-tesserino .name{font-size:var(--name-size)!important;line-height:1!important;font-weight:900!important;margin:0 0 .3mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:0 0 auto!important;}
body.v304-cliente-tesserino .barcode{width:94%!important;max-width:100%!important;margin:0 auto!important;text-align:center!important;overflow:hidden!important;flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;}
body.v304-cliente-tesserino .barcode svg{width:100%!important;height:var(--barcode-h)!important;max-height:100%!important;display:block!important;shape-rendering:crispEdges!important;}
body.v304-cliente-tesserino .code-bottom{text-align:center!important;font-size:var(--barcode-text)!important;font-weight:900!important;letter-spacing:.28mm!important;line-height:1!important;margin-top:.12mm!important;flex:0 0 auto!important;}
@media (max-width:700px){body.v304-cliente-tesserino{padding:10px!important;}
body.v304-cliente-tesserino .toolbar .title{width:100%!important;margin-right:0!important;}
body.v304-cliente-tesserino .card{transform:scale(1.35)!important;transform-origin:top center!important;margin-top:12mm!important;margin-bottom:20mm!important;}}
@media print{body.v304-cliente-tesserino{page:p_cliente_tesserino!important;}
@page p_cliente_tesserino{margin:0!important;}
html.v304-cliente-tesserino,
body.v304-cliente-tesserino{margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;}
body.v304-cliente-tesserino .toolbar,
body.v304-cliente-tesserino .hint{display:none!important;}
body.v304-cliente-tesserino .wrap{display:block!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important;}
body.v304-cliente-tesserino .card{display:block!important;
    width:var(--label-w)!important;
    height:var(--label-h)!important;
    margin:1.5mm auto!important;
    padding:var(--safe-pad)!important;
    box-shadow:none!important;
    overflow:hidden!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    print-color-adjust:exact!important;
    -webkit-print-color-adjust:exact!important;
    
    transform:none!important;
    transform-origin:initial!important;}}

/* --- V308 restore v304-etichette --- */
body.v304-etichette *{box-sizing:border-box!important;}
body.v304-etichette{--label-w:57mm!important;--label-h:32mm!important;--top-h:18.4mm!important;--qr:15.2mm!important;--pad:1.2mm!important;--gap:1.2mm!important;--font-main:Arial,Helvetica,sans-serif!important;--barcode-h:5.6mm!important;}
html.v304-etichette,
body.v304-etichette{margin:0!important;padding:0!important;background:#eee!important;color:#111!important;font-family:var(--font-main)!important;}
body.v304-etichette .toolbar{position:sticky!important;top:0!important;z-index:10!important;background:#333!important;color:#fff!important;border-bottom:3px solid #ff8d28!important;padding:10px!important;display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;}
body.v304-etichette .toolbar strong{color:#ffd18c!important;margin-right:auto!important;}
body.v304-etichette .toolbar button,
body.v304-etichette .toolbar select,
body.v304-etichette .toolbar a,
body.v304-etichette .toolbar label{min-height:38px!important;border-radius:7px!important;border:1px solid #777!important;padding:7px 10px!important;font-weight:900!important;}
body.v304-etichette .toolbar button,
body.v304-etichette .toolbar a{background:#ff7b0c!important;color:#fff!important;text-decoration:none!important;cursor:pointer!important;}
body.v304-etichette .toolbar select,
body.v304-etichette .toolbar label{background:#fff!important;color:#111!important;}
body.v304-etichette .toolbar label{display:flex!important;align-items:center!important;gap:8px!important;}
body.v304-etichette .toolbar label input{width:18px!important;height:18px!important;}
body.v304-etichette .toolbar .hint{width:100%!important;font-size:12px!important;color:#eee!important;line-height:1.3!important;}
body.v304-etichette .sheet{padding:8mm!important;display:flex!important;flex-wrap:wrap!important;gap:3mm!important;align-items:flex-start!important;}
body.v304-etichette .label{width:var(--label-w)!important;height:var(--label-h)!important;background:#fff!important;border:1px dashed #999!important;padding:var(--pad)!important;display:grid!important;grid-template-rows:var(--top-h) 1fr!important;gap:.7mm!important;overflow:hidden!important;break-inside:avoid!important;page-break-inside:avoid!important;}
body.v304-etichette .top{display:grid!important;grid-template-columns:var(--qr) 1fr!important;gap:var(--gap)!important;min-height:0!important;}
body.v304-etichette .qrbox{min-width:0!important;text-align:center!important;}
body.v304-etichette .qrbox img{display:block!important;width:var(--qr)!important;height:var(--qr)!important;margin:0 auto!important;}
body.v304-etichette .info{min-width:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;}
body.v304-etichette .code{font-weight:900!important;font-size:7.2pt!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:0 0 auto!important;}
body.v304-etichette .title{font-weight:800!important;font-size:6.1pt!important;line-height:1.08!important;margin:.20mm 0 .15mm!important;max-height:4.9mm!important;overflow:hidden!important;overflow-wrap:break-word!important;word-break:normal!important;flex:0 0 auto!important;}
body.v304-etichette .price,
body.v304-etichette .price *{font-weight:950!important;line-height:1!important;color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;filter:none!important;text-shadow:none!important;}
body.v304-etichette .price{font-size:15pt!important;white-space:nowrap!important;flex:0 0 auto!important;}
body.v304-etichette .price small{font-size:.72em!important;}
body.v304-etichette .article-meta{font-size:5.2pt!important;line-height:1!important;font-weight:900!important;margin-top:.15mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;flex:0 0 auto!important;}
body.v304-etichette .label-date{font-size:5.2pt!important;line-height:1!important;font-weight:900!important;color:#111!important;margin-top:.20mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;flex:0 0 auto!important;}
body.v304-etichette .barcodebox{background:#fff!important;max-width:100%!important;overflow:hidden!important;border:.28mm solid #222!important;padding:.55mm .85mm .35mm!important;border-radius:1mm!important;}
body.v304-etichette .barcodebox svg{width:100%!important;height:var(--barcode-h)!important;display:block!important;shape-rendering:crispEdges!important;}
body.v304-etichette .barcode-code{text-align:center!important;font-size:6.6pt!important;font-weight:900!important;line-height:1!important;margin-top:.15mm!important;}
body.v304-etichette.hide-date .label-date{display:none!important;}
body.v304-etichette.label-57x32{--page-w:57mm!important;--page-h:32mm!important;--label-w:53mm!important;--label-h:28mm!important;--top-h:16.8mm!important;--qr:14.2mm!important;--pad:1.0mm!important;--gap:1.0mm!important;--barcode-h:5.1mm!important;}
body.v304-etichette.label-62x29{--page-w:62mm!important;--page-h:29mm!important;--label-w:58mm!important;--label-h:25mm!important;--top-h:14.7mm!important;--qr:13.1mm!important;--pad:1.0mm!important;--gap:1.0mm!important;--barcode-h:4.8mm!important;}
body.v304-etichette.label-62x40{--page-w:62mm!important;--page-h:40mm!important;--label-w:58mm!important;--label-h:36mm!important;--top-h:21.2mm!important;--qr:18.5mm!important;--pad:1.4mm!important;--gap:1.4mm!important;--barcode-h:6.5mm!important;}
body.v304-etichette.label-50x30{--page-w:50mm!important;--page-h:30mm!important;--label-w:46mm!important;--label-h:26mm!important;--top-h:15mm!important;--qr:12.5mm!important;--pad:0.9mm!important;--gap:.9mm!important;--barcode-h:4.6mm!important;}
body.v304-etichette.label-40x30{--page-w:40mm!important;--page-h:30mm!important;--label-w:36mm!important;--label-h:26mm!important;--top-h:14.6mm!important;--qr:11.2mm!important;--pad:.85mm!important;--gap:.8mm!important;--barcode-h:4.4mm!important;}
body.v304-etichette.label-58x40{--page-w:58mm!important;--page-h:40mm!important;--label-w:54mm!important;--label-h:36mm!important;--top-h:21.2mm!important;--qr:17.8mm!important;--pad:1.4mm!important;--gap:1.4mm!important;--barcode-h:6.5mm!important;}
body.v304-etichette.label-63x38{--page-w:63mm!important;--page-h:38mm!important;--label-w:59mm!important;--label-h:34mm!important;--top-h:20mm!important;--qr:17.5mm!important;--pad:1.3mm!important;--gap:1.3mm!important;--barcode-h:6.2mm!important;}
body.v304-etichette.label-a4{--page-w:57mm!important;--page-h:32mm!important;--label-w:53mm!important;--label-h:28mm!important;--top-h:16.8mm!important;--qr:14.2mm!important;--pad:1.0mm!important;--gap:1.0mm!important;--barcode-h:5.1mm!important;}
body.v304-etichette.label-a4 .sheet{display:grid!important;grid-template-columns:repeat(3,57mm)!important;gap:4mm!important;padding:10mm!important;}
body.v304-etichette.label-40x30 .code,
body.v304-etichette.label-50x30 .code,
body.v304-etichette.label-62x29 .code{font-size:6.8pt!important;}
body.v304-etichette.label-40x30 .title,
body.v304-etichette.label-50x30 .title,
body.v304-etichette.label-62x29 .title{font-size:5.6pt!important;line-height:1.06!important;max-height:4.5mm!important;}
body.v304-etichette.label-40x30 .price,
body.v304-etichette.label-50x30 .price,
body.v304-etichette.label-62x29 .price{font-size:10.5pt!important;}
body.v304-etichette.label-40x30 .label-date,
body.v304-etichette.label-50x30 .label-date,
body.v304-etichette.label-62x29 .label-date{font-size:4.9pt!important;}
@media (max-width:700px){body.v304-etichette .toolbar{position:relative!important;}
body.v304-etichette .toolbar strong,
body.v304-etichette .toolbar select,
body.v304-etichette .toolbar button,
body.v304-etichette .toolbar a,
body.v304-etichette .toolbar label{width:100%!important;text-align:center!important;}}
@media print{body.v304-etichette .price,
body.v304-etichette .price *{color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;filter:none!important;text-shadow:none!important;}
html.v304-etichette,
body.v304-etichette{margin:0!important;padding:0!important;background:#fff!important;}
body.v304-etichette .toolbar{display:none!important;}
body.v304-etichette .sheet{padding:0!important;gap:0!important;display:block!important;margin:0!important;}
body.v304-etichette .label{border:0!important;break-inside:avoid!important;page-break-inside:avoid!important;break-before:auto!important;page-break-before:auto!important;break-after:auto!important;page-break-after:auto!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important;}
body.v304-etichette.multi-label-print .label{margin:1.6mm auto 0!important;}
body.v304-etichette.multi-label-print .label + .label{break-before:page!important;page-break-before:always!important;}
body.v304-etichette.single-label-print:not(.label-a4){width:var(--page-w)!important;height:var(--page-h)!important;min-height:0!important;max-height:var(--page-h)!important;overflow:hidden!important;}
body.v304-etichette.single-label-print:not(.label-a4) .sheet{position:fixed!important;left:0!important;top:0!important;width:var(--page-w)!important;height:var(--page-h)!important;min-height:0!important;max-height:var(--page-h)!important;overflow:hidden!important;margin:0!important;padding:0!important;}
body.v304-etichette.single-label-print:not(.label-a4) .label{position:absolute!important;left:50%!important;top:1.6mm!important;transform:translateX(-50%)!important;margin:0!important;}
body.v304-etichette.label-a4 .label{margin:0!important;position:static!important;transform:none!important;}
body.v304-etichette.label-a4 .label + .label{break-before:auto!important;page-break-before:auto!important;}
body.v304-etichette{page:p_etichette!important;}
@page p_etichette{margin:0!important;}}

/* --- V308 restore v304-fattura-vendita --- */
body.v304-fattura-vendita *{box-sizing:border-box!important;}
body.v304-fattura-vendita{--ink:#13253f!important;--line:#c7d3e3!important;--soft:#f6f8fb!important;--accent:#173b69!important;--muted:#536273!important;}
html.v304-fattura-vendita,
body.v304-fattura-vendita{margin:0!important;padding:0!important;background:#edf1f5!important;color:#111!important;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;-webkit-font-smoothing:antialiased!important;text-rendering:geometricPrecision!important;}
body.v304-fattura-vendita .invoice-page,
body.v304-fattura-vendita .invoice-page *{min-width:0!important;}
body.v304-fattura-vendita .company-name,
body.v304-fattura-vendita .company-lines,
body.v304-fattura-vendita .doc-meta,
body.v304-fattura-vendita .box-main,
body.v304-fattura-vendita .box-text,
body.v304-fattura-vendita .article-code,
body.v304-fattura-vendita .article-title,
body.v304-fattura-vendita .account-note-title,
body.v304-fattura-vendita .account-note-text,
body.v304-fattura-vendita .totals-line span,
body.v304-fattura-vendita .payment-note,
body.v304-fattura-vendita .signature,
body.v304-fattura-vendita .footer{max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important;}
body.v304-fattura-vendita .invoice-page{width:210mm!important;min-height:297mm!important;margin:10px auto!important;background:#fff!important;padding:8mm 9mm 7mm!important;box-shadow:0 2px 18px rgba(20,40,70,.14)!important;font-size:10pt!important;line-height:1.28!important;}
body.v304-fattura-vendita .invoice-header{display:grid!important;grid-template-columns:1.45fr .95fr!important;gap:11mm!important;align-items:start!important;border-bottom:2.2px solid var(--accent)!important;padding-bottom:4mm!important;margin-bottom:4mm!important;}
body.v304-fattura-vendita .company-lockup{display:grid!important;grid-template-columns:28mm 1fr!important;gap:5mm!important;align-items:center!important;}
body.v304-fattura-vendita .company-logo{height:21mm!important;display:flex!important;align-items:center!important;justify-content:center!important;}
body.v304-fattura-vendita .company-logo img{max-width:27mm!important;max-height:20mm!important;object-fit:contain!important;}
body.v304-fattura-vendita .logo-fallback{font-weight:900!important;color:var(--accent)!important;font-size:12pt!important;}
body.v304-fattura-vendita .company-name{font-size:15pt!important;font-weight:900!important;line-height:1.08!important;color:#111!important;margin-bottom:2mm!important;}
body.v304-fattura-vendita .company-lines{font-size:9.6pt!important;line-height:1.38!important;}
body.v304-fattura-vendita .company-lines b{color:var(--ink)!important;}
body.v304-fattura-vendita .doc-head{border-top:1px solid #9db2ce!important;padding-top:2.2mm!important;}
body.v304-fattura-vendita .doc-kicker{font-size:7.6pt!important;font-weight:900!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:#37465b!important;}
body.v304-fattura-vendita .doc-title{font-size:17pt!important;font-weight:900!important;color:var(--accent)!important;margin:.8mm 0 2.5mm!important;}
body.v304-fattura-vendita .doc-meta{font-size:9.8pt!important;line-height:1.5!important;}
body.v304-fattura-vendita .doc-meta b{display:inline-block!important;min-width:27mm!important;}
body.v304-fattura-vendita .info-box{border:1px solid var(--line)!important;border-radius:3mm!important;padding:3.4mm 4mm!important;margin:3mm 0!important;background:#fff!important;}
body.v304-fattura-vendita .box-label{font-size:7.4pt!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#26364a!important;margin-bottom:1.2mm!important;}
body.v304-fattura-vendita .box-main{font-size:12pt!important;font-weight:900!important;color:#101b2a!important;margin-bottom:.8mm!important;}
body.v304-fattura-vendita .box-text{font-size:9.6pt!important;line-height:1.35!important;}
body.v304-fattura-vendita .summary-strip{display:flex!important;align-items:stretch!important;gap:1.5mm!important;margin:2.2mm 0 3mm!important;}
body.v304-fattura-vendita .summary-card{flex:1 1 0!important;min-width:0!important;border:1px solid var(--line)!important;border-radius:2mm!important;padding:1.5mm 2mm!important;background:#fff!important;}
body.v304-fattura-vendita .summary-card .label{display:block!important;font-size:6.3pt!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.035em!important;color:#34475d!important;margin-bottom:.6mm!important;white-space:normal!important;}
body.v304-fattura-vendita .summary-card .value{display:block!important;font-size:10.8pt!important;line-height:1.05!important;font-weight:900!important;color:#0f1f35!important;}
body.v304-fattura-vendita .summary-card.refund{border:1.4px solid var(--accent)!important;background:#f8fbff!important;}
body.v304-fattura-vendita .summary-card.refund .value{color:#173b69!important;}
body.v304-fattura-vendita .invoice-table-wrap{width:100%!important;overflow:visible!important;margin-top:2mm!important;}
body.v304-fattura-vendita .invoice-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:8.5pt!important;}
body.v304-fattura-vendita .invoice-table th{padding:2mm 1.2mm!important;border-bottom:1.5px solid #91a6c2!important;font-size:7.2pt!important;line-height:1.12!important;text-transform:uppercase!important;text-align:left!important;color:#26364a!important;vertical-align:bottom!important;overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important;}
body.v304-fattura-vendita .invoice-table td{padding:2.2mm 1.2mm!important;border-bottom:1px solid #ccd6e3!important;vertical-align:top!important;line-height:1.24!important;overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important;}
body.v304-fattura-vendita .invoice-table .num{text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important;}
body.v304-fattura-vendita .invoice-table .center{text-align:center!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(1){width:27%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(2){width:9%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(3){width:8%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(4){width:4.5%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(5){width:9%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(6){width:9%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(7){width:8.5%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(8){width:7%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(9){width:9.5%!important;}
body.v304-fattura-vendita .invoice-table th:nth-child(10){width:8.5%!important;}
body.v304-fattura-vendita .article-code{display:block!important;font-weight:900!important;font-size:9pt!important;color:#10233d!important;margin-bottom:.5mm!important;}
body.v304-fattura-vendita .article-title{display:block!important;font-size:8.5pt!important;line-height:1.2!important;}
body.v304-fattura-vendita .sale-ref{font-weight:800!important;}
body.v304-fattura-vendita .sale-date{display:block!important;font-size:7.4pt!important;color:var(--muted)!important;margin-top:.4mm!important;}
body.v304-fattura-vendita .accounting-row{display:grid!important;grid-template-columns:minmax(0,1fr) 62mm!important;gap:6mm!important;align-items:start!important;margin-top:3.5mm!important;}
body.v304-fattura-vendita .account-note{border:1px solid #d7e0eb!important;border-left:3px solid #a9bcd4!important;border-radius:0 2.4mm 2.4mm 0!important;padding:2.2mm 3mm!important;color:#344256!important;background:#fbfcfe!important;align-self:start!important;}
body.v304-fattura-vendita .account-note-title{display:block!important;font-size:9pt!important;line-height:1.18!important;font-weight:800!important;color:#18273b!important;margin:0 0 1mm!important;}
body.v304-fattura-vendita .account-note-text{display:block!important;font-size:8.7pt!important;line-height:1.38!important;font-weight:400!important;letter-spacing:.002em!important;word-spacing:normal!important;font-variant-ligatures:none!important;font-feature-settings:"liga" 0,"kern" 1!important;}
body.v304-fattura-vendita .totals{border:1px solid var(--line)!important;border-radius:3mm!important;padding:3mm 4mm!important;overflow:hidden!important;}
body.v304-fattura-vendita .totals-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4mm!important;padding:1mm 0!important;font-size:9.5pt!important;}
body.v304-fattura-vendita .totals-line strong{font-weight:900!important;}
body.v304-fattura-vendita .totals-line.grand{border-top:2px solid var(--accent)!important;margin-top:1.8mm!important;padding-top:2mm!important;font-size:10.5pt!important;}
body.v304-fattura-vendita .refund-total{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3mm!important;align-items:end!important;border-top:3px solid var(--accent)!important;margin-top:2mm!important;padding-top:2.5mm!important;color:var(--accent)!important;font-weight:900!important;text-transform:uppercase!important;font-size:12.5pt!important;line-height:1.08!important;}
body.v304-fattura-vendita .refund-total span:first-child{overflow-wrap:normal!important;word-break:normal!important;}
body.v304-fattura-vendita .refund-total .amount{text-align:right!important;font-size:14.5pt!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important;}
body.v304-fattura-vendita .payment-note{margin-top:4mm!important;border:1px solid var(--line)!important;border-radius:2.2mm!important;padding:2.2mm 3mm!important;text-align:center!important;font-size:8.6pt!important;font-weight:900!important;letter-spacing:.02em!important;}
body.v304-fattura-vendita .signature{width:46%!important;margin:6mm 0 0 auto!important;font-size:8.6pt!important;}
body.v304-fattura-vendita .signature-title{text-align:left!important;font-weight:900!important;margin-bottom:8mm!important;}
body.v304-fattura-vendita .signature-line{border-top:1.6px solid #1e2938!important;padding-top:1mm!important;font-size:7.5pt!important;text-transform:uppercase!important;}
body.v304-fattura-vendita .footer{display:flex!important;justify-content:space-between!important;gap:8mm!important;border-top:1px solid #bcc9d9!important;margin-top:5mm!important;padding-top:2mm!important;font-size:6.9pt!important;color:#3b4859!important;}
body.v304-fattura-vendita .no-print{display:flex!important;gap:8px!important;justify-content:center!important;margin:10px auto 20px!important;}
body.v304-fattura-vendita .no-print button,
body.v304-fattura-vendita .no-print a{border:0!important;border-radius:8px!important;padding:10px 16px!important;background:#173b69!important;color:#fff!important;text-decoration:none!important;font-weight:800!important;cursor:pointer!important;}
body.v304-fattura-vendita .no-print a{background:#52657c!important;}
@media (max-width:800px){body.v304-fattura-vendita .invoice-page{width:calc(100vw - 12px)!important;min-height:0!important;margin:6px!important;padding:14px!important;}
body.v304-fattura-vendita .invoice-header{grid-template-columns:1fr!important;gap:12px!important;}
body.v304-fattura-vendita .summary-strip{flex-wrap:wrap!important;}
body.v304-fattura-vendita .summary-card{flex:1 1 calc(50% - 1.5mm)!important;}
body.v304-fattura-vendita .invoice-table{font-size:8px!important;}
body.v304-fattura-vendita .invoice-table th{font-size:7px!important;}
body.v304-fattura-vendita .invoice-table th,
body.v304-fattura-vendita .invoice-table td{padding:5px 3px!important;}
body.v304-fattura-vendita .accounting-row{grid-template-columns:1fr!important;}
body.v304-fattura-vendita .totals{max-width:none!important;}
body.v304-fattura-vendita .signature{width:70%!important;}}
@media print{body.v304-fattura-vendita{page:p_fattura_vendita!important;}
@page p_fattura_vendita{size:A4 portrait!important;margin:0!important;}
html.v304-fattura-vendita,
body.v304-fattura-vendita{width:210mm!important;background:#fff!important;}
body.v304-fattura-vendita .invoice-page{width:210mm!important;min-height:297mm!important;margin:0!important;padding:7.5mm 8.5mm 6.5mm!important;box-shadow:none!important;font-size:10pt!important;}
body.v304-fattura-vendita .invoice-header{grid-template-columns:1.42fr .9fr!important;gap:9mm!important;padding-bottom:3.5mm!important;margin-bottom:3.5mm!important;}
body.v304-fattura-vendita .company-lockup{grid-template-columns:27mm 1fr!important;gap:4.5mm!important;}
body.v304-fattura-vendita .company-logo{height:20mm!important;}
body.v304-fattura-vendita .company-logo img{max-width:26mm!important;max-height:19mm!important;}
body.v304-fattura-vendita .company-name{font-size:14pt!important;}
body.v304-fattura-vendita .company-lines{font-size:9pt!important;}
body.v304-fattura-vendita .doc-title{font-size:15.5pt!important;}
body.v304-fattura-vendita .doc-meta{font-size:9.2pt!important;}
body.v304-fattura-vendita .info-box{padding:3mm 3.5mm!important;margin:2.5mm 0!important;}
body.v304-fattura-vendita .box-main{font-size:11.2pt!important;}
body.v304-fattura-vendita .box-text{font-size:9pt!important;}
body.v304-fattura-vendita .summary-strip{display:flex!important;flex-wrap:nowrap!important;gap:1.2mm!important;margin:1.8mm 0 2.8mm!important;}
body.v304-fattura-vendita .summary-card{flex:1 1 0!important;min-width:0!important;padding:1.3mm 1.7mm!important;min-height:0!important;}
body.v304-fattura-vendita .summary-card .label{font-size:6pt!important;margin-bottom:.5mm!important;}
body.v304-fattura-vendita .summary-card .value{font-size:10.3pt!important;}
body.v304-fattura-vendita .invoice-table{font-size:8pt!important;}
body.v304-fattura-vendita .invoice-table th{font-size:6.6pt!important;line-height:1.08!important;padding:1.5mm .75mm!important;}
body.v304-fattura-vendita .invoice-table td{padding:1.8mm .75mm!important;line-height:1.2!important;}
body.v304-fattura-vendita .invoice-table .num{font-size:7.55pt!important;}
body.v304-fattura-vendita .article-code{font-size:8.35pt!important;}
body.v304-fattura-vendita .article-title{font-size:7.85pt!important;line-height:1.18!important;}
body.v304-fattura-vendita .sale-date{font-size:6.9pt!important;}
body.v304-fattura-vendita .accounting-row{grid-template-columns:minmax(0,1fr) 60mm!important;gap:5mm!important;margin-top:3mm!important;}
body.v304-fattura-vendita .account-note{padding:2mm 2.6mm!important;}
body.v304-fattura-vendita .account-note-title{font-size:8.7pt!important;margin-bottom:.8mm!important;}
body.v304-fattura-vendita .account-note-text{font-size:8.35pt!important;line-height:1.34!important;}
body.v304-fattura-vendita .totals{padding:2.4mm 3.2mm!important;}
body.v304-fattura-vendita .totals-line{font-size:8.8pt!important;padding:.75mm 0!important;gap:3mm!important;}
body.v304-fattura-vendita .totals-line.grand{font-size:9.7pt!important;}
body.v304-fattura-vendita .refund-total{font-size:11.2pt!important;gap:2mm!important;}
body.v304-fattura-vendita .refund-total .amount{font-size:13.4pt!important;}
body.v304-fattura-vendita .payment-note{margin-top:3.5mm!important;font-size:8pt!important;}
body.v304-fattura-vendita .signature{margin-top:5mm!important;}
body.v304-fattura-vendita .signature-title{margin-bottom:7mm!important;}
body.v304-fattura-vendita .footer{margin-top:4mm!important;font-size:6.5pt!important;}
body.v304-fattura-vendita .company-name,
body.v304-fattura-vendita .company-lines,
body.v304-fattura-vendita .doc-meta,
body.v304-fattura-vendita .box-main,
body.v304-fattura-vendita .box-text,
body.v304-fattura-vendita .article-code,
body.v304-fattura-vendita .article-title,
body.v304-fattura-vendita .account-note-title,
body.v304-fattura-vendita .account-note-text,
body.v304-fattura-vendita .payment-note,
body.v304-fattura-vendita .footer{overflow-wrap:anywhere!important;word-break:normal!important;}
body.v304-fattura-vendita .invoice-table th,
body.v304-fattura-vendita .invoice-table td{overflow-wrap:anywhere!important;word-break:normal!important;}
body.v304-fattura-vendita .no-print{display:none!important;}
body.v304-fattura-vendita thead{display:table-header-group!important;}
body.v304-fattura-vendita tr{break-inside:avoid!important;page-break-inside:avoid!important;}}

/* --- V308 restore v304-merce-da-fatturare-stampa --- */
body.v304-merce-da-fatturare-stampa *{box-sizing:border-box!important;}
body.v304-merce-da-fatturare-stampa{margin:0!important;background:#eef2f6!important;color:#17233c!important;font-family:Arial,Helvetica,sans-serif!important;}
body.v304-merce-da-fatturare-stampa .sheet{width:min(1120px,calc(100% - 28px))!important;margin:22px auto!important;background:#fff!important;border:1px solid #d8e0e8!important;border-radius:14px!important;padding:26px 30px!important;box-shadow:0 12px 30px rgba(20,33,61,.09)!important;}
body.v304-merce-da-fatturare-stampa .head{display:flex!important;justify-content:space-between!important;gap:24px!important;align-items:flex-start!important;border-bottom:3px solid #284d77!important;padding-bottom:15px!important;}
body.v304-merce-da-fatturare-stampa .brand{display:flex!important;gap:16px!important;align-items:center!important;}
body.v304-merce-da-fatturare-stampa .brand img{max-width:135px!important;max-height:78px!important;object-fit:contain!important;}
body.v304-merce-da-fatturare-stampa .brand h1{font-size:22px!important;margin:0 0 6px!important;}
body.v304-merce-da-fatturare-stampa .brand p,
body.v304-merce-da-fatturare-stampa .meta p{margin:3px 0!important;font-size:12px!important;}
body.v304-merce-da-fatturare-stampa .meta{text-align:right!important;}
body.v304-merce-da-fatturare-stampa .meta h2{margin:0 0 7px!important;color:#284d77!important;}
body.v304-merce-da-fatturare-stampa .client{margin:16px 0!important;padding:12px 14px!important;border:1px solid #d9e2ec!important;border-radius:10px!important;}
body.v304-merce-da-fatturare-stampa .client b{font-size:16px!important;}
body.v304-merce-da-fatturare-stampa .note{font-size:11px!important;color:#5d6d82!important;margin:8px 0 14px!important;}
body.v304-merce-da-fatturare-stampa .table-wrap{overflow-x:auto!important;}
body.v304-merce-da-fatturare-stampa table{width:100%!important;border-collapse:collapse!important;font-size:10.5px!important;min-width:980px!important;}
body.v304-merce-da-fatturare-stampa th,
body.v304-merce-da-fatturare-stampa td{padding:7px 6px!important;border-bottom:1px solid #dce4ec!important;text-align:left!important;vertical-align:top!important;}
body.v304-merce-da-fatturare-stampa th{background:#eef3f8!important;font-size:9.5px!important;text-transform:uppercase!important;}
body.v304-merce-da-fatturare-stampa .num{text-align:right!important;white-space:nowrap!important;}
body.v304-merce-da-fatturare-stampa tfoot th,
body.v304-merce-da-fatturare-stampa tfoot td{border-top:2px solid #284d77!important;background:#f7f9fb!important;}
body.v304-merce-da-fatturare-stampa .actions{display:flex!important;gap:8px!important;margin-top:18px!important;}
body.v304-merce-da-fatturare-stampa .actions a,
body.v304-merce-da-fatturare-stampa .actions button{border:0!important;border-radius:8px!important;padding:10px 14px!important;text-decoration:none!important;font-weight:700!important;cursor:pointer!important;background:#284d77!important;color:#fff!important;}
body.v304-merce-da-fatturare-stampa .actions a{background:#e8eef5!important;color:#284d77!important;}
@media print{body.v304-merce-da-fatturare-stampa{page:p_merce_da_fatturare_stampa!important;}
@page p_merce_da_fatturare_stampa{size:A4 landscape!important;margin:7mm!important;}
body.v304-merce-da-fatturare-stampa{background:#fff!important;}
body.v304-merce-da-fatturare-stampa .sheet{width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
body.v304-merce-da-fatturare-stampa .actions{display:none!important;}
body.v304-merce-da-fatturare-stampa .brand img{max-width:32mm!important;max-height:18mm!important;}
body.v304-merce-da-fatturare-stampa .head{gap:8mm!important;}
body.v304-merce-da-fatturare-stampa .meta h2{font-size:14pt!important;}
body.v304-merce-da-fatturare-stampa table{min-width:0!important;font-size:7pt!important;}
body.v304-merce-da-fatturare-stampa th{font-size:6.5pt!important;}
body.v304-merce-da-fatturare-stampa th,
body.v304-merce-da-fatturare-stampa td{padding:1.5mm 1.2mm!important;}
body.v304-merce-da-fatturare-stampa .client{padding:2.5mm 3mm!important;margin:3mm 0!important;}
body.v304-merce-da-fatturare-stampa .note{font-size:6.8pt!important;margin:2mm 0 3mm!important;}}

/* --- V308 restore v304-qr-articolo --- */
body.v304-qr-articolo *,
body.v304-qr-articolo *:not(svg):not(svg *){box-sizing:border-box!important;}
body.v304-qr-articolo{--page-w:57mm!important;--page-h:32mm!important;--label-w:53mm!important;--label-h:28mm!important;--top-h:16.8mm!important;--qr:14.2mm!important;--pad:1.0mm!important;--gap:1.0mm!important;--barcode-h:5.1mm!important;}
html.v304-qr-articolo,
body.v304-qr-articolo{margin:0!important;padding:0!important;background:#eee!important;font-family:Arial,sans-serif!important;color:#111!important;}
body.v304-qr-articolo{min-height:100vh!important;}
body.v304-qr-articolo .toolbar{background:#333!important;color:#fff!important;border-bottom:3px solid #ff8d28!important;padding:10px!important;display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important;}
body.v304-qr-articolo .toolbar strong{color:#ffd18c!important;width:100%!important;text-align:center!important;font-size:20px!important;}
body.v304-qr-articolo .toolbar select,
body.v304-qr-articolo .toolbar button,
body.v304-qr-articolo .toolbar a,
body.v304-qr-articolo .toolbar label{min-height:40px!important;border-radius:8px!important;border:1px solid #777!important;padding:8px 12px!important;font-weight:900!important;font-size:15px!important;}
body.v304-qr-articolo .toolbar label{display:flex!important;align-items:center!important;gap:8px!important;background:#fff!important;color:#111!important;}
body.v304-qr-articolo .toolbar label input[type="checkbox"]{width:18px!important;height:18px!important;}
body.v304-qr-articolo .toolbar button,
body.v304-qr-articolo .toolbar a{background:#ff790c!important;color:#fff!important;text-align:center!important;text-decoration:none!important;cursor:pointer!important;}
body.v304-qr-articolo .toolbar select{background:#fff!important;color:#111!important;}
body.v304-qr-articolo .hint{font-size:12px!important;line-height:1.35!important;color:#eee!important;width:100%!important;}
body.v304-qr-articolo .sheet{padding:8mm!important;display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:3mm!important;}
body.v304-qr-articolo .label{width:var(--label-w)!important;height:var(--label-h)!important;background:#fff!important;border:1px dashed #999!important;padding:var(--pad)!important;display:grid!important;grid-template-rows:var(--top-h) 1fr!important;gap:.55mm!important;overflow:hidden!important;}
body.v304-qr-articolo .top{display:grid!important;grid-template-columns:var(--qr) 1fr!important;gap:var(--gap)!important;min-height:0!important;}
body.v304-qr-articolo .qrbox{display:flex!important;align-items:flex-start!important;justify-content:center!important;}
body.v304-qr-articolo .qrbox img{width:var(--qr)!important;height:var(--qr)!important;display:block!important;}
body.v304-qr-articolo .info{min-width:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;}
body.v304-qr-articolo .code{font-size:7.2pt!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#111!important;max-width:100%!important;flex:0 0 auto!important;}
body.v304-qr-articolo .title{font-size:6.1pt!important;font-weight:800!important;line-height:1.08!important;max-height:4.9mm!important;overflow:hidden!important;margin:.20mm 0 .15mm!important;width:100%!important;overflow-wrap:break-word!important;word-break:normal!important;flex:0 0 auto!important;}
body.v304-qr-articolo .price,
body.v304-qr-articolo .price *{font-weight:950!important;line-height:1!important;color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;filter:none!important;text-shadow:none!important;}
body.v304-qr-articolo .price{font-size:15pt!important;white-space:nowrap!important;max-width:100%!important;flex:0 0 auto!important;}
body.v304-qr-articolo .price small{font-size:.72em!important;}
body.v304-qr-articolo .article-meta{font-size:5.2pt!important;line-height:1!important;font-weight:900!important;margin-top:.15mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;flex:0 0 auto!important;}
body.v304-qr-articolo .label-date{font-size:5.2pt!important;line-height:1!important;font-weight:900!important;color:#111!important;margin-top:.20mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;flex:0 0 auto!important;}
body.v304-qr-articolo .barcode-wrap{min-height:0!important;}
body.v304-qr-articolo .barcode-print{background:#fff!important;border:.28mm solid #222!important;padding:.55mm .85mm .35mm!important;border-radius:1mm!important;overflow:hidden!important;}
body.v304-qr-articolo .barcode-print svg{width:100%!important;height:var(--barcode-h)!important;display:block!important;shape-rendering:crispEdges!important;}
body.v304-qr-articolo .barcode-code{font-size:6.2pt!important;font-weight:900!important;text-align:center!important;letter-spacing:.05mm!important;margin-top:.15mm!important;color:#111!important;line-height:1!important;}
body.v304-qr-articolo.hide-date .label-date{display:none!important;}
body.v304-qr-articolo.f57x32{--page-w:57mm!important;--page-h:32mm!important;--label-w:53mm!important;--label-h:28mm!important;--top-h:16.8mm!important;--qr:14.2mm!important;--pad:1.0mm!important;--gap:1.0mm!important;--barcode-h:5.1mm!important;}
body.v304-qr-articolo.f62x29{--page-w:62mm!important;--page-h:29mm!important;--label-w:58mm!important;--label-h:25mm!important;--top-h:14.7mm!important;--qr:13.1mm!important;--pad:1.0mm!important;--gap:1.0mm!important;--barcode-h:4.8mm!important;}
body.v304-qr-articolo.f62x40{--page-w:62mm!important;--page-h:40mm!important;--label-w:58mm!important;--label-h:36mm!important;--top-h:21.2mm!important;--qr:18.5mm!important;--pad:1.4mm!important;--gap:1.4mm!important;--barcode-h:6.5mm!important;}
body.v304-qr-articolo.f50x30{--page-w:50mm!important;--page-h:30mm!important;--label-w:46mm!important;--label-h:26mm!important;--top-h:15mm!important;--qr:12.5mm!important;--pad:0.9mm!important;--gap:.9mm!important;--barcode-h:4.6mm!important;}
body.v304-qr-articolo.f40x30{--page-w:40mm!important;--page-h:30mm!important;--label-w:36mm!important;--label-h:26mm!important;--top-h:14.6mm!important;--qr:11.2mm!important;--pad:.85mm!important;--gap:.8mm!important;--barcode-h:4.4mm!important;}
body.v304-qr-articolo.f58x40{--page-w:58mm!important;--page-h:40mm!important;--label-w:54mm!important;--label-h:36mm!important;--top-h:21.2mm!important;--qr:17.8mm!important;--pad:1.4mm!important;--gap:1.4mm!important;--barcode-h:6.5mm!important;}
body.v304-qr-articolo.f63x38{--page-w:63mm!important;--page-h:38mm!important;--label-w:59mm!important;--label-h:34mm!important;--top-h:20mm!important;--qr:17.5mm!important;--pad:1.3mm!important;--gap:1.3mm!important;--barcode-h:6.2mm!important;}
body.v304-qr-articolo.f40x30 .code,
body.v304-qr-articolo.f50x30 .code,
body.v304-qr-articolo.f62x29 .code{font-size:6.8pt!important;}
body.v304-qr-articolo.f40x30 .title,
body.v304-qr-articolo.f50x30 .title,
body.v304-qr-articolo.f62x29 .title{font-size:5.6pt!important;line-height:1.06!important;max-height:4.5mm!important;}
body.v304-qr-articolo.f40x30 .price,
body.v304-qr-articolo.f50x30 .price,
body.v304-qr-articolo.f62x29 .price{font-size:10.5pt!important;}
body.v304-qr-articolo.f40x30 .label-date,
body.v304-qr-articolo.f50x30 .label-date,
body.v304-qr-articolo.f62x29 .label-date{font-size:4.9pt!important;}
@media (max-width:700px){body.v304-qr-articolo .toolbar strong,
body.v304-qr-articolo .toolbar select,
body.v304-qr-articolo .toolbar button,
body.v304-qr-articolo .toolbar a,
body.v304-qr-articolo .toolbar label{width:100%!important;text-align:center!important;}
body.v304-qr-articolo .sheet{padding:8px!important;justify-content:center!important;}}
@media print{html.v304-qr-articolo,
body.v304-qr-articolo{margin:0!important;padding:0!important;background:#fff!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
body.v304-qr-articolo .toolbar{display:none!important;}
body.v304-qr-articolo .sheet{padding:0!important;margin:0!important;display:block!important;gap:0!important;width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;}
body.v304-qr-articolo .label{border:0!important;margin:1.6mm auto 0!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important;break-before:auto!important;page-break-before:auto!important;break-after:auto!important;page-break-after:auto!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important;}
body.v304-qr-articolo .label + .label{break-before:page!important;page-break-before:always!important;}
body.v304-qr-articolo .sheet > .label:only-child{margin-top:1.6mm!important;}
body.v304-qr-articolo{page:p_qr_articolo!important;}
@page p_qr_articolo{margin:0!important;}}

/* --- V308 restore v304-qr-cliente --- */
body.v304-qr-cliente *{box-sizing:border-box!important;}
html.v304-qr-cliente,
body.v304-qr-cliente{margin:0!important;background:#eee!important;font-family:Arial,sans-serif!important;color:#111!important;}
body.v304-qr-cliente .toolbar{padding:12px!important;background:#333!important;color:#fff!important;border-bottom:3px solid #ff790c!important;display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important;}
body.v304-qr-cliente .toolbar strong{font-size:18px!important;}
body.v304-qr-cliente .toolbar button,
body.v304-qr-cliente .toolbar a{border:0!important;border-radius:8px!important;padding:10px 15px!important;background:#ff790c!important;color:#fff!important;font-weight:900!important;text-decoration:none!important;cursor:pointer!important;}
body.v304-qr-cliente .sheet{padding:18px!important;display:flex!important;justify-content:center!important;}
body.v304-qr-cliente .label{width:62mm!important;height:40mm!important;background:#fff!important;padding:2mm!important;border:1px dashed #999!important;display:grid!important;grid-template-columns:21mm 1fr!important;grid-template-rows:1fr auto!important;gap:1.5mm!important;overflow:hidden!important;}
body.v304-qr-cliente .qr img{width:20mm!important;height:20mm!important;display:block!important;}
body.v304-qr-cliente .info{min-width:0!important;}
body.v304-qr-cliente .kind{font-size:7pt!important;text-transform:uppercase!important;font-weight:900!important;color:#555!important;}
body.v304-qr-cliente .code{font-size:14pt!important;font-weight:950!important;line-height:1.05!important;margin:1.2mm 0!important;}
body.v304-qr-cliente .name{font-size:8.5pt!important;font-weight:800!important;line-height:1.12!important;max-height:10mm!important;overflow:hidden!important;}
body.v304-qr-cliente .barcode{grid-column:1/-1!important;border:.3mm solid #222!important;border-radius:1mm!important;padding:.5mm .8mm .25mm!important;}
body.v304-qr-cliente .barcode svg{width:100%!important;height:8mm!important;display:block!important;}
body.v304-qr-cliente .barcode-text{text-align:center!important;font-size:7pt!important;font-weight:900!important;letter-spacing:.2mm!important;}
body.v304-qr-cliente .hint{font-size:12px!important;color:#eee!important;width:100%!important;}
@media print{html.v304-qr-cliente,
body.v304-qr-cliente{width:62mm!important;height:40mm!important;background:#fff!important;}
body.v304-qr-cliente .toolbar{display:none!important;}
body.v304-qr-cliente .sheet{padding:0!important;width:62mm!important;height:40mm!important;align-items:center!important;}
body.v304-qr-cliente .label{border:0!important;}
body.v304-qr-cliente{page:p_qr_cliente!important;}
@page p_qr_cliente{size:62mm 40mm!important;margin:0!important;}}

/* --- V308 restore v304-stampa-mandato --- */
body.v304-stampa-mandato *{box-sizing:border-box!important;}
body.v304-stampa-mandato{margin:0!important;background:#eee!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;}
body.v304-stampa-mandato .page{width:210mm!important;min-height:297mm!important;margin:0 auto 12px!important;background:#fff!important;padding:12mm 14mm!important;box-shadow:0 2px 14px rgba(0,0,0,.12)!important;position:relative!important;}
body.v304-stampa-mandato .header{display:grid!important;grid-template-columns:58mm 1fr!important;gap:16mm!important;align-items:start!important;border-bottom:2px solid #333!important;padding-bottom:8mm!important;margin-bottom:8mm!important;}
body.v304-stampa-mandato .logo-box{height:34mm!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;}
body.v304-stampa-mandato .logo-box img{max-width:54mm!important;max-height:30mm!important;object-fit:contain!important;}
body.v304-stampa-mandato .logo-fallback{font-size:24px!important;font-weight:900!important;border:2px solid #333!important;padding:10mm 6mm!important;text-align:center!important;}
body.v304-stampa-mandato .company{font-size:11pt!important;line-height:1.32!important;}
body.v304-stampa-mandato .company b{font-size:12pt!important;}
body.v304-stampa-mandato .company-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1mm 12mm!important;margin-top:3mm!important;}
body.v304-stampa-mandato .title{text-align:center!important;text-transform:uppercase!important;font-weight:900!important;font-size:15pt!important;margin:4mm 0 7mm!important;}
body.v304-stampa-mandato .title span{text-transform:none!important;}
body.v304-stampa-mandato .rif{display:grid!important;grid-template-columns:25mm 1fr!important;gap:3mm 8mm!important;font-size:10.5pt!important;margin:5mm 0!important;}
body.v304-stampa-mandato .section-center{text-align:center!important;font-weight:800!important;margin:7mm 0 5mm!important;font-size:10.5pt!important;}
body.v304-stampa-mandato .line-grid{display:grid!important;grid-template-columns:30mm 1fr 22mm 1fr!important;gap:2mm 5mm!important;align-items:end!important;font-size:10.5pt!important;margin-bottom:2.3mm!important;}
body.v304-stampa-mandato .line-grid .label{color:#222!important;}
body.v304-stampa-mandato .line{border-bottom:1px solid #777!important;min-height:6mm!important;padding:0 2mm 1mm!important;font-weight:700!important;}
body.v304-stampa-mandato .line.wide{grid-column:span 3!important;}
body.v304-stampa-mandato .text{font-size:7.15pt!important;line-height:1.12!important;text-align:justify!important;margin-top:5mm!important;}
body.v304-stampa-mandato .text h3{text-align:center!important;margin:2.2mm 0 1.5mm!important;font-size:9.4pt!important;}
body.v304-stampa-mandato .text ol{padding-left:5.2mm!important;margin:1.5mm 0!important;}
body.v304-stampa-mandato .text li{margin:0 0 .7mm!important;}
body.v304-stampa-mandato .text p{margin:1.2mm 0!important;}
body.v304-stampa-mandato .signatures{margin-top:8mm!important;font-size:9pt!important;}
body.v304-stampa-mandato .sign-line{display:inline-flex!important;align-items:flex-end!important;justify-content:center!important;border-bottom:1px solid #333!important;width:58mm!important;height:18mm!important;vertical-align:bottom!important;}
body.v304-stampa-mandato .sign-line img{display:block!important;max-width:55mm!important;max-height:17mm!important;object-fit:contain!important;}
body.v304-stampa-mandato .sign-meta{font-size:7.5pt!important;color:#444!important;margin-top:1mm!important;}
body.v304-stampa-mandato .clauses{font-size:8pt!important;line-height:1.25!important;margin-top:6mm!important;}
body.v304-stampa-mandato .bottom-date{margin-top:10mm!important;font-size:10pt!important;}
body.v304-stampa-mandato .footer{position:absolute!important;right:10mm!important;bottom:7mm!important;font-size:8pt!important;color:#444!important;}
body.v304-stampa-mandato .items table{width:100%!important;border-collapse:collapse!important;margin-top:5mm!important;table-layout:fixed!important;}
body.v304-stampa-mandato .items th,
body.v304-stampa-mandato .items td{border:1px solid #777!important;padding:2.1mm 1.8mm!important;font-size:8.2pt!important;vertical-align:top!important;word-wrap:break-word!important;}
body.v304-stampa-mandato .items th{background:#f2f2f2!important;line-height:1.15!important;}
body.v304-stampa-mandato .items td strong{font-size:8.7pt!important;}
body.v304-stampa-mandato .items .col-code{width:16%!important;}
body.v304-stampa-mandato .items .col-desc{width:18%!important;}
body.v304-stampa-mandato .items .col-qta{width:5%!important;}
body.v304-stampa-mandato .items .col-price{width:9%!important;}
body.v304-stampa-mandato .items .col-price-narrow{width:9%!important;}
body.v304-stampa-mandato .items .col-value{width:10%!important;}
body.v304-stampa-mandato .items .col-client{width:11%!important;}
body.v304-stampa-mandato .items .col-date{width:13%!important;}
body.v304-stampa-mandato .items .col-status{width:9%!important;}
body.v304-stampa-mandato .items td:nth-child(1),
body.v304-stampa-mandato .items td:nth-child(8){overflow-wrap:normal!important;word-break:normal!important;}
body.v304-stampa-mandato .items td:nth-child(8){white-space:nowrap!important;}
body.v304-stampa-mandato .items .totals-row td{font-weight:900!important;background:#fafafa!important;}
body.v304-stampa-mandato .items .totals-label{text-align:right!important;}
body.v304-stampa-mandato .items .summary-top{margin-top:4mm!important;text-align:right!important;font-size:8.7pt!important;}
body.v304-stampa-mandato .items .summary-grid{width:45%!important;margin-left:auto!important;margin-top:2mm!important;border-top:1px solid #333!important;padding-top:2mm!important;}
body.v304-stampa-mandato .items .summary-grid .row{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:.8mm 0!important;font-size:8.8pt!important;}
body.v304-stampa-mandato .items .summary-grid .row strong{font-size:11pt!important;}
body.v304-stampa-mandato .items .summary-grid .row.final{margin-top:1mm!important;border-top:1px solid #333!important;padding-top:1.4mm!important;font-weight:900!important;}
body.v304-stampa-mandato .no-print{position:fixed!important;right:16px!important;bottom:16px!important;background:#155e63!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:12px 18px!important;font-weight:900!important;}
@media print{body.v304-stampa-mandato{page:p_stampa_mandato!important;}
@page p_stampa_mandato{size:A4 portrait!important;margin:0!important;}
html.v304-stampa-mandato,
body.v304-stampa-mandato{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important;}
body.v304-stampa-mandato .page{width:210mm!important;
    margin:0!important;
    box-shadow:none!important;
    background:#fff!important;
    position:relative!important;}
body.v304-stampa-mandato .contract-page{height:297mm!important;
    min-height:297mm!important;
    max-height:297mm!important;
    padding:4.2mm 5.5mm 4mm!important;
    overflow:hidden!important;
    break-after:page!important;
    page-break-after:always!important;}
body.v304-stampa-mandato .contract-page .header{grid-template-columns:30mm 1fr!important;
    gap:4mm!important;
    min-height:14mm!important;
    padding-bottom:1.2mm!important;
    margin-bottom:1.2mm!important;
    border-bottom:1px solid #333!important;}
body.v304-stampa-mandato .contract-page .logo-box{height:13mm!important;align-items:center!important;justify-content:flex-start!important;}
body.v304-stampa-mandato .contract-page .logo-box img{max-width:29mm!important;max-height:12.5mm!important;}
body.v304-stampa-mandato .contract-page .logo-fallback{font-size:10pt!important;padding:2mm 3mm!important;border-width:1px!important;}
body.v304-stampa-mandato .contract-page .company{font-size:7.2pt!important;line-height:1.08!important;}
body.v304-stampa-mandato .contract-page .company b{font-size:8.3pt!important;}
body.v304-stampa-mandato .contract-page .company-grid{grid-template-columns:1fr 1fr 1fr!important;gap:0 3mm!important;margin-top:.4mm!important;}
body.v304-stampa-mandato .contract-page .title{font-size:11.4pt!important;margin:1.6mm 0 1.7mm!important;line-height:1!important;}
body.v304-stampa-mandato .contract-page .rif{grid-template-columns:8mm 1fr 8mm 1fr!important;
    gap:.5mm 2mm!important;
    font-size:7.8pt!important;
    margin:.9mm 0!important;
    align-items:center!important;}
body.v304-stampa-mandato .contract-page .section-center{margin:1.3mm 0 .9mm!important;font-size:8.4pt!important;line-height:1!important;}
body.v304-stampa-mandato .contract-page .line-grid{grid-template-columns:16mm 1fr 17mm 1fr!important;
    gap:.55mm 2mm!important;
    font-size:7.55pt!important;
    margin-bottom:.8mm!important;
    line-height:1!important;}
body.v304-stampa-mandato .contract-page .line{min-height:3.8mm!important;padding:0 .8mm .35mm!important;line-height:1.08!important;}
body.v304-stampa-mandato .contract-page .text{font-size:6.72pt!important;line-height:1.095!important;margin-top:1.4mm!important;text-align:justify!important;}
body.v304-stampa-mandato .contract-page .text h3{font-size:8.2pt!important;margin:.7mm 0 .55mm!important;line-height:1!important;}
body.v304-stampa-mandato .contract-page .text ol{padding-left:4.8mm!important;margin:.7mm 0!important;}
body.v304-stampa-mandato .contract-page .text li{margin:0 0 .28mm!important;padding-left:.25mm!important;}
body.v304-stampa-mandato .contract-page .text p{margin:.45mm 0!important;}
body.v304-stampa-mandato .contract-page .signatures{margin-top:1.3mm!important;font-size:7.3pt!important;line-height:1.05!important;}
body.v304-stampa-mandato .contract-page .signatures p{margin:.35mm 0!important;}
body.v304-stampa-mandato .contract-page .sign-line{width:58mm!important;height:9mm!important;}
body.v304-stampa-mandato .contract-page .sign-line img{max-width:55mm!important;max-height:8.5mm!important;}
body.v304-stampa-mandato .contract-page .sign-meta{font-size:5.3pt!important;margin-top:0!important;}
body.v304-stampa-mandato .contract-page .clauses{font-size:6.45pt!important;line-height:1.08!important;margin-top:1.1mm!important;}
body.v304-stampa-mandato .contract-page .clauses p{margin:.35mm 0!important;}
body.v304-stampa-mandato .contract-page .bottom-date{margin-top:1.2mm!important;font-size:7pt!important;}
body.v304-stampa-mandato .contract-page .footer{right:5.5mm!important;bottom:2.5mm!important;font-size:5.5pt!important;}
body.v304-stampa-mandato .items{min-height:297mm!important;
    padding:7mm 8mm!important;
    break-before:page!important;
    page-break-before:always!important;
    break-after:auto!important;
    page-break-after:auto!important;}
body.v304-stampa-mandato .items .header{grid-template-columns:34mm 1fr!important;gap:5mm!important;padding-bottom:2mm!important;margin-bottom:3mm!important;}
body.v304-stampa-mandato .items .logo-box{height:18mm!important;align-items:center!important;}
body.v304-stampa-mandato .items .logo-box img{max-width:33mm!important;max-height:17mm!important;}
body.v304-stampa-mandato .items .company{font-size:8pt!important;line-height:1.15!important;}
body.v304-stampa-mandato .items .title{font-size:12pt!important;margin:2mm 0 3mm!important;}
body.v304-stampa-mandato .items table{margin-top:2mm!important;}
body.v304-stampa-mandato .items th,
body.v304-stampa-mandato .items td{padding:1.5mm 1.3mm!important;font-size:7pt!important;}
body.v304-stampa-mandato .items .summary-top{font-size:7.4pt!important;margin-top:2mm!important;}
body.v304-stampa-mandato .items .summary-grid{width:46%!important;margin-top:1.6mm!important;padding-top:1.6mm!important;}
body.v304-stampa-mandato .items .summary-grid .row{font-size:7.4pt!important;padding:.6mm 0!important;}
body.v304-stampa-mandato .items .summary-grid .row strong{font-size:9.3pt!important;}
body.v304-stampa-mandato .items tr{break-inside:avoid!important;page-break-inside:avoid!important;}
body.v304-stampa-mandato .items .signatures{font-size:7.5pt!important;margin-top:4mm!important;}
body.v304-stampa-mandato .items .sign-line{height:10mm!important;}
body.v304-stampa-mandato .items .footer{right:8mm!important;bottom:5mm!important;font-size:6pt!important;}
body.v304-stampa-mandato .no-print{display:none!important;}}

/* V319: leggibilità del mandato A4. Solo stampa mandato, senza alterare Dymo. */
@media print{
  body.v304-stampa-mandato .contract-page{
    height:auto!important;min-height:297mm!important;max-height:none!important;
    overflow:visible!important
  }
  body.v304-stampa-mandato .contract-page .company{font-size:8.8pt!important;line-height:1.2!important}
  body.v304-stampa-mandato .contract-page .company b{font-size:9.5pt!important}
  body.v304-stampa-mandato .contract-page .rif,
  body.v304-stampa-mandato .contract-page .line-grid{font-size:8.7pt!important;line-height:1.16!important}
  body.v304-stampa-mandato .contract-page .text{font-size:8.55pt!important;line-height:1.24!important;text-align:left!important;margin-top:2.4mm!important}
  body.v304-stampa-mandato .contract-page .text h3{font-size:10pt!important;margin:1.1mm 0!important}
  body.v304-stampa-mandato .contract-page .text li{margin-bottom:.8mm!important}
  body.v304-stampa-mandato .contract-page .clauses{font-size:8pt!important;line-height:1.2!important;margin-top:2mm!important}
  body.v304-stampa-mandato .contract-page .signatures{font-size:8.5pt!important;margin-top:2mm!important}
  body.v304-stampa-mandato .items th,
  body.v304-stampa-mandato .items td{font-size:8pt!important;line-height:1.22!important}
  body.v304-stampa-mandato .items td strong{font-size:8.5pt!important}
}

/* V319: stessi pulsanti chiari per tutte le azioni principali del cliente. */
.v105-client-layout .v95-client-actions-row .mc-client-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
.v105-client-layout .v95-client-actions-row .mc-client-action{
  min-height:38px!important;padding:5px 7px!important;font-size:11.5px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;background:#fff!important;color:#20344f!important;
  border:1px solid #cbd7e7!important;box-shadow:none!important
}
.v105-client-layout .v95-client-actions-row .mc-client-action:hover{background:#edf3f9!important}
.v105-client-layout .v95-client-actions-row .mc-client-action-icon{
  width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;
  min-height:0!important;max-height:none!important;font-size:15px!important;background:transparent!important
}
.mc-client-note-form{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.mc-client-note-form textarea{min-height:70px!important;resize:vertical!important}
.mc-client-note-form button{align-self:flex-end}
@media(max-width:860px){.v105-client-layout .v95-client-actions-row .mc-client-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* --- V308 restore vendita_ricevuta (pre V304) --- */
body.mercantico-receipt-page{page:p_vendita_ricevuta!important}
body.mercantico-receipt-page{font-family:Arial,sans-serif!important;background:#eee!important;margin:0!important;color:#111!important;}
body.mercantico-receipt-page .receipt{max-width:760px!important;margin:20px auto!important;background:#fff!important;padding:28px!important;border:1px solid #ccc!important;}
body.mercantico-receipt-page header{text-align:center!important;border-bottom:2px solid #111!important;margin-bottom:18px!important;}
body.mercantico-receipt-page .receipt-title{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:flex-end!important;}
body.mercantico-receipt-page .receipt-title h2{margin:0 0 6px!important;}
body.mercantico-receipt-page .buyer-box{border:1px solid #ddd!important;background:#fafafa!important;padding:10px 12px!important;margin:12px 0!important;}
body.mercantico-receipt-page table{width:100%!important;border-collapse:collapse!important;margin-top:18px!important;}
body.mercantico-receipt-page th,
body.mercantico-receipt-page td{border:1px solid #ccc!important;padding:8px!important;text-align:left!important;vertical-align:top!important;}
body.mercantico-receipt-page th{background:#333!important;color:#fff!important;}
body.mercantico-receipt-page .total{text-align:right!important;font-size:24px!important;font-weight:900!important;margin-top:18px!important;}
body.mercantico-receipt-page .note{font-size:12px!important;color:#555!important;line-height:1.4!important;}
body.mercantico-receipt-page .fiscal-note{border-top:1px solid #ddd!important;padding-top:10px!important;margin-top:18px!important;}
body.mercantico-receipt-page .actions{display:flex!important;gap:10px!important;margin-top:20px!important;}
body.mercantico-receipt-page .actions button,
body.mercantico-receipt-page .actions a{padding:10px 16px!important;background:#155e63!important;color:#fff!important;text-decoration:none!important;border:0!important;border-radius:6px!important;font-weight:900!important;}
@media (max-width:700px){body.mercantico-receipt-page .receipt{margin:0!important;border:0!important;min-height:100vh!important;padding:16px!important;}
body.mercantico-receipt-page .receipt-title{display:block!important;}
body.mercantico-receipt-page table{font-size:12px!important;}
body.mercantico-receipt-page th,
body.mercantico-receipt-page td{padding:6px!important;}
body.mercantico-receipt-page .actions{display:grid!important;}
body.mercantico-receipt-page .actions button,
body.mercantico-receipt-page .actions a{text-align:center!important;}
body.mercantico-receipt-page .total{font-size:20px!important;}}
@media print{@page p_vendita_ricevuta{size:A4 portrait!important;margin:12mm!important;}
body.mercantico-receipt-page .no-print{display:none!important;}
body.mercantico-receipt-page .receipt{margin:0!important;border:0!important;max-width:none!important;padding:0!important;}
body.mercantico-receipt-page{background:#fff!important;}
body.mercantico-receipt-page table{page-break-inside:auto!important;}
body.mercantico-receipt-page tr{page-break-inside:avoid!important;page-break-after:auto!important;}}
body.mercantico-receipt-page .small-total{font-size:18px!important;margin-top:4px!important;color:#111!important;}
body.mercantico-receipt-page *{box-sizing:border-box!important;}
html.mercantico-receipt-page,
body.mercantico-receipt-page{max-width:100%!important;}
body.mercantico-receipt-page{margin:0!important;background:#eef1f4!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;}
body.mercantico-receipt-page.receipt-embedded{padding:10px!important;}
body.mercantico-receipt-page .receipt{
    width:210mm!important;
    max-width:calc(100vw - 20px)!important;
    min-height:297mm!important;
    margin:12px auto!important;
    background:#fff!important;
    padding:10mm 10mm 9mm!important;
    box-shadow:0 3px 18px rgba(20,34,50,.14)!important;
}
body.mercantico-receipt-page .sale-company-header{
    display:grid!important;
    grid-template-columns:48mm 1fr!important;
    gap:8mm!important;
    align-items:center!important;
    border-bottom:2px solid #333!important;
    padding-bottom:5mm!important;
    margin-bottom:5mm!important;
}
body.mercantico-receipt-page .sale-logo-box{height:24mm!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;}
body.mercantico-receipt-page .sale-logo-box img{display:block!important;max-width:44mm!important;max-height:22mm!important;object-fit:contain!important;}
body.mercantico-receipt-page .sale-logo-fallback{font-size:16pt!important;font-weight:900!important;border:1.5px solid #333!important;padding:4mm 5mm!important;text-align:center!important;}
body.mercantico-receipt-page .sale-company{font-size:9.3pt!important;line-height:1.28!important;}
body.mercantico-receipt-page .sale-company b.sale-company-name{display:block!important;font-size:12pt!important;margin-bottom:1mm!important;}
body.mercantico-receipt-page .sale-company-meta{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.8mm 6mm!important;margin-top:1.5mm!important;}
body.mercantico-receipt-page .sale-document-heading{text-align:center!important;margin:0 0 5mm!important;}
body.mercantico-receipt-page .sale-document-heading h1{margin:0!important;font-size:14pt!important;text-transform:uppercase!important;letter-spacing:.02em!important;}
body.mercantico-receipt-page .sale-document-heading p{margin:1.5mm 0 0!important;font-size:9pt!important;}
body.mercantico-receipt-page .sale-document-ref{
    display:grid!important;
    grid-template-columns:auto 1fr auto 1fr auto 1fr!important;
    gap:1.5mm 3mm!important;
    align-items:center!important;
    border-top:1px solid #bbb!important;
    border-bottom:1px solid #bbb!important;
    padding:2.2mm 0!important;
    margin-bottom:4mm!important;
    font-size:9pt!important;
}
body.mercantico-receipt-page .sale-document-ref .label{font-weight:800!important;}
body.mercantico-receipt-page .buyer-box{margin:0 0 4mm!important;padding:2.5mm 3mm!important;border:1px solid #c8c8c8!important;background:#fafafa!important;font-size:9pt!important;}
body.mercantico-receipt-page .receipt-table-wrap{width:100%!important;overflow:visible!important;border:1px solid #777!important;}
body.mercantico-receipt-page .sale-receipt-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;margin:0!important;font-size:8.6pt!important;}
body.mercantico-receipt-page .sale-receipt-table th,
body.mercantico-receipt-page .sale-receipt-table td{border:1px solid #9a9a9a!important;padding:2.1mm 1.5mm!important;vertical-align:top!important;line-height:1.2!important;overflow-wrap:break-word!important;word-break:normal!important;}
body.mercantico-receipt-page .sale-receipt-table th{background:#efefef!important;color:#111!important;font-size:8.2pt!important;font-weight:800!important;text-align:left!important;vertical-align:middle!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(1),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(1){width:9%!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(2),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(2){width:23%!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(3),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(3){width:5%!important;text-align:center!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(4),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(4){width:17%!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(5),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(5){width:11%!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(6),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(6){width:11%!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(7),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(7){width:14%!important;}
body.mercantico-receipt-page .sale-receipt-table th:nth-child(8),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(8){width:10%!important;}
body.mercantico-receipt-page .sale-receipt-table td:nth-child(5),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(6),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(8){white-space:nowrap!important;}
body.mercantico-receipt-page .sale-receipt-table td:nth-child(6),
body.mercantico-receipt-page .sale-receipt-table td:nth-child(8){text-align:right!important;}
body.mercantico-receipt-page .sale-cell-main{font-weight:800!important;}
body.mercantico-receipt-page .sale-cell-sub{display:block!important;margin-top:.6mm!important;font-size:7.5pt!important;color:#444!important;line-height:1.18!important;}
body.mercantico-receipt-page .sale-accounting{margin-top:4mm!important;border-top:1.5px solid #333!important;padding-top:2.5mm!important;}
body.mercantico-receipt-page .sale-accounting-grid{width:62%!important;margin-left:auto!important;display:grid!important;grid-template-columns:1fr auto!important;gap:1.1mm 7mm!important;font-size:9pt!important;align-items:end!important;}
body.mercantico-receipt-page .sale-accounting-grid .label{text-align:right!important;}
body.mercantico-receipt-page .sale-accounting-grid .value{text-align:right!important;font-weight:800!important;white-space:nowrap!important;}
body.mercantico-receipt-page .sale-accounting-grid .grand-label,
body.mercantico-receipt-page .sale-accounting-grid .grand-value{border-top:1px solid #555!important;padding-top:1.8mm!important;margin-top:.7mm!important;font-size:11.5pt!important;font-weight:900!important;}
body.mercantico-receipt-page .sale-accounting-grid .client-label,
body.mercantico-receipt-page .sale-accounting-grid .client-value{font-size:10pt!important;font-weight:900!important;}
body.mercantico-receipt-page .note{font-size:8pt!important;line-height:1.3!important;margin-top:4mm!important;}
body.mercantico-receipt-page .fiscal-note{color:#555!important;border-top:1px solid #ddd!important;padding-top:2.5mm!important;}
body.mercantico-receipt-page .sale-receipt-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;padding-top:14px!important;}
body.mercantico-receipt-page .sale-receipt-actions .sale-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:10px 16px!important;border-radius:10px!important;border:1px solid #cbd7e6!important;font:inherit!important;font-weight:800!important;line-height:1!important;text-decoration:none!important;cursor:pointer!important;white-space:nowrap!important;}
body.mercantico-receipt-page .sale-action-primary{background:#183a63!important;border-color:#183a63!important;color:#fff!important;}
body.mercantico-receipt-page .sale-action-customer{min-height:58px!important;min-width:280px!important;padding:9px 22px!important;background:#0f6848!important;border-color:#0f6848!important;color:#fff!important;flex-direction:column!important;gap:3px!important;box-shadow:0 2px 5px rgba(15,104,72,.22)!important;}
body.mercantico-receipt-page .sale-action-customer .sale-action-title{font-size:16px!important;font-weight:900!important;letter-spacing:.015em!important;}
body.mercantico-receipt-page .sale-action-customer .sale-action-note{font-size:11px!important;font-weight:700!important;opacity:.92!important;}
body.mercantico-receipt-page .sale-action-secondary{background:#f7f9fc!important;color:#1d3557!important;}
body.mercantico-receipt-page .sale-action-danger{background:#a92d3f!important;border-color:#a92d3f!important;color:#fff!important;}
body.mercantico-receipt-page .sale-action-danger-wrap{margin-left:auto!important;}
body.mercantico-receipt-page .doc-subtitle-customer{display:none!important;}
body.mercantico-receipt-page .customer-only{display:none!important;}
body.mercantico-receipt-page.receipt-embedded .sale-receipt-actions{position:sticky!important;bottom:0!important;background:#fff!important;border-top:1px solid #dbe3ed!important;padding:10px!important;z-index:5!important;}
body.mercantico-receipt-page.receipt-embedded .sale-receipt-actions form{margin:0!important;}
@media (max-width:760px){body.mercantico-receipt-page.receipt-embedded{padding:5px!important;}
body.mercantico-receipt-page .receipt{max-width:calc(100vw - 10px)!important;padding:14px 12px!important;margin:5px auto!important;min-height:calc((100vw - 10px) * 1.4142)!important;}
body.mercantico-receipt-page .sale-company-header{grid-template-columns:88px 1fr!important;gap:10px!important;padding-bottom:12px!important;margin-bottom:12px!important;}
body.mercantico-receipt-page .sale-logo-box{height:50px!important;}
body.mercantico-receipt-page .sale-logo-box img{max-width:82px!important;max-height:48px!important;}
body.mercantico-receipt-page .sale-company{font-size:9px!important;}
body.mercantico-receipt-page .sale-company b.sale-company-name{font-size:12px!important;}
body.mercantico-receipt-page .sale-company-meta{grid-template-columns:1fr!important;}
body.mercantico-receipt-page .sale-document-heading h1{font-size:15px!important;}
body.mercantico-receipt-page .sale-document-heading p{font-size:10px!important;}
body.mercantico-receipt-page .sale-document-ref{grid-template-columns:auto 1fr auto 1fr!important;font-size:9px!important;}
body.mercantico-receipt-page .sale-document-ref .payment-label,
body.mercantico-receipt-page .sale-document-ref .payment-value{display:none!important;}
body.mercantico-receipt-page .sale-receipt-table{font-size:8px!important;}
body.mercantico-receipt-page .sale-receipt-table th{font-size:7.6px!important;}
body.mercantico-receipt-page .sale-receipt-table th,
body.mercantico-receipt-page .sale-receipt-table td{padding:4px 3px!important;}
body.mercantico-receipt-page .sale-cell-sub{font-size:7px!important;}
body.mercantico-receipt-page .sale-accounting-grid{width:100%!important;font-size:9px!important;}
body.mercantico-receipt-page .sale-receipt-actions{align-items:stretch!important;}
body.mercantico-receipt-page .sale-receipt-actions .sale-action,
body.mercantico-receipt-page .sale-action-danger-wrap{width:100%!important;margin-left:0!important;}
body.mercantico-receipt-page .sale-action-danger-wrap .sale-action{width:100%!important;}
body.mercantico-receipt-page .sale-action-customer{min-width:0!important;min-height:62px!important;}}
@media print{@page p_vendita_ricevuta{size:A4 portrait!important;margin:0!important;}
html.mercantico-receipt-page,
body.mercantico-receipt-page{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;}
body.mercantico-receipt-page .receipt{width:210mm!important;max-width:none!important;min-height:297mm!important;margin:0!important;padding:7mm 8mm!important;box-shadow:none!important;}
body.mercantico-receipt-page .sale-company-header{grid-template-columns:40mm 1fr!important;gap:6mm!important;padding-bottom:3mm!important;margin-bottom:3.5mm!important;}
body.mercantico-receipt-page .sale-logo-box{height:19mm!important;}
body.mercantico-receipt-page .sale-logo-box img{max-width:37mm!important;max-height:18mm!important;}
body.mercantico-receipt-page .sale-logo-fallback{font-size:12pt!important;padding:3mm 4mm!important;}
body.mercantico-receipt-page .sale-company{font-size:8pt!important;line-height:1.18!important;}
body.mercantico-receipt-page .sale-company b.sale-company-name{font-size:10.5pt!important;}
body.mercantico-receipt-page .sale-company-meta{gap:.5mm 5mm!important;margin-top:1mm!important;}
body.mercantico-receipt-page .sale-document-heading{margin-bottom:3.5mm!important;}
body.mercantico-receipt-page .sale-document-heading h1{font-size:12.5pt!important;}
body.mercantico-receipt-page .sale-document-heading p{font-size:8.5pt!important;margin-top:1mm!important;}
body.mercantico-receipt-page .sale-document-ref{font-size:8pt!important;padding:1.6mm 0!important;margin-bottom:3mm!important;}
body.mercantico-receipt-page .buyer-box{font-size:8pt!important;margin-bottom:3mm!important;padding:1.8mm 2mm!important;}
body.mercantico-receipt-page .receipt-table-wrap{border:0!important;}
body.mercantico-receipt-page .sale-receipt-table{font-size:7.8pt!important;}
body.mercantico-receipt-page .sale-receipt-table th{font-size:7.4pt!important;}
body.mercantico-receipt-page .sale-receipt-table th,
body.mercantico-receipt-page .sale-receipt-table td{padding:1.6mm 1mm!important;line-height:1.16!important;}
body.mercantico-receipt-page .sale-cell-sub{font-size:6.7pt!important;}
body.mercantico-receipt-page .sale-accounting{margin-top:3mm!important;padding-top:2mm!important;}
body.mercantico-receipt-page .sale-accounting-grid{font-size:8pt!important;width:60%!important;gap:.8mm 6mm!important;}
body.mercantico-receipt-page .sale-accounting-grid .grand-label,
body.mercantico-receipt-page .sale-accounting-grid .grand-value{font-size:10.5pt!important;}
body.mercantico-receipt-page .sale-accounting-grid .client-label,
body.mercantico-receipt-page .sale-accounting-grid .client-value{font-size:9pt!important;}
body.mercantico-receipt-page .note{font-size:7pt!important;margin-top:3mm!important;}
body.mercantico-receipt-page .fiscal-note{padding-top:2mm!important;}
body.mercantico-receipt-page .no-print,
body.mercantico-receipt-page .sale-receipt-actions{display:none!important;}
body.mercantico-receipt-page.print-customer .internal-only{display:none!important;}
body.mercantico-receipt-page.print-customer .customer-only{display:initial!important;}
body.mercantico-receipt-page.print-customer .doc-subtitle-internal{display:none!important;}
body.mercantico-receipt-page.print-customer .doc-subtitle-customer{display:inline!important;}
body.mercantico-receipt-page.print-customer .sale-receipt-table th:nth-child(1),
body.mercantico-receipt-page.print-customer .sale-receipt-table td:nth-child(1){width:16%!important;}
body.mercantico-receipt-page.print-customer .sale-receipt-table th:nth-child(2),
body.mercantico-receipt-page.print-customer .sale-receipt-table td:nth-child(2){width:50%!important;}
body.mercantico-receipt-page.print-customer .sale-receipt-table th:nth-child(3),
body.mercantico-receipt-page.print-customer .sale-receipt-table td:nth-child(3){width:10%!important;}
body.mercantico-receipt-page.print-customer .sale-receipt-table th:nth-child(6),
body.mercantico-receipt-page.print-customer .sale-receipt-table td:nth-child(6){width:24%!important;}
body.mercantico-receipt-page.print-customer .sale-accounting-grid{width:48%!important;}
body.mercantico-receipt-page tr{break-inside:avoid!important;page-break-inside:avoid!important;}}

/* --- V308 restore giornale affari (pre V304) --- */
body.giornale-print{page:p_giornale_affari!important}
body.giornale-print .giornale-grid .module-tile{
    border:1px solid #d6d6d6!important;
    cursor:pointer!important;
    font:inherit!important;
    min-height:120px!important;
}
body.giornale-print .giornale-box[hidden]{
    display:none !important;
}
@media print{body.giornale-print .no-print{display:none !important;}}
body.giornale-print .giornale-print{
    margin:0!important;
    background:#fff!important;
    color:#000!important;
    font-family:Arial, Helvetica, sans-serif!important;
}
body.giornale-print .journal-page{
    width:210mm!important;
    height:297mm!important;
    box-sizing:border-box!important;
    padding:8mm 10mm!important;
    page-break-after:always!important;
    overflow:hidden!important;
    background:#fff!important;
}
body.giornale-print .journal-header{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    font-size:9px!important;
    line-height:1.15!important;
    margin-bottom:2mm!important;
}
body.giornale-print .journal-head-right{
    text-align:right!important;
    white-space:nowrap!important;
}
body.giornale-print .journal-table{
    width:100%!important;
    border-collapse:collapse!important;
    table-layout:fixed!important;
    font-size:7.2px!important;
}
body.giornale-print .journal-table th,
body.giornale-print .journal-table td{
    border:1px solid #000!important;
    vertical-align:top!important;
    padding:1.2mm!important;
    height:8.2mm!important;
    overflow:hidden!important;
}
body.giornale-print .journal-table th{
    height:7mm!important;
    text-align:center!important;
    font-weight:bold!important;
    padding:0.8mm!important;
}
body.giornale-print .journal-table small{
    font-size:7px!important;
}
body.giornale-print .c-num{width:10%!important;}
body.giornale-print .c-date{width:8%!important;}
body.giornale-print .c-person{width:20%!important;}
body.giornale-print .c-doc{width:13%!important;}
body.giornale-print .c-obj{width:25%!important;}
body.giornale-print .c-money{width:8%!important;}
body.giornale-print .c-exit{width:8%!important;}
body.giornale-print .journal-cover-text{
    position:absolute!important;
    left:24mm!important;
    top:190mm!important;
    width:160mm!important;
    font-size:14px!important;
    line-height:1.28!important;
}
body.giornale-print .print-actions{
    position:fixed!important;
    right:16px!important;
    bottom:16px!important;
    padding:10px!important;
    background:#fff!important;
    border:1px solid #ccc!important;
    box-shadow:0 2px 12px rgba(0,0,0,.18)!important;
}
body.giornale-print .print-actions button{
    padding:10px 18px!important;
    font-weight:bold!important;
}
@page p_giornale_affari{
    size:A4 portrait!important;
    margin:0!important;
}
body.giornale-print .journal-overlay-data .journal-page{
    padding:var(--journal-data-top) 10mm 8mm var(--journal-data-left)!important;
}
body.giornale-print .journal-overlay-data .journal-header{
    visibility:hidden!important;
}
body.giornale-print .journal-overlay-data .journal-table th,
body.giornale-print .journal-overlay-data .journal-table td{
    border:0 !important;
    background:transparent !important;
}
body.giornale-print .journal-overlay-data .journal-table thead{
    visibility:hidden!important;
}
body.giornale-print .journal-overlay-data .journal-table{
    border-collapse:collapse!important;
    background:transparent !important;
}
body.giornale-print .journal-overlay-data .journal-table td{
    padding:1.2mm!important;
    color:#000!important;
}
body.giornale-print .journal-overlay-data .journal-table tr{
    background:transparent !important;
}
body.giornale-print .blank-page{
    position:relative!important;
}
body.giornale-print .blank-register-table{
    margin-top:1mm!important;
}
body.giornale-print .blank-register-table th,
body.giornale-print .blank-register-table td{
    border:1px solid #000!important;
}
body.giornale-print .blank-register-table td{
    height:8.2mm!important;
}
body.giornale-print .blank-register-table tbody{
    display:none!important;
}
body.giornale-print .c-qta{width:4%!important;}
body.giornale-print .blank-register-table .c-num{width:9%!important;}
body.giornale-print .blank-register-table .c-date{width:8%!important;}
body.giornale-print .blank-register-table .c-person{width:19%!important;}
body.giornale-print .blank-register-table .c-doc{width:13%!important;}
body.giornale-print .blank-register-table .c-obj{width:25%!important;}
body.giornale-print .blank-register-table .c-money{width:8%!important;}
body.giornale-print .blank-register-table .c-exit{width:8%!important;}
body.giornale-print .journal-final-summary{
    position:absolute!important;
    left:20mm!important;
    bottom:12mm!important;
    width:170mm!important;
    font-size:12px!important;
    line-height:1.22!important;
    background:#fff!important;
    padding-top:2mm!important;
}
@media print{body.giornale-print .journal-final-summary{
        background:#fff !important;
    }}
body.giornale-print .ok-box{
    background:#eef9ee!important;
    border:1px solid #9ed39e!important;
    padding:12px!important;
    border-radius:8px!important;
    font-weight:bold!important;
}
body.giornale-print .giornale-main .big-action{
    width:100%!important;
    font-size:18px!important;
    padding:14px 18px!important;
    margin-top:10px!important;
}
body.giornale-print .giornale-intro{
    font-size:16px!important;
    line-height:1.45!important;
}
body.giornale-print .giornale-date-form{
    display:grid!important;
    grid-template-columns:minmax(220px,320px) auto!important;
    gap:12px!important;
    align-items:end!important;
    margin:14px 0!important;
}
body.giornale-print .giornale-print-form{
    margin:14px 0!important;
}
body.giornale-print .giornale-summary{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    margin:12px 0!important;
}
body.giornale-print .giornale-summary > div{
    border:1px solid #ddd!important;
    border-radius:10px!important;
    padding:14px!important;
    background:#fafafa!important;
}
body.giornale-print .giornale-summary b{
    display:block!important;
    font-size:28px!important;
}
body.giornale-print .giornale-summary span{
    color:#555!important;
    font-weight:800!important;
}
body.giornale-print .ok-box{
    background:#eef9ee!important;
    border:1px solid #9ed39e!important;
    padding:12px!important;
    border-radius:8px!important;
    font-weight:bold!important;
}
body.giornale-print .warn-box{
    background:#fff8e8!important;
    border:1px solid #e0bc72!important;
    padding:12px!important;
    border-radius:8px!important;
    font-weight:bold!important;
}
@media (max-width:750px){body.giornale-print .giornale-date-form,
body.giornale-print .giornale-summary{
        grid-template-columns:1fr!important;
    }
body.giornale-print .giornale-date-form .btn{
        width:100%!important;
    }}
body.giornale-print .journal-flow{
    border-left:6px solid #0f8a72 !important;
}
body.giornale-print .journal-steps{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
}
body.giornale-print .journal-step{
    background:#f8fafc!important;
    border:1px solid #d7dee9!important;
    border-radius:16px!important;
    padding:16px!important;
    min-height:150px!important;
}
body.giornale-print .journal-step b{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    height:34px!important;
    border-radius:50%!important;
    background:#2457e6!important;
    color:#fff!important;
    margin-bottom:10px!important;
    box-shadow:0 3px 0 rgba(16,34,81,.22)!important;
}
body.giornale-print .journal-step span{
    display:block!important;
    font-size:17px!important;
    font-weight:900!important;
    margin-bottom:8px!important;
    color:#172033!important;
}
body.giornale-print .journal-step small{
    display:block!important;
    color:#5f6f85!important;
    line-height:1.35!important;
    font-weight:700!important;
}
body.giornale-print .journal-prep-panel{
    border-left:6px solid #2457e6 !important;
}
@media (max-width:850px){body.giornale-print .journal-steps{
        grid-template-columns:1fr!important;
    }}
body.giornale-print .journal-overlay-data .journal-page{
    padding:var(--journal-data-top) 10mm 8mm var(--journal-data-left)!important;
}
body.giornale-print .journal-overlay-data .journal-header,
body.giornale-print .journal-overlay-data .journal-table thead,
body.giornale-print .journal-overlay-data .journal-final-summary{
    visibility:hidden !important;
}
body.giornale-print .journal-overlay-data .journal-table th,
body.giornale-print .journal-overlay-data .journal-table td{
    border:0 !important;
    background:transparent !important;
}
body.giornale-print .journal-overlay-data .journal-table{
    border-collapse:collapse!important;
    background:transparent !important;
}
body.giornale-print .journal-overlay-data .journal-table td{
    padding:1.2mm!important;
    color:#000!important;
}
body.giornale-print .journal-overlay-data .journal-table tr{
    background:transparent !important;
}
body.giornale-print .giornale-sale-table{
    width:185mm!important;
    table-layout:fixed!important;
    font-size:9px!important;
}
body.giornale-print .giornale-sale-table th,
body.giornale-print .giornale-sale-table td{
    height:8.2mm!important;
    padding:1.2mm!important;
    vertical-align:top!important;
}
body.giornale-print .giornale-sale-table .g-code{width:22mm!important;}
body.giornale-print .giornale-sale-table .g-date{width:24mm!important;}
body.giornale-print .giornale-sale-table .g-desc{width:104mm!important;}
body.giornale-print .giornale-sale-table .g-amount{width:28mm!important;text-align:right!important;}
body.giornale-print .giornale-su-registro .giornale-sale-table td:nth-child(4){text-align:right!important;white-space:nowrap!important;}
body.giornale-print .giornale-su-registro .print-actions p{max-width:360px!important;font-size:12px!important;margin:8px 0 0!important;color:#333!important;}
body.giornale-print :root{
    --journal-data-top: <?=str_replace(",", ".", (string)$topMm)?>mm!important;
    --journal-data-left: <?=str_replace(",", ".", (string)$leftMm)?>mm!important;
}

/* V311: il campo Copie è numerico; non deve ereditare le dimensioni 18x18 della checkbox. */
body.v304-qr-articolo .toolbar #printCopies{
  width:84px!important;min-width:84px!important;height:34px!important;
  padding:4px 8px!important;border:1px solid #777!important;border-radius:6px!important;
  background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;
  font-size:16px!important;font-weight:900!important;line-height:1.2!important;
  opacity:1!important;appearance:auto!important;
}


/* ===== V312 EMERGENZA PRODUZIONE: TESSERINO CLIENTE SU CARTA DYMO REALE =====
 * Il browser non deve trattare il tesserino come A4. Ogni profilo seleziona
 * una @page fisica esplicita; la card utile conserva il margine di sicurezza.
 */
@media print{
  html.v304-cliente-tesserino,
  body.v304-cliente-tesserino{
    width:var(--page-w)!important;
    height:var(--page-h)!important;
    min-width:var(--page-w)!important;
    min-height:var(--page-h)!important;
    max-width:var(--page-w)!important;
    max-height:var(--page-h)!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.v304-cliente-tesserino .wrap{
    width:var(--page-w)!important;
    height:var(--page-h)!important;
    min-width:var(--page-w)!important;
    min-height:var(--page-h)!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  body.v304-cliente-tesserino .card{
    width:var(--label-w)!important;
    height:var(--label-h)!important;
    margin:0!important;
    padding:var(--safe-pad)!important;
    transform:none!important;
    box-shadow:none!important;
  }
  body.v304-cliente-tesserino.label-format-57x32{page:tesserino_57x32!important;}
  body.v304-cliente-tesserino.label-format-62x29{page:tesserino_62x29!important;}
  body.v304-cliente-tesserino.label-format-62x40{page:tesserino_62x40!important;}
  body.v304-cliente-tesserino.label-format-50x30{page:tesserino_50x30!important;}
  body.v304-cliente-tesserino.label-format-40x30{page:tesserino_40x30!important;}
  body.v304-cliente-tesserino.label-format-58x40{page:tesserino_58x40!important;}
  body.v304-cliente-tesserino.label-format-63x38{page:tesserino_63x38!important;}

  @page tesserino_57x32{size:57mm 32mm;margin:0;}
  @page tesserino_62x29{size:62mm 29mm;margin:0;}
  @page tesserino_62x40{size:62mm 40mm;margin:0;}
  @page tesserino_50x30{size:50mm 30mm;margin:0;}
  @page tesserino_40x30{size:40mm 30mm;margin:0;}
  @page tesserino_58x40{size:58mm 40mm;margin:0;}
  @page tesserino_63x38{size:63mm 38mm;margin:0;}
}

/* ========================================================================== 
   V313 EMERGENZA PRODUZIONE
   1) Ripristino leggibilita' ADMIN SOLO A SCHERMO.
   2) Formato fisico DYMO esplicito per ETICHETTA ARTICOLO.
   Non altera le regole di stampa A4 gia' ripristinate.
   ========================================================================== */
@media screen {
  html body.mercantico-admin{
    font-size:16px!important;
    line-height:1.42!important;
  }
  body.mercantico-admin .main{
    font-size:15px!important;
    line-height:1.42!important;
  }
  body.mercantico-admin .side,
  body.mercantico-admin .side a,
  body.mercantico-admin .side button,
  body.mercantico-admin .side .nav a{
    font-size:14px!important;
  }
  body.mercantico-admin .main h1{font-size:24px!important;line-height:1.2!important;}
  body.mercantico-admin .main h2{font-size:20px!important;line-height:1.25!important;}
  body.mercantico-admin .main h3{font-size:17px!important;line-height:1.3!important;}
  body.mercantico-admin .main table{font-size:14px!important;}
  body.mercantico-admin .main th,
  body.mercantico-admin .main td{font-size:14px!important;line-height:1.35!important;}
  body.mercantico-admin .main input:not([type="checkbox"]):not([type="radio"]),
  body.mercantico-admin .main select,
  body.mercantico-admin .main textarea{
    font-size:15px!important;
    line-height:1.35!important;
    min-height:38px!important;
  }
  body.mercantico-admin .main button,
  body.mercantico-admin .main .btn,
  body.mercantico-admin .main a.btn{
    font-size:14px!important;
    line-height:1.2!important;
    min-height:36px!important;
  }
  body.mercantico-admin .main label,
  body.mercantico-admin .main p,
  body.mercantico-admin .main li{
    font-size:14px!important;
  }
  body.mercantico-admin .main .small,
  body.mercantico-admin .main small{
    font-size:12px!important;
  }
}

/* Etichetta articolo: il formato scelto deve diventare la carta fisica, non A4. */
@media print {
  html.v304-qr-articolo,
  body.v304-qr-articolo{
    width:var(--page-w)!important;
    height:auto!important;
    min-width:var(--page-w)!important;
    min-height:0!important;
    max-width:var(--page-w)!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.v304-qr-articolo .sheet{
    width:var(--page-w)!important;
    height:auto!important;
    min-width:var(--page-w)!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.v304-qr-articolo .label{
    width:var(--label-w)!important;
    height:var(--label-h)!important;
    margin:1.5mm auto 0!important;
    transform:none!important;
  }
  body.v304-qr-articolo.f57x32{page:articolo_57x32!important;}
  body.v304-qr-articolo.f62x29{page:articolo_62x29!important;}
  body.v304-qr-articolo.f62x40{page:articolo_62x40!important;}
  body.v304-qr-articolo.f50x30{page:articolo_50x30!important;}
  body.v304-qr-articolo.f40x30{page:articolo_40x30!important;}
  body.v304-qr-articolo.f58x40{page:articolo_58x40!important;}
  body.v304-qr-articolo.f63x38{page:articolo_63x38!important;}

  @page articolo_57x32{size:57mm 32mm;margin:0;}
  @page articolo_62x29{size:62mm 29mm;margin:0;}
  @page articolo_62x40{size:62mm 40mm;margin:0;}
  @page articolo_50x30{size:50mm 30mm;margin:0;}
  @page articolo_40x30{size:40mm 30mm;margin:0;}
  @page articolo_58x40{size:58mm 40mm;margin:0;}
  @page articolo_63x38{size:63mm 38mm;margin:0;}
}

/* ==========================================================================
   MERCANTICO V314 — CONSOLIDAMENTO SORGENTI CSS ADMIN
   Regole statiche spostate dalle viste/JS nel CSS ufficiale.
   ========================================================================== */

/* Migrato da ff-v179-home-layout */
.ff-back-row-compact{margin:0 0 10px!important;display:flex!important;justify-content:flex-start!important}
.ff-back-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:42px!important;border:1px solid #d5dde8!important;border-radius:12px!important;background:#fff!important;color:#233451!important;text-decoration:none!important;font-size:26px!important;font-weight:900!important;line-height:1!important;box-shadow:0 6px 16px rgba(23,36,59,.08)!important}
.ff-hero-no-step{display:block!important}
.ff-usage-list{margin:0 0 18px!important;padding-left:1.25rem!important}
.ff-usage-list li{margin:10px 0!important}

.ff-scan-card{display:flex;flex-direction:column;gap:12px}
.ff-scan-card .ff-button-camera,.ff-scan-card .ff-manual-code-toggle{width:100%;margin:0}
.ff-code-form-collapsible{margin-top:2px;padding-top:12px;border-top:1px solid rgba(30,58,95,.16)}
.ff-code-form-collapsible[hidden]{display:none!important}
.ff-code-form-collapsible .ff-help{margin:10px 0 0}

/* Migrato da ff-v179-article-layout */
.ff-back-row-compact{margin:0 0 10px!important;display:flex!important;justify-content:flex-start!important}
.ff-back-row-compact .ff-back-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:42px!important;border:1px solid #d5dde8!important;border-radius:12px!important;background:#fff!important;color:#233451!important;text-decoration:none!important;font-size:26px!important;font-weight:900!important;line-height:1!important;box-shadow:0 6px 16px rgba(23,36,59,.08)!important}
.ff-hero-no-step{display:block!important}
.ff-section-title--no-step{display:block!important}
.ff-guide-card-v244{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;border:1px solid #b9d8cc!important;background:#f2faf6!important}
.ff-guide-card-v244 p{margin:4px 0 0!important;color:#4d5b55!important}
.ff-guide-action-form-v244{margin-top:12px!important}
.ff-guide-actions-v244{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-top:10px!important}
.ff-guide-actions-v244 form{margin:0!important}

.ff-client-identity{margin:0 0 3px!important;font-size:13px!important;line-height:1.25!important;color:#516078!important}
.ff-client-identity span{font-weight:700!important}
.ff-client-identity b{color:#172b49!important}
.ff-section-title--photo-publish{display:flex!important;align-items:flex-start!important;gap:12px!important;margin-bottom:14px!important}
.ff-upload-form-v179{display:flex!important;flex-direction:column!important;gap:12px!important}
.ff-photo-picker-primary{order:1!important;margin:0!important}
.ff-photo-preview{order:2!important}
.ff-photo-flags{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 18px!important;padding:2px 0!important;margin:0!important}
.ff-photo-flags .ff-check-row{display:inline-flex!important;width:auto!important;min-height:0!important;align-items:center!important;gap:8px!important;margin:0!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.ff-photo-flags .ff-check-row input{flex:0 0 auto!important;margin:0!important}
.ff-photo-flags .ff-check-row span{font-weight:700!important}
.ff-save-photo-v179{order:3!important;width:100%!important;margin:0!important}
.ff-existing-photos{margin-top:20px!important;padding-top:18px!important;border-top:1px solid rgba(30,58,95,.16)!important}
.ff-photo-flags-bottom{margin-top:18px!important;padding-top:14px!important;border-top:1px solid rgba(30,58,95,.16)!important}
.ff-photo-flags-warning{margin:8px 0 0!important}
.ff-existing-photos h3{margin:0 0 12px!important;font-size:18px!important}
.ff-empty-photo-inline{margin:0!important}
@media(max-width:700px){
  .ff-guide-card-v244{align-items:flex-start!important;flex-direction:column!important}
  .ff-guide-card-v244 .ff-button{width:100%!important}
  .ff-guide-actions-v244{display:block!important}
  .ff-guide-actions-v244 .ff-button,.ff-guide-actions-v244 form,.ff-guide-actions-v244 button{width:100%!important}
  .ff-guide-actions-v244 form{margin-top:8px!important}
  .ff-photo-flags{display:block!important}
  .ff-photo-flags .ff-check-row{display:flex!important;width:100%!important;padding:5px 0!important}
}

/* Stili statici migrati dagli attributi style= */
[data-mc-v314="s001"]{margin-top:10px}
[data-mc-v314="s002"]{margin-bottom:10px}
[data-mc-v314="s003"]{margin-top:8px}
[data-mc-v314="s004"]{display:block;margin-bottom:6px}
[data-mc-v314="s005"]{grid-column:1/-1}
[data-mc-v314="s006"]{display:flex;gap:8px;justify-content:flex-end;margin-top:14px;border-top:1px solid #eee;padding-top:12px}
[data-mc-v314="s007"]{max-width:260px;width:100%;height:auto;background:#fff;border:1px solid #ddd;padding:10px;border-radius:8px}
[data-mc-v314="s008"]{max-width:360px;background:#fff;border:1px solid #ddd;padding:8px;border-radius:8px;margin:8px 0}
[data-mc-v314="s009"]{margin:0}
[data-mc-v314="s010"]{margin-top:14px}
[data-mc-v314="s011"]{margin:12px 0}
[data-mc-v314="s012"]{margin:8px 0 0}
[data-mc-v314="s013"]{margin-top:4px}
[data-mc-v314="s014"]{margin-top:12px}
[data-mc-v314="s015"]{display:none}
[data-mc-v314="s016"]{display:inline-block;margin-right:8px}
[data-mc-v314="s017"]{display:inline-block}
[data-mc-v314="s018"]{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
[data-mc-v314="s019"]{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
[data-mc-v314="s020"]{margin-top:0}
[data-mc-v314="s021"]{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:14px 0}
[data-mc-v314="s022"]{min-width:260px}
[data-mc-v314="s023"]{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
[data-mc-v314="s024"]{width:42px}
[data-mc-v314="s025"]{display:flex;justify-content:center;gap:8px;align-items:center;margin:14px 0}
[data-mc-v314="s026"]{margin-bottom:12px}
[data-mc-v314="s027"]{width:145px;padding:8px;border:1px solid #aab4c0;border-radius:6px}
[data-mc-v314="s028"]{margin:14px 0 18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
[data-mc-v314="s029"]{min-width:300px;flex:1 1 340px}
[data-mc-v314="s030"]{margin-bottom:14px}
[data-mc-v314="s031"]{align-self:end}
[data-mc-v314="s032"]{display:inline}
[data-mc-v314="s033"]{text-align:center}
[data-mc-v314="s034"]{margin-bottom:5mm}
[data-mc-v314="s035"]{text-align:right}
[data-mc-v314="s036"]{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
[data-mc-v314="s037"]{margin-bottom:6px}
[data-mc-v314="s038"]{display:flex;gap:8px;flex-wrap:wrap}
[data-mc-v314="s039"]{white-space:nowrap}
[data-mc-v314="s040"]{max-width:180px;overflow-wrap:anywhere}
[data-mc-v314="s041"]{max-width:420px}
[data-mc-v314="s042"]{background:#fff;border:2px solid #d00;padding:18px;border-radius:10px;font-weight:900}
[data-mc-v314="s043"]{margin-top:10px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px;border:1px solid #ddd;border-radius:12px;background:#fff}
[data-mc-v314="s044"]{display:flex;align-items:center;gap:10px}
[data-mc-v314="s045"]{width:72px;height:72px;object-fit:contain;background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:6px}
[data-mc-v314="s046"]{max-width:180px;max-height:72px;object-fit:contain;background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:6px}
[data-mc-v314="s047"]{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px;border:1px solid #d9e0e8;border-radius:12px;background:#f8fafc}
[data-mc-v314="s048"]{font-size:.9rem}
[data-mc-v314="s049"]{display:none;padding:14px 16px;border-radius:12px;border:1px solid #d9e0e8;background:#fff;line-height:1.45}
[data-mc-v314="s050"]{margin:12px 0 0}
[data-mc-v314="s051"]{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
[data-mc-v314="s052"]{max-width:900px;margin:0 auto 12px;padding:12px 14px;border:1px solid #d7a33d;border-radius:10px;background:#fff7df;text-align:left}
[data-mc-v314="s053"]{display:inline-block;margin-left:8px}
[data-mc-v314="s054"]{background:#1d6b3c}
[data-mc-v314="s055"]{background:#8a3b32}
[data-mc-v314="s056"]{width:84px}
[data-mc-v314="s057"]{border:3px solid #155e63;background:#eaf5f5;color:#111;box-shadow:0 18px 50px rgba(0,0,0,.28);position:fixed;z-index:99999;left:24px;right:330px;bottom:22px;max-width:980px;margin:0}
[data-mc-v314="s058"]{margin-top:0;color:#111}
[data-mc-v314="s059"]{font-size:16px;margin-bottom:12px}
[data-mc-v314="s060"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
[data-mc-v314="s061"]{font-weight:700;background:#fff}
[data-mc-v314="s062"]{font-size:24px;font-weight:900;letter-spacing:3px;background:#fff}
[data-mc-v314="s063"]{margin-bottom:0}
[data-mc-v314="s064"]{margin-bottom:8px}
[data-mc-v314="s065"]{margin-bottom:4px}

/* Tesserino cliente: variabili finite per i soli 7 formati supportati. */
body.v304-cliente-tesserino{--safe-pad:1.5mm;--logo-w:11mm;--logo-h:8mm;--company-name:6.7pt;--company-text:4.5pt;--code-size:8.5pt;--meta-size:5.3pt;--name-size:9pt;--barcode-h:10.6mm;--barcode-text:5.4pt;}
body.v304-cliente-tesserino.label-format-57x32{--page-w:57mm;--page-h:32mm;--label-w:54mm;--label-h:29mm;}
body.v304-cliente-tesserino.label-format-62x29{--page-w:62mm;--page-h:29mm;--label-w:59mm;--label-h:26mm;--logo-w:8.5mm;--logo-h:6.2mm;--company-name:5.4pt;--company-text:3.8pt;--code-size:6.8pt;--meta-size:4.4pt;--name-size:7pt;--barcode-h:8.1mm;--barcode-text:4.4pt;}
body.v304-cliente-tesserino.label-format-62x40{--page-w:62mm;--page-h:40mm;--label-w:59mm;--label-h:37mm;}
body.v304-cliente-tesserino.label-format-50x30{--page-w:50mm;--page-h:30mm;--label-w:47mm;--label-h:27mm;--logo-w:8.5mm;--logo-h:6.2mm;--company-name:5.4pt;--company-text:3.8pt;--code-size:6.8pt;--meta-size:4.4pt;--name-size:7pt;--barcode-h:8.1mm;--barcode-text:4.4pt;}
body.v304-cliente-tesserino.label-format-40x30{--page-w:40mm;--page-h:30mm;--label-w:37mm;--label-h:27mm;--logo-w:8.5mm;--logo-h:6.2mm;--company-name:5.4pt;--company-text:3.8pt;--code-size:6.8pt;--meta-size:4.4pt;--name-size:7pt;--barcode-h:8.1mm;--barcode-text:4.4pt;}
body.v304-cliente-tesserino.label-format-58x40{--page-w:58mm;--page-h:40mm;--label-w:55mm;--label-h:37mm;}
body.v304-cliente-tesserino.label-format-63x38{--page-w:63mm;--page-h:38mm;--label-w:60mm;--label-h:35mm;}

/* Giornale: gli offset sono attualmente fissi nel controller (22 / 10 mm). */
body.v304-giornale-affari-stampa{--journal-data-top:22mm;--journal-data-left:10mm;}

/* Etichette da mandato: niente più <style> generato a runtime. */
@media print{
  body.v304-etichette.label-57x32{page:etichette_57x32!important}
  body.v304-etichette.label-62x29{page:etichette_62x29!important}
  body.v304-etichette.label-62x40{page:etichette_62x40!important}
  body.v304-etichette.label-50x30{page:etichette_50x30!important}
  body.v304-etichette.label-40x30{page:etichette_40x30!important}
  body.v304-etichette.label-58x40{page:etichette_58x40!important}
  body.v304-etichette.label-63x38{page:etichette_63x38!important}
  body.v304-etichette.label-a4{page:etichette_a4!important}
  @page etichette_57x32{size:57mm 32mm;margin:0}
  @page etichette_62x29{size:62mm 29mm;margin:0}
  @page etichette_62x40{size:62mm 40mm;margin:0}
  @page etichette_50x30{size:50mm 30mm;margin:0}
  @page etichette_40x30{size:40mm 30mm;margin:0}
  @page etichette_58x40{size:58mm 40mm;margin:0}
  @page etichette_63x38{size:63mm 38mm;margin:0}
  @page etichette_a4{size:A4;margin:8mm}
}

/* Stili prima scritti direttamente da JS. */
.mc-v314-filter-scaduti{margin-left:8px;white-space:nowrap}
.mc-v314-filter-scaduti-before{margin-left:0;margin-right:8px}
.mc-v314-filter-scaduti-top{margin:0 0 12px}
.mc-v314-bulk-row-select{display:inline-flex;align-items:center;gap:5px;margin:0 8px 6px 0;white-space:nowrap}
.mc-v314-bulk-state-form{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,45,80,.18)}
.mc-v314-bulk-title{margin:0 0 8px}
.mc-v314-bulk-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.mc-v314-bulk-state-label{min-width:210px}
.mc-v314-bulk-state-select{display:block;width:100%}
.mc-v314-bulk-note{margin:8px 0 0}
.mc-v314-pagination-hidden{display:none!important}
.ff-status-error-v314{background:#7d1717!important}
.ff-status-ok-v314{background:#202020!important}

/* V315: paginazione fisica robusta Etichette da mandato. */
body.v304-etichette .label-page{display:contents;}
@media print {
  body.v304-etichette:not(.label-a4){width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;}
  body.v304-etichette:not(.label-a4) .sheet{display:block!important;margin:0!important;padding:0!important;overflow:visible!important;}
  body.v304-etichette:not(.label-a4) .label-page{
    display:flex!important;
    width:var(--page-w)!important;
    height:var(--page-h)!important;
    margin:0!important;
    padding:1.6mm 0 0!important;
    box-sizing:border-box!important;
    align-items:flex-start!important;
    justify-content:center!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    break-before:auto!important;
    page-break-before:auto!important;
    break-after:page!important;
    page-break-after:always!important;
    overflow:hidden!important;
  }
  body.v304-etichette:not(.label-a4) .label-page:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
  body.v304-etichette:not(.label-a4) .label-page .label{
    position:static!important;
    transform:none!important;
    margin:0!important;
  }
  body.v304-etichette.label-a4 .label-page{display:contents!important;}
}

/* ===== Mercantico V321: scanner QR/barcode con fotocamera ===== */
.qr-camera-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
.qr-camera-box{position:relative;width:min(560px,100%);aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:#111;border:1px solid #cfd8df;margin:10px 0}
.qr-camera-video{display:block;width:100%;height:100%;object-fit:cover;background:#111}
.qr-camera-frame{position:absolute;left:50%;top:50%;width:min(66%,300px);aspect-ratio:1/1;transform:translate(-50%,-50%);border:4px solid #fff;border-radius:18px;box-shadow:0 0 0 9999px rgba(0,0,0,.16);pointer-events:none}
.qr-camera-status{max-width:760px;margin:10px 0;padding:10px 12px;border-radius:10px;background:#eef5f7;border:1px solid #cadde1;font-weight:750;line-height:1.35}
.qr-camera-status.success{background:#eaf7ef;border-color:#b9ddc5;color:#155c35}
.qr-camera-status.error{background:#fff0f0;border-color:#e2b8b8;color:#8a2525}
.qr-camera-status.info{background:#eef5f7;border-color:#cadde1;color:#274b59}
@media(max-width:700px){.qr-camera-actions{display:grid;grid-template-columns:1fr}.qr-camera-actions .btn{width:100%}.qr-camera-box{width:100%;aspect-ratio:3/4;max-height:68vh}.qr-camera-frame{width:min(72vw,280px)}}

/* ===== Mercantico V322: azioni vendite cliente senza sovrapposizione ===== */
/* Tre azioni (visualizza, stampa, elimina) devono rimanere interamente nella colonna Azioni. */
.vendite-cliente-panel th.cliente-sale-actions-col,
.vendite-cliente-panel td.cliente-sale-actions-col{
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  padding-left:4px!important;
  padding-right:4px!important;
  box-sizing:border-box!important;
}
.vendite-cliente-panel .cliente-sale-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  overflow:visible!important;
}
.vendite-cliente-panel .cliente-sale-actions form{
  display:inline-flex!important;
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  margin:0!important;
}
.vendite-cliente-panel .cliente-sale-actions .v97-icon-btn{
  display:inline-flex!important;
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0!important;
  margin:0!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:14px!important;
  line-height:1!important;
  box-sizing:border-box!important;
}


/* ===== Mercantico V326: azioni cliente leggibili + quantità prenotazione modificabile ===== */
/* Il pannello ha larghezza reale ridotta dalla colonna laterale: cinque pulsanti in una sola riga erano troppo compressi. */
.v105-client-layout .v95-client-actions-row .mc-client-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
}
.v105-client-layout .v95-client-actions-row .mc-client-action{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-width:0!important;
  min-height:52px!important;
  padding:8px 10px!important;
  font-size:11px!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:visible!important;
}
.v105-client-layout .v95-client-actions-row .mc-client-action-icon{
  flex:0 0 auto!important;
  font-size:16px!important;
  line-height:1!important;
}
.v105-client-layout .v95-client-actions-row .mc-client-action-label{
  display:block!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-align:center!important;
}
/* La tabella vendite mantiene Visualizza, Stampa ed Elimina tutte dentro AZIONI. */
.vendite-cliente-panel .cliente-sale-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
/* Campo quantità prenotazione: leggibile e coerente con gli altri controlli del form. */
.booking-admin-form input[name="quantita"]{
  width:100%!important;
  min-height:42px!important;
  box-sizing:border-box!important;
}
@media(max-width:980px){
  .v105-client-layout .v95-client-actions-row .mc-client-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
  .v105-client-layout .v95-client-actions-row .mc-client-actions{grid-template-columns:1fr!important;}
}


/* ===== Mercantico V327: Visualizza rientra nella colonna Azioni ===== */
.sales-documents-table th.sales-documents-actions-col,
.sales-documents-table td.sales-documents-actions-col{
  width:112px!important;min-width:112px!important;max-width:112px!important;
  padding-left:6px!important;padding-right:6px!important;box-sizing:border-box!important;
}
.sales-documents-table .sale-row-actions.v97-inline-icon-actions{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-start!important;gap:5px!important;
  min-width:0!important;width:auto!important;
}
.sales-documents-table .sale-row-actions.v97-inline-icon-actions form{
  display:inline-flex!important;margin:0!important;flex:0 0 30px!important;
}
.sales-documents-table .sale-row-actions.v97-inline-icon-actions .v97-icon-btn{
  width:30px!important;min-width:30px!important;max-width:30px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  padding:0!important;margin:0!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;font-size:14px!important;line-height:1!important;
}


/* ===== Mercantico V328: note cliente in alto ===== */
.v105-client-layout .cliente-toolbar-principale .cliente-note-top{
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid #dbe4ec!important;
}
.v105-client-layout .cliente-toolbar-principale .cliente-note-top label{
  font-size:11px!important;
  font-weight:800!important;
}
.v105-client-layout .cliente-toolbar-principale .cliente-note-top textarea{
  min-height:78px!important;
  width:100%!important;
}


/* ==========================================================================
   MERCANTICO V335 — ETICHETTA ARTICOLO: BARCODE SX / CODICE DX
   Baseline: CORE V334. Nessuna nuova sorgente CSS: regole nel solo admin.css.
   La fascia inferiore mantiene barcode e codice separati per una lettura piu'
   chiara sulle etichette DYMO e sugli altri formati supportati.
   ========================================================================== */
body.v304-etichette .barcodebox,
body.v304-qr-articolo .barcode-print{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(8.5mm,28%)!important;
  align-items:center!important;
  column-gap:.8mm!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.v304-etichette .barcode-graphic,
body.v304-qr-articolo .barcode-graphic{
  min-width:0!important;
  overflow:hidden!important;
}
body.v304-etichette .barcode-graphic svg,
body.v304-qr-articolo .barcode-graphic svg{
  width:100%!important;
  height:var(--barcode-h)!important;
  display:block!important;
  shape-rendering:crispEdges!important;
}
body.v304-etichette .barcode-code,
body.v304-qr-articolo .barcode-code{
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  align-self:center!important;
  justify-self:stretch!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:7.2pt!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:0!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
body.v304-etichette.label-40x30 .barcodebox,
body.v304-etichette.label-50x30 .barcodebox,
body.v304-etichette.label-62x29 .barcodebox,
body.v304-qr-articolo.f40x30 .barcode-print,
body.v304-qr-articolo.f50x30 .barcode-print,
body.v304-qr-articolo.f62x29 .barcode-print{
  grid-template-columns:minmax(0,1fr) minmax(7.5mm,27%)!important;
  column-gap:.55mm!important;
}
body.v304-etichette.label-40x30 .barcode-code,
body.v304-etichette.label-50x30 .barcode-code,
body.v304-etichette.label-62x29 .barcode-code,
body.v304-qr-articolo.f40x30 .barcode-code,
body.v304-qr-articolo.f50x30 .barcode-code,
body.v304-qr-articolo.f62x29 .barcode-code{
  font-size:6.2pt!important;
}
