/* FC-01: isolated dense UI. Does not change GU styles. */
.fc-shell{--fc-border:#c6d5df;--fc-bg:#fff;--fc-ink:#203447;--fc-blue:#125c89;--fc-tint:#eaf4fa;max-width:100%;color:var(--fc-ink);font:var(--font-lista)/1.4 var(--font-famiglia)}
.fc-shell *{box-sizing:border-box}
.fc-shell .fc-top{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#d5ebf7;padding:9px 12px;border:1px solid var(--fc-border);border-radius:7px;flex-wrap:wrap}
.fc-shell .fc-top strong{display:block;font-size:var(--font-medio);color:#175c83}.fc-shell .fc-top small{display:block;color:#527084}
.fc-shell .fc-top nav{display:flex;gap:4px;flex-wrap:wrap}
.fc-shell .fc-top nav a{padding:6px 9px;border-radius:5px;text-decoration:none;color:var(--fc-blue);font-size:var(--font-lista);font-weight:600}
.fc-shell .fc-top nav a:hover,.fc-shell .fc-top nav a.is-active{background:var(--fc-blue);color:#fff}
.fc-shell .fc-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 8px}
.fc-shell .fc-title h2{margin:0;font-size:var(--font-titolo);color:#174e71}
.fc-shell a{color:#12618a}.fc-shell .fc-primary{background:#13618e;color:white;border:0;border-radius:5px;padding:8px 12px;text-decoration:none;cursor:pointer;display:inline-block}
.fc-shell .fc-filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0}
.fc-shell input,.fc-shell select,.fc-shell textarea{font:inherit;border:1px solid #b9cbd6;background:white;color:#1d3142;border-radius:4px;padding:5px 6px;min-width:0;max-width:100%}
.fc-shell .fc-filters input{width:270px}.fc-shell button{border:1px solid #93b4c7;border-radius:4px;padding:5px 9px;cursor:pointer;background:#e7f1f6;color:#15547b;font-weight:600}
.fc-shell .fc-table-wrap{width:100%;overflow:auto;border:1px solid var(--fc-border);border-radius:5px;margin:9px 0;max-height:560px}
.fc-shell .fc-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:var(--font-piccolo);line-height:1.18}
.fc-shell .fc-table th{background:#d4ebf6;color:#20435b;position:sticky;top:0;z-index:2;text-align:left;padding:7px 7px;white-space:nowrap;border-bottom:1px solid #9bbccc}
.fc-shell .fc-table td{padding:4px 7px;border-bottom:1px solid #e9eded;white-space:nowrap;max-width:400px;text-overflow:ellipsis;overflow:hidden}
.fc-shell .fc-table tbody tr:nth-child(odd){background:#f4f3ef}.fc-shell .fc-table tbody tr:hover{background:#e8f8fc}
.fc-shell .fc-table .fc-group{background:#c1e4d3!important;color:#225438;font-weight:700}
.fc-shell .fc-table td a{font-weight:650;text-decoration:none}.fc-shell .fc-table .num{font-variant-numeric:tabular-nums;text-align:right}
.fc-shell .fc-badge{display:inline-block;min-width:25px;text-align:center;padding:2px 5px;font-size:var(--font-piccolo);font-weight:700;background:#dde4e8;border-radius:2px}
.fc-shell .fc-badge.yes{background:#498b35;color:#fff}.fc-shell .fc-badge.no{background:#d63d43;color:#fff}
.fc-shell .fc-pages{display:flex;justify-content:flex-end;gap:14px;padding:8px}
.fc-shell .fc-product-grid{display:grid;grid-template-columns:minmax(300px,1.5fr) minmax(250px,1fr) minmax(160px,.65fr);gap:9px}
.fc-shell .fc-panel{border:1px solid var(--fc-border);border-radius:6px;background:#fff;padding:10px;margin:9px 0}
.fc-shell .fc-panel h3{margin:0 0 8px;font-size:var(--font-base);color:#15547a}.fc-shell .fc-panel p{margin:5px 0 10px}
.fc-shell .fc-product-grid>.fc-panel{margin:0}
.fc-shell .fc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 9px;align-items:end}
.fc-shell .fc-fields label{display:flex;flex-direction:column;min-width:0;gap:2px}
.fc-shell .fc-fields label>span{font-size:var(--font-piccolo);color:#63798a;font-weight:600}
.fc-shell .fc-fields input,.fc-shell .fc-fields select{width:100%}
.fc-shell .fc-flags{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}
.fc-shell .fc-check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:5px;font-size:var(--font-piccolo);white-space:nowrap}
.fc-shell .fc-check input{margin:0;accent-color:#276f96}
.fc-shell .fc-stacked{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.fc-shell .fc-stacked textarea{width:100%}.fc-shell .fc-metrics{display:grid;grid-template-columns:1fr;gap:4px;margin:10px 0;padding:7px;background:#f1f7fa}
.fc-shell .fc-metrics>div{display:flex;justify-content:space-between;gap:10px}.fc-shell .fc-metrics strong{color:#ac1c55}
.fc-shell .fc-photo-empty{height:150px;display:grid;place-items:center;background:#f5f7f8;border:1px dashed #b9cbd6;color:#8294a0}
.fc-shell .fc-photo-preview{width:100%;height:190px;object-fit:contain;background:#f5f7f8}
.fc-shell .fc-photo input[type=file]{max-width:100%;margin-top:10px}
.fc-shell .fc-tabs{display:flex;gap:2px;overflow:auto;margin-top:15px;border-bottom:2px solid #99aeba}
.fc-shell .fc-tabs a{background:#324451;color:#fff;text-decoration:none;font-weight:600;padding:9px 12px;white-space:nowrap}
.fc-shell .fc-tabs a.active{background:#edf4f8;color:#173f5a}
.fc-shell .fc-portal{margin-top:0;min-height:220px}.fc-shell .fc-warning{color:#a42d38;font-weight:600}
.fc-shell .fc-metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.fc-shell .fc-metric-row>div{padding:12px;background:#f1f7fa;border:1px solid var(--fc-border);border-radius:6px}
.fc-shell .fc-metric-row strong{display:block;font-size:var(--font-grande);color:#174e71}
@media(max-width:1100px){.fc-shell .fc-product-grid{grid-template-columns:1fr 1fr}.fc-shell .fc-photo{grid-column:span 2}.fc-shell .fc-metric-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.fc-shell .fc-product-grid{grid-template-columns:1fr}.fc-shell .fc-photo{grid-column:auto}.fc-shell .fc-fields{grid-template-columns:1fr}.fc-shell .fc-metric-row{grid-template-columns:1fr}}

.fc-shell .fc-product-grid>.fc-form{grid-column:span 2;display:grid;grid-template-columns:minmax(300px,1.5fr) minmax(250px,1fr);gap:9px}.fc-shell .fc-product-grid>.fc-form>.fc-panel{margin:0}
@media(max-width:1100px){.fc-shell .fc-product-grid>.fc-form{grid-column:span 2}}@media(max-width:650px){.fc-shell .fc-product-grid>.fc-form{grid-column:auto;grid-template-columns:1fr}}

.fc-shell .fc-product-form-grid{display:grid;grid-template-columns:minmax(300px,1.5fr) minmax(250px,1fr);gap:9px}.fc-shell .fc-product-form-grid>.fc-panel{margin:0}
@media(max-width:1100px){.fc-shell .fc-product-form-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.fc-shell .fc-product-form-grid{grid-template-columns:1fr}}

/* FC-01 r2: error is visible beside its original form; fields retain unsaved values. */
.fc-form-error{border:1px solid #b42318;background:#fff1f0;color:#7a271a;padding:12px 14px;border-radius:6px;line-height:1.45;margin:10px 0 14px;grid-column:1/-1}
.fc-warning{padding:10px;background:#fff3d6;border-left:3px solid #b87000}

/* FC-01: conti economici visualizzati con denominazione completa. */
.fc-shell .fc-table td.fc-account-label{white-space:normal;min-width:170px;max-width:320px;overflow:visible;text-overflow:clip;line-height:1.25}
.fc-shell .fc-missing-account{font-size:var(--font-piccolo);font-weight:700;color:#8e4300}
.fc-shell .fc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.fc-shell .fc-sort{display:inline-flex;gap:5px;align-items:center;color:inherit;text-decoration:none;border:1px solid transparent;border-radius:4px;padding:5px 3px;white-space:nowrap}.fc-shell .fc-sort:hover,.fc-shell .fc-sort:focus-visible{border-color:#51769a;background:#e7eef6}.fc-shell th[aria-sort=ascending] .fc-sort,.fc-shell th[aria-sort=descending] .fc-sort{color:#174f81;background:#e7eef6}.fc-search-help{font-size:var(--font-lista);line-height:1.5;color:#425c76}

.fc-shell .fc-record-limit{display:inline-flex;flex-direction:row;align-items:center;gap:7px;margin:0;font-size:var(--font-lista);white-space:nowrap}.fc-shell .fc-record-limit input{width:105px;min-width:80px}
