:root{color:#1b1f24;background:#f6f7f9;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4}*,:before,:after{box-sizing:border-box}body{margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit;color:inherit}.app-shell{width:min(640px,100%);min-height:100dvh;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex}h1{overflow-wrap:anywhere;margin:4px 0 0;font-size:1.5rem;line-height:1.2}.panel{flex-direction:column;gap:16px;display:flex}.file-actions{gap:8px;display:flex}.button,.primary,.tag,.doc-row{min-height:44px}.button,.primary{color:#1f3a5f;text-align:center;cursor:pointer;background:#fff;border:1px solid #1f3a5f;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;display:inline-flex;position:relative}.file-actions .button{flex:1}.primary{color:#fff;background:#1f3a5f;font-weight:700}.primary:disabled{opacity:.45;cursor:not-allowed}.field{flex-direction:column;gap:8px;display:flex}.field label,.field>span{font-weight:600}textarea,input[type=search]{background:#fff;border:1px solid #c5ced8;border-radius:10px;width:100%;padding:12px}.login-form input{background:#fff;border:1px solid #c5ced8;border-radius:10px;width:100%;min-height:44px;padding:12px}textarea{resize:vertical;min-height:96px}.counter,.muted{color:#5c6770;margin:0;font-size:.9rem}.folder-tabs,.tag-list{flex-wrap:wrap;gap:8px;display:flex}.folder-tab{flex:calc(50% - 4px);min-width:calc(50% - 4px);max-width:100%}.folder-tab[aria-pressed=true]{color:#fff;background:#1f3a5f;font-weight:700}.inbox-badge{color:#135c2f;background:#e5f4ea;border-radius:999px;align-self:flex-start;padding:2px 8px;font-size:.85rem;font-weight:700}.detail-files{flex-direction:column;gap:16px;margin:0;padding:0;list-style:none;display:flex}.detail-file{flex-direction:column;align-items:stretch;gap:8px;min-width:0;display:flex}.detail-file .button{align-self:stretch;width:100%}a.button{text-decoration:none}.tag{cursor:pointer;background:#fff;border:1px solid #c5ced8;border-radius:999px;align-items:center;gap:6px;padding:8px 12px;display:inline-flex}.tag[aria-pressed=true]{border-color:#1f3a5f;font-weight:700;box-shadow:inset 0 0 0 1px #1f3a5f}.tag-check{font-weight:700}.preview,.file-card,.pdf-open{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.preview img,.detail img{background:#e7ebf0;border-radius:10px;width:auto;max-width:100%;height:auto;display:block}.preview img,.thumb{object-fit:contain;max-height:180px}.detail img{object-fit:contain;max-height:70vh}.detail-file img.detail-image{width:100%;max-width:100%;height:auto;max-height:none}.file-name{overflow-wrap:anywhere;margin:0;font-weight:600}.pdf-icon{flex:none;width:48px;height:64px}.thumb{object-fit:cover;background:#e7ebf0;border-radius:8px;width:64px;height:64px}.notice,.error,.empty{border-radius:10px;margin:0;padding:12px}.notice{color:#135c2f;background:#e5f4ea}.error{color:#8d1d1d;overflow-wrap:anywhere;background:#fde8e8}.empty{background:#fff;border:1px dashed #c5ced8}.doc-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.doc-row{text-align:left;cursor:pointer;background:#fff;border:1px solid #d5dbe3;border-radius:12px;align-items:center;gap:12px;width:100%;padding:10px;display:flex}.doc-body{flex-direction:column;gap:2px;min-width:0;display:flex}.doc-time{color:#5c6770;font-size:.85rem}.doc-tags{overflow-wrap:anywhere;font-weight:600}.doc-excerpt{overflow-wrap:anywhere}.detail-title{overflow-wrap:anywhere;margin:0;font-size:1.15rem}.detail-tags{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.detail-tags li{border:1px solid #1f3a5f;border-radius:999px;padding:6px 10px;font-weight:600}.detail-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.pdf-open{flex-direction:row;align-items:center}.pdf-open a{color:#1f3a5f;align-items:center;min-height:44px;font-weight:700;display:inline-flex}.file-fallback{border:1px solid #1f3a5f;border-radius:8px;justify-content:center;align-items:center;width:64px;height:64px;font-size:.75rem;font-weight:700;display:inline-flex}.topbar{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.topbar h1{margin:0}.home-actions{flex-direction:column;gap:12px;margin-top:16px;display:flex}.home-action{width:100%;min-height:64px}.login-form .primary{width:100%}.info{margin:0}.link{color:#1f3a5f;text-align:center;cursor:pointer;background:0 0;border:0;min-height:44px;padding:10px 8px;font-weight:700;text-decoration:underline}.link:disabled{opacity:.45;cursor:not-allowed}.topbar .link{text-align:right;margin-left:auto}.logout-link{align-self:center;margin-top:auto}.app-shell>.button{align-self:flex-start;margin-bottom:16px}.button:disabled,.tag:disabled,textarea:disabled,select:disabled,input:disabled{opacity:.45;cursor:not-allowed}.button:has(input:disabled){opacity:.45;cursor:not-allowed}.button:has(input:disabled){pointer-events:none}.file-grid{grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.file-tile{flex-direction:column;align-items:flex-start;gap:8px;min-width:0;display:flex}.panel>.button,form.panel>.button{align-self:flex-start}.file-tile .button{width:100%}.received{flex-direction:column;align-items:flex-start;gap:16px;display:flex}.received-mark{color:#135c2f;background:#e5f4ea;border-radius:50%;place-items:center;width:64px;height:64px;margin:8px 0 0;font-size:2rem;line-height:1;display:grid}.received .primary,.received .button{width:100%}:focus-visible{outline-offset:2px;outline:3px solid #1f3a5f}.app-shell-screen{top:var(--vv-offset-top,0px);width:min(640px,100%);height:var(--vvh,100dvh);background:#f6f7f9;min-height:0;margin-inline:auto;padding:0;position:fixed;left:0;right:0;overflow:hidden}.app-shell-screen>.received{min-height:0;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));flex:1;overflow-y:auto}.screen,.upload-screen{background:#f6f7f9;flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.screen-header{box-sizing:border-box;height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 8px 0;z-index:2;background:#f6f7f9;border-bottom:1px solid #d5dbe3;flex:none;align-items:center;gap:4px;display:flex}.screen-header-back{color:#1f3a5f;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;padding:0;display:inline-flex}.screen-header-back:disabled{opacity:.45;cursor:not-allowed}.screen-header h1{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:1.25rem;line-height:1.2;overflow:hidden}.chevron,.capture-icon,.type-icon{flex:none;width:24px;height:24px}.screen-scroll{flex-direction:column;flex:1;gap:16px;min-height:0;padding:16px;display:flex;overflow-y:auto}.type-row{text-align:left;cursor:pointer;background:#fff;border:1px solid #c5ced8;border-radius:10px;flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:48px;margin:12px 16px 0;padding:8px 12px;display:flex}.type-row:disabled{opacity:.45;cursor:not-allowed}.type-row-label{font-weight:600}.type-row-value{align-items:center;gap:4px;min-width:0;display:inline-flex}.type-row-current{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.type-row-value.is-empty{color:#8a949c}.upload-actions{flex:none;padding:12px 16px 0}.pages-area{flex-direction:column;flex:auto;gap:8px;min-height:0;padding:12px 16px;display:flex;overflow-y:auto}.page-grid{gap:8px;margin:0;padding:0;list-style:none;display:grid}.page-grid[data-columns="1"]{grid-template-columns:minmax(0,1fr)}.page-grid[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.page-grid[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.page-tile{aspect-ratio:3/4;min-width:0;position:relative}.page-media{background:#e7ebf0;border-radius:8px;position:absolute;inset:0;overflow:hidden}.page-thumb{object-fit:cover;background:#e7ebf0;border-radius:8px;width:100%;height:100%;max-height:none;display:block}.page-pdf{background:#e7ebf0;flex-direction:column;justify-content:center;align-items:center;gap:8px;height:100%;padding:36px 8px 12px;display:flex}.page-pdf .pdf-icon{width:36px;height:48px}.page-name{-webkit-line-clamp:2;line-clamp:2;text-align:center;-webkit-box-orient:vertical;max-width:100%;display:-webkit-box;overflow:hidden}.page-open{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:0;display:block;position:absolute;inset:0}.page-open:disabled{opacity:1;cursor:not-allowed}.page-index{z-index:1;pointer-events:none;color:#1b1f24;background:#fff;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:.75rem;font-weight:700;line-height:1;display:grid;position:absolute;top:8px;left:8px}.page-remove{z-index:1;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;top:0;right:0}.page-remove:disabled{opacity:.45;cursor:not-allowed}.page-remove-mark{color:#fff;background:#1b1f24;border-radius:50%;place-items:center;width:24px;height:24px;font-size:16px;line-height:1;display:grid}.upload-footer,.screen-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#f6f7f9;border-top:1px solid #d5dbe3;flex-direction:column;flex:none;gap:8px;display:flex}.upload-footer .primary,.screen-footer .primary,.screen-footer .button{width:100%;min-height:48px}.note-input{resize:none;min-height:calc(2.8em + 24px);max-height:calc(7em + 24px);line-height:1.4;overflow-y:auto}.note-input::placeholder{color:#8a949c}.sheet-backdrop{z-index:30;background:#0006;position:fixed;inset:0}.sheet{z-index:31;background:#fff;border-radius:16px 16px 0 0;flex-direction:column;width:min(640px,100%);max-height:80dvh;margin-inline:auto;animation:.2s ease-out sheet-up;display:flex;position:fixed;bottom:0;left:0;right:0}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.sheet-handle{background:#c5ced8;border-radius:999px;width:36px;height:4px;margin:8px auto 4px}.sheet-top{justify-content:space-between;align-items:center;gap:12px;padding:0 8px 8px 16px;display:flex}.sheet-top h2{margin:0;font-size:1.1rem}.sheet-done{color:#1f3a5f;cursor:pointer;background:0 0;border:0;min-width:44px;min-height:44px;padding:8px 12px;font-weight:700}.sheet-list{min-height:0;padding:0 0 calc(8px + env(safe-area-inset-bottom));margin:0;list-style:none;overflow-y:auto}.sheet-option{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 16px;display:flex}.sheet-option-label{flex:1;min-width:0}.sheet-check{font-weight:700}.page-preview{z-index:40;color:#fff;background:#000;flex-direction:column;display:flex;position:fixed;inset:0;overflow:hidden}.page-preview-top{box-sizing:border-box;height:calc(56px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);z-index:2;background:#0009;flex:none;align-items:center;display:flex;position:relative}.page-preview-close,.page-preview-arrow,.page-preview-action{color:#fff;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.page-preview-count{margin:0;font-weight:600;line-height:1;position:absolute;left:50%;transform:translate(-50%)}.page-preview-track{scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;flex:auto;min-width:0;min-height:0;display:flex;overflow:auto hidden}.page-preview-track::-webkit-scrollbar{display:none}.page-preview-page{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 100%;justify-content:center;align-self:stretch;align-items:center;min-width:0;display:flex;position:relative}.page-preview-image{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.page-preview-pdf{flex-direction:column;justify-content:center;align-items:center;gap:12px;max-width:100%;padding:16px;display:flex}.page-preview-pdf-icon{place-items:center;display:grid}.page-preview-pdf-icon .pdf-icon{width:72px;height:96px}.page-preview-filename{overflow-wrap:anywhere;text-align:center;max-width:100%;margin:0}.page-preview-open{color:#1b1f24;cursor:pointer;background:#fff;border:0;border-radius:10px;min-width:44px;min-height:44px;padding:8px 16px;font-weight:700}.page-preview-arrow{z-index:3;position:absolute;top:50%;transform:translateY(-50%)}.page-preview-arrow.is-prev{left:4px}.page-preview-arrow.is-next{right:4px}.page-preview-arrow-mark{background:#00000073;border-radius:50%;place-items:center;display:grid}.preview-icon{flex:none;width:24px;height:24px}.page-preview-error{flex:none;margin:0 16px 8px}.page-preview-bottom{padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:2;background:#0009;flex:none;gap:8px;display:flex}.page-preview-action{flex:1;gap:8px;min-width:44px;min-height:44px;padding:8px}.backoffice-header{padding-left:16px;padding-right:8px}.backoffice-header h1{flex:1;min-width:0}.backoffice-header .link{flex:none;margin-left:auto}.client-section-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.client-section-head h2{margin:0;font-size:1.25rem}.client-section-head .primary{flex:none;min-height:44px}.client-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.client-row{text-align:left;cursor:pointer;background:#fff;border:1px solid #d5dbe3;border-radius:12px;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-width:0;min-height:44px;padding:10px 12px;display:flex}.client-row.is-expired{color:#8d1d1d;background:#fde8e8;border-color:#8d1d1d}.client-company,.client-expired{overflow-wrap:anywhere;font-weight:700}.client-edit{align-self:flex-start}.detail-fields{flex-direction:column;gap:12px;margin:0;display:flex}.detail-fields dt{font-weight:600}.detail-fields dd{overflow-wrap:anywhere;margin:4px 0 0}.detail-pre{white-space:pre-wrap}.client-form .field{min-width:0}.client-form input,.client-form select,.client-form textarea{background:#fff;border:1px solid #c5ced8;border-radius:10px;width:100%;min-width:0;max-width:100%;min-height:44px;padding:12px}.client-form textarea{resize:vertical;min-height:96px}.client-documents{flex-direction:column;gap:12px;min-width:0;display:flex}.client-documents h2{margin:0;font-size:1.25rem}.doc-manage{flex-direction:column;gap:12px;min-width:0;display:flex}.doc-manage .button,.doc-manage .primary,.doc-manage select,.doc-manage input{width:100%;min-height:44px}.doc-manage select,.doc-manage input{background:#fff;border:1px solid #c5ced8;border-radius:10px;padding:12px}.confirm-dialog{z-index:31;width:min(608px,100% - 32px);padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom));background:#fff;border-radius:16px;flex-direction:column;gap:12px;margin-inline:auto;display:flex;position:fixed;bottom:16px;left:16px;right:16px}.confirm-dialog p{overflow-wrap:anywhere;margin:0}.confirm-dialog .button{width:100%;min-height:44px}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}
