.book-area{min-width:0}.book-local{display:flex;justify-content:flex-end;margin:0 0 .5rem}.book-local label{font-size:.8rem;max-width:100%}.book-area input,.book-area select,.book-area textarea{padding:.3rem .4rem;min-height:32px;max-width:100%;min-width:0}.book-area label{font-size:.8rem;margin:0}.book-day{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}.book-date-controls,.book-counts,.book-command-row,.book-views,.book-actions{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap}.book-counts>span{padding:.3rem .45rem;border-radius:3px;font-size:.85rem}.book-total{background:#228a42;color:white}.book-seated{background:#218ba3;color:white}.book-area .btn{font-size:.8rem;padding:.3rem .5rem;min-height:32px;white-space:nowrap}.book-command-row{margin:.55rem 0}.book-command-row>label{margin-left:auto}.book-views{border-bottom:1px solid #bfc8cb;padding-bottom:.35rem}.book-views [aria-pressed=true]{background:#e7f2f5;border-color:#39839b;color:#173b49}.book-status-heading{font-size:.95rem;color:#23844a;border-bottom:1px solid #91bda5;padding:.25rem 0;margin:.65rem 0 .25rem}.book-table{overflow:auto;max-width:100%;margin:.3rem 0}.book-table table{width:100%;font-size:.8rem;min-width:780px}.book-table th{white-space:nowrap;background:#eee}.book-table th,.book-table td{padding:.3rem .4rem;vertical-align:middle}.book-table td small{display:block;font-size:.7rem}.book-table .book-note{white-space:normal;min-width:100px;max-width:240px}.book-actions{flex-wrap:nowrap}.book-row-seated td:first-child{border-left:3px solid #218ba3}.book-row-cancelled{color:#888}.book-row-no_show{color:#a63c25}.book-warning{padding:.55rem;background:#fff2c7;border:1px solid #c5a04a;border-radius:4px;margin:.4rem 0}.book-editor{padding:.55rem;border:1px solid #c5c8ca;border-radius:4px;background:#f2f4f4}.book-editor h2,.book-area h2{font-size:1.1rem;margin:.2rem 0 .6rem}.book-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem}.book-editor-grid label{display:flex;flex-direction:column;gap:.15rem}.book-wide{grid-column:1/-1}.book-editor .book-actions{margin-top:.5rem}.book-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin:.5rem 0}.book-module-grid>.check,.book-planned{padding:.5rem;border:1px solid #ccc;background:#f5f5f5;font-size:.8rem}.book-planned small{display:block;color:#777}.book-area .check{display:flex;gap:.4rem;align-items:center}.book-area .check input{width:15px;height:15px;min-height:15px;padding:0}.book-foot{font-size:.75rem;color:#6a6255}.book-timeline-scroll{overflow:auto;max-width:100%;border:1px solid #ccc;margin-top:.5rem}.book-timeline{padding:25px 15px 10px 110px}.book-time-head{position:relative;height:25px}.book-time-head span{position:absolute;font-size:.75rem;transform:translateX(-50%)}.book-time-row{position:relative;min-height:100px;border-top:1px solid #ddd}.book-time-row>strong{position:absolute;left:-100px;top:5px;max-width:95px;overflow-wrap:anywhere;font-size:.8rem}.book-time-slots{position:relative;height:95px;background:repeating-linear-gradient(90deg,#fff,#fff 59px,#eee 60px)}.book-time-booking{position:absolute;background:#c9eacb;color:#163b1c;border:1px solid #559158;border-radius:3px;font-size:.75rem;padding:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:28px;min-height:28px}.book-time-booking.seated{background:#b8e7f1;border-color:#398397}#content .book-table table{display:table!important}#content .book-table thead{display:table-header-group!important}#content .book-table tbody{display:table-row-group!important}#content .book-table tr{display:table-row!important}#content .book-table td,#content .book-table th{display:table-cell!important;width:auto!important}#content .book-table td:before{display:none!important}@media(max-width:900px){.book-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-command-row>label{margin-left:0}}@media(max-width:550px){.book-editor-grid,.book-module-grid{grid-template-columns:1fr}.book-local select{width:100%}.book-local{justify-content:stretch}.book-local label{width:100%}.book-counts{margin:.25rem 0}.book-area .btn{min-height:36px}.book-command-row>label{width:100%}}
/* Libro operativo: impaginazione familiare a ioordino, nella cornice della suite. */
.book-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem;align-items:start;margin:.2rem 0 .65rem;min-width:0}.book-controls{max-width:660px;width:100%;justify-self:center}.book-date-controls{display:grid;grid-template-columns:70px minmax(130px,1fr) 90px 100px;gap:3px}.book-date-controls>strong{font-weight:400;font-size:.9rem;text-align:center}.book-date-label{position:relative;display:flex;align-items:center;justify-content:center;background:#ffc107;border-radius:5px;min-height:40px;font-size:1.4rem!important;color:#171717}.book-date-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.book-service-controls{display:grid;grid-template-columns:1fr 1fr .7fr .7fr;gap:3px;margin-top:3px}.book-date-controls .btn,.book-service-controls .btn{min-height:40px;font-size:.95rem;background:#6c757d;color:#fff;border-color:#6c757d}.book-date-controls [data-book=today],.book-service-controls [aria-pressed=true]{background:#1269ee;border-color:#1269ee}.book-counts{margin:.3rem .6rem}.book-counts>span{border-radius:0;padding:.35rem .4rem;font-size:.85rem}.book-total{background:#188754}.book-seated{background:#0abddd}.book-command-row{justify-content:center;margin:.55rem 0}.book-command-row [data-book=new]{background:#dd3548;color:#fff;border-color:#dd3548;padding:.55rem .7rem;font-size:1rem}.book-arrivals{min-width:0;margin:0}.book-arrivals h2{font-size:.8rem;font-weight:500;color:#555;text-align:center;margin:0 0 .2rem}.book-chart-scroll{overflow:auto;max-width:100%}.book-chart-scroll svg{display:block;width:100%;height:225px}.book-chart-scroll text{font-family:inherit;font-size:10px;fill:#616161}.book-chart-scroll rect:focus{stroke:#202020;stroke-width:2}.book-views{gap:0;border-bottom:1px solid #d9dfe4;padding:0;flex-wrap:wrap}.book-views .btn{border:1px solid transparent;background:transparent;color:#0864d7;border-radius:5px 5px 0 0;padding:.65rem .85rem;font-size:.85rem}.book-views [aria-pressed=true]{border-color:#d9dfe4;border-bottom-color:#fff;background:#fff;color:#1f2328;margin-bottom:-1px}.book-search{margin:.5rem 0 .25rem}.book-search label{display:flex;align-items:center;gap:.6rem;color:#666}.book-search input{flex:1;background:#fff;border-color:#dfe2e6}.book-status-heading{color:#444;font-size:.85rem;margin:.4rem 0 .15rem;padding:.2rem 0;border:0}.book-status-group[data-book-status=seated]{margin-top:1rem;border-top:2px solid #1da0b5}.book-table{margin:.1rem 0 .4rem}.book-table table{border-collapse:collapse;min-width:790px;font-size:.82rem}.book-table th{background:#f6f7f8;color:#3f4850;font-weight:600}.book-table th,.book-table td{padding:.22rem .4rem!important;border:1px solid #e1e4e7;white-space:nowrap;line-height:1.3}.book-table .book-note{width:100%;max-width:300px;white-space:normal}.book-table th:first-child{min-width:160px}.book-area .book-name{padding:0!important;margin:0;border:0!important;background:transparent!important;color:#165482!important;font:inherit!important;min-height:26px;text-align:left;white-space:normal;max-width:300px}.book-area .book-actions{gap:3px;flex-wrap:nowrap}.book-area .book-actions .btn{padding:.2rem .4rem;min-height:30px;font-size:.72rem}.book-actions svg{width:19px;height:19px;display:block}.book-actions [data-book=edit]{color:#b57200;border-color:#d6ba83;background:#fff}.book-actions [data-book=seated]{color:#328a39;border-color:#8abd8e;background:#fff}.book-actions [data-book=cancelled]{color:#e23a48;border-color:#df9398;background:#fff}.book-size-heading{font-size:.9rem;margin:.5rem 0 .2rem;color:#285278}.book-empty{font-size:.85rem;color:#777;padding:.4rem}.book-time-legend{display:flex;gap:.7rem;flex-wrap:wrap;font-size:.75rem;margin:.5rem 0}.book-time-legend span:before{content:'';display:inline-block;width:12px;height:10px;margin-right:4px;border:1px solid #888}.book-time-legend .direct:before{background:#dc3038}.book-time-legend .indirect:before{background:#72777c}.book-time-legend .overlap:before{background:#6645b2}.book-time-legend .free:before{background:#c8edc7}.book-timeline-scroll{max-height:65vh;position:relative;isolation:isolate;margin:.3rem 0}.book-timeline{padding:0;min-width:100%}.book-time-head{position:sticky;top:0;z-index:4;height:32px;display:grid;grid-template-columns:110px 1fr;background:#f9fafb}.book-time-head>strong{position:sticky;left:0;z-index:5;background:#f9fafb;padding:7px;font-size:.8rem;border-right:1px solid #ccc}.book-time-head>div{position:relative;overflow:hidden}.book-time-head span{transform:none;top:8px;font-size:.72rem;padding-left:3px}.book-time-head .hour{font-weight:700}.book-time-row{display:grid;grid-template-columns:110px 1fr;min-height:34px;border-top:1px solid #ddd}.book-time-row>strong{position:sticky;left:0;top:auto;z-index:2;max-width:none;padding:7px;background:#f9fafb;border-right:1px solid #ccc;overflow-wrap:anywhere;font-size:.78rem}.book-time-slots{height:34px;background-color:#c8edc7;background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--book-step) - 1px),#a0bd9f calc(var(--book-step) - 1px),#a0bd9f var(--book-step)),repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--book-step)*4 - 2px),#67806a calc(var(--book-step)*4 - 2px),#67806a calc(var(--book-step)*4));}.book-time-booking{top:1px;height:32px;min-height:32px;border:1px solid #fff6;border-radius:0;font-size:.75rem;padding:3px 5px;color:white;font-weight:600;text-align:left}.book-time-booking.direct{background:#dc3038}.book-time-booking.indirect{background:#72777c}.book-time-booking.overlap{background:repeating-linear-gradient(135deg,#6645b2 0,#6645b2 6px,#7755c5 6px,#7755c5 10px)}.book-time-booking:focus-visible{outline:3px solid #161616;outline-offset:-3px}.book-local{margin-bottom:.2rem}.book-local select{min-height:30px}.book-local label{display:flex;gap:.5rem;align-items:center}.book-local select{max-width:480px}@media(max-width:1000px){.book-hero{grid-template-columns:1fr;gap:.4rem}.book-controls{max-width:640px}.book-chart-scroll svg{height:180px}.book-arrivals{max-width:100%}}@media(max-width:550px){.book-date-controls{grid-template-columns:42px minmax(105px,1fr) 65px 70px}.book-date-controls>strong{font-size:.74rem}.book-date-controls .btn,.book-service-controls .btn{font-size:.8rem;padding:.3rem}.book-views .btn{font-size:.75rem;padding:.5rem}.book-search label{display:block}.book-search input{display:block;width:100%}.book-area .book-actions .btn{min-height:36px}.book-local label{display:block}.book-local select{max-width:100%}.book-chart-scroll svg{height:170px}}
/* Selettore date condiviso tra libro e inserimento. */
.book-date-navigator{position:relative;min-width:0}.book-date-controls .book-calendar-open{background:#ffc107;border-color:#ffc107;color:#171717}.book-date-controls .book-selected-date{background:transparent;color:#252525;border-color:#ddd;font-size:.85rem;font-weight:400;white-space:normal}.book-date-controls .btn[aria-pressed=true],.book-service-controls .btn[aria-pressed=true]{background:#1269ee;border-color:#1269ee;color:#fff}.book-date-controls .btn svg,.book-service-controls .btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;vertical-align:middle}.book-service-controls{grid-template-columns:2fr 2fr 1fr 1fr}.book-service-controls .book-service-toggle{color:#ffe600}.book-service-controls .book-service-toggle.day{background:#147e92;border-color:#147e92}.book-service-controls .book-service-toggle.evening{background:#212529;border-color:#212529}.book-calendar-input{position:absolute;left:0;top:40px;width:1px;height:1px;opacity:0;pointer-events:none;padding:0!important;border:0;min-height:0!important}.book-calendar-input.book-calendar-fallback{position:static;opacity:1;width:100%;height:auto;min-height:32px!important;pointer-events:auto;margin-top:.3rem;border:1px solid #aaa;padding:.3rem!important}.book-editor-date{display:grid;grid-template-columns:minmax(0,580px) minmax(110px,160px);gap:.6rem;align-items:center;margin:.4rem 0 .8rem}.book-editor-date>label{display:flex;flex-direction:column;gap:.2rem}.book-editor-essentials{display:grid;grid-template-columns:minmax(0,3fr) minmax(80px,1fr) minmax(100px,1fr);gap:.45rem}.book-editor-essentials label,.book-editor-table label{display:flex;flex-direction:column;gap:.2rem}.book-editor-table{max-width:290px;margin:.45rem 0}.book-advanced{margin:.6rem 0;padding:.4rem .5rem;border:1px solid #ccd1d3;border-radius:4px;background:#fff}.book-advanced summary{cursor:pointer;font-size:.85rem;color:#285278;padding:.2rem}.book-advanced .book-editor-grid{margin-top:.5rem;grid-template-columns:repeat(3,minmax(0,1fr))}.book-editor .book-actions{margin-top:.7rem}@media(max-width:700px){.book-editor-date{grid-template-columns:1fr}.book-editor-date>label{max-width:180px}.book-editor-essentials{grid-template-columns:repeat(2,minmax(0,1fr))}.book-editor-essentials>label:first-child{grid-column:1/-1}.book-advanced .book-editor-grid{grid-template-columns:1fr}.book-date-controls .book-selected-date{font-size:.73rem}.book-editor{padding:.4rem}}
.book-date-controls [data-book=today][aria-pressed=false]{background:#6c757d;border-color:#6c757d;color:#fff}
.book-capacity{border:1px solid #ccd1d3;border-radius:4px;margin:.6rem 0;padding:.4rem .5rem;background:#fff}.book-capacity summary{cursor:pointer;color:#285278;font-size:.9rem;padding:.2rem}.book-capacity>p{font-size:.8rem;margin:.35rem 0}.book-capacity-controls,.book-service-limits{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0}.book-capacity label{display:flex;flex-direction:column;gap:.15rem}.book-capacity-table{max-height:350px}.book-capacity-table table{min-width:380px}.book-capacity-table th{position:sticky;top:0;z-index:1}.book-capacity-table td:last-child input{max-width:170px}.book-capacity-table th:first-child{min-width:90px}@media(max-width:550px){.book-capacity-controls>label,.book-service-limits>label{flex:1 1 130px}.book-capacity-table table{min-width:340px}}
.book-duration{border:1px solid #ccd1d3;border-radius:4px;margin:.6rem 0;padding:.4rem .5rem;background:#fff}.book-duration summary{cursor:pointer;color:#285278;font-size:.9rem;padding:.2rem}.book-duration>p{font-size:.8rem;margin:.35rem 0}.book-duration-table table{min-width:850px}.book-duration-table th:first-child{min-width:85px}.book-duration-table input{width:78px;min-width:65px}.book-duration-copy{display:flex;flex-wrap:wrap;gap:.5rem;align-items:end;margin:.4rem 0}.book-duration-copy>label{display:flex;flex-direction:column}.book-duration-copy fieldset{display:flex;gap:.4rem;flex-wrap:wrap;padding:.3rem;border:1px solid #ccc}.book-duration-copy legend{font-size:.75rem;width:auto;margin:0}.book-duration [data-book=duration-remove]{color:#c22}
.book-availability{border:1px solid #ccd1d3;border-radius:4px;margin:.6rem 0;padding:.4rem .5rem;background:#fff}.book-availability summary{cursor:pointer;color:#285278;font-size:.9rem;padding:.2rem}.book-availability>p{font-size:.8rem;margin:.35rem 0}.book-availability h3{font-size:.95rem;margin:.6rem 0 .3rem}.book-availability input[type=time]{min-width:110px}.book-availability input[type=date]{min-width:130px}.book-availability [data-book=availability-remove]{color:#c22}
.book-profiles,.book-profile-metadata{border:1px solid #ccd1d3;border-radius:4px;margin:.6rem 0;padding:.4rem .5rem;background:#fff}.book-profiles summary{cursor:pointer;color:#285278;font-size:.9rem;padding:.2rem}.book-profiles p{font-size:.8rem;margin:.35rem 0}.book-profile-metadata label{display:flex;flex-direction:column;gap:.2rem}.book-profile-weekdays{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0}.book-profile-metadata .check{flex-direction:row}.book-global-rules[hidden]{display:none}.book-profiles [data-book=profile-assignment-remove]{color:#c22}
.book-live{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;font-size:.75rem;margin:.2rem 0 .4rem}.book-live .connected{color:#23713c}.book-live .disconnected{color:#876129}.book-live:empty{display:none}
.book-editor-table{max-width:none;display:grid;grid-template-columns:minmax(110px,240px) minmax(0,1fr);gap:.45rem}.book-editor-table textarea{height:34px;min-height:34px;max-height:34px;resize:none;white-space:pre;overflow:auto}.book-duration>label{display:flex;flex-direction:column;max-width:230px;margin:.4rem 0}.book-chart-scroll [data-book-axis]{font-size:12px;fill:#333}@media(max-width:550px){.book-editor-table{grid-template-columns:minmax(85px,1fr) minmax(0,2fr)}}
.book-capacity [data-book=slot-remove]{color:#c22;border-color:#df9398;background:#fff}.book-capacity [data-book-slot-time]{min-width:125px}.book-capacity-table table{min-width:420px}
.book-capacity-controls [data-book=slot-add]{align-self:flex-end;min-height:32px;height:34px}
.book-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.35rem .45rem;margin:.3rem 0;border:1px solid #ccd1d3;background:#fff;border-radius:4px;min-height:42px}.book-selected-label{font-size:.8rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-selection-bar .book-actions{flex:0 0 auto}.book-selection-bar button:disabled{opacity:.4;cursor:not-allowed}.book-table [data-book-row]{cursor:pointer}.book-table [data-book-row]:focus-visible{outline:2px solid #1668c4;outline-offset:-2px}#content .book-table tr.book-row-selected>td{background:#f3d7c6!important;color:#262626!important;--bs-table-bg:#f3d7c6;--bs-table-accent-bg:#f3d7c6;--bs-table-striped-bg:#f3d7c6;box-shadow:none}.book-row-selected td:first-child{border-left:3px solid #d42d2d!important}.book-selection-bar .book-actions .btn{min-width:32px}@media(max-width:550px){.book-selection-bar{padding:.3rem;gap:.3rem}.book-selection-bar .book-actions .btn{min-width:34px;min-height:36px}.book-selected-label{font-size:.73rem}}
.book-section-head{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:.4rem 0 .15rem}.book-section-head .book-status-heading{flex:0 0 auto;margin:0}.book-section-head .book-selection-bar{flex:1 1 240px;min-width:0;margin:0}.book-section-head .book-actions [data-book=booked]{min-width:36px}.book-status-group{margin-bottom:.55rem}@media(max-width:550px){.book-section-head{gap:.2rem}.book-section-head .book-status-heading{flex-basis:100%}.book-section-head .book-selection-bar{flex-basis:100%}}
.book-status-group+.book-status-group{margin-top:1.25rem;padding-top:.7rem;border-top:1px solid #c8cdd1}.book-status-group+.book-status-group .book-section-head{margin-top:0}
.book-selection-bar{justify-content:flex-end}
.book-customer-view form{display:flex;align-items:end;flex-wrap:wrap;gap:.5rem}.book-customer-view label{display:flex;flex-direction:column;gap:.2rem;min-width:200px}.book-customer-card{margin:.6rem 0;padding:.55rem;border:1px solid #ccd1d3;border-radius:4px;background:#fff;min-width:0;max-width:100%}.book-customer-card[hidden]{display:none}.book-customer-stats{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;font-size:.85rem}.book-customer-stats span{border:1px solid #d5d9dc;padding:.25rem .4rem;border-radius:3px;background:#f5f7f8}.book-customer-stats strong{flex:1 1 190px}.book-customer-card .book-table table{min-width:650px}

.book-audit{margin-top:1rem}.book-audit article{padding:.5rem;border-bottom:1px solid #ddd}.book-audit ul{margin:.25rem 0;padding-left:1rem}
