:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1e2925;background:#f8f8f3;font-synthesis:none;text-rendering:optimizeLegibility;--app-bg: #f8f8f3;--surface: #fffefa;--surface-muted: #f3f4ee;--ink: #1e2925;--ink-muted: #68736d;--line: #e1e5dc;--line-strong: #cdd5ca;--accent: #18544b;--accent-dark: #103e37;--accent-soft: #e4f0ea;--danger: #ad4a45;--danger-soft: #fbeceb;--success: #286a4c;--warning: #886117;--pastel-sage: #e5f0e7;--pastel-blue: #e7f0f5;--pastel-lavender: #eee9f6;--pastel-peach: #f9ece3;--pastel-yellow: #f8f1d8;--pastel-rose: #f7e9ec;--radius-sm: 9px;--radius-md: 15px;--radius-lg: 22px;--shadow: 0 12px 30px rgb(32 52 43 / 6%)}*{box-sizing:border-box}html{min-width:320px;background:var(--app-bg)}body{margin:0;min-width:320px;min-height:100vh;background:var(--app-bg)}button,input,select{font:inherit}button,select{cursor:pointer}button:disabled,select:disabled{cursor:not-allowed;opacity:.55}a{color:inherit}h1,h2,p{margin-top:0}h1{margin-bottom:8px;font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.15;letter-spacing:-.025em}h2{margin-bottom:16px;font-size:1.08rem;line-height:1.3}:focus-visible{outline:3px solid #77a99b;outline-offset:2px}.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}.skip-link{position:fixed;z-index:100;top:8px;left:8px;transform:translateY(-150%);padding:10px 14px;color:#fff;background:#172033;border-radius:var(--radius-sm)}.skip-link:focus{transform:translateY(0)}.muted{color:var(--ink-muted)}.eyebrow{margin-bottom:8px;color:var(--accent);font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.preserve-lines{white-space:pre-wrap}.align-right{text-align:right}.amount{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border:1px solid transparent;border-radius:var(--radius-sm);font-weight:700;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.button--primary{color:#fff;background:var(--accent)}.button--primary:hover{background:var(--accent-dark)}.button--secondary{color:#2d3c58;background:#fff;border-color:var(--line-strong)}.button--secondary:hover:not(:disabled){border-color:#9ba9bc;background:var(--surface-muted)}.button--ghost{color:#34425d;background:transparent}.button--ghost:hover{color:var(--accent-dark);background:var(--accent-soft)}.button--full{width:100%}.button--danger:hover{background:#8f1e16}.button--danger-ghost{color:var(--danger);background:#fff;border-color:#e5b9b4}.button--danger-ghost:hover{background:var(--danger-soft)}.field{min-width:0;display:flex;flex-direction:column;gap:7px}.field label,.organization-switcher label{color:#44516a;font-size:.78rem;font-weight:750}.field input,.field select,.field textarea,.organization-switcher select{width:100%;min-height:42px;padding:8px 11px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:var(--radius-sm)}.field textarea{resize:vertical;line-height:1.5}.field input:hover,.field select:hover,.field textarea:hover,.organization-switcher select:hover{border-color:#9ba9bc}.field-error{color:var(--danger);font-size:.78rem;font-weight:650}.field-hint,.field-status{color:var(--ink-muted);font-size:.76rem}.app-shell{min-height:100vh}.topbar{position:sticky;z-index:20;top:0;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px clamp(20px,4vw,52px);background:#fffffff5;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar__brand-row,.topbar__context{display:flex;align-items:center;gap:22px}.brand{display:inline-flex;align-items:center;gap:9px;color:#1d2a44;font-size:1.08rem;font-weight:850;letter-spacing:.02em;text-decoration:none}.brand__mark,.login-brand span{width:34px;height:34px;display:inline-grid;place-items:center;color:#fff;background:var(--accent);border-radius:9px}.nav-link{min-height:42px;display:inline-flex;align-items:center;padding:8px 13px;color:#56627a;border-radius:var(--radius-sm);font-weight:700;text-decoration:none}.nav-link:hover,.nav-link--active{color:var(--accent-dark);background:var(--accent-soft)}.organization-current{max-width:260px;display:flex;flex-direction:column;line-height:1.2}.organization-current__label{color:var(--ink-muted);font-size:.7rem}.organization-current strong{overflow:hidden;font-size:.86rem;text-overflow:ellipsis;white-space:nowrap}.organization-switcher{min-width:210px;display:flex;flex-direction:column;gap:3px}.organization-switcher select{min-height:38px;padding-block:5px}.user-chip{max-width:220px;display:flex;align-items:center;gap:8px}.user-chip__avatar{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;color:#324b8e;background:#e7edff;border-radius:50%;font-weight:800}.user-chip__text{overflow:hidden;font-size:.84rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.main-content{width:min(1500px,100%);margin-inline:auto;padding:38px clamp(20px,4vw,52px) 72px}.page-stack{display:flex;flex-direction:column;gap:22px}.page-header{display:flex;align-items:end;justify-content:space-between;gap:20px}.page-header p:last-child,.detail-header p:last-child{margin-bottom:0;color:var(--ink-muted)}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f4f6fa}.login-card{width:min(430px,100%);display:flex;flex-direction:column;gap:28px;padding:clamp(28px,6vw,42px);background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 70px #1c2b4b21}.login-brand{display:flex;align-items:center;gap:9px;color:#1d2a44;font-size:1.05rem;font-weight:850}.login-form{display:flex;flex-direction:column;gap:17px}.form-error{margin:0;padding:10px 12px;color:#8f1e16;background:var(--danger-soft);border-left:3px solid var(--danger);border-radius:4px;font-size:.86rem}.login-card__security{margin-bottom:0;color:var(--ink-muted);font-size:.77rem;text-align:center}.card{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:0 4px 18px #1f2d4d0a}.card>:last-child{margin-bottom:0}.inline-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.inline-form label{display:grid;gap:5px;min-width:min(100%,180px);color:var(--ink-muted);font-size:.82rem}.inline-form input,.inline-form select{min-height:38px;padding:7px 9px;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:8px}.filters-panel{display:flex;flex-direction:column;gap:16px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:0 4px 18px #1f2d4d0a}.filters-panel__primary{display:grid;grid-template-columns:minmax(260px,1.8fr) minmax(160px,.75fr) minmax(145px,.65fr) minmax(145px,.65fr);gap:14px;align-items:end}.filters-panel__secondary{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-top:14px;border-top:1px solid #edf0f5}.field--inline{width:min(310px,100%);display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center}.search-input{position:relative;display:flex;align-items:center}.search-input>span{position:absolute;left:12px;color:#78849a;font-size:1.25rem}.search-input input{padding-right:40px;padding-left:38px}.search-input button{position:absolute;right:7px;width:30px;height:30px;display:grid;place-items:center;padding:0;color:#58657c;background:transparent;border:0;border-radius:6px;font-size:1.25rem}.search-input button:hover{background:#eef1f6}.results-card,.detail-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:0 4px 18px #1f2d4d0a}.results-card{min-height:250px;overflow:hidden}.results-card--refreshing .table-scroll,.results-card--refreshing .pagination{opacity:.52;transition:opacity .12s ease}.refresh-indicator{position:absolute;z-index:2;top:12px;right:14px;padding:6px 10px;color:#354566;background:#fff;border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow);font-size:.76rem;font-weight:700}.table-scroll{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse}.orders-table{min-width:980px}.quotes-table{min-width:1120px}.quote-filters__primary{grid-template-columns:minmax(280px,1fr) minmax(180px,.35fr)}th,td{padding:15px 14px;border-bottom:1px solid #e9edf3;vertical-align:middle;text-align:left}thead th{color:#5b6780;background:#fafbfc;font-size:.72rem;font-weight:800;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}tbody th{font-size:.88rem}tbody td{color:#3f4b62;font-size:.84rem}tbody tr:last-child>*{border-bottom:0}tbody tr:hover>*{background:#fafbff}.order-number{color:#263b75;font-variant-numeric:tabular-nums;white-space:nowrap}.truncate{max-width:250px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-action{display:inline-flex;align-items:center;gap:5px;color:var(--accent-dark);font-weight:800;text-decoration:none;white-space:nowrap}.table-action:hover{text-decoration:underline;text-underline-offset:3px}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid currentColor;border-radius:999px;font-size:.72rem;font-weight:800;line-height:1;white-space:nowrap}.status-badge:before{width:6px;height:6px;content:"";background:currentColor;border-radius:50%}.status-badge--draft{color:#5e6675;background:#f4f5f7}.status-badge--confirmed{color:#2451b7;background:#edf3ff}.status-badge--in_progress{color:#875300;background:#fff6dd}.status-badge--completed{color:#087443;background:#eaf8f1}.status-badge--cancelled{color:#a12a21;background:#fff0ee}.status-badge--quote-draft{color:#5e6675;background:#f4f5f7}.status-badge--quote-sent{color:#2451b7;background:#edf3ff}.status-badge--quote-accepted{color:#087443;background:#eaf8f1}.status-badge--quote-rejected,.status-badge--quote-cancelled{color:#a12a21;background:#fff0ee}.status-badge--quote-expired{color:#875300;background:#fff6dd}.pagination{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 16px;border-top:1px solid var(--line)}.pagination p{margin:0;color:var(--ink-muted);font-size:.84rem}.pagination__controls{display:flex;align-items:center;gap:14px;color:#4c5870;font-size:.82rem}.pagination .button{min-height:38px;font-size:.8rem}.full-page-state{min-height:300px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--ink-muted)}.spinner{width:24px;height:24px;border:3px solid #dbe2f1;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.table-skeleton{display:flex;flex-direction:column;padding:14px}.skeleton-row{height:47px;background:linear-gradient(90deg,#f0f2f6 20%,#fafbfc,#f0f2f6 60%);background-size:200% 100%;border-bottom:1px solid #fff;border-radius:5px;animation:skeleton 1.25s ease-in-out infinite}@keyframes skeleton{to{background-position-x:-200%}}.empty-state{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px;text-align:center}.empty-state__icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:15px;color:#52699f;background:#edf1fb;border-radius:50%;font-size:1.5rem}.empty-state h2{margin-bottom:7px}.empty-state p{max-width:520px;margin-bottom:0;color:var(--ink-muted);line-height:1.55}.error-state{min-height:250px;display:flex;align-items:flex-start;justify-content:center;gap:14px;padding:50px 24px}.error-state>span{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;color:var(--danger);background:var(--danger-soft);border-radius:50%;font-weight:900}.error-state h2{margin:2px 0 6px}.error-state p{color:var(--ink-muted)}.back-link{width:fit-content;color:var(--accent-dark);font-size:.88rem;font-weight:750;text-decoration:none}.back-link:hover{text-decoration:underline;text-underline-offset:3px}.detail-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:4px}.detail-header .status-badge{font-size:.82rem;padding:7px 11px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.detail-grid--summary{grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr)}.detail-card{padding:22px;overflow:hidden}.detail-card>h2{padding-bottom:13px;border-bottom:1px solid #edf0f5}.definition-list{display:grid;gap:16px;margin:0}.definition-list>div{display:grid;grid-template-columns:minmax(110px,.35fr) 1fr;gap:20px}.definition-list dt,.totals-card dt{color:var(--ink-muted);font-size:.8rem}.definition-list dd,.totals-card dd{margin:0;font-weight:650}.lines-table th:first-child span,.lines-table th:first-child small{display:block}.lines-table th:first-child small{margin-top:3px;color:var(--ink-muted);font-weight:500}.timeline{display:grid;gap:0;margin:0;padding:0;list-style:none}.timeline li{position:relative;display:grid;grid-template-columns:18px 1fr;gap:12px;min-height:54px}.timeline li:before{position:absolute;top:17px;bottom:-5px;left:6px;width:2px;content:"";background:#dbe2ef}.timeline li:last-child:before{display:none}.timeline li>span{position:relative;z-index:1;width:14px;height:14px;margin-top:2px;background:var(--accent);border:3px solid #dfe7ff;border-radius:50%}.timeline li div{display:flex;flex-direction:column;gap:3px}.timeline time{color:var(--ink-muted);font-size:.78rem}.totals-card dl{display:grid;gap:10px;margin:0}.totals-card dl>div{display:flex;justify-content:space-between;gap:20px}.totals-card dd{font-variant-numeric:tabular-nums}.totals-card__grand{margin-top:6px;padding-top:14px;border-top:1px solid var(--line-strong);font-size:1.08rem}.totals-card__grand dt,.totals-card__grand dd{color:var(--ink);font-weight:850}.internal-notes{border-left:4px solid #8b6bb8}.internal-notes p{margin:0;color:#3f4656;line-height:1.6}.detail-metadata{display:flex;flex-wrap:wrap;gap:10px 24px;color:var(--ink-muted);font-size:.77rem}.quote-metadata{align-content:flex-start;flex-direction:column}.source-quote-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:4px solid var(--accent)}.source-quote-card h2{margin-bottom:6px}.source-quote-card p:last-child{margin-bottom:0;color:var(--ink-muted)}@media(max-width:1100px){.topbar{align-items:flex-start}.topbar__context{flex-wrap:wrap;justify-content:flex-end;gap:10px 16px}.filters-panel__primary{grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(140px,.75fr))}.quote-filters__primary{grid-template-columns:minmax(260px,1fr) minmax(180px,.4fr)}.orders-table{min-width:780px}.quotes-table{min-width:880px}.column-tertiary{display:none}}@media(max-width:820px){.topbar{position:static;flex-direction:column;align-items:stretch;gap:12px;padding-block:10px}.topbar__brand-row,.topbar__context{justify-content:space-between}.organization-switcher{flex:1}.main-content{padding-top:28px}.filters-panel__primary{grid-template-columns:1fr 1fr}.field--search{grid-column:1 / -1}.column-secondary{display:none}.orders-table{min-width:690px}.quotes-table{min-width:760px}.detail-grid,.detail-grid--summary{grid-template-columns:1fr}}@media(max-width:600px){.topbar__context{display:grid;grid-template-columns:1fr auto}.organization-current,.organization-switcher{grid-column:1 / -1;max-width:none}.user-chip{min-width:0}.main-content{padding:22px 14px 48px}.filters-panel{padding:14px}.filters-panel__primary{grid-template-columns:1fr}.field--search{grid-column:auto}.filters-panel__secondary{align-items:stretch;flex-direction:column}.field--inline{width:100%;grid-template-columns:1fr}.pagination{align-items:stretch;flex-direction:column}.pagination__controls{justify-content:space-between}.pagination__controls>span{text-align:center}.pagination .button{padding-inline:10px}.detail-header{align-items:flex-start;flex-direction:column}.detail-card{padding:17px}.definition-list>div{grid-template-columns:1fr;gap:4px}.source-quote-card{align-items:stretch;flex-direction:column}}:root{--tg-hint: #6c7789;--tg-link: #3158d3;--tg-secondary-bg: #eef1f6;--tg-header-bg: var(--tg-bg);--tg-bottom-bg: var(--tg-bg);--tg-viewport-height: 100vh}.telegram-app{min-height:var(--tg-viewport-height);color:var(--tg-text);background:var(--tg-bg);padding:var(--tg-safe-area-top, env(safe-area-inset-top)) var(--tg-safe-area-right, env(safe-area-inset-right)) var(--tg-safe-area-bottom, env(safe-area-inset-bottom)) var(--tg-safe-area-left, env(safe-area-inset-left))}.telegram-app-bar{position:sticky;z-index:20;top:0;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;background:color-mix(in srgb,var(--tg-header-bg) 92%,transparent);border-bottom:1px solid color-mix(in srgb,var(--tg-hint) 25%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.telegram-app-bar>a,.telegram-app-bar>strong{color:var(--tg-text);font-weight:850;text-decoration:none}.telegram-app-bar .organization-current{margin-left:auto;text-align:right}.telegram-app-bar .organization-current__label{display:none}.telegram-app-bar .organization-switcher{min-width:0;width:min(58vw,280px)}.telegram-app-bar .organization-switcher label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.telegram-app-bar .organization-switcher select{min-height:42px;color:var(--tg-text);background:var(--tg-secondary-bg);border:0;font-weight:750}.telegram-content{width:min(680px,100%);margin-inline:auto;padding:20px 14px calc(30px + env(safe-area-inset-bottom))}.telegram-home{display:grid;gap:26px}.home-hero{padding:8px 0 12px}.home-hero h1{margin:0}.home-hero .eyebrow span{margin-left:8px;font-weight:400;text-transform:none}.home-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.home-actions a{display:grid;gap:5px;min-height:92px;padding:16px;color:inherit;text-decoration:none;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.home-actions small{color:var(--ink-muted)}.home-summary{display:grid;gap:10px}.home-summary h2{margin:0}.home-summary ul{margin:0;padding-left:18px}.telegram-home header h1{font-size:1.85rem}.telegram-home h2,.telegram-mobile-list h1{margin:0}.telegram-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.telegram-quick-actions a{min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px 5px;color:var(--tg-button-text);background:var(--tg-button);border-radius:16px;text-align:center;text-decoration:none}.telegram-quick-actions span{font-size:1.55rem;line-height:1}.telegram-quick-actions strong{font-size:.88rem}.telegram-recents,.telegram-mobile-list{display:grid;gap:10px}.telegram-section-heading,.telegram-mobile-list>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px}.telegram-recent-card{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;color:var(--tg-text);background:var(--tg-secondary-bg);border-radius:15px;text-decoration:none}.telegram-recent-card>div{min-width:0;display:flex;flex-direction:column;gap:3px}.telegram-recent-card>div:last-child{align-items:flex-end;text-align:right}.telegram-recent-card strong,.telegram-recent-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-recent-card small,.telegram-recent-card span{color:var(--tg-hint);font-size:.77rem}.telegram-card-skeleton{min-height:82px;display:grid;place-items:center;color:var(--tg-hint);background:var(--tg-secondary-bg);border-radius:15px}.telegram-all-links{display:flex;justify-content:space-around;gap:10px;padding-top:5px}.telegram-all-links a{min-height:44px;display:inline-flex;align-items:center;color:var(--tg-link);font-weight:750}.telegram-app .page-stack{gap:15px}.telegram-app .back-link{display:none}.telegram-app .detail-grid,.telegram-app .detail-grid--summary,.telegram-app .workspace-grid{grid-template-columns:1fr;gap:12px}.telegram-app .detail-card,.telegram-app .workspace-card,.telegram-app .attendance-status,.telegram-app .attendance-history{padding:16px;background:var(--tg-secondary-bg);border:0;box-shadow:none}.telegram-app .detail-header{align-items:flex-start;flex-direction:column;gap:10px}.telegram-app .detail-metadata,.telegram-app .timeline,.telegram-app .internal-notes{display:none}.telegram-app .table-scroll{overflow:visible}.telegram-app .lines-table{min-width:0}.telegram-app .lines-table thead{display:none}.telegram-app .lines-table tbody,.telegram-app .lines-table tr{display:grid}.telegram-app .lines-table tr{grid-template-columns:1fr auto;gap:5px 12px;padding:12px 0;border-bottom:1px solid color-mix(in srgb,var(--tg-hint) 20%,transparent)}.telegram-app .lines-table th,.telegram-app .lines-table td{display:block;padding:0;border:0;background:transparent}.telegram-app .lines-table td:nth-child(2){display:none}.telegram-app .lines-table .align-right{text-align:right}.telegram-app .lines-table td:nth-child(3):before{content:"Qtà ";color:var(--tg-hint)}.telegram-app .workspace-summary{position:static}.telegram-app .order-action-bar{justify-content:stretch}.telegram-app .order-action-bar .button{flex:1 1 100%;min-height:48px}.telegram-app .workspace-card .field textarea{max-height:100px}.telegram-app .attendance-page{gap:16px}.attendance-local-time{margin-bottom:4px;color:var(--tg-hint);text-transform:capitalize}[data-telegram-platform]:not([data-telegram-platform=browser]) .telegram-app .punch-button{margin-bottom:54px}@media(max-width:380px){.telegram-quick-actions{gap:7px}.telegram-quick-actions strong{font-size:.78rem}.telegram-recent-card{padding:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.settings-members__grid{display:grid;grid-template-columns:minmax(220px,.32fr) minmax(0,1fr);gap:22px}.settings-members__list,.settings-members__capabilities{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}.settings-members__list{display:flex;flex-direction:column;gap:6px;align-self:start}.settings-members__list button{display:flex;flex-direction:column;gap:3px;padding:12px;color:var(--ink);background:transparent;border:1px solid transparent;border-radius:var(--radius-sm);text-align:left}.settings-members__list button:hover,.settings-members__list button.is-selected{background:var(--accent-soft);border-color:#b7c5ec}.settings-members__list span,.settings-members__heading p,.settings-members__capabilities fieldset>p{margin:0;color:var(--ink-muted);font-size:.8rem}.settings-members__capabilities{display:grid;gap:16px}.settings-members__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.settings-members__heading h2{margin-bottom:3px}.settings-members__capabilities fieldset{display:grid;gap:8px;margin:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius-sm)}.settings-members__capabilities fieldset:disabled{opacity:.62}.settings-members__capabilities legend{padding-inline:5px;font-weight:850}.capability-option{display:flex;gap:11px;align-items:flex-start;padding:9px;background:var(--surface-muted);border-radius:7px}.capability-option input{margin-top:3px}.capability-option span{display:flex;flex-direction:column;gap:3px}.capability-option small{color:var(--ink-muted)}@media(max-width:760px){.settings-members__grid{grid-template-columns:1fr}}.calendar-page{max-width:1180px;margin-inline:auto}.calendar-header,.calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.calendar-range-title{margin:4px 0;color:var(--ink);font-size:clamp(1.15rem,2vw,1.5rem);font-weight:700}.calendar-toolbar{justify-content:flex-start;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm)}.calendar-toolbar select{min-height:40px}.calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.calendar-days{display:grid;gap:18px}.calendar-day{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm)}.calendar-day>h2{display:flex;align-items:center;gap:10px;margin:0;font-size:.95rem;letter-spacing:.04em}.calendar-day>h2 span{padding:3px 8px;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,white);border-radius:999px;font-size:.75rem;letter-spacing:0}.calendar-day--today{border-color:var(--accent);box-shadow:inset 4px 0 var(--accent)}.calendar-event{display:grid;gap:6px;padding:16px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:var(--radius-sm)}.calendar-event h2,.calendar-event h3,.calendar-event p{margin:0}.calendar-event time,.calendar-event small{color:var(--ink-muted)}.calendar-event--cancelled{opacity:.6;border-left-color:var(--danger)}.calendar-event--completed{border-left-color:#14905a}.calendar-event>div{display:flex;gap:8px}.calendar-conflict{padding:14px;color:#755000;background:#fff8e6;border:1px solid #efd79c;border-radius:var(--radius-sm)}.availability-editor{display:grid;gap:14px}.availability-day{display:grid;grid-template-columns:120px 1fr;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}.availability-day__intervals{display:flex;flex-wrap:wrap;gap:8px}.availability-interval{display:inline-flex;align-items:center;gap:8px;padding:6px 8px;background:var(--surface-muted);border:1px solid var(--line);border-radius:var(--radius-sm)}.availability-interval input[type=time]{width:112px;min-height:38px;padding:6px 8px;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:6px}.availability-interval>span{color:var(--ink-muted)}.availability-interval>button{width:34px;height:34px;display:grid;place-items:center;padding:0;color:var(--danger);background:var(--surface);border:1px solid #e5b9b4;border-radius:6px;font-size:1.1rem}.availability-interval>button:hover{background:var(--danger-soft)}.calendar-page--mobile .calendar-grid{grid-template-columns:1fr}@media(max-width:680px){.calendar-header{align-items:stretch;flex-direction:column}.availability-day{grid-template-columns:1fr}}.inventory-page{max-width:1380px;margin-inline:auto}.inventory-tabs{display:flex;gap:6px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm)}.inventory-tabs button{min-height:40px;padding:8px 16px;color:var(--ink-muted);background:transparent;border:0;border-radius:7px;font-weight:800}.inventory-tabs button.is-active{color:var(--accent-dark);background:var(--accent-soft)}.inventory-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));align-items:end}.inventory-table{min-width:900px}.inventory-table th small,.inventory-table td small{display:block;margin-top:3px;color:var(--ink-muted);font-weight:500}.inventory-row-actions{display:flex;flex-wrap:wrap;gap:5px}.inventory-row-actions button{min-height:32px;padding:5px 8px;color:var(--accent-dark);background:var(--surface);border:1px solid var(--line);border-radius:6px;font-size:.75rem;font-weight:750}.inventory-row-actions button:hover:not(:disabled){background:var(--accent-soft)}.inventory-empty{margin:0;padding:32px;color:var(--ink-muted);text-align:center}.inventory-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.inventory-section-heading h2{margin-bottom:4px}.inventory-section-heading p{margin:0}@media(max-width:620px){.inventory-tabs button{flex:1;padding-inline:8px}.inventory-section-heading{flex-direction:column}}:root{--tg-bg: #f4f6fa;--tg-text: #182238;--tg-button: #3167d5;--tg-button-text: #fff}.telegram-shell{min-height:100vh;max-width:720px;margin:0 auto;padding:max(20px,env(safe-area-inset-top)) 16px max(28px,env(safe-area-inset-bottom));color:var(--tg-text);background:var(--tg-bg)}.telegram-header{display:grid;gap:18px;margin-bottom:24px}.telegram-header .organization-switcher{max-width:none}.telegram-home-grid{display:grid;grid-template-columns:1fr;gap:14px}.telegram-home-grid>a{min-height:112px;display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;gap:3px 12px;align-items:center;padding:18px;color:var(--tg-text);background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);text-decoration:none}.telegram-home-grid>a>span{grid-row:1 / 3;font-size:2rem}.telegram-home-grid strong{align-self:end;font-size:1.1rem}.telegram-home-grid small{align-self:start;color:var(--ink-muted)}.telegram-message{display:flex;flex-direction:column;justify-content:center;gap:16px}.telegram-message .login-form{padding:20px;background:var(--surface);border-radius:16px}.attendance-page{width:min(900px,100%);margin:0 auto}.attendance-header{display:grid;gap:4px}.attendance-status{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.attendance-status__dot{width:14px;height:14px;margin-top:5px;background:#778296;border-radius:50%}.attendance-status--in .attendance-status__dot{background:#14905a;box-shadow:0 0 0 5px #dff5e9}.attendance-status div{display:flex;flex-direction:column}.attendance-status strong{font-size:1.25rem}.attendance-status p{grid-column:2;margin:8px 0 0;color:var(--ink-muted)}.punch-button{min-height:104px;width:100%;border:0;border-radius:20px;color:#fff;font-size:1.45rem;font-weight:900;letter-spacing:.08em;box-shadow:0 12px 28px #14412d2e}.punch-button--in{background:#138653}.punch-button--out{background:#b63c31}.punch-button:disabled{opacity:.62}.attendance-history{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.attendance-history ol{margin:0;padding:0;list-style:none}.attendance-history li{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.attendance-history li:last-child{border-bottom:0}.attendance-history time{color:var(--ink-muted)}.attendance-card{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.attendance-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.attendance-card h2,.attendance-card h3{margin:0}.attendance-card__header{flex-wrap:wrap}.attendance-card__header p{margin:4px 0 0}.attendance-sessions{margin:0;padding:0;list-style:none}.attendance-sessions li{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.attendance-sessions li:last-child{border-bottom:0}.attendance-sessions li span{display:grid;gap:4px}.attendance-manual{width:fit-content;color:#76510b;font-size:.78rem;font-weight:700}.attendance-empty{margin:0}.attendance-week-nav{display:flex;flex-wrap:wrap;gap:8px}.attendance-week-list{display:grid;gap:12px}.attendance-week-day{padding:14px;background:var(--surface-muted);border-radius:12px}.attendance-week-day>header{display:flex;justify-content:space-between;gap:12px}.attendance-total{display:flex;justify-content:space-between;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.attendance-team-list{display:grid;gap:8px}.attendance-team-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,auto) minmax(120px,auto);align-items:center;gap:14px;width:100%;padding:13px;color:inherit;text-align:left;background:var(--surface-muted);border:1px solid transparent;border-radius:12px;cursor:pointer}.attendance-team-row>span{display:grid;gap:3px}.attendance-team-row small{color:var(--ink-muted)}.attendance-team-row--selected{border-color:var(--accent);background:#edf4ff}.attendance-adjustment-form{display:grid;gap:12px;margin-bottom:18px}.attendance-adjustment-form label{display:grid;gap:6px;font-weight:700}.attendance-adjustment-form input,.attendance-adjustment-form textarea,.attendance-team-requests select{width:100%;padding:10px;font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:8px}.attendance-adjustment-form textarea{min-height:76px;resize:vertical}.attendance-adjustments{display:grid;gap:10px;margin:0;padding:0;list-style:none}.attendance-adjustments li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:var(--surface-muted);border-radius:12px}.attendance-adjustments li>div{display:grid;gap:3px}.attendance-adjustments li span,.attendance-adjustments li small{color:var(--ink-muted)}.attendance-adjustment-actions{display:flex;gap:8px}.attendance-team-requests{display:grid;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.attendance-team-requests>header{margin:0}.attendance-team-requests select{width:auto}.attendance-request-filters{display:flex;flex-wrap:wrap;gap:12px}.attendance-request-filters label{display:grid;gap:6px;font-weight:700}.attendance-request-filters select{min-width:180px}.attendance-page--telegram{width:min(480px,100%)}.attendance-telegram-hint{margin:0;text-align:center}@media(max-width:640px){.attendance-card>header,.attendance-team-row{display:flex;flex-direction:column;align-items:stretch}.attendance-team-row>span:not(:first-child){display:flex;justify-content:space-between}.attendance-week-nav .button{flex:1 1 auto}}.workspace-page{max-width:1320px;margin-inline:auto}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.34fr);gap:22px;align-items:start}.workspace-main{min-width:0;display:flex;flex-direction:column;gap:22px}.workspace-summary{position:sticky;top:98px}.workspace-card{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:0 4px 18px #1f2d4d0a}.workspace-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid #edf0f5}.workspace-card__header h2{margin-bottom:4px}.workspace-card__header p{margin:0;color:var(--ink-muted);font-size:.8rem}.form-stack{display:flex;flex-direction:column;gap:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px}.readonly-field{display:flex;justify-content:space-between;padding:12px 14px;background:var(--surface-muted);border-radius:var(--radius-sm)}.readonly-field span{color:var(--ink-muted)}.workspace-warning{margin:0;padding:11px 13px;color:#755000;background:#fff8e6;border-left:3px solid #d89812;border-radius:5px;font-size:.82rem;line-height:1.45}.workspace-empty{margin:0;padding:28px 16px;color:var(--ink-muted);background:var(--surface-muted);border-radius:var(--radius-sm);text-align:center}.success-notice{margin:0;padding:11px 13px;color:#07633a;background:#eaf8f1;border-left:3px solid #14905a;border-radius:5px;font-size:.84rem;font-weight:650}.ambiguous-action{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:12px 14px;color:#755000;background:#fff8e6;border:1px solid #efd79c;border-radius:var(--radius-sm)}.ambiguous-action p{flex:1 1 320px;margin:0;font-size:.84rem;line-height:1.45}.summary-total,.preview-total{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin:22px 0;padding-top:18px;border-top:1px solid var(--line)}.summary-total span,.preview-total span{color:var(--ink-muted)}.summary-total strong,.preview-total strong{font-size:1.35rem}.confirmation-blockers{margin:0 0 18px;padding-left:20px;color:#755000;font-size:.8rem}.source-quote-summary{display:grid;gap:12px;margin-top:20px;padding:14px;background:var(--accent-soft);border-radius:var(--radius-sm)}.source-quote-summary>a{color:var(--accent-dark);font-weight:800}.source-quote-summary .definition-list{gap:9px}.source-quote-summary .definition-list>div{grid-template-columns:1fr auto;gap:12px}.async-select{position:relative}.selected-option{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 11px;background:#f8faff;border:1px solid #b7c5ec;border-radius:var(--radius-sm)}.selected-option span,.options-list button{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.selected-option small,.options-list small{color:var(--ink-muted)}.selected-option button{width:32px;height:32px;color:#526078;background:transparent;border:0;border-radius:6px;font-size:1.2rem}.selected-option button:hover{background:#e8edfa}.options-list{z-index:8;max-height:240px;margin:3px 0 0;padding:5px;overflow-y:auto;background:#fff;border:1px solid var(--line-strong);border-radius:var(--radius-sm);box-shadow:var(--shadow);list-style:none}.options-list li+li{border-top:1px solid #edf0f5}.options-list button{width:100%;padding:10px;background:transparent;border:0;border-radius:6px;text-align:left}.options-list button:hover,.options-list button:focus-visible{background:var(--accent-soft)}.options-list__empty{padding:14px 10px;color:var(--ink-muted);font-size:.82rem}.line-editor{margin-bottom:20px;padding:18px;background:#f8faff;border:1px solid #dbe3f7;border-radius:var(--radius-sm)}.line-form-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(130px,.32fr) minmax(150px,.4fr);gap:14px;margin-block:14px}.editable-lines{min-width:940px}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.row-actions button{min-height:34px;padding:5px 8px;color:#34425d;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:.76rem}.row-actions button:hover:not(:disabled){background:var(--surface-muted);border-color:#a9b4c5}.row-actions .danger-action{color:var(--danger)}.order-action-area{display:flex;flex-direction:column;gap:10px}.order-action-bar{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.dialog-backdrop{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#10192c94}.dialog-panel{width:min(620px,100%);max-height:min(820px,calc(100vh - 40px));overflow-y:auto;background:#fff;border-radius:var(--radius-lg);box-shadow:0 28px 90px #060f2347}.dialog-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 22px 15px;border-bottom:1px solid var(--line)}.dialog-panel__header h2{margin-bottom:6px;font-size:1.2rem}.dialog-panel__header p{margin:0;color:var(--ink-muted);line-height:1.5}.dialog-close{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;color:#526078;background:transparent;border:0;border-radius:8px;font-size:1.5rem}.dialog-close:hover{background:var(--surface-muted)}.dialog-panel__body{padding:20px 22px}.dialog-panel__actions{display:flex;justify-content:flex-end;gap:9px;padding:15px 22px 22px}.preview-stack{display:flex;flex-direction:column;gap:16px}.preview-lines{display:flex;flex-direction:column;border-block:1px solid var(--line)}.preview-lines>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 0}.preview-lines>div+div{border-top:1px solid #edf0f5}.preview-lines span{display:flex;flex-direction:column;gap:3px}.preview-lines small{color:var(--ink-muted)}@media(max-width:1100px){.workspace-grid{grid-template-columns:minmax(0,1fr) 300px}}@media(max-width:820px){.workspace-grid{grid-template-columns:1fr}.workspace-summary{position:static}.line-form-grid{grid-template-columns:1fr 1fr}.line-form-grid__description{grid-column:1 / -1}}@media(max-width:600px){.workspace-card{padding:16px}.workspace-card__header{align-items:stretch;flex-direction:column}.line-form-grid{grid-template-columns:1fr}.line-form-grid__description{grid-column:auto}.form-actions,.dialog-panel__actions{align-items:stretch;flex-direction:column-reverse}.order-action-bar{justify-content:stretch}.order-action-bar .button{flex:1 1 100%}.dialog-backdrop{padding:10px}.dialog-panel{max-height:calc(100vh - 20px)}}:root{--sidebar-width: 272px;--page-gutter: clamp(18px, 3vw, 44px)}body{overflow-x:hidden}.app-shell{min-height:100dvh;background:#f5f7fb}.app-sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;padding:24px 16px max(18px,env(safe-area-inset-bottom));background:#fff;border-right:1px solid var(--line)}.app-sidebar__brand{display:grid;gap:5px;padding:4px 10px 24px}.app-sidebar__brand small{color:var(--ink-muted);font-size:.72rem;font-weight:650}.app-navigation{display:grid;gap:4px;overflow-y:auto}.app-navigation .nav-link{width:100%;min-height:44px;padding-inline:12px}.app-sidebar__footer{display:grid;gap:14px;margin-top:auto;padding:20px 8px 0;border-top:1px solid var(--line)}.app-sidebar__footer .organization-switcher{min-width:0}.app-sidebar__logout{justify-content:flex-start;width:fit-content}.main-content{width:auto;min-height:100dvh;margin-left:var(--sidebar-width);padding:max(34px,env(safe-area-inset-top)) var(--page-gutter) max(48px,env(safe-area-inset-bottom))}.mobile-app-bar,.mobile-nav-scrim{display:none}.page-header__actions{display:flex;flex-wrap:wrap;gap:10px}.icon-button{width:44px;height:44px;display:inline-grid;place-items:center;padding:0;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-sm)}.icon-button:hover{background:var(--accent-soft);border-color:var(--accent)}.connectivity-notice{margin:0 0 18px;padding:12px 14px;color:#74500a;background:#fff8e7;border:1px solid #efd79c;border-radius:var(--radius-sm);font-weight:650}.card,.workspace-card,.detail-card,.attendance-card,.attendance-history,.attendance-status{border-radius:var(--radius-md)}.home-actions a{min-height:108px;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.home-actions a:hover{border-color:#b8c6ec;box-shadow:0 10px 28px #1f2d4d1a;transform:translateY(-1px)}@media(max-width:1099px){.app-sidebar{width:244px}.main-content{margin-left:244px}.app-sidebar__footer .user-chip__text{display:none}.organization-switcher{min-width:0}.filters-panel__primary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:719px){.app-shell{padding-top:calc(60px + env(safe-area-inset-top))}.mobile-app-bar{position:fixed;z-index:40;inset:0 0 auto;height:calc(60px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;padding:env(safe-area-inset-top) 14px 0;background:#fffffff5;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-app-bar .brand{font-size:1rem}.mobile-app-bar .brand__mark{width:30px;height:30px}.menu-icon,.menu-icon:before,.menu-icon:after{width:18px;height:2px;display:block;background:currentColor;border-radius:2px;content:""}.menu-icon{position:relative}.menu-icon:before{position:absolute;top:-6px}.menu-icon:after{position:absolute;top:6px}.app-sidebar{z-index:50;width:min(320px,calc(100vw - 48px));padding-top:calc(18px + env(safe-area-inset-top));box-shadow:18px 0 46px #14213f2e;transform:translate(-105%);transition:transform .18s ease}.app-sidebar--open{transform:translate(0)}.mobile-nav-scrim{position:fixed;z-index:45;top:0;right:0;bottom:0;left:0;display:block;padding:0;background:#10192c75;border:0}.main-content{min-height:calc(100dvh - 60px);margin-left:0;padding:24px 16px max(32px,env(safe-area-inset-bottom))}.page-stack{gap:18px}.page-header,.detail-header{align-items:stretch;flex-direction:column;gap:14px}.page-header__actions{width:100%}.page-header__actions .button,.page-header>.button{width:100%}h1{font-size:clamp(1.6rem,8vw,2rem)}h2{font-size:1.02rem}.filters-panel,.workspace-card,.detail-card,.card,.attendance-card,.attendance-history{padding:16px}.filters-panel__primary{grid-template-columns:1fr}.filters-panel__secondary{align-items:stretch;flex-direction:column}.field--inline{grid-template-columns:1fr}.field input,.field select,.field textarea,.organization-switcher select{min-height:44px}.inline-form,.form-actions{align-items:stretch;flex-direction:column}.inline-form>*,.form-actions>.button{width:100%}.home-actions{grid-template-columns:1fr}.home-actions a{min-height:88px}.detail-grid,.detail-grid--summary{grid-template-columns:1fr}.definition-list>div{grid-template-columns:1fr;gap:4px}.pagination{align-items:stretch;flex-direction:column;gap:10px}.pagination__controls{justify-content:space-between;width:100%}.calendar-grid{grid-template-columns:1fr}.calendar-event>div{flex-wrap:wrap}.attendance-status{padding:18px}.punch-button{min-height:64px;font-size:1rem}.dialog-backdrop{align-items:end;padding:0}.dialog-panel{width:100%;max-height:min(88dvh,calc(100dvh - env(safe-area-inset-top)));border-radius:20px 20px 0 0}.dialog-panel__body{max-height:calc(88dvh - 164px);overflow-y:auto;padding:18px 16px}.dialog-panel__actions{position:sticky;bottom:0;padding:14px 16px max(14px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.dialog-close{min-width:44px;min-height:44px}}@media(max-width:719px){.table-scroll{overflow:visible}.orders-table,.quotes-table,.inventory-table{min-width:0}.orders-table thead,.quotes-table thead{display:none}.orders-table,.orders-table tbody,.quotes-table,.quotes-table tbody{display:grid}.orders-table tbody,.quotes-table tbody{gap:10px;padding:10px}.orders-table tr,.quotes-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:14px;background:var(--surface-muted);border:1px solid #e7ebf2;border-radius:var(--radius-sm)}.orders-table th,.orders-table td,.quotes-table th,.quotes-table td{display:block;padding:0;border:0;background:transparent;text-align:left}.orders-table th,.quotes-table th{grid-column:1 / -1;font-size:.94rem}.orders-table .column-secondary,.orders-table .column-tertiary,.quotes-table .column-secondary,.quotes-table .column-tertiary{display:none}.orders-table td:nth-child(2),.quotes-table td:nth-child(2){color:var(--ink-muted);font-size:.8rem}.orders-table td:nth-child(3),.quotes-table td:nth-child(5){grid-column:1}.orders-table td:nth-child(5),.quotes-table td:nth-child(4){grid-column:2;grid-row:2;align-self:center}.orders-table td:nth-child(6){grid-column:1}.orders-table td:last-child,.quotes-table td:last-child{grid-column:2;grid-row:3;align-self:end;text-align:right}.quotes-table td:nth-child(2){grid-column:1}.quotes-table td:nth-child(5){grid-column:1}.inventory-table thead{display:none}.inventory-table,.inventory-table tbody{display:grid}.inventory-table tbody{gap:10px;padding:10px}.inventory-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px;background:var(--surface-muted);border:1px solid #e7ebf2;border-radius:var(--radius-sm)}.inventory-table th,.inventory-table td{display:block;padding:0;border:0;background:transparent}.inventory-table th{grid-column:1 / -1;font-size:.94rem}.inventory-table td:nth-child(2),.inventory-table td:nth-child(3),.inventory-table td:nth-child(4){grid-column:span 1;color:var(--ink-muted);font-size:.78rem}.inventory-table td:nth-child(5),.inventory-table td:nth-child(6),.inventory-table td:nth-child(7){display:grid;gap:2px;font-size:.86rem}.inventory-table td:nth-child(5):before{content:"Fisico";color:var(--ink-muted);font-size:.7rem;font-weight:700;text-transform:uppercase}.inventory-table td:nth-child(6):before{content:"Riservato";color:var(--ink-muted);font-size:.7rem;font-weight:700;text-transform:uppercase}.inventory-table td:nth-child(7):before{content:"Disponibile";color:var(--ink-muted);font-size:.7rem;font-weight:700;text-transform:uppercase}.inventory-table td:last-child{grid-column:1 / -1}.inventory-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:4px}.inventory-row-actions button{min-height:40px;font-size:.82rem}}@media(prefers-reduced-motion:reduce){.app-sidebar,.home-actions a{transition:none}.home-actions a:hover{transform:none}}html{color-scheme:light}h1,h2,h3{color:var(--ink)}h1{font-weight:760;letter-spacing:-.035em}h2{font-weight:700;letter-spacing:-.015em}.eyebrow{color:var(--accent);font-weight:780;letter-spacing:.085em}.muted,.page-header p:last-child,.detail-header p:last-child{color:var(--ink-muted)}.button{min-height:42px;border-radius:var(--radius-sm);font-weight:720;transition:transform .1s ease,background-color .15s ease,border-color .15s ease,color .15s ease}.button:active:not(:disabled){transform:scale(.985)}.button--primary{background:var(--accent)}.button--primary:hover:not(:disabled){background:var(--accent-dark)}.button--secondary{color:var(--ink);background:var(--surface);border-color:var(--line-strong)}.button--secondary:hover:not(:disabled){background:var(--surface-muted);border-color:#afbbb0}.button--ghost{color:#36554e}.button--ghost:hover:not(:disabled){color:var(--accent-dark);background:var(--accent-soft)}.button--danger{color:#fff;background:var(--danger)}.button--danger:hover:not(:disabled){background:#913a37}.button--danger-ghost{color:var(--danger);background:var(--surface);border-color:#ebc7c5}.button--danger-ghost:hover:not(:disabled){background:var(--danger-soft)}.field label,.organization-switcher label{color:#4a5752;font-weight:700}.field input,.field select,.field textarea,.organization-switcher select,.inline-form input,.inline-form select,.attendance-adjustment-form input,.attendance-adjustment-form textarea,.attendance-team-requests select,.availability-interval input[type=time]{color:var(--ink);background:var(--surface);border-color:var(--line-strong)}.field input:focus,.field select:focus,.field textarea:focus,.organization-switcher select:focus,.inline-form input:focus,.inline-form select:focus,.attendance-adjustment-form input:focus,.attendance-adjustment-form textarea:focus,.attendance-team-requests select:focus{border-color:#75a395;outline:3px solid rgb(119 169 155 / 22%)}input[type=checkbox]{accent-color:var(--accent)}.app-shell{background:var(--app-bg)}.app-sidebar{background:#f4f5ef;border-right-color:var(--line)}.app-sidebar__brand{padding-bottom:26px}.app-sidebar__brand small{color:#7b8580;font-weight:600}.brand,.login-brand{color:var(--accent-dark);font-weight:800;letter-spacing:.025em}.brand__mark,.login-brand span{background:var(--accent);border-radius:11px;box-shadow:none}.app-navigation{gap:4px}.nav-link{gap:10px;color:#59645f;border-radius:10px;font-weight:680}.nav-link__icon{width:20px;display:inline-grid;place-items:center;color:#748079;font-size:1.05rem;line-height:1}.nav-link:hover{color:var(--accent-dark);background:#ebf1eb}.nav-link--active{color:var(--accent-dark);background:var(--accent-soft)}.nav-link--active .nav-link__icon{color:var(--accent)}.app-sidebar__footer{border-top-color:var(--line)}.user-chip__avatar{color:var(--accent-dark);background:#dcece4}.main-content{padding-top:42px}.mobile-app-bar{background:color-mix(in srgb,var(--surface) 93%,transparent);border-bottom-color:var(--line)}.icon-button{color:var(--accent-dark);background:var(--surface);border-color:var(--line)}.page-header{padding-bottom:3px}.page-header h1{margin-bottom:7px}.page-header__actions{align-items:center}.card,.workspace-card,.detail-card,.filters-panel,.results-card,.attendance-card,.attendance-history,.attendance-status{background:var(--surface);border-color:var(--line);box-shadow:none}.workspace-card__header,.detail-card>h2{border-bottom-color:#ebede7}.filters-panel__secondary{border-top-color:#ebede7}.results-card{overflow:hidden}.list-row,.attendance-week-day,.attendance-team-row,.attendance-adjustments li{background:var(--surface-muted)}.attendance-team-row--selected{color:var(--accent-dark);background:var(--accent-soft);border-color:#b7d1c4}th,td{border-bottom-color:#e9ece5}thead th{color:#737d77;background:#f6f7f2;font-weight:760}tbody td{color:#3f4c46}tbody tr:hover>*{background:#fafbf7}.order-number,.table-action,.back-link{color:var(--accent-dark)}.refresh-indicator{color:#496059;background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.status-badge{border:0;font-weight:760}.status-badge--draft,.status-badge--quote-draft{color:#606b66;background:#edf0eb}.status-badge--confirmed,.status-badge--quote-accepted{color:#276548;background:#e1f1e6}.status-badge--in_progress,.status-badge--quote-sent{color:#416981;background:#e5f0f5}.status-badge--completed{color:#276548;background:#e1f1e6}.status-badge--cancelled,.status-badge--quote-rejected,.status-badge--quote-cancelled{color:#9b4a45;background:#f8e8e7}.status-badge--quote-expired{color:#7a5b18;background:#f8f0d6}.home-page{gap:30px}.home-hero{position:relative;overflow:hidden;padding:18px 20px 20px;border:1px solid #e1e8df;border-radius:var(--radius-lg);background:#f3f7f0}.home-hero:before,.home-hero:after{position:absolute;content:"";border-radius:999px;pointer-events:none}.home-hero:before{width:155px;height:155px;right:5%;bottom:-82px;background:#dcece4}.home-hero:after{width:92px;height:92px;right:14%;top:-46px;background:#ece7f4}.home-hero>*{position:relative;z-index:1}.home-hero h1{max-width:700px;margin-bottom:7px;font-size:clamp(2.05rem,4vw,3.2rem)}.home-hero>p:not(.eyebrow){margin-bottom:4px;color:#495750;font-size:1.08rem}.home-hero>small{color:var(--ink-muted)}.home-hero .eyebrow span{color:var(--ink-muted);font-weight:600}.home-actions{gap:14px}.home-actions a.home-action{min-height:118px;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:13px;padding:18px;border-color:transparent;box-shadow:none}.home-action__icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#36554e;background:var(--pastel-sage);font-size:1.24rem;font-weight:700}.home-action__content{min-width:0;display:grid;gap:5px}.home-action__content strong{color:var(--ink);font-size:.96rem}.home-action__content small{color:#637069;line-height:1.35}.home-action__arrow{color:#77847d;font-size:1.1rem;transition:transform .15s ease}.home-actions a.home-action:hover{border-color:#c7d6cb;box-shadow:0 8px 22px #20342b0d;transform:translateY(-1px)}.home-actions a.home-action:hover .home-action__arrow{transform:translate(2px)}.home-action--sage{background:#f4f9f3!important}.home-action--sage .home-action__icon{background:var(--pastel-sage)}.home-action--blue{background:#f3f8fa!important}.home-action--blue .home-action__icon{color:#3f6478;background:var(--pastel-blue)}.home-action--lavender{background:#f7f4fa!important}.home-action--lavender .home-action__icon{color:#65557c;background:var(--pastel-lavender)}.home-action--peach{background:#fcf6f1!important}.home-action--peach .home-action__icon{color:#8c604d;background:var(--pastel-peach)}.home-action--yellow{background:#fdfaf0!important}.home-action--yellow .home-action__icon{color:#80671d;background:var(--pastel-yellow)}.home-action--rose{background:#fcf5f6!important}.home-action--rose .home-action__icon{color:#825661;background:var(--pastel-rose)}.home-summary{padding:22px;border-color:#e2e8df}.home-summary>a{color:var(--accent-dark);font-weight:700}.inventory-tabs{padding:4px;background:#f0f2ec;border-color:var(--line)}.inventory-tabs button{border-radius:8px;font-weight:700}.inventory-tabs button.is-active{color:var(--accent-dark);background:var(--surface);box-shadow:0 1px 3px #20342b12}.inventory-row-actions button{color:var(--accent-dark);background:var(--surface);border-color:var(--line)}.inventory-row-actions button:hover:not(:disabled){background:var(--pastel-blue)}.inventory-table td:nth-child(5){color:#375b50}.inventory-table td:nth-child(6){color:#706385}.inventory-table td:nth-child(7){color:var(--accent-dark);font-weight:750}.calendar-toolbar{background:var(--surface);border-color:var(--line)}.calendar-day{background:#fbfcf8;border-color:var(--line)}.calendar-day--today{border-color:#b9d7ca;box-shadow:inset 3px 0 var(--accent)}.calendar-day>h2 span{color:var(--accent-dark);background:var(--accent-soft)}.calendar-event{border-left-color:#8aa999;box-shadow:none}.calendar-event--completed{border-left-color:#6b9c80}.calendar-event--cancelled{border-left-color:#d08a85}.calendar-conflict{color:#765b1c;background:#fcf5df;border-color:#eddaa0}.attendance-status{border-color:#dce8df}.attendance-status--in{background:#f4faf5}.attendance-status--in .attendance-status__dot{background:#4e9a6d;box-shadow:0 0 0 5px #dff0e4}.attendance-status strong{color:var(--accent-dark);font-size:clamp(1.3rem,3vw,1.6rem)}.punch-button{background:var(--accent)}.attendance-week-day{border:1px solid transparent}.attendance-week-day:hover{border-color:#d8e2d9}.capability-option{background:#f5f7f2;border-radius:var(--radius-sm)}.settings-members__list button:hover,.settings-members__list button.is-selected{background:var(--accent-soft);border-color:#bed6c8}.dialog-backdrop{background:#14272161}.dialog-panel{background:var(--surface);box-shadow:0 24px 70px #1731282e}.dialog-panel__header,.dialog-panel__actions{border-color:var(--line)}.login-page{position:relative;overflow:hidden;background:#f4f7f1}.login-page:before,.login-page:after{position:absolute;content:"";border-radius:999px;pointer-events:none}.login-page:before{width:min(42vw,520px);height:min(42vw,520px);top:-17vw;left:-10vw;background:#e3efe5}.login-page:after{width:min(28vw,360px);height:min(28vw,360px);right:-9vw;bottom:-12vw;background:#eee8f5}.login-card{position:relative;z-index:1;background:var(--surface);border-color:#dce5da;border-radius:24px;box-shadow:0 18px 48px #213a2e17}.login-brand small{color:var(--ink-muted);font-size:.72rem;font-weight:600;letter-spacing:0}.login-card__security{color:var(--ink-muted)}@media(max-width:719px){.main-content{padding-top:26px}.app-sidebar{background:var(--surface)}.home-page{gap:24px}.home-hero{padding:18px}.home-hero h1{font-size:clamp(2rem,10vw,2.55rem)}.home-actions a.home-action{min-height:92px;padding:15px}.home-action__icon{width:40px;height:40px}.home-summary{padding:18px}.orders-table tr,.quotes-table tr,.inventory-table tr{background:#fafbf7;border-color:var(--line)}}@media(prefers-reduced-motion:reduce){.button,.home-action__arrow{transition:none}.button:active:not(:disabled),.home-actions a.home-action:hover,.home-actions a.home-action:hover .home-action__arrow{transform:none}}.home-actions{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.home-summary{gap:0;padding:0;overflow:hidden}.home-summary__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 14px}.home-summary__header h2{margin-bottom:4px}.home-summary__header p{margin-bottom:0}.home-summary__header>a{flex:0 0 auto;padding-top:3px;color:var(--accent-dark);font-size:.88rem;font-weight:720;text-decoration:none}.home-summary__header>a:hover{text-decoration:underline;text-underline-offset:3px}.home-recent-orders{display:grid;border-top:1px solid var(--line)}.home-recent-order{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 22px;color:inherit;text-decoration:none}.home-recent-order+.home-recent-order{border-top:1px solid var(--line)}.home-recent-order:hover{background:#fafbf7}.home-recent-order>span:first-child{min-width:0;display:grid;gap:3px}.home-recent-order strong{color:var(--ink);font-size:.9rem}.home-recent-order small{overflow:hidden;color:var(--ink-muted);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.home-summary__empty{padding:0 22px 20px}.catalog-list-card,.price-list-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden}.catalog-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}.catalog-toolbar .field{width:min(360px,100%)}.catalog-table{min-width:800px}.catalog-table th[scope=row]{min-width:220px;color:var(--ink)}.catalog-table th[scope=row] strong,.catalog-table th[scope=row] small{display:block}.catalog-table th[scope=row] small{max-width:330px;margin-top:3px;overflow:hidden;color:var(--ink-muted);font-size:.76rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.catalog-table__actions{white-space:nowrap}.catalog-table__actions .button{min-height:34px;padding:5px 9px;font-size:.77rem}.catalog-table__actions .button+.button{margin-left:5px}.catalog-badge,.price-list-badge{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:999px;font-size:.72rem;font-weight:720;line-height:1;white-space:nowrap}.catalog-badge--stock{color:#2f654b;background:#e4f1e7}.catalog-badge--non-stock{color:#596963;background:#edf0eb}.catalog-badge--active,.price-list-badge--active{color:#2f654b;background:#e4f1e7}.catalog-badge--inactive,.price-list-badge--inactive{color:#7a615d;background:#f6e9e7}.price-list-badge--default{color:#3f6378;background:var(--pastel-blue)}.catalog-empty,.price-list-empty{margin:0;padding:42px 20px;color:var(--ink-muted);text-align:center}.price-list-list{display:grid}.price-list-row{min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-bottom:1px solid var(--line)}.price-list-row:last-child{border-bottom:0}.price-list-row.is-selected{background:#f5f9f4;box-shadow:inset 3px 0 var(--accent)}.price-list-row__open{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;color:var(--ink);background:transparent;border:0;text-align:left}.price-list-row__open:hover{background:#fafbf7}.price-list-row__open>span:first-child{min-width:0;display:grid;gap:3px}.price-list-row__open strong{overflow:hidden;font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}.price-list-row__open small{color:var(--ink-muted);font-size:.76rem}.price-list-row__badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.price-list-row__actions{display:flex;align-items:center;gap:6px;padding:8px 14px 8px 0}.price-list-row__actions .button{min-height:34px;padding:5px 9px;font-size:.77rem}.price-list-detail{display:grid;gap:22px}.price-list-detail .workspace-card__header{margin-bottom:0}.price-list-detail h3{margin:0 0 10px;font-size:.92rem}.price-list-entries{display:grid;gap:8px}.price-list-entry-form{padding-top:18px;border-top:1px solid var(--line)}.price-list-entry-form__fields{display:grid;grid-template-columns:minmax(200px,1fr) minmax(160px,.45fr) auto;align-items:end;gap:12px}.price-list-entry-form__fields .button{min-width:124px}@media(max-width:719px){.home-actions{grid-template-columns:1fr}.home-summary__header{padding:18px 16px 12px}.home-recent-order{min-height:60px;padding-inline:16px}.home-summary__empty{padding:0 16px 18px}.catalog-toolbar{padding:14px 16px}.catalog-toolbar .field{width:100%}.catalog-table{min-width:0}.catalog-table thead{display:none}.catalog-table,.catalog-table tbody{display:grid}.catalog-table tbody{gap:10px;padding:10px}.catalog-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:14px;background:#fafbf7;border:1px solid var(--line);border-radius:var(--radius-sm)}.catalog-table th,.catalog-table td{display:grid;gap:3px;padding:0;border:0;background:transparent}.catalog-table th[scope=row]{grid-column:1 / -1}.catalog-table td:before{color:var(--ink-muted);content:attr(data-label);font-size:.69rem;font-weight:720;letter-spacing:.04em;text-transform:uppercase}.catalog-table__actions{grid-column:1 / -1;display:flex!important;gap:7px;padding-top:4px!important}.catalog-table__actions .button{flex:1;min-height:42px}.catalog-table__actions .button+.button{margin-left:0}.price-list-row{display:grid;grid-template-columns:1fr}.price-list-row__open{min-height:62px;padding:14px 16px}.price-list-row__actions{padding:0 16px 14px}.price-list-row__actions .button{flex:1;min-height:42px}.price-list-detail{padding:16px}.price-list-entry-form__fields{grid-template-columns:1fr}.price-list-entry-form__fields .button{width:100%}}.home-actions a.home-action{min-height:104px}.calendar-toolbar__navigation{display:inline-flex;gap:0}.calendar-toolbar__navigation .button{min-width:42px;border-radius:0}.calendar-toolbar__navigation .button:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}.calendar-toolbar__navigation .button:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}.calendar-toolbar>select{min-width:150px;min-height:42px;padding:8px 11px;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-sm)}.status-badge--scheduled{color:#416981;background:#e5f0f5}.calendar-event>.status-badge{width:fit-content}.calendar-event__actions{display:flex;flex-wrap:wrap;gap:7px}.calendar-event__actions .button,.calendar-event__complete{min-height:38px;padding:7px 11px;font-size:.78rem}.calendar-event__complete{width:fit-content}.catalog-table__actions .button{min-height:38px}.catalog-table th[scope=row] small[title]{cursor:help}@media(max-width:719px){.home-actions a.home-action{min-height:92px}.calendar-toolbar{align-items:stretch}.calendar-toolbar__navigation{width:100%}.calendar-toolbar__navigation .button{flex:1}.calendar-toolbar>select{width:100%}.calendar-event__actions .button,.calendar-event__complete{min-height:44px}}
